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

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x28]
test byte [eax], 8
jne 0x40223b
mov dword [0x57defc], 0x6f
xor eax, eax
pop esi
ret
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x402251
lea eax, [esp + 8]
push 1
push eax
push esi
call ecx
add esp, 0xc
jmp 0x402267
mov ecx, dword [eax + 0x20]
lea edx, [esp + 8]
push ecx
push 1
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x40227a
mov dword [0x57defc], 0x66
xor eax, eax
pop esi
ret
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
and eax, 0xff
push edx
push esi
mov dword [ecx], eax
call fcn.004022a0
add esp, 8
pop esi
ret

Function at 0x4022a0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push edi
mov edi, dword [esi + 0x28]
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4022c6
lea ecx, [esp + 0x10]
push 1
push ecx
push esi
call eax
add esp, 0xc
jmp 0x4022d8
mov edx, dword [edi + 0x20]
lea eax, [esp + 0x10]
push edx
push 1
push 1
push eax
call ebx
add esp, 0x10
cmp eax, 1
je 0x4022ed
pop edi
pop esi
mov dword [0x57defc], 0x66
xor eax, eax
pop ebx
ret
mov cl, byte [esp + 0x10]
test cl, cl
jbe 0x402358
mov edx, dword [esp + 0x14]
lea eax, [edi + 0x2c]
mov dword [edx], eax
mov byte [eax], cl
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x402320
mov eax, dword [esp + 0x10]
mov edx, dword [edx]
and eax, 0xff
inc edx
push eax
push edx
push esi
call ecx
add esp, 0xc
jmp 0x40233a
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x20]
mov edx, dword [edx]
and ecx, 0xff
push eax
push ecx
inc edx
push 1
push edx
call ebx
add esp, 0x10
mov ecx, dword [esp + 0x10]
and ecx, 0xff
cmp eax, ecx
je 0x402362
pop edi
pop esi
mov dword [0x57defc], 0x66
xor eax, eax
pop ebx
ret
mov edx, dword [esp + 0x14]
mov dword [edx], 0
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x402400
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x40241d
lea eax, [esp + 4]
push 2
push eax
push edx
call ecx
add esp, 0xc
jmp 0x402433
mov ecx, dword [eax + 0x20]
lea edx, [esp + 4]
push ecx
push 2
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 2
je 0x402445
mov dword [0x57defc], 0x66
xor eax, eax
ret
mov ax, word [esp + 4]
xor cx, cx
mov cl, ah
xor dx, dx
shl ecx, 8
mov dl, al
mov eax, dword [esp + 8]
add ecx, edx
mov word [eax], cx
mov eax, 1
ret
Function at 0x402470
Capabilities:
Read file on windows

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x10]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
mov esi, dword [edi + 0x28]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x402496
lea ecx, [esp + 0x10]
push 1
push ecx
push edi
call eax
add esp, 0xc
jmp 0x4024a8
mov edx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push edx
push 1
push 1
push eax
call ebp
add esp, 0x10
cmp eax, 1
je 0x4024bd
pop edi
pop esi
mov dword [0x57defc], 0x66
xor eax, eax
pop ebp
ret
mov cl, byte [esp + 0x10]
test cl, cl
jbe 0x402528
mov edx, dword [esp + 0x14]
lea eax, [esi + 0x2c]
mov dword [edx], eax
mov byte [eax], cl
mov eax, dword [edi + 0x28]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4024f0
mov eax, dword [esp + 0x10]
mov edx, dword [edx]
and eax, 0xff
inc edx
push eax
push edx
push edi
call ecx
add esp, 0xc
jmp 0x40250a
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x20]
mov edx, dword [edx]
and ecx, 0xff
push eax
push ecx
inc edx
push 1
push edx
call ebp
add esp, 0x10
mov ecx, dword [esp + 0x10]
and ecx, 0xff
cmp eax, ecx
je 0x40253d
pop edi
pop esi
mov dword [0x57defc], 0x66
xor eax, eax
pop ebp
ret
mov edx, dword [esp + 0x14]
mov dword [edx], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x1c], 0
pop edi
pop esi
mov eax, 1
pop ebp
ret

Function at 0x402550
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
mov esi, dword [ecx + 0x28]
push edi
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x402572
lea edx, [esp + 0x10]
push 1
push edx
push ecx
call eax
add esp, 0xc
jmp 0x402588
mov eax, dword [esi + 0x20]
lea ecx, [esp + 0x10]
push eax
push 1
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov ecx, dword [esp + 0x10]
mov eax, 1
and ecx, 0xff
mov edx, 1
shl eax, cl
mov word [esi + 4], cx
lea edi, [esi + 0x212c]
mov byte [esi + 0x2c], bl
mov word [esi + 0x14], bx
mov word [esi + 0x10], 0x1002
mov word [esi + 0x16], bx
mov word [esi + 6], ax
inc eax
mov word [esi + 8], ax
inc eax
inc ecx
mov word [esi + 0xa], ax
shl edx, cl
mov word [esi + 0xc], cx
mov ecx, 0x800
mov eax, 0x10021002
mov dword [esi + 0x18], ebx
mov word [esi + 0xe], dx
rep stosd dword es:[edi], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4029b0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
cmp byte [esi], 0
jne 0x402a7d
mov ebx, dword [esp + 0x14]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [ebx + 0x28]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4029e0
push 1
push esi
push ebx
call ecx
add esp, 0xc
jmp 0x4029ee
mov eax, dword [eax + 0x20]
push eax
push 1
push 1
push esi
call ebp
add esp, 0x10
cmp eax, 1
je 0x402a04
pop edi
pop esi
pop ebp
mov dword [0x57defc], 0x66
xor eax, eax
pop ebx
ret
mov al, byte [esi]
test al, al
jne 0x402a1b
pop edi
pop esi
pop ebp
mov dword [0x57defc], 0x70
xor eax, eax
pop ebx
ret
mov ecx, dword [ebx + 0x28]
lea edi, [esi + 1]
mov edx, dword [ecx + 0x24]
test edx, edx
je 0x402a37
and eax, 0xff
push eax
push edi
push ebx
call edx
add esp, 0xc
jmp 0x402a49
mov ecx, dword [ecx + 0x20]
and eax, 0xff
push ecx
push eax
push 1
push edi
call ebp
add esp, 0x10
xor edx, edx
mov dl, byte [esi]
cmp eax, edx
je 0x402a62
pop edi
pop esi
pop ebp
mov dword [0x57defc], 0x66
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x1c]
mov al, byte [edi]
mov byte [ecx], al
mov al, byte [esi]
dec al
mov byte [edi], 2
mov byte [esi], al
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov ecx, dword [esp + 0x1c]
xor edx, edx
mov dl, byte [esi + 1]
pop edi
mov al, byte [edx + esi]
mov byte [ecx], al
mov cl, byte [esi + 1]
mov al, byte [esi]
inc cl
dec al
mov byte [esi + 1], cl
mov byte [esi], al
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x402f20
Capabilities:
Create directory

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
call fcn.00402ee0
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebx, eax
push str.disk_
push ebx
push str._s_s
push 0x5fdb68
call ebp
add esp, 0x10
push 0
push 0x5fdb68
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [esp + 0x10], str.disk_sd
mov dword [esp + 0x14], str.diskusb1
mov dword [esp + 0x18], str.diskusb2
mov dword [esp + 0x1c], str.diskhmi
mov esi, 0x5fdc68
lea edi, [esp + 0x10]
mov eax, dword [edi]
push eax
push ebx
push str._s_s
push esi
call ebp
add esp, 0x10
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call fcn.004bfe40
add esi, 0x100
add esp, 4
add edi, 4
cmp esi, 0x5fe068
jl 0x402f7f
push str.screenshot_
push ebx
push str._s_s
push 0x57ddb4
call ebp
add esp, 0x10
push 0
push 0x57ddb4
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x404f80
Capabilities:
Check os version
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
sub esp, 0x54c
push ebx
push ebp
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x356]
mov word [esp + 0x354], si
mov dword [esp + 0x14], 0x114
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x404fc8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54c
ret
test byte [esp + 0x24], 2
je 0x404fe3
cmp dword [esp + 0x18], 5
jae 0x404fe3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54c
ret
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, esi
jne 0x404ffe
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54c
ret
lea ecx, [esp + 0x128]
mov dword [esp + 0x128], 0x22c
push ecx
push ebp
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4050ba
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
lea edx, [esp + 0x14c]
push edx
call ebx
push eax
lea eax, [esp + 0x154]
lea ecx, [esp + 0x35c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
lea edx, [esp + 0x364]
push edx
call ebx
push eax
lea eax, [esp + 0x36c]
push str.KHGui.exe
push eax
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0x20
test eax, eax
jne 0x405086
mov eax, dword [esp + 0x140]
test esi, esi
jne 0x40507a
mov dword [esp + 0x10], eax
inc esi
cmp esi, 1
jle 0x405086
cmp dword [esp + 0x10], eax
je 0x4050d1
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x354]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x128]
push ecx
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x405025
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x54c
ret
push 0
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
nop
nop
nop
nop
nop
Function at 0x40d550
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x57e4d0]
xor edx, edx
test eax, eax
jle 0x40d588
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, 0x5841a0
mov eax, dword [esi]
add esi, 8
mov ecx, dword [eax + 0x14]
mov ebx, ecx
xor ebx, edi
and ebx, 1
xor ebx, ecx
inc edx
mov dword [eax + 0x14], ebx
mov eax, dword [0x57e4d0]
cmp edx, eax
jl 0x40d567
pop edi
pop esi
pop ebx
ret

Function at 0x40e090
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x100
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10c]
lea edx, [esp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x110]
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_vsprintf]
push 0x56c2a4
push str.gui.txt
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
push ecx
lea eax, [esp + 0x24]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x28
xor eax, eax
pop edi
pop esi
add esp, 0x100
ret
Function at 0x40e4e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x4108
call fcn.0051c710
push ebx
mov ebx, ecx
push ebp
push esi
lea ecx, [ebx + 0x24]
xor esi, esi
push edi
mov dword [esp + 0x14], ebx
mov edi, dword [ecx]
mov dword [esp + 0x10], esi
xor eax, eax
mov edx, dword [ecx]
cmp edx, edi
jae 0x40e50f
mov edi, edx
mov dword [esp + 0x10], eax
mov esi, eax
mov edx, dword [esp + 0x411c]
mov ebp, dword [ecx - 0x20]
cmp edx, ebp
je 0x40e63e
inc eax
add ecx, 4
cmp eax, 8
jl 0x40e501
mov eax, dword [esp + 0x4120]
mov ebp, dword [sym.imp.MSVCRT.dll_fopen]
push 0x56c118
push eax
call ebp
mov ecx, dword [esp + 0x412c]
mov ebx, eax
push 0
push ecx
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
add esp, 0x14
stosw word es:[edi], ax
push esi
push str.SimAudio
stosb byte es:[edi], al
call fcn.00402ee0
push eax
lea edx, [esp + 0x24]
push str._s_s_d.mp3
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x2c]
push 0x56c2c8
push eax
call ebp
mov ebp, eax
lea ecx, [esp + 0x34]
push ebp
push ecx
push str.audFileName:_s__tmpFp:_p
call fcn.00402b00
add esp, 0x28
test ebx, ebx
je 0x40e5fa
test ebp, ebp
je 0x40e608
mov edi, dword [esp + 0x4128]
test edi, edi
jle 0x40e5fa
cmp edi, 0x4000
mov esi, edi
jl 0x40e5c9
mov esi, 0x4000
push ebx
push esi
lea edx, [esp + 0x120]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
push ebp
push esi
lea eax, [esp + 0x130]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
sub edi, esi
add esp, 0x20
test edi, edi
jg 0x40e5ba
mov esi, dword [esp + 0x10]
test ebp, ebp
je 0x40e608
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test ebx, ebx
je 0x40e616
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x411c]
pop edi
mov dword [eax + esi*4 + 4], ecx
mov edx, dword [0x6b5f20]
mov dword [eax + esi*4 + 0x24], edx
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 0x4108
ret 0x10
pop edi
pop esi
mov dword [ebx], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x4108
ret 0x10
Function at 0x40e700
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x22c
push ebx
push ebp
mov ebx, dword [esp + 0x238]
push esi
mov esi, ecx
push edi
or edi, 0xffffffff
cmp dword [esi + 4], edi
jne 0x40e72d
push 0x8000
push ebx
call dword [sym.imp.MSVCRT.dll__open]
add esp, 8
mov dword [esi + 4], eax
cmp dword [esi + 4], edi
jne 0x40e787
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x13d]
mov byte [esp + 0x13c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
call fcn.00402ee0
push eax
lea eax, [esp + 0x144]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x14c]
push 0x56c118
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x18
test eax, eax
je 0x40e787
mov edx, dword [eax + 0x10]
mov dword [esi + 4], edx
mov ebp, dword [esp + 0x244]
mov eax, dword [0x657864]
mov edx, dword [esi + 4]
mov ebx, dword [sym.imp.MSVCRT.dll__lseek]
shl ebp, 4
push 0
mov ecx, dword [eax + ebp + 4]
push ecx
push edx
call ebx
mov eax, dword [0x657864]
lea edi, [esp + 0x49]
lea edx, [esp + 0x1c]
push 0x2c
mov ecx, dword [eax + ebp]
xor eax, eax
mov dword [esi + 8], ecx
mov ecx, 0x3f
mov byte [esp + 0x4c], 0
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.MSVCRT.dll__read]
mov edx, dword [esi + 0xc]
add esp, 0x18
and edx, 0xfffffffd
lea ecx, [esp + 0x10]
mov dword [esi + 0xc], edx
call fcn.004707e0
test eax, eax
je 0x40e83e
lea ecx, [esi + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.00470800
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x3c]
or al, 2
push edx
lea ecx, [esp + 0x14]
mov dword [esi + 0xc], eax
call fcn.00470800
lea eax, [esp + 0x3c]
push 0x8000
push eax
call dword [sym.imp.MSVCRT.dll__open]
mov edi, eax
push 2
push 0
push edi
call ebx
push edi
mov dword [esi + 8], eax
call dword [sym.imp.MSVCRT.dll__close]
add esp, 0x18
jmp 0x40e84b
mov ecx, dword [esi + 4]
push 1
push 0xffffffffffffffd4
push ecx
call ebx
add esp, 0xc
mov eax, dword [esi + 8]
test eax, eax
jle 0x40e8a7
lea ecx, [esp + 0x10]
xor edi, edi
call fcn.004707e0
test eax, eax
jne 0x40e889
mov edx, dword [0x657864]
push 0x65788c
mov edi, dword [edx + ebp + 4]
call fcn.00402ee0
push eax
lea eax, [esp + 0x44]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x244]
push ecx
lea edx, [esp + 0x40]
push edi
push edx
push eax
call fcn.0040e490
mov ecx, eax
call fcn.0040e4e0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x22c
ret 8

Function at 0x40eba0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40ebe4
mov eax, dword [esi + 0x18]
mov ecx, dword [0x659a18]
push 0
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [esi + 0x14]
shl edx, 1
push edx
call fcn.00470b90
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov ecx, dword [0x659a18]
push ecx
push 1
shl edx, 1
push edx
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x20
pop esi
ret
Function at 0x410260
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov esi, ecx
push eax
call fcn.0040ec90
mov ecx, dword [0x659a18]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ecx
push 1
lea edx, [esi + 0x14]
push 4
push edx
call edi
mov eax, dword [0x659a18]
lea ecx, [esi + 0x18]
push eax
push 1
push 4
push ecx
call edi
mov edx, dword [0x659a18]
lea eax, [esp + 0x30]
push edx
push 1
push 4
push eax
call edi
mov ecx, dword [0x659a18]
lea ebx, [esi + 0x1c]
push ecx
push 1
push 4
push ebx
call edi
mov edx, dword [0x659a18]
add esp, 0x40
lea eax, [esi + 0x20]
push edx
push 1
push 2
push eax
call edi
mov ecx, dword [0x659a18]
add esi, 0x22
push ecx
push 1
push 2
push esi
call edi
push 4
lea edx, [esp + 0x34]
push str.flag
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x2c
test eax, eax
je 0x4102fd
mov dword [ebx], 0
pop edi
pop esi
pop ebx
ret 4

Function at 0x410360
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x659a18]
push ebx
push ebp
push esi
push edi
push 0
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [0x659a18]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 1
push 4
push 0x5c48c0
call ebx
mov esi, dword [0x5c48c0]
lea eax, [esi + esi*4]
lea ecx, [eax*8 + 4]
push ecx
call fcn.00470280
add esp, 0x20
test eax, eax
je 0x4103cd
push fcn.0041a6e0
push 0x410450
lea edi, [eax + 4]
push esi
push 0x28
push edi
mov dword [eax], esi
call fcn.0051c73f
mov dword [0x5c48bc], edi
jmp 0x4103d7
mov dword [0x5c48bc], 0
mov edx, dword [0x5c48c0]
mov ecx, 0x6af5d8
lea eax, [edx*4]
push eax
call fcn.004a7db0
mov ecx, dword [0x659a18]
mov edx, dword [0x5c48c0]
push ecx
mov ebp, eax
push edx
push 4
push ebp
call ebx
mov eax, dword [0x5c48c0]
add esp, 0x10
xor esi, esi
test eax, eax
jle 0x410436
xor ebx, ebx
mov edi, ebp
mov eax, dword [edi]
mov ecx, dword [0x5c48bc]
push eax
add ecx, ebx
call fcn.00410260
mov eax, dword [0x5c48c0]
inc esi
add edi, 4
add ebx, 0x28
cmp esi, eax
jl 0x410416
push ebp
mov ecx, 0x6af5d8
call fcn.004a7de0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4106a0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov esi, ecx
push eax
call fcn.0040ec90
mov ecx, dword [0x659a18]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push ecx
push 1
lea edx, [esi + 0x14]
push 1
push edx
call ebx
mov eax, dword [0x659a18]
lea ecx, [esp + 0x20]
push eax
push 1
push 1
push ecx
call ebx
mov edx, dword [0x659a18]
lea eax, [esi + 0x16]
push edx
push 1
push 2
push eax
call ebx
mov ecx, dword [0x659a18]
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
mov edi, eax
add esp, 0x34
movsx eax, byte [esp + 0x10]
dec eax
je 0x41073b
dec eax
je 0x410720
dec eax
jne 0x41075a
push 0x1c
call fcn.00470250
add esp, 4
test eax, eax
je 0x410755
push edi
mov ecx, eax
call fcn.004ba9e0
jmp 0x410757
push 0x298
call fcn.00470250
add esp, 4
test eax, eax
je 0x410755
push edi
mov ecx, eax
call fcn.004baf10
jmp 0x410757
push 0x24
call fcn.00470250
add esp, 4
test eax, eax
je 0x410755
push 0
push edi
mov ecx, eax
call fcn.004bac90
jmp 0x410757
xor eax, eax
mov dword [esi + 0x18], eax
mov byte [esi + 0x15], 0
mov eax, dword [0x659958]
cmp eax, 0x18
jl 0x41077c
mov edx, dword [0x659a18]
lea eax, [esi + 0x1c]
push edx
push 1
push 0x10
push eax
call ebx
add esp, 0x10
cmp dword [0x659958], 0x19
jl 0x410799
mov ecx, dword [0x659a18]
add esi, 0x2c
push ecx
push 1
push 0x20
push esi
call ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret 4

Function at 0x410910
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x659a18]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [0x659a18]
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 1
push 4
push 0x5c48ec
call esi
mov eax, dword [0x5c48ec]
add esp, 0x1c
lea ecx, [eax*4]
push ecx
mov ecx, 0x6af5d8
call fcn.004a7db0
mov edx, dword [0x659a18]
mov ebp, eax
mov eax, dword [0x5c48ec]
push edx
push eax
push 4
push ebp
call esi
mov esi, dword [0x5c48ec]
lea ecx, [esi + esi*4]
lea edx, [esi + ecx*2]
lea eax, [edx*8 + 4]
push eax
call fcn.00470280
add esp, 0x14
cmp eax, ebx
je 0x4109af
push fcn.00410630
push 0x4105f0
lea edi, [eax + 4]
push esi
push 0x58
push edi
mov dword [eax], esi
call fcn.0051c73f
mov dword [0x5c489c], edi
jmp 0x4109b5
mov dword [0x5c489c], ebx
cmp dword [0x5c48ec], ebx
jbe 0x4109e2
xor edi, edi
mov esi, ebp
mov ecx, dword [esi]
mov edx, dword [0x5c489c]
push ecx
lea ecx, [edi + edx]
call fcn.004106a0
mov eax, dword [0x5c48ec]
inc ebx
add esi, 4
add edi, 0x58
cmp ebx, eax
jb 0x4109c1
push ebp
mov ecx, 0x6af5d8
call fcn.004a7de0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x412790
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52f56b
mov ecx, dword [0x659a18]
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [0x659a18]
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 1
push 4
push 0x5c48ac
call esi
mov eax, dword [0x5c48ac]
add esp, 0x1c
lea ecx, [eax*4]
push ecx
mov ecx, 0x6af5d8
call fcn.004a7db0
mov edx, dword [0x659a18]
mov ebp, eax
mov eax, dword [0x5c48ac]
push edx
push eax
push 4
push ebp
call esi
mov ecx, dword [0x659a18]
push ecx
push 1
push 4
push 0x5c48e8
call esi
mov eax, dword [0x5c48e8]
add esp, 0x20
test eax, 0x10000000
je 0x41283a
mov edx, dword [0x659a18]
push edx
push 1
push 8
push 0x56c314
call esi
add esp, 0x10
test dword [0x5c48e8], 0x8000000
je 0x41285a
mov eax, dword [0x659a18]
push eax
push 1
push 4
push 0x5c48a8
call esi
add esp, 0x10
test dword [0x5c48e8], 0x4000000
je 0x41288b
mov ecx, dword [0x659a18]
push 4
push 0x5c48a4
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
push eax
call fcn.00472400
add esp, 0xc
call fcn.00412390
mov ecx, 0x675aa8
call fcn.004a1780
mov esi, eax
cmp esi, ebx
je 0x4128cd
push 0x46c
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebx
mov dword [esp + 0x18], ebx
je 0x4128be
push esi
mov ecx, eax
call fcn.00416650
jmp 0x4128c0
xor eax, eax
mov dword [esp + 0x18], 0xffffffff
mov dword [0x5c48b0], eax
mov esi, dword [0x5c48ac]
lea edx, [esi + esi*2]
lea eax, [esi + edx*4]
shl eax, 4
add eax, 4
push eax
call fcn.00470280
add esp, 4
cmp eax, ebx
je 0x41290f
push fcn.00410d50
push 0x410ce0
lea edi, [eax + 4]
push esi
push 0xd0
push edi
mov dword [eax], esi
call fcn.0051c73f
mov dword [0x5c48e4], edi
jmp 0x412915
mov dword [0x5c48e4], ebx
cmp dword [0x5c48ac], ebx
jle 0x412945
xor edi, edi
mov esi, ebp
mov ecx, dword [esi]
mov edx, dword [0x5c48e4]
push ecx
lea ecx, [edi + edx]
call fcn.00410dc0
mov eax, dword [0x5c48ac]
inc ebx
add esi, 4
add edi, 0xd0
cmp ebx, eax
jl 0x412921
push ebp
mov ecx, 0x6af5d8
call fcn.004a7de0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret