joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450820
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x4508d0
lea eax, [esp + 0x18]
push eax
push ebx
push 2
call fcn.004748a0
add esp, 0xc
test eax, eax
jne 0x4508d0
lea eax, [esp + 4]
push eax
push ebx
push 0x17
call fcn.004748a0
add esp, 0xc
test eax, eax
jne 0x4508d0
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x450863
sub esi, ecx
push esi
push 0x2e
push ebx
call fcn.00474870
add esp, 0xc
test eax, eax
je 0x45089b
sub eax, ebx
push eax
push 0x2e
push ebx
call fcn.00474870
mov edi, eax
add esp, 0xc
test edi, edi
je 0x45089b
inc edi
mov ecx, ebx
sub ecx, edi
add esi, ecx
test edi, edi
jne 0x45089d
mov edi, ebx
add esi, edi
mov ebx, 0x1505
cmp edi, esi
jae 0x4508c6
mov al, byte [edi]
push eax
call fcn.00462030
movsx ecx, al
inc edi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, esi
jb 0x4508a8
pop edi
pop esi
movzx eax, bl
pop ebx
add esp, 0x10
ret
xor eax, eax
pop ebx
add esp, 0x10
ret

Function at 0x450c50
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2f0], 2
je fcn.00450c00
mov al, 1
ret
Function at 0x45e730
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]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x45e761
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
xor eax, eax
ret

Function at 0x45ead0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov edx, dword [esp + 8]
sub esp, 0x80
xor eax, eax
push ebx
mov ebx, dword [esp + 0x88]
push ebp
push esi
mov esi, edx
mov ecx, dword [ebx + 0x1c4]
cmp edx, ecx
push edi
sete al
sub esi, ecx
neg esi
sbb esi, esi
and esi, 0xfffffff0
lea eax, [eax*4 + 0x1c0]
mov ebp, dword [eax + ebx]
add esi, 0x1f4
mov eax, dword [ebx + 0x2e8]
add esi, ebx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x45ebb4
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1d4]
cmp dword [eax + ebx], 0x45e770
jne 0x45ebb4
cmp dword [esi], 0
je 0x45eb45
test edi, edi
je 0x45ebb4
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.00461360
add esp, 0x14
cmp eax, 0xffffffff
je 0x45ebb4
test al, 1
je 0x45ebb4
cmp dword [esi], 0
jne 0x45eb8e
mov eax, dword [ebx]
mov eax, dword [eax + 0x8fc]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x4e81d0]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x45ebad
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x45ebb4
add dword [esi + 8], eax
jmp 0x45ebb4
mov dword [esi + 4], 0
push 0
push dword [esp + 0xa4]
push dword [esp + 0xa4]
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45ec3e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x45ebfd
mov ecx, dword [esp + 0xa4]
lea eax, [edi + 0x52]
pop edi
pop esi
pop ebp
mov dword [ecx], 0
pop ebx
add esp, 0x80
ret
push 0x80
lea eax, [esp + 0x14]
push eax
push esi
call fcn.004904d0
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.0045e600
mov eax, dword [ebx]
add esp, 0x18
mov ecx, dword [esp + 0xa4]
mov dword [eax + 0xd14], esi
mov eax, 0x37
mov dword [ecx], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov ecx, dword [esp + 0xa4]
xor eax, eax
mov dword [ecx], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
Function at 0x45fad0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
push ebx
mov ebx, dword [esp + 0x190]
cmp dword [ebx + 0x90], 3
jne 0x45fd08
cmp byte [ebx + 0x2a5], 0
push ebp
push esi
push edi
jne 0x45fc9a
cmp byte [ebx + 0x2c0], 0
jne 0x45fc9a
mov esi, dword [esp + 0x1a0]
lea eax, [esp + 0x10]
mov ebp, dword [ebx]
push eax
lea eax, [esp + 0x11c]
mov dword [esp + 0x14], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x45fb64
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x18]
push 0x80
push eax
push esi
call fcn.004904d0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.0045e600
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret
push 0x80
lea eax, [esp + 0x9c]
mov dword [esp + 0x18], 0x80
push 0
push eax
call fcn.00401510
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x9c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x45fbce
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x18]
push 0x80
push eax
push esi
call fcn.004904d0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.0045e600
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret
lea eax, [ebx + 0x138]
push eax
lea esi, [ebx + 0x10a]
push esi
push dword [esp + 0x18]
lea eax, [esp + 0x124]
push eax
call fcn.0045f9c0
add esp, 0x10
test al, al
jne 0x45fc2e
call fcn.0042da69
mov esi, dword [eax]
call fcn.0042da69
mov edi, eax
lea eax, [esp + 0x18]
push 0x80
push eax
push esi
call fcn.004904d0
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.0045e600
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret
lea edi, [ebx + 0x5c]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebx + 0x13c]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0xa4]
movsw word es:[edi], word [esi]
push eax
call fcn.0045f9c0
add esp, 0x10
test al, al
jne 0x45fc9a
call fcn.0042da69
mov esi, dword [eax]
call fcn.0042da69
mov edi, eax
lea eax, [esp + 0x18]
push 0x80
push eax
push esi
call fcn.004904d0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.0045e600
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret
mov edi, dword [ebx]
lea esi, [ebx + 0x10a]
add edi, 0x1088
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xb
movsw word es:[edi], word [esi]
mov edi, dword [ebx]
lea esi, [ebx + 0x13c]
add edi, 0x10bc
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [ebx + 0x2e8]
mov ecx, dword [ebx]
pop edi
pop esi
mov eax, dword [eax]
mov dword [ecx + 0x10f0], eax
mov eax, dword [ebx + 0x2e8]
mov ecx, dword [ebx]
pop ebp
mov eax, dword [eax + 0x40]
mov dword [ecx + 0x10f4], eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x138]
mov dword [ecx + 0x10b8], eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x16c]
mov dword [ecx + 0x10ec], eax
pop ebx
add esp, 0x188
ret
Function at 0x460d90
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub esp, 0x190
test byte [esp + 0x194], 2
je 0x460dd3
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x460dc7
mov eax, dword [esp]
cmp al, 2
jne 0x460dc1
shr eax, 8
cmp al, 2
je 0x460dd3
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add esp, 0x190
ret
call fcn.00492f30
test eax, eax
jne 0x460fcd
push esi
push edi
push 0x4c5d30
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x460e00
mov dword [0x521824], esi
jmp 0x460f30
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LoadLibraryExA
push edi
call ebp
push 0x4c60e8
push 0x4c109c
mov ebx, eax
call fcn.00492ef0
add esp, 8
test eax, eax
je 0x460e50
test ebx, ebx
je 0x460e3e
push 8
push 0
push 0x4c109c
call ebx
mov esi, eax
jmp 0x460f13
push 0x4c109c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x460f13
test ebx, ebx
je 0x460e75
push str.AddDllDirectory
push edi
call ebp
test eax, eax
je 0x460e75
push 0x800
push 0
push 0x4c109c
call ebx
mov esi, eax
jmp 0x460f13
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x460f0d
lea ecx, [ebp + 0xd]
push ecx
call dword [0x4e81d0]
mov edi, eax
add esp, 4
test edi, edi
je 0x460f03
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x460f03
mov ecx, edi
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x460eb0
sub ecx, edx
mov eax, 0x5c
mov word [ecx + edi], ax
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x460ec7
sub ecx, edx
mov edx, 0x4c109c
sub ecx, edx
add ecx, edi
lea esp, [esp]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x460ee0
test ebx, ebx
je 0x460efa
push 8
push 0
push edi
call ebx
jmp 0x460f01
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push edi
call dword [0x4e81d4]
add esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x521824], esi
test esi, esi
je 0x460f2e
push str.if_nametoindex
push esi
call ebp
test eax, eax
je 0x460f2e
mov dword [0x521820], eax
pop ebp
pop ebx
push 0x9c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00401510
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
mov dword [esp + 8], 0x9c
mov dword [esp + 0xc], 6
mov dword [esp + 0x10], 0
push 3
push 2
push 0
push 0
mov dword [esp + 0x28], 2
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push 1
push 8
push edx
push eax
call esi
push edx
push eax
push 0x33
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
pop edi
pop esi
test eax, eax
je 0x460fc4
push 0x521828
mov byte [0x521830], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
add esp, 0x190
ret
mov byte [0x521830], 0
xor eax, eax
add esp, 0x190
ret
Function at 0x461100
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x4c5d30
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x46111a
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 0x4c60e8
push esi
call fcn.00492ef0
add esp, 8
test eax, eax
je 0x461162
test ebp, ebp
je 0x461153
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 0x461188
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x461188
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 0x46123f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4611a5
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [0x4e81d0]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x461235
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x461235
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4611d7
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4611f0
sub ecx, edx
sub ecx, esi
add ecx, ebx
lea ecx, [ecx]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x461200
test ebp, ebp
je 0x46122c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x4e81d4]
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 [0x4e81d4]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x470ec0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x30
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x14], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x470ef2
pop edi
or eax, eax
pop esi
add esp, 0x30
ret
push ebx
mov eax, 2
mov dword [esp + 0x1c], 0
push 0x7f000001
mov dword [esp + 0x24], 0
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
xor eax, eax
push 4
mov word [esp + 0x1a], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x471085
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x471085
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x471085
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x471085
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x471085
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x471085
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x471085
push ebx
push 0x4c04b4
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.00472860
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x470ff2
push 0
sub esi, ecx
lea eax, [esp + 0x28]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x471085
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x471085
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x471043
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x471048
add ecx, 4
add edx, 4
sub esi, 4
jae 0x471032
cmp esi, 0xfffffffc
je 0x471075
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x471085
cmp esi, 0xfffffffd
je 0x471075
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x471085
cmp esi, 0xfffffffe
je 0x471075
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x471085
cmp esi, 0xffffffff
je 0x471075
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x471085
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
pop ebx
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x30
ret
Function at 0x475210
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [eax], ebx
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4753c4
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4753ad
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x47525f
lea ebp, [eax + 0xe]
jmp 0x47526b
cmp eax, 0x17
jne 0x47531a
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x47531a
mov eax, dword [edi + 0x10]
test eax, eax
je 0x47531a
cmp eax, ebp
jb 0x47531a
push 0x20
call dword [0x4e81d0]
mov esi, eax
add esp, 4
test esi, esi
je 0x4753a2
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebp
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x4e81d0]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x475391
push ebp
push dword [edi + 0x18]
push eax
call fcn.00418f20
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x475305
push eax
call dword [0x4e81dc]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x475377
test ebx, ebx
jne 0x47530b
mov ebx, esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x475316
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x475252
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x475338
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x4753a9
test ebx, ebx
je 0x475365
push dword [ebx + 0x18]
call dword [0x4e81d4]
push dword [ebx + 0x14]
call dword [0x4e81d4]
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x4e81d4]
add esp, 0xc
mov ebx, esi
test esi, esi
jne 0x475340
mov eax, dword [esp + 0x2c]
xor ebx, ebx
pop edi
pop esi
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebp, 8
call dword [0x4e81d4]
push esi
call dword [0x4e81d4]
add esp, 8
jmp 0x475329
push esi
mov ebp, 8
call dword [0x4e81d4]
add esp, 4
jmp 0x475329
mov ebp, 8
jmp 0x475329
test ebx, ebx
jne 0x4753b9
mov ebp, 0x2af9
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x475c42
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4e81c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4cc184
push esi
call fcn.0044009d
pop ecx
pop ecx
test eax, eax
jne 0x475c70
xor al, al
jmp 0x475ced
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.004759d1
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x475caa
push dword [ebp - 0x210]
call fcn.0041d2d7
xor al, al
jmp 0x475ceb
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x475cb0
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x475cd0
push edx
call fcn.00475b94
pop ecx
test al, al
je 0x475c9b
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x475cde
mov bl, 1
push dword [ebp - 0x210]
call fcn.0041d2d7
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042fae0
leave
ret

Function at 0x476630
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1000
call fcn.0042a220
push dword [esp + 0x1004]
call fcn.00497979
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x47667c
push 0x1000
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x47667c
lea eax, [esp]
push eax
call dword [0x4e81dc]
add esp, 4
add esp, 0x1000
ret
xor eax, eax
add esp, 0x1000
ret
Function at 0x476bc0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4e81c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push esi
mov dword [esi + 0x170], 0
call fcn.0049ad40
add esp, 8
test eax, eax
jne 0x476d73
mov edx, dword [ebp - 0x218]
mov eax, dword [esi + 0x164]
imul ecx, edx, 0x3e8
test eax, eax
push ebx
push edi
mov edi, 0x3e8
mov dword [ebp - 0x21c], eax
mov eax, dword [esi + 0x64]
cmove ecx, edi
test eax, eax
jle 0x476c88
test edx, edx
je 0x476c2c
cmp ecx, eax
jle 0x476c88
push 0
call fcn.00473fae
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
push eax
call fcn.0049acfa
fmul qword [0x4b56a8]
add esp, 0x14
mov ecx, dword [esi + 0x64]
fstp qword [ebp - 0x214]
cvttsd2si eax, qword [ebp - 0x214]
cmp eax, ecx
jle 0x476c7f
push str.API_timeout_expired
push 0xfffffffffffffff7
push esi
call fcn.0049aeb0
add esp, 0xc
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042fae0
mov esp, ebp
pop ebp
ret
sub ecx, eax
mov ebx, 1
jmp 0x476c8f
xor ebx, ebx
test ecx, ecx
setg bl
mov eax, 0x10624dd3
xor edi, edi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x214], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x210], eax
test cl, 1
je 0x476ce5
mov eax, dword [esi + 0x15c]
lea edx, [ebp - 0x108]
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], 1
jmp 0x476ce7
xor edx, edx
test cl, 2
je 0x476d08
mov eax, dword [esi + 0x15c]
lea edi, [ebp - 0x20c]
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x20c], 1
xor ecx, ecx
lea eax, [ebp - 0x214]
test ebx, ebx
cmove eax, ecx
push eax
mov eax, dword [esi + 0x15c]
push ecx
push edi
push edx
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x476d4c
push str.Timed_out_waiting_on_socket
push 0xfffffffffffffff7
push esi
call fcn.0049aeb0
add esp, 0xc
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042fae0
mov esp, ebp
pop ebp
ret
jns 0x476d6f
push str.Error_waiting_on_socket
push 0xfffffffffffffff7
push esi
call fcn.0049aeb0
add esp, 0xc
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042fae0
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042fae0
mov esp, ebp
pop ebp
ret
Function at 0x47f040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov ecx, dword [edi]
cmp ecx, ebx
jae 0x47f0ab
mov esi, dword [ebp + 8]
lea eax, [esi + 0x34]
nop dword [eax + eax]
cmp dword [esi + 0x4c], 0
mov edx, dword [esi + 0x48]
jne 0x47f082
push eax
lea eax, [ebp + 0x14]
push eax
mov eax, ebx
sub eax, ecx
push eax
mov eax, dword [ebp + 0xc]
add eax, ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x47f090
push 0
lea ecx, [ebp + 0x14]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, eax
mov eax, dword [ebp + 0x14]
add dword [edi], eax
test ecx, ecx
je 0x47f0b8
mov dword [esi + 0x4c], 0
lea eax, [esi + 0x34]
mov ecx, dword [edi]
cmp ecx, ebx
jb 0x47f060
mov dword [edi], 0
mov eax, ecx
pop edi
pop esi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x4c], 0
jne 0x47f0d3
cmp eax, 0x3e5
je 0x47f0da
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
cmp eax, 0x3e4
jne 0x47f0cb
pop edi
mov dword [esi + 0x4c], 1
mov eax, 0xffffffdb
pop esi
pop ebx
pop ebp
ret

Function at 0x47f0f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov ecx, dword [edi]
cmp ecx, ebx
jae 0x47f15b
mov esi, dword [ebp + 8]
lea eax, [esi + 0x34]
nop dword [eax + eax]
cmp dword [esi + 0x4c], 0
mov edx, dword [esi + 0x48]
jne 0x47f132
push eax
lea eax, [ebp + 0x14]
push eax
mov eax, ebx
sub eax, ecx
push eax
mov eax, dword [ebp + 0xc]
add eax, ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x47f140
push 0
lea ecx, [ebp + 0x14]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, eax
mov eax, dword [ebp + 0x14]
add dword [edi], eax
test ecx, ecx
je 0x47f168
mov dword [esi + 0x4c], 0
lea eax, [esi + 0x34]
mov ecx, dword [edi]
cmp ecx, ebx
jb 0x47f110
mov dword [edi], 0
mov eax, ecx
pop edi
pop esi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x4c], 0
jne 0x47f183
cmp eax, 0x3e5
je 0x47f18a
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
cmp eax, 0x3e4
jne 0x47f17b
pop edi
mov dword [esi + 0x4c], 1
mov eax, 0xffffffdb
pop esi
pop ebx
pop ebp
ret