joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, 0x4fa216
call fcn.0049af19
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40848e
xor eax, eax
jmp 0x40850e
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4084a5
xor eax, eax
jmp 0x40850e
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4084f1
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x4084f1
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x4084c8
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x4084fd
xor eax, eax
jmp 0x40850e
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x40850b
xor eax, eax
jmp 0x40850e
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x409a60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c263d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov ecx, 0x4fa828
call fcn.0049af19
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00409c50
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.004096d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00409dd0
mov dword [ebp - 0x20], 0x4099e0
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.0040ac50
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
push 0
call fcn.004a8209
add esp, 0x18
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x409af6
lea ecx, [ebp - 0x14]
call fcn.0040acd0
jmp 0x409b07
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
push 6
call fcn.0049c7d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00409dd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a580
Capabilities:
Check if file exists
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c23ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov ecx, 0x4fa838
call fcn.0049af19
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x4c9c64
call fcn.00401a20
call fcn.00408140
add esp, 0x18
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x40a5d5
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
jmp 0x40a6bc
push 0x4c9c68
lea ecx, [ebp - 0x18]
call fcn.004040b0
mov dword [ebp - 4], 0
push str.D:Program_Filesgptchrometmp
lea ecx, [ebp - 0x14]
call fcn.004040b0
lea ecx, [ebp - 0x18]
call fcn.00404dc0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40a63d
push 0
lea ecx, [ebp - 0x18]
call fcn.00404dc0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40a635
mov edx, dword [ebp + 8]
mov byte [edx], 1
lea ecx, [ebp - 0x18]
call fcn.00404dc0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40a63b
mov eax, dword [ebp + 8]
mov byte [eax], 0
jmp 0x40a6a5
lea ecx, [ebp - 0x14]
call fcn.00404dc0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a673
lea ecx, [ebp - 0x14]
call fcn.00404dc0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40a66b
mov ecx, dword [ebp + 8]
mov byte [ecx], 1
jmp 0x40a671
mov edx, dword [ebp + 8]
mov byte [edx], 0
jmp 0x40a6a5
push 0
lea ecx, [ebp - 0x14]
call fcn.00404dc0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40a69f
mov eax, dword [ebp + 8]
mov byte [eax], 1
lea ecx, [ebp - 0x14]
call fcn.00404dc0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40a6a5
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
lea ecx, [ebp - 0x14]
call fcn.00404960
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404960
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40c760
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c28f5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x14], ecx
mov ecx, 0x4fab41
call fcn.0049af19
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x465
ja 0x40c7b5
cmp dword [ebp - 0x18], 0x465
je 0x40c7f5
cmp dword [ebp - 0x18], 0x113
je 0x40c7d5
jmp case.0x40c7ce.2
mov ecx, dword [ebp - 0x18]
sub ecx, 0x466
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 7
ja case.0x40c7ce.2
mov edx, dword [ebp - 0x18]
jmp dword [edx*4 + 0x40c994]
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0040cb30
mov dword [ebp - 0x24], eax
jmp case.0x40c7ce.2
mov ecx, dword [ebp - 0x14]
call fcn.0040d0d0
jmp case.0x40c7ce.2
push 1
mov ecx, dword [ebp - 0x14]
call fcn.00452a0b
jmp case.0x40c7ce.2
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x7a4], 1
jmp case.0x40c7ce.2
cmp dword [ebp + 0xc], 0
je 0x40c839
push 1
push 1
mov ecx, dword [ebp - 0x14]
call fcn.00452f72
jmp 0x40c868
push 1
push 0
mov ecx, dword [ebp - 0x14]
call fcn.00452f72
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x7cc], 0
je 0x40c868
push 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x7cc]
call fcn.0044b2cd
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x40c7ce.2
lea ecx, [ebp - 0x1c]
call fcn.004041e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
shl ecx, 1
push ecx
push str._d__
lea edx, [ebp - 0x1c]
push edx
call fcn.00405c50
add esp, 0xc
mov eax, dword [ebp + 0xc]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x7c0]
call fcn.00454dbf
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00404960
jmp case.0x40c7ce.2
cmp dword [ebp + 0xc], 1
jne 0x40c8dd
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x7a0], 0xffffffdc
cmp dword [ebp + 0xc], 0
je 0x40c8e9
mov byte [ebp - 0xd], 1
jmp 0x40c8ed
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x7c4]
mov eax, dword [ebp - 0x14]
mov edx, dword [edx]
mov ecx, dword [eax + 0x7c4]
mov eax, dword [edx + 0x104]
call eax
jmp case.0x40c7ce.2
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x772]
test edx, edx
je 0x40c928
push 1
mov ecx, dword [ebp - 0x14]
call fcn.00452a0b
jmp case.0x40c7ce.2
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00404030
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00404dc0
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x7c8]
mov eax, dword [ebp - 0x14]
mov edx, dword [edx]
mov ecx, dword [eax + 0x7c8]
mov eax, dword [edx + 0x2c]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00404960
jmp case.0x40c7ce.2
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40ce10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c294e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], 0
mov ecx, 0x4fab41
call fcn.0049af19
mov dword [ebp - 0x14], reloc.WS2_32.dll_accept
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40ce61
mov dword [ebp - 0x14], reloc.WS2_32.dll_bind
mov ecx, dword [ebp + 8]
call fcn.004041e0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x18]
call fcn.004040b0
mov dword [ebp - 4], 2
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00405050
lea edx, [ebp - 0x1c]
push edx
push 0x20119
push 0
lea ecx, [ebp - 0x18]
call fcn.00404dc0
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40cf26
mov dword [ebp - 0x14], reloc.WS2_32.dll_accept
lea ecx, [ebp - 0x1c]
push ecx
push 0x20119
push 0
lea ecx, [ebp - 0x18]
call fcn.00404dc0
push eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40cf26
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00404960
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
and eax, 1
je 0x40cf0f
and dword [ebp - 0x10], 0xfffffffe
mov ecx, dword [ebp + 8]
call fcn.00404960
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404960
mov eax, dword [ebp + 8]
jmp 0x40cfc7
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0x104
push 0x208
push 0
lea ecx, [ebp - 0x230]
push ecx
call fcn.0049d9a0
add esp, 0xc
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0
push str.InstallLocation
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cf7d
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404ce0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00404960
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x40cfb5
and dword [ebp - 0x10], 0xfffffffe
mov ecx, dword [ebp + 8]
call fcn.00404960
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404960
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x40cfe0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, 0x4fab41
call fcn.0049af19
push 0x4cb62c
lea ecx, [ebp - 4]
call fcn.004040b0
push 5
push 0
push 0
lea ecx, [ebp - 4]
call fcn.00404dc0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 4]
call fcn.00404960
mov esp, ebp
pop ebp
ret
Function at 0x40d030
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, 0x4fab41
call fcn.0049af19
push 0x4cb61c
lea ecx, [ebp - 4]
call fcn.004040b0
push 5
push 0
push 0
lea ecx, [ebp - 4]
call fcn.00404dc0
push eax
push 0x4cb620
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 4]
call fcn.00404960
mov esp, ebp
pop ebp
ret

Function at 0x40d080
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, 0x4fab41
call fcn.0049af19
push 0x4cb60c
lea ecx, [ebp - 4]
call fcn.004040b0
push 5
push 0
push 0
lea ecx, [ebp - 4]
call fcn.00404dc0
push eax
push 0x4cb610
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 4]
call fcn.00404960
mov esp, ebp
pop ebp
ret
Function at 0x40e310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, 0x4fae55
call fcn.0049af19
push 0x4cc3c0
push 0x81
call fcn.0044d7b0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40e3af
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
push eax
call fcn.0044d7b0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40e3a5
mov ecx, dword [ebp - 4]
push ecx
call fcn.0044d7b0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x40e3a5
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004522e0
add esp, 0xc
push 0
push ecx
mov ecx, esp
push str.res.xml
call fcn.0040e210
call fcn.0040e240
mov ecx, eax
call fcn.00455551
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov esp, ebp
pop ebp
ret
Function at 0x414300
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x1505
lea ebx, [esi + eax]
cmp esi, ebx
jae 0x414336
mov al, byte [esi]
push eax
call fcn.0041c1d0
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x414318
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41cd20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x41cd4b
cmp dword [esi + 0x84], 0
je 0x41cd4b
push 2
push 3
push esi
call fcn.0041c550
push dword [ebp + 0xc]
call fcn.0041c840
add esp, 0x10
jmp 0x41cd5a
push dword [ebp + 0xc]
call fcn.0041c840
add esp, 4
test esi, esi
je 0x41cd6e
cmp dword [esi + 0x84], 0
je 0x41cd6e
push 3
push esi
call fcn.0041c590
add esp, 8
pop esi
pop ebp
ret

Function at 0x41ce20
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x41ce61
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x100], 0
jne 0x41ce51
push 0
call fcn.0041ce20
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x100], cl
mov eax, dword [esi + 0x7c]
pop esi
cmp byte [eax + 0x100], 2
sete al
pop ebp
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x41ce77
xor al, al
pop esi
pop ebp
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
pop ebp
ret

