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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4260d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x188], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0xc4]
mov ecx, esi
call dword [0x42d974]
mov ecx, edi
call esi
mov edi, eax
lea eax, [ebp - 0x188]
push eax
push 0xf003f
push ebx
push 0x403530
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41bc52
lea eax, [ebp - 0x18c]
mov dword [ebp - 0x194], 1
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x190], 0x100
push eax
lea eax, [ebp - 0x194]
mov dword [ebp - 0x18c], 0x80
push eax
push ebx
lea eax, [ebp - 0x190]
mov esi, ebx
push eax
lea eax, [ebp - 0x184]
push eax
push ebx
jmp 0x41bc2f
lea eax, [ebp - 0x184]
push 0x4041ac
push eax
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
jne 0x41bbf0
lea eax, [ebp - 0x184]
mov ecx, edi
push eax
call fcn.0040d981
lea eax, [ebp - 0x84]
mov ecx, edi
push eax
lea eax, [ebp - 0x184]
push eax
call fcn.0040d8d5
test eax, eax
js 0x41bbf0
dec esi
inc esi
mov dword [ebp - 0x190], 0x100
mov dword [ebp - 0x18c], 0x80
cmp esi, 0x28
jae 0x41bc46
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x194]
push eax
push ebx
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x184]
push eax
push esi
push dword [ebp - 0x188]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x41bbb0
push dword [ebp - 0x188]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421ad0
leave
ret

Function at 0x41bd36
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0041c1a3
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4034b0
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41bd9b
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x28
push eax
lea eax, [esi + 0x1e4]
mov dword [ebp - 0xc], 3
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x403e54
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x41c0f4
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [ecx + 0x204], edi
je 0x41c156
push esi
lea esi, [ecx + 0x1e4]
push esi
push dword [ecx + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push 0x4034b0
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41c155
push 0x28
push esi
push 3
push edi
push 0x403e54
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
leave
ret
Function at 0x41db28
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x4260d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x41dc9f
push ebx
push esi
push 0x80
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x358], 0x50
push ecx
xor ebx, ebx
push eax
mov byte [edi], bl
call dword [sym.imp.ole32.dll_StringFromGUID2]
push ebx
push ebx
push dword [ebp - 0x358]
lea eax, [ebp - 0x54]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x154]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x54]
push eax
push 0x404634
lea eax, [ebp - 0x354]
push 0x200
push eax
call fcn.00411f1f
add esp, 0x10
lea eax, [ebp - 0x35c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x354]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [ebp + 0x10]
test eax, eax
jne 0x41dc04
lea eax, [ebp - 0x358]
mov dword [ebp - 0x358], ebx
push eax
push edi
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x35c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x35c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x41dc9d
lea eax, [ebp - 0x54]
push eax
push 0x404648
lea eax, [ebp - 0x354]
push 0x200
push eax
call fcn.00411f1f
add esp, 0x10
lea eax, [ebp - 0x35c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x354]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41dc99
lea eax, [ebp - 0x358]
mov dword [ebp - 0x358], ebx
push eax
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x35c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x35c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x41dc9b
mov eax, edi
cmp byte [edi], bl
je 0x41dc95
inc eax
cmp byte [eax], bl
jne 0x41dc7c
jmp 0x41dc91
mov dl, byte [eax - 1]
cmp dl, 0x3a
je 0x41dc95
cmp dl, 0x5c
je 0x41dc95
dec eax
cmp edi, eax
jne 0x41dc83
mov byte [eax], bl
jmp 0x41dc9d
xor ebx, ebx
mov byte [edi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00421ad0
leave
ret 0xc
Function at 0x421f94
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4256e0
call fcn.00422248
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x421ff4
cmp eax, 0xffffffff
je 0x421ff4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x421fed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x421fed
cmp edx, 0x10000000
jae 0x421fed
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x421fea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x422050
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x42208e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x422086
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x422090
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x422076
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x422160
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x422191
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x422191
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x422191
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10010e30
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x100358a0]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
shr ebp, 4
mov ebx, dword [esi + 0xc]
mov ecx, dword [esi]
mov edx, dword [esi + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], ebx
push edi
mov edi, dword [esp + 0x40]
test ebp, ebp
je 0x10010ef3
mov ebx, dword [esp + 0x3c]
add edi, 4
add ebx, 4
mov esi, eax
mov eax, dword [ebx - 4]
lea ebx, [ebx + 0x10]
push dword [esp + 0x18]
xor eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [ebx - 0xc]
xor eax, edx
mov dword [esp + 0x30], eax
mov eax, dword [ebx - 0x10]
xor eax, esi
mov dword [esp + 0x2c], eax
mov eax, dword [ebx - 8]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x28]
push eax
call dword [esp + 0x28]
mov eax, dword [esp + 0x38]
lea edi, [edi + 0x10]
mov ecx, dword [esp + 0x2c]
add esp, 8
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov dword [edi - 0x14], ecx
mov dword [edi - 0xc], edx
mov dword [edi - 0x10], esi
mov dword [edi - 8], eax
mov dword [esp + 0x14], eax
dec ebp
jne 0x10010e84
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
pop edi
mov dword [esi], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi + 0xc], ebx
mov dword [esi + 8], edx
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1002aa84
add esp, 0x28
ret

Function at 0x100196a0
Capabilities:
Check if file exists

Disassembly:
cmp dword [esp + 4], 0
je 0x10019713
mov eax, dword [esp + 8]
test eax, eax
je 0x10019713
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1001970c
mov cl, byte [eax + 0xa]
cmp cl, 1
jne 0x100196ce
push 0
push 0
push dword [eax]
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
jmp 0x100196df
cmp cl, 2
jne 0x1001970c
push 0
push 0
push dword [eax]
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
test eax, eax
jne 0x10019706
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
je 0x100196ff
cmp eax, 0x7e
je 0x100196ff
cmp eax, 3
je 0x100196ff
mov eax, 0x2711
pop esi
ret
mov eax, 0x2718
pop esi
ret
mov dword [esi], eax
xor eax, eax
pop esi
ret
mov eax, 0x2721
pop esi
ret
mov eax, 0x2721
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4017b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x461068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x401816
mov eax, dword [ebp + 0xc]
push 0
shl eax, 9
push eax
push ecx
call fcn.0042a111
add esp, 0xc
test eax, eax
jne 0x401872
push esi
push dword [edi + 4]
mov esi, dword [ebp + 0x10]
shl esi, 9
push esi
push 1
push ebx
call fcn.0042a2f8
add esp, 0x10
cmp esi, eax
sete al
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424e8d
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi + 8], 0xffffffff
je 0x401872
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00401660
mov al, byte [ebp - 0x14]
push dword [ebp + 0x10]
mov cl, byte [ebp - 0x13]
mov byte [ebp - 0xe], al
mov al, byte [ebp - 0x12]
mov byte [ebp - 0xc], al
mov byte [ebp - 0xa], al
lea eax, [ebp - 0x10]
push ebx
push eax
mov byte [ebp - 0xf], cl
mov byte [ebp - 0xd], cl
push ecx
mov ecx, edi
mov byte [ebp - 0x10], 0x40
mov byte [ebp - 0xb], 2
mov word [ebp - 9], 0xff0a
call fcn.00401690
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424e8d
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop ebx
call fcn.00424e8d
mov esp, ebp
pop ebp
ret 0xc

Function at 0x404950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x461068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x200
lea eax, [ebp - 0x208]
mov esi, edx
push 0
push eax
mov edi, ecx
xor bl, bl
call fcn.00427180
cmp byte [esi], bl
mov ecx, 0x1000
mov eax, 0xe00
mov dword [esi + 0x14], 0
push 0
cmovne eax, ecx
push eax
push edi
call fcn.0042a111
add esp, 0x18
test eax, eax
jne 0x404a3e
push edi
push 0x200
lea eax, [ebp - 0x208]
push 1
push eax
call fcn.0042a2f8
add esp, 0x10
cmp eax, 0x200
jne 0x404a3e
lea ecx, [ebp - 0x208]
call fcn.00404610
movzx eax, word [ebp - 0xa]
movzx edi, byte [ebp - 0x10]
mov word [esi + 8], ax
movzx eax, byte [ebp - 0xc]
mov word [esi + 0xa], ax
movzx eax, word [ebp - 0xe]
lea ecx, [edi*2 + 4]
mov dword [ebp - 0x20c], 0x15c1
mov dx, word [ebp - 0x20c]
mov word [esi + 0xc], ax
mov dword [esi + 4], edi
test ecx, ecx
je 0x404a1b
lea eax, [ebp - 0xa]
add dx, word [eax]
lea eax, [eax - 2]
sub ecx, 1
jne 0x404a10
lea eax, [edi*4]
lea ecx, [ebp - 0x12]
sub ecx, eax
cmp word [ecx], dx
sete al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424e8d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
mov dword [esi + 0x14], 0xffffffff
xor ecx, ebp
pop esi
pop ebx
call fcn.00424e8d
mov esp, ebp
pop ebp
ret
Function at 0x404a60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x461068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x200
lea eax, [ebp - 0x408]
mov byte [ebp - 0x409], 0
mov ebx, ecx
mov edi, edx
push 0
push eax
mov dword [ebp - 0x410], ebx
call fcn.00427180
push 0x200
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.00427180
cmp byte [edi], 0
mov ecx, 0x400
mov eax, 0x200
mov dword [edi + 0x14], 0
push 0
cmovne eax, ecx
push eax
push ebx
call fcn.0042a111
add esp, 0x24
test eax, eax
jne 0x404c48
push ebx
push 0x200
lea eax, [ebp - 0x208]
push 1
push eax
call fcn.0042a2f8
add esp, 0x10
cmp eax, 0x200
jne 0x404c48
lea ecx, [ebp - 0x208]
call fcn.00404610
movzx edx, word [ebp - 0x206]
movzx eax, byte [ebp - 0x203]
movzx esi, byte [ebp - 0x204]
inc ax
mov dword [ebp - 0x414], edx
mov word [edi + 0xc], si
mov word [edi + 0xa], ax
test edx, edx
je 0x404c34
movzx ecx, ax
imul ecx, esi
cmp edx, ecx
jne 0x404c34
push 2
push 0
push ebx
call fcn.0042a111
push ebx
call fcn.0042e48e
push 0
push 0
push ebx
mov esi, eax
call fcn.0042a111
xor ecx, ecx
add esp, 0x1c
cmp byte [edi], cl
mov eax, esi
cdq
setne cl
and edx, 0x1ff
add eax, edx
sar eax, 9
sub eax, ecx
cdq
idiv dword [ebp - 0x414]
movzx eax, ax
mov word [edi + 8], ax
test edx, edx
je 0x404b8d
inc eax
mov word [edi + 8], ax
xor esi, esi
mov byte [edi + 1], 1
lea ebx, [esi + 2]
nop word [eax + eax]
movzx eax, word [ebp + esi*4 - 0x200]
movzx ecx, word [ebp + esi*4 - 0x202]
shl eax, 0x10
or eax, ecx
je 0x404c31
xor ecx, ecx
cmp byte [edi], cl
push 0
setne cl
add ecx, eax
shl ecx, 9
push ecx
push dword [ebp - 0x410]
call fcn.0042a111
add esp, 0xc
test eax, eax
jne 0x404c2d
push dword [ebp - 0x410]
lea eax, [ebp - 0x408]
push 0x200
push 1
push eax
call fcn.0042a2f8
add esp, 0x10
cmp eax, 0x200
jne 0x404c2d
lea ecx, [ebp - 0x408]
call fcn.00404610
cmp word [ebp - 0x408], bx
jne 0x404c2d
inc esi
inc ebx
cmp esi, 0x40
jl 0x404ba0
mov al, byte [edi + 1]
mov dword [edi + 4], esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424e8d
mov esp, ebp
pop ebp
ret
mov byte [edi + 1], 0
mov dword [edi + 4], esi
mov al, byte [edi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424e8d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x409]
xor ecx, ebp
mov dword [edi + 0x14], 0xffffffff
pop edi
pop esi
pop ebx
call fcn.00424e8d
mov esp, ebp
pop ebp
ret
Function at 0x406dd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
push edi
push 0x200
push 1
push 0x463c70
call fcn.0042a2f8
add esp, 0x10
cmp eax, 0x200
jne 0x406f45
call fcn.00404680
test al, al
je 0x406e0b
mov byte [esi], 1
jmp 0x406e1b
push 0
push 0
push edi
mov byte [esi], 0
call fcn.0042a111
add esp, 0xc
movups xmm0, xmmword [esi]
lea edx, [ebp - 0x18]
mov ecx, edi
movups xmmword [ebp - 0x18], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 8], xmm0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x20], xmm0
call fcn.00404950
cmp dword [ebp - 4], 0xffffffff
je 0x406f4c
test al, al
je 0x406e8d
movups xmm0, xmmword [ebp - 0x18]
mov bl, 1
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 8]
movq qword [esi + 0x10], xmm0
cmp byte [0x461de1], 0
je 0x406f3c
mov edx, 0x461e64
mov ecx, 0x461e4c
call fcn.00406d50
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x30]
mov ecx, edi
call fcn.00404a60
cmp dword [ebp - 0x1c], 0xffffffff
je 0x406f4c
test al, al
je 0x406ed9
movups xmm0, xmmword [ebp - 0x30]
mov bl, 1
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [esi + 0x10], xmm0
cmp byte [0x461de0], 0
je 0x406f3c
mov edx, 0x461e4c
mov ecx, 0x461e64
call fcn.00406d50
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor bl, bl
cmp byte [0x461de0], bl
je 0x406f0f
mov ecx, 0x461e4c
call fcn.00406d90
movups xmm0, xmmword [ebp - 0x18]
mov byte [0x461de1], bl
mov bl, 1
mov al, bl
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 8]
movq qword [esi + 0x10], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x461de1], 0
je 0x406f3c
mov ecx, 0x461e64
call fcn.00406d90
movups xmm0, xmmword [ebp - 0x30]
mov byte [0x461de1], 1
mov bl, 1
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [esi + 0x10], xmm0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x14], 0xffffffff
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406f60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, edx
mov byte [ebp - 1], 0
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov esi, ecx
mov dword [ebp - 8], ebx
mov ecx, 0x1000
mov dword [ebp - 0x14], esi
cmp byte [edi], bl
mov eax, 0xe00
push ebx
cmovne eax, ecx
mov dword [edi + 0x14], ebx
push eax
push esi
call fcn.0042a111
add esp, 0xc
test eax, eax
jne 0x407101
push esi
push 0x200
push 1
push 0x463c70
call fcn.0042a2f8
add esp, 0x10
cmp eax, 0x200
jne 0x407101
mov ecx, 0x463c70
call fcn.00404610
mov eax, dword [edi + 4]
xor esi, esi
test eax, eax
jle 0x4070cb
mov ecx, 0x463e64
mov dword [ebp - 0xc], ecx
movzx ebx, word [ecx + 2]
movzx edi, word [edi + 0xa]
mov eax, ebx
not eax
test bx, bx
movzx ecx, ax
mov eax, ebx
cmovns ecx, eax
movzx eax, cx
mov ecx, eax
shr ax, 4
movzx edx, ax
and ecx, 0xf
mov eax, dword [ebp - 0x10]
imul edi, edx
movzx eax, word [eax + 0xc]
add edi, ecx
imul edi, eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
push eax
push edi
push ecx
push edx
mov dword [ebp - 0x18], eax
lea eax, [esi + 0x43]
push eax
push esi
push str.part__d::__c:_cyl___d_thd___d_tsec__1_tlba___ld_tlen___d
call fcn.0040b710
shr bx, 0xf
mov ecx, str.__WP__n
test bl, bl
mov eax, str._____n
cmovne eax, ecx
push eax
call fcn.0040b710
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov ebx, dword [ebp - 0x14]
push 0
cmp byte [ecx], al
setne al
add eax, edi
shl eax, 9
push eax
push ebx
call fcn.0042a111
add esp, 0x2c
test eax, eax
jne 0x407099
push dword [ebp - 0x18]
mov edx, esi
mov ecx, ebx
call fcn.00407440
add esp, 4
mov byte [ebp - 1], al
test al, al
jne 0x4070b0
push esi
push 0x459b44
call fcn.0040b710
mov ebx, dword [ebp - 8]
add esp, 8
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4070b3
push esi
push 0x459b88
call fcn.0040b710
mov ebx, dword [ebp - 8]
add esp, 8
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4070b3
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
inc esi
mov ecx, dword [ebp - 0xc]
sub ecx, 4
mov dword [ebp - 0xc], ecx
mov eax, dword [edi + 4]
cmp esi, eax
jl 0x406fe0
sub eax, ebx
push eax
push 0x459bd0
call fcn.0040b710
add esp, 8
test ebx, ebx
je 0x4070f7
push ebx
push 0x459c10
call fcn.0040b710
mov al, byte [ebp - 1]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x14], 0xffffffff
mov eax, 0x461e4c
cmp dword [0x461e60], 8
cmovae eax, dword [0x461e4c]
push eax
push 0x459c48
call fcn.0040b710
add esp, 8
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x461068]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
push 0x200
xor edi, edi
mov dword [esp + 0x14], edx
lea eax, [esp + 0x24]
mov esi, ecx
push edi
push eax
mov dword [esp + 0x20], esi
xor bl, bl
call fcn.00427180
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov edx, 0x400
mov eax, 0x200
cmp byte [ecx], bl
push edi
cmovne eax, edx
mov dword [ecx + 0x14], edi
push eax
push esi
call fcn.0042a111
add esp, 0xc
test eax, eax
jne 0x40736a
push esi
push 0x200
push 1
push 0x463c70
call fcn.0042a2f8
add esp, 0x10
cmp eax, 0x200
jne 0x40736a
mov ecx, 0x463c70
call fcn.00404610
mov edx, dword [esp + 0x10]
xor esi, esi
mov eax, dword [edx + 4]
test eax, eax
jle 0x40734e
nop dword [eax]
nop word [eax + eax]
movzx ecx, word [esi*4 + 0x463c78]
movzx eax, word [esi*4 + 0x463c76]
shl ecx, 0x10
or ecx, eax
xor eax, eax
cmp byte [edx], al
push 0
setne al
mov dword [esp + 0x1c], ecx
add eax, ecx
shl eax, 9
push eax
push dword [esp + 0x1c]
call fcn.0042a111
add esp, 0xc
test eax, eax
jne 0x40732f
push dword [esp + 0x14]
lea eax, [esp + 0x24]
push 0x200
push 1
push eax
call fcn.0042a2f8
add esp, 0x10
cmp eax, 0x200
jne 0x407327
lea ecx, [esp + 0x20]
call fcn.00404610
movzx eax, word [esp + 0x22]
mov bl, byte [esp + 0x24]
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x24], eax
movzx eax, byte [esp + 0x28]
add eax, 0x41
push eax
push esi
push str.part__d::__c:_lba___ld_tlen___d_t
call fcn.0040b710
movzx eax, word [esp + 0x3e]
add esp, 0x14
push eax
movzx eax, word [esp + 0x2c]
push eax
movzx eax, word [esp + 0x2e]
push eax
push str.ldr_06o_bpar_06o_pg_06o__
call fcn.0040b710
add esp, 0x10
test bl, 1
je 0x4072b2
push str.BAD
call fcn.0040b710
add esp, 4
test bl, 2
je 0x4072c4
push 0x459d38
call fcn.0040b710
add esp, 4
test bl, 4
je 0x4072d6
push 0x459d40
call fcn.0040b710
add esp, 4
test bl, 8
je 0x4072e8
push str.FWP
call fcn.0040b710
add esp, 4
test bl, 0x10
je 0x4072fa
push str.FRP
call fcn.0040b710
add esp, 4
push 0x459d60
call fcn.0040b710
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, esi
push dword [esp + 0x1c]
call fcn.00407440
mov bl, al
add esp, 4
test bl, bl
jne 0x40733e
push esi
push 0x459b44
jmp 0x407335
push esi
push 0x459d68
jmp 0x407335
push esi
push 0x459dc0
call fcn.0040b710
add esp, 8
inc edi
mov edx, dword [esp + 0x10]
inc esi
mov eax, dword [edx + 4]
cmp esi, eax
jl 0x4071f0
sub eax, edi
push eax
push 0x459bd0
call fcn.0040b710
add esp, 8
test edi, edi
je 0x407396
push edi
push 0x459c10
jmp 0x40738e
mov eax, dword [esp + 0x10]
mov dword [eax + 0x14], 0xffffffff
mov eax, 0x461e64
cmp dword [0x461e78], 8
cmovae eax, dword [0x461e64]
push eax
push 0x459c48
call fcn.0040b710
add esp, 8
mov ecx, dword [esp + 0x224]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00424e8d
mov esp, ebp
pop ebp
ret