joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f95c
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x43950c
call fcn.00434408
sub esp, 0xc
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, ecx
push 0
push dword [esi + 0x54]
call edi
push 0
push dword [esi + 0x58]
call edi
call fcn.0040f728
push 0x44a390
lea ecx, [ebp - 0x10]
call fcn.00414c19
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x5c]
test eax, eax
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
jge 0x40f9b0
fadd qword [0x43f088]
fdiv qword [0x43f098]
push ecx
push ecx
lea eax, [ebp - 0x10]
fstp qword [esp]
push str.Muxing_took__.1f_second_s__r_n
push eax
call fcn.0041abf6
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.0040f8d3
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004036ec
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x4111a6
Capabilities:
Delete file

Disassembly:
mov eax, 0x43950c
call fcn.00434408
push ecx
push ecx
push esi
push 0x43dc24
lea eax, [ebp - 0x10]
push str.gdsmux
push eax
call fcn.0042318d
add esp, 0xc
and dword [ebp - 4], 0
lea esi, [edi + 0x438]
push eax
mov ecx, esi
call fcn.00414e29
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004036ec
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x41121d
push eax
push edi
call fcn.00411023
test eax, eax
jl 0x41120e
push dword [esi]
lea ecx, [edi + 0x420]
call fcn.0040a324
test eax, eax
jge 0x41121d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, esi
call fcn.00412e0f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x41122a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x439a2f
call fcn.00434408
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [edi + 4], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [ebp - 4], ebx
or dword [edi + 0x34], 0xffffffff
or dword [edi + 0x38], 0xffffffff
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov byte [edi + 0x3c], bl
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov byte [ebp - 4], 1
mov dword [edi], 0x43eac0
mov byte [edi + 0x40], bl
mov dword [edi + 0x50], ebx
mov dword [edi + 0x54], ebx
lea eax, [edi + 0x60]
mov dword [edi + 0x58], ebx
push eax
mov dword [edi + 0x5c], ebx
call fcn.0040d50a
lea eax, [edi + 0xc8]
push eax
mov byte [ebp - 4], 2
call fcn.0040cbe4
lea eax, [edi + 0x1d0]
push eax
mov byte [ebp - 4], 3
call fcn.00412539
lea eax, [edi + 0x230]
push eax
mov byte [ebp - 4], 4
call fcn.0040eabc
lea eax, [edi + 0x2c8]
push eax
mov byte [ebp - 4], 5
call fcn.0040eabc
lea esi, [edi + 0x360]
call fcn.00418919
mov dword [esi], 0x43ead4
push 0x11
mov dword [esi + 0xb0], ebx
call dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
mov dword [esi + 0xb4], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esi + 0xb8], eax
lea eax, [edi + 0x420]
mov byte [esi + 0xbc], bl
mov byte [esi + 0xbd], 0xc
mov dword [esi], 0x43eaac
mov dword [eax + 4], ebx
mov byte [eax + 0xc], bl
mov dword [eax], fcn.004081c8
mov dword [eax + 0x10], ebx
push 0x44a390
lea ecx, [edi + 0x438]
mov dword [eax + 0x14], ebx
call fcn.00414c19
mov esi, dword [sym.imp.USER32.dll_RegisterWindowMessageW]
lea eax, [edi + 0x43c]
push str.HaaliDSMux1
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
call esi
mov dword [edi + 0x44], eax
push str.HaaliDSMux2
call esi
push str.HaaliDSMux3
mov dword [edi + 0x48], eax
call esi
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x4c], eax
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x411c3f
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x4399db
call fcn.00434408
sub esp, 0x2c
push ebx
push esi
lea eax, [ebp - 0x34]
push eax
push dword [edi + 0x50]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [ebp - 0x2c]
sub esi, dword [ebp - 0x34]
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub esi, eax
movzx eax, si
push eax
xor ebx, ebx
push ebx
push 0x101e
push dword [edi + 0x50]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00412abf
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.00433607
pop ecx
pop ecx
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004036ec
xor esi, esi
inc esi
jmp 0x411cd2
mov eax, dword [ebp - 0x24]
push dword [eax + esi*4]
push edi
call fcn.0040fe48
inc esi
cmp esi, dword [ebp - 0x20]
jb 0x411cc5
lea ebx, [ebp - 0x24]
call fcn.0041b4a2
mov ecx, dword [ebp - 0xc]
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x41243d
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x10]
cmp eax, dword [esi + 0x394]
jb 0x412450
xor eax, eax
jmp 0x412459
mov ecx, dword [esi + 0x390]
mov eax, dword [ecx + eax*4]
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push edi
push 5
push dword [eax + 0x24]
call ebx
xor edi, edi
cmp dword [esi + 0x394], edi
jle 0x4124a0
mov eax, dword [esp + 0xc]
cmp edi, dword [eax + 0x10]
je 0x412497
cmp edi, dword [esi + 0x394]
jb 0x412487
xor eax, eax
jmp 0x412490
mov eax, dword [esi + 0x390]
mov eax, dword [eax + edi*4]
push 0
push dword [eax + 0x24]
call ebx
inc edi
cmp edi, dword [esi + 0x394]
jl 0x412472
pop edi
xor eax, eax
pop ebx
ret 4

