joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x1001152
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
push 0x104
lea eax, [ebp - 0x170]
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call fcn.010010e4
cmp eax, 1
jl 0x100121b
push ebx
xor ebx, ebx
cmp byte [ebp - 0x170], bl
push esi
lea esi, [ebp - 0x170]
je 0x10011bb
cmp byte [esi], 0x3a
je 0x100119e
inc esi
cmp byte [esi], bl
jne 0x1001192
jmp 0x10011a1
mov byte [esi], bl
inc esi
cmp byte [esi], bl
je 0x10011bb
push 0x10010ac
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10011c1
lea esi, [ebp - 0x170]
push 0x29
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1001219
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x1001219
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x1001219
push ebx
lea eax, [ebp - 0x14]
push eax
call sub.ole32.dll_CoRegisterSurrogateEx
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
pop ebx
xor eax, eax
leave
ret 0x10

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x401cb2
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x401d03
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x401d14
push 0xd
pop eax
jmp 0x401d41
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401d17
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x4022be
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x200
lea ebp, [esp - 4]
mov eax, dword [0x486be4]
xor eax, ebp
mov dword [ebp + 0x200], eax
push 0x18
mov eax, 0x469de8
call fcn.0043f937
mov eax, dword [ebp + 0x20c]
xor esi, esi
mov edi, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
lea ecx, [ebp - 0x14]
call fcn.00401c71
mov ebx, eax
cmp ebx, esi
je 0x402346
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401bfc
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.0043f928
add ebp, 0x204
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40235e
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.004022be
cmp eax, esi
jne 0x402390
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x100
call ebx
test eax, eax
je 0x40234e
lea ecx, [ebp - 0x14]
call fcn.00401bfc
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.00401ba1
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401bfc
mov eax, esi
jmp 0x402321
Function at 0x406528
Capabilities:
Encode data using xor

Disassembly:
push 8
mov eax, 0x46a3f2
call fcn.0043f937
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x32
mov ecx, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
call fcn.004062b4
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 1
mov bl, byte [esi + str._S7652__62_0_S___12_S7652__2_S0_26_N]
push esi
mov ecx, edi
xor bl, 0x73
call fcn.00405453
inc esi
mov byte [eax], bl
cmp esi, 0x32
jb 0x406553
mov eax, edi
call fcn.0043fa0f
ret

Function at 0x406574
Capabilities:
Encode data using xor

Disassembly:
push 8
mov eax, 0x46a3be
call fcn.0043f937
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 2
mov ecx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
call fcn.004062f7
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 1
mov eax, 0xe6b6
xor ax, word [esi*2 + 0x46f5c4]
push esi
mov ecx, ebx
movzx edi, ax
call fcn.0040547b
inc esi
mov word [eax], di
cmp esi, 2
jb 0x40659f
mov eax, ebx
call fcn.0043fa0f
ret

Function at 0x4065c8
Capabilities:
Encode data using xor

Disassembly:
push 8
mov eax, 0x46a3be
call fcn.0043f937
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0xc
mov ecx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
call fcn.004062f7
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 1
mov eax, 0xe6b6
xor ax, word [esi*2 + 0x46f5c8]
push esi
mov ecx, ebx
movzx edi, ax
call fcn.0040547b
inc esi
mov word [eax], di
cmp esi, 0xc
jb 0x4065f3
mov eax, ebx
call fcn.0043fa0f
ret

Function at 0x40661c
Capabilities:
Encode data using xor

Disassembly:
push 8
mov eax, 0x46a3be
call fcn.0043f937
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 6
mov ecx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
call fcn.004062f7
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 1
mov eax, 0xe6b6
xor ax, word [esi*2 + 0x46f5e0]
push esi
mov ecx, ebx
movzx edi, ax
call fcn.0040547b
inc esi
mov word [eax], di
cmp esi, 6
jb 0x406647
mov eax, ebx
call fcn.0043fa0f
ret

Function at 0x406670
Capabilities:
Encode data using xor

Disassembly:
push 8
mov eax, 0x46a3be
call fcn.0043f937
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 4
mov ecx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
call fcn.004062f7
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 1
mov eax, 0xe6b6
xor ax, word [esi*2 + 0x46f5ec]
push esi
mov ecx, ebx
movzx edi, ax
call fcn.0040547b
inc esi
mov word [eax], di
cmp esi, 4
jb 0x40669b
mov eax, ebx
call fcn.0043fa0f
ret

Function at 0x4066c4
Capabilities:
Encode data using xor

Disassembly:
push 8
mov eax, 0x46a3f2
call fcn.0043f937
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x28
mov ecx, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
call fcn.004062b4
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 1
mov bl, byte [esi + 0x46f79c]
push esi
mov ecx, edi
xor bl, 0x73
call fcn.00405453
inc esi
mov byte [eax], bl
cmp esi, 0x28
jb 0x4066ef
mov eax, edi
call fcn.0043fa0f
ret
Function at 0x406710
Capabilities:
Check mutex on windows

Disassembly:
push 4
mov eax, 0x46a433
call fcn.0043f937
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
mov dword [esi], eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 4]
call fcn.004046d1
mov byte [ebp - 4], 2
lea eax, [ebp + 0x28]
push eax
lea ecx, [esi + 0x20]
call fcn.004046d1
mov byte [ebp - 4], 3
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call dword [sym.imp.KERNEL32.DLL_OpenMutexW]
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push ebx
call edi
call dword [sym.imp.KERNEL32.DLL_GetVersion]
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push ebx
call edi
push ebx
push ebx
push 0x1f0003
call dword [sym.imp.KERNEL32.DLL_OpenEventW]
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.00402bec
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp + 0x28]
call fcn.00402bec
mov eax, esi
call fcn.0043fa0f
ret 0x3c
Function at 0x417048
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x48d62c], 0
push esi
jne 0x416fbb
call fcn.00416ee1
test eax, eax
je 0x416ffe
mov eax, dword [0x48d62c]
cmp eax, 1
jne 0x416fdc
push 0xd
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x416ffe
pop esi
ret
push eax
call dword [0x48d634]
test eax, eax
jne 0x417046
push pe_nt_image_headers32
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x417002
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x48d62c]
call dword [0x48d634]
mov edi, eax
test edi, edi
je 0x417027
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
jmp 0x417043
mov edi, esi
add esi, 0xff0
push edi
push dword [0x48d62c]
call dword [0x48d630]
add edi, 0x10
cmp edi, esi
jb 0x41702f
mov eax, edi
pop edi
pop esi
ret
jmp 0x416fa8

Function at 0x417c1c
Capabilities:
Initialize winhttp library

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 4], edi
je 0x417c2c
call fcn.004177d6
cmp dword [esi + 0x28], 8
jb 0x417c37
mov eax, dword [esi + 0x14]
jmp 0x417c3a
lea eax, [esi + 0x14]
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi], eax
cmp eax, edi
jne 0x417c53
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x417c99
movzx ecx, byte [esp + 0x14]
neg ecx
sbb ecx, ecx
and ecx, 0x800000
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0xc]
cmp dword [ecx + 0x18], 8
jb 0x417c74
mov ecx, dword [ecx + 4]
jmp 0x417c77
add ecx, 4
push edi
push dword [esp + 0x14]
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esi + 4], eax
cmp eax, edi
jne 0x417c97
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi], edi
jmp 0x417c4b
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x417c9e
Capabilities:
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
push ebx
push esi
mov esi, ecx
jb 0x417cb3
mov eax, dword [eax + 4]
jmp 0x417cb6
add eax, 4
push dword [esi + 0xc]
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 8], eax
cmp eax, ebx
jne 0x417cda
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x417d4c
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
jne 0x417ceb
mov dword [ebp + 8], ebx
jmp 0x417cf6
push ebx
mov ecx, edi
call fcn.00417815
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0x14]
cmp eax, ebx
jne 0x417d04
xor edx, edx
jmp 0x417d12
cmp dword [ecx + 0x18], 8
jb 0x417d0f
mov edx, dword [ecx + 4]
jmp 0x417d12
lea edx, [ecx + 4]
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
push ebx
push ecx
push ecx
push dword [ebp + 8]
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
pop edi
test eax, eax
jne 0x417d3c
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 8], ebx
jmp 0x417cd2
push ebx
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x417d2e
xor eax, eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x41981f
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x486be4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x419863
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x41985d
shr eax, 8
cmp al, 2
jne 0x41985d
xor eax, eax
jmp 0x419866
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043f928
leave
ret

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

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4211dd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x4212fe
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x42131e
push dword [esi + 0xf4]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x421357
cmp eax, 2
jg 0x421357
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
add eax, 0x470ba0
push 2
push eax
call fcn.00441acd
push dword [esi + 0xf0]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00441acd
add esp, 0x20
xor eax, eax
ret

Function at 0x4215ab
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x12c]
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x42161d
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x4215f7
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x42161c
push ebx
push esi
call fcn.0042d843
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.00421478
mov eax, dword [esi]
mov dword [eax + 0x855c], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret
Function at 0x421cac
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x486be4]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push ebx
push esi
mov esi, dword [ebp + 0x198]
cmp dword [esi + 0x198], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], ebx
jne 0x421dcf
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x19c]
mov edi, 0x100
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x421d29
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0042d843
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00421478
add esp, 0x18
jmp 0x421dd6
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x8c]
push eax
push dword [ebp + 0x19c]
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x421d5f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0042d843
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x421d1b
lea edi, [esi + 0xc8]
lea ebx, [esi + 0x9a]
lea esi, [ebp - 0x74]
call fcn.00421c73
test eax, eax
jne 0x421d94
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.0042d843
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
jmp 0x421d1c
mov eax, dword [ebp - 0x78]
lea edi, [eax + 0xfc]
lea ebx, [eax + 0xcc]
lea esi, [ebp + 0x8c]
call fcn.00421c73
test eax, eax
jne 0x421dcc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.0042d843
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x421d8f
mov esi, dword [ebp - 0x78]
push esi
call fcn.00421c21
pop ecx
mov ecx, dword [ebp + 0x18c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043f928
add ebp, 0x190
leave
ret

Function at 0x421dee
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x308]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x421e33
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0042d843
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0042140e
add esp, 0x14
jmp 0x421e40
push str.TCP_NODELAY_set_n
push esi
call fcn.0042140e
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x42233b
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x520]
push esi
cmp eax, 0xffffffff
je 0x42238e
mov ecx, dword [ecx + 0x514]
mov ecx, dword [ecx]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0x42238e
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
test ecx, ecx
je 0x422368
mov dword [ecx], eax
cmp dword [eax + 0x144], 0
mov esi, dword [eax + 0x12c]
jne 0x42238e
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x42238e
mov eax, esi
jmp 0x422391
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x423640
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor esi, esi
push 2
call fcn.0042e027
add esp, 0xc
test eax, eax
jle 0x423672
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push dword [ebp + 8]
push eax
push 2
call fcn.0042355d
add esp, 0x10
jmp 0x42368e
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x42368c
push dword [ebp + 0xc]
push eax
call fcn.0042344f
pop ecx
pop ecx
mov esi, eax
mov eax, esi
pop esi
leave
ret
Function at 0x429e29
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x31c
push ebx
mov ebx, dword [ebp + 0x78]
push esi
mov esi, dword [ebp + 0x74]
xor edx, edx
push edi
xor edi, edi
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x68], edx
cmp esi, 0xffffffff
jne 0x429e5d
cmp ebx, esi
jne 0x429e5d
mov eax, dword [ebp + 0x7c]
call fcn.00429e0a
jmp 0x429ffa
cmp dword [ebp + 0x7c], edx
jle 0x429e72
mov edi, dword [ebp + 0x7c]
call fcn.0042b3d7
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x64], eax
xor edx, edx
xor eax, eax
or ecx, 0xffffffff
inc eax
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x1ac], edx
cmp esi, ecx
je 0x429ea2
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], eax
mov ecx, esi
mov dword [ebp - 0x2b0], edx
cmp ebx, 0xffffffff
je 0x429ef9
mov dword [ebp - 0x2b0], eax
xor eax, eax
mov dword [ebp - 0x2ac], ebx
cmp dword [ebp - 0xa8], edx
jbe 0x429ed5
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x429ed5
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x429ec3
cmp eax, dword [ebp - 0xa8]
jne 0x429ef3
cmp dword [ebp - 0xa8], 0x40
jae 0x429ef3
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x429ef9
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x429f02
xor ebx, ebx
jmp 0x429f05
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x429f24
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x429f29
jne 0x429f2c
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x5c], eax
push ebx
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x1ac]
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x429f85
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x429f5f
cmp eax, 0x2714
jne 0x429f89
cmp dword [ebp + 0x7c], 0
jle 0x429f08
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.0042b3d7
push edx
push eax
call fcn.0042b3ed
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x429f08
jmp 0x429f89
test eax, eax
jge 0x429f8e
or eax, 0xffffffff
jmp 0x429ffa
jne 0x429f94
xor eax, eax
jmp 0x429ffa
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x429fc6
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x429fb0
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x429fc6
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x429ff8
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x429fe2
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x429ff8
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x42bf2b
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x42bf38
jmp dword [eax*4 + 0x42bf93]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, byte [esp + 4]
ret

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

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x19c]
test esi, esi
jne 0x42e084
mov esi, dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
call fcn.0042b3d7
push edx
push eax
call fcn.0042b3ed
add edi, 0x194
add esp, 0x10
sub esi, eax
cmp dword [edi], 0
je 0x42e0cb
push dword [ebx + 0x120]
push dword [ebx + 0x11c]
call fcn.0042b3d7
push edx
push eax
call fcn.0042b3ed
mov edi, dword [edi]
sub edi, eax
add esp, 0x10
cmp esi, edi
jl 0x42e0cb
mov esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x42e8c1
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x486340]
mov edi, eax
pop ecx
test edi, edi
je 0x42e99f
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov ecx, dword [esi + 0xc]
add ecx, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], ecx
cmp ebx, dword [esi + 0x10]
jbe 0x42e923
push eax
call dword [esi]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [esi + 4]
mov ebx, dword [edi + 8]
add ebx, dword [esi + 0xc]
push dword [edi + 4]
push ebx
call dword [esi + 8]
mov dword [ebp + 0xc], ebx
mov ebx, dword [esi + 0x14]
add esp, 0x18
push dword [edi + 4]
call dword [esi]
push dword [edi + 8]
call dword [esi]
and dword [ebp - 4], 0
pop ecx
pop ecx
test ebx, ebx
jbe 0x42e972
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
mov al, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
push 1
lea eax, [ebp + 0xb]
push eax
push dword [edi + 4]
call dword [esi + 4]
mov al, byte [ebx]
xor al, 0x5c
mov byte [ebp + 0xb], al
push 1
lea eax, [ebp + 0xb]
push eax
push dword [edi + 8]
inc ebx
mov dword [ebp + 0xc], ebx
call dword [esi + 4]
add esp, 0x18
dec dword [ebp - 8]
jne 0x42e93d
pop ebx
jmp 0x42e995
push 1
push 0x474335
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x474336
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x10]
jb 0x42e975
mov eax, edi
pop edi
pop esi
leave
ret