joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4338a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x491618
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b8914]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x4b83e0]
cmp eax, 0xffffffff
jne 0x4338d5
xor esi, esi
jmp 0x4338de
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x24], 0
test esi, esi
je 0x433925
cmp dword [esi + 0x1c], 0
jne 0x433967
cmp dword [esi + 0xc], 0
jne 0x433970
push 0x432a90
push 0x4bb2d0
call fcn.00432ce0
mov eax, dword [0x4b83e0]
add esp, 8
cmp eax, 0xffffffff
je 0x433925
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x24], 0xffffffff
test esi, esi
je 0x433953
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x433953
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp dword [esi + 0xc], 0
je 0x4339b0
lea ecx, [ecx]
mov ebx, dword [esi + 0xc]
mov eax, dword [ebx + 4]
mov dword [esi + 0xc], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x43399e
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0xc], 0
jne 0x433970
cmp dword [esi + 0x1c], 0
je 0x4338fa
lea ebx, [ebx]
mov ecx, dword [esi + 0x18]
mov edi, dword [ecx]
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4339db
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4339db
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi + 0x14]
call fcn.0042ce40
cmp dword [esi + 0x1c], 0
jne 0x4339c0
jmp 0x4338f4

Function at 0x433a90
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x10]
push ecx
push 4
push eax
push 0x433a00
push 0
push 0
call fcn.00477b57
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x433ab9
pop edi
xor al, al
pop ebx
ret
mov edx, dword [edi]
push esi
add edx, 4
mov eax, 1
lock xadd dword [edx], eax
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x433add
cmp eax, 0xffffffff
je 0x433add
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
mov al, 1
pop ebx
ret
Function at 0x434f70
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4b8914]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x434fc5
mov eax, dword [esp]
cmp al, 2
jne 0x434fbf
shr eax, 8
cmp al, 2
jne 0x434fbf
call fcn.004354c0
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00471528
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.00471528
add esp, 0x194
ret
Function at 0x435f00
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x340], 2
jne 0x435f12
jmp fcn.00435ea0
mov eax, 1
ret
Function at 0x441530
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x441562
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x4416c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x4b8914]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, dword [esp + 0xb4]
cmp dword [esi + 0x330], 0
push edi
je case.default.0x441720
test eax, eax
je case.default.0x441720
mov eax, dword [eax + 0x9c]
test eax, eax
je case.default.0x441720
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x441720
jmp dword [edx*4 + 0x44183c]
mov ecx, str.Header
mov edx, str.from
jmp 0x44173d
mov ecx, str.Header
mov edx, 0x49b35c
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x20]
push 0xa0
push eax
call fcn.00445be0
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x441760
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x4417b5
mov ecx, dword [esi + 0x174]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x441820
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x4417e3
mov ecx, dword [esi + 0x174]
mov edx, dword [esp + 0xc4]
push ecx
push edx
push ebp
push ebx
push esi
call eax
add esp, 0x14
jmp 0x441820
mov eax, dword [esi + 0x170]
push eax
push 1
push 2
push 0x49b338
call fcn.0047811d
mov ecx, dword [esi + 0x170]
push ecx
push 1
lea edx, [esp + 0x28]
push edi
push edx
call fcn.0047811d
add esp, 0x20
jmp case.default.0x441720
test ebx, ebx
js 0x44181e
cmp ebx, 2
jg 0x44181e
mov eax, dword [esi + 0x170]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x49b338]
push 2
push ecx
call fcn.0047811d
mov edx, dword [esi + 0x170]
mov eax, dword [esp + 0xd4]
push edx
push 1
push eax
push ebp
call fcn.0047811d
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00471528
add esp, 0xa4
ret
Function at 0x4418e0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x4b8914]
xor eax, esp
mov dword [esp], eax
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
lea ebx, [esi + 0x66c]
push 0x4000
push ebx
call fcn.00445b80
mov eax, dword [esi + 0x178]
add esp, 0x10
test eax, eax
je 0x441940
cmp dword [esi + 0x869c], 0
jne 0x441940
push ebx
push 0x494ad4
push 0x100
push eax
call fcn.00445be0
add esp, 0x10
mov dword [esi + 0x869c], 1
cmp dword [esi + 0x37c], 0
je 0x4419c7
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x441950
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x3fff
jae 0x441974
mov byte [esi + edi + 0x66c], 0xa
inc edi
mov byte [esi + edi + 0x66c], cl
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x44199e
mov edx, dword [esi + 0x174]
push edx
push edi
push ebx
push 0
push esi
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [esp]
xor ecx, esp
call fcn.00471528
pop ecx
ret
mov eax, dword [esi + 0x170]
push eax
push 1
push 2
push 0x49b338
call fcn.0047811d
mov ecx, dword [esi + 0x170]
push ecx
push 1
push edi
push ebx
call fcn.0047811d
add esp, 0x20
pop edi
mov ecx, dword [esp + 8]
pop esi
pop ebx
xor ecx, esp
call fcn.00471528
pop ecx
ret
Function at 0x4419e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xb8
mov eax, dword [0x4b8914]
xor eax, esp
mov dword [esp + 0xb4], eax
mov ecx, dword [esp + 0xc4]
push ebx
mov ebx, dword [esp + 0xc4]
push esi
mov esi, dword [ebx]
push edi
lea eax, [esp + 0xd4]
push eax
push ecx
call fcn.004466c0
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
jne 0x441a3d
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.00471528
add esp, 0xb8
ret
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x441a40
sub eax, edx
mov ecx, eax
mov dword [esp + 0xc], edi
push ebp
mov edx, dword [esp + 0xcc]
xor eax, eax
cmp edx, dword [ebx + 0x16c]
lea edx, [esp + 0x18]
push edx
sete al
push ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x24], 0
mov edx, dword [ebx + eax*4 + 0x188]
push eax
push ebx
call edx
mov ebp, eax
xor ecx, ecx
add esp, 0x14
cmp ebp, ecx
jge 0x441aa6
mov eax, dword [esp + 0x18]
cmp eax, ecx
je 0x441b89
cmp eax, 0x51
jne 0x441b83
xor ebp, ebp
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x37c], ecx
je 0x441b3e
cmp dword [esi + 0x330], ecx
je 0x441b1f
mov eax, dword [ebx + 0x9c]
cmp eax, ecx
je 0x441b1f
push eax
push 0x49b35c
push str.Data
push str.__s__s__s_
lea eax, [esp + 0x34]
push 0xa0
push eax
call fcn.00445be0
lea eax, [esp + 0x3c]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x441af1
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x441b55
mov ecx, dword [esi + 0x174]
push ecx
push edi
lea edx, [esp + 0x2c]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x441b3e
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x441b3e
mov ecx, dword [esi + 0x174]
mov edx, dword [esp + 0x10]
push ecx
push ebp
push edx
push 4
push esi
call eax
add esp, 0x14
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
cmp ebp, ecx
je 0x441b91
sub ecx, ebp
add dword [esp + 0x10], ebp
jmp 0x441a50
mov eax, dword [esi + 0x170]
push eax
push 1
push 2
push 0x49b338
call fcn.0047811d
mov ecx, dword [esi + 0x170]
push ecx
push 1
lea edx, [esp + 0x3c]
push edi
push edx
call fcn.0047811d
add esp, 0x20
jmp 0x441b1f
mov dword [esp + 0x14], eax
jmp 0x441b91
mov dword [esp + 0x14], 0x37
push edi
call dword [0x4b859c]
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0x18]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00471528
add esp, 0xb8
ret
Function at 0x441e80
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov edx, dword [eax + 0x338]
push ebx
mov ebx, dword [eax + ecx*4 + 0x168]
push esi
lea esi, [ecx + 0x19]
shl esi, 4
add esi, eax
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x3c], 3
je 0x441f29
cmp dword [eax + ecx*4 + 0x180], 0x441bc0
jne 0x441f29
cmp dword [esi], 0
je 0x441ebe
test edi, edi
je 0x441f29
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.004357b0
add esp, 0x10
cmp eax, 0xffffffff
je 0x441f29
test al, 1
je 0x441f29
cmp dword [esi], 0
jne 0x441f07
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x4b8598]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x441f22
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x441f29
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
ret

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

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esi + ecx*4 + 0x168]
mov eax, esi
call fcn.00441e80
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x441fb4
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x441f8b
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.00447800
mov edx, dword [esi]
push eax
push str.Send_failure:__s
push edx
call fcn.004418e0
mov eax, dword [esi]
mov dword [eax + 0x86a0], ebp
add esp, 0x14
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x443a70
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x4b8914]
xor eax, esp
mov dword [esp + 0x14], eax
xor eax, eax
cmp dword [esi + 0x4c8], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x443ac4
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00441850
add esp, 0xc
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00471528
add esp, 0x18
ret
mov edx, dword [esi + 0x4cc]
push edx
mov dword [esp + 0xc], 1
call fcn.00445380
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x4d0]
push eax
call fcn.00445380
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x443b3d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.00441850
add esp, 0x10
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00471528
add esp, 0x18
ret
Function at 0x444220
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4b8914]
xor eax, esp
mov dword [esp + 0x108], eax
push ebp
mov ebp, dword [esp + 0x114]
cmp dword [ebp + 0x8c], 2
push edi
mov edi, dword [ebp]
mov dword [esp + 0xc], edi
je 0x4443ea
cmp dword [ebp + 0x2b4], 0
push ebx
push esi
jne 0x44439a
cmp dword [ebp + 0x31c], 0
jne 0x44439a
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4442b9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00447800
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.004418e0
add esp, 0x18
jmp 0x4443e8
push ebx
lea edx, [esp + 0x1c]
push 0
push edx
mov dword [esp + 0x1c], ebx
call fcn.00473a10
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x444306
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00447800
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.004418e0
add esp, 0x18
jmp 0x4443e8
lea edi, [ebp + 0xcc]
lea ebx, [ebp + 0xfc]
lea esi, [esp + 0x98]
call fcn.004441b0
test eax, eax
jne 0x44434a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00447800
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.004418e0
add esp, 0x18
jmp 0x4443e8
lea edi, [ebp + 0x58]
mov ecx, 0xb
lea esi, [ebp + 0xcc]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [ebp + 0x130]
lea edi, [ebp + 0x100]
lea esi, [esp + 0x18]
call fcn.004441b0
test eax, eax
jne 0x44439a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00447800
push eax
mov eax, dword [esp + 0x20]
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.004418e0
add esp, 0x18
jmp 0x4443e8
mov edi, dword [ebp]
add edi, 0x884c
lea esi, [ebp + 0xcc]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebp]
add edi, 0x8880
lea esi, [ebp + 0x100]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [ebp]
mov edx, dword [ebp + 0xfc]
mov dword [ecx + 0x887c], edx
mov eax, dword [ebp]
mov ecx, dword [ebp + 0x130]
mov dword [eax + 0x88b0], ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
pop edi
pop ebp
xor ecx, esp
call fcn.00471528
add esp, 0x10c
ret
Function at 0x444410
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, dword [edi]
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x444459
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00447800
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00441850
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00441850
add esp, 8
pop edi
pop esi
ret

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

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x660]
test esi, esi
je 0x444589
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x44454f
cmp dword [edi + 0x40], eax
je 0x444589
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0
test eax, eax
jne 0x444562
mov eax, dword [edi + 0x40]
push 0x444510
lea ecx, [esp + 0xc]
add eax, 0x68
push ecx
push eax
call fcn.00462700
add esp, 0xc
cmp dword [esp + 0xc], 0
jne 0x444592
mov dword [edi + 0x660], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x44459c
mov dword [eax], esi
cmp dword [esi + 0x1b0], 0
mov edi, dword [esi + 0x168]
je 0x4445c1
push esi
call fcn.00436fc0
add esp, 4
test eax, eax
jne 0x4445da
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
cmp edi, 0xffffffff
je 0x4445da
push 2
push 1
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x444589
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x445220
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push str.kernel32
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x44523a
pop esi
pop ebp
pop ecx
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [esp + 0x18]
mov edi, eax
push 0x495a94
push ebx
mov dword [esp + 0x18], edi
call fcn.00473fc0
add esp, 8
test eax, eax
je 0x445286
test edi, edi
je 0x445277
push 8
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
test edi, edi
je 0x4452ac
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4452ac
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x445360
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4452c5
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [0x4b8598]
mov esi, eax
add esp, 4
test esi, esi
je 0x445356
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x445356
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4452f3
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x445310
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x445320
mov eax, dword [esp + 0x10]
test eax, eax
je 0x44534d
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x4b859c]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push esi
call dword [0x4b859c]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
Function at 0x446800
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ebp
xor ebp, ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax], ebp
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 8], eax
cmp eax, ebp
jne 0x4469b1
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebp
je 0x44698f
push ebx
push esi
lea esp, [esp]
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x44685d
lea ebx, [eax + 0xe]
jmp 0x446869
cmp eax, 0x17
jne 0x446908
lea ebx, [eax + 5]
cmp dword [edi + 0x18], ebp
je 0x446908
mov eax, dword [edi + 0x10]
cmp eax, ebp
jbe 0x446908
cmp eax, ebx
jb 0x446908
push 0x20
call dword [0x4b8598]
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x446915
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push ebx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [0x4b8598]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebp
je 0x44691f
mov ecx, dword [edi + 0x18]
push ebx
push ecx
push eax
call fcn.00471540
mov eax, dword [edi + 0x14]
add esp, 0xc
cmp eax, ebp
je 0x4468ef
push eax
call dword [0x4b85a4]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebp
je 0x446933
cmp dword [esp + 0x10], ebp
jne 0x4468f9
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x446904
mov dword [eax + 0x1c], esi
mov dword [esp + 0x18], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebp
jne 0x446850
jmp 0x44694f
mov dword [esp + 0x14], 8
jmp 0x44694f
push esi
mov dword [esp + 0x18], 8
call dword [0x4b859c]
add esp, 4
jmp 0x44694f
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x4b859c]
push esi
call dword [0x4b859c]
add esp, 8
mov eax, dword [esp + 0x1c]
pop esi
pop ebx
cmp eax, ebp
je 0x446960
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0xc], ebp
je 0x446989
mov eax, dword [esp + 8]
push eax
call fcn.004467c0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
add esp, 4
mov ecx, ebp
pop edi
mov dword [esp + 4], ebp
mov dword [edx], ecx
pop ebp
add esp, 0x10
ret
cmp dword [esp + 8], ebp
jne 0x4469a2
push 0x2af9
mov dword [esp + 0x10], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
mov dword [edx], ecx
pop edi
pop ebp
add esp, 0x10
ret

Function at 0x446dd0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.00477b57
add esp, 0x18
test eax, eax
je 0x446df3
cmp eax, 0xffffffff
jne 0x446df5
xor eax, eax
ret
Function at 0x4499e0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x449a28
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov eax, dword [esp]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
test eax, eax
jne 0x449a2f
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
pop ecx
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ecx
ret
Function at 0x452f60
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x4970d8
push ecx
call fcn.00441850
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.004520d0
test eax, eax
jne 0x452f90
mov eax, esi
jmp fcn.004524f0
ret