joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42aeb0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6c55
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x14], ecx
mov ecx, 0x536b43
call fcn.004c6d76
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x465
ja 0x42af05
cmp dword [ebp - 0x18], 0x465
je 0x42af45
cmp dword [ebp - 0x18], 0x113
je 0x42af25
jmp case.0x42af1e.2
mov ecx, dword [ebp - 0x18]
sub ecx, 0x466
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 7
ja case.0x42af1e.2
mov edx, dword [ebp - 0x18]
jmp dword [edx*4 + 0x42b0e4]
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.0042b5a0
mov dword [ebp - 0x24], eax
jmp case.0x42af1e.2
mov ecx, dword [ebp - 0x14]
call fcn.0042bb40
jmp case.0x42af1e.2
push 1
mov ecx, dword [ebp - 0x14]
call fcn.0047ed28
jmp case.0x42af1e.2
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x7a4], 1
jmp case.0x42af1e.2
cmp dword [ebp + 0xc], 0
je 0x42af89
push 1
push 1
mov ecx, dword [ebp - 0x14]
call fcn.0047f28f
jmp 0x42afb8
push 1
push 0
mov ecx, dword [ebp - 0x14]
call fcn.0047f28f
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x7cc], 0
je 0x42afb8
push 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x7cc]
call fcn.00477274
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x42af1e.2
lea ecx, [ebp - 0x1c]
call fcn.00407780
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.00409820
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.00484a9a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00408170
jmp case.0x42af1e.2
cmp dword [ebp + 0xc], 1
jne 0x42b02d
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x7a0], 0xffffffdc
cmp dword [ebp + 0xc], 0
je 0x42b039
mov byte [ebp - 0xd], 1
jmp 0x42b03d
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.0x42af1e.2
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x772]
test edx, edx
je 0x42b078
push 1
mov ecx, dword [ebp - 0x14]
call fcn.0047ed28
jmp case.0x42af1e.2
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00407810
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004085c0
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.00408170
jmp case.0x42af1e.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 0x42b880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6cde
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, 0x536b43
call fcn.004c6d76
mov dword [ebp - 0x14], reloc.WS2_32.dll_accept
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x42b8d1
mov dword [ebp - 0x14], reloc.WS2_32.dll_bind
mov ecx, dword [ebp + 8]
call fcn.00407780
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.00407890
mov dword [ebp - 4], 2
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004088f0
lea edx, [ebp - 0x1c]
push edx
push 0x20119
push 0
lea ecx, [ebp - 0x18]
call fcn.004085c0
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42b996
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.004085c0
push eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42b996
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00408170
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
and eax, 1
je 0x42b97f
and dword [ebp - 0x10], 0xfffffffe
mov ecx, dword [ebp + 8]
call fcn.00408170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00408170
mov eax, dword [ebp + 8]
jmp 0x42ba37
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0x104
push 0x208
push 0
lea ecx, [ebp - 0x230]
push ecx
call fcn.004ca3c0
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 0x42b9ed
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp + 8]
call fcn.004084e0
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.00408170
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x42ba25
and dword [ebp - 0x10], 0xfffffffe
mov ecx, dword [ebp + 8]
call fcn.00408170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00408170
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x42ba50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, 0x536b43
call fcn.004c6d76
push str.https:__www.gptchrome.net_privacy.html
lea ecx, [ebp - 4]
call fcn.00407890
push 5
push 0
push 0
lea ecx, [ebp - 4]
call fcn.004085c0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 4]
call fcn.00408170
mov esp, ebp
pop ebp
ret
Function at 0x42baa0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, 0x536b43
call fcn.004c6d76
push str.https:__www.gptchrome.net_userspe_
lea ecx, [ebp - 4]
call fcn.00407890
push 5
push 0
push 0
lea ecx, [ebp - 4]
call fcn.004085c0
push eax
push 0x5012b4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 4]
call fcn.00408170
mov esp, ebp
pop ebp
ret

Function at 0x42baf0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, 0x536b43
call fcn.004c6d76
push str.https:__www.gptchrome.net_license_
lea ecx, [ebp - 4]
call fcn.00407890
push 5
push 0
push 0
lea ecx, [ebp - 4]
call fcn.004085c0
push eax
push 0x5012a8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 4]
call fcn.00408170
mov esp, ebp
pop ebp
ret
Function at 0x42d000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, 0x536e57
call fcn.004c6d76
push 0x5023e8
push 0x81
call fcn.00479ad7
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42d09f
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
push eax
call fcn.00479ad7
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42d095
mov ecx, dword [ebp - 4]
push ecx
call fcn.00479ad7
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x42d095
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0047e5ff
add esp, 0xc
push 0
push ecx
mov ecx, esp
push str.res.xml
call fcn.0042cf00
call fcn.0042cf30
mov ecx, eax
call fcn.00484edc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov esp, ebp
pop ebp
ret
Function at 0x435460
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 0x435496
mov al, byte [esi]
push eax
call fcn.00443200
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 0x435478
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 0x441370
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.004413a0
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.004e358c

