joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a5260
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x14
mov eax, dword [0x401424]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
mov ecx, dword [eax + 0xc]
mov eax, dword [eax]
push edi
mov edi, dword [esp + 0x28]
mov eax, dword [eax + 4]
and eax, 0xa
cmp al, 0xa
jne 0x4a5297
mov esi, dword [ecx + 0x78]
mov ebx, dword [ecx + 0x7c]
mov ebp, dword [ecx + 0x80]
jmp 0x4a52a3
mov esi, dword [ecx + 0x30]
mov ebx, dword [ecx + 0x34]
mov ebp, dword [ecx + 0x4c0]
test esi, esi
je 0x4a5384
mov eax, dword [edi]
test eax, eax
je 0x4a52e0
mov ecx, esi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4a52d3
test dl, dl
je 0x4a52cf
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4a52d3
add ecx, 2
add eax, 2
test dl, dl
jne 0x4a52b3
xor eax, eax
jmp 0x4a52d8
sbb eax, eax
or eax, 1
test eax, eax
je 0x4a5384
push edi
call fcn.004a5210
push esi
call dword [fcn.00401040]
mov edx, eax
add esp, 8
mov dword [edi], edx
test edx, edx
je 0x4a533a
test ebx, ebx
je 0x4a535b
mov ecx, ebx
nop
mov al, byte [esi]
cmp al, byte [ecx]
jne 0x4a5320
test al, al
je 0x4a531c
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x4a5320
add esi, 2
add ecx, 2
test al, al
jne 0x4a5300
xor eax, eax
jmp 0x4a5325
sbb eax, eax
or eax, 1
test eax, eax
je 0x4a535b
push ebx
call dword [fcn.00401040]
add esp, 4
mov dword [edi + 4], eax
test eax, eax
jne 0x4a535e
push edi
call fcn.004a5210
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004ed9d4
add esp, 0x14
ret
mov dword [edi + 4], edx
mov esi, dword [edi]
test esi, esi
je 0x4a53ba
cmp byte [esi], 0
je 0x4a53ba
mov ebx, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [esp + 0x10]
push eax
push esi
push 2
call ebx
test eax, eax
je 0x4a53a3
mov dword [edi + 0xc], 1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ed9d4
add esp, 0x14
ret
lea eax, [esp + 0x10]
push eax
push esi
push 0x17
call ebx
test eax, eax
je 0x4a53ba
mov dword [edi + 0xc], 2
jmp 0x4a5384
mov ecx, dword [edi]
mov dword [edi + 0xc], 0
cmp byte [ecx], 0
je 0x4a5384
mov esi, ecx
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4a53d0
sub esi, edx
je 0x4a53e3
cmp byte [ecx + esi - 1], 0x2e
jne 0x4a53e3
dec esi
cmp esi, 0xffff
jae 0x4a5384
lea eax, [esi + 1]
push eax
push 1
call dword [fcn.00401044]
add esp, 8
mov dword [edi + 8], eax
test eax, eax
je 0x4a533a
push esi
push dword [edi]
push eax
call fcn.004b0c30
mov eax, dword [edi + 8]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x4a5384
Function at 0x4ab220
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp byte [edi + 0x68a], 0
je 0x4ab2bf
cmp dword [edi + 0x194], 0
je 0x4ab277
push edi
call fcn.0049b3f0
push 1
push edi
mov byte [esp + 0x14], al
call fcn.0049b890
push dword [edi + 0x144]
mov eax, dword [edi + 0x194]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push dword [esp + 0x28]
push edi
call fcn.0049b890
add esp, 0x28
pop edi
ret
mov ecx, dword [esp + 0xc]
mov eax, ecx
sub eax, 0
je 0x4ab28c
sub eax, 1
je 0x4ab28c
sub eax, 1
jne 0x4ab2bf
push dword [edi + 0x140]
lea eax, [ecx*2 + 0x404ef4]
push 1
add eax, ecx
push 2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [edi + 0x140]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x20
pop edi
ret

Function at 0x4aed70
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x405818
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x4aed8a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x405824
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x405834
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
add esp, 8
test eax, eax
je 0x4aedd3
test ebp, ebp
je 0x4aedc4
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4aedf9
push 0x405838
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4aedf9
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4aeeaf
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4aee16
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [fcn.00401034]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4aeea5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4aeea5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4aee48
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4aee60
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4aee70
test ebp, ebp
je 0x4aee9c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [fcn.00401038]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [fcn.00401038]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x4aeec0
Capabilities:
Get common file path
Initialize winsock library
Link many functions at runtime

Disassembly:
sub esp, 0x198
mov eax, dword [0x401424]
xor eax, esp
mov dword [esp + 0x194], eax
test byte [esp + 0x19c], 2
je 0x4aef21
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4aef07
mov eax, dword [esp + 4]
cmp al, 2
jne 0x4aef01
shr eax, 8
cmp al, 2
je 0x4aef21
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004ed9d4
add esp, 0x198
ret
call fcn.004e1de0
test eax, eax
jne 0x4af0fc
push ebp
push esi
push edi
push 0x405818
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x4aef55
mov dword [0x4eecf4], esi
jmp 0x4af081
push ebx
push 0x405824
push edi
call ebp
push 0x405834
push 0x4057bc
mov ebx, eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
add esp, 8
test eax, eax
je 0x4aef9f
test ebx, ebx
je 0x4aef8d
push 8
push 0
push 0x4057bc
call ebx
mov esi, eax
jmp 0x4af05d
push 0x4057bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x4af05d
test ebx, ebx
je 0x4aefc4
push 0x405838
push edi
call ebp
test eax, eax
je 0x4aefc4
push 0x800
push 0
push 0x4057bc
call ebx
mov esi, eax
jmp 0x4af05d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4af05d
lea ecx, [eax + 0xd]
push ecx
call dword [fcn.00401034]
mov edi, eax
add esp, 4
test edi, edi
je 0x4af053
push dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4af053
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4af001
sub ecx, edx
mov eax, 0x5c
mov edx, edi
mov word [ecx + edi], ax
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4af018
sub edx, ecx
mov ecx, 0x4057bc
sub edx, ecx
add edx, edi
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4af030
test ebx, ebx
je 0x4af04a
push 8
push 0
push edi
call ebx
jmp 0x4af051
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push edi
call dword [fcn.00401038]
add esp, 4
mov dword [0x4eecf4], esi
pop ebx
test esi, esi
je 0x4af081
push 0x4057cc
push esi
call ebp
mov ecx, dword [0x4eece4]
test eax, eax
cmovne ecx, eax
mov dword [0x4eece4], ecx
push 0x4057dc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x4af0b9
push 0x4057e4
push esi
call ebp
push 0x4057f4
push esi
mov dword [0x4eece8], eax
call ebp
push 0x405808
push esi
mov dword [0x4eecec], eax
call ebp
mov dword [0x4eecf0], eax
push 3
push 2
push 0
push 0
push 6
call fcn.004e19e0
push 3
push 2
push 0
test al, al
push 2
push 6
setne byte [0x4efda9]
call fcn.004e19e0
add esp, 0x28
test al, al
setne byte [0x4efda8]
push 0x4efdb0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004ed9d4
add esp, 0x198
ret
Function at 0x4b16a0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x2b
test edi, edi
je 0x4b174b
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
nop dword [eax]
mov ebx, 4
lea eax, [esp + 0x1c]
push 4
push eax
cmp edi, ebx
push ebp
cmovb ebx, edi
call fcn.004a5500
add esp, 0xc
cmp eax, 4
jne 0x4b1706
cmp byte [0x4eecfc], 0
jne 0x4b1712
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x4b174d
mov eax, dword [esp + 0x1c]
jmp 0x4b172f
imul eax, dword [0x4eecf8], 0x41c64e6d
add eax, 0x3039
mov dword [0x4eecf8], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x4b1743
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x4b1733
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x4b16c0
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4b1760
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
sub ebx, 1
je 0x4b17d8
mov esi, dword [esp + 0x14]
mov ebp, 0x3e
nop word [eax + eax]
push 4
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004a5500
add esp, 0xc
cmp eax, 4
jne 0x4b17b9
cmp byte [0x4eecfc], 0
jne 0x4b17e2
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jne 0x4b17ff
test eax, eax
jne 0x4b17dd
mov eax, dword [esp + 0x1c]
cmp eax, 0xfffffffc
jae 0x4b1780
xor edx, edx
div ebp
mov al, byte [edx + 0x405e98]
mov byte [edi], al
inc edi
sub ebx, 1
jne 0x4b1780
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
imul eax, dword [0x4eecf8], 0x41c64e6d
add eax, 0x3039
mov dword [0x4eecf8], eax
rol eax, 0x10
mov dword [esp + 0x1c], eax
jmp 0x4b17c1
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
ret

Function at 0x4b1810
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 2
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
ret
Function at 0x4b37e0
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x18
mov eax, dword [0x401424]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
lea eax, [esp + 4]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x4b3828
lea eax, [esp + 8]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
pop esi
setg al
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004ed9d4
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
mov al, 1
pop esi
xor ecx, esp
call fcn.004ed9d4
add esp, 0x18
ret

Function at 0x4b3980
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4b39be
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x114], 0
jne 0x4b39af
push 0
call fcn.004b3980
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x114], cl
mov eax, dword [esi + 0x7c]
pop esi
cmp byte [eax + 0x114], 2
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x4b39d3
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret
Function at 0x4b4810
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x6c
mov eax, dword [0x401424]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
mov esi, dword [esp + 0x7c]
xor ebx, ebx
push edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0xc], esi
cmp byte [edi + 0x68a], bl
je 0x4b4a5d
cmp byte [esi + 0x18], bl
push ebp
lea ebp, [esi + 0x18]
je 0x4b4a5c
lea eax, [esp + 0x34]
push eax
push ebp
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x4b4a5c
lea eax, [esp + 0x38]
push eax
push ebp
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x4b4a5c
mov esi, dword [esi]
cmp byte [edi + 0x68a], bl
je 0x4b48af
mov eax, dword [edi + 0xca8]
test eax, eax
je 0x4b488e
cmp dword [eax + 4], 1
jl 0x4b48af
mov ecx, dword [esp + 0x10]
mov eax, 0x4063b8
cmp byte [ebp], bl
cmovne eax, ebp
push dword [ecx + 0x14]
push eax
push 0x4063c0
push edi
call fcn.004ab3a0
add esp, 0x10
lea eax, [esp + 0x14]
push 0x400
push eax
call fcn.004a0fe0
lea eax, [esp + 0x2c]
push 0x400
push eax
call fcn.004a0fe0
add esp, 0x10
test esi, esi
je 0x4b497a
mov edx, 0x10
nop dword [eax]
mov ecx, dword [esi + 4]
cmp ecx, 0x17
je 0x4b48f1
cmp ecx, 2
jne 0x4b496f
xor eax, eax
mov byte [esp + 0x48], 0
cmp ecx, 2
lea ebp, [esp + 0x14]
cmovne eax, edx
add ebp, eax
sub ecx, 2
je 0x4b4920
sub ecx, 0x15
jne 0x4b4935
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 8
push eax
push 0x17
jmp 0x4b4930
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 4
push eax
push 2
call sub.WS2_32.dll_inet_ntop
push ebp
call fcn.004a1000
add esp, 4
test eax, eax
je 0x4b4954
push 2
push 0x404f34
push ebp
call fcn.004a0fa0
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x4b49b7
lea eax, [esp + 0x48]
push eax
push ebp
call fcn.004a0f40
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4b49b7
lea edx, [eax + 0x10]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x4b48e0
cmp byte [edi + 0x68a], 0
je 0x4b4a45
mov eax, dword [edi + 0xca8]
test eax, eax
je 0x4b4997
cmp dword [eax + 4], 1
jl 0x4b49f8
lea eax, [esp + 0x24]
push eax
call fcn.004a1000
add esp, 4
test eax, eax
je 0x4b49e4
lea eax, [esp + 0x24]
push eax
call fcn.004a1010
add esp, 4
jmp 0x4b49e9
cmp byte [edi + 0x68a], 0
je 0x4b4a45
mov eax, dword [edi + 0xca8]
test eax, eax
je 0x4b49d4
cmp dword [eax + 4], 1
jl 0x4b4a45
push 0x4063dc
push edi
call fcn.004ab3a0
add esp, 8
jmp 0x4b4a45
mov eax, 0x4063b8
push eax
push 0x4063f4
push edi
call fcn.004ab3a0
add esp, 0xc
cmp byte [edi + 0x68a], 0
je 0x4b4a45
mov eax, dword [edi + 0xca8]
test eax, eax
je 0x4b4a11
cmp dword [eax + 4], 1
jl 0x4b4a45
lea eax, [esp + 0x14]
push eax
call fcn.004a1000
add esp, 4
test eax, eax
je 0x4b4a31
lea eax, [esp + 0x14]
push eax
call fcn.004a1010
add esp, 4
jmp 0x4b4a36
mov eax, 0x4063b8
push eax
push 0x406400
push edi
call fcn.004ab3a0
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call fcn.004a0fb0
lea eax, [esp + 0x28]
push eax
call fcn.004a0fb0
add esp, 8
pop ebp
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ed9d4
add esp, 0x6c
ret
Function at 0x4bd520
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.004a0d00
push dword [esp + 0x38]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call esi
push dword [esp + 0x40]
mov edi, eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebp
test eax, eax
jne 0x4bd5b5
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.004a0d00
movups xmm0, xmmword [esp + 0x14]
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.004a0db0
add esp, 0x20
test edx, edx
ja 0x4bd5d9
jb 0x4bd5a7
cmp eax, 0x3e8
ja 0x4bd5d9
push 1
call ebx
push 1
push esi
push edi
call ebp
test eax, eax
je 0x4bd570
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test edi, edi
je 0x4bd5c5
push edi
call ebx
add esp, 4
test esi, esi
je 0x4bd5cf
push esi
call ebx
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test edi, edi
je 0x4bd5e9
push edi
call ebx
add esp, 4
test esi, esi
je 0x4bd5f3
push esi
call ebx
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x4bdae0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push edi
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [eax], edi
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x4bdc6f
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4bdc5a
push ebx
push ebp
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4bdb3c
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4bdb30
sub eax, edx
inc eax
jmp 0x4bdb3e
xor eax, eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], eax
cmp ecx, 2
jne 0x4bdb4f
lea ebp, [ecx + 0xe]
jmp 0x4bdb5b
cmp ecx, 0x17
jne 0x4bdbfc
lea ebp, [ecx + 5]
cmp dword [esi + 0x18], 0
je 0x4bdbfc
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4bdbfc
cmp ecx, ebp
jb 0x4bdbfc
add eax, 0x20
add eax, ebp
push eax
call dword [fcn.00401034]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4bdc4b
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x20]
push ebp
mov dword [ebx + 0x10], ebp
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], eax
push dword [esi + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x4bdbe8
mov eax, dword [ebx + 0x18]
add eax, ebp
push ecx
mov dword [ebx + 0x14], eax
push dword [esi + 0x14]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x18]
test edi, edi
cmove edi, ebx
test eax, eax
je 0x4bdbf8
mov dword [eax + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x4bdb22
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop ebp
pop ebx
test eax, eax
je 0x4bdc1c
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x4bdc56
test edi, edi
je 0x4bdc3b
mov esi, dword [edi + 0x1c]
push edi
call dword [fcn.00401038]
add esp, 4
mov edi, esi
test esi, esi
jne 0x4bdc24
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
xor edi, edi
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
add esp, 0x10
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x4bdc0b
test edi, edi
jne 0x4bdc66
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
add esp, 0x10
ret

Function at 0x4be070
Capabilities:
Create thread

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x4be097
cmp ecx, 0xffffffff
cmovne eax, ecx
ret
Function at 0x4c19e0
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [fcn.0040103c]
mov edi, eax
add esp, 8
test edi, edi
je 0x4c1a37
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x4c1a4f
cmp esi, ebx
je 0x4c1a4f
cmp esi, 0x8000
ja 0x4c1a4f
cmp esi, ebx
jb 0x4c1a48
push esi
push edi
call dword [fcn.0040103c]
mov edi, eax
add esp, 8
test edi, edi
jne 0x4c1a00
push ebp
call dword [fcn.00401038]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [fcn.00401038]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0
mov byte [esp + 0x12], cl
lea ecx, [esp + 0x10]
push 3
mov eax, dword [esi + 0x18]
push ecx
mov byte [esp + 0x18], 0xff
mov byte [esp + 0x19], bl
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4c326c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x409378
push esi
call fcn.004ab2d0
add esp, 0xc
push dword [esp + 0x14]
push ebx
push 0x409394
push esi
call fcn.004c2bd0
add esp, 0x10
pop esi
pop ebx
ret
Function at 0x4c33d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov eax, dword [ebx + 0x18]
mov ebp, dword [ebx + 0x124]
mov dword [esp + 8], eax
jne 0x4c3523
push esi
lea ecx, [ebp + 0x1cc4]
push edi
lea edi, [ebp + 0x1ec4]
mov eax, ecx
mov dword [edi], ecx
cmp ecx, edi
jae 0x4c340d
lea eax, [ecx + 1]
mov byte [ecx], 0xff
mov dword [edi], eax
cmp eax, edi
jae 0x4c3421
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4c3421
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x18], eax
movzx eax, word [ebp + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x18]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x4c348b
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4c348b
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4c348b
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4c348b
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4c348b
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4c348b
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov dword [ebp + 0x1ec8], eax
lea esi, [ebp + 0x1cc4]
sub eax, esi
mov dword [edi], esi
sub eax, 2
push eax
lea eax, [ebp + 0x1cc6]
push eax
push 0x3e
push ebx
call fcn.004c2d30
mov eax, dword [esp + 0x20]
add esp, 0x10
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0
push 3
push esi
push dword [eax + 0x1a0]
call edi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x4c34e3
call esi
push eax
push 0x409378
push ebx
call fcn.004ab2d0
add esp, 0xc
push 4
lea eax, [ebp + 0x1cc7]
push eax
push ebx
call fcn.004c3290
add esp, 0xc
lea eax, [ebp + 0x1ccb]
push 0
push 2
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x1a0]
call edi
test eax, eax
jns 0x4c3521
call esi
push eax
push 0x409378
push ebx
call fcn.004ab2d0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret