joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015d0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
mov dword [esi + 4], eax
jne 0x4015fb
pop esi
ret 4
push edi
mov ecx, esi
call fcn.00401500
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40161d
pop edi
xor eax, eax
pop esi
ret 4
lea edx, [edi + 1]
push edx
call fcn.00406447
add esp, 4
test eax, eax
mov dword [esi], eax
je 0x401616
mov edx, dword [esi + 4]
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push eax
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401616
cmp edi, dword [esp + 0xc]
jne 0x401616
mov eax, dword [esi]
mov byte [edi + eax], 0
mov eax, dword [esi]
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
pop edi
mov eax, 1
pop esi
ret 4

Function at 0x402e10
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x40
push esi
mov ebx, ecx
call fcn.00406447
mov ebp, dword [sym.imp.USER32.dll_GetWindowTextA]
add esp, 4
mov edi, eax
mov eax, dword [ebx]
push esi
push edi
push eax
call ebp
lea ecx, [eax + 1]
cmp ecx, esi
jl 0x402e62
lea ebx, [ebx]
push edi
call fcn.00406442
add esi, 0x40
push esi
call fcn.00406447
mov edx, dword [ebx]
add esp, 8
push esi
mov edi, eax
push edi
push edx
call ebp
lea ecx, [eax + 1]
cmp ecx, esi
jge 0x402e40
test eax, eax
mov ecx, dword [esp + 0x14]
je 0x402e6d
push edi
jmp 0x402e72
push 0x40e1c8
call fcn.00402120
push edi
call fcn.00406442
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x403070
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push str.EPSON_StatusMonitor3_Environment_Check
push 1
xor edi, edi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0xb4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, 1
je 0x40309e
mov eax, edi
pop edi
pop esi
ret

Function at 0x4030b0
Capabilities:
Get geographical location

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push 0
push 0
push ebx
or edi, 0xffffffff
push ebp
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
test esi, esi
jle 0x403134
push esi
call fcn.00406a25
mov edi, eax
add esp, 4
test edi, edi
je 0x403128
push esi
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jle 0x403111
push edi
call fcn.00406993
add esp, 4
push edi
mov esi, eax
call fcn.00406a20
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov esi, dword [esp + 0x10]
push edi
call fcn.00406a20
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x403200
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40d49f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.00401f10
push 0x22
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
mov ebx, 1
push ecx
mov dword [esp + 0x34], ebx
call fcn.00402ba0
mov edx, dword [esi + 0x70]
push edx
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x40], 2
call fcn.00402a50
push 0x22
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x4c], 3
call fcn.00402ba0
add esp, 0x24
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 4
call fcn.004020b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 3
call fcn.00402030
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 2
call fcn.00402030
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.00402030
lea ecx, [esp + 0xc]
call fcn.00401d70
mov edi, dword [esp + 0x34]
push eax
mov ecx, edi
call fcn.00401940
test eax, eax
je 0x4032d0
mov eax, dword [esi + 0xa4]
test eax, eax
jne 0x403379
lea ecx, [esp + 0xc]
call fcn.004029c0
push 0x22
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00402ba0
push str.EPSON_XXXXX
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x40], 5
call fcn.00402a50
push 0x22
push eax
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0x4c], 6
call fcn.00402ba0
add esp, 0x24
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 7
call fcn.004020b0
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 6
call fcn.00402030
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 5
call fcn.00402030
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00402030
lea ecx, [esp + 0xc]
call fcn.00401d70
push eax
mov ecx, edi
call fcn.00401940
test eax, eax
je 0x40336b
mov eax, dword [esi + 0xa0]
test eax, eax
jne 0x403379
push 0x40e1c8
lea ecx, [esp + 0x10]
call fcn.00402120
mov esi, dword [esp + 0x30]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00402970
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x28], 0
call fcn.00402030
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x4033c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40d4d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.00401f10
mov eax, dword [esi + 0x70]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0
call fcn.004029f0
push 0x40e220
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
mov bl, 1
push edx
mov byte [esp + 0x30], bl
call fcn.00402a50
mov ecx, dword [esp + 0x3c]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x3c], 2
call fcn.00402a50
add esp, 0x18
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.004020b0
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call fcn.00402030
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.00402030
mov edi, dword [esp + 0x2c]
xor esi, esi
push esi
push esi
lea eax, [esp + 0x38]
push eax
mov ecx, edi
call fcn.00405620
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.004020b0
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], bl
call fcn.00402030
lea ecx, [esp + 0xc]
call fcn.004023d0
test eax, eax
jne 0x4034f7
lea ecx, [esp + 0x10]
call fcn.00401d70
push eax
lea ecx, [esp + 0x10]
call fcn.00401d40
test eax, eax
je 0x4034e6
push 0
inc esi
push esi
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
call fcn.00405620
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.004020b0
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], bl
call fcn.00402030
lea ecx, [esp + 0xc]
call fcn.004023d0
test eax, eax
je 0x403494
jmp 0x4034f7
lea ecx, [esp + 0x10]
call fcn.00401d70
push eax
mov ecx, edi
call fcn.00405870
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.00402030
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00402030
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x405620
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x40d7df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
mov ebp, ecx
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 8]
test eax, eax
push esi
jne 0x405660
mov esi, dword [esp + 0x30]
push 0x40e1c8
mov ecx, esi
call fcn.004029f0
jmp 0x405716
push edi
push 0x40e1c8
lea ecx, [esp + 0x10]
call fcn.004029f0
push 0x100
mov dword [esp + 0x30], 1
call fcn.00406447
push 0x100
mov edi, eax
call fcn.00406447
add esp, 8
mov esi, eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebp + 4]
push esi
push 0
lea edx, [esp + 0x24]
push edx
push edi
push eax
push ecx
mov dword [esp + 0x34], 0x100
mov dword [esp + 0x30], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4056e0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4056d6
push esi
call fcn.00402120
push edi
lea ecx, [esp + 0x10]
call fcn.00402120
push edi
call fcn.00406442
push esi
call fcn.00406442
mov esi, dword [esp + 0x3c]
add esp, 8
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00402970
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 1
mov byte [esp + 0x2c], 0
call fcn.00402030
pop edi
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc

Function at 0x405730
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40d7f8
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
jne 0x405765
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 8
mov esi, dword [esp + 0x1c]
push esi
lea ecx, [esp + 0x20]
call fcn.004029f0
mov ecx, eax
mov dword [esp + 0x10], 0
call fcn.004023f0
mov ecx, dword [edi + 4]
inc eax
push eax
mov eax, dword [esp + 0x1c]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
lea ecx, [esp + 0x1c]
inc esi
mov dword [esp + 0x10], 0xffffffff
call fcn.00402030
mov ecx, dword [esp + 8]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 8

Function at 0x4057d0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx + 8]
test eax, eax
jne 0x4057dc
xor eax, eax
ret 8
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx + 4]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
ret 8
Function at 0x405870
Capabilities:
Delete registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40d828
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x4058a6
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
push ebx
push edi
mov edi, dword [esp + 0x30]
push eax
push 0
push edi
push ecx
lea ecx, [esp + 0x20]
call fcn.00405800
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0
call fcn.00401f10
push 0
push 0
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call fcn.00405620
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 2
call fcn.004020b0
lea eax, [esp + 0x30]
push 0x40e1c8
push eax
call fcn.00401e20
add esp, 8
lea ecx, [esp + 0xc]
mov bl, al
mov byte [esp + 0x28], 1
call fcn.00402030
test bl, bl
je 0x405982
lea ecx, [ecx]
lea ecx, [esp + 0x30]
call fcn.00401d70
push eax
lea ecx, [esp + 0x14]
call fcn.00405870
test eax, eax
je 0x4059bd
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00405620
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 2
call fcn.004020b0
lea edx, [esp + 0x30]
push 0x40e1c8
push edx
call fcn.00401e20
add esp, 8
lea ecx, [esp + 0xc]
mov bl, al
mov byte [esp + 0x28], 1
call fcn.00402030
test bl, bl
jne 0x405920
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.00402030
lea ecx, [esp + 0x10]
call fcn.00405600
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.00402030
lea ecx, [esp + 0x10]
call fcn.00405600
mov ecx, dword [esp + 0x20]
pop edi
pop ebx
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x406ea5
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40e610
call fcn.004097fc
mov edi, 0x94
mov eax, edi
call fcn.0040a2b0
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 [0x411db0], ecx
mov eax, dword [esi + 4]
mov dword [0x411dbc], eax
mov edx, dword [esi + 8]
mov dword [0x411dc0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x411db4], esi
cmp ecx, 2
je 0x406f05
or esi, 0x8000
mov dword [0x411db4], esi
shl eax, 8
add eax, edx
mov dword [0x411db8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x406f40
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406f40
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x406f58
cmp eax, 0x20b
je 0x406f45
mov dword [ebp - 0x1c], esi
jmp 0x406f6c
cmp dword [ecx + 0x84], 0xe
jbe 0x406f40
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x406f66
cmp dword [ecx + 0x74], 0xe
jbe 0x406f40
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040a25c
pop ecx
test eax, eax
jne 0x406f80
push 0x1c
call fcn.00406e81
pop ecx
call fcn.004079d3
test eax, eax
jne 0x406f91
push 0x10
call fcn.00406e81
pop ecx
call fcn.0040a1ba
mov dword [ebp - 4], esi
call fcn.00409fbc
test eax, eax
jge 0x406faa
push 0x1b
call fcn.00406e5c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x413400], eax
call fcn.00409e9a
mov dword [0x411c10], eax
call fcn.00409df8
test eax, eax
jge 0x406fd0
push 8
call fcn.00406e5c
pop ecx
call fcn.00409bc5
test eax, eax
jge 0x406fe1
push 9
call fcn.00406e5c
pop ecx
call fcn.0040960c
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x406ff4
push eax
call fcn.00406e5c
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00409b5c
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x407015
movzx eax, word [ebp - 0x34]
jmp 0x407018
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00405c20
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x407036
push edi
call fcn.00409744
call fcn.00409766
jmp 0x407068
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00409837
ret
Function at 0x40b1c8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040a2b0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b25d
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x411db0]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x40b25d
cmp eax, 1
je 0x40b275
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b25d
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x40b232
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x40b259
xor eax, eax
inc eax
jmp 0x40b291
cmp esi, ebx
jae 0x40b261
xor eax, eax
jmp 0x40b291
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x411db0]
jmp 0x40b277
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bf8a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x411730]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x40bfb3
xor eax, eax
jmp 0x40c121
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4130c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x40bfe6
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0040cc96
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40c0b8
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x40c0f3
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x40c041
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40c032
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x40c015
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c081
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x40c08a
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x40c006
jmp 0x40c08c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x40c11c
cmp dword [ebp - 8], edi
je 0x40c0f3
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x40c0e5
call fcn.00408755
mov dword [eax], 9
call fcn.0040875e
mov dword [eax], esi
jmp 0x40c0ee
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c0da
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x40c08c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x40c08c
push dword [ebp - 8]
call fcn.00408767
pop ecx
or eax, 0xffffffff
jmp 0x40c11f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40c108
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x40c108
xor eax, eax
jmp 0x40c11f
call fcn.00408755
mov dword [eax], 0x1c
call fcn.0040875e
mov dword [eax], edi
jmp 0x40c0ee
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0040b484
leave
ret
Function at 0x40c640
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x411f6c], ebx
push esi
push edi
jne 0x40c6c0
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40c6fb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40f2e4
push edi
call esi
test eax, eax
mov dword [0x411f6c], eax
je 0x40c6fb
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x411f70], eax
call esi
cmp dword [0x411db0], 2
mov dword [0x411f74], eax
jne 0x40c6c0
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x411f7c], eax
je 0x40c6c0
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x411f78], eax
mov eax, dword [0x411f78]
test eax, eax
je 0x40c705
call eax
test eax, eax
je 0x40c6ec
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x411f7c]
test eax, eax
je 0x40c6ec
test byte [ebp - 8], 1
jne 0x40c705
cmp dword [0x411dbc], 4
jb 0x40c6ff
or byte [ebp + 0x12], 0x20
jmp 0x40c724
xor eax, eax
jmp 0x40c734
or byte [ebp + 0x12], 4
jmp 0x40c724
mov eax, dword [0x411f70]
test eax, eax
je 0x40c724
call eax
mov ebx, eax
test ebx, ebx
je 0x40c724
mov eax, dword [0x411f74]
test eax, eax
je 0x40c724
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x411f6c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405f60
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c028]
jne 0x405f6a
repz ret
jmp fcn.00406494
Function at 0x44efb1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x28], 0
je 0x44efda
push 0x184
push str.thrdcore.cpp
call fcn.004a9410
test eax, eax
je 0x44efda
int3
xor ecx, ecx
test ecx, ecx
jne 0x44efbd
push 0x1c
push 0
lea edx, [ebp - 0x1c]
push edx
call fcn.004059e0
add esp, 0xc
call fcn.004bfed5
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
push 0
push 0
push 1
push 0
call dword [0x53d368]
mov dword [ebp - 0xc], eax
push 0
push 0
push 1
push 0
call dword [0x53d368]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0xc], 0
je 0x44f032
cmp dword [ebp - 8], 0
jne 0x44f06b
push str.Warning:_CreateEvent_failed_in_CWinThread::CreateThread._n
push 0x52d598
call fcn.0042a5d5
add esp, 8
cmp dword [ebp - 0xc], 0
je 0x44f054
mov edx, dword [ebp - 0xc]
push edx
call dword [0x53d36c]
cmp dword [ebp - 8], 0
je 0x44f064
mov eax, dword [ebp - 8]
push eax
call dword [0x53d36c]
xor eax, eax
jmp 0x44f1a0
mov ecx, dword [ebp - 0x20]
add ecx, 0x2c
push ecx
mov edx, dword [ebp + 8]
or edx, 4
push edx
lea eax, [ebp - 0x1c]
push eax
push 0x44e7d0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00405800
add esp, 0x18
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x28], 0
jne 0x44f0a8
xor eax, eax
jmp 0x44f1a0
mov ecx, dword [ebp - 0x20]
call fcn.004b227b
cmp eax, 0xffffffff
jne 0x44f0c9
push 0x19e
push str.thrdcore.cpp
call fcn.004a9410
test eax, eax
je 0x44f0c9
int3
xor eax, eax
test eax, eax
jne 0x44f0a8
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xc]
push ecx
call dword [0x53d374]
test eax, eax
je 0x44f0f3
push 0x19f
push str.thrdcore.cpp
call fcn.004a9410
test eax, eax
je 0x44f0f3
int3
xor edx, edx
test edx, edx
jne 0x44f0cf
mov eax, dword [ebp - 0xc]
push eax
call dword [0x53d36c]
mov ecx, dword [ebp + 8]
and ecx, 4
test ecx, ecx
je 0x44f139
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x28]
push eax
call dword [0x53d360]
cmp eax, 0xffffffff
jne 0x44f133
push 0x1a4
push str.thrdcore.cpp
call fcn.004a9410
test eax, eax
je 0x44f133
int3
xor ecx, ecx
test ecx, ecx
jne 0x44f10d
cmp dword [ebp - 4], 0
je 0x44f191
push 0xffffffffffffffff
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x28]
push eax
call dword [0x53d374]
test eax, eax
je 0x44f166
push 0x1a9
push str.thrdcore.cpp
call fcn.004a9410
test eax, eax
je 0x44f166
int3
xor ecx, ecx
test ecx, ecx
jne 0x44f13f
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x28]
push eax
call dword [0x53d36c]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x28], 0
mov edx, dword [ebp - 8]
push edx
call dword [0x53d36c]
xor eax, eax
jmp 0x44f1a0
mov eax, dword [ebp - 8]
push eax
call dword [0x53d370]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc