joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d6d0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
push esi
mov esi, ecx
mov ecx, 0x524e73
push edi
call fcn.004e6414
mov edi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x1c]
mov word [esp + 0x14], 0x3a43
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x1a], 0x5c
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], 0
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call edi
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0x14]
mul dword [esp + 0x18]
cmp byte [esi + 0x770], 0
mov dword [esi + 0x790], eax
mov dword [esi + 0x794], edx
je 0x41d85c
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], 0
push eax
lea eax, [esp + 0x14]
mov word [esp + 0x10], 0x3a44
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x16], 0x5c
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 0
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 0
call edi
mov eax, dword [esp + 0x18]
imul eax, dword [esp + 0x14]
push 6
push 0
mov dword [esp + 0x14], 0
mul dword [esp + 0x18]
mov dword [esi + 0x798], eax
mov dword [esi + 0x79c], edx
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [esp + 0xc]
push eax
push 0x5100f0
push 0
push 0x512300
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
js 0x41d84e
lea eax, [esp + 0x3c]
push eax
push str.System.Volume.BitLockerProtection
call dword [sym.imp.PROPSYS.dll_PSGetPropertyKeyFromName]
test eax, eax
js 0x41d84e
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
xorps xmm0, xmm0
lea edx, [esp + 0x40]
movaps xmmword [esp + 0x24], xmm0
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x34]
test eax, eax
js 0x41d84e
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp edi, 1
je 0x41d85c
cmp edi, 3
je 0x41d85c
cmp edi, 5
je 0x41d85c
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x41d85c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
pop edi
mov dword [esi + 0x79c], 0
mov dword [esi + 0x798], 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41e2b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8dde
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push esi
push edi
mov dword [ebp - 0x18], 1
mov ecx, 0x524e73
mov dword [ebp - 4], 0
call fcn.004e6414
mov esi, reloc.WS2_32.dll_accept
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
mov ecx, reloc.WS2_32.dll_bind
cmovne esi, ecx
mov byte [ebp - 4], 1
call fcn.00404150
mov ecx, eax
test ecx, ecx
je 0x41e48e
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
mov dword [ebp - 0x18], 1
call fcn.00408580
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x10]
mov eax, dword [ebp + 0xc]
push dword [eax - 0xc]
push eax
call fcn.00408e20
lea eax, [ebp - 0x14]
push eax
push 0x20119
push 0
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41e3cf
lea eax, [ebp - 0x14]
mov esi, reloc.WS2_32.dll_accept
push eax
push 0x20119
push 0
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41e3cf
mov edx, dword [ebp - 0x10]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41e39f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x41e47a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0x208
lea eax, [ebp - 0x228]
mov dword [ebp - 0x20], 1
push 0
push eax
mov dword [ebp - 0x1c], 0x104
call fcn.004bc490
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.InstallLocation
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e43e
lea ecx, [ebp - 0x228]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e420
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00408c90
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41e462
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x41e47a
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00403bc0
int3
Function at 0x41ec80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8ec0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push esi
push edi
mov ecx, 0x524e73
call fcn.004e6414
push 4
call fcn.0046f6ea
lea eax, [ebp - 0x94]
push eax
call fcn.0046a9ea
add esp, 8
mov dword [ebp - 4], 0
call fcn.0046ab88
dec eax
cmp eax, 3
ja case.default.0x41ecd6
jmp dword [eax*4 + 0x41ee40]
push 0x512818
lea ecx, [ebp - 0x94]
call fcn.00473b6c
lea ecx, [ebp - 0x94]
call fcn.00473aad
push eax
call fcn.0046f6a1
add esp, 4
call fcn.0041ebe0
push 0
push ecx
mov ecx, esp
mov dword [ecx], str.res.xml
mov ecx, eax
call fcn.00476f9e
jmp case.default.0x41ecd6
push str.skin_
lea ecx, [ebp - 0x94]
call fcn.00473b6c
lea ecx, [ebp - 0x94]
call fcn.00473aad
push eax
call fcn.0046f6a1
add esp, 4
call fcn.0041ebe0
push 0x51284c
push ecx
mov ecx, esp
mov dword [ecx], str.IDR_RES
mov ecx, eax
call fcn.00476f9e
jmp case.default.0x41ecd6
push str.skin_
lea ecx, [ebp - 0x94]
call fcn.00473b6c
lea ecx, [ebp - 0x94]
call fcn.00473aad
push eax
call fcn.0046f6a1
push 0
push 1
push str.ADMonSetup.zip
call fcn.0046f785
add esp, 0x10
jmp 0x41ed01
push str.skin_
lea ecx, [ebp - 0x94]
call fcn.00473b6c
lea ecx, [ebp - 0x94]
call fcn.00473aad
push eax
call fcn.0046f6a1
add esp, 4
push 0x511184
push 0x81
call fcn.0046ab73
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je case.default.0x41ecd6
push esi
call fcn.0046ab73
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41ee1e
push esi
call fcn.0046ab73
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x41ee1e
push 0
push eax
push edi
call fcn.0046f6f7
add esp, 0xc
call fcn.0041ebe0
push 0
push ecx
mov ecx, esp
mov dword [ecx], str.res.xml
mov ecx, eax
call fcn.00476f9e
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x94]
call fcn.0047392d
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4272f0
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 0x427326
mov al, byte [esi]
push eax
call fcn.00435090
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 0x427308
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 0x433480
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 0x4334a0
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x4ef038
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x4ef048
push esi
mov dword [ebp - 8], ebx
call fcn.004ce532
add esp, 8
test eax, eax
je 0x4334ec
test ebx, ebx
je 0x4334dc
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 0x433515
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x433515
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 0x4335d8
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433531
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4335ce
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4335ce
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433570
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 0x433590
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 0x4335a5
mov eax, dword [ebp - 8]
test eax, eax
je 0x4335c5
push 8
push 0
push ebx
call eax
jmp 0x4335cc
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x520004]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4335f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5203c4]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x433649
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x433636
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x433630
shr eax, 8
cmp al, 2
je 0x433649
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b96d5
mov esp, ebp
pop ebp
ret
push str.iphlpapi.dll
call fcn.00433480
add esp, 4
mov dword [0x522568], eax
test eax, eax
je 0x433674
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x433674
mov dword [0x522564], eax
push 3
push 2
push 0
push 0
push 6
call fcn.00460b80
add esp, 0x14
test al, al
setne byte [0x523e44]
push 0x523e48
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004b96d5
mov esp, ebp
pop ebp
ret

Function at 0x435ec0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x435eeb
cmp dword [esi + 0x84], 0
je 0x435eeb
push 2
push 3
push esi
call fcn.00435650
push dword [ebp + 0xc]
call fcn.00435940
add esp, 0x10
jmp 0x435efa
push dword [ebp + 0xc]
call fcn.00435940
add esp, 4
test esi, esi
je 0x435f0e
cmp dword [esi + 0x84], 0
je 0x435f0e
push 3
push esi
call fcn.00435690
add esp, 8
pop esi
pop ebp
ret

Function at 0x435ff0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x436031
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x100], 0
jne 0x436021
push 0
call fcn.00435ff0
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 0x436047
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 0x440ab0
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 0x440acb
cmp dword [edi], 0
jne 0x440add
test esi, esi
je 0x440ad4
cmp dword [esi], 0
jne 0x440add
test ebx, ebx
je 0x440b26
cmp dword [ebx], 0
je 0x440b26
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
push eax
call fcn.00465c50
add esp, 0xc
test ebx, ebx
je 0x440af8
cmp dword [ebx], 0
jne 0x440afa
xor ebx, ebx
test esi, esi
je 0x440b03
cmp dword [esi], 0
jne 0x440b05
xor esi, esi
test edi, edi
je 0x440b0e
cmp dword [edi], 0
jne 0x440b10
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.00440a60
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x443980
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.00427ce0
push dword [ebp + 8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10], xmm0
call fcn.004422f0
push dword [ebp + 0xc]
mov edi, eax
call fcn.004422f0
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 0x443a07
lea eax, [ebp - 0x20]
push eax
call fcn.00427ce0
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.00427d90
add esp, 0x20
test edx, edx
ja 0x443a2a
jb 0x4439f5
cmp eax, 0x3e8
ja 0x443a2a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x4439c0
test edi, edi
je 0x443a14
push edi
call fcn.004c529d
add esp, 4
test esi, esi
je 0x443a21
push esi
call fcn.004c529d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x443a37
push edi
call fcn.004c529d
add esp, 4
test esi, esi
je 0x443a44
push esi
call fcn.004c529d
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x443e40
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 0x443fbd
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x443fa9
push edi
nop dword [eax]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x443e9e
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x443e90
sub eax, edx
lea ecx, [eax + 1]
jmp 0x443ea0
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 8], ecx
cmp eax, 2
jne 0x443eb2
mov eax, 0x10
jmp 0x443ec0
cmp eax, 0x17
jne 0x443f65
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
je 0x443f65
mov edx, dword [esi + 0x10]
test edx, edx
je 0x443f65
cmp edx, eax
jb 0x443f65
add ecx, 0x20
add eax, ecx
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x443f9e
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.004bc5f0
mov edx, dword [ebp - 8]
add esp, 0xc
test edx, edx
je 0x443f53
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.004bc5f0
add esp, 0xc
mov eax, dword [ebp - 0xc]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x443f62
mov dword [eax + 0x1c], edi
mov dword [ebp - 0xc], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x443e80
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
pop edi
test eax, eax
je 0x443f82
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x443fa5
push ebx
call fcn.00443e10
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 0x443f73
test ebx, ebx
jne 0x443fb5
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 0x4443d0
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.004c6685
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x4443f7
cmp ecx, 0xffffffff
cmovne eax, ecx
pop ebp
ret