Function at 0x4415f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x441610
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x503c0c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x503c1c
push esi
mov dword [ebp - 8], ebx
call fcn.004dd0b2
add esp, 8
test eax, eax
je 0x44165c
test ebx, ebx
je 0x44164c
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x441685
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x441685
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x441748
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4416a1
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x532018]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x44173e
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x44173e
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4416e0
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x441700
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x441715
mov eax, dword [ebp - 8]
test eax, eax
je 0x441735
push 8
push 0
push ebx
call eax
jmp 0x44173c
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x53201c]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x441760
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5323f0]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x4417b9
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4417a6
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4417a0
shr eax, 8
cmp al, 2
je 0x4417b9
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c79b6
mov esp, ebp
pop ebp
ret
push str.iphlpapi.dll
call fcn.004415f0
add esp, 4
mov dword [0x534794], eax
test eax, eax
je 0x4417e4
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4417e4
mov dword [0x534790], eax
push 3
push 2
push 0
push 0
push 6
call fcn.0046ecf0
add esp, 0x14
test al, al
setne byte [0x535e44]
push 0x535e48
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004c79b6
mov esp, ebp
pop ebp
ret

Function at 0x444030
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x44405b
cmp dword [esi + 0x84], 0
je 0x44405b
push 2
push 3
push esi
call fcn.004437c0
push dword [ebp + 0xc]
call fcn.00443ab0
add esp, 0x10
jmp 0x44406a
push dword [ebp + 0xc]
call fcn.00443ab0
add esp, 4
test esi, esi
je 0x44407e
cmp dword [esi + 0x84], 0
je 0x44407e
push 3
push esi
call fcn.00443800
add esp, 8
pop esi
pop ebp
ret

Function at 0x444160
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4441a1
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x100], 0
jne 0x444191
push 0
call fcn.00444160
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 0x4441b7
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 0x44ec20
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 0x44ec3b
cmp dword [edi], 0
jne 0x44ec4d
test esi, esi
je 0x44ec44
cmp dword [esi], 0
jne 0x44ec4d
test ebx, ebx
je 0x44ec96
cmp dword [ebx], 0
je 0x44ec96
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
push eax
call fcn.00473dc0
add esp, 0xc
test ebx, ebx
je 0x44ec68
cmp dword [ebx], 0
jne 0x44ec6a
xor ebx, ebx
test esi, esi
je 0x44ec73
cmp dword [esi], 0
jne 0x44ec75
xor esi, esi
test edi, edi
je 0x44ec7e
cmp dword [edi], 0
jne 0x44ec80
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.0044ebd0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x451af0
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.00435e50
push dword [ebp + 8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10], xmm0
call fcn.00450460
push dword [ebp + 0xc]
mov edi, eax
call fcn.00450460
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 0x451b77
lea eax, [ebp - 0x20]
push eax
call fcn.00435e50
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.00435f00
add esp, 0x20
test edx, edx
ja 0x451b9a
jb 0x451b65
cmp eax, 0x3e8
ja 0x451b9a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x451b30
test edi, edi
je 0x451b84
push edi
call fcn.004ce7b4
add esp, 4
test esi, esi
je 0x451b91
push esi
call fcn.004ce7b4
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x451ba7
push edi
call fcn.004ce7b4
add esp, 4
test esi, esi
je 0x451bb4
push esi
call fcn.004ce7b4
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451fb0
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 0x45212d
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x452119
push edi
nop dword [eax]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45200e
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x452000
sub eax, edx
lea ecx, [eax + 1]
jmp 0x452010
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 8], ecx
cmp eax, 2
jne 0x452022
mov eax, 0x10
jmp 0x452030
cmp eax, 0x17
jne 0x4520d5
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
je 0x4520d5
mov edx, dword [esi + 0x10]
test edx, edx
je 0x4520d5
cmp edx, eax
jb 0x4520d5
add ecx, 0x20
add eax, ecx
push eax
call dword [0x532018]
mov edi, eax
add esp, 4
test edi, edi
je 0x45210e
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.004c9e40
mov edx, dword [ebp - 8]
add esp, 0xc
test edx, edx
je 0x4520c3
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.004c9e40
add esp, 0xc
mov eax, dword [ebp - 0xc]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x4520d2
mov dword [eax + 0x1c], edi
mov dword [ebp - 0xc], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x451ff0
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
pop edi
test eax, eax
je 0x4520f2
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x452115
push ebx
call fcn.00451f80
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 0x4520e3
test ebx, ebx
jne 0x452125
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 0x452540
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.004d5944
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x452567
cmp ecx, 0xffffffff
cmovne eax, ecx
pop ebp
ret

Function at 0x4526f0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004ca3c0
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 0x4581a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x5323f0]
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 0x458216
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 0x45821c
mov eax, dword [ebp - 0x88]
cmp eax, 0xffffffff
jne 0x458245
push str.Error_accept__ing_server_connect
push edi
call fcn.0043f360
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c79b6
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server
push edi
call fcn.0043f420
mov byte [ebx + 0x1d5], 0
push 1
push dword [ebp - 0x88]
call fcn.00473ed0
lea eax, [ebp - 0x88]
push eax
push 1
push ebx
push edi
call fcn.00468b50
add esp, 0x20
test eax, eax
jne 0x4582d4
cmp dword [edi + 0x1ac], eax
je 0x4582d2
push 1
push edi
call fcn.00430e00
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.00430e00
add esp, 0x1c
test esi, esi
je 0x4582d2
push ebx
push edi
call fcn.00458770
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c79b6
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.004c79b6
mov esp, ebp
pop ebp
ret

Function at 0x45a820
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 0x45a852
push str.Couldnt_set_desired_mode
push esi
call fcn.0043f360
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x45a869
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.0043f420
add esp, 0xc
mov al, byte [ebp + 0x10]
cmp al, 0x13
jne 0x45a881
push ebx
push esi
call fcn.0045a4f0
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x14
jne 0x45a895
push esi
call fcn.00459540
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x15
jne 0x45a8a9
push esi
call fcn.0045a4d0
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x16
jne 0x45a8b8
push esi
call fcn.0045a700
add esp, 4
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x461230
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0
mov byte [ebp + 0xa], cl
lea ecx, [ebp + 8]
push 3
mov eax, dword [esi + 0x18]
push ecx
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
push dword [eax + 0x128]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x461278
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0043f360
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push esi
call fcn.00460ae0
add esp, 0x10
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0x1f
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x124]
mov eax, dword [ebx + 0x18]
mov dword [ebp + 8], edx
mov dword [ebp - 4], eax
jne 0x461518
lea ecx, [edx + 0x1cb4]
push edi
lea edi, [edx + 0x1eb4]
mov eax, ecx
mov dword [edi], ecx
cmp ecx, edi
jae 0x4613f0
lea eax, [ecx + 1]
mov byte [ecx], 0xff
mov dword [edi], eax
cmp eax, edi
jae 0x461404
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x461404
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [edx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], eax
shr eax, 8
mov dword [ebp - 8], eax
movzx ecx, word [ecx + 0x1caa]
push ecx
call esi
mov ecx, dword [edi]
mov edx, eax
shr edx, 8
mov dword [ebp - 0xc], eax
cmp ecx, edi
jae 0x46147b
mov eax, dword [ebp + 0xc]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x46147b
mov eax, dword [ebp - 8]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x46147b
mov eax, dword [ebp - 0xc]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x46147b
mov byte [ecx], dl
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x46147b
mov byte [ecx], 0xff
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x46147b
mov byte [ecx], 0xf0
mov ecx, dword [edi]
inc ecx
mov eax, dword [ebp + 8]
lea esi, [eax + 0x1cb4]
mov dword [eax + 0x1eb8], ecx
sub ecx, esi
mov dword [edi], esi
sub ecx, 2
add eax, 0x1cb6
push ecx
push eax
push 0x3e
push ebx
call fcn.00460be0
mov eax, dword [ebp - 4]
add esp, 0x10
push 0
push 3
push esi
push dword [eax + 0x128]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x4614d2
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0043f360
add esp, 0xc
mov esi, dword [ebp + 8]
push 4
lea eax, [esi + 0x1cb7]
push eax
push ebx
call fcn.00461290
add esp, 0xc
lea eax, [esi + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x128]
call dword [sym.imp.WS2_32.dll_send]
pop esi
test eax, eax
jns 0x461517
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0043f360
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret