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

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, 0x10
xor ebx, ebx
cmp dword [ecx + 0x28], edi
jb 0x413b67
mov ecx, dword [ecx + 0x14]
jmp 0x413b6a
add ecx, 0x14
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x10]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push ecx
push reloc.WS2_32.dll_accept
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x413b99
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x18], edi
jb 0x413ba7
mov esi, dword [eax + 4]
jmp 0x413baa
lea esi, [eax + 4]
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x18], edi
jb 0x413bb8
mov edi, dword [eax + 4]
jmp 0x413bbb
lea edi, [eax + 4]
test esi, esi
jne 0x413bc9
push 0x80004005
call fcn.00401040
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
push esi
push 1
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test ebx, ebx
je 0x413bec
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x414cb0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x47038d
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x48db98]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
mov eax, dword [0x48db98]
xor eax, esp
push eax
lea eax, [esp + 0x144]
mov dword fs:[0], eax
mov esi, dword [esp + 0x154]
mov edi, dword [esp + 0x158]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov edx, 0xf
mov dword [esp + 0x20], esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov eax, 1
mov dword [esi + 0x18], edx
mov dword [esi + 0x14], ebx
mov dword [esp + 0x14c], eax
mov byte [esi + 4], bl
push 0xffffffffffffffff
add ecx, 0x10
push ebx
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], eax
call fcn.00401b60
cmp dword [esp + 0x3c], 0x10
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], pe_nt_image_headers32
mov dword [esp + 0x18], 4
jae 0x414d5b
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [edi + 0x18], 0x10
jb 0x414d7d
mov edi, dword [edi + 4]
jmp 0x414d80
add edi, 4
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x414da4
mov byte [esp + 0x40], bl
lea eax, [esp + 0x40]
lea edx, [eax + 1]
jmp 0x414db0
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x414db0
sub eax, edx
push eax
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.00401d30
cmp dword [esp + 0x3c], 0x10
jb 0x414ddc
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0043402a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0044ffb2
add esp, 0x140
ret 8
Function at 0x414e10
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4703f8
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x48db98]
xor eax, esp
mov dword [esp + 0x134], eax
push ebx
push esi
mov eax, dword [0x48db98]
xor eax, esp
push eax
lea eax, [esp + 0x144]
mov dword fs:[0], eax
mov esi, dword [esp + 0x154]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebx
mov edx, 1
mov eax, 0xf
mov dword [esp + 0x14c], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
mov byte [esp + 0x14c], 2
mov byte [esi + 4], bl
push 0xffffffffffffffff
add ecx, 0x10
push ebx
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], edx
call fcn.00401b60
cmp dword [esp + 0x3c], 0x10
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 4
jae 0x414ebf
lea eax, [esp + 0x28]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push str.info
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x414efe
mov byte [esp + 0x40], bl
lea eax, [esp + 0x40]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x414f05
sub eax, edx
push eax
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.00401d30
cmp dword [esp + 0x3c], 0x10
jb 0x414f31
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0043402a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.0044ffb2
add esp, 0x144
ret 4
Function at 0x414f60
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x470440
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x48db98]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48db98]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x18], ebp
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00401b60
mov eax, dword [esp + 0x34]
cmp eax, ebx
mov byte [esp + 0x48], 1
jbe 0x41500d
lea ecx, [eax - 1]
cmp eax, ecx
mov dword [esp + 0x14], ecx
ja 0x414fe8
call fcn.0046b381
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x38], 0x10
mov eax, dword [esp + 0x24]
jae 0x414ff7
lea eax, [esp + 0x24]
cmp byte [eax + ecx], 0x5c
je 0x41500d
push 1
push 0x4747cc
lea ecx, [esp + 0x28]
call fcn.00401c40
push 0xb
push str.UpdateFiles
lea ecx, [esp + 0x28]
call fcn.00401c40
cmp dword [esp + 0x38], 0x10
mov eax, dword [esp + 0x24]
jae 0x41502c
lea eax, [esp + 0x24]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push reloc.WS2_32.dll_accept
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41505b
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov eax, 0x10
cmp dword [esi + 0x18], eax
jb 0x41506a
mov esi, dword [esi + 4]
jmp 0x41506d
add esi, 4
cmp dword [edi + 0x18], eax
jb 0x415077
mov edi, dword [edi + 4]
jmp 0x41507a
add edi, 4
cmp esi, ebx
jne 0x415088
push 0x80004005
call fcn.00401040
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
push esi
push 1
push ebx
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [esp + 0x38], 0x10
jb 0x4150b3
mov eax, dword [esp + 0x24]
push eax
call fcn.0043402a
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
je 0x4150ce
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0044ffb2
add esp, 0x38
ret
Function at 0x415c40
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x4705a8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48db98]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x44], 0x10
mov dword [esp + 0x48], edi
jb 0x415c7a
mov eax, dword [esi + 0x30]
jmp 0x415c7d
lea eax, [esi + 0x30]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push edi
push eax
push reloc.WS2_32.dll_accept
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x415dac
mov eax, dword [esp + 0x14]
cmp eax, edi
mov dword [esp + 0x20], eax
je 0x415dac
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x415cbd
call fcn.0044fb91
mov ebp, esi
nop
mov ebx, dword [esi + 8]
cmp dword [esi + 4], ebx
jbe 0x415ccd
call fcn.0044fb91
test ebp, ebp
je 0x415cd5
cmp ebp, esi
je 0x415cda
call fcn.0044fb91
cmp edi, ebx
je 0x415da1
test ebp, ebp
jne 0x415ceb
call fcn.0044fb91
cmp edi, dword [ebp + 8]
jb 0x415cf5
call fcn.0044fb91
mov edx, dword [esp + 0x50]
cmp dword [edi + 0x70], edx
jne 0x415d8f
cmp edi, dword [ebp + 8]
jb 0x415d0c
call fcn.0044fb91
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.0041a5a0
mov ebx, 0x10
cmp dword [eax + 0x18], ebx
jb 0x415d27
mov eax, dword [eax + 4]
jmp 0x415d2a
add eax, 4
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [esp + 0x3c], ebx
jb 0x415d49
mov edx, dword [esp + 0x28]
push edx
call fcn.0043402a
add esp, 4
mov edx, dword [esp + 0x50]
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esi + 8]
mov byte [esp + 0x20], 0
mov ecx, dword [esp + 0x20]
push ecx
push edx
push edi
push eax
lea ecx, [edi + 0x74]
push ecx
call fcn.00415630
mov edx, dword [esp + 0x68]
mov eax, dword [esi + 8]
push edx
push esi
push eax
add eax, 0xffffff8c
push eax
call fcn.0040da30
add esp, 0x28
add dword [esi + 8], 0xffffff8c
jmp 0x415cc0
cmp edi, dword [ebp + 8]
jb 0x415d99
call fcn.0044fb91
add edi, 0x74
jmp 0x415cc0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 4
Function at 0x41b020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x470cbe
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x48db98]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xor eax, eax
mov ecx, 0xf
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], eax
mov byte [esi + 4], al
mov dword [esi + 0x34], ecx
mov dword [esi + 0x30], eax
mov dword [esp + 0x14], eax
mov byte [esi + 0x20], al
mov dword [esi + 0x50], ecx
mov dword [esi + 0x4c], eax
mov byte [esi + 0x3c], al
mov eax, dword [esp + 0x1c]
push eax
mov ecx, esi
mov byte [esp + 0x18], 2
call fcn.0041a960
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x41ec30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x48db98]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0x118]
push esi
mov esi, dword [esp + 0x114]
lea edx, [esp + 8]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 8]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [esi + 4], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41ec90
sub eax, edx
push eax
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00401d30
mov ecx, dword [esp + 0x10c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0044ffb2
add esp, 0x10c
ret

Function at 0x41ecc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x48db98]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
mov esi, dword [esp + 0x114]
push edi
mov edi, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push 0xf6
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
call fcn.0041ec30
mov ecx, dword [esp + 0x11c]
add esp, 0xc
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0044ffb2
add esp, 0x10c
ret

