joyce8/EMBER2024-capa huggingface dataset:
Function at 0x519bf0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x250
mov eax, dword [0x5df040]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
mov ebx, dword [esp + 0x258]
push edi
xor edi, edi
mov dword [esp + 0x10], ebx
mov eax, dword [ebx + 0xc0]
test eax, eax
je 0x519c30
push eax
call fcn.00515670
mov edi, eax
add esp, 4
test edi, edi
je 0x519d3e
cmp dword [esp + 0x260], 0
je 0x519c60
test edi, edi
je 0x519c48
push edi
call dword [0x5df5f0]
add esp, 4
push str.CARES_HOSTS
call fcn.0056473d
push eax
call fcn.00515670
add esp, 8
jmp 0x519d38
test edi, edi
jne 0x519d5a
push 0x103
lea eax, [esp + 0x51]
mov byte [esp + 0x50], 0
push edi
push eax
call fcn.00548bf0
add esp, 0xc
mov dword [esp + 0xc], 0x104
lea eax, [esp + 8]
push eax
push 0x20019
push edi
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x519cc1
lea eax, [edi + 4]
pop edi
pop ebx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.00423495
add esp, 0x250
ret
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x154]
push eax
push 0
push 0
push str.DatabasePath
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x104
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x4c]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x519d08
mov eax, dword [str.hosts]
mov dword [ecx], eax
mov ax, word [0x59c16c]
mov word [ecx + 4], ax
mov al, byte [0x59c16e]
mov byte [ecx + 6], al
lea eax, [esp + 0x4c]
push eax
call fcn.00515670
add esp, 4
mov edi, eax
test edi, edi
jne 0x519d5a
pop edi
mov eax, 0xf
pop ebx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.00423495
add esp, 0x250
ret
push ebp
mov ebp, dword [ebx + 0xc8]
lea eax, [esp + 0x20]
push esi
push eax
xorps xmm0, xmm0
push edi
movlpd qword [esp + 0x24], xmm0
call fcn.00563c80
add esp, 8
test eax, eax
jne 0x519d87
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
jmp 0x519d8f
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
test ebp, ebp
je 0x519dc8
mov eax, ebx
or eax, esi
jne 0x519dac
push eax
call fcn.0055410f
add esp, 4
mov ebx, eax
sub ebx, 0x3c
mov esi, edx
sbb esi, 0
push edi
push dword [ebp + 8]
call fcn.0051ff60
add esp, 8
test eax, eax
jne 0x519dc8
cmp dword [ebp + 4], esi
jg 0x519e18
jl 0x519dc8
cmp dword [ebp], ebx
ja 0x519e18
mov ebx, dword [esp + 0x18]
add ebx, 0xc8
mov esi, dword [ebx]
test esi, esi
je 0x519dfb
push dword [esi + 8]
call dword [0x5df5f0]
push dword [esi + 0x10]
call fcn.00515350
push dword [esi + 0xc]
call fcn.00515350
push esi
call dword [0x5df5f0]
add esp, 0x10
push ebx
push edi
mov dword [ebx], 0
call fcn.00519f10
push edi
mov esi, eax
call dword [0x5df5f0]
add esp, 0xc
mov eax, esi
jmp 0x519e24
push edi
call dword [0x5df5f0]
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x25c]
pop esi
pop ebp
pop edi
pop ebx
xor ecx, esp
call fcn.00423495
add esp, 0x250
ret
Function at 0x51bf10
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x5c
mov eax, dword [0x5df040]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
push ebp
mov ebp, dword [esp + 0x6c]
push esi
mov esi, dword [esp + 0x6c]
cmp eax, 2
jne 0x51bf44
push 4
push ebp
push esi
call fcn.0051bbb0
add esp, 0xc
mov esi, eax
jmp 0x51c041
cmp eax, 0x17
jne 0x51c07e
push esi
call fcn.005156c0
add esp, 4
cmp eax, 0x46
jb 0x51bf6e
push 0x2738
call dword [sym.imp.KERNEL32.dll_SetLastError]
or esi, 0xffffffff
jmp 0x51c041
push edi
push 0x46
lea eax, [esp + 0x20]
push esi
push eax
call fcn.00515610
lea eax, [esp + 0x28]
push 0x2f
push eax
call fcn.00549620
mov edi, eax
add esp, 0x14
test edi, edi
je 0x51bf95
mov byte [edi], 0
inc edi
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0051c0a0
add esp, 8
cmp eax, 1
je 0x51bfb4
or esi, 0xffffffff
jmp 0x51c040
push ebx
test edi, edi
jne 0x51bfd5
mov esi, 0x80
lea eax, [esi + 7]
shr eax, 3
push eax
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.00548d90
add esp, 0xc
jmp 0x51c03f
mov al, byte [edi]
xor esi, esi
xor ebx, ebx
test al, al
je 0x51c034
nop
movsx eax, al
lea edi, [edi + 1]
push eax
push str.0123456789
call fcn.00549620
add esp, 8
test eax, eax
je 0x51c034
mov ecx, ebx
inc ebx
test ecx, ecx
je 0x51c003
test esi, esi
je 0x51c034
lea esi, [esi + esi*4]
add esi, esi
sub esi, str.0123456789
add esi, eax
cmp esi, 0x80
ja 0x51c034
mov al, byte [edi]
test al, al
jne 0x51bfe0
test ebx, ebx
je 0x51c034
lea eax, [esi + 7]
shr eax, 3
cmp eax, 0x10
jbe 0x51bfc4
push 0x2738
jmp 0x51c036
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
or esi, 0xffffffff
pop ebx
pop edi
cmp esi, 0xffffffff
jne 0x51c064
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x51c064
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00423495
add esp, 0x5c
ret
sar esi, 0x1f
and esi, 0xfffffffe
lea eax, [esi + 1]
pop esi
pop ebp
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00423495
add esp, 0x5c
ret
push 0x273f
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x60]
or eax, 0xffffffff
pop esi
pop ebp
xor ecx, esp
call fcn.00423495
add esp, 0x5c
ret
Function at 0x51cc40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push edi
xor edi, edi
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x51ce17
mov eax, dword [eax + 0x1c]
mov ebx, edi
inc edi
mov dword [esp + 0x20], ebx
test eax, eax
jne 0x51cc57
test edi, edi
je 0x51ce17
lea eax, [edi + edi*4]
shl eax, 3
push esi
push eax
mov dword [esp + 0x2c], eax
call dword [0x5df5e8]
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
test esi, esi
jne 0x51cc97
lea eax, [esi + 0xf]
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ebp, dword [ebp + 0x1c]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebp
test edi, edi
je 0x51cd9c
mov ebx, dword [esp + 0x30]
lea ecx, [esi + 0x24]
mov dword [esp + 0x10], ecx
mov dword [ecx], eax
mov dword [ecx - 0x24], ebp
mov ebp, dword [ebp + 0x18]
movzx ecx, word [ebp]
mov eax, ecx
sub eax, 2
je 0x51ccdd
sub eax, 0x15
je 0x51ccd6
xor eax, eax
jmp 0x51cd6a
mov eax, 0x1c
jmp 0x51cce2
mov eax, 0x10
push 0x11
push 2
push ecx
push ebx
mov dword [esp + 0x24], eax
call fcn.005204d0
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x51cd10
call fcn.0055f7c6
cmp dword [eax], 0x273f
jne 0x51cdfd
xor eax, eax
jmp 0x51cd6a
push dword [esp + 0x14]
push ebp
push esi
push ebx
call fcn.0051ffb0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x51cd3f
call fcn.0055f7c6
cmp dword [eax], 0x2714
je 0x51cd10
push esi
push ebx
call fcn.0051ff70
add esp, 8
xor eax, eax
jmp 0x51cd6a
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
add eax, 0xffffffe4
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
push esi
push ebx
test eax, eax
jne 0x51cdf5
call fcn.0051ff70
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
mov dword [ecx - 0x20], eax
add ecx, 0x28
mov eax, dword [esp + 0x18]
mov ebp, dword [ebp + 0x1c]
inc eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], ebp
cmp eax, edi
jb 0x51ccb7
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
push 0x51d0e0
push 0x28
push edi
push esi
call fcn.005608c0
mov ecx, dword [esp + 0x44]
add esp, 0x10
mov eax, dword [esi]
mov dword [ecx + 0x1c], eax
test ebx, ebx
je 0x51cdd2
mov ecx, esi
nop dword [eax]
mov eax, dword [ecx + 0x28]
lea edx, [ecx + 0x28]
mov ecx, dword [ecx]
mov dword [ecx + 0x1c], eax
lea ecx, [edx]
sub ebx, 1
jne 0x51cdc0
mov eax, dword [esp + 0x28]
push esi
mov eax, dword [eax + esi - 0x28]
mov dword [eax + 0x1c], 0
call dword [0x5df5f0]
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
call fcn.0051ff70
add esp, 8
push dword [esp + 0x20]
call dword [0x5df5f0]
add esp, 4
mov eax, 4
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
Function at 0x51ffb0
Capabilities:
Connect socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0xb4]
test eax, eax
je 0x51ffdd
mov eax, dword [eax + 8]
test eax, eax
je 0x51ffdd
push dword [ecx + 0xb8]
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
call eax
add esp, 0x10
ret
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_connect]
ret
Function at 0x520510
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0xb4]
test eax, eax
je 0x520543
mov eax, dword [eax + 0xc]
test eax, eax
je 0x520543
push dword [ecx + 0xb8]
push 0
push 0
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call eax
add esp, 0x1c
ret
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_recv]
ret

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

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0xb4]
test eax, eax
je 0x520599
mov eax, dword [eax + 0xc]
test eax, eax
je 0x520599
push dword [ecx + 0xb8]
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call eax
add esp, 0x1c
ret
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_recvfrom]
ret

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

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 8
mov eax, dword [ecx + 0xb4]
test eax, eax
je 0x520602
mov edx, dword [eax + 0x10]
test edx, edx
je 0x520602
push dword [ecx + 0xb8]
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
lea eax, [esp + 4]
push 1
push eax
push dword [esp + 0x1c]
call edx
add esp, 0x10
add esp, 8
ret
push 0
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
add esp, 8
ret

Function at 0x520e60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edx, dword [esp + 0xc]
xor ecx, ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
test esi, esi
je 0x520e85
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x520e74
pop edi
mov eax, edx
pop esi
ret

Function at 0x520e90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x1c]
test ebx, ebx
je 0x520ec3
movzx eax, byte [esi + ebp]
push eax
call fcn.005155d0
movzx eax, al
inc esi
xor eax, edi
add esp, 4
imul edi, eax, 0x1000193
cmp esi, ebx
jb 0x520ea6
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x525810
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov eax, 1
push esi
push edi
mov ecx, 0x3020100
mov edx, dword [ebp + 0x10c]
mov dword [ebp + 0x114], 0x3020100
add ecx, 0x4040404
mov dword [ebp + eax*4 + 0x114], ecx
inc eax
cmp eax, edx
jbe 0x525832
mov ebx, dword [esp + 0x18]
xor edi, edi
xor esi, esi
test ebx, ebx
je 0x52588a
mov edx, dword [esp + 0x14]
movzx eax, byte [edx + esi]
or edi, eax
mov cl, byte [eax + ebp + 0x114]
mov byte [edx + esi], cl
mov byte [ebp + 0x113], cl
nop word [eax + eax]
mov cl, byte [eax + ebp + 0x113]
mov edx, eax
sub eax, 1
mov byte [edx + ebp + 0x114], cl
jns 0x525870
inc esi
cmp esi, ebx
jb 0x525850
shr edi, 2
mov dword [ebp + 0x10c], edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x533800
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x18]
and ebp, 0x1f
push edi
mov edi, dword [esp + 0x20]
cmp ebp, 8
jb 0x53391d
mov eax, ebp
shr eax, 3
cmp dword [esp + 0x28], 1
jne 0x5338a0
mov dword [esp + 0x10], eax
push 0xc2b2ae3d
push 0x27d4eb4f
push dword [edi + 4]
push dword [edi]
call fcn.00579450
mov ecx, eax
add edi, 8
push 0x9e3779b1
shld ecx, edx, 0x1f
shld edx, eax, 0x1f
push 0x85ebca87
push edx
push ecx
call fcn.00579450
mov ecx, eax
xor edx, esi
xor ecx, ebx
mov eax, ecx
push 0x9e3779b1
shld eax, edx, 0x1b
shld edx, ecx, 0x1b
push 0x85ebca87
push edx
push eax
call fcn.00579450
mov ebx, eax
mov esi, edx
add ebx, 0xc2b2ae63
adc esi, 0x85ebca77
sub ebp, 8
sub dword [esp + 0x10], 1
jne 0x533831
jmp 0x53391d
mov dword [esp + 0x10], eax
nop dword [eax]
nop dword [eax + eax]
push 0xc2b2ae3d
push 0x27d4eb4f
push dword [edi + 4]
push dword [edi]
call fcn.00579450
mov ecx, eax
add edi, 8
push 0x9e3779b1
shld ecx, edx, 0x1f
shld edx, eax, 0x1f
push 0x85ebca87
push edx
push ecx
call fcn.00579450
mov ecx, eax
xor edx, esi
xor ecx, ebx
mov eax, ecx
push 0x9e3779b1
shld eax, edx, 0x1b
shld edx, ecx, 0x1b
push 0x85ebca87
push edx
push eax
call fcn.00579450
mov ebx, eax
mov esi, edx
add ebx, 0xc2b2ae63
adc esi, 0x85ebca77
sub ebp, 8
sub dword [esp + 0x10], 1
jne 0x5338b0
mov eax, ebp
mov edx, edi
mov dword [esp + 0x20], eax
cmp ebp, 4
jb 0x533984
cmp dword [esp + 0x28], 1
mov eax, edx
mov ecx, dword [eax]
jne 0x533935
add eax, 4
mov dword [esp + 0x20], eax
mov eax, 0x9e3779b1
mul ecx
push 0xc2b2ae3d
mov edi, eax
mov eax, 0x85ebca87
mul ecx
push 0x27d4eb4f
add edi, edx
xor eax, ebx
xor edi, esi
mov ecx, eax
shld ecx, edi, 0x17
shld edi, eax, 0x17
push edi
push ecx
call fcn.00579450
mov edi, dword [esp + 0x20]
mov ebx, eax
add ebx, 0x9e3779f9
mov esi, edx
adc esi, 0x165667b1
sub ebp, 4
test ebp, ebp
je 0x5339d0
nop dword [eax + eax]
movzx eax, byte [edi]
push 0x27d4eb2f
cdq
push 0x165667c5
push edx
push eax
call fcn.00579450
xor ebx, eax
lea edi, [edi + 1]
xor esi, edx
mov eax, ebx
push 0x9e3779b1
shld eax, esi, 0xb
push 0x85ebca87
shld esi, ebx, 0xb
push esi
push eax
call fcn.00579450
mov ebx, eax
mov esi, edx
sub ebp, 1
jne 0x533990
push 0xc2b2ae3d
xor ecx, ecx
mov edx, esi
push 0x27d4eb4f
shr edx, 1
xor ecx, esi
xor edx, ebx
push ecx
push edx
call fcn.00579450
mov esi, eax
mov ecx, edx
shrd esi, ecx, 0x1d
push 0x165667b1
shr ecx, 0x1d
xor esi, eax
push 0x9e3779f9
xor ecx, edx
push ecx
push esi
call fcn.00579450
mov ecx, edx
xor esi, esi
pop edi
xor eax, ecx
xor edx, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x53d260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
mov ecx, dword [esp + 0x74]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x74]
push edi
mov edi, dword [esp + 0x80]
mov dword [esp + 0x10], 0
mov dword [esp + 0x84], 0
lea eax, [edi + ecx]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x7c]
add eax, esi
mov dword [esp + 0x7c], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x74]
push dword [eax + 0x6858]
mov ebx, dword [eax + 0x685c]
lea edx, [eax + 0x1808]
mov ebp, dword [eax + 0x6860]
push ecx
mov dword [esp + 0x28], edx
lea ecx, [eax + 0x1004]
lea edx, [eax + 0x1004]
mov dword [esp + 0x88], ebx
push edi
push ecx
mov dword [esp + 0x2c], edx
lea ecx, [eax + 0x1808]
mov edx, dword [eax + 0x6814]
add ebp, ebx
push ecx
push eax
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 0x6818]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 0x681c]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x44], edx
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.0053c9a0
add esp, 0x24
cmp eax, 0xffffff88
ja 0x53d493
lea edx, [eax + edi]
mov edi, dword [esp + 0x84]
test edi, edi
je 0x53d448
mov ecx, dword [esp + 0x7c]
xorps xmm0, xmm0
mov eax, dword [esp + 0x10]
add eax, ecx
movlpd qword [esp + 0x30], xmm0
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x18]
sub eax, edx
mov dword [esp + 0x38], 1
push eax
push edx
lea eax, [esp + 0x44]
mov dword [esp + 0x70], ecx
push eax
mov dword [esp + 0x70], 1
call fcn.00539950
add esp, 0xc
cmp eax, 0xffffff88
ja 0x53d450
push dword [esp + 0x74]
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.0053a5b0
push dword [esp + 0x28]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0053a5b0
push dword [esp + 0x38]
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.0053a5b0
lea eax, [esp + 0x60]
push eax
call fcn.00539a50
add esp, 0x28
cmp eax, 2
jg 0x53d444
mov ebx, dword [esp + 0x24]
test edi, edi
je 0x53d45d
lea eax, [esp + 0x3c]
dec edi
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0053ccf0
movq xmm0, qword [esp + 0x38]
lea eax, [esp + 0x88]
add esp, 8
push dword [esp + 0x28]
push dword [esp + 0x30]
push ebx
push ebp
push eax
mov eax, dword [esp + 0x4c]
sub esp, 0xc
mov ecx, esp
push dword [esp + 0x34]
movq qword [ecx], xmm0
push esi
mov dword [ecx + 8], eax
call fcn.0053d920
add esp, 0x28
cmp eax, 0xffffff88
ja 0x53d493
add esi, eax
lea eax, [esp + 0x3c]
push eax
call fcn.00539a50
add esp, 4
cmp eax, 2
jle 0x53d3d4
mov ebx, dword [esp + 0x80]
test edi, edi
jne 0x53d450
mov eax, ebp
sub eax, ebx
cmp ebx, ebp
jbe 0x53d466
mov eax, 0xffffffec
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov ebx, dword [esp + 0x80]
jmp 0x53d448
lea edi, [eax + esi]
cmp edi, dword [esp + 0x14]
jbe 0x53d47c
mov eax, 0xffffffba
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
test eax, eax
je 0x53d48d
push eax
push ebx
push esi
call fcn.00548d90
add esp, 0xc
mov esi, edi
sub esi, dword [esp + 0x78]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
Function at 0x54d5d6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.005793b0
mov eax, dword [0x5df040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0055ab4e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x54d618
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x54d78f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00579780
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x5e1fa8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.005640c5
mov ecx, dword [esi*4 + 0x5e1fa8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x54d788
cmp eax, dword [edi + ecx + 0x24]
jne 0x54d788
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x54d788
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005640c5
add esp, 0x14
cmp edx, esi
jl 0x54d788
jg 0x54d6e3
cmp eax, esi
jb 0x54d788
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x54d788
jl 0x54d705
cmp dword [ebp - 0x1008], eax
ja 0x54d788
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x54d72a
cmp ebx, esi
je 0x54d76f
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x54d76f
mov al, byte [ecx]
cmp al, 0xd
jne 0x54d750
lea eax, [edi - 1]
cmp ecx, eax
jae 0x54d75c
cmp byte [ecx + 1], 0xa
jne 0x54d75c
inc ecx
jmp 0x54d75c
movzx eax, al
movsx eax, byte [eax + 0x5df9c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x54d736
cmp edx, ebx
jne 0x54d736
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x54d78d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00423495
leave
ret
Function at 0x563bbd
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5df040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5a6520
push esi
call fcn.00561eb9
pop ecx
pop ecx
test eax, eax
jne 0x563beb
xor al, al
jmp 0x563c68
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.005638a0
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x563c25
push dword [ebp - 0x210]
call fcn.0054d120
xor al, al
jmp 0x563c66
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x563c2b
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x563c4b
push edx
call fcn.00563af4
pop ecx
test al, al
je 0x563c16
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x563c59
mov bl, 1
push dword [ebp - 0x210]
call fcn.0054d120
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00423495
leave
ret
Function at 0x5667a0
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x5667ba
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x5667d1
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x566829
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0056aa25
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x566829
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x566829
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x566829
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x566823
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x566825
xor bl, bl
mov al, bl
jmp 0x56682b
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x56696c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x5e1fa8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5669ae
cmp byte [ebx], 0xa
jne 0x5669ae
or byte [edi + eax + 0x28], 4
jmp 0x5669b3
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x566ab6
mov cl, byte [eax]
cmp cl, 0x1a
je 0x566a91
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x5669e2
mov eax, dword [ebp - 8]
jmp 0x566a02
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x566a1e
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x5669fc
add eax, 2
mov cl, 0xa
jmp 0x5669ff
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x5669c4
jmp 0x566ab6
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x566a8c
cmp dword [ebp - 0x10], 0
je 0x566a8c
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x5e1fa8]
test byte [eax + edi + 0x28], 0x48
je 0x566a6b
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x566a5b
mov byte [esi], 0xa
jmp 0x566ab5
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x5e1fa8]
mov byte [eax + edi + 0x2a], cl
jmp 0x566ab5
cmp byte [ebp - 1], 0xa
jne 0x566a75
cmp esi, ebx
je 0x566a56
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005640e3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x566ab6
mov byte [esi], 0xd
jmp 0x566ab5
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x5e1fa8]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x566ab3
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x566ab6
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret