joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4057a0
Capabilities:
Get proxy
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2a4
mov eax, dword [0x45b9b0]
xor eax, esp
mov dword [esp + 0x2a0], eax
mov eax, dword [esp + 0x2a8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
push ecx
push 0x20019
xor esi, esi
push esi
push esi
push reloc.WS2_32.dll_closesocket
mov dword [esp + 0x38], eax
call ebx
mov eax, dword [esp + 0x10]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea edx, [esp + 0x34]
push edx
push esi
push esi
push esi
push eax
mov dword [esp + 0x48], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
push 0x7e
lea ecx, [esp + 0x36]
push esi
push ecx
mov word [esp + 0x3c], si
call fcn.0042ec20
push 0x1fe
lea edx, [esp + 0xc2]
push esi
push edx
mov dword [esp + 0x38], 0x40
mov word [esp + 0xc8], si
call fcn.0042ec20
add esp, 0x18
cmp dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], 4
jbe 0x405950
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x44]
push ecx
push esi
push edx
call ebp
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xb4]
push str._sSoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
lea eax, [esp + 0xbc]
push eax
push reloc.WS2_32.dll_closesocket
call ebx
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0
push str.ProxyEnable
push eax
call edi
test eax, eax
jne 0x4058ca
cmp dword [esp + 0x1c], eax
jne 0x405916
push 0x40
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.0042ec20
push 0x100
lea edx, [esp + 0xc0]
push 0
push edx
call fcn.0042ec20
mov eax, dword [esp + 0x2c]
add esp, 0x18
push eax
mov dword [esp + 0x24], 0x40
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 1
cmp esi, dword [esp + 0x18]
jb 0x405856
cmp dword [esp + 0x1c], 0
je 0x405950
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
push edx
push 0
push 0
push str.ProxyServer
push eax
mov dword [esp + 0x44], 0x100
call edi
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
mov al, 1
jmp 0x40595d
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x2b0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042ec03
add esp, 0x2a4
ret
Function at 0x405ab0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
test ebx, ebx
push esi
mov esi, ecx
jne 0x405ad3
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x10c
ret 0x10
push edi
mov edi, dword [esp + 0x120]
test edi, edi
jne 0x405aed
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret 0x10
cmp dword [esp + 0x128], 0
je 0x405b41
mov eax, dword [esi + 0x2084]
push ebp
xor edx, edx
mov ebp, 0x3e8
div ebp
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x1c], ecx
add ecx, 1
mov dword [esp + 0x18], 1
imul edx, edx, 0x3e8
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0
mov dword [esp + 0x1c], edx
push 0
lea edx, [esp + 0x24]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
pop ebp
jle 0x405b53
mov eax, dword [esi + 0xc]
push 0
push edi
push ebx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x405b56
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x10c
ret 0x10

Function at 0x405b70
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
test ebx, ebx
push esi
mov esi, ecx
jne 0x405b93
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x10c
ret 0x10
push edi
mov edi, dword [esp + 0x120]
test edi, edi
jne 0x405bad
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret 0x10
cmp dword [esp + 0x128], 0
je 0x405c01
mov eax, dword [esi + 0x2084]
push ebp
xor edx, edx
mov ebp, 0x3e8
div ebp
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x1c], ecx
add ecx, 1
mov dword [esp + 0x18], 1
imul edx, edx, 0x3e8
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x20]
push edx
push 0
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
pop ebp
jle 0x405c13
mov eax, dword [esi + 0xc]
push 0
push edi
push ebx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x405c16
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x10c
ret 0x10
Function at 0x4060b0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x3f4
mov eax, dword [0x45b9b0]
xor eax, esp
mov dword [esp + 0x3f0], eax
push ebx
push esi
mov esi, dword [esp + 0x400]
xor eax, eax
mov dword [esi], eax
push edi
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor ebx, ebx
push 0x1fe
mov dword [esi + 0xc], eax
lea eax, [esp + 0x202]
push ebx
push eax
xor edi, edi
mov word [esp + 0x208], bx
call fcn.0042ec20
xor eax, eax
push 0xfe
lea ecx, [esp + 0x10e]
push ebx
push ecx
mov word [esp + 0x24], bx
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
mov word [esp + 0x114], bx
call fcn.0042ec20
push 0x3e
lea edx, [esp + 0x5a]
push ebx
push edx
mov word [esp + 0x60], bx
call fcn.0042ec20
push 0x7f
lea eax, [esp + 0xa5]
push ebx
push eax
mov byte [esp + 0xac], bl
call fcn.0042ec20
xor eax, eax
lea ecx, [esp + 0x22c]
push ecx
mov byte [esp + 0x50], bl
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov dword [esp + 0x61], eax
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov word [esp + 0x6d], ax
mov byte [esp + 0x6f], al
call fcn.004057a0
add esp, 0x34
test al, al
je 0x406204
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x100]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x208]
push edx
call fcn.00405e90
add esp, 0x10
push 0x449f6c
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x406204
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x100]
push edx
call fcn.00405980
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00405980
add esp, 0x10
lea edx, [esp + 0x7c]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
jne 0x40621e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3f0]
xor ecx, esp
call fcn.0042ec03
add esp, 0x3f4
ret
cmp word [eax + 0xa], 4
ja 0x406204
mov word [esi], 2
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
lea eax, [esp + 0x1c]
push eax
mov dword [esi + 4], edx
call fcn.0042fa92
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x3fc]
mov word [esi + 2], ax
mov dword [esi + 8], ebx
pop edi
mov dword [esi + 0xc], ebx
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0042ec03
add esp, 0x3f4
ret
Function at 0x406f30
Capabilities:
Resolve dns

Disassembly:
jmp 0x40e290
sub esp, 0x14
mov eax, dword [0x45b9b0]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
mov esi, dword [esp + 0x1c]
push esi
call fcn.00405740
add esp, 4
test eax, eax
jne 0x406fb7
lea eax, [esp + 4]
push eax
call fcn.004060b0
add esp, 4
test eax, eax
je 0x406fb7
mov ecx, dword [esp + 8]
xor eax, eax
mov dword [0x46e26c], eax
mov dword [0x46e270], eax
mov dword [0x46e268], eax
mov word [0x46e274], 2
mov word [0x46e276], 4
mov dword [0x46e260], ecx
mov dword [0x46e264], 0x46e260
mov dword [0x46e278], 0x46e264
mov eax, 0x46e26c
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0042ec03
add esp, 0x14
ret
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [esp + 0x14]
pop esi
xor ecx, esp
call fcn.0042ec03
add esp, 0x14
ret
jmp 0x406f30

Function at 0x406ff0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0xffffffff
je 0x407012
test eax, eax
je 0x407012
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
ret
or eax, 0xffffffff
ret

Function at 0x407740
Capabilities:
Get socket status

