joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4582a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b7b40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00455de0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x4582f9
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.00453190
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.00453180
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.00457950
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [0x4ba624]
push 0
lea ecx, [esp + 0x4c]
call fcn.004b12ca
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.0046e720
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.00455800
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [0x4ba120]
mov ecx, ebx
call fcn.00453100
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x4583c4
push edi
mov ecx, esi
call fcn.00455910
push eax
push ebp
mov ecx, esi
call fcn.00455ad0
cmp eax, dword [esp + 0x40]
jg 0x4583c0
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x45839e
mov eax, ebx
jmp 0x4583ca
cmp edi, ebx
jl 0x4583c8
mov eax, ebx
jmp 0x4583ca
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x4583db
mov dword [esp + 0x30], eax
jmp 0x4583e6
cmp edi, ebx
jl 0x4583e1
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.004530c0
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x45842d
push edi
mov ecx, esi
call fcn.00455830
push eax
push ebx
mov ecx, esi
call fcn.00455c00
cmp eax, dword [esp + 0x44]
jg 0x458425
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x4583ff
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x458437
cmp edi, ebp
jl 0x458431
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x458437
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x458440
mov ecx, eax
jmp 0x458449
cmp edi, ebp
jl 0x458446
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.00455820
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.004b133c
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
Function at 0x45e4e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b7ff8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x45e519
inc eax
mov dword [esi + 0x10], eax
jmp 0x45e62c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x45e52d
mov eax, 0xffffffc7
jmp 0x45e62e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x45e53e
cmp dword [esi + 8], eax
jne 0x45e52d
cmp dword [esi + 8], eax
jne 0x45e557
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x45e557
mov eax, 0xffffffc7
jmp 0x45e62e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x45e56b
push eax
mov ecx, ebx
call fcn.0045dd10
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00433870
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x45e59c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00433890
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0045d480
test eax, eax
mov dword [esp + 0x38], eax
je 0x45e5cf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xa3fb10
call fcn.00433a70
mov eax, dword [esp + 0x38]
jmp 0x45e62e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0045e340
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x45e613
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0045e360
mov esi, eax
test esi, esi
jne 0x45e643
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0045e340
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x45e5e5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xa3fb10
call fcn.00433a70
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xa3fb10
call fcn.00433a70
mov eax, esi
jmp 0x45e62e
Function at 0x46edc0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b88e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x4ba624]
push 0
lea ecx, [esp + 0x20]
call fcn.004b12ca
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0046e720
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004b11f8
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004adae7
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004adae7
push 1
push 0
push 0
mov ecx, esi
call fcn.004ada8f
push 1
push 0
push 1
mov ecx, esi
call fcn.004ada8f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004b133c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x46ef40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b8908
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004b12ca
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0046e720
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004b11f8
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x4ba624]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x46f004
cmp dword [esp + 0x40], 1
jne 0x46f002
cmp ecx, eax
jge 0x46f004
mov eax, ecx
cmp eax, 0xc8
jge 0x46f010
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0046edc0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x4ba620]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004b133c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x46f800
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b89b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004abf21
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0xa415a0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0xa414e8
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4ba0e8]
push eax
mov ecx, edi
call fcn.004b1572
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004b2a8e
test eax, eax
je 0x46f91c
mov ecx, dword [esp + 0x3c]
call fcn.004b159f
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4ba644]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x46f8e0
push edi
mov ecx, esi
call fcn.004aec01
mov ecx, esi
call fcn.0046fac0
cmp dword [esp + 0x38], 1
jne 0x46f915
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004aed3c
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x471b30
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x471b63
push esi
call fcn.0047fef0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x471b5c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x471be9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x471bd2
mov eax, dword [esi + 8]
test eax, eax
je 0x471b87
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x471bce
cmp eax, 2
je 0x471bd2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x471b7a
cmp eax, 3
je 0x471bad
cmp eax, 1
jne 0x471b7a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x471b7a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x471b7a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00471c10
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x471bf8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00471c10
add esp, 4
pop esi
ret
Function at 0x48dff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b8f00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0048dba0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0048dc20
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0048dc20
lea ecx, [esi + 0xc]
call fcn.004aa8d1
lea ecx, [esi + 0x10]
call fcn.004aa8d1
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0048f1b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0048f1b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0048f1b0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004aa946
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004aa946
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x401830
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x40184f
mov dword [ebp - 4], 1
jmp 0x401856
mov dword [ebp - 4], 0
movzx eax, byte [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4018a0
Capabilities:
Create process on windows
Get common file path
Move file
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42beaf
mov eax, dword fs:[0]
push eax
sub esp, 0x368
mov eax, dword [0x439080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x31c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x114]
push edx
push 0
push 0x42d3cc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
nop
push 1
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x31c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x4019e4
push 0x42d3d0
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x364]
call fcn.00405c70
mov dword [ebp - 0x368], eax
mov ecx, dword [ebp - 0x368]
mov dword [ebp - 0x36c], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x36c]
push edx
push str.cmd.exe__c_ping_127.0.0.1__n_2___nul__del__
lea eax, [ebp - 0x34c]
push eax
call fcn.00403470
add esp, 0xc
mov dword [ebp - 0x370], eax
mov ecx, dword [ebp - 0x370]
mov dword [ebp - 0x374], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x374]
push edx
lea eax, [ebp - 0x334]
push eax
call fcn.00403430
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34c]
call fcn.00406b50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x364]
call fcn.00406b50
nop
push 0
lea ecx, [ebp - 0x334]
call fcn.00409c70
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
lea ecx, [ebp - 0x334]
call fcn.00406b50
nop
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4026f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bf88
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x439080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x160], 0
push 0x104
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x402804
push str.notepad.exe
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
nop
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x15c]
call fcn.00405c70
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x168], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x168]
push ecx
push str.Found_Notepad_path:
lea edx, [ebp - 0x144]
push edx
call fcn.00403470
add esp, 0xc
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x170], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x170]
push ecx
call fcn.00402580
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.00406b50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call fcn.00406b50
nop
lea edx, [ebp - 0x114]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405c70
mov eax, dword [ebp - 0x160]
or eax, 1
mov dword [ebp - 0x160], eax
mov eax, dword [ebp + 8]
jmp 0x40285c
push str.Failed_to_find_System_directory.
lea ecx, [ebp - 0x12c]
call fcn.00405c70
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00402580
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.00406b50
nop
push 0x42d261
mov ecx, dword [ebp + 8]
call fcn.00405c70
mov edx, dword [ebp - 0x160]
or edx, 1
mov dword [ebp - 0x160], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040dcb5
mov esp, ebp
pop ebp
ret
Function at 0x40c770
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x40c790
jl 0x40c787
cmp dword [ebp + 0xc], 0
ja 0x40c790
xor eax, eax
xor edx, edx
jmp 0x40c8c8
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x40c7b2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.0040c8d0
jmp 0x40c8c8
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.00408680
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x40c822
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00405280
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0040b010
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00409e40
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.0040af60
nop
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x40c8b9
mov ecx, dword [ebp - 8]
call fcn.00409460
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x40c892
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00413604
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x40c890
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x40c8c8
jmp 0x40c83e
cmp dword [ebp - 4], 0
jbe 0x40c8b9
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00413604
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40eae1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40eb20
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40eb20
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40eb20
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40eb20
cmp dword [ecx + 0x74], 0xe
jbe 0x40eb20
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41d64d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0040dcd0
mov eax, dword [0x439080]
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.0041c0fe
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41d68f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41d806
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042b780
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x43aa18]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041e693
mov ecx, dword [esi*4 + 0x43aa18]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41d7ff
cmp eax, dword [edi + ecx + 0x24]
jne 0x41d7ff
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
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 0x41d7ff
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041e693
add esp, 0x14
cmp edx, esi
jl 0x41d7ff
jg 0x41d75a
cmp eax, esi
jb 0x41d7ff
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x41d7ff
jl 0x41d77c
cmp dword [ebp - 0x1008], eax
ja 0x41d7ff
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x41d7a1
cmp ebx, esi
je 0x41d7e6
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x41d7e6
mov al, byte [ecx]
cmp al, 0xd
jne 0x41d7c7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41d7d3
cmp byte [ecx + 1], 0xa
jne 0x41d7d3
inc ecx
jmp 0x41d7d3
movzx eax, al
movsx eax, byte [eax + 0x439338]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41d7ad
cmp edx, ebx
jne 0x41d7ad
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x41d804
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040dcb5
leave
ret
Function at 0x41da85
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x41da9f
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x41dab6
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x41db0e
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0042385a
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x41db0e
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x41db0e
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41db0e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x41db08
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x41db0a
xor bl, bl
mov al, bl
jmp 0x41db10
xor al, al
pop esi
pop ebx
leave
ret