joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bffb8
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x522464]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4bfff9
cmp byte [ebp - 0x194], 2
jne 0x4bfff3
cmp byte [ebp - 0x193], 2
je 0x4bfffc
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a079b
leave
ret

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

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4c7cda
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 0x4c7dfb
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x4c7e1b
push dword [esi + 0xf4]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x4c7e54
cmp eax, 2
jg 0x4c7e54
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
add eax, 0x4f6518
push 2
push eax
call fcn.0049f867
push dword [esi + 0xf0]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0049f867
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x12c]
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4c808c
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x4c8066
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x4c808b
push ebx
push esi
call fcn.004d11cb
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.004c7f86
mov eax, dword [esi]
mov dword [eax + 0x855c], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret
Function at 0x4c873b
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x522464]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
mov esi, dword [ebp + 0x98]
cmp dword [esi + 0x198], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], ebx
jne 0x4c8858
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x9c]
mov edi, 0x80
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4c87b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004d11cb
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004c7f86
add esp, 0x18
jmp 0x4c885f
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x9c]
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4c87eb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004d11cb
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x4c87aa
lea edi, [esi + 0xc8]
lea ebx, [esi + 0x9a]
lea esi, [ebp - 0x74]
call fcn.004c8702
test eax, eax
jne 0x4c8820
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004d11cb
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
jmp 0x4c87ab
mov eax, dword [ebp - 0x78]
lea edi, [eax + 0xfc]
lea ebx, [eax + 0xcc]
lea esi, [ebp + 0xc]
call fcn.004c8702
test eax, eax
jne 0x4c8855
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004d11cb
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x4c881b
mov esi, dword [ebp - 0x78]
push esi
call fcn.004c86b3
pop ecx
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a079b
add ebp, 0x90
leave
ret

