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

Disassembly:
sub esp, 0x4c
mov eax, dword [esp + 0x50]
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x56c118
push eax
mov dword [esp + 0x18], esi
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
cmp ebp, esi
je 0x45297d
xor ecx, ecx
push ebp
mov dword [esp + 0x19], ecx
push 1
mov dword [esp + 0x21], ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x25], ecx
push 0x10
mov word [esp + 0x2d], cx
push edx
mov byte [esp + 0x24], 0
mov byte [esp + 0x33], cl
call dword [sym.imp.MSVCRT.dll_fread]
mov ebx, dword [sym.imp.MSVCRT.dll_strncmp]
mov eax, 8
add esp, 0x10
mov dword [esp + 0x24], str.isom
mov dword [esp + 0x28], 0x56cd80
mov dword [esp + 0x2c], 0x56cd7c
mov dword [esp + 0x30], str..RMF
mov dword [esp + 0x34], str.RIFF
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov edx, dword [esp + esi + 0x24]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + esi + 0x38]
not ecx
dec ecx
push ecx
lea ecx, [esp + eax + 0x18]
push edx
push ecx
call ebx
add esp, 0xc
test eax, eax
je 0x4528e2
add esi, 4
cmp esi, 0x14
jl 0x4528b0
mov ebx, dword [esp + 0x10]
jmp 0x4528e7
mov ebx, 1
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test ebx, ebx
jne 0x452989
mov ebp, dword [sym.imp.MSVCRT.dll_strstr]
mov dword [esp + 0x38], str..mp4
mov dword [esp + 0x3c], str..avi
mov dword [esp + 0x40], str..wmv
mov dword [esp + 0x44], str..mkv
mov dword [esp + 0x48], str..mov
mov dword [esp + 0x4c], str..3gp
mov dword [esp + 0x50], str..flv
mov dword [esp + 0x54], str..mpg
mov dword [esp + 0x58], str..vob
xor edi, edi
lea esi, [esp + 0x38]
mov edx, dword [esi]
mov eax, dword [esp + 0x60]
push edx
push eax
call ebp
add esp, 8
test eax, eax
je 0x452963
cmp byte [eax], 0
jne 0x45296e
inc edi
add esi, 4
cmp edi, 9
jae 0x452989
jmp 0x45294d
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4c
ret 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x4c
ret 4
Function at 0x453c30
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5309b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], esi
call fcn.00439c20
mov eax, dword [esi + 0xc4]
mov dword [esi], 0x536f58
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
xor ebx, ebx
mov edi, dword [eax + 0x20]
mov dword [esp + 0x1c], ebx
and edi, 0xfffffffe
mov dword [eax + 0x20], edi
mov ecx, dword [0x659a18]
push ecx
lea edi, [esi + 0x1d0]
push 1
push 4
push edi
call ebp
mov edx, dword [0x659a34]
mov eax, dword [edi]
add esp, 0x10
test eax, edx
je 0x453cdd
push 0x24
call fcn.00470250
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x453cd1
mov eax, dword [0x659a18]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov ecx, ebx
push eax
call fcn.00488fd0
mov dword [esi + 0x11c], eax
xor ebx, ebx
jmp 0x453cf1
xor eax, eax
xor ebx, ebx
mov dword [esi + 0x11c], eax
jmp 0x453cf1
mov ecx, dword [0x659a18]
push 1
push 0x10
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov edx, dword [0x659a38]
mov eax, dword [edi]
test eax, edx
je 0x453d38
push 0x24
call fcn.00470250
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x453d2e
mov eax, dword [0x659a18]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov ecx, edi
push eax
call fcn.00488fd0
mov dword [esi + 0x12c], eax
jmp 0x453d4c
xor eax, eax
mov dword [esi + 0x12c], eax
jmp 0x453d4c
mov ecx, dword [0x659a18]
push 1
push 0x10
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov edx, dword [0x659a18]
lea eax, [esi + 0x1d4]
push edx
push 1
push 4
push eax
call ebp
mov ecx, dword [0x659a18]
lea edx, [esi + 0x1d8]
push ecx
push 1
push 4
push edx
call ebp
mov eax, dword [0x659a18]
push eax
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x24
mov ecx, esi
push eax
call fcn.0043b300
mov eax, dword [esi + 0x11c]
mov dword [esi + 0xbc], 1
cmp eax, ebx
je 0x453da8
mov dword [esi + 0xbc], ebx
mov dword [esi + 0x68], ebx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xb8], 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x453f30
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5309d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], esi
call fcn.0043d090
mov ebp, 1
xor ebx, ebx
mov word [esi + 0x1e8], bp
mov word [esi + 0x1ea], bp
mov dword [esi + 0x1ec], ebp
mov dword [esi + 0x214], ebx
mov word [esi + 0x23a], bx
mov word [esi + 0x238], bx
mov dword [esi + 0x23c], ebx
mov dword [esi + 0x240], ebx
mov dword [esi + 0x244], ebp
mov dword [esi + 0x248], ebp
mov dword [esi + 0x24c], ebp
mov dword [esi + 0x250], ebp
mov dword [esi + 0x254], ebx
mov dword [esi + 0x258], ebx
mov word [esi + 0x25c], bx
mov word [esi + 0x25e], bx
mov ecx, 8
xor eax, eax
lea edi, [esi + 0x218]
mov dword [esi + 0x260], ebx
mov dword [esi + 0x264], 0xffffffff
mov dword [esi], 0x537040
rep stosd dword es:[edi], eax
mov ecx, dword [0x659a18]
lea edx, [esi + 0x1e4]
push ecx
push ebp
push 0x30
push edx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
lea eax, [esp + 0x14]
mov ecx, esi
mov dword [esi + 0xb8], ebp
push eax
call fcn.00454f10
movsx eax, word [eax + 2]
movsx edx, word [esi + 0x16]
movsx edi, word [esi + 0x12]
lea ecx, [eax + eax]
sub edx, edi
movsx edi, word [esi + 0x10]
sub edx, ecx
inc edx
push edx
movsx edx, word [esi + 0x14]
sub edx, edi
sub edx, ecx
movsx ecx, word [esi + 0x12]
inc edx
add ecx, eax
push edx
push ecx
movsx edx, word [esi + 0x10]
add edx, eax
lea ecx, [esp + 0x20]
push edx
call fcn.004b4a60
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x14], edx
movsx eax, word [esi + 0x16]
movsx ecx, word [esi + 0x12]
movsx edx, word [esi + 0x14]
sub eax, ecx
inc eax
push eax
movsx eax, word [esi + 0x10]
sub edx, eax
lea ecx, [esp + 0x20]
inc edx
push edx
push ebx
push ebx
call fcn.004b4a60
mov ecx, dword [eax]
pop edi
mov dword [esi + 0x34], ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + 4]
mov eax, dword [esi + 8]
and ah, 0xfd
mov dword [esi + 0x38], edx
or eax, 0x101
mov dword [esi + 8], eax
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x455030
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x530a58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [esp + 0x70]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], esi
call fcn.00453f30
mov eax, dword [esi + 0x1e4]
mov edx, dword [esi + 0x208]
mov ecx, eax
mov dword [esp + 0x5c], edx
xor edx, edx
and ecx, 8
and eax, 0x80
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
mov dword [esp + 0x2c], edx
mov dword [esi], 0x537144
mov dword [esp + 0x58], ecx
mov ecx, dword [esi + 0x210]
mov dword [esp + 0x6c], eax
mov eax, dword [0x659a18]
mov dword [esp + 0x30], edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x34], edx
push eax
push 3
lea ecx, [esp + 0x34]
xor ebp, ebp
mov edi, 1
mov dword [esp + 0x40], edx
push 4
push ecx
mov dword [esp + 0x88], ebp
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x4c], edx
call ebx
mov edx, dword [0x659a18]
push edx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x14
mov ecx, esi
push eax
call fcn.0043b300
mov eax, dword [0x659a18]
lea ecx, [esp + 0x28]
push eax
push edi
push 4
push ecx
call ebx
mov edx, dword [0x659a18]
lea eax, [esp + 0x4c]
push edx
push edi
push 4
push eax
call ebx
mov eax, dword [0x659958]
add esp, 0x20
cmp eax, 0x1c
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
jl 0x455185
mov edx, dword [0x659a18]
xor ecx, ecx
mov dword [esp + 0x18], ecx
push edx
mov dword [esp + 0x20], ecx
push edi
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], ecx
push 0x14
push eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x34], ecx
call ebx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x34]
add esp, 0x10
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], edx
mov dword [esi + 0x214], 6
xor edi, edi
lea ebx, [esi + 0x218]
cmp dword [esp + edi*4 + 0x58], ebp
je 0x45520c
cmp dword [esp + edi*4 + 0x28], ebp
jle 0x45520c
mov eax, dword [esp + edi*4 + 0x40]
dec eax
je 0x4551eb
dec eax
je 0x4551cc
dec eax
jne 0x45520c
push 0x1c
call fcn.00470250
add esp, 4
cmp eax, ebp
je 0x455208
mov ecx, dword [esp + edi*4 + 0x28]
push ecx
mov ecx, eax
call fcn.004ba9e0
jmp 0x45520a
push 0x298
call fcn.00470250
add esp, 4
cmp eax, ebp
je 0x455208
mov edx, dword [esp + edi*4 + 0x28]
mov ecx, eax
push edx
call fcn.004baf10
jmp 0x45520a
push 0x24
call fcn.00470250
add esp, 4
cmp eax, ebp
je 0x455208
mov ecx, dword [esp + edi*4 + 0x28]
push ebp
push ecx
mov ecx, eax
call fcn.004bac90
jmp 0x45520a
xor eax, eax
mov dword [ebx], eax
mov eax, dword [esi + 0x214]
inc edi
add ebx, 4
cmp edi, eax
jl 0x455197
call fcn.00438df0
mov edx, dword [eax]
mov ecx, dword [esp + 0x70]
mov dword [esi + 0x254], edx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret 4
Function at 0x455ff0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x530ab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov eax, dword [esp + 0x7c]
push ebx
push esi
push edi
mov ebx, ecx
push eax
mov dword [esp + 0x10], ebx
call fcn.00453f30
mov eax, dword [ebx + 0xc4]
mov dword [ebx], 0x53734c
lea edi, [esp + 0x44]
mov dword [esp + 0x80], 0
mov esi, dword [eax + 0x20]
and esi, 0xfffffffe
mov dword [eax + 0x20], esi
mov ecx, dword [ebx + 0x1e4]
mov eax, dword [ebx + 0x210]
mov edx, dword [ebx + 0x208]
and ecx, 8
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], ecx
mov ecx, 6
xor eax, eax
mov dword [esp + 0x40], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x659a18]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
mov esi, 1
mov dword [esp + 0x60], edx
push ecx
push esi
lea edx, [esp + 0x48]
push 4
push edx
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
call edi
mov eax, dword [0x659a18]
lea ecx, [esp + 0x60]
push eax
push 3
push 4
push ecx
call edi
mov edx, dword [0x659a18]
lea eax, [esp + 0x6c]
push edx
push esi
push 4
push eax
call edi
mov ecx, dword [0x659a18]
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x34
mov ecx, ebx
push eax
call fcn.0043b300
mov eax, dword [0x659958]
mov dword [esp + 0x24], esi
cmp eax, 0x1c
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
jl 0x456158
mov eax, dword [0x659a18]
xor edx, edx
mov dword [esp + 0x14], edx
push eax
mov dword [esp + 0x1c], edx
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
push 0x14
push ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], edx
call edi
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov dword [ebx + 0x214], 7
xor esi, esi
lea edi, [ebx + 0x218]
mov eax, dword [esp + esi*4 + 0x5c]
test eax, eax
je 0x4561e4
mov eax, dword [esp + esi*4 + 0x40]
test eax, eax
jle 0x4561e4
mov eax, dword [esp + esi*4 + 0x24]
dec eax
je 0x4561c2
dec eax
je 0x4561a3
dec eax
jne 0x4561e4
push 0x1c
call fcn.00470250
add esp, 4
test eax, eax
je 0x4561e0
mov ecx, dword [esp + esi*4 + 0x40]
push ecx
mov ecx, eax
call fcn.004ba9e0
jmp 0x4561e2
push 0x298
call fcn.00470250
add esp, 4
test eax, eax
je 0x4561e0
mov edx, dword [esp + esi*4 + 0x40]
mov ecx, eax
push edx
call fcn.004baf10
jmp 0x4561e2
push 0x24
call fcn.00470250
add esp, 4
test eax, eax
je 0x4561e0
mov ecx, dword [esp + esi*4 + 0x40]
push 0
push ecx
mov ecx, eax
call fcn.004bac90
jmp 0x4561e2
xor eax, eax
mov dword [edi], eax
mov eax, dword [ebx + 0x214]
inc esi
add edi, 4
cmp esi, eax
jl 0x45616a
mov ecx, dword [esp + 0x78]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret 4
Function at 0x4568d0
Capabilities:
Get number of processors
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x530af8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov eax, dword [esp + 0x74]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], esi
call fcn.00453f30
mov eax, dword [esi + 0xc4]
mov dword [esi], 0x537450
xor ebp, ebp
lea edi, [esp + 0x58]
mov ebx, dword [eax + 0x20]
mov dword [esp + 0x7c], ebp
and ebx, 0xfffffffe
mov dword [esp + 0x50], ebp
mov dword [eax + 0x20], ebx
mov ecx, dword [esi + 0x1e4]
mov eax, dword [esi + 0x210]
mov edx, dword [esi + 0x208]
and ecx, 8
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], ecx
mov ecx, 7
xor eax, eax
mov dword [esp + 0x54], ebp
rep stosd dword es:[edi], eax
mov ecx, dword [0x659a18]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
mov ebx, 1
mov dword [esp + 0x38], edx
push ecx
push ebx
lea edx, [esp + 0x5c]
push 0x20
push edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call edi
mov eax, dword [0x659a18]
push eax
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x14
mov ecx, esi
push eax
call fcn.0043b300
mov ecx, dword [0x659a18]
lea edx, [esp + 0x14]
push ecx
push ebx
push 0x20
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebp
call edi
add esp, 0x10
mov dword [esi + 0x214], 8
xor edi, edi
lea ebx, [esi + 0x218]
cmp dword [esp + edi*4 + 0x34], ebp
je 0x456a4b
cmp dword [esp + edi*4 + 0x54], ebp
jle 0x456a4b
mov eax, dword [esp + edi*4 + 0x14]
dec eax
je 0x456a2a
dec eax
je 0x456a0b
dec eax
jne 0x456a4b
push 0x1c
call fcn.00470250
add esp, 4
cmp eax, ebp
je 0x456a47
mov ecx, dword [esp + edi*4 + 0x54]
push ecx
mov ecx, eax
call fcn.004ba9e0
jmp 0x456a49
push 0x298
call fcn.00470250
add esp, 4
cmp eax, ebp
je 0x456a47
mov edx, dword [esp + edi*4 + 0x54]
mov ecx, eax
push edx
call fcn.004baf10
jmp 0x456a49
push 0x24
call fcn.00470250
add esp, 4
cmp eax, ebp
je 0x456a47
mov ecx, dword [esp + edi*4 + 0x54]
push ebp
push ecx
mov ecx, eax
call fcn.004bac90
jmp 0x456a49
xor eax, eax
mov dword [ebx], eax
mov eax, dword [esi + 0x214]
inc edi
add ebx, 4
cmp edi, eax
jl 0x4569d6
mov ecx, dword [esp + 0x74]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret 4
Function at 0x458c90
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x530bdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x24]
push esi
push edi
mov edi, ecx
mov ecx, dword [0x659a18]
push 0
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 edi
call esi
mov eax, dword [0x659a18]
lea ecx, [edi + 4]
push eax
push 1
push 0x40
push ecx
call esi
mov edx, dword [0x659a18]
lea eax, [esp + 0x38]
push edx
push 1
push 0x10
push eax
call esi
mov ecx, dword [0x659a18]
lea edx, [esp + 0x68]
push ecx
push 1
push 4
push edx
mov dword [esp + 0x78], 0
call esi
mov eax, dword [esp + 0x78]
add esp, 0x4c
test eax, eax
je 0x458d57
push 0x1c
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x24], 0
je 0x458d3e
mov ecx, eax
call fcn.004399d0
jmp 0x458d40
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
push ecx
mov ecx, eax
mov dword [edi + 0x44], eax
call fcn.00439a00
mov edx, dword [0x659a40]
mov eax, dword [edi]
test edx, eax
je 0x458d86
push 0x24
call fcn.00470250
add esp, 4
test eax, eax
je 0x458d81
lea ecx, [esp + 0xc]
push 1
push ecx
mov ecx, eax
call fcn.00489020
jmp 0x458d83
xor eax, eax
mov dword [edi + 0x48], eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x458f10
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x530bfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x24]
push esi
push edi
mov edi, ecx
mov ecx, dword [0x659a18]
push 0
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 edi
call esi
mov eax, dword [0x659a18]
lea ecx, [edi + 4]
push eax
push 1
push 0x20
push ecx
call esi
mov edx, dword [0x659a18]
lea eax, [esp + 0x38]
push edx
push 1
push 0x10
push eax
call esi
mov ecx, dword [0x659a18]
lea edx, [edi + 0x24]
push ecx
push 1
push 0x10
push edx
call esi
mov eax, dword [0x659a18]
add esp, 0x4c
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0
push eax
push 1
push 4
push ecx
call esi
mov eax, dword [esp + 0x3c]
add esp, 0x10
test eax, eax
je 0x458fea
push 0x1c
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x24], 0
je 0x458fd1
mov ecx, eax
call fcn.004399d0
jmp 0x458fd3
xor eax, eax
mov edx, dword [esp + 0x2c]
mov ecx, eax
push edx
mov dword [esp + 0x28], 0xffffffff
mov dword [edi + 0x34], eax
call fcn.00439a00
mov eax, dword [0x659a40]
mov ecx, dword [edi]
test eax, ecx
je 0x459018
push 0x24
call fcn.00470250
add esp, 4
test eax, eax
je 0x459013
lea ecx, [esp + 0xc]
push 1
push ecx
mov ecx, eax
call fcn.00489020
jmp 0x459015
xor eax, eax
mov dword [edi + 0x38], eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x45a190
Capabilities:
Get number of processors
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x530c26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov eax, dword [esp + 0x74]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], esi
call fcn.00453f30
mov ebp, dword [sym.imp.MSVCRT.dll_ftell]
mov ecx, 0x4502
xor eax, eax
lea edi, [esi + 0x430]
rep stosd dword es:[edi], eax
mov dword [esi], 0x53775c
mov ecx, dword [0x659a18]
lea eax, [esi + 0x268]
push 0x1c8
mov ebx, 1
push eax
push ecx
mov dword [esp + 0x88], ebx
call ebp
add esp, 4
push eax
call fcn.00472400
mov edx, dword [esi + 0x1e4]
mov eax, dword [esi + 0x208]
mov ecx, dword [esi + 0x210]
and edx, 8
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], edx
mov edx, dword [0x659a18]
mov dword [esp + 0x48], ecx
xor eax, eax
mov ecx, 7
lea edi, [esp + 0x64]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], eax
push edx
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
lea eax, [esp + 0x68]
push 0x20
push eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call edi
mov ecx, dword [0x659a18]
push ecx
call ebp
add esp, 0x20
mov ecx, esi
push eax
call fcn.0043b340
mov edx, dword [0x659a18]
lea eax, [esp + 0x14]
push edx
push ebx
push 0x20
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 0
call edi
add esp, 0x10
mov dword [esi + 0x214], 8
xor edi, edi
lea ebx, [esi + 0x218]
mov eax, dword [esp + edi*4 + 0x34]
test eax, eax
je 0x45a336
mov eax, dword [esp + edi*4 + 0x54]
test eax, eax
jle 0x45a336
mov eax, dword [esp + edi*4 + 0x14]
dec eax
je 0x45a314
dec eax
je 0x45a2f5
dec eax
jne 0x45a336
push 0x1c
call fcn.00470250
add esp, 4
test eax, eax
je 0x45a332
mov ecx, dword [esp + edi*4 + 0x54]
push ecx
mov ecx, eax
call fcn.004ba9e0
jmp 0x45a334
push 0x298
call fcn.00470250
add esp, 4
test eax, eax
je 0x45a332
mov edx, dword [esp + edi*4 + 0x54]
mov ecx, eax
push edx
call fcn.004baf10
jmp 0x45a334
push 0x24
call fcn.00470250
add esp, 4
test eax, eax
je 0x45a332
mov ecx, dword [esp + edi*4 + 0x54]
push 0
push ecx
mov ecx, eax
call fcn.004bac90
jmp 0x45a334
xor eax, eax
mov dword [ebx], eax
mov eax, dword [esi + 0x214]
inc edi
add ebx, 4
cmp edi, eax
jl 0x45a2bc
lea ecx, [esi + 0x268]
call fcn.00459310
mov ecx, 0x40
xor eax, eax
lea edi, [esi + 0x11838]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x74]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret 4
Function at 0x45b7e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xa0
mov eax, dword [esp + 0xa4]
push ebx
push esi
mov esi, ecx
push edi
push 0
push eax
mov dword [esi + 0x108], 0
mov ecx, dword [0x659a18]
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 esi
call ebx
mov eax, dword [0x659a18]
lea ecx, [esi + 4]
push eax
push 1
push pe_nt_image_headers32
push ecx
call ebx
mov edx, dword [0x659a18]
lea edi, [esi + 0x104]
push edx
push 1
push 4
push edi
call ebx
mov eax, dword [edi]
add esp, 0x3c
test eax, eax
jle 0x45b8c1
mov ecx, dword [0x659a18]
lea edx, [esp + 0xc]
push ecx
push eax
push 0x10
push edx
call ebx
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00470b90
mov dword [esi + 0x108], eax
mov eax, dword [edi]
add esp, 0x14
xor ebx, ebx
test eax, eax
jle 0x45b8c1
push ebp
lea ebp, [esp + 0x10]
push 0x24
call fcn.00470250
add esp, 4
test eax, eax
je 0x45b89c
push 1
push ebp
mov ecx, eax
call fcn.00489020
jmp 0x45b89e
xor eax, eax
mov ecx, dword [esi + 0x108]
inc ebx
add ebp, 0x10
mov dword [ecx + ebx*4 - 4], eax
mov eax, dword [edi]
cmp ebx, eax
jl 0x45b882
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0xa0
ret 4
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0xa0
ret 4