Function at 0x4240f0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x42410b
cmp dword [edi], 0
jne 0x42411d
test esi, esi
je 0x424114
cmp dword [esi], 0
jne 0x42411d
test ebx, ebx
je 0x424166
cmp dword [ebx], 0
je 0x424166
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
push eax
call fcn.00447e30
add esp, 0xc
test ebx, ebx
je 0x424138
cmp dword [ebx], 0
jne 0x42413a
xor ebx, ebx
test esi, esi
je 0x424143
cmp dword [esi], 0
jne 0x424145
xor esi, esi
test edi, edi
je 0x42414e
cmp dword [edi], 0
jne 0x424150
xor edi, edi
push eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.004240a0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426e20
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00414c30
push dword [ebp + 8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10], xmm0
call fcn.00425910
push dword [ebp + 0xc]
mov edi, eax
call fcn.00425910
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x426ea7
lea eax, [ebp - 0x20]
push eax
call fcn.00414c30
movups xmm0, xmmword [ebp - 0x10]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.00414ce0
add esp, 0x20
test edx, edx
ja 0x426eca
jb 0x426e95
cmp eax, 0x3e8
ja 0x426eca
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x426e60
test edi, edi
je 0x426eb4
push edi
call fcn.004a1ba4
add esp, 4
test esi, esi
je 0x426ec1
push esi
call fcn.004a1ba4
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x426ed7
push edi
call fcn.004a1ba4
add esp, 4
test esi, esi
je 0x426ee4
push esi
call fcn.004a1ba4
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4272e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [eax], ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x42745d
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x427449
push edi
nop dword [eax]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42733e
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x427330
sub eax, edx
lea ecx, [eax + 1]
jmp 0x427340
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 8], ecx
cmp eax, 2
jne 0x427352
mov eax, 0x10
jmp 0x427360
cmp eax, 0x17
jne 0x427405
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
je 0x427405
mov edx, dword [esi + 0x10]
test edx, edx
je 0x427405
cmp edx, eax
jb 0x427405
add ecx, 0x20
add eax, ecx
push eax
call dword [0x4f6010]
mov edi, eax
add esp, 4
test edi, edi
je 0x42743e
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.0049d420
mov edx, dword [ebp - 8]
add esp, 0xc
test edx, edx
je 0x4273f3
mov eax, dword [edi + 0x18]
add eax, dword [ebp - 4]
push edx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.0049d420
add esp, 0xc
mov eax, dword [ebp - 0xc]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x427402
mov dword [eax + 0x1c], edi
mov dword [ebp - 0xc], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x427320
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
pop edi
test eax, eax
je 0x427422
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x427445
push ebx
call fcn.004272b0
mov eax, dword [ebp + 0x14]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 8
jmp 0x427413
test ebx, ebx
jne 0x427455
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x427720
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.004a8209
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x427747
cmp ecx, 0xffffffff
cmovne eax, ecx
pop ebp
ret

Function at 0x4278d0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0049d9a0
add esp, 0xc
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
pop ebp
ret
Function at 0x42d180
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x4f6400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
mov ebx, dword [edi + 0x18]
mov esi, dword [ebx + 0x12c]
push esi
mov dword [ebp - 0x88], 0xffffffff
mov dword [ebp - 0x8c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x42d1f6
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 0x88], eax
jmp 0x42d1fc
mov eax, dword [ebp - 0x88]
cmp eax, 0xffffffff
jne 0x42d225
push str.Error_accept__ing_server_connect
push edi
call fcn.00419620
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b9c6
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server
push edi
call fcn.004196e0
mov byte [ebx + 0x1d5], 0
push 1
push dword [ebp - 0x88]
call fcn.00447f40
lea eax, [ebp - 0x88]
push eax
push 1
push ebx
push edi
call fcn.0043cc20
add esp, 0x20
test eax, eax
jne 0x42d2b4
cmp dword [edi + 0x1ac], eax
je 0x42d2b2
push 1
push edi
call fcn.00411c10
mov eax, dword [edi + 0x1ac]
push 1
push dword [ebp - 0x88]
push dword [edi + 0x1b0]
call eax
push 0
push edi
mov esi, eax
call fcn.00411c10
add esp, 0x1c
test esi, esi
je 0x42d2b2
push ebx
push edi
call fcn.0042d750
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b9c6
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049b9c6
mov esp, ebp
pop ebp
ret

Function at 0x42f800
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0x18]
cmp eax, 0x64
jb 0x42f832
push str.Couldnt_set_desired_mode
push esi
call fcn.00419620
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x42f849
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.004196e0
add esp, 0xc
mov al, byte [ebp + 0x10]
cmp al, 0x13
jne 0x42f861
push ebx
push esi
call fcn.0042f4d0
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x14
jne 0x42f875
push esi
call fcn.0042e520
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x15
jne 0x42f889
push esi
call fcn.0042f4b0
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x16
jne 0x42f898
push esi
call fcn.0042f6e0
add esp, 4
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret