joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44518a
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.RtlAnsiStringToUnicodeString
push edi
call esi
push str.RtlInitAnsiString
push edi
mov dword [0x4b464c], eax
call esi
push str.RtlInitUnicodeString
push edi
mov dword [0x4b4648], eax
call esi
push str.RtlFreeUnicodeString
push edi
mov dword [0x4b4644], eax
call esi
push str.NtOpenSection
push edi
mov dword [0x4b4640], eax
call esi
push str.NtMapViewOfSection
push edi
mov dword [0x4b463c], eax
call esi
push str.NtUnmapViewOfSection
push edi
mov dword [0x4b4638], eax
call esi
push str.ZwQuerySystemInformation
push edi
mov dword [0x4b4634], eax
call esi
xor ecx, ecx
cmp dword [0x4b464c], ecx
pop edi
mov dword [0x4b4630], eax
pop esi
je 0x44524b
cmp dword [0x4b4648], ecx
je 0x44524b
cmp dword [0x4b4644], ecx
je 0x44524b
cmp dword [0x4b4640], ecx
je 0x44524b
cmp dword [0x4b463c], ecx
je 0x44524b
cmp dword [0x4b4638], ecx
je 0x44524b
cmp dword [0x4b4634], ecx
je 0x44524b
cmp eax, ecx
je 0x44524b
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x445706
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x47d8de
call fcn.0045381c
push ecx
xor eax, eax
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
lea ecx, [esi + 0x30]
call fcn.00401760
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004456ca
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x446039
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44609b
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push str.ProgramFilesDir
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x446099
cmp esi, ebx
je 0x446092
mov byte [edi + esi - 1], bl
mov dword [ebp - 8], 1
pop edi
pop esi
cmp dword [ebp - 4], ebx
pop ebx
je 0x4460aa
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x44610e
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, 0x47d9db
call fcn.0045381c
sub esp, 0x124
push esi
xor esi, esi
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x10], 0xf
call fcn.00401b50
push 1
push 0x26
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
lea eax, [ebp - 0x130]
je 0x44615e
push eax
lea ecx, [ebp - 0x28]
call fcn.00401a80
jmp 0x44619a
push edi
mov edi, 0x104
push edi
push eax
call fcn.00446039
pop ecx
test eax, eax
pop ecx
lea eax, [ebp - 0x130]
jne 0x446189
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x44618c
lea eax, [ebp - 0x130]
push eax
jmp 0x446191
push 0x493438
lea ecx, [ebp - 0x28]
call fcn.00401a80
pop edi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.00408e50
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.00401c80
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4463c1
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jbe 0x4463ea
push ebx
push edi
movzx edi, byte [edx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4b4198]
inc edx
dec esi
jne 0x4463d2
pop edi
pop ebx
mov dword [ecx], eax
pop esi
ret 8
Function at 0x446d46
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x446d99
call fcn.004725d4
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x446d99
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x446d8f
xor eax, eax
jmp 0x446eb2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x446dc9
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x446dc9
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x446eaf
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x446df6
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00446491
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x446eaf
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x446e3f
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x446e3f
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x446e39
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00446491
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x446e9f
and dword [ebp + 0xc], 0
jmp 0x446e9f
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x446e9f
push 0xc
call fcn.0046956d
mov esi, eax
test esi, esi
pop ecx
je 0x446e81
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x446e83
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x446e9a
push dword [ebp - 8]
call fcn.00469040
jmp 0x446e9f
call fcn.00469017
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x446e04
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4511a8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00450db0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x451243
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4b6690]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x451243
cmp eax, 1
je 0x451264
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x451243
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x451210
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x45123f
xor eax, eax
inc eax
jmp 0x451283
cmp edi, eax
jae 0x451247
xor eax, eax
jmp 0x451283
cmp eax, esi
jae 0x45124e
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4b6690]
jmp 0x451267
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x451ea2
Capabilities:
Terminate process

Disassembly:
push 8
push 0x49c0d0
call fcn.00454f0c
push 8
call fcn.00457f31
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4b66d0], esi
jne 0x451ed6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4b66cc], esi
mov al, byte [ebp + 0x10]
mov byte [0x4b66c8], al
cmp dword [ebp + 0xc], edi
jne 0x451f20
cmp dword [0x4b812c], edi
je 0x451f10
mov eax, dword [0x4b8128]
sub eax, 4
mov dword [0x4b8128], eax
cmp eax, dword [0x4b812c]
jb 0x451f10
mov eax, dword [eax]
cmp eax, edi
je 0x451ef1
call eax
jmp 0x451ef1
push 0x4af124
mov eax, 0x4af11c
call fcn.00451e20
pop ecx
push 0x4af130
mov eax, 0x4af128
call fcn.00451e20
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.00451f51
cmp dword [ebp + 0x10], edi
jne 0x451f5f
mov dword [0x4b66d0], esi
push dword [ebp + 8]
call fcn.00451dde
xor edi, edi
xor esi, esi
inc esi
call fcn.00454f47
ret
Function at 0x452def
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x452fc5
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4b7dc0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x452fc5
test cl, 0x48
je 0x452e5a
cmp byte [eax + 5], 0xa
je 0x452e5a
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x452eac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x452e94
call fcn.00455086
mov dword [eax], 9
call fcn.0045508f
mov dword [eax], esi
jmp 0x452ea4
cmp eax, 0x6d
je 0x452fc5
push eax
call fcn.00455098
pop ecx
or eax, 0xffffffff
jmp 0x452fc7
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x452fc0
test eax, eax
je 0x452ed3
cmp byte [ebx], 0xa
jne 0x452ed3
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x452edc
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x452fba
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x452faa
cmp al, 0xd
je 0x452f0e
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x452f9c
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x452f28
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x452f23
add dword [ebp + 0x10], 2
jmp 0x452f7c
mov dword [ebp + 0x10], eax
jmp 0x452f98
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x452f50
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x452f98
cmp dword [ebp - 0xc], 0
je 0x452f98
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x452f71
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x452f7c
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x452f9b
cmp ebx, dword [ebp + 0xc]
jne 0x452f81
cmp byte [ebp - 1], 0xa
jne 0x452f81
mov byte [ebx], 0xa
jmp 0x452f9b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0045bc62
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x452f9c
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x452ef2
jmp 0x452fba
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x452fba
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x452fc7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x453077
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x4b0b90]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x4530b3
xor eax, eax
jmp 0x45321d
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4b7dc0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4530f1
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0045bc62
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x45318b
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x4531ee
jmp 0x453115
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x453150
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x453141
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x453121
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4531af
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x4531b8
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x453113
jmp 0x4531b8
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4531af
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x4531b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x453218
cmp dword [ebp - 0x68], eax
je 0x4531eb
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x4531e0
call fcn.00455086
mov dword [eax], 9
call fcn.0045508f
mov dword [eax], esi
jmp 0x453213
push dword [ebp - 0x68]
call fcn.00455098
pop ecx
jmp 0x453213
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x453200
cmp byte [edi], 0x1a
jne 0x453200
xor eax, eax
jmp 0x45321b
call fcn.00455086
mov dword [eax], 0x1c
call fcn.0045508f
and dword [eax], 0
or eax, 0xffffffff
jmp 0x45321b
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0045045c
add ebp, 0x3a4
leave
ret
Function at 0x453616
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x49c140
call fcn.00454f0c
mov edi, 0x94
mov eax, edi
call fcn.00450db0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4b6690], ecx
mov eax, dword [esi + 4]
mov dword [0x4b669c], eax
mov edx, dword [esi + 8]
mov dword [0x4b66a0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4b6694], esi
cmp ecx, 2
je 0x453676
or esi, 0x8000
mov dword [0x4b6694], esi
shl eax, 8
add eax, edx
mov dword [0x4b6698], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4536b1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4536b1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4536c9
cmp eax, 0x20b
je 0x4536b6
mov dword [ebp - 0x1c], esi
jmp 0x4536dd
cmp dword [ecx + 0x84], 0xe
jbe 0x4536b1
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4536d7
cmp dword [ecx + 0x74], 0xe
jbe 0x4536b1
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004581a5
pop ecx
test eax, eax
jne 0x4536f1
push 0x1c
call fcn.004535f2
pop ecx
call fcn.004570b6
test eax, eax
jne 0x453702
push 0x10
call fcn.004535f2
pop ecx
call fcn.0045ab9e
mov dword [ebp - 4], esi
call fcn.0045b6ea
test eax, eax
jge 0x45371b
push 0x1b
call fcn.004535cd
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4b8120], eax
call fcn.0045c32c
mov dword [0x4b66d4], eax
call fcn.0045c28a
test eax, eax
jge 0x453741
push 8
call fcn.004535cd
pop ecx
call fcn.0045c057
test eax, eax
jge 0x453752
push 9
call fcn.004535cd
pop ecx
push 1
call fcn.00451e38
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x453768
push eax
call fcn.004535cd
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0045bffa
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x453789
movzx eax, word [ebp - 0x40]
jmp 0x45378c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00468ade
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4537aa
push edi
call fcn.00451f65
call fcn.00451f87
jmp 0x4537dc
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00454f47
ret
Function at 0x453901
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x45391e
call fcn.00455086
mov dword [eax], 0x16
xor eax, eax
jmp 0x453988
push esi
push 0x8c
push 1
call fcn.0045645f
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x453973
push esi
call fcn.00456ebc
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x453951
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x45386c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x453987
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00451464
test ebx, ebx
pop ecx
je 0x453985
push ebx
call fcn.00455098
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x457f62
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x457f90
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x457f97
cmp ebx, dword [eax + 4]
jae 0x457f97
xor eax, eax
jmp 0x458187
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x457fa8
xor eax, eax
inc eax
jmp 0x458186
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x457fbe
cmp ecx, edx
jae 0x458103
cmp dword [eax + 4], 0
je 0x457fc7
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x457faf
cmp dword [ebp + 8], 0
je 0x457fe9
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x458103
cmp eax, esi
jae 0x458103
mov eax, dword [0x4b6850]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x45800e
cmp dword [esi*4 + 0x4b6858], edi
je 0x458107
inc esi
cmp esi, eax
jl 0x457ffc
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x458183
cmp dword [ebp - 8], 0x1000000
jne 0x458183
test byte [ebp - 0xc], 0xcc
je 0x45808c
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x458183
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x458183
cmp word [eax + 0x18], 0x10b
jne 0x458183
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x458183
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x45808c
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x45808c
test byte [ecx + 0x27], 0x80
jne 0x458103
push 1
push 0x4b6898
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x457fa0
mov ecx, dword [0x4b6850]
test ecx, ecx
mov edx, ecx
jle 0x4580c0
lea eax, [ecx*4 + 0x4b6854]
cmp dword [eax], edi
je 0x4580c0
dec edx
sub eax, 4
test edx, edx
jg 0x4580b4
test edx, edx
jne 0x4580f1
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4580cd
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4580e5
lea eax, [edx*4 + 0x4b6858]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4580d3
cmp ecx, 0x10
jge 0x4580f1
inc ecx
mov dword [0x4b6850], ecx
push 0
push 0x4b6898
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x457fa0
xor eax, eax
jmp 0x458186
test esi, esi
jle 0x457fa0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4b6898
call ebx
test eax, eax
jne 0x457fa0
cmp dword [esi*4 + 0x4b6858], edi
je 0x45815d
mov eax, dword [0x4b6850]
lea esi, [eax - 1]
test esi, esi
jl 0x45814b
cmp dword [esi*4 + 0x4b6858], edi
je 0x458147
dec esi
jns 0x45813b
test esi, esi
jge 0x45815b
cmp eax, 0x10
jge 0x458156
inc eax
mov dword [0x4b6850], eax
lea esi, [eax - 1]
jmp 0x45815d
je 0x458175
xor ecx, ecx
test esi, esi
jl 0x458175
lea eax, [ecx*4 + 0x4b6858]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x458163
push 0
push 0x4b6898
call ebx
jmp 0x457fa0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45b5a5
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00450db0
mov eax, dword [0x4b0b90]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.004533fc
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x45b6da
push 2
push esi
push dword [ebp + 8]
call fcn.004533fc
add esp, 0xc
cmp eax, ebx
je 0x45b6da
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x45b67a
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0044fff0
push 0x8000
push dword [ebp + 8]
call fcn.00465628
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x45b630
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00453077
add esp, 0xc
cmp eax, 0xffffffff
je 0x45b650
sub edi, eax
test edi, edi
jg 0x45b628
jmp 0x45b668
call fcn.0045508f
cmp dword [eax], 5
jne 0x45b665
call fcn.00455086
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00465628
pop ecx
pop ecx
jmp 0x45b6c2
jge 0x45b6c2
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004533fc
push dword [ebp + 8]
call fcn.0045b9e3
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x45b6c2
call fcn.00455086
mov dword [eax], 0xd
call fcn.0045508f
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.004533fc
add esp, 0xc
mov eax, esi
pop edi
jmp 0x45b6dc
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045045c
leave
ret