joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58df60
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
mov ecx, dword [esp + 8]
je 0x58df93
test ecx, ecx
je 0x58df93
cmp dword [ecx + 4], 0x100
jne 0x58df93
mov eax, dword [ecx + 8]
cmp eax, 0x4c
je 0x58dfa2
add eax, 0xffffffb2
cmp eax, 1
jbe 0x58dfa2
cmp dword [ecx + 4], 0x104
jne 0x58dfa7
cmp dword [ecx + 8], 0x12
jne 0x58dfa7
xor eax, eax
ret 0x10
mov eax, 1
ret 0x10
Function at 0x5a2810
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x5a281b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.005a2830
Function at 0x5a42a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6002ab
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x66a074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x5a42d9
call fcn.005a4440
cmp byte [0x6736ae], 0
jne 0x5a42ec
mov eax, reloc.DSOUND.dll_DirectSoundCreate
jmp 0x5a441c
mov eax, dword [esi]
test eax, eax
jne 0x5a436c
push 8
call fcn.005b75ca
mov edi, eax
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 4], 0
push 1
call fcn.005b75ca
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call fcn.005b9c20
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x5a435b
cmp dword [ebp - 0x130], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x5a440b
call fcn.004d07c0
test al, al
jne 0x5a43a6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.004d0d00
test al, al
je 0x5a440b
mov ecx, dword [esi]
add ecx, 4
call fcn.004d0300
call fcn.004d07c0
test al, al
je 0x5a440b
push 0x628fa0
lea ecx, [ebp - 0x150]
call fcn.00408ef0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x150]
push eax
call fcn.004d9190
mov ecx, eax
call fcn.004d9250
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.00408ea0
test edi, edi
je 0x5a440b
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5a440b
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x5a440b
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x5a441a
mov dword [eax], reloc.DSOUND.dll_DirectSoundCreate
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005b75ab
mov esp, ebp
pop ebp
ret 4
Function at 0x5a5270
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6004cf
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x66a074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [edi + 4]
push eax
lea ecx, [eax + 0x94]
call fcn.005a5950
mov esi, dword [edi + 4]
add esp, 4
sub esi, 0x94
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.00408ea0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.00408ea0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00408ea0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00408ea0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00408ea0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00408ea0
mov eax, dword [ebp + 8]
add dword [edi + 4], 0xffffff6c
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x5a5f20
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60066f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x66a074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.00408ea0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.00408ea0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00408ea0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00408ea0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00408ea0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00408ea0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5a7200
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60080f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x66a074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.004099f0
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.004099f0
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.004099f0
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.004099f0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.004099f0
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.004099f0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x5a82b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
mov ebx, ecx
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
lea ecx, [eax - 1]
push esi
mov ebp, ecx
mov dword [esp + 0x14], ecx
push edi
mov edi, edx
sar ebp, 1
mov dword [esp + 0x14], edi
mov esi, edi
cmp edi, ebp
jge 0x5a8321
add esi, esi
lea eax, [esi + 2]
lea eax, [eax + eax*2]
lea ecx, [ebx + eax*8]
lea edx, [ecx - 0x18]
call fcn.00414ce0
movzx eax, al
xor eax, 1
inc eax
add esi, eax
lea eax, [esi + esi*2]
lea eax, [ebx + eax*8]
push eax
call fcn.00409670
add esp, 4
push eax
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.00408eb0
mov edi, esi
cmp esi, ebp
jl 0x5a82e0
mov eax, dword [esp + 0x10]
cmp esi, ebp
jne 0x5a834b
test al, 1
jne 0x5a834b
lea eax, [eax + eax*2]
lea eax, [eax - 3]
lea eax, [ebx + eax*8]
push eax
call fcn.00409670
add esp, 4
push eax
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.00408eb0
mov edi, dword [esp + 0x18]
push dword [esp + 0x1c]
call fcn.00409670
add esp, 4
mov ecx, eax
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x14], edi
jge 0x5a83a0
lea esi, [edi - 1]
mov edx, ecx
sar esi, 1
lea eax, [esi + esi*2]
lea ebp, [ebx + eax*8]
mov ecx, ebp
call fcn.00414ce0
test al, al
je 0x5a839c
push ebp
call fcn.00409670
add esp, 4
push eax
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.00408eb0
mov edi, esi
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x14], esi
jl 0x5a8363
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00409670
add esp, 4
push eax
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*8]
call fcn.00408eb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x5aa210
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x66a074]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x5aa292
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x5aa292
test ecx, ecx
je 0x5aa28e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x5aa250
xor eax, eax
jmp 0x5aa297
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x5aa2a1
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005b75ab
add esp, 0xc
ret 0xc

Function at 0x5afad0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6004cf
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x66a074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push edx
push 0x94
call fcn.00407720
mov esi, dword [ebp + 8]
add esp, 8
mov edi, eax
mov ecx, eax
mov dword [ebp - 0x10], edi
push esi
call fcn.0040aa10
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
push ecx
lea ecx, [edi + 0x18]
call fcn.0040aa10
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.0040aa10
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.0040aa10
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.0040aa10
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.0040aa10
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5b1670
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x66a074]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x5b16d5
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5b16b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5b16d5
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.005b75ab
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.005b75ab
add esp, 8
ret 4
Function at 0x5b1870
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x601e18
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x66a074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x5b18b9
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x5b1a0b
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x5b19d6
test eax, eax
je 0x5b19d6
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x5b19d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x5b195b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5b194f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5b195b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x5b1969
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x24]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.0040aa10
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x5b19d6
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x5b1914
jmp 0x5b19d9
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x5b1a02
test edx, edx
je 0x5b19fe
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x5b18d0
mov al, 1
jmp 0x5b1a0d
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x5b1a0b
mov dword [ecx], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b75ab
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5d261e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005d249d

Function at 0x5d6f24
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005d6be4
Function at 0x402f70
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
ror esi, 0xad
mov ebx, 0xc
sbb edx, 0xe
imul ebx
sub edx, 0x59
neg eax
mov ebx, 7
not edi
and ebx, 0xe2
add esi, 0xc9
ror eax, 0
sbb eax, 0x81
sub ebx, 0x66
sub eax, 0x21
add ebx, 0xca
ror esi, 8
imul esi
add eax, 0x58
inc edx
ror edi, 0x18
rol esi, 0x5d
add eax, 0x88
imul eax
mov edx, 0x23
inc edi
imul eax
neg edx
dec eax
not edx
sub ebx, 0xa2
sbb esi, 0xa8
sub eax, 0xb1
dec eax
dec edx
mov ebx, 0x54
not esi
bswap edi
imul esi
not edx
dec esi
rcr edx, 0x1e
rol ebx, 0x3a
imul esi
dec esi
mov edx, 0xfc
neg edi
neg eax
not eax
add eax, 0x5d
add edx, 0xa1
xor ecx, ecx
xor edi, edi
not ebx
imul ebx
inc eax
imul edx
and esi, 0xb1
sub eax, 0x18
sbb ebx, 0xa3
imul eax
inc ebx
dec esi
neg edx
imul eax
bswap edx
ror eax, 0x4b
sbb edx, 0xac
ror ebx, 0xf7
rcl edx, 0x28
and eax, 0
rol edx, 0xef
add eax, 0x99
neg edi
dec ebx
rcl esi, 0x82
bswap edi
dec edi
mov ebx, 0xc8
rol ebx, 0xf
imul eax
add edi, 0xa3
bswap edx
dec esi
or edi, 0xf9
or eax, 0x3f
add esi, 0x4d
ror edx, 0x97
sub ebx, 0x5e
dec edx
not edx
mov edx, 0xf5
mov ebx, 0x3b
imul edi
and edx, 0x75
imul edx
imul eax
rol esi, 0xc3
sub edx, 0xcb
dec ebx
rol edi, 0x91
bswap edx
neg edx
mov ecx, dword [ebp + 0xc]
bswap ebx
add esi, 0x32
not eax
bswap esi
not eax
inc eax
ror edx, 0x27
imul eax
ror eax, 0xda
ror ebx, 0x32
imul ebx
bswap edi
ror ebx, 0x59
imul edi
ror eax, 0x5b
add esi, 0x3b
and edx, 0xd9
mov edx, 0xaa
imul edi
mov ebx, 7
imul eax
rcr eax, 0x4f
sbb eax, 0x6f
or esi, 0xa2
add esi, 0xd4
sbb edx, 0x84
sub esi, 0x8c
rcr edx, 0xf6
or ebx, 0xdf
ror esi, 0xd9
and ebx, 0x4d
sbb edx, 0x26
rcr edx, 0x82
sbb ebx, 0x5f
imul edx
bswap edi
sbb edi, 0x24
neg esi
add edx, 0x66
rcl esi, 0x6c
mov eax, 0x79
dec edx
mov edx, 0x18
or esi, 0xe3
bswap esi
rol edx, 0xc6
ror eax, 0x10
sub edi, 0x27
dec esi
imul eax
mov edi, dword [ebp + 8]
xor esi, ebx
mov esi, ebx
xor ebx, eax
xor esi, esi
xor eax, ebx
mov eax, eax
xor esi, ebx
xor eax, ebx
xor eax, ebx
xor ebx, esi
xor esi, esi
mov esi, esi
not byte [edi]
mov esi, eax
mov eax, eax
mov eax, ebx
xor ebx, esi
xor eax, eax
mov eax, eax
mov esi, esi
xor ebx, eax
xor esi, ebx
sub byte [edi], 0x36
mov eax, esi
mov eax, ebx
xor ebx, eax
mov ebx, eax
xor ebx, ebx
xor eax, esi
mov eax, ebx
mov esi, eax
mov ebx, ebx
add byte [edi], 0x87
xor esi, ebx
mov eax, ebx
mov ebx, eax
mov eax, ebx
xor eax, esi
xor eax, eax
xor eax, eax
mov eax, eax
xor esi, ebx
imul byte [edi]
inc edi
loop 0x403153
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x425090
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00424f01

Function at 0x42548a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042cb70
mov eax, dword [0x492cd8]
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.0041f5f1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4254cc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x425628
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042c9a0
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 + 0x494438]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00426481
mov ecx, dword [esi*4 + 0x494438]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x425621
cmp eax, dword [edi + ecx + 0x24]
jne 0x425621
push 0
lea eax, [ebp - 0x1014]
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 0x425621
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00426481
add esp, 0x14
test edx, edx
jl 0x425621
jg 0x425597
test eax, eax
jb 0x425621
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x425621
jl 0x4255b1
cmp dword [ebp - 0x1008], eax
ja 0x425621
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4255cf
test ebx, ebx
je 0x425608
cmp ecx, edi
jae 0x425608
mov al, byte [ecx]
cmp al, 0xd
jne 0x4255e9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4255f5
cmp byte [ecx + 1], 0xa
jne 0x4255f5
inc ecx
jmp 0x4255f5
movzx eax, al
movsx eax, byte [eax + 0x493478]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4255cf
cmp edx, ebx
jne 0x4255cf
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x425626
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040f1c6
leave
ret
Function at 0x42591f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x494438]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42595f
cmp byte [ebx], 0xa
jne 0x42595f
or byte [eax + edi + 0x28], 4
jmp 0x425964
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x425a62
mov al, byte [edx]
cmp al, 0x1a
je 0x425a44
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x425993
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4259b8
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4259c2
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x425975
jmp 0x425a62
push 0
lea eax, [ebp - 0xc]
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 0x425a3f
cmp dword [ebp - 0xc], 0
je 0x425a3f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x494438]
test byte [eax + edi + 0x28], 0x48
je 0x425a19
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x425a04
mov byte [esi], dl
jmp 0x425a15
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x494438]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x425a62
cmp byte [ebp - 1], 0xa
jne 0x425a28
cmp esi, ebx
jne 0x425a28
mov byte [esi], 0xa
jmp 0x425a61
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042649f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x425a62
mov byte [esi], 0xd
jmp 0x425a61
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x494438]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425a5e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425a62
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x425a6b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x494438]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x425aae
cmp word [esi], dx
jne 0x425aae
or byte [edi + eax + 0x28], 4
jmp 0x425ab3
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x425c06
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x425be6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x425af5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x425b2b
cmp eax, edx
jae 0x425b37
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x425acd
jmp 0x425c06
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425be2
cmp dword [ebp - 0x14], 0
je 0x425be2
mov eax, dword [ebx*4 + 0x494438]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x425bba
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x425b83
mov word [esi], cx
jmp 0x425bb6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x494438]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x494438]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x494438]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x425c06
pop ebx
cmp word [ebp - 4], bx
jne 0x425bcb
cmp esi, dword [ebp + 0xc]
jne 0x425bcb
mov word [esi], bx
jmp 0x425c03
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042649f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x425c06
push 0xd
jmp 0x425bff
mov ecx, dword [ebx*4 + 0x494438]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425bfd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425c06
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret