joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5100a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x5f0a00]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
mov ebx, dword [esp + 0x190]
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [esp + 0x1a4]
push 0x80
push 0
push eax
mov dword [esp + 0x18], 0x80
call fcn.00557d70
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1a4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x510127
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00517f90
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x510167
push edi
push esi
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.0050fc90
add esp, 0x10
test al, al
jne 0x510170
call fcn.0055c079
mov esi, dword [eax]
call fcn.0055c079
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00517f90
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0050f2a0
add esp, 0x1c
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00551e44
add esp, 0x188
ret
Function at 0x511de0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x511dfa
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x5b4720
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x5b4730
push esi
call fcn.00572614
add esp, 8
test eax, eax
je 0x511e42
test ebp, ebp
je 0x511e33
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_LoadLibraryW]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x511e68
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x511e68
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_GetSystemDirectoryW]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x511f42
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x511e85
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x5f0994]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x511f38
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x511f38
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x511ec6
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x511ee1
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x511f00
test ebp, ebp
je 0x511f2f
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x5f0998]
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_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x5f0998]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x516150
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 [0x5f099c]
mov edi, eax
add esp, 8
test edi, edi
je 0x5161a7
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 0x5161bf
cmp esi, ebx
je 0x5161bf
cmp esi, 0x8000
ja 0x5161bf
cmp esi, ebx
jb 0x5161b8
push esi
push edi
call dword [0x5f099c]
mov edi, eax
add esp, 8
test edi, edi
jne 0x516170
push ebp
call dword [0x5f0998]
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 [0x5f0998]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x518b50
Capabilities:
Convert ip address from string

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

Function at 0x518cb0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x518cc2
mov eax, dword [eax + 0x70]
mov al, byte [eax + 0xe3]
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x518cd6
xor al, al
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
ret
Function at 0x51a200
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.0051a570
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.005122b0
push dword [esp + 0x40]
mov edi, eax
call fcn.005122b0
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x51a295
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.0051a570
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.0051a620
add esp, 0x20
test edx, edx
ja 0x51a2b9
jb 0x51a287
cmp eax, 0x3e8
ja 0x51a2b9
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x51a250
test edi, edi
je 0x51a2a2
push edi
call fcn.0055ba5c
add esp, 4
test esi, esi
je 0x51a2af
push esi
call fcn.0055ba5c
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x51a2c6
push edi
call fcn.0055ba5c
add esp, 4
test esi, esi
je 0x51a2d3
push esi
call fcn.0055ba5c
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x51c0b0
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 + 0xc]
push ecx
mov byte [esp + 0x18], 0xff
mov byte [esp + 0x19], bl
push dword [eax + 0x150]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x51c0fc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0050f2a0
add esp, 0xc
push dword [esp + 0x14]
push ebx
push str.SENT
push esi
call fcn.0051bcd0
add esp, 0x10
pop esi
pop ebx
ret

Function at 0x51c250
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 + 0xc]
mov ebp, dword [ebx + 0x134]
mov dword [esp + 8], eax
jne 0x51c3a3
push esi
lea ecx, [ebp + 0x1cb4]
push edi
lea edi, [ebp + 0x1eb4]
mov eax, ecx
mov dword [edi], ecx
cmp ecx, edi
jae 0x51c28d
lea eax, [ecx + 1]
mov byte [ecx], 0xff
mov dword [edi], eax
cmp eax, edi
jae 0x51c2a1
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x51c2a1
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x18], eax
movzx eax, word [ebp + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x18]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x51c30b
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x51c30b
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x51c30b
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x51c30b
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x51c30b
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x51c30b
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov dword [ebp + 0x1eb8], eax
lea esi, [ebp + 0x1cb4]
sub eax, esi
mov dword [edi], esi
sub eax, 2
push eax
lea eax, [ebp + 0x1cb6]
push eax
push 0x3e
push ebx
call fcn.0051bdd0
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 + 0x150]
call edi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x51c363
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0050f2a0
add esp, 0xc
push 4
lea eax, [ebp + 0x1cb7]
push eax
push ebx
call fcn.0051c120
add esp, 0xc
lea eax, [ebp + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x150]
call edi
test eax, eax
jns 0x51c3a1
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0050f2a0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x51d830
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x5f0a00]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
mov ebx, dword [esp + 0x90]
push ebp
push esi
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x440]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
lea eax, [esp + 0x18]
push eax
mov eax, dword [edi + 0x13c]
push 0
add eax, 4
push eax
push dword [edi + 0x148]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x130], 0
mov dword [edi + 0x134], eax
jne 0x51d8b6
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.005577f0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x130], eax
mov esi, dword [edi + 0x134]
cmp esi, 4
jge 0x51d8f1
push str.Received_too_short_packet
push ebx
call fcn.0050f2a0
add esp, 8
mov dword [edi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00551e44
add esp, 0x88
ret
mov edx, dword [edi + 0x148]
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
shl eax, 8
or ecx, eax
mov dword [edi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x51d910.1
jmp dword [ecx*4 + 0x51da1c]
cmp esi, 4
jle case.0x51d910.4
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x144]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x51d910.4
lea eax, [esi - 4]
push eax
lea eax, [edx + 4]
push eax
push 1
push ebx
call fcn.0050f1f0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x51d96b
push 5
push edi
call fcn.0051e330
add esp, 8
mov eax, esi
jmp 0x51d8d8
mov eax, dword [edi + 0x134]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
adc dword [ebx + 0x94], edx
push dword [ebx + 0x94]
push dword [ebx + 0x90]
push ebx
call fcn.00516350
jmp 0x51d9f1
movzx ecx, byte [edx + 2]
lea ebp, [edx + 4]
movzx eax, byte [edx + 3]
add esi, 0xfffffffc
shl ecx, 8
or ecx, eax
push esi
push ebp
mov dword [edi + 8], ecx
call fcn.0051e3a0
add esp, 8
cmp eax, esi
jae case.0x51d910.4
push ebp
push str.TFTP_error:__s
push ebx
call fcn.0050f370
jmp 0x51d9f1
lea eax, [esi - 2]
push eax
lea eax, [edx + 2]
push eax
push edi
call fcn.0051d5e0
add esp, 0xc
test eax, eax
je case.0x51d910.4
jmp 0x51d8d8
push str.Internal_error:_Unexpected_packet
push 0x5a31dc
push ebx
call fcn.0050f2a0
add esp, 0xc
push ebx
call fcn.00516750
add esp, 4
test eax, eax
je 0x51d8d6
push 5
push edi
call fcn.0051e330
add esp, 8
mov eax, 0x2a
jmp 0x51d8d8
Function at 0x5318c0
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x4c
mov eax, dword [0x5f0a00]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x64]
mov esi, edi
mov dword [esp + 0x10], eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x5318e3
sub esi, ecx
cmp byte [edi], 0x5b
jne 0x531a9d
cmp esi, 4
jb 0x531a85
inc edi
sub esi, 2
cmp byte [edi + esi], 0x5d
jne 0x531a85
push str.0123456789abcdefABCDEF:.
push edi
call fcn.00574660
add esp, 8
cmp esi, eax
je 0x5319de
mov esi, eax
add eax, edi
mov dword [esp + 0x14], eax
cmp byte [eax], 0x25
jne 0x531a85
push 2
lea ebx, [eax + 1]
xor ebp, ebp
push 0x5bb67c
push ebx
call fcn.0056ac50
add esp, 0xc
test eax, eax
jne 0x53195c
mov cl, byte [ebx + 2]
lea eax, [ebx + 2]
test cl, cl
je 0x53195c
cmp cl, 0x5d
cmovne ebx, eax
mov al, byte [ebx]
test al, al
je 0x531a6d
lea ecx, [esp + 0x18]
sub ecx, ebx
nop dword [eax]
cmp al, 0x5d
je 0x531985
cmp ebp, 0xf
jge 0x531985
mov byte [ecx + ebx], al
inc ebp
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x531970
test ebp, ebp
je 0x531a6d
cmp byte [ebx], 0x5d
jne 0x531a6d
cmp ebp, 0x10
jae 0x531ac7
lea eax, [esp + 0x18]
mov byte [esp + ebp + 0x18], 0
push eax
call dword [0x5f09a0]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x14], eax
test eax, eax
jne 0x5319d5
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00551e44
add esp, 0x4c
ret
mov eax, dword [esp + 0x14]
mov word [eax], 0x5d
lea eax, [esp + 0x18]
mov byte [edi + esi], 0
push eax
push edi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x531a85
push 0x2e
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
push eax
push 0x17
call fcn.00539180
add esp, 0x10
test eax, eax
je 0x531a4a
lea edx, [esp + 0x28]
lea ecx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x531a20
sub edx, ecx
cmp edx, esi
jae 0x531a4a
lea ecx, [esp + 0x28]
mov esi, edi
mov eax, ecx
sub esi, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x531a37
mov byte [edx + edi + 1], al
mov esi, edx
mov byte [edi + esi], 0x5d
xor eax, eax
mov ecx, 0xe
cmp byte [edi], al
pop edi
pop esi
pop ebp
cmove eax, ecx
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00551e44
add esp, 0x4c
ret
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00551e44
add esp, 0x4c
ret
pop edi
pop esi
pop ebp
mov eax, 0x16
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00551e44
add esp, 0x4c
ret
push str.__r_n_t_:___
push edi
call fcn.0056da30
add esp, 8
cmp esi, eax
je 0x531a4e
mov ecx, dword [esp + 0x58]
mov eax, 0x15
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00551e44
add esp, 0x4c
ret
call fcn.005522ef
int3
Function at 0x53af70
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x5f0a00]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call fcn.005122b0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x53afef
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00518080
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.0050f2a0
push esi
call dword [0x5f0998]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x53b14f
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x53b049
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00518080
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.0050f2a0
push 0
mov esi, 0x4d
call dword [0x5f0998]
add esp, 0x20
jmp 0x53b141
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x53b089
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00518080
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.0050f2a0
add esp, 0x1c
mov esi, 0x4d
jmp 0x53b12d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x53b0b7
jg 0x53b09d
cmp edi, 0x100000
jbe 0x53b0b7
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.0050f2a0
add esp, 0xc
mov esi, 0x4d
jmp 0x53b12d
lea eax, [edi + 1]
push eax
call dword [0x5f0994]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x53b0cf
lea esi, [eax + 0x1b]
jmp 0x53b12d
test edi, edi
je 0x53b114
nop dword [eax]
nop word [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x53b16c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x53b168
add esi, eax
cmp esi, edi
jb 0x53b0e0
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.0053ad70
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x5f0998]
add esp, 4
push dword [esp + 0x20]
call fcn.0055ba5c
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00551e44
add esp, 0x120
ret
mov edi, esi
jmp 0x53b114
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00518080
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.0050f2a0
add esp, 0x1c
mov esi, 0x4d
jmp 0x53b12d
Function at 0x546840
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.005088b0
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x5f0994]
mov esi, eax
add esp, 8
test esi, esi
je 0x5469c2
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x5468c2
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x546933
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x5468f0
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x546965
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x5bebbe
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x5bebbf
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x546940
push dword [esp + 0x30]
call fcn.005088b0
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebx, dword [esi]
test edi, edi
jne 0x546990
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x5f0998]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret

Function at 0x546b30
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x546b7c
push ebx
mov ebx, dword [esp + 0x10]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x546b41
pop ebx
pop edi
pop esi
ret
Function at 0x546c90
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov eax, dword [0x6099fc]
test eax, eax
je 0x546ca2
inc eax
mov dword [0x6099fc], eax
xor eax, eax
ret
push ebx
mov ebx, dword [esp + 8]
mov dword [0x6099fc], 1
push esi
test bl, 1
je 0x546d5b
push str.iphlpapi.dll
mov dword [0x609a04], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x609a04], eax
test eax, eax
jne 0x546ce1
pop esi
mov eax, 0x16
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNetworkParams
push eax
call esi
mov dword [0x6099ec], eax
test eax, eax
jne 0x546d0c
push dword [0x609a04]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov eax, 0x17
pop ebx
ret
push str.GetAdaptersAddresses
push dword [0x609a04]
call esi
push str.GetBestRoute2
push dword [0x609a04]
mov dword [0x6099f4], eax
call esi
push str.advapi32.dll
mov dword [0x6099f8], eax
mov dword [0x609a08], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x609a08], eax
test eax, eax
je 0x546d5b
push str.SystemFunction036
push eax
call esi
mov dword [0x6099f0], eax
pop esi
mov dword [0x609a00], ebx
xor eax, eax
pop ebx
ret