Function at 0x4c8877
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x308]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x4c88bc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004d11cb
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004c7f13
add esp, 0x14
jmp 0x4c88c9
push str.TCP_NODELAY_set_n
push esi
call fcn.004c7f13
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x4c8d20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x520]
cmp eax, 0xffffffff
push esi
je 0x4c8d73
mov ecx, dword [ecx + 0x514]
mov ecx, dword [ecx]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0x4c8d73
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x4c8d4d
mov dword [ecx], eax
cmp dword [eax + 0x144], 0
mov esi, dword [eax + 0x12c]
jne 0x4c8d73
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4c8d73
mov eax, esi
jmp 0x4c8d76
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x4c9e48
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
and dword [eax], 0
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
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]
test eax, eax
mov dword [ebp - 8], eax
jne 0x4c9fba
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0xc], esi
je 0x4c9f9f
push ebx
push edi
jmp 0x4c9e90
mov esi, dword [ebp - 0xc]
cmp dword [esi + 4], 2
jne 0x4c9f33
cmp dword [esi + 0x18], 0
je 0x4c9f33
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x4c9f33
push 0x10
pop edi
cmp eax, edi
jb 0x4c9f33
push 0x20
call dword [0x5238c8]
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
je 0x4c9f43
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 ecx, dword [esi + 0xc]
push edi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x1c], eax
call dword [0x5238c8]
test eax, eax
pop ecx
mov dword [ebx + 0x18], eax
je 0x4c9f4c
mov esi, dword [esi + 0x18]
mov edi, eax
mov eax, dword [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4c9f1a
push eax
call dword [0x5238d4]
test eax, eax
pop ecx
mov dword [ebx + 0x14], eax
je 0x4c9f5c
cmp dword [ebp - 4], 0
jne 0x4c9f23
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4c9f2d
mov dword [eax + 0x1c], ebx
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
mov dword [ebp - 0xc], esi
jne 0x4c9e8d
jmp 0x4c9f75
mov dword [ebp - 8], 8
jmp 0x4c9f75
push ebx
mov dword [ebp - 8], 8
call dword [0x5238cc]
jmp 0x4c9f74
push dword [ebx + 0x18]
mov dword [ebp - 8], 8
call dword [0x5238cc]
push ebx
call dword [0x5238cc]
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x10], esi
pop edi
pop ebx
je 0x4c9f87
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], esi
je 0x4c9f9a
push dword [ebp - 4]
call fcn.004c9e0c
pop ecx
mov dword [ebp - 4], esi
jmp 0x4c9fae
cmp dword [ebp - 4], esi
jne 0x4c9fae
mov eax, 0x2af9
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x4ca30c
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48
push 1
mov ebx, eax
mov edi, ecx
call dword [0x5238d8]
mov esi, eax
xor eax, eax
cmp esi, eax
pop ecx
pop ecx
mov dword [ebp - 4], 0xc
mov dword [edi + 0x3ac], esi
je 0x4ca3be
mov dword [edi + 0x3a4], eax
mov dword [edi + 0x3a8], eax
mov dword [edi + 0x3a0], eax
mov dword [edi + 0x39c], ebx
or dword [esi + 4], 0xffffffff
push ebx
push dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 0x10]
call fcn.004ca1c8
test eax, eax
pop ecx
pop ecx
je 0x4ca3be
lea ebx, [edi + 0x398]
push dword [ebx]
call fcn.004c06a6
push dword [ebp + 8]
call dword [0x5238d4]
test eax, eax
pop ecx
pop ecx
mov dword [ebx], eax
je 0x4ca3be
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x4ca3be
lea eax, [esi + 0x10]
push eax
push 0x4ca23c
call fcn.004d19f0
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x4ca3d8
call fcn.0049d01e
mov eax, dword [eax]
mov dword [ebp - 4], eax
add edi, 0x398
push edi
call fcn.004ca2ba
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
jmp 0x4ca3db
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4cdf32
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x31c
push ebx
mov ebx, dword [ebp + 0x78]
push esi
mov esi, dword [ebp + 0x74]
xor edx, edx
push edi
xor edi, edi
cmp esi, 0xffffffff
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x68], edx
jne 0x4cdf66
cmp ebx, esi
jne 0x4cdf66
mov eax, dword [ebp + 0x7c]
call fcn.004cdf13
jmp 0x4ce103
cmp dword [ebp + 0x7c], edx
jle 0x4cdf7b
mov edi, dword [ebp + 0x7c]
call fcn.004cf4f8
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x64], eax
xor edx, edx
xor eax, eax
or ecx, 0xffffffff
inc eax
cmp esi, ecx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x1ac], edx
je 0x4cdfab
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], eax
mov ecx, esi
cmp ebx, 0xffffffff
mov dword [ebp - 0x2b0], edx
je 0x4ce002
mov dword [ebp - 0x2b0], eax
xor eax, eax
cmp dword [ebp - 0xa8], edx
mov dword [ebp - 0x2ac], ebx
jbe 0x4cdfde
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x4cdfde
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x4cdfcc
cmp eax, dword [ebp - 0xa8]
jne 0x4cdffc
cmp dword [ebp - 0xa8], 0x40
jae 0x4cdffc
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x4ce002
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x4ce00b
xor ebx, ebx
jmp 0x4ce00e
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x4ce02d
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x4ce032
jne 0x4ce035
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x5c], eax
push ebx
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x1ac]
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4ce08e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4ce068
cmp eax, 0x2714
jne 0x4ce092
cmp dword [ebp + 0x7c], 0
jle 0x4ce011
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.004cf4f8
push edx
push eax
call fcn.004cf50e
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x4ce011
jmp 0x4ce092
test eax, eax
jge 0x4ce097
or eax, 0xffffffff
jmp 0x4ce103
jne 0x4ce09d
xor eax, eax
jmp 0x4ce103
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x4ce0cf
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4ce0b9
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4ce0cf
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x4ce101
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4ce0eb
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4ce101
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x4d0050
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4d005d
jmp dword [eax*4 + 0x4d00b8]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, byte [esp + 4]
ret

Function at 0x4d1da0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp dword [eax + 4], 2
push edi
sete bl
test ebx, ebx
je 0x4d1dc4
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x4d1df5
cmp dword [esi + 8], 0
jne 0x4d1de5
push 0x509254
push dword [eax + 8]
call fcn.0049f0c5
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x4d1de5
or eax, 0xffffffff
jmp 0x4d1e1b
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.0049e6f8
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4d1e03
cmp edi, dword [ebp + 0xc]
jbe 0x4d1e19
test ebx, ebx
jne 0x4d1e13
push dword [esi + 8]
call fcn.0049e785
and dword [esi + 8], ebx
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x4d6560
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x5c], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0xc3d2e1f0
mov edx, dword [ebp + 8]
mov dword [edx + 0x60], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x64], 0
pop ebp
ret

Function at 0x4d7cf0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 8
jge 0x4d7d29
jmp 0x4d7e04
mov dword [ebp - 8], 0x288
mov dword [ebp - 0x18], 0
jmp 0x4d7d42
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jge 0x4d7daa
mov ecx, dword [ebp - 8]
push ecx
call fcn.004963f3
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x4d7da8
mov eax, dword [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.00497490
add esp, 0xc
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.iphlpapi.dll_GetAdaptersInfo
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x6f
jne 0x4d7da6
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.0049750a
add esp, 4
mov dword [ebp - 4], 0
jmp 0x4d7da8
jmp 0x4d7daa
jmp 0x4d7d39
cmp dword [ebp - 0x10], 0
jne 0x4d7e04
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4d7e04
push 6
push 0x4ffc40
mov ecx, dword [ebp - 0x14]
add ecx, 0x10c
push ecx
call fcn.0049d1fc
add esp, 0xc
test eax, eax
je 0x4d7dfa
push 8
mov edx, dword [ebp - 0x14]
add edx, 0x194
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00497ba0
add esp, 0xc
mov dword [ebp - 0xc], 1
jmp 0x4d7e04
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
jmp 0x4d7db6
cmp dword [ebp - 4], 0
je 0x4d7e1c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0049750a
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4d7e30
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x522464]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov byte [ebp - 0xb0], 0
push 0x9a
push 0
lea eax, [ebp - 0xaf]
push eax
call fcn.00497490
add esp, 0xc
mov dword [ebp - 8], 0
push 0x9b
lea ecx, [ebp - 0xb0]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x4d7eac
lea edx, [ebp - 0xb0]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4d7eac
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004a079b
mov esp, ebp
pop ebp
ret

Function at 0x4d8c30
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee7c5
mov eax, dword fs:[0]
push eax
mov eax, 0x6d40
call fcn.004ab830
mov eax, dword [0x522464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1f0], 0xffffffff
lea eax, [ebp - 0x1ec]
call fcn.0042351e
lea eax, [ebp - 0x3764]
call fcn.0042bf16
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1a8]
call fcn.0041d792
mov byte [ebp - 4], 1
mov word [ebp - 0x1a4], 0
push 0x18e
push 0
lea eax, [ebp - 0x1a2]
push eax
call fcn.00497490
add esp, 0xc
lea ecx, [ebp - 0x1a4]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0
je 0x4d8cdc
jmp 0x4d8dba
mov edx, 0x4ffc48
lea ecx, [ebp - 0x1ec]
call fcn.00423561
lea edx, [ebp - 0x1ec]
push edx
lea eax, [ebp - 0x3764]
push eax
mov edi, dword [ebp + 8]
call fcn.0042c061
movzx ecx, al
test ecx, ecx
je 0x4d8dba
lea eax, [ebp - 0x3764]
call fcn.00440be4
cmp eax, 0xc8
jne 0x4d8dba
lea eax, [ebp - 0x3764]
call fcn.0042c2f9
push eax
lea ecx, [ebp - 0x3764]
call fcn.0042c300
push eax
lea eax, [ebp - 0x1a8]
call fcn.00426dd5
push 0x4ffc54
lea edx, [ebp - 0x1a8]
push edx
call fcn.00426db2
lea eax, [ebp - 0x1a8]
call fcn.004391a5
push eax
lea esi, [ebp - 0x3868]
call fcn.004020c5
mov dword [ebp - 0x6d48], eax
mov eax, dword [ebp - 0x6d48]
mov dword [ebp - 0x6d4c], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x6d4c]
call fcn.004391a5
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401b43
mov byte [ebp - 4], 1
lea eax, [ebp - 0x3868]
call fcn.004020b4
mov eax, dword [ebp + 0xc]
call fcn.00426e93
mov dword [ebp - 0x1f0], 0
cmp dword [ebp - 0x1ac], 0
jne 0x4d8dc9
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov edx, dword [ebp - 0x1f0]
mov dword [ebp - 0x386c], edx
mov byte [ebp - 4], 0
lea eax, [ebp - 0x1a8]
call fcn.00402200
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3764]
call fcn.00427c28
mov eax, dword [ebp - 0x386c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a079b
mov esp, ebp
pop ebp
ret
Function at 0x4dad60
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x522464]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0x80004005
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0xffffffff
mov byte [ebp - 0xc], 0
xor eax, eax
mov dword [ebp - 0xb], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
cmp dword [ebp + 8], 0
je 0x4dadc1
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
test edx, edx
jne 0x4dadcb
jmp 0x4daeee
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x4dadfa
jmp 0x4daeee
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
ja 0x4dae19
jmp 0x4daeee
push 0
lea edx, [ebp - 0x1c]
push edx
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4dae42
jmp 0x4daeee
lea edx, [ebp - 0xc]
push edx
call fcn.004dac80
add esp, 4
test eax, eax
jne 0x4dae5c
jmp 0x4daeee
mov eax, dword [ebp - 0x14]
sub eax, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 1
push ecx
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4dae81
jmp 0x4daeee
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x2c]
mov dword [edx], eax
push 0
push 0
push 4
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4daebe
jmp 0x4daeee
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004dacb0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4daeee
cmp dword [ebp - 0x24], 0
je 0x4daeee
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x28], 0xffffffff
je 0x4daf05
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a079b
mov esp, ebp
pop ebp
ret