joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443390
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x562904]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x56b5e0], ecx
inc eax
cmp eax, 0x100
jb 0x4433a5
cmp eax, 0x800
jae 0x443473
nop dword [eax]
mov edx, dword [eax*4 + 0x56b1e0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x56b5e0]
mov dword [eax*4 + 0x56b5e0], edx
inc eax
cmp eax, 0x800
jb 0x443450
lea ecx, [ebp - 0x24]
mov dword [0x56b5dc], 0x445150
call fcn.00445330
test eax, eax
je 0x44354f
mov ecx, dword [ebp - 0x14]
mov edx, ecx
shr edx, 8
mov eax, ecx
mov edi, edx
and eax, 0xf00
and edi, 0xff000
and edx, 0xf00
and ecx, 0xf0
or edi, eax
or edx, ecx
shr edi, 8
shr edx, 4
xor ecx, ecx
mov eax, 0x54dac4
xor esi, esi
mov ebx, dword [ebp - 0x20]
cmp dword [eax - 8], ebx
jne 0x4434da
mov ebx, dword [ebp - 0x1c]
cmp dword [eax - 4], ebx
mov ebx, dword [ebp - 0x18]
jne 0x4434da
cmp dword [eax], ebx
je 0x4434f7
add esi, 0xc
inc ecx
add eax, 0xc
cmp esi, 0x24
jb 0x4434c3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f1532
mov esp, ebp
pop ebp
ret
sub ecx, 0
je 0x443525
sub ecx, 1
je 0x443514
sub ecx, 1
jne 0x44354f
cmp edi, 6
jb 0x44354f
jne 0x443545
cmp edx, 0xf
jb 0x44354f
jmp 0x443545
cmp edi, 5
jb 0x44354f
jne 0x443545
cmp edx, 6
jb 0x44354f
cmp edx, 0xa
jmp 0x443543
cmp edi, 6
jb 0x44354f
jne 0x443545
cmp edx, 0x1c
je 0x44354f
cmp edx, 0x26
je 0x44354f
cmp edx, 0x27
je 0x44354f
cmp edx, 0x35
je 0x44354f
cmp edx, 0x36
je 0x44354f
mov dword [0x56b5dc], 0x4451f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f1532
mov esp, ebp
pop ebp
ret
Function at 0x448250
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x448272
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
add dword [ebp + 8], 5
push ebx
lea ebx, [edx - 4]
add ebx, ecx
mov dword [ebp - 8], ebx
nop
lea eax, [edi + ecx]
cmp eax, ebx
jae 0x448299
mov cl, byte [eax]
and cl, 0xfe
cmp cl, 0xe8
je 0x448296
inc eax
cmp eax, ebx
jb 0x448287
mov ecx, dword [ebp - 4]
mov edx, eax
sub edx, edi
mov edi, eax
sub edx, ecx
sub edi, ecx
cmp eax, ebx
jae 0x44838f
cmp edx, 2
jbe 0x448341
xor esi, esi
movzx ebx, byte [eax + 4]
lea ecx, [ebx + 1]
test cl, 0xfe
jne 0x448378
movzx ecx, byte [eax + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 2]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 1]
shl ebx, 8
or ebx, ecx
mov ecx, dword [ebp + 8]
add ecx, edi
sub ebx, ecx
test esi, esi
je 0x448311
and esi, 6
mov edx, ebx
shl esi, 2
mov ecx, esi
shr edx, cl
inc edx
test dl, 0xfe
jne 0x44830f
mov edx, 0x100
shl edx, cl
mov ecx, dword [ebp + 8]
dec edx
xor ebx, edx
add ecx, edi
sub ebx, ecx
xor esi, esi
mov ecx, ebx
mov byte [eax + 1], bl
shr ecx, 8
mov byte [eax + 2], cl
mov ecx, ebx
shr ebx, 0x18
and bl, 1
shr ecx, 0x10
neg bl
mov byte [eax + 3], cl
mov ecx, dword [ebp - 4]
mov byte [eax + 4], bl
mov eax, 5
mov ebx, dword [ebp - 8]
add edi, eax
jmp 0x448280
mov ecx, edx
shr esi, cl
test esi, esi
je 0x4482b6
cmp esi, 4
ja 0x44836a
cmp esi, 3
je 0x44836a
mov ecx, esi
shr ecx, 1
movzx ecx, byte [ecx + eax + 1]
inc ecx
test cl, 0xfe
jne 0x4482b6
mov ecx, dword [ebp - 4]
or esi, 8
shr esi, 1
inc edi
jmp 0x448280
mov ebx, dword [ebp - 8]
or esi, 8
mov ecx, dword [ebp - 4]
mov eax, 1
shr esi, 1
add edi, eax
jmp 0x448280
mov eax, dword [ebp + 0xc]
mov ecx, edx
shr esi, cl
xor ecx, ecx
cmp edx, 2
pop ebx
cmovbe ecx, esi
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x451e60
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x451f0f
push esi
call fcn.0046e990
add esp, 4
test al, al
jne 0x451f0f
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x451e87
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.004786e0
add esp, 0xc
test eax, eax
je 0x451ebb
sub eax, esi
push eax
push 0x2e
push esi
call fcn.004786e0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x451ebd
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
lea ebx, [esi + edi]
mov edi, 0x1505
cmp esi, ebx
jae 0x451eee
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.00467660
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 0x451ed0
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 ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4640d0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x52b144
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x4640ea
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x52b160
push esi
call fcn.004fff50
add esp, 8
test eax, eax
je 0x464132
test ebp, ebp
je 0x464123
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 0x464158
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x464158
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 0x46420f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x464175
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x464205
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x464205
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4641a7
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 0x4641c0
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 0x4641d0
test ebp, ebp
je 0x4641fc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x562004]
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 [0x562004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x468e50
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x56770c]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x468ea1
push 3
push 2
push eax
push eax
push 6
call fcn.00498840
add esp, 0x14
test al, al
je 0x468e95
mov dword [0x56770c], 2
add esp, 0xc
ret
mov dword [0x56770c], 1
jmp 0x468ea6
cmp eax, 2
je 0x468eec
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x468ed1
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x468eec
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x469980
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x562904]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [esi + 0x98]
cmp edi, 0xffffffff
je 0x469ab8
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x2b4]
test dword [eax + 0x48], 0x800
jne 0x469ab8
push 0x80
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x80
push 0
push eax
call fcn.004f3680
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x469a46
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00448f80
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004606d0
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.004f1532
add esp, 0x188
ret
lea eax, [esi + 0xfc]
push eax
lea eax, [esi + 0xca]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.00462c10
add esp, 0x10
test al, al
jne 0x469ab8
call fcn.004fc529
mov esi, dword [eax]
call fcn.004fc529
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00448f80
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004606d0
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.004f1532
add esp, 0x188
ret
mov ecx, dword [esp + 0x190]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f1532
add esp, 0x188
ret
Function at 0x46eb40
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x46eb87
mov eax, dword [esi + 0x88]
cmp byte [eax + 0x164], 0
jne 0x46eb7b
push 0
call fcn.0046eb40
add esp, 4
test al, al
mov eax, dword [esi + 0x88]
setne cl
inc cl
mov byte [eax + 0x164], cl
mov eax, dword [esi + 0x88]
cmp byte [eax + 0x164], 2
pop esi
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x46eb9c
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret

Function at 0x46f8b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov eax, dword [0x562904]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x70]
push ebp
mov ebp, dword [esp + 0x78]
push edi
xor edi, edi
mov dword [esp + 8], eax
cmp byte [eax + 0x6b2], 0
je 0x46fa92
cmp byte [ebp + 0x18], 0
push ebx
lea ebx, [ebp + 0x18]
je 0x46fa91
lea eax, [esp + 0x30]
push eax
push ebx
push 2
call fcn.0047f5b0
add esp, 0xc
test eax, eax
jg 0x46fa91
lea eax, [esp + 0x34]
push eax
push ebx
push 0x17
call fcn.0047f5b0
add esp, 0xc
test eax, eax
jg 0x46fa91
cmp byte [ebx], 0
mov eax, str._none_
push esi
push dword [ebp + 0x14]
mov esi, dword [ebp]
cmovne eax, ebx
mov ebp, dword [esp + 0x14]
push eax
push str.Host__s:_d_was_resolved.
push ebp
call fcn.004607a0
lea eax, [esp + 0x24]
push 0x400
push eax
call fcn.00452e30
lea eax, [esp + 0x3c]
push 0x400
push eax
call fcn.00452e30
add esp, 0x20
test esi, esi
je 0x46fa04
lea edx, [edi + 0x10]
mov ecx, dword [esi + 4]
cmp ecx, 0x17
je 0x46f978
cmp ecx, 2
jne 0x46f9f9
xor eax, eax
mov byte [esp + 0x48], 0
cmp ecx, 2
lea ebx, [esp + 0x14]
cmovne eax, edx
add ebx, eax
sub ecx, 2
je 0x46f9a7
sub ecx, 0x15
jne 0x46f9bf
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 8
push eax
push 0x17
jmp 0x46f9b7
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 4
push eax
push 2
call fcn.004977b0
add esp, 0x10
push ebx
call fcn.00450e20
add esp, 4
test eax, eax
je 0x46f9de
push 2
push 0x52a810
push ebx
call fcn.00452df0
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x46fa24
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.00452d90
mov edi, eax
add esp, 8
test edi, edi
jne 0x46fa24
lea edx, [eax + 0x10]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x46f967
lea eax, [esp + 0x24]
push eax
call fcn.00450e20
add esp, 4
test eax, eax
je 0x46fa34
lea eax, [esp + 0x24]
push eax
call fcn.00450d70
add esp, 4
jmp 0x46fa39
push str.too_many_IP__cannot_show
push ebp
call fcn.004607a0
add esp, 8
jmp 0x46fa79
mov eax, str._none_
push eax
push str.IPv6:__s
push ebp
call fcn.004607a0
lea eax, [esp + 0x20]
push eax
call fcn.00450e20
add esp, 0x10
test eax, eax
je 0x46fa65
lea eax, [esp + 0x14]
push eax
call fcn.00450d70
add esp, 4
jmp 0x46fa6a
mov eax, str._none_
push eax
push str.IPv4:__s
push ebp
call fcn.004607a0
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call fcn.00452e00
lea eax, [esp + 0x28]
push eax
call fcn.00452e00
add esp, 8
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
pop edi
pop ebp
xor ecx, esp
call fcn.004f1532
add esp, 0x6c
ret
Function at 0x478e30
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.0046ddc0
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.0050e677
push dword [esp + 0x40]
mov edi, eax
call fcn.0050e677
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x478ec5
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.0046ddc0
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.0046de70
add esp, 0x20
test edx, edx
ja 0x478ee9
jb 0x478eb7
cmp eax, 0x3e8
ja 0x478ee9
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x478e80
test edi, edi
je 0x478ed2
push edi
call fcn.004fbf68
add esp, 4
test esi, esi
je 0x478edf
push esi
call fcn.004fbf68
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x478ef6
push edi
call fcn.004fbf68
add esp, 4
test esi, esi
je 0x478f03
push esi
call fcn.004fbf68
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x479400
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [eax], ebx
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 0x479591
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x47957c
push ebp
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47945e
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x479450
sub eax, edx
lea ecx, [eax + 1]
jmp 0x479460
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
cmp eax, 2
jne 0x479471
lea ebp, [eax + 0xe]
jmp 0x47947d
cmp eax, 0x17
jne 0x47951e
lea ebp, [eax + 5]
cmp dword [esi + 0x18], 0
je 0x47951e
mov eax, dword [esi + 0x10]
test eax, eax
je 0x47951e
cmp eax, ebp
jb 0x47951e
lea eax, [ecx + 0x20]
add eax, ebp
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x47956d
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 dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.004f3a50
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x47950a
mov eax, dword [edi + 0x18]
add eax, ebp
push ecx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.004f3a50
add esp, 0xc
mov eax, dword [esp + 0x18]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x47951a
mov dword [eax + 0x1c], edi
mov dword [esp + 0x18], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x479442
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop edi
pop ebp
test eax, eax
je 0x47953e
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x479578
test ebx, ebx
je 0x47955d
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x562004]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x479546
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x47952d
test ebx, ebx
jne 0x479588
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x47b760
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call fcn.004f3680
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 0x47f180
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 [0x562008]
mov edi, eax
add esp, 8
test edi, edi
je 0x47f1d7
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 0x47f1ef
cmp esi, ebx
je 0x47f1ef
cmp esi, 0x8000
ja 0x47f1ef
cmp esi, ebx
jb 0x47f1e8
push esi
push edi
call dword [0x562008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x47f1a0
push ebp
call dword [0x562004]
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 [0x562004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x480950
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 + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x48099c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004606d0
add esp, 0xc
push dword [esp + 0x14]
push ebx
push str.SENT
push esi
call fcn.00480570
add esp, 0x10
pop esi
pop ebx
ret
Function at 0x480b00
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 + 0x130]
mov dword [esp + 8], eax
jne 0x480c4f
push esi
push edi
lea eax, [ebp + 0x1c2c]
lea edi, [ebp + 0x1e2c]
mov dword [edi], eax
cmp eax, edi
jae 0x480b4d
mov byte [eax], 0xff
inc eax
mov dword [edi], eax
cmp eax, edi
jae 0x480b4d
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x480b4d
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebp + 0x1c10]
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 + 0x1c12]
push eax
call esi
mov edx, dword [esp + 0x18]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x480bb7
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x480bb7
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x480bb7
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x480bb7
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x480bb7
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x480bb7
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov dword [ebp + 0x1e30], eax
lea esi, [ebp + 0x1c2c]
sub eax, esi
mov dword [edi], esi
sub eax, 2
push eax
lea eax, [ebp + 0x1c2e]
push eax
push 0x3e
push ebx
call fcn.00480670
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 + 0x1a8]
call edi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x480c0f
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.004606d0
add esp, 0xc
push 4
lea eax, [ebp + 0x1c2f]
push eax
push ebx
call fcn.004809c0
add esp, 0xc
lea eax, [ebp + 0x1c33]
push 0
push 2
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x1a8]
call edi
test eax, eax
jns 0x480c4d
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.004606d0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x480c60
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x80c
mov eax, dword [0x562904]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
mov ebx, dword [esp + 0x814]
push ebp
push esi
mov dword [esp + 0xc], ebx
mov esi, dword [ebx + 0x130]
mov ebp, dword [ebx + 0x18]
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 0x1e30]
sub eax, dword [esi + 0x1e2c]
add eax, 2
push eax
lea eax, [esi + 0x1c2c]
push eax
push 0x3c
push ebx
call fcn.00480670
mov eax, dword [esi + 0x1e2c]
add esp, 0x10
mov cl, byte [eax]
inc eax
mov dword [esi + 0x1e2c], eax
cmp cl, 0x18
je 0x480e38
cmp cl, 0x23
je 0x480e15
cmp cl, 0x27
jne 0x480ec0
push edi
push 0
push 0x27
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [esp + 0x2c]
push 0x800
push eax
call fcn.00466010
mov esi, dword [esi + 0x1c18]
add esp, 0x1c
mov edi, 4
test esi, esi
je 0x480d95
mov edx, dword [esi]
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x480d20
sub ecx, ebx
lea eax, [edi + 1]
add eax, ecx
cmp eax, 0x7fa
jae 0x480d86
push 0x2c
push edx
call fcn.004f37e0
mov ebx, 0x800
lea ebp, [esp + 0x20]
mov edx, eax
add esp, 8
sub ebx, edi
add ebp, edi
test edx, edx
jne 0x480d67
push dword [esi]
push eax
push 0x52fb20
push ebx
push ebp
call fcn.00466010
add esp, 0x14
jmp 0x480d84
mov ecx, dword [esi]
lea eax, [edx + 1]
push eax
push 1
push ecx
sub edx, ecx
push edx
push 0
push str._c_.s_c_s
push ebx
push ebp
call fcn.00466010
add esp, 0x20
add edi, eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x480d14
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
push 0xf0
push 0xff
mov eax, 0x800
sub eax, edi
push str._c_c
push eax
lea eax, [esp + 0x28]
add eax, edi
push eax
call fcn.00466010
add esp, 0x14
lea eax, [edi + 2]
push 0
push eax
lea eax, [esp + 0x20]
push eax
push dword [ebp + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x480deb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.004606d0
add esp, 0xc
push edi
lea eax, [esp + 0x1e]
push eax
push 0x3e
push ebx
call fcn.00480670
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.004f1532
add esp, 0x80c
ret
mov edx, dword [esi + 0x1c0c]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x480e20
push 0xf0
push 0xff
push edx
push 0
push 0x23
jmp 0x480e59
mov edx, dword [esi + 0x1c08]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x480e43
push 0xf0
push 0xff
push edx
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
sub ecx, esi
lea eax, [esp + 0x34]
push 0x800
push eax
lea esi, [ecx + 6]
call fcn.00466010
add esp, 0x28
lea eax, [esp + 0x14]
push 0
push esi
push eax
push dword [ebp + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x480eac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.004606d0
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [esp + 0x1a]
push eax
push 0x3e
push ebx
call fcn.00480670
add esp, 0x10
mov ecx, dword [esp + 0x814]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f1532
add esp, 0x80c
ret