Function at 0x413894
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
lea eax, [esi - 0x30]
neg esi
sbb esi, esi
and esi, eax
cmp dword [ebp + 0x10], 0
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], 1
je 0x413905
push dword [ebp + 8]
push dword [esi + 4]
call edi
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
or dword [ebp + 0x10], 0xffffffff
mov ebx, eax
push ebx
push dword [ebp + 0xc]
call fcn.00414ec5
test eax, eax
je 0x4138fa
lea ecx, [ebx + 1]
push ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
mov dword [ebp + 0x10], eax
call fcn.00412e6d
cmp dword [ebp + 0x10], ebx
jge 0x413942
and dword [ebp - 4], 0
jmp 0x41391d
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
test eax, eax
mov dword [ebp - 4], eax
jne 0x413942
push 0xffffffffffffffff
add esi, 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
push dword [ebp + 8]
mov eax, esi
add esi, 0xffffffd0
neg eax
sbb eax, eax
and eax, esi
push dword [eax + 4]
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x415474
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
neg esi
sbb esi, esi
lea ecx, [eax - 0x30]
and esi, ecx
cmp byte [eax + 0x1c], 0
je 0x4154b8
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 8], 2
jne 0x4154a9
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4154be
cmp dword [ebp + 8], 0
jne 0x4154b8
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 8], 1
je 0x4154d6
mov eax, dword [ebp + 0xc]
shr eax, 0x10
movsx eax, ax
push eax
movsx eax, word [ebp + 0xc]
push eax
add esi, 0x30
push esi
call fcn.00417797
xor eax, eax
pop esi
pop ecx
pop ebp
ret 8
Function at 0x415867
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
neg esi
sbb esi, esi
lea ecx, [eax - 0x30]
and esi, ecx
cmp byte [eax + 0x1c], 0
je 0x4158aa
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 8], 2
jne 0x41589b
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4158b0
cmp dword [ebp + 8], 0
jne 0x4158aa
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 8], 1
je 0x4158c8
mov eax, dword [ebp + 0xc]
shr eax, 0x10
movsx eax, ax
push eax
movsx eax, word [ebp + 0xc]
push eax
add esi, 0x30
push esi
call fcn.00417b7b
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x41594c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
neg esi
sbb esi, esi
lea ecx, [eax - 0x20]
and esi, ecx
cmp byte [eax + 0x1c], 0
je 0x415990
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 8], 2
jne 0x415981
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x415996
cmp dword [ebp + 8], 0
jne 0x415990
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 8], 1
je 0x4159ae
mov eax, dword [ebp + 0xc]
shr eax, 0x10
movsx eax, ax
push eax
movsx eax, word [ebp + 0xc]
push eax
add esi, 0x20
push esi
call fcn.00417f17
xor eax, eax
pop esi
pop ecx
pop ebp
ret 8
Function at 0x422639
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx]
push esi
call dword [eax]
mov esi, eax
test esi, esi
je 0x422678
mov eax, dword [esp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x42264b
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
ret 8

Function at 0x422baa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, 0x44a390
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ebx
call fcn.00414c19
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0xc], ebx
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x422c80
cmp dword [ebp - 8], 1
je 0x422bf9
cmp dword [ebp - 8], 2
jne 0x422c80
push edi
lea ecx, [ebp - 4]
call fcn.00414c19
mov eax, dword [ebp - 0xc]
shr eax, 1
inc eax
push eax
lea ecx, [ebp - 4]
call fcn.00414f6b
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x422c75
cmp dword [ebp - 8], 1
je 0x422c33
cmp dword [ebp - 8], 2
jne 0x422c75
mov eax, dword [ebp - 0xc]
shr eax, 1
push eax
lea ecx, [ebp - 4]
call fcn.00412e6d
mov esi, dword [ebp - 4]
mov eax, dword [esi - 0xc]
cmp eax, ebx
jle 0x422c69
dec eax
push eax
lea ecx, [ebp - 4]
call fcn.00412dee
test ax, ax
jne 0x422c69
mov eax, dword [esi - 0xc]
push 1
dec eax
push eax
lea ecx, [ebp - 4]
call fcn.004228fc
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.00414e29
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.004036ec
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42318d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, 0x44a390
push edi
lea ecx, [ebp - 4]
call fcn.00414c19
mov esi, 0x104
push esi
lea ecx, [ebp - 4]
call fcn.00414f6b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
lea ecx, [ebp - 4]
jb 0x4231d7
push 0
call fcn.00414f95
push 0x43b2e8
lea ecx, [ebp - 4]
call fcn.0041707b
jmp 0x4231dd
push eax
call fcn.00412e6d
mov esi, dword [ebp - 4]
mov eax, dword [esi - 0xc]
test eax, eax
jle 0x423217
dec eax
push eax
lea ecx, [ebp - 4]
call fcn.00412dee
cmp ax, 0x5c
je 0x423217
mov eax, dword [esi - 0xc]
dec eax
push eax
lea ecx, [ebp - 4]
call fcn.00412dee
cmp ax, 0x2f
je 0x423217
push 0x2f
lea ecx, [ebp - 4]
call fcn.00422a85
mov esi, dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [eax + 0x2710]
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
jae 0x423285
push edi
lea ecx, [ebp - 8]
call fcn.00414c19
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 0xc]
push esi
push 0x43b2d0
push eax
call fcn.0041abf6
mov ebx, dword [ebp - 8]
add esp, 0x18
push 0
push 0x80
push 1
push 0
push 3
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x42329e
lea ecx, [ebx - 0x10]
call fcn.004036ec
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x42322d
mov ecx, dword [ebp + 8]
push edi
call fcn.00414c19
lea ecx, [esi - 0x10]
call fcn.004036ec
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.00414e01
lea ecx, [ebx - 0x10]
call fcn.004036ec
jmp 0x42328e
Function at 0x4235ef
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x12c
call fcn.00424c98
mov esi, eax
test esi, esi
pop ecx
jne 0x42362d
mov esi, dword [ebp + 0x10]
test esi, esi
jbe 0x423626
mov edi, dword [ebp + 0xc]
push 0x43b2ec
push esi
push edi
call fcn.004236da
add esp, 0xc
and word [edi + esi*2 - 2], 0
xor eax, eax
jmp 0x4236d6
push 0
push dword [ebp + 8]
call fcn.00423586
cmp eax, 0xffffffff
pop ecx
pop ecx
mov dword [esi + 0x24], eax
jne 0x42365e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00423404
push esi
call fcn.00424a40
add esp, 0x10
jmp 0x423626
mov edi, dword [ebp + 0x14]
test edi, edi
mov dword [esi], 0x423397
mov dword [esi + 4], 0x4233f8
mov dword [esi + 8], 0x4233fe
mov dword [esi + 0xc], 0x423468
mov dword [esi + 0x10], 0x4234a8
mov dword [esi + 0x14], 0x4234b3
mov dword [esi + 0x18], 0x4234c3
mov dword [esi + 0x1c], 0x4234ce
mov dword [esi + 0x20], 0x4234d2
je 0x4236d4
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x4236c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4236c9
and dword [edi], 0
and dword [edi + 4], 0
jmp 0x4236d4
mov eax, dword [ebp - 8]
mov dword [edi], eax
mov eax, dword [ebp - 4]
mov dword [edi + 4], eax
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x4238d7
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x447160]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00423816
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00425a80
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x423926
cmp dword [ebp - 0x1c], 5
jb 0x42393e
jmp 0x42393a
cmp dword [ebp - 0x10], 1
jne 0x42393e
cmp dword [ebp - 0x1c], 4
ja 0x42393a
jne 0x42393e
cmp dword [ebp - 0x18], 0
jbe 0x42393e
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43b368
call fcn.004011c1
test eax, eax
jge 0x42395f
mov byte [0x44afe4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00425f66
add ebp, 0x78
leave
ret
Function at 0x423d61
Capabilities:
Allocate or change rwx memory

Disassembly:
cmp dword [0x44a3ac], 0
push esi
jne 0x423cd4
call fcn.00423bff
test eax, eax
je 0x423d17
mov eax, dword [0x44a3ac]
cmp eax, 1
jne 0x423cf5
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x423d17
pop esi
ret
push eax
call dword [0x44a3b4]
test eax, eax
jne 0x423d5f
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x423d1b
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x44a3ac]
call dword [0x44a3b4]
mov edi, eax
test edi, edi
je 0x423d42
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x423d5e
lea edi, [esi + 0xff0]
push esi
push dword [0x44a3ac]
call dword [0x44a3b0]
add esi, 0x10
cmp esi, edi
jb 0x423d48
mov eax, esi
pop edi
pop esi
ret
jmp 0x423cc1

Function at 0x425f66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x447160]
jne 0x425f70
repz ret
jmp fcn.0042d6bb
Function at 0x427fba
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x447418]
je 0x427fd5
inc edi
cmp edi, 0x17
jb 0x427fc6
cmp edi, 0x17
jae 0x428155
push ebp
push 3
call fcn.0042eb72
cmp eax, 1
pop ecx
je 0x428121
push 3
call fcn.0042eb72
test eax, eax
pop ecx
jne 0x428009
cmp dword [0x447158], 1
je 0x428121
cmp ebx, 0xfc
je 0x428154
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x44a548
push ebp
call fcn.0042eb0d
add esp, 0xc
test eax, eax
je 0x42803f
push esi
push esi
push esi
push esi
push esi
call fcn.00425f7f
add esp, 0x14
push 0x104
mov esi, 0x44a561
push esi
push 0
mov byte [0x44a665], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x428083
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042eb0d
add esp, 0xc
test eax, eax
je 0x428083
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00425f7f
add esp, 0x14
push esi
call fcn.0042c9b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4280c8
push esi
call fcn.0042c9b0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x44a85c
push 0x43b9a4
sub ecx, eax
push ecx
push eax
call fcn.00423f17
add esp, 0x14
test eax, eax
je 0x4280c8
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00425f7f
add esp, 0x14
jmp 0x4280ca
xor esi, esi
push 0x43b9a0
push ebx
push ebp
call fcn.0042ea9c
add esp, 0xc
test eax, eax
je 0x4280ea
push esi
push esi
push esi
push esi
push esi
call fcn.00425f7f
add esp, 0x14
push dword [edi*8 + 0x44741c]
push ebx
push ebp
call fcn.0042ea9c
add esp, 0xc
test eax, eax
je 0x42810c
push esi
push esi
push esi
push esi
push esi
call fcn.00425f7f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042e8df
add esp, 0xc
jmp 0x428154
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x428154
cmp ebp, 0xffffffff
je 0x428154
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44741c]
push dword [esi]
call fcn.0042c9b0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x42e8df
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042826d
xor ebx, ebx
cmp dword [0x44ae6c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42e9b5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42ea95
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x42ea95
push eax
call fcn.004281ff
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44ae6c], eax
call esi
push eax
call fcn.004281ff
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44ae70], eax
call esi
push eax
call fcn.004281ff
mov dword [0x44ae74], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004297ee
test eax, eax
pop ecx
pop ecx
je 0x42e983
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00425f7f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42e9b5
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004281ff
cmp eax, ebx
pop ecx
mov dword [0x44ae7c], eax
je 0x42e9b5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004281ff
pop ecx
mov dword [0x44ae78], eax
mov eax, dword [0x44ae78]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42ea3a
cmp dword [0x44ae7c], ecx
je 0x42ea3a
push eax
call fcn.00428276
push dword [0x44ae7c]
mov esi, eax
call fcn.00428276
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42ea3a
cmp edi, ebx
je 0x42ea3a
call esi
cmp eax, ebx
je 0x42ea07
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42ea07
test byte [ebp - 0x18], 1
jne 0x42ea3a
lea eax, [ebp - 0x10]
push eax
call fcn.00429825
test eax, eax
pop ecx
je 0x42ea22
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00425f7f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42ea31
or dword [ebp + 0x10], 0x200000
jmp 0x42ea75
or dword [ebp + 0x10], 0x40000
jmp 0x42ea75
mov eax, dword [0x44ae70]
cmp eax, dword [ebp - 8]
je 0x42ea75
push eax
call fcn.00428276
cmp eax, ebx
pop ecx
je 0x42ea75
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42ea75
mov eax, dword [0x44ae74]
cmp eax, dword [ebp - 8]
je 0x42ea75
push eax
call fcn.00428276
cmp eax, ebx
pop ecx
je 0x42ea75
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44ae6c]
call fcn.00428276
cmp eax, ebx
pop ecx
je 0x42ea95
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42ea97
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43371b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x4337d0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
jb 0x4337d0
cmp dword [ebp - 0x10], 0x1000
jne 0x4337d0
push esi
mov esi, dword [ebx + 0x3c]
add esi, ebx
cmp word [esi + 0x14], 0x68
jb 0x4337cf
cmp word [esi + 0x18], 0x10b
jne 0x4337cf
push edi
mov edi, dword [esi + 0x78]
add edi, ebx
cmp dword [edi + 0x18], 0
je 0x4337ce
push 0x40
push 0x101000
push 0x10
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [ebp - 4], eax
je 0x4337ce
lea eax, [ebp - 4]
push eax
push dword [esi + 0x7c]
mov eax, edi
push ebx
push 0x44af9c
push str.OutputDebugStringA
mov ecx, 0x433522
call fcn.00431fa3
lea eax, [ebp - 4]
push eax
push dword [esi + 0x7c]
mov eax, edi
push ebx
push 0x44afa0
push str.OutputDebugStringW
mov ecx, 0x433498
call fcn.00431fa3
add esp, 0x28
pop edi
pop esi
pop ebx
leave
ret