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

Disassembly:
push 0x8c
mov eax, 0x4aacf3
call fcn.00454652
mov esi, ecx
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x98], 0
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 8]
xor ebx, ebx
inc ebx
cmp eax, 0xffffffff
cmove eax, ebx
test ecx, ecx
je 0x441f3f
lea edi, [ebp - 0x98]
push edi
push eax
push edx
call fcn.00493ca1
test al, al
jne 0x441f88
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
call fcn.0044281e
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x94]
call fcn.0044276c
push 0x4e1e24
lea eax, [ebp - 0x94]
push eax
call fcn.00454592
push 0
lea ecx, [ebp - 0x98]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x441f88
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
call fcn.0044281e
mov dword [ebp - 4], 2
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00442572
push 0x4e1db0
lea eax, [ebp - 0x90]
jmp 0x441f39
mov eax, dword [ebp - 0x98]
call fcn.00454601
ret 8

Function at 0x441f96
Capabilities:
Read file on windows

Disassembly:
push 0x8c
mov eax, 0x4aad2b
call fcn.00454652
mov esi, ecx
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x98], 0
mov edx, dword [ebp + 8]
push 8
pop ecx
cmp eax, 0xffffffff
cmove eax, ecx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44200a
lea edi, [ebp - 0x98]
push edi
push eax
push edx
call fcn.00493ca1
test al, al
jne 0x442055
push 1
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
call fcn.0044281e
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x94]
call fcn.0044276c
push 0x4e1e24
lea eax, [ebp - 0x94]
push eax
call fcn.00454592
push 0
lea ecx, [ebp - 0x98]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x442055
push 1
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
call fcn.0044281e
mov dword [ebp - 4], 2
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00442572
push 0x4e1db0
lea eax, [ebp - 0x90]
jmp 0x442004
mov eax, dword [ebp - 0x98]
call fcn.00454601
ret 8
Function at 0x4468ba
Capabilities:
Create process on windows

Disassembly:
push 0x8cc
mov eax, 0x4aca38
call fcn.00454652
mov esi, ecx
xor eax, eax
push 0x7fe
mov word [ebp - 0x810], ax
xor edi, edi
lea eax, [ebp - 0x80e]
push edi
push eax
call fcn.004535d0
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x4cbeac
push str.ClickOncePackage
push str.Startup
lea ecx, [esi + 0x10]
call fcn.0041292e
cmp word [ebp - 0x810], di
jne 0x44691e
xor eax, eax
jmp 0x446a7b
lea eax, [ebp - 0x870]
push eax
mov ecx, esi
call fcn.00444a23
mov dword [ebp - 4], edi
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x44693a
mov eax, dword [eax]
xor esi, esi
inc esi
push esi
lea ecx, [ebp - 0x8d1]
push ecx
push eax
lea ecx, [ebp - 0x840]
call fcn.00402ca0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x870]
call fcn.00401b80
push esi
lea eax, [ebp - 0x8d1]
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x870]
call fcn.00402ca0
mov byte [ebp - 4], 4
push edi
push edi
lea eax, [ebp - 0x8d0]
push eax
lea ecx, [ebp - 0x840]
call fcn.00403330
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x870]
push ecx
lea ecx, [ebp - 0x8a0]
push ecx
mov ecx, eax
call fcn.00402da0
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x840]
call fcn.00402b50
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8a0]
call fcn.00401ac0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8d0]
call fcn.00401ac0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x870]
call fcn.00401ac0
cmp dword [ebp - 0x828], 8
push 4
lea eax, [ebp - 0x83c]
cmovae eax, dword [ebp - 0x83c]
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x8d8], esp
push esi
lea edx, [ebp - 0x8d1]
push edx
push eax
call fcn.004115ed
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 2
call fcn.00483726
add esp, 0x34
test al, al
jne 0x446a3d
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x83c]
call fcn.004060d0
cmp dword [ebp - 0x828], 8
push esi
push edi
push edi
lea eax, [ebp - 0x83c]
cmovae eax, dword [ebp - 0x83c]
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb esi, esi
neg esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.00401ac0
mov eax, esi
call fcn.00454601
ret
Function at 0x4487e6
Capabilities:
Get file size

Disassembly:
push 0x88
mov eax, 0x4ad042
call fcn.00454652
mov edi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 4], ebx
je 0x44884d
test eax, eax
je 0x448807
mov dword [eax], ebx
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44889e
push 1
lea eax, [edi + 0xc]
push eax
lea ecx, [ebp - 0x40]
call fcn.0044281e
mov dword [ebp - 4], ebx
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x94]
call fcn.0044276c
push 0x4e1e24
lea eax, [ebp - 0x94]
push eax
call fcn.00454592
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44889e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x44889e
push 1
lea ecx, [edi + 0xc]
push ecx
lea ecx, [ebp - 0x40]
call fcn.0044281e
mov dword [ebp - 4], 2
push 1
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.004425cd
push 0x4e1db0
lea eax, [ebp - 0x90]
jmp 0x448847
mov eax, esi
call fcn.00454601
ret 4
Function at 0x448e2d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 8
mov eax, 0x4ad545
call fcn.0045461f
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0x14
xor ebx, ebx
cmp dword [esi + 0x6c], ebx
je 0x448e58
push dword [esi + 0x6c]
call fcn.0049b980
pop ecx
mov dword [esi + 0x6c], ebx
push dword [esi + 0x68]
call fcn.00453342
pop ecx
mov dword [esi + 0x68], ebx
mov byte [ebp - 4], 0x13
lea ecx, [esi + 0x378]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0x13
call fcn.00401b80
mov byte [ebp - 4], 0x12
lea ecx, [esi + 0x348]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0x12
call fcn.00401b80
mov byte [ebp - 4], 0x11
lea ecx, [esi + 0x318]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0x11
call fcn.00401b80
mov byte [ebp - 4], 0x10
lea ecx, [esi + 0x2e8]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0x10
call fcn.00401b80
mov byte [ebp - 4], 0xf
lea ecx, [esi + 0x2b8]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xf
call fcn.00401b80
mov byte [ebp - 4], 0xe
lea ecx, [esi + 0x288]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xe
call fcn.00401b80
mov byte [ebp - 4], 0xd
lea ecx, [esi + 0x258]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xd
call fcn.00401b80
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x228]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xc
call fcn.00401b80
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x1f8]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xb
call fcn.00401b80
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x1c8]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xa
call fcn.00401b80
mov byte [ebp - 4], 9
lea ecx, [esi + 0x198]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 9
call fcn.00401b80
mov byte [ebp - 4], 8
lea ecx, [esi + 0x168]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 8
call fcn.00401b80
mov byte [ebp - 4], 7
lea ecx, [esi + 0x138]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 7
call fcn.00401b80
mov byte [ebp - 4], 6
lea ecx, [esi + 0x108]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 6
call fcn.00401b80
mov byte [ebp - 4], 5
lea ecx, [esi + 0xd8]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 5
call fcn.00401b80
mov byte [ebp - 4], 4
lea ecx, [esi + 0xa8]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 4
call fcn.00401b80
mov byte [ebp - 4], 3
lea ecx, [esi + 0x78]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 3
call fcn.00401b80
mov byte [ebp - 4], 2
lea ecx, [esi + 0x5c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 2
call fcn.00448d8a
mov byte [ebp - 4], 1
lea ecx, [esi + 0x54]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
call fcn.00448d8a
mov byte [ebp - 4], bl
lea ecx, [esi + 0x4c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], bl
call fcn.00448d8a
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x30]
call fcn.00417e37
call fcn.004545ed
ret
Function at 0x44c7b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [ebp + 8], 0
je 0x44c7ce
mov ecx, esi
call fcn.0044c5f1
pop esi
pop ebp
ret 4
Function at 0x44d11b
Capabilities:
Read file on windows

Disassembly:
push 0x44
mov eax, 0x4ae7b7
call fcn.00454652
mov ebx, ecx
mov edi, dword [ebp + 8]
push 1
lea eax, [ebp - 0x41]
push eax
lea ecx, [ebx + 4]
mov dword [ebp - 0x50], ebx
mov dword [ebx], vtable.STREAM.0
call fcn.00403870
xor eax, eax
mov dword [ebp - 4], eax
or dword [ebx + 0x48], 0xffffffff
lea ecx, [ebx + 0x54]
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
mov word [ebx + 0x3c], 0x101
mov byte [ebx + 0x3e], 1
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x4c], 0x2e
mov dword [ebx + 0x50], 0x138
call fcn.0044d08a
mov byte [ebp - 4], 1
and dword [ebx + 0x5c], 0
mov eax, 0x4cbeac
test edi, edi
cmovne eax, edi
push eax
lea ecx, [ebx + 4]
mov byte [ebx + 0x60], 0
call fcn.00403e90
lea esi, [ebx + 8]
cmp dword [esi + 0x14], 8
jb 0x44d1a1
mov eax, dword [esi]
jmp 0x44d1a3
mov eax, esi
push 1
push eax
call fcn.0044e209
pop ecx
mov dword [ebx + 0x40], eax
cmp dword [esi + 0x14], 8
pop ecx
jb 0x44d1ba
mov eax, dword [esi]
jmp 0x44d1bc
mov eax, esi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x34], eax
cmp eax, 0xffffffff
jne 0x44d1eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x44], eax
jmp 0x44d325
push 0x2e
lea eax, [ebp - 0x40]
push edi
push eax
mov dword [ebx + 0x38], 1
call fcn.004535d0
add esp, 0xc
mov ecx, ebx
push 0
push 0
push dword [ebx + 0x40]
push dword [ebx + 0x34]
call fcn.0044edc9
test eax, eax
je 0x44d325
push 0
lea eax, [ebp - 0x48]
push eax
push 0x2e
pop edi
push edi
lea eax, [ebp - 0x40]
push eax
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x44d314
cmp dword [ebp - 0x48], 0
je 0x44d314
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.0044db34
test eax, eax
je 0x44d25e
mov di, word [ebp - 0x32]
test di, di
jne 0x44d2d6
cmp dword [esi + 0x14], 8
jb 0x44d266
mov esi, dword [esi]
push 0
push esi
call fcn.0044e209
pop ecx
pop ecx
cmp eax, dword [ebx + 0x40]
jbe 0x44d278
mov dword [ebx + 0x40], eax
push 0
push 0
push dword [ebx + 0x40]
mov ecx, ebx
push dword [ebx + 0x34]
call fcn.0044edc9
test eax, eax
je 0x44d325
push 0
lea eax, [ebp - 0x4c]
push eax
push 0x2e
pop esi
push esi
lea eax, [ebp - 0x40]
push eax
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x44d325
cmp dword [ebp - 0x48], 0
je 0x44d325
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.0044db34
mov di, word [ebp - 0x32]
test eax, eax
je 0x44d2cd
test di, di
jne 0x44d2d9
mov dword [ebx + 0x5c], 3
jmp 0x44d2d9
push 0x2e
pop esi
mov eax, dword [ebx + 0x5c]
cmp eax, 1
je 0x44d2f2
add eax, 0xfffffffe
cmp eax, 1
ja 0x44d2fc
mov dword [ebx + 0x50], 0x18
jmp 0x44d2f9
mov dword [ebx + 0x50], 0x138
mov dword [ebx + 0x4c], esi
mov ecx, ebx
call fcn.0044e5e7
test al, al
je 0x44d325
movzx eax, di
push eax
mov ecx, ebx
call fcn.0044e30a
jmp 0x44d325
mov dword [ebx + 0x5c], 3
mov dword [ebx + 0x4c], edi
mov dword [ebx + 0x50], 0x18
or dword [ebp - 4], 0xffffffff
mov eax, ebx
call fcn.00454601
ret 4
Function at 0x44d731
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0x48
mov eax, 0x4aea83
call fcn.00454652
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp + 0x10]
add eax, 4
mov dword [ebp - 0x54], ecx
cmp dword [eax + 0x14], 8
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x50], ecx
jb 0x44d75f
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44d78d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x44], eax
jmp 0x44d84d
push 0x400
call fcn.00452d2b
mov edi, eax
xor eax, eax
pop ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], eax
push eax
jmp 0x44d824
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x44d83d
cmp byte [ebx + 0x3d], 0
je 0x44d7ef
cmp byte [ebx + 0x3c], 0
je 0x44d7ef
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x40]
push eax
call fcn.00432679
and dword [ebp - 4], 0
mov ecx, eax
call fcn.0044a120
push eax
push dword [ebp - 0x44]
push edi
call fcn.0040fb6a
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401b80
mov eax, dword [ebp - 0x44]
push 0
lea ecx, [ebp - 0x44]
push ecx
push eax
push edi
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x50]
add dword [ebp - 0x48], eax
test ecx, ecx
je 0x44d81e
mov edx, dword [ebp - 0x4c]
mov eax, dword [ecx]
push dword [edx + 0x38]
mov edx, dword [ebp - 0x48]
push edx
call dword [eax]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x44d83d
push 0
lea eax, [ebp - 0x44]
push eax
push 0x400
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44d7a5
push edi
call fcn.00453342
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
call fcn.00454601
ret 0x10
Function at 0x44dcda
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0x58
mov eax, 0x4aeb7c
call fcn.00454652
mov edi, ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
and dword [ebp - 0x54], 0
mov ebx, dword [edx + 0x38]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x58], eax
mov eax, dword [edx + 0x30]
shr eax, 2
and eax, 0xffffff01
test byte [edx + 0x30], 6
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x41], 0
je 0x44dd23
mov byte [ebp - 0x41], 1
lea eax, [ecx + 4]
cmp dword [eax + 0x14], 8
jb 0x44dd2e
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44dd5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x44], eax
xor eax, eax
jmp 0x44de34
mov eax, 0x400
mov edi, eax
cmp ebx, eax
cmovb edi, ebx
push edi
call fcn.00452d2b
pop ecx
push 0
lea ecx, [ebp - 0x48]
push ecx
push edi
mov dword [ebp - 0x4c], eax
push eax
jmp 0x44de10
cmp byte [ebp - 0x60], 0
je 0x44ddbf
cmp byte [ebp - 0x41], 0
je 0x44ddbf
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x40]
push eax
call fcn.00432679
and dword [ebp - 4], 0
mov ecx, eax
call fcn.0044a120
push eax
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call fcn.0040f9bb
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401b80
push 0
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x58]
add ecx, eax
mov dword [ebp - 0x54], ecx
test edx, edx
je 0x44ddf5
push dword [ebp - 0x5c]
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax]
test al, al
jne 0x44de3c
mov eax, dword [ebp - 0x48]
sub ebx, eax
je 0x44de21
test eax, eax
je 0x44de21
push 0
cmp ebx, 0x400
lea eax, [ebp - 0x48]
push eax
cmovb edi, ebx
push edi
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44dd81
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.00454601
ret 0x10
xor edi, edi
jmp 0x44de24
Function at 0x44dfe3
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push 0x4c
mov eax, 0x4aebde
call fcn.0045461f
xor esi, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebx + 0xa8]
mov dword [ebp + 0x10], edi
test edi, edi
je 0x44e125
push 0x1c
pop eax
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
mov ecx, esi
cmovne ecx, dword [ebp - 0x28]
push ebx
push str..debug
mov dword [ebp - 0x18], ecx
call fcn.0044e28f
pop ecx
pop ecx
test eax, eax
je 0x44e056
cmp dword [eax + 0xc], edi
jne 0x44e056
mov ecx, dword [eax + 0x14]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebx + 0xac]
mov dword [ebp + 0x10], ecx
add edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
jmp 0x44e0b8
push ebx
push str..rdata
call fcn.0044e28f
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x44e080
push ebx
push str..text
call fcn.0044e28f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x44e125
mov eax, dword [ebx + 0xac]
push 0x1c
xor edx, edx
pop ecx
mov dword [ebp - 0x14], eax
div ecx
mov ebx, eax
test ebx, ebx
je 0x44e125
mov ecx, dword [edi + 0x10]
add ecx, dword [edi + 0xc]
mov edx, dword [ebp + 0x10]
cmp edx, ecx
ja 0x44e125
sub edx, dword [edi + 0xc]
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp + 0xc]
add eax, edx
mov dword [ebp + 0x10], eax
lea edi, [eax + ecx]
mov eax, edi
sub eax, ecx
cmp eax, dword [ebp - 0x18]
jbe 0x44e10a
cmp dword [ebp + 8], 0
je 0x44e10a
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp + 0x10]
xor edx, edx
div dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
imul eax, dword [ebp - 0x3c]
add ecx, edx
push ecx
push eax
push esi
push 4
push dword [ebp + 8]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x44e125
lea ecx, [ebp - 0x10]
call fcn.0044f27d
mov dword [ebp - 0x10], edi
sub edi, dword [ebp - 0x18]
add edi, dword [ebp + 0x10]
test ebx, ebx
je 0x44e125
add edi, 0x10
mov eax, dword [edi + 8]
add eax, dword [edi]
cmp eax, dword [ebp + 0x14]
jbe 0x44e11d
add esi, dword [edi]
push 0x1c
pop eax
add edi, eax
dec ebx
jne 0x44e111
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0044f27d
mov eax, esi
call fcn.004545ed
ret
Function at 0x44e3e1
Capabilities:
Read file on windows

Disassembly:
push 0x1a8
mov eax, 0x4aecae
call fcn.00454652
mov edi, ecx
mov ebx, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 0x50], 2
mov dword [ebp - 0x1b4], ebx
jae 0x44e4db
push 0x138
lea eax, [ebp - 0x1a8]
push esi
push eax
call fcn.004535d0
add esp, 0xc
lea eax, [ebp - 0x1b0]
push esi
push eax
push 0x138
lea eax, [ebp - 0x1a8]
push eax
push ebx
mov dword [ebp - 0x1b0], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44e44c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x44e5df
cmp dword [ebp - 0x1b0], 0x138
je 0x44e462
mov eax, 0x103
jmp 0x44e5df
push 1
lea eax, [ebp - 0x1a9]
push eax
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x40]
call fcn.004114d7
mov dword [ebp - 4], esi
lea eax, [ebp - 0x40]
push eax
mov ecx, edi
call fcn.00411c81
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401b80
mov eax, dword [ebp - 0xa4]
mov dword [edi + 0x30], eax
mov ax, word [ebp - 0xa0]
mov word [edi + 0x34], ax
mov eax, dword [ebp - 0x9c]
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0x98]
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x94]
mov dword [edi + 0x40], eax
mov ax, word [ebp - 0x90]
mov word [edi + 0x44], ax
mov eax, dword [ebp + 0xc]
add eax, 0x138
jmp 0x44e5da
push 0x18
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.004535d0
add esp, 0xc
lea eax, [ebp - 0x1b0]
push esi
push eax
push 0x18
lea eax, [ebp - 0x28]
push eax
push ebx
mov dword [ebp - 0x1b0], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44e441
cmp dword [ebp - 0x1b0], 0x18
jne 0x44e458
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x28]
mov dword [edi + 0x30], eax
mov ax, word [ebp - 0x20]
mov word [edi + 0x34], ax
mov eax, dword [ebp - 0x1e]
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0x1a]
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x16]
mov dword [edi + 0x40], eax
mov ax, word [ebp - 0x12]
mov word [edi + 0x44], ax
call fcn.00452d2b
push dword [ebp - 0x28]
mov ebx, eax
push esi
push ebx
call fcn.004535d0
add esp, 0x10
lea eax, [ebp - 0x1b0]
push esi
push eax
push dword [ebp - 0x28]
push ebx
push dword [ebp - 0x1b4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44e57f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x44e58f
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x1b0], eax
je 0x44e59a
mov esi, 0x103
push ebx
call fcn.00453342
pop ecx
mov eax, esi
jmp 0x44e5df
push 1
lea ecx, [ebp - 0x1a9]
push ecx
shr eax, 1
push eax
push ebx
lea ecx, [ebp - 0x70]
call fcn.00411637
mov dword [ebp - 4], 2
push eax
mov ecx, edi
call fcn.00411c81
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401b80
push ebx
call fcn.00453342
mov eax, dword [ebp - 0x28]
add eax, 0x18
add eax, dword [ebp + 0xc]
pop ecx
mov dword [edi + 0x48], eax
xor eax, eax
call fcn.00454601
ret 8
Function at 0x44e5eb
Capabilities:
Get system information on windows
Parse pe header
Read file via mapping

Disassembly:
push 0x3c
mov eax, 0x4aecee
call fcn.0045461f
xor ebx, ebx
mov edi, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 2
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x44e644
lea ecx, [ebp - 0x18]
call fcn.00404bf0
mov edi, esi
mov dword [ebp - 0x18], edi
cmp esi, 0xffffffff
je 0x44e766
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x44e766
lea ecx, [ebp - 0x14]
call fcn.00404bf0
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
push eax
push 0
push 0
push 4
push ebx
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x44e766
lea ecx, [ebp - 0x10]
call fcn.0044f2b1
mov eax, 0x5a4d
mov dword [ebp - 0x10], esi
cmp word [esi], ax
jne 0x44e72c
mov ebx, dword [esi + 0x3c]
push 0xf8
add ebx, esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x44e725
cmp dword [ebx], 0x4550
jne 0x44e725
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x20], eax
jae 0x44e72f
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x24]
push 0
push 0
push 4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp esi, ebx
je 0x44e6fe
lea ecx, [ebp - 0x10]
call fcn.0044f2b1
mov esi, ebx
mov dword [ebp - 0x10], esi
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x44e725
mov ebx, dword [esi + 0x3c]
push 0xf8
add ebx, esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x44e725
cmp dword [ebx], 0x4550
je 0x44e72f
mov esi, 0xc1
jmp 0x44e76e
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x44e73c
and dword [ebp - 0x10], 0
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x44e749
and dword [ebp - 0x18], 0
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x44e759
mov ecx, dword [ebp - 0x1c]
and dword [ebp - 0x14], 0
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x44e762
mov dword [eax], ebx
xor esi, esi
jmp 0x44e76e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0044f2b1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00404bf0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404bf0
mov eax, esi
call fcn.004545ed
ret