joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52ce20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x52ce41
or eax, 0xffffffff
jmp 0x52ce58
mov eax, dword [ebp + 0xc]
and eax, 2
je 0x52ce56
mov eax, dword [ebp - 4]
and eax, 1
je 0x52ce56
or eax, 0xffffffff
jmp 0x52ce58
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x52ce60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x52ce91
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x52ce8c
xor eax, eax
jmp 0x52ce93
or eax, 0xffffffff
jmp 0x52ce93
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x536400
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
movzx eax, byte [ebp + 8]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov cl, byte [ebp + 8]
mov byte [eax + 2], cl
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.00513ce0
add esp, 4
movzx edx, al
test edx, edx
je 0x53645c
lea eax, [ebp - 8]
push eax
push 0x8004667e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x53645c
mov dword [ebp - 0x4c], 1
jmp 0x536463
mov dword [ebp - 0x4c], 0
mov al, byte [ebp - 0x4c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x536ef0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.00513ce0
add esp, 4
movzx edx, al
test edx, edx
jne 0x536f16
xor al, al
jmp 0x536f47
cmp dword [ebp + 8], 0
jg 0x536f23
mov dword [ebp + 8], 0x2000
push 4
lea eax, [ebp + 8]
push eax
push 0x1002
push 0xffff
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
neg eax
sbb eax, eax
add eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x536f50
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.00513ce0
add esp, 4
movzx edx, al
test edx, edx
jne 0x536f76
xor al, al
jmp 0x536fa7
cmp dword [ebp + 8], 0
jg 0x536f83
mov dword [ebp + 8], 0x2000
push 4
lea eax, [ebp + 8]
push eax
push 0x1001
push 0xffff
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
neg eax
sbb eax, eax
add eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x536fb0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x105c
call fcn.00589140
mov eax, dword [0x6aae20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call fcn.005363b0
cmp dword [ebp + 8], 0
je 0x536ff5
mov eax, dword [ebp + 8]
push eax
call fcn.0042d9f0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x536ff5
xor al, al
jmp 0x537142
cmp dword [ebp + 0xc], 0
jne 0x537002
mov dword [ebp + 0xc], 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.00513ce0
add esp, 4
movzx edx, al
test edx, edx
jne 0x537090
mov byte [ebp - 0x1008], 0
push 0xfff
push 0
lea eax, [ebp - 0x1007]
push eax
call fcn.00588eb0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.socket_bind_error_:_Last_Error__lu_
lea eax, [ebp - 0x1008]
push eax
call fcn.0058906d
add esp, 0xc
cmp dword [0x6b144c], 0
je 0x537089
push 7
push 7
lea eax, [ebp - 0x1008]
push eax
mov ecx, dword [0x6b144c]
mov edx, dword [ecx]
mov eax, dword [0x6b144c]
push eax
mov ecx, dword [edx + 8]
call ecx
xor al, al
jmp 0x537142
mov eax, 2
mov word [ebp - 0x1018], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1014], eax
movzx eax, word [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1016], ax
push 0x10
lea eax, [ebp - 0x1018]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x537138
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 8]
mov byte [eax], 1
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 1]
test ecx, ecx
je 0x5370fe
push 1
mov ecx, dword [ebp - 8]
call fcn.00537160
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 2]
test ecx, ecx
jne 0x537126
push 0
mov ecx, dword [ebp - 8]
call fcn.00536400
movzx edx, al
test edx, edx
jne 0x537126
mov dword [ebp - 0x105c], 0
jmp 0x537130
mov dword [ebp - 0x105c], 1
mov al, byte [ebp - 0x105c]
jmp 0x537142
mov ecx, dword [ebp - 8]
call fcn.005363b0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005884bd
mov esp, ebp
pop ebp
ret 8

Function at 0x537160
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov cl, byte [ebp + 8]
mov byte [eax + 1], cl
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.00513ce0
add esp, 4
movzx edx, al
test edx, edx
jne 0x53718f
mov al, 1
jmp 0x5371bd
movzx eax, byte [ebp + 8]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 8], eax
push 4
lea eax, [ebp - 8]
push eax
push 0x20
push 0xffff
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
neg eax
sbb eax, eax
add eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5372f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x6aae20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
je 0x537334
cmp dword [ebp + 0xc], 0
jle 0x537334
cmp dword [ebp + 0xc], 0x2000
jg 0x537334
cmp dword [ebp + 0x10], 0
je 0x537334
mov eax, dword [ebp + 0x14]
push eax
call fcn.0042d9f0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x537338
xor al, al
jmp 0x5373b6
mov ecx, dword [ebp - 8]
call fcn.00536ea0
movzx eax, al
test eax, eax
jne 0x537368
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00536fb0
movzx ecx, al
test ecx, ecx
jne 0x537368
xor al, al
jmp 0x5373b6
mov eax, 2
mov word [ebp - 0x18], ax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
movzx eax, word [ebp + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, dword [ebp + 0xc]
jne 0x5373ac
mov al, 1
jmp 0x5373b6
mov ecx, dword [ebp - 8]
call fcn.005373d0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005884bd
mov esp, ebp
pop ebp
ret 0x10
Function at 0x537ba0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x6aae20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
je 0x537bc2
cmp dword [ebp + 0xc], 0
jg 0x537bc9
xor eax, eax
jmp 0x537c63
mov ecx, dword [ebp - 8]
call fcn.00536ea0
movzx eax, al
test eax, eax
jne 0x537be0
or eax, 0xffffffff
jmp 0x537c63
mov dword [ebp - 0x1c], 0x10
cmp dword [ebp + 0xc], 0x2000
jle 0x537bf7
mov dword [ebp + 0xc], 0x2000
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jle 0x537c47
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0xc], ecx
movzx eax, word [ebp - 0x16]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
and ecx, 0xffff
mov edx, dword [ebp - 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 0xc]
jmp 0x537c63
mov ecx, dword [ebp - 8]
call fcn.005373d0
mov ecx, dword [ebp - 8]
call fcn.00536ea0
movzx eax, al
neg eax
sbb eax, eax
neg eax
sub eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005884bd
mov esp, ebp
pop ebp
ret 8
Function at 0x53c1e0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x6aae20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0x400
mov dword [ebp - 0x414], 0xffffffff
mov dword [ebp - 0x418], 0
cmp dword [ebp + 8], 0
jge 0x53c21e
mov dword [ebp + 8], 0xffff
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x410]
push ecx
call fcn.00588eb0
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x53c2f2
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x53c2f2
mov eax, dword [ebp - 8]
movsx ecx, word [eax + 0xa]
cmp ecx, 4
jb 0x53c2f2
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
cmp dword [ecx + edx*4], 0
je 0x53c2f2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
sub ecx, 1
mov dword [ebp + 8], ecx
test eax, eax
jl 0x53c2f2
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax]
mov dword [ebp - 0x414], ecx
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x414]
push eax
call fcn.00513ce0
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x53c2f0
mov eax, dword [ebp - 0x414]
push eax
call fcn.0053c350
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x53c2f0
mov eax, dword [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x53c27c
mov eax, dword [ebp - 0x418]
push eax
call fcn.00513ce0
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x53c32c
mov edx, dword [ebp - 0x414]
push edx
call fcn.0053c350
add esp, 4
movzx eax, al
test eax, eax
je 0x53c32c
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x45c], ecx
jmp 0x53c338
mov edx, dword [ebp - 0x414]
mov dword [ebp - 0x45c], edx
mov eax, dword [ebp - 0x45c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005884bd
mov esp, ebp
pop ebp
ret
Function at 0x53c3e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
je 0x53c3f9
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x53c401
or eax, 0xffffffff
jmp 0x53c4a7
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
cmp ecx, 0x30
jl 0x53c426
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
cmp eax, 0x39
jg 0x53c426
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x4c], eax
jmp 0x53c42d
mov dword [ebp - 0x4c], 0xffffffff
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0xffffffff
jne 0x53c4a4
mov eax, dword [ebp + 8]
push eax
call fcn.0053cae0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x53c4a4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x53c485
mov eax, dword [ebp - 8]
movsx ecx, word [eax + 0xa]
cmp ecx, 4
jb 0x53c485
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x53c485
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 4], eax
jmp 0x53c4a4
cmp dword [ebp - 8], 0
jne 0x53c4a4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2af9
jne 0x53c4a4
mov eax, dword [ebp + 8]
push eax
call fcn.0053ca80
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x53d280
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
call fcn.00513ce0
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x53d2c3
lea edx, [ebp - 4]
push edx
push 0x8004667e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x53d2c3
mov dword [ebp - 0x48], 1
jmp 0x53d2ca
mov dword [ebp - 0x48], 0
mov al, byte [ebp - 0x48]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x53d2e0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
movzx eax, byte [ebp + 8]
test eax, eax
je 0x53d301
push 0
push 1
push 2
call fcn.0053a7b0
mov dword [ebp - 0x44], eax
jmp 0x53d310
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x53d990
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov ecx, dword [ebp + 8]
call fcn.0051f660
movzx eax, al
test eax, eax
je 0x53d9be
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0053aa90
mov dword [ebp - 0x44], eax
jmp 0x53d9d3
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53eaa0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
jle 0x53ead4
mov eax, dword [ebp + 0x10]
jmp 0x53eaec
call fcn.0053d950
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
sub eax, 0x2733
neg eax
sbb eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x10], 0
jle 0x53eb34
mov eax, dword [ebp + 0x10]
jmp 0x53eb62
call fcn.0053d950
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
cmp dword [ebp + 0x10], 0
je 0x53eb58
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0x2733
jne 0x53eb58
mov dword [ebp - 0x44], 0
jmp 0x53eb5f
mov dword [ebp - 0x44], 0xffffffff
mov eax, dword [ebp - 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x53f070
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.0051f660
movzx eax, al
test eax, eax
je 0x53f08f
mov al, 1
jmp 0x53f0df
mov ecx, dword [ebp - 4]
call fcn.00513db0
movzx eax, al
test eax, eax
jne 0x53f0a2
xor al, al
jmp 0x53f0df
cmp dword [ebp + 8], 0
jle 0x53f0b1
cmp dword [ebp + 8], 0x100000
jle 0x53f0b8
mov dword [ebp + 8], 0x2000
push 4
lea eax, [ebp + 8]
push eax
push 0x1002
push 0xffff
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xe0]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
neg eax
sbb eax, eax
add eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x54a2f0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
je 0x54a309
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x54a30d
xor al, al
jmp 0x54a374
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x54a328
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x54a32c
xor al, al
jmp 0x54a374
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x54a34b
mov eax, dword [ebp - 4]
and eax, 1
je 0x54a340
mov al, 1
jmp 0x54a374
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
jmp 0x54a360
mov eax, dword [ebp - 4]
and eax, 1
jne 0x54a357
mov al, 1
jmp 0x54a374
mov eax, dword [ebp - 4]
and eax, 0xfffffffe
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x550670
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x5506b1
push 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x5506b1
mov edx, dword [ebp - 8]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x4c], eax
jmp 0x5506bf
mov dword [ebp - 0x50], accept
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5528c0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x99]
test ecx, ecx
je 0x552955
mov ecx, dword [ebp - 4]
add ecx, 0x78
call fcn.00513960
movzx eax, al
test eax, eax
jne 0x552955
mov ecx, dword [ebp - 4]
add ecx, 0x38
call fcn.00507f90
push eax
call fcn.0054a2a0
add esp, 4
movzx eax, al
test eax, eax
je 0x552955
mov ecx, dword [ebp - 4]
add ecx, 0x78
call fcn.00507f90
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x38
call fcn.00507f90
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x552955
mov eax, dword [ebp - 4]
mov byte [eax + 0x99], 0
mov eax, dword [ebp - 4]
add eax, 0x78
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x38
call fcn.00514b20
push 0x67eed6
mov ecx, dword [ebp - 4]
add ecx, 0x78
call fcn.00512c30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x558820
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1294
call fcn.00589140
mov eax, dword [0x6aae20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov byte [ebp - 0x1004], 0
push 0xfff
push 0
lea eax, [ebp - 0x1003]
push eax
call fcn.00588eb0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.ErrCode_:___lu__Host_:___s_
lea edx, [ebp - 0x1004]
push edx
call fcn.0058906d
add esp, 0x10
mov dword [ebp - 0x1250], 0x248
lea eax, [ebp - 0x1250]
push eax
lea ecx, [ebp - 0x124c]
push ecx
call sub.IPHLPAPI.DLL_GetNetworkParams
test eax, eax
jne 0x55893b
push 0x67eed6
lea eax, [ebp - 0x113c]
push eax
call fcn.005892a0
add esp, 8
test eax, eax
je 0x55891e
lea eax, [ebp - 0x113c]
push eax
lea ecx, [ebp - 0x1004]
push ecx
push str._s__DNS_:___s_
lea edx, [ebp - 0x1004]
push edx
call fcn.0058906d
add esp, 0x10
mov eax, dword [ebp - 0x1140]
mov dword [ebp - 0x1254], eax
cmp dword [ebp - 0x1254], 0
je 0x55891c
mov eax, dword [ebp - 0x1254]
add eax, 4
push eax
lea ecx, [ebp - 0x1004]
push ecx
push 0x67aff8
lea edx, [ebp - 0x1004]
push edx
call fcn.0058906d
add esp, 0x10
mov eax, dword [ebp - 0x1254]
mov ecx, dword [eax]
mov dword [ebp - 0x1254], ecx
jmp 0x5588de
jmp 0x558939
lea eax, [ebp - 0x1004]
push eax
push str._s__no_DNS
lea ecx, [ebp - 0x1004]
push ecx
call fcn.0058906d
add esp, 0xc
jmp 0x558956
lea eax, [ebp - 0x1004]
push eax
push str._s__no_DNS
lea ecx, [ebp - 0x1004]
push ecx
call fcn.0058906d
add esp, 0xc
push 0
lea eax, [ebp - 0x1004]
push eax
push str.11500106
call fcn.005079e0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005884bd
mov esp, ebp
pop ebp
ret
Function at 0x5699f0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b4492
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x6aae20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00575110
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0052d3b0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0056c5d0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.00569c20
push 0x10
call fcn.0044fb21
add esp, 4
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x70], 0
je 0x569a76
mov ecx, dword [ebp - 0x70]
call fcn.0050ac90
mov dword [ebp - 0x78], eax
jmp 0x569a7d
mov dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x74]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00575320
push 0xac
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0056c290
push 0x48
call fcn.0044fb21
add esp, 4
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x64], 0
je 0x569ace
mov ecx, dword [ebp - 0x64]
call fcn.00569ba0
mov dword [ebp - 0x78], eax
jmp 0x569ad5
mov dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
lea edx, [ebp - 0x6c]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0056c470
push 0x68
call fcn.0044fb21
add esp, 4
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x5c], 0
je 0x569b18
mov ecx, dword [ebp - 0x5c]
call fcn.00569c50
mov dword [ebp - 0x78], eax
jmp 0x569b1f
mov dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x60]
mov dword [ecx + 0x68], edx
push 0x68
call fcn.0044fb21
add esp, 4
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x54], 0
je 0x569b56
mov ecx, dword [ebp - 0x54]
call fcn.00569c50
mov dword [ebp - 0x78], eax
jmp 0x569b5d
mov dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x58]
mov dword [ecx + 0x6c], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x70], 0
push 1
mov ecx, dword [ebp - 0x10]
call fcn.0056bbe0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x57e580
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret