joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4393dc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
imul dword [ebp + 0x10]
mov dword [ebp - 4], eax
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push dword [ebp + 8]
push dword [0x6f6b98]
call sub.KERNEL32.DLL_ReadFile
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp ecx, eax
je 0x439444
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 0x59fc
call fcn.00402a64
pop ecx
push eax
push 0x9f2fb4
call fcn.00670e94
add esp, 0x10
push 0x9f2fb4
push 0
call fcn.0046279c
add esp, 8
mov dword [0x6f6920], 1
pop ecx
pop ecx
pop ebp
ret

Function at 0x439600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov eax, dword [ebp + 8]
shl eax, 5
lea eax, [eax + eax*2]
mov dword [ebp - 8], eax
push dword [ebp - 8]
call fcn.0066c210
pop ecx
mov dword [ebp - 4], eax
push dword [ebp + 8]
push dword [0x6f4078]
push dword [ebp - 4]
call fcn.004abca0
add esp, 0xc
push 0
lea edx, [ebp - 0xc]
push edx
push dword [ebp - 8]
push dword [ebp - 4]
push dword [0x6f6b9c]
call sub.KERNEL32.DLL_WriteFile
push dword [ebp - 4]
call fcn.0066c220
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4522dc
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcb4
push dword [ebp + 8]
lea eax, [ebp - 0x34c]
push eax
call fcn.0066c9ec
add esp, 8
push 0x7576e6
lea edx, [ebp - 0x34c]
push edx
call fcn.0066c910
add esp, 8
lea ecx, [ebp - 0x248]
push ecx
lea eax, [ebp - 0x34c]
push eax
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x452395
lea edx, [ebp - 0x21c]
push edx
call fcn.00450eb8
pop ecx
test eax, eax
jne 0x45237a
lea ecx, [ebp - 0x21c]
push ecx
push dword [ebp + 8]
push 0x7576eb
lea eax, [ebp - 0x108]
push eax
call fcn.00670e94
add esp, 0x10
test byte [ebp - 0x248], 0x10
je 0x45236d
lea edx, [ebp - 0x108]
push edx
call fcn.004522dc
pop ecx
jmp 0x45237a
lea ecx, [ebp - 0x108]
push ecx
call fcn.004522ac
pop ecx
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 4]
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x452326
push dword [ebp - 4]
call sub.KERNEL32.DLL_FindClose
push dword [ebp + 8]
call fcn.0067002c
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x452b3c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
mov eax, dword [0x7569d4]
test eax, eax
je 0x452b58
mov eax, 1
jmp 0x452c99
push 0x822944
push 0x75780c
lea edx, [ebp - 0x104]
push edx
call fcn.00670e94
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x7569d4], eax
mov eax, dword [0x7569d4]
test eax, eax
jne 0x452bb5
push 0x823144
push str._slame_enc.dll
lea edx, [ebp - 0x104]
push edx
call fcn.00670e94
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x7569d4], eax
mov eax, dword [0x7569d4]
test eax, eax
jne 0x452bc5
xor eax, eax
jmp 0x452c99
push str.beInitStream
push dword [0x7569d4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x8f2efc], eax
push str.beEncodeChunk
push dword [0x7569d4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x8f2f00], eax
push str.beDeinitStream
push dword [0x7569d4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x8f2f04], eax
push str.beCloseStream
push dword [0x7569d4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x8f2f08], eax
push str.beVersion
push dword [0x7569d4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x8f2f0c], eax
push str.beWriteVBRHeader
push dword [0x7569d4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x8f2f10], eax
mov edx, dword [0x8f2efc]
test edx, edx
je 0x452c7d
mov ecx, dword [0x8f2f00]
test ecx, ecx
je 0x452c7d
mov eax, dword [0x8f2f04]
test eax, eax
je 0x452c7d
mov edx, dword [0x8f2f08]
test edx, edx
je 0x452c7d
mov ecx, dword [0x8f2f0c]
test ecx, ecx
je 0x452c7d
mov eax, dword [0x8f2f10]
test eax, eax
jne 0x452c94
push dword [0x7569d4]
call sub.KERNEL32.DLL_FreeLibrary
xor edx, edx
mov dword [0x7569d4], edx
xor eax, eax
jmp 0x452c99
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4562b8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff694
push dword [ebp + 0xc]
lea eax, [ebp - 0x55c]
push eax
call fcn.0066c9ec
add esp, 8
push 0x757b8c
lea edx, [ebp - 0x55c]
push edx
call fcn.0066c910
add esp, 8
lea ecx, [ebp - 0x55c]
push ecx
call fcn.0066ca1c
pop ecx
cmp eax, 0x104
jb 0x456311
push 0x757b91
push 0
call fcn.004627e0
add esp, 8
xor eax, eax
jmp 0x456511
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x48], ecx
lea eax, [ebp - 0x14c]
push eax
lea edx, [ebp - 0x55c]
push edx
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x45650c
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 0xc]
test edx, edx
jne 0x45637a
push 0x140
push 1
lea ecx, [ebp - 0x14c]
push ecx
call fcn.0066c86c
add esp, 0xc
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 4]
call sub.KERNEL32.DLL_FindNextFileA
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
cmp edx, 0x12
je 0x4564f1
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jne 0x4563cb
mov eax, dword [ebp - 0x14c]
cmp eax, 0x20
jne 0x4564f1
mov edx, dword [0x6e70c8]
test edx, edx
je 0x45633f
lea ecx, [ebp - 0x120]
push ecx
push 0x757bac
lea eax, [ebp - 0x96c]
push eax
call fcn.00670e94
add esp, 0xc
push 2
lea edx, [ebp - 0x96c]
push edx
call fcn.004f8c6c
add esp, 8
jmp 0x45633f
xor ecx, ecx
mov dword [ebp - 0xc], ecx
push 0x757bc2
lea eax, [ebp - 0x120]
push eax
call fcn.0066c9a0
add esp, 8
test eax, eax
je 0x45633f
push 0x757bc4
lea edx, [ebp - 0x120]
push edx
call fcn.0066c9a0
add esp, 8
test eax, eax
je 0x45633f
push dword [ebp + 0xc]
lea ecx, [ebp - 0x354]
push ecx
call fcn.0066c9ec
add esp, 8
push 0x757bc7
lea eax, [ebp - 0x354]
push eax
call fcn.0066c910
add esp, 8
lea edx, [ebp - 0x120]
push edx
lea ecx, [ebp - 0x354]
push ecx
call fcn.0066c910
add esp, 8
test byte [ebp - 0x14c], 0x10
je 0x456454
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x456487
mov eax, dword [ebp - 0x130]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebp - 0x12c]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [0x8f2f60], eax
mov dword [0x8f2f64], edx
mov dword [ebp - 8], 1
push dword [ebp - 8]
push 0
push 1
lea ecx, [ebp - 0x120]
push ecx
lea eax, [ebp - 0x354]
push eax
push dword [ebp + 8]
call fcn.00456750
add esp, 0x18
test eax, eax
jne 0x45633f
mov edx, dword [0x6e70c8]
test edx, edx
je 0x45633f
lea ecx, [ebp - 0x354]
push ecx
push 0x59f5
call fcn.00402a64
pop ecx
push eax
push 0x9f2fb4
call fcn.00670e94
add esp, 0xc
push 2
push 0x9f2fb4
call fcn.004f8c6c
add esp, 8
jmp 0x45633f
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 4]
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x4564f1
push dword [ebp - 4]
call sub.KERNEL32.DLL_FindClose
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x456518
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff58c
push dword [ebp + 0xc]
lea eax, [ebp - 0x560]
push eax
call fcn.0066c9ec
add esp, 8
lea edx, [ebp - 0x560]
push edx
call fcn.0066ca1c
pop ecx
cmp eax, 0x104
jb 0x45655d
push str.Error___UNC_Path_too_long_
push 0
call fcn.004627e0
add esp, 8
xor eax, eax
jmp 0x456749
lea edx, [ebp - 0x560]
push edx
lea ecx, [ebp - 0x664]
push ecx
call fcn.0066c9ec
add esp, 8
push 0x5c
lea eax, [ebp - 0x664]
push eax
call fcn.0066cb35
add esp, 8
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
test edx, edx
jne 0x456595
xor eax, eax
jmp 0x456749
mov edx, dword [ebp - 0xc]
mov byte [edx], 0
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x48], eax
lea edx, [ebp - 0x150]
push edx
lea ecx, [ebp - 0x560]
push ecx
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x456744
mov dword [ebp - 0x10], 1
mov edx, dword [ebp - 0x10]
test edx, edx
jne 0x456604
push 0x140
push 1
lea ecx, [ebp - 0x150]
push ecx
call fcn.0066c86c
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 4]
call sub.KERNEL32.DLL_FindNextFileA
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
cmp edx, 0x12
je 0x45673c
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x456655
mov eax, dword [ebp - 0x150]
cmp eax, 0x20
jne 0x45673c
mov edx, dword [0x6e70c8]
test edx, edx
je 0x4565c9
lea ecx, [ebp - 0x124]
push ecx
push 0x757be4
lea eax, [ebp - 0xa74]
push eax
call fcn.00670e94
add esp, 0xc
push 2
lea edx, [ebp - 0xa74]
push edx
call fcn.004f8c6c
add esp, 8
jmp 0x4565c9
xor ecx, ecx
mov dword [ebp - 0x10], ecx
push 0x757bfa
lea eax, [ebp - 0x124]
push eax
call fcn.0066c9a0
add esp, 8
test eax, eax
je 0x4565c9
push 0x757bfc
lea edx, [ebp - 0x124]
push edx
call fcn.0066c9a0
add esp, 8
test eax, eax
je 0x4565c9
lea ecx, [ebp - 0x664]
push ecx
lea eax, [ebp - 0x358]
push eax
call fcn.0066c9ec
add esp, 8
push 0x757bff
lea edx, [ebp - 0x358]
push edx
call fcn.0066c910
add esp, 8
lea ecx, [ebp - 0x124]
push ecx
lea eax, [ebp - 0x358]
push eax
call fcn.0066c910
add esp, 8
test byte [ebp - 0x150], 0x10
je 0x4566e2
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x456715
mov eax, dword [ebp - 0x134]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebp - 0x130]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [0x8f2f60], eax
mov dword [0x8f2f64], edx
mov dword [ebp - 8], 1
push dword [ebp - 8]
push 0
push 1
lea ecx, [ebp - 0x124]
push ecx
lea eax, [ebp - 0x358]
push eax
push dword [ebp + 8]
call fcn.00456750
add esp, 0x18
test eax, eax
jmp 0x4565c9
push dword [ebp - 4]
call sub.KERNEL32.DLL_FindClose
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x45a2e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
imul eax, dword [0x757cd4], 0x25
mov edx, dword [eax*8 + 0x93a2f0]
mov ecx, dword [ebp + 8]
cmp edx, ecx
ja 0x45a310
imul eax, dword [0x757cd4], 0x25
mov edx, dword [eax*8 + 0x93a2f4]
mov ecx, dword [ebp + 8]
cmp edx, ecx
jae 0x45a324
push dword [ebp + 8]
call fcn.0045a22c
pop ecx
test eax, eax
jne 0x45a324
xor eax, eax
jmp 0x45a49c
imul edx, dword [0x757cd4], 0x25
mov eax, dword [ebp + 8]
mov edx, dword [edx*8 + 0x93a2f0]
sub eax, edx
xor edx, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
push 0
push 0x800
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
call fcn.006744e4
push edx
push eax
imul ecx, dword [0x757cd4], 0x25
mov eax, dword [ecx*8 + 0x93a2fc]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0xc]
push dword [0x757ca8]
call sub.KERNEL32.DLL_SetFilePointer
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x45a3a2
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x45a3a2
xor eax, eax
jmp 0x45a49c
imul edx, dword [0x757cd4], 0x25
mov ecx, dword [edx*8 + 0x93a2f4]
mov eax, dword [ebp + 8]
sub ecx, eax
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
cmp edx, ecx
jl 0x45a3f7
mov eax, dword [ebp + 0x10]
shl eax, 0xb
mov dword [ebp - 0x14], eax
push 0
lea edx, [ebp - 0x18]
push edx
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push dword [0x757ca8]
call sub.KERNEL32.DLL_ReadFile
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
cmp ecx, eax
je 0x45a493
xor eax, eax
jmp 0x45a49c
mov edx, dword [ebp - 0x28]
shl edx, 0xb
imul ecx, dword [0x757cd4], 0x25
mov eax, dword [ecx*8 + 0x93a30c]
add edx, eax
mov dword [ebp - 0x14], edx
push 0
lea edx, [ebp - 0x18]
push edx
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push dword [0x757ca8]
call sub.KERNEL32.DLL_ReadFile
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
cmp ecx, eax
je 0x45a435
xor eax, eax
jmp 0x45a49c
call fcn.0045a2a4
test eax, eax
jne 0x45a442
xor eax, eax
jmp 0x45a49c
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x28]
sub edx, ecx
dec edx
shl edx, 0xb
imul eax, dword [0x757cd4], 0x25
mov ecx, dword [eax*8 + 0x93a2fc]
add edx, ecx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
test edx, edx
jbe 0x45a493
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
add edx, ecx
push edx
push dword [0x757ca8]
call sub.KERNEL32.DLL_ReadFile
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
cmp eax, edx
je 0x45a493
xor eax, eax
jmp 0x45a49c
mov eax, dword [ebp + 0x10]
imul dword [0x757cbc]
mov esp, ebp
pop ebp
ret
Function at 0x45a6bc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push 8
push 0
lea eax, [ebp - 8]
push eax
call fcn.0066c86c
add esp, 0xc
mov eax, dword [ebp + 8]
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
push 0
push pe_nt_image_headers32
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.006744e4
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 8]
mov dword [0x93c4a4], ecx
mov eax, dword [ebp - 4]
mov dword [0x93c4a8], eax
push 0
push 0x93c4a8
push dword [0x93c4a4]
push dword [0x757ca8]
call sub.KERNEL32.DLL_SetFilePointer
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
cmp edx, 0xffffffff
jne 0x45a735
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x45a735
xor eax, eax
jmp 0x45a766
mov edx, dword [ebp + 0x10]
shl edx, 9
mov dword [ebp - 0x10], edx
push 0
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [0x757ca8]
call sub.KERNEL32.DLL_ReadFile
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
cmp eax, edx
je 0x45a763
xor eax, eax
jmp 0x45a766
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x45aee0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov eax, dword [ebp + 8]
cdq
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [0x757cb0]
cdq
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
call fcn.006744e4
push edx
push eax
mov eax, dword [0x757cc0]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0xc]
push dword [0x757ca8]
call sub.KERNEL32.DLL_SetFilePointer
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x45af4a
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x45af4a
xor eax, eax
jmp 0x45b0df
mov edx, dword [ebp + 0x10]
imul edx, dword [0x757cb0]
mov dword [ebp - 0x14], edx
mov ecx, dword [0x757cb0]
cmp ecx, 0x930
jne 0x45af91
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push dword [0x757ca8]
call sub.KERNEL32.DLL_ReadFile
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp edx, ecx
je 0x45b0d8
xor eax, eax
jmp 0x45b0df
mov edx, dword [0x757cb0]
cmp edx, 0x930
jle 0x45afb0
mov ecx, dword [0x757cb0]
add ecx, 0xfffff680
mov dword [ebp - 0x34], ecx
jmp 0x45afbd
mov eax, dword [0x757cb0]
add eax, 0xfffff6e0
mov dword [ebp - 0x34], eax
push dword [ebp - 0x14]
call fcn.0066c210
pop ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
test edx, edx
jne 0x45afed
push 0x59fa
call fcn.00402a64
pop ecx
push eax
push 0
call fcn.0046279c
add esp, 8
xor eax, eax
jmp 0x45b0df
push 0
lea edx, [ebp - 0x18]
push edx
push dword [ebp - 0x14]
push dword [ebp - 0x24]
push dword [0x757ca8]
call sub.KERNEL32.DLL_ReadFile
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
cmp ecx, eax
je 0x45b015
xor eax, eax
jmp 0x45b0df
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x28], edx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
cmp eax, edx
jge 0x45b0cf
push 0xc
push 0x757c9c
push dword [ebp - 0x28]
call fcn.0066c7fc
add esp, 0xc
lea ecx, [ebp - 0x2f]
push ecx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
add eax, edx
push eax
call fcn.004ac0e4
add esp, 8
movsx ecx, byte [ebp - 0x2f]
push ecx
call fcn.004ac070
pop ecx
mov edx, dword [ebp - 0x28]
mov byte [edx + 0xc], al
movsx eax, byte [ebp - 0x2e]
push eax
call fcn.004ac070
pop ecx
mov ecx, dword [ebp - 0x28]
mov byte [ecx + 0xd], al
movsx eax, byte [ebp - 0x2d]
push eax
call fcn.004ac070
pop ecx
mov edx, dword [ebp - 0x28]
mov byte [edx + 0xe], al
mov ecx, dword [ebp - 0x28]
mov byte [ecx + 0xf], 2
push 0x920
mov eax, dword [ebp - 4]
imul dword [0x757cb0]
mov edx, dword [ebp - 0x24]
add eax, edx
mov ecx, dword [ebp - 0x34]
add eax, ecx
push eax
mov eax, dword [ebp - 0x28]
add eax, 0x10
push eax
call fcn.0066c7fc
add esp, 0xc
add dword [ebp - 0x28], 0x930
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
cmp edx, ecx
jl 0x45b02e
push dword [ebp - 0x24]
call fcn.0066c220
pop ecx
imul eax, dword [ebp + 0x10], 0x930
mov esp, ebp
pop ebp
ret
Function at 0x45b7fc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov eax, dword [ebp + 8]
mov edx, dword [eax]
cmp edx, 4
jne 0x45b834
push dword [0x6e7384]
push dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x238]
mov edx, dword [ebp + 0x10]
add eax, edx
push eax
push dword [ebp + 0xc]
call fcn.00476024
add esp, 0x10
jmp 0x45b97e
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
cmp eax, 3
jne 0x45b86e
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
mov edx, dword [ebp + 8]
add edx, 0x124
push edx
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xffffffff
jne 0x45b877
xor eax, eax
jmp 0x45b97e
mov edx, dword [0x757ca8]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
imul dword [edx + 0xc]
cdq
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x228]
adc edx, dword [ecx + 0x22c]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_SetFilePointer
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
cmp edx, 0xffffffff
jne 0x45b8d4
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x45b8d4
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
cmp eax, 3
jne 0x45b8cd
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x45b97e
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
imul edx, dword [ecx + 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc]
cmp edx, 0x930
jne 0x45b905
push 0
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x20]
push dword [ebp + 0xc]
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_ReadFile
jmp 0x45b967
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
push 0x85ac24
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_ReadFile
mov dword [ebp - 0x28], 0x85ac24
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x14]
cmp eax, edx
jge 0x45b967
push 0x930
push dword [ebp - 0x28]
push dword [ebp - 0x24]
call fcn.0066c7fc
add esp, 0xc
add dword [ebp - 0x24], 0x930
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
add dword [ebp - 0x28], eax
inc dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
cmp edx, ecx
jl 0x45b937
mov eax, dword [ebp + 8]
mov edx, dword [eax]
cmp edx, 3
jne 0x45b979
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_CloseHandle
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x45bc7c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov eax, dword [ebp + 8]
cdq
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [0x757cb0]
cdq
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
call fcn.006744e4
push edx
push eax
mov eax, dword [0x757cc0]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0xc]
push dword [0x757ca8]
call sub.KERNEL32.DLL_SetFilePointer
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x45bce6
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x45bce6
xor eax, eax
jmp 0x45be2b
mov edx, dword [ebp + 0x10]
imul edx, dword [0x757cb0]
mov dword [ebp - 0x14], edx
mov ecx, dword [0x757cb0]
cmp ecx, 0x914
jne 0x45bd2d
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push dword [0x757ca8]
call sub.KERNEL32.DLL_ReadFile
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp edx, ecx
je 0x45be24
xor eax, eax
jmp 0x45be2b
mov edx, dword [0x757cb0]
mov dword [ebp - 0x30], edx
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x930
jle 0x45bd45
sub dword [ebp - 0x30], 0x60
mov eax, dword [ebp - 0x30]
cmp eax, 0x930
jne 0x45bd58
mov dword [ebp - 0x34], 0x18
jmp 0x45bd78
mov edx, dword [ebp - 0x30]
cmp edx, 0x920
jne 0x45bd6c
mov dword [ebp - 0x34], 8
jmp 0x45bd78
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffff6ec
mov dword [ebp - 0x34], ecx
push dword [ebp - 0x14]
call fcn.0066c210
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x45bda8
push 0x59fa
call fcn.00402a64
pop ecx
push eax
push 0
call fcn.0046279c
add esp, 8
xor eax, eax
jmp 0x45be2b
push 0
lea edx, [ebp - 0x18]
push edx
push dword [ebp - 0x14]
push dword [ebp - 0x24]
push dword [0x757ca8]
call sub.KERNEL32.DLL_ReadFile
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
cmp ecx, eax
je 0x45bdcd
xor eax, eax
jmp 0x45be2b
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x28], edx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
cmp eax, edx
jge 0x45be1b
push 0x914
mov ecx, dword [ebp - 4]
imul ecx, dword [0x757cb0]
mov eax, dword [ebp - 0x24]
add ecx, eax
mov edx, dword [ebp - 0x34]
add ecx, edx
push ecx
push dword [ebp - 0x28]
call fcn.0066c7fc
add esp, 0xc
add dword [ebp - 0x28], 0x914
inc dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
cmp ecx, eax
jl 0x45bde2
push dword [ebp - 0x24]
call fcn.0066c220
pop ecx
imul eax, dword [ebp + 0x10], 0x914
mov esp, ebp
pop ebp
ret

Function at 0x45d9fc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
imul dword [ebp + 0x10]
mov dword [ebp - 4], eax
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push dword [ebp + 8]
push dword [ebp + 0x14]
call sub.KERNEL32.DLL_ReadFile
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp ecx, eax
je 0x45da33
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x45da36
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
pop ebp
ret
Function at 0x45da3c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
imul dword [ebp + 0x10]
mov dword [ebp - 4], eax
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push dword [ebp + 8]
push dword [ebp + 0x14]
call sub.KERNEL32.DLL_WriteFile
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp ecx, eax
je 0x45da8d
push 0x59fd
call fcn.00402a64
pop ecx
push eax
push 0
call fcn.0046279c
add esp, 8
mov dword [0x6f6920], 1
xor eax, eax
jmp 0x45da90
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
pop ebp
ret