Function at 0x41ed30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x48db98]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
mov esi, dword [esp + 0x114]
lea eax, [esp + 8]
push eax
push 0xf6
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 8]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [esi + 4], 0
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41ed80
sub eax, edx
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00401d30
mov ecx, dword [esp + 0x10c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0044ffb2
add esp, 0x10c
ret

Function at 0x41edb0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x48db98]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
mov esi, dword [esp + 0x114]
lea eax, [esp + 8]
push eax
push 0x104
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 8]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [esi + 4], 0
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41ee00
sub eax, edx
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00401d30
mov ecx, dword [esp + 0x10c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0044ffb2
add esp, 0x10c
ret
Function at 0x421ee0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x48db98]
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 2
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x421f27
mov ax, word [esp]
cmp al, 2
jne 0x421f22
test ah, ah
jne 0x421f22
xor eax, eax
mov ecx, dword [esp + 0x190]
call fcn.0044ffb2
add esp, 0x194
ret
call sub.WS2_32.dll_WSACleanup
mov ecx, dword [esp + 0x190]
mov eax, 2
call fcn.0044ffb2
add esp, 0x194
ret

Function at 0x422130
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
cmp esi, edi
jae 0x422163
mov edi, edi
mov edx, dword [ecx]
mov eax, edx
shr eax, 0x18
xor al, byte [esi]
shl edx, 8
movzx eax, al
mov dword [ecx], edx
mov eax, dword [eax*4 + 0x48f388]
xor eax, edx
add esi, 1
cmp esi, edi
mov dword [ecx], eax
jb 0x422140
pop edi
pop esi
ret 8

Function at 0x422350
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
push 2
push 0
push esi
mov ebp, ecx
call fcn.004528b8
push esi
call fcn.0045379f
push esi
mov ebx, eax
call fcn.004541b0
add esp, 0x14
lea eax, [esp + 0x24]
push eax
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0
call fcn.00419270
mov edi, dword [esp + 0x14]
test edi, edi
je 0x42239c
mov ecx, dword [esp + 0x18]
sub ecx, edi
jne 0x4223a1
call fcn.0044fb91
push esi
push ebx
push 1
push edi
call fcn.004535ec
add esp, 0x10
lea edx, [esp + 0x10]
push edx
mov ecx, ebp
call fcn.00422260
test edi, edi
je 0x4223c7
push edi
call fcn.0043402a
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x10
ret 4

Function at 0x422960
Capabilities:
Resolve dns

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push ebp
mov esi, eax
call sub.WS2_32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
je 0x4229e8
push 0x9c
call fcn.004504af
add esp, 4
test eax, eax
jne 0x42298f
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [esi], eax
lea ecx, [eax + 0x10]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x18], edi
mov edx, dword [eax + 0xc]
lea ecx, [eax + 0x18]
mov dword [edx], ecx
mov ecx, dword [eax + 0xc]
mov dword [ecx + 4], 0
lea esi, [eax + 0x1c]
push edi
mov ebx, eax
mov word [eax + 8], 2
mov word [eax + 0xa], 4
mov dword [eax], esi
call sub.WS2_32.dll_ntohl
push eax
call sub.WS2_32.dll_htonl
push 0x80
push eax
call sub.WS2_32.dll_inet_ntoa
push eax
push esi
call fcn.00450080
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
push ebp
call sub.WS2_32.dll_gethostbyname
mov ebx, eax
test ebx, ebx
jne 0x422a11
mov edx, dword [esp + 0x18]
push ebp
push str.gethostbyname_2__failed_for__s_n
push edx
call fcn.0042a770
add esp, 0xc
pop edi
mov dword [esi], ebx
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
push 0x2328
call fcn.004504af
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004227f0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
pop edi
mov dword [esi], ecx
pop esi
pop ebp
mov ebx, eax
pop ebx
pop ecx
ret
Function at 0x422d10
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push ebx
xor ecx, ecx
lea edx, [esp + 4]
push edx
push ecx
push ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
push ecx
inc eax
mov ebx, 1
push eax
mov dword [esp + 0x20], ebx
call sub.WS2_32.dll_select
test eax, eax
jne 0x422d4f
xor al, al
pop ebx
add esp, 0x10c
ret
mov al, bl
pop ebx
add esp, 0x10c
ret
Function at 0x4278e0
Capabilities:
Get socket status

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [ebp]
push ebp
mov byte [esp + 0x18], 0
call fcn.00427730
mov ecx, dword [ebp + 0x318]
or eax, 0xffffffff
add esp, 4
cmp ecx, eax
jne 0x42790f
cmp dword [ebp + 0x324], eax
je 0x427923
mov al, byte [ebp + 0x2fb]
test al, al
jne 0x42792b
mov al, byte [esi + 0x14d]
test al, al
je 0x42792b
pop esi
xor eax, eax
pop ebp
add esp, 8
ret
push ebx
lea ebx, [ebp + 0x4d8]
lea eax, [ebp + 0x3d4]
mov dword [ebp + 0x3d0], ebx
mov dword [ebp + 0x3cc], eax
push edi
mov edx, dword [ebp + 0x3cc]
mov ecx, 0x41
lea esi, [ebp + 0x5dc]
lea edi, [ebp + 0x3d4]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebp + 0x3c8]
mov ecx, 0x41
lea esi, [ebp + 0x6e0]
mov edi, ebx
push 0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x3d0]
push ecx
push edx
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
je 0x4279cc
test eax, eax
je 0x4279a8
lea ecx, [esp + 0x1c]
push ecx
jmp 0x4279ad
lea edx, [esp + 0x1c]
push edx
push ebp
call fcn.004260d0
add esp, 8
test eax, eax
jne 0x4279c4
mov al, byte [esp + 0x1c]
test al, al
je 0x427945
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
add esp, 8
ret
call fcn.004548d0
cmp dword [eax], 4
jmp 0x4279c0

Function at 0x428140
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
lea edx, [eax + ebp]
cmp ebp, edx
push esi
push edi
mov ecx, ebp
mov eax, 0x1505
jae 0x42816d
lea ebx, [ebx]
movsx esi, byte [ecx]
imul eax, eax, 0x21
xor eax, esi
inc ecx
cmp ecx, edx
jb 0x428160
mov ebx, dword [esp + 0x14]
xor edx, edx
div dword [ebx + 8]
mov ecx, dword [ebx]
mov edi, dword [ecx + edx*4]
mov eax, dword [edi]
test eax, eax
mov dword [esp + 0x18], edi
je 0x4281b3
mov ebx, dword [eax]
mov edi, dword [ebx + 8]
cmp edi, dword [esp + 0x1c]
mov esi, dword [ebx + 4]
jne 0x4281a4
mov dl, byte [esi]
cmp dl, byte [ebp]
jne 0x4281a4
mov ecx, edi
mov edi, ebp
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4281f5
mov eax, dword [eax + 8]
test eax, eax
jne 0x428185
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
push 0xc
call fcn.004504af
push ebp
mov esi, eax
call fcn.0045605e
mov ecx, dword [esp + 0x28]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 8], eax
mov dword [esi], ecx
mov edx, dword [edi + 4]
push esi
push edx
push edi
call fcn.00432b40
add esp, 0x14
test eax, eax
je 0x428212
mov eax, dword [ebx + 0xc]
pop edi
pop esi
inc eax
mov dword [ebx + 0xc], eax
pop ebp
mov eax, 1
pop ebx
ret
mov eax, dword [ebx]
mov ecx, dword [esp + 0x14]
push eax
call dword [ecx + 4]
mov edx, dword [esp + 0x24]
add esp, 4
pop edi
pop esi
pop ebp
mov dword [ebx], edx
mov eax, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x428220
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
lea edx, [eax + ebp]
cmp ebp, edx
push esi
push edi
mov ecx, ebp
mov eax, 0x1505
jae 0x42824d
lea ebx, [ebx]
movsx esi, byte [ecx]
imul eax, eax, 0x21
xor eax, esi
inc ecx
cmp ecx, edx
jb 0x428240
mov ecx, dword [esp + 0x14]
xor edx, edx
div dword [ecx + 8]
mov ecx, dword [ecx]
mov edx, dword [ecx + edx*4]
mov edx, dword [edx]
test edx, edx
je 0x428287
mov eax, dword [edx]
mov edi, dword [eax + 8]
cmp edi, dword [esp + 0x1c]
mov esi, dword [eax + 4]
jne 0x428280
mov cl, byte [esi]
cmp cl, byte [ebp]
jne 0x428280
mov ecx, edi
mov edi, ebp
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x42828e
mov edx, dword [edx + 8]
test edx, edx
jne 0x428261
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [eax]
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
push 0
push eax
push ecx
push edx
call sub.WS2_32.dll_send
mov esi, eax
cmp esi, 0xffffffff
jne 0x42a69c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x2733
jne 0x42a69c
xor esi, esi
mov eax, dword [esp + 0x18]
mov dword [eax], esi
xor eax, eax
cmp esi, 0xffffffff
setne al
pop esi
dec eax
and eax, 0x37
ret

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

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x1c]
push 0
push eax
push ecx
push edx
mov dword [edi], 0
call sub.WS2_32.dll_recv
mov esi, eax
cmp esi, 0xffffffff
jne 0x42a6ea
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x2733
jne 0x42a6ea
pop edi
or eax, esi
pop esi
ret
mov dword [edi], esi
pop edi
xor eax, eax
pop esi
ret

Function at 0x42a700
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x78]
test eax, eax
je 0x42a727
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push ecx
push edx
push esi
call eax
add esp, 0x14
pop esi
ret
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x42a761
cmp eax, 2
jg 0x42a761
mov ecx, dword [esi + 8]
mov edx, dword [eax*4 + 0x477960]
push ecx
push 1
push 2
push edx
call fcn.00452744
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
push 1
push ecx
push edx
call fcn.00452744
add esp, 0x20
xor eax, eax
pop esi
ret
Function at 0x42a770
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x408
mov eax, dword [0x48db98]
push esi
mov esi, dword [esp + 0x410]
mov dword [esp + 0x408], eax
mov al, byte [esi + 0x154]
test al, al
je 0x42a824
mov ecx, dword [esp + 0x414]
lea eax, [esp + 0x418]
push eax
push ecx
lea edx, [esp + 0xc]
push 0x400
push edx
call fcn.0042a3f0
lea eax, [esp + 0x14]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42a7c1
sub eax, edx
push edi
mov edi, eax
mov eax, dword [esi + 0x78]
test eax, eax
je 0x42a7fb
mov ecx, dword [esi + 0xc]
push ecx
push edi
lea edx, [esp + 0x10]
push edx
push 0
push esi
call eax
add esp, 0x14
pop edi
pop esi
mov ecx, dword [esp + 0x404]
call fcn.0044ffb2
add esp, 0x408
ret
mov eax, dword [esi + 8]
mov ecx, dword [0x477960]
push eax
push 1
push 2
push ecx
call fcn.00452744
mov edx, dword [esi + 8]
push edx
push 1
lea eax, [esp + 0x20]
push edi
push eax
call fcn.00452744
add esp, 0x20
pop edi
mov ecx, dword [esp + 0x408]
pop esi
call fcn.0044ffb2
add esp, 0x408
ret

Function at 0x42a840
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x42a8ff
mov cl, byte [esi + 0x82b4]
test cl, cl
jne 0x42a8ff
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edx
push pe_nt_image_headers32
push eax
call fcn.0042a3f0
mov al, byte [esi + 0x154]
add esp, 0x10
test al, al
mov byte [esi + 0x82b4], 1
je 0x42a8ff
mov ecx, dword [esi + 0x10]
push edi
mov edi, ecx
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x42a890
push ebx
sub edi, edx
xor bl, bl
cmp edi, 0x100
push ebp
jge 0x42a8b3
mov byte [ecx + edi], 0xa
mov eax, dword [esi + 0x10]
inc edi
mov bl, 1
mov byte [edi + eax], 0
mov eax, dword [esi + 0x78]
test eax, eax
mov ebp, dword [esi + 0x10]
je 0x42a8cd
mov ecx, dword [esi + 0xc]
push ecx
push edi
push ebp
push 0
push esi
call eax
add esp, 0x14
jmp 0x42a8f0
mov edx, dword [esi + 8]
mov eax, dword [0x477960]
push edx
push 1
push 2
push eax
call fcn.00452744
mov ecx, dword [esi + 8]
push ecx
push 1
push edi
push ebp
call fcn.00452744
add esp, 0x20
pop ebp
test bl, bl
pop ebx
je 0x42a8fe
mov edx, dword [esi + 0x10]
mov byte [edi + edx - 1], 0
pop edi
pop esi
ret