joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1013c7a0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x1013c800
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x1013c7e2
cmp edi, 2
jb 0x1013c7e2
cmp byte [esi], cl
jne 0x1013c7e2
cmp byte [esi + 1], cl
jne 0x1013c7e2
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10221b00]
jmp 0x1013c7b3
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10221b00]
test edi, edi
jne 0x1013c7b3
pop edi
pop esi
not eax
pop ebx
ret 4
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1013c82f
cmp cl, 0x23
jne 0x1013c816
cmp byte [esi], cl
jne 0x1013c816
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10221b00]
test cl, cl
jne 0x1013c807
pop edi
pop esi
not eax
pop ebx
ret 4

Function at 0x1013c910
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
test ebp, ebp
je 0x1013c923
mov dword [ebp], 0
call fcn.1013c840
mov esi, eax
test esi, esi
je 0x1013ca1b
push esi
call fcn.1018f962
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x1013ca12
push 2
push 0
push esi
call fcn.1018333e
add esp, 0xc
test eax, eax
jne 0x1013ca12
push esi
call fcn.1018f962
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x1013ca12
push 0
push ebx
push esi
call fcn.1018333e
add esp, 0xc
test eax, eax
jne 0x1013ca12
mov eax, dword [0x10755f08]
test eax, eax
je 0x1013c992
inc dword [eax + 0x370]
mov eax, dword [esp + 0x18]
add eax, edi
push eax
call fcn.1018b4f6
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1013ca12
push esi
push edi
push 1
push ebx
call fcn.101838ab
add esp, 0x10
cmp eax, edi
je 0x1013c9e2
push esi
call fcn.10184116
mov eax, dword [0x10755f08]
add esp, 4
test eax, eax
je 0x1013c9d0
dec dword [eax + 0x370]
push ebx
call fcn.10186d6f
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x1013c9f9
push eax
lea eax, [edi + ebx]
push 0
push eax
call fcn.1017ea60
add esp, 0xc
push esi
call fcn.10184116
add esp, 4
test ebp, ebp
je 0x1013ca09
mov dword [ebp], edi
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8
push esi
call fcn.10184116
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x1013f380
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x14]
push esi
mov esi, ecx
push edi
vmovss xmm0, dword [edx]
mov edi, 0x10
vsubss xmm0, xmm0, dword [esi + 0xc]
mov ecx, dword [esi + 0xc0]
vcvttss2si eax, xmm0
vmovss xmm0, dword [edx + 4]
vsubss xmm0, xmm0, dword [esi + 0x10]
mov dword [esp + 8], eax
vcvttss2si eax, xmm0
vmovss xmm0, dword [edx + 8]
vsubss xmm0, xmm0, dword [esi + 0xc]
mov dword [esp + 0xc], eax
vcvttss2si eax, xmm0
vmovss xmm0, dword [edx + 0xc]
vsubss xmm0, xmm0, dword [esi + 0x10]
mov dword [esp + 0x10], eax
vcvttss2si eax, xmm0
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc8]
lea esi, [esp + 8]
mov edx, dword [eax + ecx*4 - 4]
not edx
nop dword [eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x10221b00]
sub edi, 1
jne 0x1013f3f0
mov eax, dword [0x10755f08]
not edx
pop edi
pop esi
cmp dword [eax + 0x1bd8], edx
jne 0x1013f421
mov dword [eax + 0x1bdc], edx
cmp dword [eax + 0x1c14], edx
jne 0x1013f430
mov byte [eax + 0x1c18], 1
mov eax, edx
add esp, 0x10
ret 4

Function at 0x10148c70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
mov eax, dword [0x10755f08]
lea edx, [esp]
push ebx
push ebp
push esi
push edi
mov edi, dword [eax + 0x1ba4]
mov esi, 4
add edi, 0xc0
mov dword [esp + 0x10], ecx
mov ebp, dword [edi]
mov ebx, dword [edi + 8]
mov ebx, dword [ebx + ebp*4 - 4]
not ebx
nop dword [eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x10221b00]
sub esi, 1
jne 0x10148ca0
mov esi, dword [edi + 4]
not ebx
cmp ebp, esi
jne 0x10148ce7
lea ecx, [ebp + 1]
test esi, esi
je 0x10148cd5
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x10148cda
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.100deee0
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1014e120
Capabilities:
Hash data with crc32

Disassembly:
sub esp, 0x14
mov edx, dword [0x10755f08]
mov eax, ecx
push ebx
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x1c], eax
xor esi, esi
mov dword [esp + 0x18], esi
mov ebp, dword [edi + 0x1ba4]
test al, 0x10
jne 0x1014e282
mov ebx, dword [ebp + 0x118]
test ebx, ebx
je 0x1014e181
cmp dword [edi + 0x1bd8], ebx
jne 0x1014e278
mov esi, dword [edi + 0x1c10]
xor eax, eax
cmp esi, 0xffffffff
cmove esi, eax
cmp byte [esi + edi + 0xec], al
je 0x1014e278
xor al, al
jmp 0x1014e20b
cmp byte [edi + 0xec], 0
je 0x1014e278
test al, 8
je 0x1014e278
test byte [ebp + 0x11c], 1
jne 0x1014e1b7
cmp dword [edi + 0x1bd8], esi
je 0x1014e278
cmp dword [edi + 0x1c08], ebp
jne 0x1014e278
lea esi, [ebp + 0x120]
mov ecx, ebp
push esi
call fcn.1013f380
mov ebx, eax
mov ecx, esi
mov edx, ebx
mov dword [ebp + 0x118], ebx
call fcn.1013f6e0
mov byte [esp + 0x17], al
test al, al
je 0x1014e1fb
cmp byte [edi + 0x3d8], 0
je 0x1014e1fb
mov edx, ebp
mov ecx, ebx
call fcn.1013f440
mov ecx, ebp
call fcn.10148380
mov al, byte [esp + 0x17]
cmp dword [edi + 0x1bd8], ebx
jne 0x1014e278
mov edx, dword [0x10755f08]
xor esi, esi
mov byte [edi + 0x1be5], al
cmp byte [edx + esi + 0xec], 0
mov ecx, dword [ebp + 0xc0]
mov eax, dword [ebp + 0xc8]
mov eax, dword [eax + ecx*4 - 4]
mov dword [esp + 0x18], eax
jne 0x1014e233
xor al, al
jmp 0x1014e24c
vmovss xmm0, dword [edx + 0x30]
vmulss xmm1, xmm0, xmm0
vmovss xmm0, dword [edx + esi*4 + 0x444]
vcomiss xmm0, xmm1
setae al
mov dword [edi + 0x1bec], 0xffffffff
mov dword [edi + 0x1bf0], 0xffffffff
mov dword [edi + 0x1bf8], 0xffffffff
mov dword [edi + 0x1bfc], 0xffffffff
test al, al
jne 0x1014e2bc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
xor ebp, ebp
or ebx, 0xffffffff
mov edx, 0x102218b1
mov al, 0x23
or esi, 0xffffffff
cmp al, 0x23
jne 0x1014e29f
cmp byte [edx], al
jne 0x1014e29f
cmp byte [edx + 1], al
cmove ebx, esi
movzx ecx, bl
movzx eax, al
xor ecx, eax
shr ebx, 8
mov al, byte [edx]
inc edx
xor ebx, dword [ecx*4 + 0x10221b00]
test al, al
jne 0x1014e291
not ebx
mov esi, ebp
cmp byte [edi + 0x1e4c], 0
jne 0x1014e300
call fcn.1014e040
mov eax, dword [esp + 0x18]
mov dword [edi + 0x1e68], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x1e64], ebx
mov byte [edi + 0x1e4c], 1
mov dword [edi + 0x1e50], eax
mov dword [edi + 0x1e58], esi
cmp ebx, dword [edi + 0x1bd8]
jne 0x1014e300
mov byte [edi + 0x1be6], 1
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 0x1b48]
mov dword [edi + 0x1e54], eax
mov byte [edi + 0x1e4d], 1
test bl, 1
jne 0x1014e34e
xor edx, edx
xor ecx, ecx
call fcn.10149dc0
cmp dword [edi + 0x1eb4], 0
je 0x1014e34e
test dword [edi + 0x1ea8], 0x1000
je 0x1014e34e
mov eax, dword [edi + 0x1ba4]
mov byte [eax + 0x8f], 1
mov byte [eax + 0xa8], 1
test bl, 0x12
jne 0x1014e35a
and dword [ebp + 0x11c], 0xfffffffe
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x14
ret
Function at 0x10154d50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x10154d76
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1015b810
mov dword [esi], 0
mov ecx, dword [esi + 0x10]
test ecx, ecx
jns 0x10154d9c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [esi + 0xc]
call fcn.100d5100
mov dword [esi + 0xc], 0
mov ecx, dword [esi + 0x1c]
test ecx, ecx
jns 0x10154dc3
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [esi + 0x18]
call fcn.1014f970
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x2c]
vpxor xmm0, xmm0, xmm0
mov eax, dword [eax + 0x28]
mov dword [esi + 0x24], eax
vmovdqu xmmword [esi + 0x60], xmm0
vmovq qword [esi + 0x70], xmm0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x40]
test ecx, ecx
jns 0x10154e16
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [esi + 0x3c]
call fcn.1015b7a0
mov dword [esi + 0x3c], 0
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jns 0x10154e3d
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [esi + 0x48]
call fcn.100deee0
mov dword [esi + 0x48], 0
mov ecx, dword [esi + 0x58]
test ecx, ecx
jns 0x10154e64
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [esi + 0x54]
call fcn.100e26f0
vpxor xmm0, xmm0, xmm0
mov dword [esi + 0x54], 0
lea eax, [esp + 8]
mov dword [esi + 0x78], 0
mov ecx, esi
mov dword [esi + 0x7c], 1
vmovdqu ymmword [esp + 8], ymm0
vmovq qword [esp + 0x28], xmm0
push eax
vzeroupper
call fcn.1015b740
vmovss xmm0, dword [0x10228684]
pop edi
vmovss dword [esi + 0x8c], xmm0
pop esi
add esp, 0x2c
ret
Function at 0x10154eb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10154ee6
mov eax, dword [0x10755f08]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x10154ed6
dec dword [eax + 0x370]
push ecx
call fcn.10186d6f
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10154f1a
mov eax, dword [0x10755f08]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x10154f0a
dec dword [eax + 0x370]
push ecx
call fcn.10186d6f
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x10154f4e
mov eax, dword [0x10755f08]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x10154f3e
dec dword [eax + 0x370]
push ecx
call fcn.10186d6f
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x10154f9e
mov eax, dword [0x10755f08]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x10154f8e
dec dword [eax + 0x370]
push ecx
call fcn.10186d6f
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x10154fd2
mov eax, dword [0x10755f08]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x10154fc2
dec dword [eax + 0x370]
push ecx
call fcn.10186d6f
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x10155006
mov eax, dword [0x10755f08]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x10154ff6
dec dword [eax + 0x370]
push ecx
call fcn.10186d6f
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.10157ad0
Function at 0x1015c560
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x30
push ebx
mov ebx, dword [0x10755f08]
lea eax, [esp + 0x20]
push esi
push edi
push eax
push dword [0x10758660]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
vxorps xmm1, xmm1, xmm1
vcvtsi2ss xmm1, xmm1, eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, eax
lea eax, [esp + 0x20]
push eax
vmovss dword [ebx + 0x10], xmm1
vmovss dword [ebx + 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esp + 0x20]
mov ecx, edi
sub ecx, dword [0x10758668]
mov esi, dword [esp + 0x24]
mov edx, esi
sbb edx, dword [0x1075866c]
call fcn.101a4bb0
mov edx, dword [0x1075865c]
mov ecx, dword [0x10758658]
vcvtsd2ss xmm0, xmm0, xmm0
vmovss dword [esp + 0x10], xmm0
call fcn.101a4bb0
vmovss xmm1, dword [esp + 0x10]
vcvtsd2ss xmm0, xmm0, xmm0
vdivss xmm0, xmm1, xmm0
vmovss dword [ebx + 0x18], xmm0
mov dword [0x1075866c], esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov dword [0x10758668], edi
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [ebx + 0xfc], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [ebx + 0xfd], al
call esi
shr eax, 0xf
and al, 1
mov byte [ebx + 0xff], 0
push 0xa0
mov byte [ebx + 0xfe], al
call esi
shr eax, 0xf
and al, 1
push 0xa1
mov byte [ebx + 0x1a0], al
call esi
mov ecx, dword [0x10755f08]
shr eax, 0xf
and al, 1
mov byte [ebx + 0x1a1], al
cmp byte [ecx + 0x357], 0
lea esi, [ecx + 0xe4]
je 0x1015c6af
vcvttss2si eax, dword [esi]
mov dword [esp + 0x10], eax
vcvttss2si eax, dword [ecx + 0xe8]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push dword [0x10758660]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursorPos]
vmovss xmm0, dword [0x10228ae8]
vmovss dword [esi], xmm0
vmovss dword [esi + 4], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x1015c721
mov ecx, dword [0x10758660]
cmp eax, ecx
je 0x1015c6e0
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x1015c721
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1015c721
lea eax, [esp + 0x18]
push eax
push dword [0x10758660]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1015c721
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, dword [esp + 0x18]
vxorps xmm1, xmm1, xmm1
vcvtsi2ss xmm1, xmm1, dword [esp + 0x1c]
vmovss dword [esi], xmm0
vmovss dword [esi + 4], xmm1
cmp byte [ebx + 0xb0], 0
je 0x1015c72f
or eax, 0xffffffff
jmp 0x1015c73a
mov eax, dword [0x10755f08]
mov eax, dword [eax + 0x1e48]
cmp dword [0x10636dec], eax
je 0x1015c74c
mov dword [0x10636dec], eax
call fcn.1015c430
pop edi
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x10179e60
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword fs:[0x2c]
mov edx, dword [0x1063b7b0]
push ebx
mov ebx, ecx
push esi
mov ecx, dword [eax + edx*4]
mov eax, dword [0x10758680]
vmovaps xmm0, xmm1
push edi
vmovss dword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
cmp eax, dword [ecx + 4]
jg 0x10179f0d
jmp 0x10179e9d
vmovss xmm0, dword [ebp - 0x20]
mov eax, dword [ebx + 0x2950]
mov dword [ebp - 4], eax
test eax, eax
je 0x10179f01
cmp dword [ebp + 8], 0
jl 0x10179f01
pushal
movss xmm2, dword [ebp - 0x20]
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
call dword [0x1075867c]
pop ecx
popal
mov ecx, dword [ebp - 0xc]
vmovss xmm0, dword [ebp - 8]
mov eax, dword [0x10758674]
vmovss dword [ebp - 4], xmm0
cmp eax, dword [ecx + 4]
jg 0x10179f43
jmp 0x10179ee9
vmovss xmm0, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov eax, dword [0x10758678]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x10]
vmovss dword [eax + ecx], xmm0
vmovss xmm0, dword [ebp - 0x20]
vzeroupper
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x10758680
call fcn.1017d780
add esp, 4
cmp dword [0x10758680], 0xffffffff
jne 0x10179e98
mov eax, dword [0x1063c540]
push 0x10758680
mov dword [0x1075867c], eax
call fcn.1017d72f
add esp, 4
jmp 0x10179e98
push 0x10758674
vzeroupper
call fcn.1017d780
add esp, 4
cmp dword [0x10758674], 0xffffffff
jne 0x10179ee4
mov edx, 0xc60bf9f2
mov ecx, 0x10201155
call fcn.100299a0
mov ecx, eax
call fcn.10111590
push 0x10758674
mov dword [0x10758678], eax
call fcn.1017d72f
add esp, 4
jmp 0x10179ee4

Function at 0x1017b143
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x1017b16a
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x1017b16d
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1017b11f
pop esi
leave
ret 8
Function at 0x1018c81b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x102371c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x101af700
push esi
call fcn.10199598
pop ecx
pop ecx
test eax, eax
jne 0x1018c849
xor al, al
jmp 0x1018c8c6
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.1018c55c
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1018c883
push dword [ebp - 0x210]
call fcn.10186d6f
xor al, al
jmp 0x1018c8c4
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1018c889
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x1018c8a9
push edx
call fcn.1018c752
pop ecx
test al, al
je 0x1018c874
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1018c8b7
mov bl, 1
push dword [ebp - 0x210]
call fcn.10186d6f
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1017da6f
leave
ret

Function at 0x1018f0db
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1018f11a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1018f11a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1018f11a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1018f11a
cmp dword [ecx + 0x74], 0xe
jbe 0x1018f11a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1018f725
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1017e400
mov eax, dword [0x102371c0]
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.101938b3
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1018f767
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1018f8c3
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.101a4330
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1063bee0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1019469f
mov ecx, dword [esi*4 + 0x1063bee0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1018f8bc
cmp eax, dword [ecx + edi + 0x24]
jne 0x1018f8bc
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1018f8bc
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1019469f
add esp, 0x14
test edx, edx
jl 0x1018f8bc
jg 0x1018f832
test eax, eax
jb 0x1018f8bc
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1018f8bc
jl 0x1018f84c
cmp dword [ebp - 0x1008], eax
ja 0x1018f8bc
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1018f86a
test ebx, ebx
je 0x1018f8a3
cmp ecx, edi
jae 0x1018f8a3
mov al, byte [ecx]
cmp al, 0xd
jne 0x1018f884
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1018f890
cmp byte [ecx + 1], 0xa
jne 0x1018f890
inc ecx
jmp 0x1018f890
movzx eax, al
movsx eax, byte [eax + 0x10237470]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1018f86a
cmp edx, ebx
jne 0x1018f86a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1018f8c1
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1017da6f
leave
ret
Function at 0x10194c8c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1063bee0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10194ccc
cmp byte [ebx], 0xa
jne 0x10194ccc
or byte [edi + eax + 0x28], 4
jmp 0x10194cd1
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10194dd0
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10194db3
inc eax
cmp dl, 0xd
je 0x10194cfd
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10194d23
cmp eax, ecx
jae 0x10194d31
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10194ce5
jmp 0x10194dd0
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 0x10194dae
cmp dword [ebp - 0x10], 0
je 0x10194dae
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1063bee0]
test byte [eax + edi + 0x28], 0x48
je 0x10194d88
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10194d73
mov byte [esi], dl
jmp 0x10194d84
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1063bee0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10194dd0
cmp byte [ebp - 1], 0xa
jne 0x10194d97
cmp esi, ebx
jne 0x10194d97
mov byte [esi], 0xa
jmp 0x10194dcf
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.101946bd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10194dd0
mov byte [esi], 0xd
jmp 0x10194dcf
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1063bee0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10194dcd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10194dd0
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret