joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cda0
Capabilities:
Check if file exists
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2ced
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov ecx, 0x51f838
call fcn.004b60a9
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x4eac64
call fcn.00403110
call fcn.00409920
add esp, 0x18
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x40cdf5
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
jmp 0x40cedc
push 0x4eac68
lea ecx, [ebp - 0x18]
call fcn.00406130
mov dword [ebp - 4], 0
push str.D:Program_Filesgptchrometmp
lea ecx, [ebp - 0x14]
call fcn.00406130
lea ecx, [ebp - 0x18]
call fcn.00406e40
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ce5d
push 0
lea ecx, [ebp - 0x18]
call fcn.00406e40
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40ce55
mov edx, dword [ebp + 8]
mov byte [edx], 1
lea ecx, [ebp - 0x18]
call fcn.00406e40
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40ce5b
mov eax, dword [ebp + 8]
mov byte [eax], 0
jmp 0x40cec5
lea ecx, [ebp - 0x14]
call fcn.00406e40
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ce93
lea ecx, [ebp - 0x14]
call fcn.00406e40
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40ce8b
mov ecx, dword [ebp + 8]
mov byte [ecx], 1
jmp 0x40ce91
mov edx, dword [ebp + 8]
mov byte [edx], 0
jmp 0x40cec5
push 0
lea ecx, [ebp - 0x14]
call fcn.00406e40
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40cebf
mov eax, dword [ebp + 8]
mov byte [eax], 1
lea ecx, [ebp - 0x14]
call fcn.00406e40
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40cec5
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
lea ecx, [ebp - 0x14]
call fcn.004069e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004069e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x41af10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e39f5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x14], ecx
mov ecx, 0x51fb41
call fcn.004b60a9
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x465
ja 0x41af65
cmp dword [ebp - 0x18], 0x465
je 0x41afa5
cmp dword [ebp - 0x18], 0x113
je 0x41af85
jmp case.0x41af7e.2
mov ecx, dword [ebp - 0x18]
sub ecx, 0x466
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 7
ja case.0x41af7e.2
mov edx, dword [ebp - 0x18]
jmp dword [edx*4 + 0x41b144]
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.0041b2e0
mov dword [ebp - 0x24], eax
jmp case.0x41af7e.2
mov ecx, dword [ebp - 0x14]
call fcn.0041b4f0
jmp case.0x41af7e.2
push 1
mov ecx, dword [ebp - 0x14]
call fcn.0046db9b
jmp case.0x41af7e.2
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x7a4], 1
jmp case.0x41af7e.2
cmp dword [ebp + 0xc], 0
je 0x41afe9
push 1
push 1
mov ecx, dword [ebp - 0x14]
call fcn.0046e102
jmp 0x41b018
push 1
push 0
mov ecx, dword [ebp - 0x14]
call fcn.0046e102
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x7cc], 0
je 0x41b018
push 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x7cc]
call fcn.0046658d
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x41af7e.2
lea ecx, [ebp - 0x1c]
call fcn.00406260
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.00407b10
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.00470e89
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004069e0
jmp case.0x41af7e.2
cmp dword [ebp + 0xc], 1
jne 0x41b08d
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x7a0], 0xffffffdc
cmp dword [ebp + 0xc], 0
je 0x41b099
mov byte [ebp - 0xd], 1
jmp 0x41b09d
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.0x41af7e.2
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x772]
test edx, edx
je 0x41b0d8
push 1
mov ecx, dword [ebp - 0x14]
call fcn.0046db9b
jmp case.0x41af7e.2
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.004060b0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00406e40
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.004069e0
jmp case.0x41af7e.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 0x41b400
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, 0x51fb41
call fcn.004b60a9
push 0x4ec8ac
lea ecx, [ebp - 4]
call fcn.00406130
push 5
push 0
push 0
lea ecx, [ebp - 4]
call fcn.00406e40
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 4]
call fcn.004069e0
mov esp, ebp
pop ebp
ret

Function at 0x41b450
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, 0x51fb41
call fcn.004b60a9
push 0x4ec89c
lea ecx, [ebp - 4]
call fcn.00406130
push 5
push 0
push 0
lea ecx, [ebp - 4]
call fcn.00406e40
push eax
push 0x4ec8a0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 4]
call fcn.004069e0
mov esp, ebp
pop ebp
ret

Function at 0x41b4a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, 0x51fb41
call fcn.004b60a9
push 0x4ec88c
lea ecx, [ebp - 4]
call fcn.00406130
push 5
push 0
push 0
lea ecx, [ebp - 4]
call fcn.00406e40
push eax
push 0x4ec890
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 4]
call fcn.004069e0
mov esp, ebp
pop ebp
ret

Function at 0x41c460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, 0x51fe55
call fcn.004b60a9
push 0x4ed660
push 0x81
call fcn.00468a70
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41c4ff
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
push eax
call fcn.00468a70
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41c4f5
mov ecx, dword [ebp - 4]
push ecx
call fcn.00468a70
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x41c4f5
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0046d5a0
add esp, 0xc
push 0
push ecx
mov ecx, esp
push str.res.xml
call fcn.0041c360
call fcn.0041c390
mov ecx, eax
call fcn.0047161b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov esp, ebp
pop ebp
ret
Function at 0x424790
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 0x4247c6
mov al, byte [esi]
push eax
call fcn.00432530
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 0x4247a8
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 0x430920
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 0x430940
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x4eee4c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x4eee5c
push esi
mov dword [ebp - 8], ebx
call fcn.004cae72
add esp, 8
test eax, eax
je 0x43098c
test ebx, ebx
je 0x43097c
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 0x4309b5
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4309b5
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 0x430a78
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4309d1
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x51b018]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x430a6e
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x430a6e
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430a10
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 0x430a30
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 0x430a45
mov eax, dword [ebp - 8]
test eax, eax
je 0x430a65
push 8
push 0
push ebx
call eax
jmp 0x430a6c
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x51b01c]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x430a90
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x51b400]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x430ae9
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x430ad6
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x430ad0
shr eax, 8
cmp al, 2
je 0x430ae9
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b6ba6
mov esp, ebp
pop ebp
ret
push str.iphlpapi.dll
call fcn.00430920
add esp, 4
mov dword [0x51d784], eax
test eax, eax
je 0x430b14
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x430b14
mov dword [0x51d780], eax
push 3
push 2
push 0
push 0
push 6
call fcn.0045e020
add esp, 0x14
test al, al
setne byte [0x51ee28]
push 0x51ee30
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004b6ba6
mov esp, ebp
pop ebp
ret

Function at 0x433360
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x43338b
cmp dword [esi + 0x84], 0
je 0x43338b
push 2
push 3
push esi
call fcn.00432af0
push dword [ebp + 0xc]
call fcn.00432de0
add esp, 0x10
jmp 0x43339a
push dword [ebp + 0xc]
call fcn.00432de0
add esp, 4
test esi, esi
je 0x4333ae
cmp dword [esi + 0x84], 0
je 0x4333ae
push 3
push esi
call fcn.00432b30
add esp, 8
pop esi
pop ebp
ret

Function at 0x433490
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4334d1
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x100], 0
jne 0x4334c1
push 0
call fcn.00433490
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 0x4334e7
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 0x43df50
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 0x43df6b
cmp dword [edi], 0
jne 0x43df7d
test esi, esi
je 0x43df74
cmp dword [esi], 0
jne 0x43df7d
test ebx, ebx
je 0x43dfc6
cmp dword [ebx], 0
je 0x43dfc6
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
push eax
call fcn.004630f0
add esp, 0xc
test ebx, ebx
je 0x43df98
cmp dword [ebx], 0
jne 0x43df9a
xor ebx, ebx
test esi, esi
je 0x43dfa3
cmp dword [esi], 0
jne 0x43dfa5
xor esi, esi
test edi, edi
je 0x43dfae
cmp dword [edi], 0
jne 0x43dfb0
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.0043df00
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x440e20
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.00425180
push dword [ebp + 8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10], xmm0
call fcn.0043f790
push dword [ebp + 0xc]
mov edi, eax
call fcn.0043f790
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 0x440ea7
lea eax, [ebp - 0x20]
push eax
call fcn.00425180
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.00425230
add esp, 0x20
test edx, edx
ja 0x440eca
jb 0x440e95
cmp eax, 0x3e8
ja 0x440eca
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x440e60
test edi, edi
je 0x440eb4
push edi
call fcn.004bd754
add esp, 4
test esi, esi
je 0x440ec1
push esi
call fcn.004bd754
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x440ed7
push edi
call fcn.004bd754
add esp, 4
test esi, esi
je 0x440ee4
push esi
call fcn.004bd754
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4412e0
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 0x44145d
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x441449
push edi
nop dword [eax]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x44133e
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x441330
sub eax, edx
lea ecx, [eax + 1]
jmp 0x441340
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 8], ecx
cmp eax, 2
jne 0x441352
mov eax, 0x10
jmp 0x441360
cmp eax, 0x17
jne 0x441405
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
je 0x441405
mov edx, dword [esi + 0x10]
test edx, edx
je 0x441405
cmp edx, eax
jb 0x441405
add ecx, 0x20
add eax, ecx
push eax
call dword [0x51b018]
mov edi, eax
add esp, 4
test edi, edi
je 0x44143e
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.004b8e70
mov edx, dword [ebp - 8]
add esp, 0xc
test edx, edx
je 0x4413f3
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.004b8e70
add esp, 0xc
mov eax, dword [ebp - 0xc]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x441402
mov dword [eax + 0x1c], edi
mov dword [ebp - 0xc], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x441320
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
pop edi
test eax, eax
je 0x441422
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x441445
push ebx
call fcn.004412b0
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 0x441413
test ebx, ebx
jne 0x441455
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 0x441870
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.004c432a
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x441897
cmp ecx, 0xffffffff
cmovne eax, ecx
pop ebp
ret

Function at 0x441a20
Capabilities:
Generate random numbers via winapi

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x51b400]
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 0x447546
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 0x44754c
mov eax, dword [ebp - 0x88]
cmp eax, 0xffffffff
jne 0x447575
push str.Error_accept__ing_server_connect
push edi
call fcn.0042e690
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b6ba6
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server
push edi
call fcn.0042e750
mov byte [ebx + 0x1d5], 0
push 1
push dword [ebp - 0x88]
call fcn.00463200
lea eax, [ebp - 0x88]
push eax
push 1
push ebx
push edi
call fcn.00457e80
add esp, 0x20
test eax, eax
jne 0x447604
cmp dword [edi + 0x1ac], eax
je 0x447602
push 1
push edi
call fcn.00420130
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.00420130
add esp, 0x1c
test esi, esi
je 0x447602
push ebx
push edi
call fcn.00447aa0
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b6ba6
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.004b6ba6
mov esp, ebp
pop ebp
ret

Function at 0x449b50
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 0x449b82
push str.Couldnt_set_desired_mode
push esi
call fcn.0042e690
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x449b99
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.0042e750
add esp, 0xc
mov al, byte [ebp + 0x10]
cmp al, 0x13
jne 0x449bb1
push ebx
push esi
call fcn.00449820
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x14
jne 0x449bc5
push esi
call fcn.00448870
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x15
jne 0x449bd9
push esi
call fcn.00449800
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x16
jne 0x449be8
push esi
call fcn.00449a30
add esp, 4
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x450560
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 0x4505a8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0042e690
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push esi
call fcn.0044fe10
add esp, 0x10
pop esi
pop ebx
pop ebp
ret

Function at 0x4506e0
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 0x450848
lea ecx, [edx + 0x1cb4]
push edi
lea edi, [edx + 0x1eb4]
mov eax, ecx
mov dword [edi], ecx
cmp ecx, edi
jae 0x450720
lea eax, [ecx + 1]
mov byte [ecx], 0xff
mov dword [edi], eax
cmp eax, edi
jae 0x450734
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x450734
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 0x4507ab
mov eax, dword [ebp + 0xc]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x4507ab
mov eax, dword [ebp - 8]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x4507ab
mov eax, dword [ebp - 0xc]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x4507ab
mov byte [ecx], dl
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x4507ab
mov byte [ecx], 0xff
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x4507ab
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.0044ff10
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 0x450802
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0042e690
add esp, 0xc
mov esi, dword [ebp + 8]
push 4
lea eax, [esi + 0x1cb7]
push eax
push ebx
call fcn.004505c0
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 0x450847
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0042e690
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret