joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40357f
Capabilities:
Set registry value

Disassembly:
mov eax, 0x41361d
call fcn.00408d30
sub esp, 0x10
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00401e41
push dword [ebp + 0xc]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401e41
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
push dword [ebp - 0x18]
call fcn.0040328d
push dword [ebp - 0x18]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403337
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4035d9
xor edi, edi
jmp 0x403604
push dword [ebp + 0x10]
call fcn.004080a0
pop ecx
inc eax
push eax
push dword [ebp + 0x10]
xor edi, edi
inc edi
push edi
push 0
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4035fd
xor edi, edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00401e7a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00401e7a
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4036d0
Capabilities:
Set registry value

Disassembly:
mov eax, 0x41361d
call fcn.00408d30
sub esp, 0x10
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00401e41
push dword [ebp + 0xc]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401e41
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
push dword [ebp - 0x18]
call fcn.0040328d
push dword [ebp - 0x18]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403337
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x403686
xor esi, esi
jmp 0x4036a8
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp - 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor esi, esi
test eax, eax
jne 0x4036a1
inc esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00401e7a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00401e7a
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
jmp 0x40362c

Function at 0x403b0f
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x403b29
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc

Function at 0x403b52
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x403b5d
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x40418b
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x34], eax
jne 0x4041a7
xor al, al
jmp 0x4041c1
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x404157
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ecx
ret

Function at 0x404413
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.00403ada
cmp eax, esi
jne 0x40448b
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x404454
lea eax, [ebp - 0x110]
push eax
call fcn.00404413
cmp eax, esi
jne 0x40448a
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x100
call edi
test eax, eax
lea ecx, [ebp - 4]
je 0x404444
call fcn.00403a75
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 4]
mov esi, eax
call fcn.00403a75
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x4065e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x413727
call fcn.00408d30
sub esp, 0x418
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [0x418050]
xor ebx, ebx
mov edi, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x424], ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], 1
je 0x406671
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
jg 0x406659
push esi
call fcn.004037ba
test al, al
pop ecx
je 0x406659
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.00409ea0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x406662
push esi
lea ecx, [ebp - 0x14]
call fcn.00404642
push edi
push esi
push dword [ebp + 8]
push eax
call fcn.00401dd2
cmp eax, ebx
jne 0x406694
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x40668a
lea ecx, [ebp - 0x424]
call fcn.0040412d
mov esi, 0x8007000e
jmp 0x40676f
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x18], edi
jne 0x4066b3
call fcn.00403868
mov esi, eax
jmp 0x406756
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x4066d5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x4066dc
call fcn.00403868
jmp 0x40674b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x424]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 2
call fcn.004046c3
jmp 0x406709
cmp dword [ebp - 0x424], ebx
mov dword [ebp - 4], 1
jne 0x40671f
mov esi, 0x8007000e
jmp 0x40674d
push esi
push dword [ebp + 0x10]
push dword [ebp - 0x424]
call fcn.00408130
mov eax, dword [ebp - 0x424]
add esp, 0xc
push dword [ebp + 0x14]
mov byte [esi + eax], bl
push dword [ebp - 0x424]
lea ecx, [ebp - 0x20]
call fcn.00405e14
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x40676f
lea ecx, [ebp - 0x424]
call fcn.0040412d
lea ecx, [ebp - 0x14]
call fcn.00404067
mov eax, esi
lea esp, [ebp - 0x430]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x406fc9
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0
mov dword [ebp + 0x10], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x41457c
push dword [ebp + 8]
mov ebx, 0x4190d0
push 0x4180d8
mov ecx, ebx
call fcn.00403f55
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, 0x414984
lea edi, [ebp - 4]
movsw word es:[edi], word [esi]
mov dword [0x419100], eax
lea eax, [ebp - 4]
movsb byte es:[edi], byte [esi]
xor esi, esi
push eax
push dword [ebp + 0x10]
mov dword [ebp + 8], esi
jmp 0x407045
push str.UnregServer
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x407077
push str.RegServer
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x407090
lea eax, [ebp - 4]
push eax
push edi
call fcn.004038d9
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
jne 0x407020
mov ecx, ebx
call fcn.0040418b
push 1
push 4
mov ecx, ebx
call fcn.0040453b
push str..pipeMorDebug
call fcn.00402f52
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
pop ecx
jmp 0x4070b1
push esi
push esi
push 0x64
push ebx
call fcn.004068da
push esi
push 1
mov ecx, ebx
call fcn.00406b0f
mov dword [ebp + 8], eax
jmp 0x4070d0
push esi
push 1
push 0x64
push ebx
call fcn.004068da
push esi
push 1
mov ecx, ebx
call fcn.00406aa0
jmp 0x40708b
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
lea eax, [ebp - 0x20]
push esi
push eax
call edi
test eax, eax
jne 0x4070a7
mov ecx, ebx
call fcn.0040457d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.004044e9
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x407179
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push edi
push 0x41
pop ecx
push str.Debug.ini
push 0x414290
push dword [ebp + 8]
xor eax, eax
mov byte [ebp - 0x108], 0
lea edi, [ebp - 0x107]
push str.c:Morpheus_
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x108]
push str._s_s_s_s
push eax
call fcn.00408d89
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.MagicParam
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
leave
ret
Function at 0x40a56d
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.00409ea0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40a608
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 [0x419450]
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 0x40a608
cmp eax, 1
je 0x40a629
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 0x40a608
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40a5d5
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40a604
xor eax, eax
inc eax
jmp 0x40a648
cmp edi, eax
jae 0x40a60c
xor eax, eax
jmp 0x40a648
cmp eax, esi
jae 0x40a613
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 [0x419450]
jmp 0x40a62c
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 0x40a808
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x414f60
call fcn.0040a268
mov edi, 0x94
mov eax, edi
call fcn.00409ea0
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 [0x419450], ecx
mov eax, dword [esi + 4]
mov dword [0x41945c], eax
mov edx, dword [esi + 8]
mov dword [0x419460], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x419454], esi
cmp ecx, 2
je 0x40a868
or esi, 0x8000
mov dword [0x419454], esi
shl eax, 8
add eax, edx
mov dword [0x419458], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40a8a3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a8a3
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40a8bb
cmp eax, 0x20b
je 0x40a8a8
mov dword [ebp - 0x1c], esi
jmp 0x40a8cf
cmp dword [ecx + 0x84], 0xe
jbe 0x40a8a3
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40a8c9
cmp dword [ecx + 0x74], 0xe
jbe 0x40a8a3
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040d36c
pop ecx
test eax, eax
jne 0x40a8e3
push 0x1c
call fcn.0040a7e4
pop ecx
call fcn.0040b293
test eax, eax
jne 0x40a8f4
push 0x10
call fcn.0040a7e4
pop ecx
call fcn.0040ffdb
mov dword [ebp - 4], esi
call fcn.0040fddd
test eax, eax
jge 0x40a90d
push 0x1b
call fcn.0040a7bf
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41aa00], eax
call fcn.0040fcbb
mov dword [0x41918c], eax
call fcn.0040fc19
test eax, eax
jge 0x40a933
push 8
call fcn.0040a7bf
pop ecx
call fcn.0040f9e6
test eax, eax
jge 0x40a944
push 9
call fcn.0040a7bf
pop ecx
push 1
call fcn.0040f31b
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40a95a
push eax
call fcn.0040a7bf
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040f989
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40a97b
movzx eax, word [ebp - 0x40]
jmp 0x40a97e
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00406fc9
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40a99c
push edi
call fcn.0040f448
call fcn.0040f46a
jmp 0x40a9ce
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040a2a3
ret
Function at 0x40f098
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 0x40f0c6
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 0x40f0cd
cmp ebx, dword [eax + 4]
jae 0x40f0cd
xor eax, eax
jmp 0x40f2bd
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40f0de
xor eax, eax
inc eax
jmp 0x40f2bc
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40f0f4
cmp ecx, edx
jae 0x40f239
cmp dword [eax + 4], 0
je 0x40f0fd
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40f0e5
cmp dword [ebp + 8], 0
je 0x40f11f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40f239
cmp eax, esi
jae 0x40f239
mov eax, dword [0x419400]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40f144
cmp dword [esi*4 + 0x419408], edi
je 0x40f23d
inc esi
cmp esi, eax
jl 0x40f132
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40f2b9
cmp dword [ebp - 8], 0x1000000
jne 0x40f2b9
test byte [ebp - 0xc], 0xcc
je 0x40f1c2
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40f2b9
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40f2b9
cmp word [eax + 0x18], 0x10b
jne 0x40f2b9
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40f2b9
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40f1c2
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40f1c2
test byte [ecx + 0x27], 0x80
jne 0x40f239
push 1
push 0x419448
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40f0d6
mov ecx, dword [0x419400]
test ecx, ecx
mov edx, ecx
jle 0x40f1f6
lea eax, [ecx*4 + 0x419404]
cmp dword [eax], edi
je 0x40f1f6
dec edx
sub eax, 4
test edx, edx
jg 0x40f1ea
test edx, edx
jne 0x40f227
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40f203
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40f21b
lea eax, [edx*4 + 0x419408]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40f209
cmp ecx, 0x10
jge 0x40f227
inc ecx
mov dword [0x419400], ecx
push 0
push 0x419448
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40f0d6
xor eax, eax
jmp 0x40f2bc
test esi, esi
jle 0x40f0d6
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x419448
call ebx
test eax, eax
jne 0x40f0d6
cmp dword [esi*4 + 0x419408], edi
je 0x40f293
mov eax, dword [0x419400]
lea esi, [eax - 1]
test esi, esi
jl 0x40f281
cmp dword [esi*4 + 0x419408], edi
je 0x40f27d
dec esi
jns 0x40f271
test esi, esi
jge 0x40f291
cmp eax, 0x10
jge 0x40f28c
inc eax
mov dword [0x419400], eax
lea esi, [eax - 1]
jmp 0x40f293
je 0x40f2ab
xor ecx, ecx
test esi, esi
jl 0x40f2ab
lea eax, [ecx*4 + 0x419408]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40f299
push 0
push 0x419448
call ebx
jmp 0x40f0d6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f385
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4153a8
call fcn.0040a268
push 8
call fcn.0040d321
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x419490], esi
jne 0x40f3b9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x41948c], esi
mov al, byte [ebp + 0x10]
mov byte [0x419488], al
cmp dword [ebp + 0xc], edi
jne 0x40f403
cmp dword [0x41a7a8], edi
je 0x40f3f3
mov eax, dword [0x41a7a4]
sub eax, 4
mov dword [0x41a7a4], eax
cmp eax, dword [0x41a7a8]
jb 0x40f3f3
mov eax, dword [eax]
cmp eax, edi
je 0x40f3d4
call eax
jmp 0x40f3d4
push 0x41803c
mov eax, 0x418034
call fcn.0040f303
pop ecx
push 0x418048
mov eax, 0x418040
call fcn.0040f303
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40f434
cmp dword [ebp + 0x10], edi
jne 0x40f442
mov dword [0x419490], esi
push dword [ebp + 8]
call fcn.0040f2c1
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40f441
push 8
call fcn.0040d26c
pop ecx
ret
call fcn.0040a2a3
ret

Function at 0x40f675
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x418290]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x418770]
je 0x40f6aa
inc eax
cmp eax, 0x13
jb 0x40f69b
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x418770]
jne 0x40f7d0
mov eax, dword [0x419194]
cmp eax, 1
je 0x40f7a8
cmp eax, edx
jne 0x40f6da
cmp dword [0x41828c], 1
je 0x40f7a8
cmp ecx, 0xfc
je 0x40f7d0
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f710
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00409da0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004080a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40f744
mov eax, edi
push eax
call fcn.004080a0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4157b0
push edi
call fcn.0040aa40
add esp, 0x10
push edi
call fcn.004080a0
push dword [esi + 0x418774]
mov ebx, eax
call fcn.004080a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00409ea0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00409da0
push edi
push ebx
call fcn.00409db0
push 0x415790
push ebx
call fcn.00409db0
push dword [esi + 0x418774]
push ebx
call fcn.00409db0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00411a24
add esp, 0x2c
jmp 0x40f7d0
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x418774]
push dword [esi]
call fcn.004080a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040aa0e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x410453
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x418290]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x410484
xor eax, eax
jmp 0x41060d
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x41a6a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4104c0
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00411e8a
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41059b
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4105d9
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x410524
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x410515
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4104f5
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410564
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x41056d
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4104e6
jmp 0x41056f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x410608
cmp dword [ebp - 0x6c], edi
je 0x4105d9
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4105ce
call fcn.00410dd4
mov dword [eax], 9
call fcn.00410ddd
mov dword [eax], esi
jmp 0x410603
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4105c3
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41056f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41056f
push dword [ebp - 0x6c]
call fcn.00410de6
pop ecx
jmp 0x410603
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4105f1
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4105f1
xor eax, eax
jmp 0x41060b
call fcn.00410dd4
mov dword [eax], 0x1c
call fcn.00410ddd
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x41060b
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0040aa0e
add ebp, 0x3a0
leave
ret
Function at 0x411a24
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x419624], ebx
push esi
push edi
jne 0x411aa4
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x411adf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x415f94
push edi
call esi
test eax, eax
mov dword [0x419624], eax
je 0x411adf
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x419628], eax
call esi
cmp dword [0x419450], 2
mov dword [0x41962c], eax
jne 0x411aa4
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x419634], eax
je 0x411aa4
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x419630], eax
mov eax, dword [0x419630]
test eax, eax
je 0x411ae9
call eax
test eax, eax
je 0x411ad0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x419634]
test eax, eax
je 0x411ad0
test byte [ebp - 8], 1
jne 0x411ae9
cmp dword [0x41945c], 4
jb 0x411ae3
or byte [ebp + 0x12], 0x20
jmp 0x411b08
xor eax, eax
jmp 0x411b18
or byte [ebp + 0x12], 4
jmp 0x411b08
mov eax, dword [0x419628]
test eax, eax
je 0x411b08
call eax
mov ebx, eax
test ebx, ebx
je 0x411b08
mov eax, dword [0x41962c]
test eax, eax
je 0x411b08
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x419624]
pop edi
pop esi
pop ebx
leave
ret