Disassembly:
push 0xffffffffffffffff
push 0x4446ae
mov eax, dword fs:[0]
push eax
sub esp, 0x108
push esi
push edi
mov eax, dword [0x45b9b0]
xor eax, esp
push eax
lea eax, [esp + 0x114]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, 1
cmp dword [esi + 0x10], ecx
jne 0x4077a4
cmp dword [esi + 0x2030], 0
jne 0x4077a4
mov eax, dword [esi + 0xc]
push 0
push 0
mov dword [esp + 0x18], ecx
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
push ecx
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4077fe
mov edx, dword [esp + 0x128]
mov eax, dword [esp + 0x124]
mov ecx, dword [esi + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
cmp edi, 0xffffffff
je 0x4077fe
push 0x20fc
call fcn.004135a3
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0x11c], 0
je 0x4077f7
mov edx, dword [esi + 0x10]
push 2
push edx
push edi
mov ecx, eax
call fcn.00407270
test eax, eax
jne 0x407803
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x40780d
mov dword [eax + 0x2028], 0
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x114
ret 8
Function at 0x407e10
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x444738
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x45b9b0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esi + 0x20dc]
test ebx, ebx
mov dword [esp + 0x10], vtable.CriSecDbg.0
mov dword [esp + 0x14], ebx
je 0x407e58
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, 1
cmp dword [esi + 0x10], edi
mov dword [esp + 0x20], 0
jne 0x407ecd
mov ecx, esi
call fcn.00407410
test eax, eax
je 0x407ecd
mov ecx, esi
call fcn.00407660
test eax, eax
je 0x407ecd
mov dword [esi + 0x2034], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x2030], 0
call edi
mov ebx, eax
lea ebx, [ebx]
push 0
mov ecx, esi
call fcn.00407a80
cmp eax, 0xffffffff
je 0x407ec9
test eax, eax
je 0x407ec9
call edi
sub eax, ebx
cmp eax, dword [esi + 0x2084]
ja 0x407ec9
mov ecx, esi
call fcn.00407660
test eax, eax
jne 0x407ea0
mov ebx, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
test ebx, ebx
mov edi, eax
mov dword [esi + 0xc], 0xffffffff
je 0x407eee
add ebx, 4
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x407f10
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x44476b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45b9b0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [esp + 0x50]
mov ebp, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push eax
push ebp
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x40805a
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [esp + 0x20]
push edx
push 0x1001
push 0xffff
mov ebx, 0x10000
push esi
mov dword [esp + 0x30], ebx
call edi
push 4
lea eax, [esp + 0x20]
push eax
push 0x1002
push 0xffff
push esi
mov dword [esp + 0x30], ebx
call edi
mov ebx, 1
push ebx
lea ecx, [esp + 0x1b]
push ecx
push ebx
push 6
push esi
mov byte [esp + 0x2b], bl
call edi
push 4
lea edx, [esp + 0x1c]
push edx
push 4
push 0xffff
push esi
mov dword [esp + 0x2c], ebx
call edi
push 4
lea eax, [esp + 0x1c]
push eax
push 8
push 0xffff
push esi
mov dword [esp + 0x2c], ebx
call edi
mov edi, dword [sym.imp.WS2_32.dll_WSAIoctl]
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x44]
push edx
mov eax, 0x3e8
push 0x98000004
push esi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x40], 0xc
call edi
cmp ebp, ebx
jne 0x408025
lea eax, [esp + 0x18]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x20fc
call fcn.004135a3
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov dword [esp + 0x40], 0
je 0x408053
push 0
push ebp
push esi
mov ecx, eax
call fcn.00407270
mov ebx, eax
test ebx, ebx
jne 0x408071
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push 4
lea edx, [esp + 0x38]
push edx
push 0x9800000c
push esi
mov dword [esp + 0x44], 0
call edi
mov eax, ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret

Function at 0x4080e0
Capabilities:
Connect socket

Disassembly:
mov ecx, dword [esp + 4]
cmp ecx, 0xffffffff
je 0x40810e
test ecx, ecx
je 0x40810e
cmp dword [ecx + 0x10], 1
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push edx
jne 0x408103
call fcn.00407830
ret
mov eax, dword [ecx + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_connect]
ret
or eax, 0xffffffff
ret
Function at 0x408150
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp esi, 0xffffffff
je 0x4081d8
test esi, esi
je 0x4081d8
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x1c]
push ebx
push ebp
push edi
push eax
mov ecx, esi
call fcn.00407d30
test eax, eax
jne 0x408185
pop edi
pop ebp
pop ebx
pop esi
ret
cmp edi, 0x700b
jne 0x4081c1
cmp ebx, 4
jb 0x4081b9
mov eax, dword [ebp]
cmp eax, 0xffffffff
je 0x4081b9
test eax, eax
je 0x4081b9
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0xc]
push 4
add eax, 0xc
push eax
push edi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
pop edi
pop ebp
pop ebx
pop esi
ret
pop edi
pop ebp
pop ebx
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xc]
push ebx
push ebp
push edi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
pop edi
pop ebp
pop ebx
pop esi
ret
or eax, 0xffffffff
pop esi
ret

Function at 0x4081e0
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp esi, 0xffffffff
je 0x408219
test esi, esi
je 0x408219
push ebx
mov ebx, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push edi
push ebx
mov ecx, esi
call fcn.00407db0
test eax, eax
jne 0x408209
pop edi
pop ebx
pop esi
ret
mov eax, dword [esi + 0xc]
push edi
push ebx
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop edi
pop ebx
pop esi
ret
or eax, 0xffffffff
pop esi
ret

Function at 0x408220
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
cmp ecx, 0xffffffff
je 0x408261
test ecx, ecx
je 0x408261
mov edx, dword [esp + 8]
test edx, edx
je 0x40825e
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40825e
cmp dword [ecx + 0x10], 1
push esi
mov esi, dword [esp + 0x14]
push esi
push eax
push edx
jne 0x408252
call fcn.00407b20
pop esi
ret
mov eax, dword [ecx + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_recv]
pop esi
ret
xor eax, eax
ret
or eax, 0xffffffff
ret
Function at 0x409030
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 4]
cmp ecx, 0xffffffff
je 0x409071
test ecx, ecx
je 0x409071
mov edx, dword [esp + 8]
test edx, edx
je 0x40906e
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40906e
cmp dword [ecx + 0x10], 1
push esi
mov esi, dword [esp + 0x14]
push esi
push eax
push edx
jne 0x409062
call fcn.00408ed0
pop esi
ret
mov eax, dword [ecx + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_send]
pop esi
ret
xor eax, eax
ret
or eax, 0xffffffff
ret
Function at 0x409b90
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x45b9b0]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, ecx
push 0x46e2d4
mov dword [esi], vtable.MsNetwork.0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x409bfa
push 0x18e
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], 0
call fcn.0042ec20
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x409bfa
push 0
push 0x46e2d4
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x194]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0042ec03
add esp, 0x194
ret

Function at 0x409c60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
je 0x409cdd
push ebx
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x409cdc
push esi
push edi
xor edi, edi
xor ecx, ecx
xor esi, esi
test ebx, ebx
jbe 0x409cda
mov edi, edi
mov dl, byte [esi + str.18113289765]
xor dl, byte [ecx + str.19888889999]
mov al, byte [edi + ebp]
and dl, 0x27
xor dl, byte [ecx + str.19888889999]
add ecx, 1
xor dl, al
mov byte [edi + ebp], dl
mov eax, 0xaaaaaaab
mul ecx
shr edx, 3
lea eax, [edx*4]
sub eax, edx
neg eax
lea ecx, [ecx + eax*4]
add esi, 1
mov eax, 0xaaaaaaab
mul esi
shr edx, 3
lea eax, [edx*4]
sub eax, edx
neg eax
add edi, 1
cmp edi, ebx
lea esi, [esi + eax*4]
jb 0x409c80
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40bd40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40bd59
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40bd94
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40bd90
lea ebx, [ebx]
cmp esi, eax
jae 0x40bd94
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40bd80
cmp esi, eax
jb 0x40bd9a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40ca90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x50
mov eax, dword [0x45b9b0]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edi
push 0x44a654
mov ebp, ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x30]
mov bl, 0x65
push ecx
push eax
mov byte [esp + 0x38], 0x50
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], 0x6b
mov byte [esp + 0x3c], 0x4d
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], 0x73
mov byte [esp + 0x3f], 0x73
mov byte [esp + 0x40], 0x61
mov byte [esp + 0x41], 0x67
mov byte [esp + 0x42], bl
mov byte [esp + 0x43], 0x57
mov byte [esp + 0x44], 0
call edi
push 0x44a654
mov dword [esp + 0x14], eax
call esi
mov dl, 0x6c
mov byte [esp + 0x4c], dl
mov byte [esp + 0x50], dl
lea edx, [esp + 0x40]
mov cl, 0x74
push edx
push eax
mov byte [esp + 0x48], 0x4d
mov byte [esp + 0x49], 0x73
mov byte [esp + 0x4a], 0x67
mov byte [esp + 0x4b], 0x57
mov byte [esp + 0x4c], 0x61
mov byte [esp + 0x4d], 0x69
mov byte [esp + 0x4e], cl
mov byte [esp + 0x4f], 0x46
mov byte [esp + 0x50], 0x6f
mov byte [esp + 0x51], 0x72
mov byte [esp + 0x52], 0x4d
mov byte [esp + 0x53], 0x75
mov byte [esp + 0x55], cl
mov byte [esp + 0x56], 0x69
mov byte [esp + 0x57], 0x70
mov byte [esp + 0x59], bl
mov byte [esp + 0x5a], 0x4f
mov byte [esp + 0x5b], 0x62
mov byte [esp + 0x5c], 0x6a
mov byte [esp + 0x5d], bl
mov byte [esp + 0x5e], 0x63
mov byte [esp + 0x5f], cl
mov byte [esp + 0x60], 0x73
mov byte [esp + 0x61], 0
call edi
mov edi, dword [esp + 0x64]
mov esi, eax
mov ebx, 0x464
jmp 0x40cba0
push 1
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [esp + 0x24]
test eax, eax
je 0x40cbd5
cmp dword [esp + 0x18], ebx
jne 0x40cba0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.0042ec03
add esp, 0x50
ret 4
push 8
push edi
push 0
lea ecx, [ebp + 0xc]
push ecx
push 1
call esi
cmp eax, 0x102
jne 0x40cba0
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0042ec03
add esp, 0x50
ret 4

Function at 0x40d1f0
Capabilities:
Terminate thread

Disassembly:
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x40d1fc
jmp fcn.0040d0b0
xor eax, eax
ret 4

Function at 0x40d350
Capabilities:
Create thread
Resume thread

Disassembly:
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x40d35c
jmp fcn.0040d2c0
or eax, 0xffffffff
ret 4
Function at 0x40d750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x444d88
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x45b9b0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push 0x1000
lea ecx, [esp + 0x10]
call fcn.00401f00
cmp dword [edi + 0x430], 0
mov dword [esp + 0x30], 0
lea ecx, [esp + 0xc]
jne 0x40d7bd
mov dword [esp + 0x30], 0xffffffff
call fcn.00401ea0
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 4
mov eax, dword [esp + 0x38]
push eax
push ecx
call fcn.00402b30
add esp, 8
test eax, eax
lea ecx, [esp + 0xc]
je 0x40d79a
call fcn.00401e50
mov esi, eax
push esi
lea ecx, [esp + 0x10]
call fcn.00401c50
push eax
mov ecx, edi
call fcn.0040ae10
cmp eax, esi
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0xc]
jne 0x40d7a2
call fcn.00401ea0
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 4

Function at 0x40e510
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
cmp eax, 3
push ebx
push ebp
lea ebx, [ecx + eax*4 - 0x21524111]
push edi
mov edi, ebx
mov ebp, ebx
jbe 0x40e5ae
lea edx, [eax - 4]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
add edx, 1
mov dword [esp + 0xc], edx
push esi
mov edx, dword [esp + 0x18]
add ebx, dword [edx + 8]
add edi, dword [edx + 4]
mov ecx, dword [edx]
sub ecx, ebx
add ecx, ebp
mov eax, ebx
rol eax, 4
xor eax, ecx
add ebx, edi
sub edi, eax
mov ecx, eax
rol ecx, 6
xor ecx, edi
add eax, ebx
sub ebx, ecx
sub dword [esp + 0x1c], 3
mov esi, ecx
rol esi, 8
xor esi, ebx
add ecx, eax
sub eax, esi
mov edi, esi
rol edi, 0x10
xor edi, eax
mov ebp, edi
add esi, ecx
sub ecx, ebp
mov eax, ebp
ror eax, 0xd
xor eax, ecx
mov edi, eax
add ebp, esi
mov ecx, edi
sub esi, edi
rol ecx, 4
xor ecx, esi
add edx, 0xc
add edi, ebp
sub dword [esp + 0x10], 1
mov ebx, ecx
mov dword [esp + 0x18], edx
jne 0x40e540
mov eax, dword [esp + 0x1c]
pop esi
sub eax, 1
je 0x40e5cb
sub eax, 1
je 0x40e5c4
sub eax, 1
jne 0x40e614
mov edx, dword [esp + 0x14]
add ebx, dword [edx + 8]
mov eax, dword [esp + 0x14]
add edi, dword [eax + 4]
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
xor ebx, edi
mov ecx, edi
rol ecx, 0xe
sub ebx, ecx
add eax, ebp
xor eax, ebx
mov edx, ebx
rol edx, 0xb
sub eax, edx
xor edi, eax
mov ecx, eax
ror ecx, 7
sub edi, ecx
xor ebx, edi
mov edx, edi
rol edx, 0x10
sub ebx, edx
mov edx, ebx
mov ecx, ebx
xor ecx, eax
rol edx, 4
sub ecx, edx
mov eax, ecx
xor edi, ecx
rol eax, 0xe
sub edi, eax
mov ecx, edi
ror ecx, 8
xor ebx, edi
sub ebx, ecx
pop edi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret