joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ab5a5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x48], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x4c], 0
push 0xf
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x8c], 1
mov ecx, dword [ebp - 8]
add ecx, 0x78
call fcn.004abcdc
test eax, eax
jle 0x4ab66f
mov edx, dword [ebp - 8]
add edx, 0x40
push edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x78
call fcn.004abcdc
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x78
call fcn.004abcac
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4ab66f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4ab662
push 1
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x4ab660
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x8c], 0
jmp 0x4ab66f
mov edx, dword [ebp - 8]
mov dword [edx + 0x8c], 0
mov ecx, dword [ebp - 8]
add ecx, 0x68
call fcn.004abc8c
mov esp, ebp
pop ebp
ret
Function at 0x4bf5ae
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x57f127
cmp edx, dword [eax]
je 0x4bf5d0
add eax, 8
inc ecx
cmp eax, 0x57f1b7
jl 0x4bf5c1
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x57f127]
jne 0x4bf6fe
mov eax, dword [0x58e6cf]
cmp eax, 1
je 0x4bf6d8
test eax, eax
jne 0x4bf601
cmp dword [0x58e6d3], 1
je 0x4bf6d8
cmp edx, 0xfc
je 0x4bf6fe
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bf638
lea eax, [ebp - 0x1a4]
push 0x4eb6e4
push eax
call fcn.004be14c
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004b5e2c
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bf67b
lea eax, [ebp - 0x1a4]
push eax
call fcn.004b5e2c
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x57204f
push edi
call fcn.004b52ec
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4eb6c8
push eax
call fcn.004be14c
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004be15c
lea eax, [ebp - 0xa0]
push 0x4eb6c4
push eax
call fcn.004be15c
push dword [esi + 0x57f12b]
lea eax, [ebp - 0xa0]
push eax
call fcn.004be15c
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4eb69c
push eax
call fcn.004c1d58
add esp, 0x2c
pop edi
jmp 0x4bf6fe
lea eax, [ebp + 8]
lea esi, [esi + 0x57f12b]
push 0
push eax
push dword [esi]
call fcn.004b5e2c
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]
pop esi
leave
ret

Function at 0x4c712b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c7163
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c9db1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c9d89
jmp 0x4c716f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c8822
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c8864
call fcn.004d0c6d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c8864
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c885b
xor eax, eax
jmp 0x4c886c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c8872
pop edi
pop esi
pop ebx
ret 4
Function at 0x4ca04d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4ca06f
cmp dword [edi + 0x3c], 0
jne 0x4ca06f
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004d0c6d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004ca09c
pop edi
pop esi
pop ebx
ret 8
Function at 0x4d9fe4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4faf70
push 0x4da5fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x4da070
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x28], eax
cmp dword [eax], 0x4550
jne 0x4da070
cmp word [eax + 6], dx
je 0x4da070
lea ecx, [eax + 0x18]
mov dword [ebp - 0x24], ecx
cmp word [ecx], 0x10b
jne 0x4da070
cmp dword [ecx + 0x38], edx
je 0x4da070
cmp dword [ecx + 0x3c], edx
je 0x4da070
test byte [eax + 0x16], 2
je 0x4da067
test byte [eax + 0x5c], 3
je 0x4da067
cmp dword [eax + 0x74], 0x10
je 0x4da084
mov dword [ebp - 0x20], 0x80000090
jmp 0x4da084
mov dword [ebp - 0x20], VariantClear
jmp 0x4da084
mov dword [ebp - 0x20], SysReAllocString
jmp 0x4da084
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4014e0
Capabilities:
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x40a07e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [0x40d040]
mov dword [esp + 0x108], eax
mov eax, dword [0x40de24]
mov ecx, dword [eax]
push 0x5c
push ecx
call fcn.00402ab0
add esp, 8
test eax, eax
jne 0x401551
lea edx, [esp + 4]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 4], 0x5c
je 0x40156b
push 0x40b230
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40156b
mov edx, dword [0x40de24]
mov ecx, dword [edx]
sub eax, ecx
add eax, 2
push eax
push ecx
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x128
call fcn.00402a97
add esp, 4
mov dword [esp + 4], eax
test eax, eax
mov dword [esp + 0x118], 0
je 0x4015a9
push 1
push str..._binnconsole.exe
mov ecx, eax
call fcn.004011d0
mov esi, eax
jmp 0x4015ab
xor esi, esi
test esi, esi
mov dword [esp + 0x118], 0xffffffff
jne 0x4015d0
push str.LaunchConsole:_Not_enough_memory_to_create_app_object__n
push 0x40d088
call fcn.00402991
add esp, 8
xor eax, eax
jmp 0x4015f7
push 0
push 0
push 5
push 0
mov ecx, esi
call fcn.00401240
test eax, eax
jne 0x4015f5
push str.Couldnt_start_console.exe__n
push 0x40d088
call fcn.00402991
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x10c]
pop esi
call fcn.0040297e
add esp, 0x118
ret
Function at 0x401ff0
Capabilities:
Create process on windows
Terminate process

Disassembly:
mov edi, edi
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
xor eax, eax
cmp ebx, 4
mov ecx, 0x1c7
mov edi, 0x40d6e0
rep stosd dword es:[edi], eax
jl 0x402087
mov eax, dword [esp + 0x14]
push eax
push ebx
call fcn.00401b10
add esp, 8
test eax, eax
je 0x4020d7
call fcn.004014e0
mov esi, eax
test esi, esi
jne 0x40203a
push str.WARNING:_Couldnt_start_console.exe_n
call fcn.004032e4
add esp, 4
push 5
push str.regsvr32.exe__s_cnv6x70.dll
call dword [sym.imp.KERNEL32.dll_WinExec]
call fcn.00401be0
mov edi, eax
push edi
push str.Imptapes.exe_has_completed_with_an_exit_code_of__d._n
call fcn.004032e4
push 0x40d068
call fcn.0040371d
add esp, 0xc
test esi, esi
je 0x402081
mov ecx, dword [esi + 0x118]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov eax, edi
pop edi
pop esi
pop ebx
ret
xor esi, esi
test ebx, ebx
jle 0x4020c5
mov edi, dword [esp + 0x14]
mov eax, dword [edi + esi*4]
push 0x40b468
push eax
call fcn.0040331a
add esp, 4
push eax
call fcn.00403630
add esp, 8
test eax, eax
jne 0x4020c0
mov ecx, dword [edi + esi*4]
push ecx
push 0x40b698
call fcn.004032e4
add esp, 8
inc esi
cmp esi, ebx
jl 0x402091
push 0x40b3b8
call fcn.004032e4
add esp, 4
call fcn.00401800
pop edi
pop esi
mov eax, 0xffff
pop ebx
ret

Function at 0x402580
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 8], eax
mov dword [esi], 0x40b718
mov dword [esi + 0xc], 0xffffffff
xor ecx, ecx
push edi
xor edi, edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
lea edx, [esi + 0x10]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], ecx
xor eax, eax
lea ecx, [esi + 0x30]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push edi
mov dword [ecx + 0xc], eax
push edi
mov dword [ecx + 0x10], eax
push 3
mov dword [ecx + 0x14], eax
push edi
mov dword [ecx + 0x18], eax
push edi
mov dword [ecx + 0x1c], eax
mov edx, dword [esi + 8]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x40264a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push edi
lea ecx, [esp + 0x14]
push ecx
push 0x400
push eax
push edi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [esp + 0xc]
push edx
push str.CTape:_t_s_n
push 0x40d088
call fcn.00402991
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
push eax
call edi
push 0x40b3b8
call edi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
ret 4
Function at 0x402bc6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40de4c], esi
push edi
jne 0x402be6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40de48], esi
mov byte [0x40de44], al
jne 0x402c4c
mov ecx, dword [0x40e3cc]
test ecx, ecx
je 0x402c2d
mov eax, dword [0x40e3c8]
sub eax, 4
cmp eax, ecx
jmp 0x402c26
mov eax, dword [eax]
test eax, eax
je 0x402c18
call eax
mov eax, dword [0x40e3c8]
sub eax, 4
cmp eax, dword [0x40e3cc]
mov dword [0x40e3c8], eax
jae 0x402c10
mov eax, 0x40d024
mov esi, 0x40d02c
cmp eax, esi
mov edi, eax
jae 0x402c4c
mov eax, dword [edi]
test eax, eax
je 0x402c45
call eax
add edi, 4
cmp edi, esi
jb 0x402c3d
mov eax, 0x40d030
mov esi, 0x40d038
cmp eax, esi
mov edi, eax
jae 0x402c6b
mov eax, dword [edi]
test eax, eax
je 0x402c64
call eax
add edi, 4
cmp edi, esi
jb 0x402c5c
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x402c85
push dword [ebp + 8]
mov dword [0x40de4c], 1
call fcn.00402ae2
pop ebp
ret

Function at 0x405bbd
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.00406090
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405c58
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 [0x40de0c]
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 0x405c58
cmp eax, 1
je 0x405c79
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 0x405c58
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x405c25
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x405c54
xor eax, eax
inc eax
jmp 0x405c98
cmp edi, eax
jae 0x405c5c
xor eax, eax
jmp 0x405c98
cmp eax, esi
jae 0x405c63
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 [0x40de0c]
jmp 0x405c7c
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 0x4060d2
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov ecx, dword [ebp + 0x3ac]
cmp ecx, dword [0x40e2a8]
mov eax, dword [0x40d040]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x78], edi
jae 0x406272
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40e2c0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x406272
and dword [ebp - 0x70], 0
and dword [ebp - 0x7c], 0
cmp dword [ebp + 0x3b4], 0
jne 0x406146
xor eax, eax
jmp 0x406286
test al, 0x20
je 0x406159
push 2
push 0
push 0
push ecx
call fcn.00408c0b
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4061ee
and dword [ebp - 0x68], 0
cmp dword [ebp + 0x3b4], 0
mov dword [ebp - 0x6c], edi
jbe 0x40624f
mov ecx, dword [ebp - 0x6c]
xor edi, edi
sub ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x4061b3
mov edx, dword [ebp - 0x6c]
inc dword [ebp - 0x6c]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4061a4
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x406186
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x74]
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 0x406213
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x70], eax
cmp eax, edi
jl 0x40621c
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x78]
cmp eax, dword [ebp + 0x3b4]
jb 0x40617b
jmp 0x40621c
push 0
lea ecx, [ebp - 0x74]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406213
mov eax, dword [ebp - 0x74]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x70], eax
jmp 0x40621c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x70]
test eax, eax
jne 0x40626d
cmp dword [ebp - 0x68], eax
je 0x40624c
push 5
pop eax
cmp dword [ebp - 0x68], eax
jne 0x406241
mov dword [0x40de00], 9
mov dword [0x40de04], eax
jmp 0x406283
push dword [ebp - 0x68]
call fcn.00408ba7
pop ecx
jmp 0x406283
mov edi, dword [ebp - 0x78]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x406261
cmp byte [edi], 0x1a
je 0x40613f
mov dword [0x40de00], 0x1c
jmp 0x40627c
sub eax, dword [ebp - 0x7c]
jmp 0x406286
mov dword [0x40de00], 9
and dword [0x40de04], 0
or eax, 0xffffffff
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
pop ebx
call fcn.0040297e
add ebp, 0x3a4
leave
ret
Function at 0x4062fd
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x40d040]
mov ecx, dword [ebp + 0x98]
push ebx
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40d320]
je 0x406332
inc eax
cmp eax, 0x13
jb 0x406323
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40d320]
jne 0x406455
mov eax, dword [0x40de5c]
cmp eax, 1
je 0x406430
cmp eax, edx
jne 0x406362
cmp dword [0x40d2e4], 1
je 0x406430
cmp ecx, 0xfc
je 0x406455
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406398
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00405ac0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00407c80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4063cc
mov eax, edi
push eax
call fcn.00407c80
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b80c
push edi
call fcn.00403420
add esp, 0x10
push edi
call fcn.00407c80
push dword [esi + 0x40d324]
mov ebx, eax
call fcn.00407c80
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00406090
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00405ac0
push edi
push ebx
call fcn.00405ad0
push 0x40b808
push ebx
call fcn.00405ad0
push dword [esi + 0x40d324]
push ebx
call fcn.00405ad0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00407b78
add esp, 0x2c
jmp 0x406455
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x40d324]
push dword [esi]
call fcn.00407c80
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 + 0x8c]
call fcn.0040297e
pop edi
pop esi
pop ebx
add ebp, 0x90
leave
ret
Function at 0x407b78
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40dfbc], ebx
push esi
push edi
jne 0x407bf8
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x407c33
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40dfbc], eax
je 0x407c33
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40dfc0], eax
call esi
cmp dword [0x40de0c], 2
mov dword [0x40dfc4], eax
jne 0x407bf8
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40dfcc], eax
je 0x407bf8
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40dfc8], eax
mov eax, dword [0x40dfc8]
test eax, eax
je 0x407c3d
call eax
test eax, eax
je 0x407c24
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40dfcc]
test eax, eax
je 0x407c24
test byte [ebp - 8], 1
jne 0x407c3d
cmp dword [0x40de18], 4
jb 0x407c37
or byte [ebp + 0x12], 0x20
jmp 0x407c5c
xor eax, eax
jmp 0x407c6c
or byte [ebp + 0x12], 4
jmp 0x407c5c
mov eax, dword [0x40dfc0]
test eax, eax
je 0x407c5c
call eax
mov ebx, eax
test ebx, ebx
je 0x407c5c
mov eax, dword [0x40dfc4]
test eax, eax
je 0x407c5c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40dfbc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407d10
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 0x407d3e
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 0x407d45
cmp ebx, dword [eax + 4]
jae 0x407d45
xor eax, eax
jmp 0x407f35
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x407d56
xor eax, eax
inc eax
jmp 0x407f34
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x407d6c
cmp ecx, edx
jae 0x407eb1
cmp dword [eax + 4], 0
je 0x407d75
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x407d5d
cmp dword [ebp + 8], 0
je 0x407d97
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x407eb1
cmp eax, esi
jae 0x407eb1
mov eax, dword [0x40dfd0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x407dbc
cmp dword [esi*4 + 0x40dfd8], edi
je 0x407eb5
inc esi
cmp esi, eax
jl 0x407daa
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407f31
cmp dword [ebp - 8], 0x1000000
jne 0x407f31
test byte [ebp - 0xc], 0xcc
je 0x407e3a
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x407f31
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407f31
cmp word [eax + 0x18], 0x10b
jne 0x407f31
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x407f31
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x407e3a
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x407e3a
test byte [ecx + 0x27], 0x80
jne 0x407eb1
push 1
push 0x40e018
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x407d4e
mov ecx, dword [0x40dfd0]
test ecx, ecx
mov edx, ecx
jle 0x407e6e
lea eax, [ecx*4 + 0x40dfd4]
cmp dword [eax], edi
je 0x407e6e
dec edx
sub eax, 4
test edx, edx
jg 0x407e62
test edx, edx
jne 0x407e9f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x407e7b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x407e93
lea eax, [edx*4 + 0x40dfd8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x407e81
cmp ecx, 0x10
jge 0x407e9f
inc ecx
mov dword [0x40dfd0], ecx
push 0
push 0x40e018
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x407d4e
xor eax, eax
jmp 0x407f34
test esi, esi
jle 0x407d4e
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40e018
call ebx
test eax, eax
jne 0x407d4e
cmp dword [esi*4 + 0x40dfd8], edi
je 0x407f0b
mov eax, dword [0x40dfd0]
lea esi, [eax - 1]
test esi, esi
jl 0x407ef9
cmp dword [esi*4 + 0x40dfd8], edi
je 0x407ef5
dec esi
jns 0x407ee9
test esi, esi
jge 0x407f09
cmp eax, 0x10
jge 0x407f04
inc eax
mov dword [0x40dfd0], eax
lea esi, [eax - 1]
jmp 0x407f0b
je 0x407f23
xor ecx, ecx
test esi, esi
jl 0x407f23
lea eax, [ecx*4 + 0x40dfd8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x407f11
push 0
push 0x40e018
call ebx
jmp 0x407d4e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4045e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x438010]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [0x435780]
push ebx
push esi
movups xmmword [ebp - 0x2c], xmm0
lea esi, [ebp - 0x2c]
mov dword [ebp - 0xc], 0
movaps xmm0, xmmword [0x435790]
push edi
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 8], 3
nop word [eax + eax]
push dword [esi]
call fcn.00404700
add esi, 4
lea eax, [ebp - 4]
cmp esi, eax
jne 0x404620
mov eax, 0x21
cmp eax, 0x1c5
jl 0x40463f
call 0x7444bbab
add ch, al
aas
jne 0x404645
je 0x404645
call 0xf6f72e87
invalid
call fcn.00403d00
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
add eax, 0x13
jne 0x404660
jmp 0xdc2c2e9a
call 0x402250
mov eax, 0x13
cmp eax, 0x1a5
jl 0x404673
jmp 0x7444bb9e
jne 0x404679
je 0x404679
jmp 0x6a40b0eb
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_AreAnyAccessesGranted]
call fcn.00406770
mov edi, eax
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + edi + 0x30]
mov esi, dword [ecx + 4]
mov ecx, esi
mov dword [ebp - 0x30], esi
mov edx, dword [esi]
call dword [edx + 4]
lea eax, [ebp - 0x34]
push eax
call fcn.00406f50
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
call dword [edx + 0x30]
movzx ebx, ax
test esi, esi
je 0x4046cf
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x4046cf
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push ebx
mov ecx, edi
call fcn.004077e0
mov ecx, edi
call fcn.00405fb0
call fcn.00404310
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b18c
mov esp, ebp
pop ebp
ret