joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d4610
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
mov edi, ecx
mov dword [ebp - 4], 0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x57c184
call fcn.004d9ef0
add esp, 4
push eax
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4d4756
push esi
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push 0x57c21c
call fcn.004d9ef0
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 4
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4d4755
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push 0x57c29c
call fcn.004d9ef0
add esp, 4
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4d4755
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push 0x57c2a8
call fcn.004d9ef0
add esp, 4
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4d4755
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x57c1e4
call fcn.004d9ef0
add esp, 4
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4d4755
push dword [ebp + 8]
lea esi, [edi + 0x24]
push 0x57c24c
call fcn.004d9ef0
add esp, 4
push eax
push esi
call fcn.004d93e0
add esp, 0xc
push dword [ebp + 0xc]
push 0x57c260
call fcn.004d9ef0
add esp, 4
push eax
push esi
call fcn.004d93e0
add esp, 0xc
push dword [ebp + 0x10]
push 0x57c274
call fcn.004d9ef0
add esp, 4
push eax
push esi
call fcn.004d93e0
add esp, 0xc
push dword [ebp - 8]
push 0x57c2b4
call fcn.004d9ef0
add esp, 4
push eax
push esi
call fcn.004d93e0
add esp, 0xc
mov bl, 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4d56f0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x6df679], 0
mov dword [ebp - 4], 0
je 0x4d570a
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [ecx + 0x3d6c], 0
je 0x4d572a
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov al, byte fs:[0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4d5740
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x248
mov dword [ebp - 4], 0x248
call fcn.005294af
mov esi, eax
add esp, 4
test esi, esi
jne 0x4d5770
mov eax, dword [ebp + 8]
pop esi
mov dword [eax], 0x15
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push esi
call sub.IPHLPAPI.DLL_GetNetworkParams
cmp eax, 0x6f
jne 0x4d57a7
push esi
call fcn.005294aa
push dword [ebp - 4]
call fcn.005294af
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d57a7
mov eax, dword [ebp + 8]
mov dword [eax], 0x16
lea eax, [esi - 2]
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push esi
call sub.IPHLPAPI.DLL_GetNetworkParams
test eax, eax
jne 0x4d58fb
push 0x57dde4
add esi, 0x84
call fcn.004d9ef0
add esp, 4
mov ecx, esi
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4d57f0
test dl, dl
je 0x4d57ec
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4d57f0
add ecx, 2
add eax, 2
test dl, dl
jne 0x4d57d0
xor eax, eax
jmp 0x4d57f5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4d58cc
push 0x57ddf4
call fcn.004d9ef0
add esp, 4
mov ecx, esi
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4d5830
test dl, dl
je 0x4d582c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4d5830
add ecx, 2
add eax, 2
test dl, dl
jne 0x4d5810
xor eax, eax
jmp 0x4d5835
sbb eax, eax
or eax, 1
test eax, eax
je 0x4d58cc
push 0x57de04
call fcn.004d9ef0
push eax
push esi
call fcn.00527540
add esp, 0xc
test eax, eax
jne 0x4d58cc
push 0x57de14
call fcn.004d9ef0
add esp, 4
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x4d5882
test cl, cl
je 0x4d587e
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x4d5882
add esi, 2
add eax, 2
test cl, cl
jne 0x4d5862
xor eax, eax
jmp 0x4d5887
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4d58b9
cmp dword [0x6df6a4], eax
je 0x4d58af
push 0x57de20
call fcn.004d9ef0
push eax
mov eax, dword [0x6df6a4]
add eax, 0x24
push eax
call fcn.004d93e0
add esp, 0xc
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
mov dword [eax], 0x7b
mov eax, 0xfffffffd
mov esp, ebp
pop ebp
ret
cmp dword [0x6df6a4], 0
je 0x4d58f1
push 0x57de38
call fcn.004d9ef0
push eax
mov eax, dword [0x6df6a4]
add eax, 0x24
push eax
call fcn.004d93e0
add esp, 0xc
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d8910
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x1c]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
movzx eax, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x26]
push eax
movzx eax, word [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push str._04d:_02d:_02d:_02d:_02d:_02d
push eax
call fcn.0041f000
add esp, 0x20
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x57dbb4
call fcn.004d9ef0
add esp, 4
push eax
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4d89ed
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp + 8]
push 4
push eax
push 4
push 0
push str.LastErrNum
push dword [ebp - 0x2c]
call esi
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d89b6
sub ecx, edx
push ecx
push edi
push 1
push 0
push str.LastErrGame
push dword [ebp - 0x2c]
call esi
push 0x10
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push str.LastErrDate
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0052388c
mov esp, ebp
pop ebp
ret
Function at 0x4d8a50
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x540
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x104
lea eax, [ebp - 0x538]
xor bl, bl
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x538]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d8a83
push 0
push 0
sub ecx, edx
lea eax, [ebp - 0x22c]
push 0x104
push eax
sar ecx, 1
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x538]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x22c]
push 0x5c
push eax
call fcn.00527400
add esp, 8
test eax, eax
je 0x4d8acf
mov byte [eax], 0
lea eax, [ebp - 0x53c]
push eax
push 3
push 0
push 0x57d908
call fcn.004d9ef0
add esp, 4
push eax
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4d8c4b
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x540]
mov dword [ebp - 0x540], 0x104
push eax
lea eax, [ebp - 0x128]
push eax
push 0
push dword [ebp - 0x53c]
call edi
mov esi, 1
cmp eax, 0x103
je 0x4d8c3d
nop dword [eax]
test eax, eax
jne 0x4d8c08
nop dword [eax + eax]
mov cl, byte [ebp + eax - 0x128]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x331], cl
test cl, cl
jne 0x4d8b50
lea eax, [ebp - 0x330]
push 0x5c
push eax
call fcn.00527400
add esp, 8
test eax, eax
je 0x4d8b7d
mov byte [eax], 0
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x330]
push eax
call fcn.00535ea0
add esp, 8
test eax, eax
jne 0x4d8c08
lea eax, [ebp - 0x540]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x53c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d8c08
cmp dword [0x6df6a4], eax
je 0x4d8be8
lea eax, [ebp - 0x24]
push eax
push 0x57d950
call fcn.004d9ef0
add esp, 4
push eax
mov eax, dword [0x6df6a4]
add eax, 0x24
push eax
call fcn.004d93e0
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x53c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x540]
mov dword [ebp - 0x540], 0x104
push eax
lea eax, [ebp - 0x128]
push eax
push esi
push dword [ebp - 0x53c]
call edi
inc esi
cmp eax, 0x103
jne 0x4d8b40
push dword [ebp - 0x53c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0052388c
mov esp, ebp
pop ebp
ret
Function at 0x4d9090
Capabilities:
Create udp socket
Initialize winsock library
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1a4]
push eax
push 0x202
mov ebx, ecx
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x4d90d4
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret 4
push esi
push 0
push 2
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4d9181
cmp byte [0x6df044], 0
mov eax, 2
mov word [ebp - 0x14], ax
je 0x4d910e
push 0x6df044
call fcn.00533527
add esp, 4
push eax
jmp 0x4d9113
push 0x3a98
call dword [sym.imp.WSOCK32.dll_htons]
push edi
mov word [ebp - 0x12], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x4d914f
push edi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
je 0x4d917a
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00526b40
add esp, 0xc
lea ecx, [ebx + 0x16a4]
call fcn.004dacf0
mov ecx, eax
test ecx, ecx
je 0x4d917a
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push 0x10
push edx
push 0
add eax, 4
push eax
push ecx
push esi
call dword [sym.imp.WSOCK32.dll_sendto]
test eax, eax
jne 0x4d9196
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret 4
push esi
cmp eax, 0xffffffff
je 0x4d917b
call dword [sym.imp.WSOCK32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0052388c
mov esp, ebp
pop ebp
ret 4
Function at 0x4d93e0
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00523cc0
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0xffffffff
jne 0x4d9411
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x1440]
mov ecx, dword [ebp + 0xc]
test eax, eax
je 0x4d9436
cmp byte [ecx], 0x21
je 0x4d9436
mov edx, dword [esi + 0x1444]
cmp edx, eax
ja 0x4d9400
lea eax, [edx + 1]
mov dword [esi + 0x1444], eax
cmp dword [esi + 0x1c], 0
push ebx
lea ebx, [esi + 4]
je 0x4d944a
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 0xc]
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push ecx
lea eax, [ebp - 0x1004]
push 0xffffffffffffffff
push eax
call fcn.00417810
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0052c6ad
add esp, 0x1c
lea eax, [esi + 0x1020]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x1004]
push eax
movzx eax, word [esi + 0x102e]
lea edi, [esi + 0x20]
push eax
movzx eax, word [esi + 0x102c]
push eax
movzx eax, word [esi + 0x102a]
push eax
movzx eax, word [esi + 0x1028]
push eax
push 0x57c110
call fcn.004da340
add esp, 4
push eax
push edi
call fcn.0041f000
add esp, 0x1c
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4d94c2
sub edi, ecx
cmp dword [esi + 0x143c], 0
je 0x4d94fc
test edi, edi
jle 0x4d9511
lea ecx, [esi + 0x20]
mov edx, edi
nop dword [eax]
add dword [esi + 0x143c], 2
lea ecx, [ecx + 1]
mov eax, dword [esi + 0x143c]
add al, 0x43
xor byte [ecx - 1], al
sub edx, 1
jne 0x4d94e0
jmp 0x4d9511
lea eax, [esi + 0x20]
push eax
push eax
lea eax, [esi + 0x1034]
push edi
push eax
call fcn.004dc2d0
add esp, 0x10
push 0
lea eax, [ebp - 0x1008]
push eax
push edi
lea eax, [esi + 0x20]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx + 0x18], 0
pop edi
je 0x4d9535
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov al, 1
pop ebx
xor ecx, ebp
pop esi
call fcn.0052388c
mov esp, ebp
pop ebp
ret
Function at 0x4d95c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x57c5bc
call fcn.004d9ef0
mov esi, dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
add esp, 4
push eax
push 0
push 0xf001f
call esi
mov ebx, eax
test ebx, ebx
jne 0x4d960b
push 0x57c5d0
call fcn.004d9ef0
add esp, 4
push eax
push ebx
push 0xf001f
call esi
mov ebx, eax
test ebx, ebx
jne 0x4d960b
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0x10000
push 0
push 0
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x4d9670
push 0x57d9c8
call fcn.004d9ef0
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexA]
add esp, 4
push eax
push 0
push 0x100000
call esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x4d9680
push 0x57d9dc
call fcn.004d9ef0
add esp, 4
push eax
push 0
push 0x100000
call esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x4d9680
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi]
mov esi, edi
test eax, eax
je 0x4d96a8
add esi, eax
mov eax, esi
sub eax, edi
cmp eax, 0xfffc
jae 0x4d96a6
mov eax, dword [esi]
test eax, eax
jne 0x4d9691
jmp 0x4d96a8
mov esi, edi
mov edx, dword [ebp + 0xc]
mov ecx, esi
mov eax, 0xfffc
sub ecx, edi
sub eax, edx
cmp ecx, eax
jb 0x4d96be
mov esi, edi
jmp 0x4d96ce
push edx
push dword [ebp + 8]
push esi
call fcn.00526b40
add esp, 0xc
add esi, dword [ebp + 0xc]
push edi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d9760
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov ecx, dword [0x6df6a4]
test ecx, ecx
jne 0x4d976d
xor eax, eax
ret
jmp fcn.004d27e0

Function at 0x4d9910
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x6df6a4], 0
je 0x4d9920
xor eax, eax
pop ebp
ret
push esi
push 0x4d4200
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x3db0
mov esi, eax
call fcn.00523854
add esp, 4
test eax, eax
je 0x4d9948
mov ecx, eax
call fcn.004d19c0
jmp 0x4d994a
xor eax, eax
push dword [ebp + 8]
mov ecx, eax
mov dword [0x6df6a4], eax
call fcn.004d6370
mov ecx, dword [0x6df6a4]
mov dword [ecx + 0x10], eax
cmp eax, 0x755
je 0x4d9970
call fcn.004d4340
jmp 0x4d9986
cmp byte [0x6df170], 0
je 0x4d9986
push 0x6df170
call fcn.004d9a00
add esp, 4
mov eax, dword [0x6df6a4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4d9999
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x6df6a4]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x4d99ae
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test esi, esi
je 0x4d99b9
push esi
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov eax, dword [0x6df6a4]
pop esi
mov eax, dword [eax + 0x10]
pop ebp
ret
Function at 0x4d9ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x6ec2b8]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x40c], esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x6e052c]
cmp eax, dword [ecx + 4]
jle 0x4d9f75
push 0x6e052c
call fcn.005239ed
add esp, 4
cmp dword [0x6e052c], 0xffffffff
jne 0x4d9f75
push 0x6e0510
mov dword [0x6e0528], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x551020
mov dword [0x6e0528], 1
call fcn.0052440d
push 0x6e052c
call fcn.005239ae
add esp, 8
test esi, esi
jne 0x4d9f8a
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
cmp dword [0x6e0528], 0
je 0x4d9f9e
push 0x6e0510
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [esi], 1
push ebx
push edi
jne 0x4d9feb
movsx eax, byte [esi + 1]
mov edx, 0
lea ecx, [eax + eax*2]
lea eax, [ecx + 0x65]
xor byte [esi + 2], al
lea ecx, [ecx + ecx*2]
movzx edi, byte [esi + 2]
lea eax, [ecx + 0x68]
xor byte [esi + 3], al
add ecx, 4
movzx eax, byte [esi + 3]
shl edi, 8
or edi, eax
jle 0x4d9fe7
lea ecx, [ecx + ecx*2]
lea eax, [ecx + 0x65]
xor al, byte [esi + edx + 4]
lea ecx, [ecx + 1]
mov byte [esi + edx], al
inc edx
cmp edx, edi
jl 0x4d9fd2
mov byte [esi + edi], 0
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov eax, 1
nop word [eax + eax]
cmp dword [eax*4 + 0x6e0588], ecx
je 0x4da011
inc eax
cmp eax, 0x14
jl 0x4da000
jmp 0x4da017
mov ebx, eax
test eax, eax
jne 0x4da030
mov eax, dword [0x6e0580]
cmp eax, 0x13
jae 0x4da030
inc eax
mov dword [0x6e0580], eax
mov ebx, eax
mov dword [eax*4 + 0x6e0588], ecx
mov edi, dword [ebx*4 + 0x6e0530]
mov dword [ebx*4 + 0x6e0530], esi
test edi, edi
je 0x4da10f
cmp edi, esi
je 0x4da10f
cmp byte [esi], 1
je 0x4da10f
cmp byte [edi], 1
je 0x4da10f
push edi
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x408], eax
test eax, eax
je 0x4da10f
lea eax, [ebp - 0x404]
mov byte [edi], 1
movzx eax, al
xor edx, edx
mov byte [edi + 1], al
mov ebx, 4
lea eax, [eax + eax*2]
lea ecx, [eax + 0x65]
mov dword [ebp - 0x410], ecx
lea ecx, [eax + eax*2]
lea eax, [ecx + 0x68]
add ecx, 4
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x408], edx
jle 0x4da0ef
mov esi, dword [ebp - 0x408]
nop dword [eax + eax]
lea ecx, [ecx + ecx*2]
lea eax, [ecx + 0x65]
xor al, byte [ebp + edx - 0x404]
lea ecx, [ecx + 1]
mov byte [ebx + edi], al
inc edx
inc ebx
cmp edx, esi
jl 0x4da0d0
mov esi, dword [ebp - 0x40c]
lea ecx, [ebx - 4]
mov byte [ebx + edi], 0
mov eax, ecx
sar eax, 8
xor al, byte [ebp - 0x410]
mov byte [edi + 2], al
mov eax, dword [ebp - 0x414]
xor al, cl
mov byte [edi + 3], al
cmp dword [0x6e0528], 0
pop edi
pop ebx
je 0x4da125
push 0x6e0510
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0052388c
mov esp, ebp
pop ebp
ret
Function at 0x4da140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x6ec2b8]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x40c], esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x6e05f4]
cmp eax, dword [ecx + 4]
jle 0x4da1c5
push 0x6e05f4
call fcn.005239ed
add esp, 4
cmp dword [0x6e05f4], 0xffffffff
jne 0x4da1c5
push 0x6e05d8
mov dword [0x6e05f0], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x551040
mov dword [0x6e05f0], 1
call fcn.0052440d
push 0x6e05f4
call fcn.005239ae
add esp, 8
test esi, esi
jne 0x4da1da
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
cmp dword [0x6e05f0], 0
je 0x4da1ee
push 0x6e05d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [esi], 1
push edi
jne 0x4da23a
movsx eax, byte [esi + 1]
mov edx, 0
lea ecx, [eax + eax*2]
lea eax, [ecx + 0x65]
xor byte [esi + 2], al
lea eax, [ecx + ecx*2]
movzx edi, byte [esi + 2]
lea ecx, [eax + 0x68]
xor byte [esi + 3], cl
add eax, 4
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
jle 0x4da236
lea eax, [eax + eax*2]
lea ecx, [eax + 0x65]
xor cl, byte [esi + edx + 4]
lea eax, [eax + 1]
mov byte [esi + edx], cl
inc edx
cmp edx, edi
jl 0x4da221
mov byte [esi + edi], 0
mov edi, dword [0x6e05f8]
mov dword [0x6e05f8], esi
test edi, edi
je 0x4da311
cmp edi, esi
je 0x4da311
cmp byte [esi], 1
je 0x4da311
cmp byte [edi], 1
je 0x4da311
push edi
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x408], eax
test eax, eax
je 0x4da311
lea eax, [ebp - 0x404]
mov byte [edi], 1
movzx eax, al
xor edx, edx
mov byte [edi + 1], al
push ebx
mov ebx, 4
lea eax, [eax + eax*2]
lea ecx, [eax + 0x65]
mov dword [ebp - 0x410], ecx
lea ecx, [eax + eax*2]
lea eax, [ecx + 0x68]
add ecx, 4
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x408], edx
jle 0x4da2f0
mov esi, dword [ebp - 0x408]
lea ecx, [ecx + ecx*2]
lea eax, [ecx + 0x65]
xor al, byte [ebp + edx - 0x404]
lea ecx, [ecx + 1]
mov byte [ebx + edi], al
inc edx
inc ebx
cmp edx, esi
jl 0x4da2d1
mov esi, dword [ebp - 0x40c]
lea ecx, [ebx - 4]
mov byte [ebx + edi], 0
mov eax, ecx
sar eax, 8
xor al, byte [ebp - 0x410]
mov byte [edi + 2], al
mov eax, dword [ebp - 0x414]
xor al, cl
mov byte [edi + 3], al
pop ebx
cmp dword [0x6e05f0], 0
pop edi
je 0x4da326
push 0x6e05d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0052388c
mov esp, ebp
pop ebp
ret
Function at 0x4da340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
mov ecx, dword [0x6ec2b8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x6e050c]
cmp eax, dword [ecx + 4]
jle 0x4da3ab
push 0x6e050c
call fcn.005239ed
add esp, 4
cmp dword [0x6e050c], 0xffffffff
jne 0x4da3ab
push 0x6e04f0
mov dword [0x6e0508], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x551060
mov dword [0x6e0508], 1
call fcn.0052440d
push 0x6e050c
call fcn.005239ae
add esp, 8
cmp dword [0x6e0508], 0
je 0x4da3bf
push 0x6e04f0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4da41a
cmp byte [esi], 1
jne 0x4da41a
movsx eax, byte [esi + 1]
mov edx, 0
push edi
lea ecx, [eax + eax*2]
lea eax, [ecx + 0x65]
xor byte [esi + 2], al
lea eax, [ecx + ecx*2]
movzx edi, byte [esi + 2]
lea ecx, [eax + 0x68]
xor byte [esi + 3], cl
add eax, 4
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
jle 0x4da415
nop word [eax + eax]
lea eax, [eax + eax*2]
lea ecx, [eax + 0x65]
xor cl, byte [edx + esi + 4]
lea eax, [eax + 1]
mov byte [edx + esi], cl
inc edx
cmp edx, edi
jl 0x4da400
mov byte [edi + esi], 0
pop edi
cmp dword [0x6e0508], 0
je 0x4da42e
push 0x6e04f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4da440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x400
push 0
push 0x6e00f0
mov esi, eax
call fcn.00527170
add esp, 0xc
test esi, esi
je 0x4da4e5
movzx eax, bl
mov edx, 4
mov byte [0x6e00f1], al
mov byte [0x6e00f0], 1
lea eax, [eax + eax*2]
lea ecx, [eax + 0x65]
lea eax, [eax + eax*2]
mov dword [ebp - 4], ecx
lea ecx, [eax + 0x68]
add eax, 4
mov dword [ebp - 8], ecx
test esi, esi
jle 0x4da4c4
sub ebx, 0x6e00f4
nop
lea eax, [eax + eax*2]
lea ecx, [eax + 0x65]
xor cl, byte [ebx + edx + 0x6e00f0]
lea eax, [eax + 1]
mov byte [edx + 0x6e00f0], cl
inc edx
sub esi, 1
jne 0x4da4a0
cmp edx, 0x400
jae 0x4da4f0
lea ecx, [edx - 4]
mov byte [edx + 0x6e00f0], 0
mov eax, ecx
sar eax, 8
xor al, byte [ebp - 4]
mov byte [0x6e00f2], al
mov eax, dword [ebp - 8]
xor al, cl
mov byte [0x6e00f3], al
pop esi
mov eax, 0x6e00f0
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00524568
int3