Function at 0x444580
Capabilities:
Generate random numbers via winapi

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x5203c4]
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 0x44a0a6
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 0x44a0ac
mov eax, dword [ebp - 0x88]
cmp eax, 0xffffffff
jne 0x44a0d5
push str.Error_accept__ing_server_connect
push edi
call fcn.004311f0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b96d5
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server
push edi
call fcn.004312b0
mov byte [ebx + 0x1d5], 0
push 1
push dword [ebp - 0x88]
call fcn.00465d60
lea eax, [ebp - 0x88]
push eax
push 1
push ebx
push edi
call fcn.0045a9e0
add esp, 0x20
test eax, eax
jne 0x44a164
cmp dword [edi + 0x1ac], eax
je 0x44a162
push 1
push edi
call fcn.00422c90
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.00422c90
add esp, 0x1c
test esi, esi
je 0x44a162
push ebx
push edi
call fcn.0044a600
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b96d5
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.004b96d5
mov esp, ebp
pop ebp
ret

Function at 0x44c6b0
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 0x44c6e2
push str.Couldnt_set_desired_mode
push esi
call fcn.004311f0
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x44c6f9
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.004312b0
add esp, 0xc
mov al, byte [ebp + 0x10]
cmp al, 0x13
jne 0x44c711
push ebx
push esi
call fcn.0044c380
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x14
jne 0x44c725
push esi
call fcn.0044b3d0
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x15
jne 0x44c739
push esi
call fcn.0044c360
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x16
jne 0x44c748
push esi
call fcn.0044c590
add esp, 4
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4530c0
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 0x453108
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004311f0
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push esi
call fcn.00452970
add esp, 0x10
pop esi
pop ebx
pop ebp
ret

Function at 0x453240
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 0x4533a8
lea ecx, [edx + 0x1cb4]
push edi
lea edi, [edx + 0x1eb4]
mov eax, ecx
mov dword [edi], ecx
cmp ecx, edi
jae 0x453280
lea eax, [ecx + 1]
mov byte [ecx], 0xff
mov dword [edi], eax
cmp eax, edi
jae 0x453294
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x453294
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 0x45330b
mov eax, dword [ebp + 0xc]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x45330b
mov eax, dword [ebp - 8]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x45330b
mov eax, dword [ebp - 0xc]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x45330b
mov byte [ecx], dl
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x45330b
mov byte [ecx], 0xff
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x45330b
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.00452a70
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 0x453362
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.004311f0
add esp, 0xc
mov esi, dword [ebp + 8]
push 4
lea eax, [esi + 0x1cb7]
push eax
push ebx
call fcn.00453120
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 0x4533a7
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.004311f0
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret