joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402080
Capabilities:
Create directory

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
call fcn.00402040
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebx, eax
push str.disk_
push ebx
push str._s_s
push 0x6189f8
call ebp
add esp, 0x10
push 0
push 0x6189f8
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, 0x618af8
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.004d5120
add esi, 0x100
add esp, 4
add edi, 4
cmp esi, 0x618ef8
jl 0x4020df
push str.screenshot_
push ebx
push str._s_s
push 0x597384
call ebp
add esp, 0x10
push 0
push 0x597384
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret

Function at 0x4040e0
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 0x404128
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54c
ret
test byte [esp + 0x24], 2
je 0x404143
cmp dword [esp + 0x18], 5
jae 0x404143
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 0x40415e
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 0x40421a
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.Gui.exe
push eax
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0x20
test eax, eax
jne 0x4041e6
mov eax, dword [esp + 0x140]
test esi, esi
jne 0x4041da
mov dword [esp + 0x10], eax
inc esi
cmp esi, 1
jle 0x4041e6
cmp dword [esp + 0x10], eax
je 0x404231
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 0x404185
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 0x40b120
Capabilities:
Move file
Write file on windows

Disassembly:
mov eax, dword [0x59dc58]
sub esp, 0x210
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
jne 0x40b2f3
lea eax, [esp + 0xc]
mov dword [0x59dc58], 1
push eax
push 0x58518c
push str.ime_temp
call fcn.00406190
mov ebx, eax
add esp, 0xc
cmp ebx, ebp
jne 0x40b18a
mov ecx, dword [esp + 0xc]
mov edx, dword [sym.imp.MSVCRT.dll__iob]
push ecx
add edx, 0x40
push 0x585190
push edx
mov dword [0x59dc58], ebp
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
pop ebp
pop ebx
add esp, 0x210
ret
push esi
push edi
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x59db98]
mov dword [esp + 0x18], ebp
mov eax, dword [ecx + 0x4c]
cmp eax, ebp
je 0x40b1d2
cmp dword [eax + 0x48], ebp
jne 0x40b1cb
inc dword [esp + 0x18]
mov eax, dword [eax + 0x4c]
cmp eax, ebp
jne 0x40b1c2
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push 1
lea edx, [esp + 0x20]
push 4
push edx
call edi
mov eax, dword [0x59db98]
add esp, 0x10
mov ebp, dword [eax + 0x4c]
test ebp, ebp
je 0x40b29a
mov eax, dword [ebp + 0x48]
test eax, eax
jne 0x40b28f
push ebx
push 1
lea ecx, [ebp + 4]
push 0xb
push ecx
call edi
mov edx, dword [ebp + 0x44]
push ebx
push 1
lea eax, [esp + 0x28]
push 4
push eax
mov dword [esp + 0x30], edx
call edi
mov ecx, dword [ebp]
mov eax, dword [ebp + 0x44]
add esp, 0x20
mov dword [esp + 0x1c], 0
mov esi, dword [ecx + 0x24]
test eax, eax
jbe 0x40b28f
push ebx
push 1
push 2
push esi
call edi
mov edx, dword [esi + 0x18]
push ebx
push 1
lea eax, [esp + 0x28]
push 4
push eax
mov dword [esp + 0x30], edx
call edi
mov ecx, dword [esi + 0x1c]
push ebx
push 1
lea edx, [esp + 0x38]
push 4
push edx
mov dword [esp + 0x40], ecx
call edi
mov eax, dword [esi + 0x20]
push ebx
push 1
lea ecx, [esp + 0x48]
push 4
push ecx
mov dword [esp + 0x50], eax
call edi
mov eax, dword [esp + 0x5c]
mov ecx, dword [ebp + 0x44]
mov esi, dword [esi + 0x24]
add esp, 0x40
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x40b238
mov ebp, dword [ebp + 0x4c]
test ebp, ebp
jne 0x40b1f7
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
lea edx, [esp + 0x18]
push edx
push 0
push str.ime_pyfreq.dat
call fcn.00406190
mov eax, dword [esp + 0x24]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x18
test eax, eax
pop edi
pop esi
je 0x40b2d6
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll__unlink]
add esp, 4
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
mov dword [0x59dc58], 0
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x40c140
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x597aa0]
xor edx, edx
test eax, eax
jle 0x40c178
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, 0x59d770
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 [0x597aa0]
cmp edx, eax
jl 0x40c157
pop edi
pop esi
pop ebx
ret

Function at 0x40cc80
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 0x5851dc
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 0x40d150
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x4108
call fcn.005322e0
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 0x40d17f
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 0x40d2ae
inc eax
add ecx, 4
cmp eax, 8
jl 0x40d171
mov eax, dword [esp + 0x4120]
mov ebp, dword [sym.imp.MSVCRT.dll_fopen]
push 0x585050
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.00402040
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 0x585200
push eax
call ebp
mov ebp, eax
lea ecx, [esp + 0x34]
push ebp
push ecx
push str.audFileName:_s__tmpFp:_p
call fcn.00458ab0
add esp, 0x28
test ebx, ebx
je 0x40d26a
test ebp, ebp
je 0x40d278
mov edi, dword [esp + 0x4128]
test edi, edi
jle 0x40d26a
cmp edi, 0x4000
mov esi, edi
jl 0x40d239
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 0x40d22a
mov esi, dword [esp + 0x10]
test ebp, ebp
je 0x40d278
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test ebx, ebx
je 0x40d286
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 [0x6d7478]
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 0x40d370
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 0x40d39d
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 0x40d3f7
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.00402040
push eax
lea eax, [esp + 0x144]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x14c]
push 0x585050
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x18
test eax, eax
je 0x40d3f7
mov edx, dword [eax + 0x10]
mov dword [esi + 4], edx
mov ebp, dword [esp + 0x244]
mov eax, dword [0x6786fc]
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 [0x6786fc]
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.00478ad0
test eax, eax
je 0x40d4ae
lea ecx, [esi + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.00478af0
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.00478af0
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 0x40d4bb
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 0x40d517
lea ecx, [esp + 0x10]
xor edi, edi
call fcn.00478ad0
test eax, eax
jne 0x40d4f9
mov edx, dword [0x6786fc]
push 0x678724
mov edi, dword [edx + ebp + 4]
call fcn.00402040
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.0040d100
mov ecx, eax
call fcn.0040d150
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x22c
ret 8

Function at 0x40d890
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40d8d4
mov eax, dword [esi + 0x18]
mov ecx, dword [0x67a8cc]
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.00478e60
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov ecx, dword [0x67a8cc]
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 0x40f070
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov esi, ecx
push eax
call fcn.0040d980
mov ecx, dword [0x67a8cc]
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 [0x67a8cc]
lea ecx, [esi + 0x18]
push eax
push 1
push 4
push ecx
call edi
mov edx, dword [0x67a8cc]
lea eax, [esp + 0x30]
push edx
push 1
push 4
push eax
call edi
mov ecx, dword [0x67a8cc]
lea ebx, [esi + 0x1c]
push ecx
push 1
push 4
push ebx
call edi
mov edx, dword [0x67a8cc]
add esp, 0x40
lea eax, [esi + 0x20]
push edx
push 1
push 2
push eax
call edi
mov ecx, dword [0x67a8cc]
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 0x40f10d
mov dword [ebx], 0
pop edi
pop esi
pop ebx
ret 4

Function at 0x40f170
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x67a8cc]
push ebx
push ebp
push esi
push edi
push 0
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [0x67a8cc]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 1
push 4
push 0x5ddeb4
call ebx
mov esi, dword [0x5ddeb4]
lea eax, [esi + esi*4]
lea ecx, [eax*8 + 4]
push ecx
call fcn.004784e0
add esp, 0x20
test eax, eax
je 0x40f1dd
push fcn.0040f280
push 0x40f260
lea edi, [eax + 4]
push esi
push 0x28
push edi
mov dword [eax], esi
call fcn.0053230f
mov dword [0x5ddeb0], edi
jmp 0x40f1e7
mov dword [0x5ddeb0], 0
mov edx, dword [0x5ddeb4]
mov ecx, 0x6d07d8
lea eax, [edx*4]
push eax
call fcn.004bb1f0
mov ecx, dword [0x67a8cc]
mov edx, dword [0x5ddeb4]
push ecx
mov ebp, eax
push edx
push 4
push ebp
call ebx
mov eax, dword [0x5ddeb4]
add esp, 0x10
xor esi, esi
test eax, eax
jle 0x40f246
xor ebx, ebx
mov edi, ebp
mov eax, dword [edi]
mov ecx, dword [0x5ddeb0]
push eax
add ecx, ebx
call fcn.0040f070
mov eax, dword [0x5ddeb4]
inc esi
add edi, 4
add ebx, 0x28
cmp esi, eax
jl 0x40f226
push ebp
mov ecx, 0x6d07d8
call fcn.004bb220
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40f4c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov esi, ecx
push eax
call fcn.0040d980
mov ecx, dword [0x67a8cc]
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 [0x67a8cc]
lea ecx, [esp + 0x20]
push eax
push 1
push 1
push ecx
call ebx
mov edx, dword [0x67a8cc]
lea eax, [esi + 0x16]
push edx
push 1
push 2
push eax
call ebx
mov ecx, dword [0x67a8cc]
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
mov edi, eax
add esp, 0x34
movsx eax, byte [esp + 0x10]
dec eax
je 0x40f558
dec eax
je 0x40f540
dec eax
jne 0x40f577
push 0x1c
call fcn.004784b0
add esp, 4
test eax, eax
je 0x40f572
push edi
mov ecx, eax
call fcn.004cf860
jmp 0x40f574
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x40f572
push edi
mov ecx, eax
call fcn.004cfd90
jmp 0x40f574
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x40f572
push 0
push edi
mov ecx, eax
call fcn.004cfb10
jmp 0x40f574
xor eax, eax
mov dword [esi + 0x18], eax
mov byte [esi + 0x15], 0
mov eax, dword [0x67a7f0]
cmp eax, 0x18
jl 0x40f599
mov edx, dword [0x67a8cc]
lea eax, [esi + 0x1c]
push edx
push 1
push 0x10
push eax
call ebx
add esp, 0x10
cmp dword [0x67a7f0], 0x19
jl 0x40f5b6
mov ecx, dword [0x67a8cc]
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 0x40f730
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x67a8cc]
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 [0x67a8cc]
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 1
push 4
push 0x5ddee4
call esi
mov eax, dword [0x5ddee4]
add esp, 0x1c
lea ecx, [eax*4]
push ecx
mov ecx, 0x6d07d8
call fcn.004bb1f0
mov edx, dword [0x67a8cc]
mov ebp, eax
mov eax, dword [0x5ddee4]
push edx
push eax
push 4
push ebp
call esi
mov esi, dword [0x5ddee4]
lea ecx, [esi + esi*4]
lea edx, [esi + ecx*2]
lea eax, [edx*8 + 4]
push eax
call fcn.004784e0
add esp, 0x14
cmp eax, ebx
je 0x40f7cf
push fcn.0040f450
push 0x40f410
lea edi, [eax + 4]
push esi
push 0x58
push edi
mov dword [eax], esi
call fcn.0053230f
mov dword [0x5dde94], edi
jmp 0x40f7d5
mov dword [0x5dde94], ebx
cmp dword [0x5ddee4], ebx
jbe 0x40f802
xor edi, edi
mov esi, ebp
mov ecx, dword [esi]
mov edx, dword [0x5dde94]
push ecx
lea ecx, [edi + edx]
call fcn.0040f4c0
mov eax, dword [0x5ddee4]
inc ebx
add esi, 4
add edi, 0x58
cmp ebx, eax
jb 0x40f7e1
push ebp
mov ecx, 0x6d07d8
call fcn.004bb220
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x411720
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5452db
mov ecx, dword [0x67a8cc]
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 [0x67a8cc]
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 1
push 4
push 0x5ddeb8
call esi
mov eax, dword [0x5ddeb8]
add esp, 0x1c
lea ecx, [eax*4]
push ecx
mov ecx, 0x6d07d8
call fcn.004bb1f0
mov edx, dword [0x67a8cc]
mov ebp, eax
mov eax, dword [0x5ddeb8]
push edx
push eax
push 4
push ebp
call esi
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 4
push 0x5ddee0
call esi
mov eax, dword [0x5ddee0]
add esp, 0x20
test eax, 0x10000000
je 0x4117ca
mov edx, dword [0x67a8cc]
push edx
push 1
push 8
push 0x58524c
call esi
add esp, 0x10
test dword [0x5ddee0], 0x8000000
je 0x4117ea
mov eax, dword [0x67a8cc]
push eax
push 1
push 4
push 0x5ddea0
call esi
add esp, 0x10
test dword [0x5ddee0], 0x4000000
je 0x41181b
mov ecx, dword [0x67a8cc]
push 4
push 0x5dde9c
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
push eax
call fcn.0047a710
add esp, 0xc
call fcn.00411320
mov ecx, 0x6969c0
call fcn.004b41a0
mov esi, eax
cmp esi, ebx
je 0x41185d
push 0x470
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebx
mov dword [esp + 0x18], ebx
je 0x41184e
push esi
mov ecx, eax
call fcn.00415890
jmp 0x411850
xor eax, eax
mov dword [esp + 0x18], 0xffffffff
mov dword [0x5ddea4], eax
mov esi, dword [0x5ddeb8]
mov edx, esi
shl edx, 5
add edx, esi
lea eax, [esi + edx*2]
lea ecx, [eax*4 + 4]
push ecx
call fcn.004784e0
add esp, 4
cmp eax, ebx
je 0x4118a4
push fcn.0040fb80
push 0x40fb00
lea edi, [eax + 4]
push esi
push 0x10c
push edi
mov dword [eax], esi
call fcn.0053230f
mov dword [0x5ddedc], edi
jmp 0x4118aa
mov dword [0x5ddedc], ebx
cmp dword [0x5ddeb8], ebx
jle 0x4118d9
xor edi, edi
mov esi, ebp
mov eax, dword [0x5ddedc]
mov edx, dword [esi]
push edx
lea ecx, [edi + eax]
call fcn.0040fbf0
mov eax, dword [0x5ddeb8]
inc ebx
add esi, 4
add edi, 0x10c
cmp ebx, eax
jl 0x4118b6
push ebp
mov ecx, 0x6d07d8
call fcn.004bb220
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x414640
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get kernel32 base address
Get process heap flags
Get process heap force flags
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x54533e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esp + 0xc], esi
lea ebx, [esi + 0x10]
lea ecx, [esi + 0x12c]
mov word [ebx], 1
mov word [ebx + 2], 1
mov dword [ebx + 4], 1
mov dword [esi + 0x28], edi
call fcn.004144d0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov dword [esi + 0x140], eax
mov dword [esi + 0x144], ecx
mov dword [esi + 0x148], edi
mov dword [esi + 0x14c], edi
mov eax, dword [0x67a8cc]
push edi
push edx
push eax
mov dword [esp + 0x34], edi
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ecx
push 1
push 4
push esi
call edi
mov edx, dword [0x67a8cc]
lea eax, [esi + 4]
push edx
push 1
push 4
push eax
call edi
mov ecx, dword [0x67a8cc]
lea edx, [esi + 8]
push ecx
push 1
push 2
push edx
call edi
mov eax, dword [0x67a8cc]
lea ecx, [esi + 0xa]
push eax
push 1
push 2
push ecx
call edi
mov edx, dword [0x67a8cc]
add esp, 0x4c
lea eax, [esi + 0xc]
push edx
push 1
push 4
push eax
call edi
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 8
push ebx
call edi
mov edx, dword [0x67a8cc]
lea eax, [esi + 0x18]
push edx
push 1
push 4
push eax
call edi
mov ecx, dword [0x67a8cc]
lea ebx, [esi + 0x1c]
push ecx
push 1
push 0xc
push ebx
call edi
mov edx, dword [0x67a8cc]
add esp, 0x40
lea eax, [esp + 0x10]
push edx
push 1
push 0x10
push eax
call edi
mov ecx, dword [0x67a8cc]
lea eax, [esi + 0x2c]
push ecx
push 1
push 0x100
push eax
call edi
mov edx, dword [esi]
add esp, 0x20
and edx, 7
cmp dl, 3
jne 0x41479f
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x41479a
lea ecx, [esp + 0x10]
push 1
push ecx
mov ecx, eax
call fcn.00495db0
jmp 0x41479c
xor eax, eax
mov dword [esi + 0x28], eax
mov edi, 3
cmp dword [ebx], 0
je 0x4147c9
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x4147c5
mov edx, dword [ebx]
push 0
push edx
mov ecx, eax
call fcn.004cfb10
jmp 0x4147c7
xor eax, eax
mov dword [ebx], eax
add ebx, 4
dec edi
jne 0x4147a4
lea edi, [esi + 0x2c]
mov ebx, 0x40
cmp dword [edi], 0
je 0x4147fc
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x4147f8
mov ecx, dword [edi]
push 0
push ecx
mov ecx, eax
call fcn.004cfb10
jmp 0x4147fa
xor eax, eax
mov dword [edi], eax
add edi, 4
dec ebx
jne 0x4147d7
push 0x100
mov ecx, esi
call fcn.00415710
push eax
lea ecx, [esi + 0x12c]
call fcn.00414520
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc