joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b7e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46b698
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00464418
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043b180
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00464346
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00460c0a
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00460c0a
push 1
push 0
push 0
mov ecx, esi
call fcn.00460bb2
push 1
push 0
push 1
mov ecx, esi
call fcn.00460bb2
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046448a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43b960
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46b6b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00464418
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043b180
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00464346
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43ba24
cmp dword [esp + 0x40], 1
jne 0x43ba22
cmp ecx, eax
jge 0x43ba24
mov eax, ecx
cmp eax, 0xc8
jge 0x43ba30
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043b7e0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046448a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43c1b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46b723
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045f028
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004646c0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00465bdc
test eax, eax
je 0x43c2cc
mov ecx, dword [esp + 0x3c]
call fcn.004646ed
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43c290
push edi
mov ecx, esi
call fcn.00461d5a
mov ecx, esi
call fcn.0043c430
cmp dword [esp + 0x38], 1
jne 0x43c2c5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00461e95
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43ed00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43ed33
push esi
call fcn.00441df0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43ed2c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43edb9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43eda2
mov eax, dword [esi + 8]
test eax, eax
je 0x43ed57
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43ed9e
cmp eax, 2
je 0x43eda2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43ed4a
cmp eax, 3
je 0x43ed7d
cmp eax, 1
jne 0x43ed4a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43ed4a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43ed4a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043ede0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43edc8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043ede0
add esp, 4
pop esi
ret

Function at 0x44a8f0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x44a993
test eax, eax
jbe 0x44a993
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44a993
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x44a93e
xor esi, esi
jmp 0x44a944
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44a96f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0044c890
add esi, eax
push esi
mov ebx, esi
call fcn.0044c890
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44a950
pop ebp
test edi, edi
pop edi
jne 0x44a993
test ebx, ebx
je 0x44a993
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0044ed10
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44aad5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x44abed
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44abed
mov eax, dword [esi + 0x3c]
push eax
call fcn.0045f47a
mov esi, eax
test esi, esi
je 0x44abed
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x44abed
mov ecx, esi
call fcn.0044aa40
cmp edi, eax
jge 0x44abed
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x44ab73
mov dword [esp + 0x34], 1
jmp 0x44abce
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44abed
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044a040
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x45fe1d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45fe55
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.0045ded4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045deac
jmp 0x45fe61
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x461512
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 0x461554
call fcn.00466fc7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x461554
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46154b
xor eax, eax
jmp 0x46155c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00461562
pop edi
pop esi
pop ebx
ret 4
Function at 0x4674f7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x467525
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x467543
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046745d
jmp 0x467543
mov eax, dword [esi + 0x14]
test eax, eax
je 0x467543
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046745d
test edi, edi
mov eax, edi
jne 0x46752d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401880
Capabilities:
Parse url

Disassembly:
sub esp, 0x860
mov eax, dword [0x4121f4]
xor eax, esp
mov dword [esp + 0x85c], eax
mov eax, 0x104
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
mov dword [esp + 8], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x44c]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x24], eax
push ebx
lea edx, [esi + 8]
lea eax, [esp + 0x658]
push edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
lea edx, [esp + 0x24c]
lea edi, [esi + 0x210]
mov eax, ecx
mov dword [esp + 8], 0x3c
mov dword [esp + 0x38], 0x410
mov dword [esp + 0xc], edx
mov dword [esp + 0x34], edi
mov word [esp + 0x20], 0
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x401905
lea edx, [esp + 8]
push edx
sub eax, ebx
push 0
sar eax, 1
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x401940
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x85c]
xor ecx, esp
call fcn.004025e6
add esp, 0x860
ret
mov eax, dword [esp + 0x14]
mov ecx, eax
and ecx, 3
cmp cl, 3
je 0x401955
and eax, 4
cmp al, 4
jne 0x401927
mov dx, word [esp + 0x20]
mov eax, edi
mov word [esi + 0xa34], dx
mov dword [esi + 4], 3
mov dword [esi], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401973
sub eax, edx
sar eax, 1
lea eax, [esi + eax*2 + 0x20e]
cmp edi, eax
mov dword [esi + 0xa30], eax
je 0x4019ac
mov eax, dword [esi + 0xa30]
add eax, 0xfffffffe
cmp word [eax], 0x2f
je 0x4019ac
cmp edi, eax
mov dword [esi + 0xa30], eax
jne 0x401993
mov ecx, dword [esp + 0x864]
pop edi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004025e6
add esp, 0x860
ret

Function at 0x401a10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 0xc]
push eax
xor esi, esi
lea ecx, [esp + 8]
push ecx
push esi
push 0x20019
push esi
push esi
push esi
push edx
push 0x80000002
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x401a48
xor eax, eax
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push edi
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x401a88
push 0x40fc1c
push 4
push edi
call fcn.004030f2
mov eax, dword [esp + 0x10]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 4]
push eax
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x401aa0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREMYGAMECrossFire
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x401ad4
xor eax, eax
add esp, 8
ret
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401ae0
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [esp]
push edx
push esi
push 1
push 0
push str.InstallPath
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x401ace
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret

Function at 0x401d60
Capabilities:
Create process on windows
Set current directory

Disassembly:
sub esp, 0x248
mov eax, dword [0x4121f4]
xor eax, esp
mov dword [esp + 0x244], eax
push 0x206
lea eax, [esp + 0x42]
push 0
push eax
mov word [esp + 0x48], 0
call fcn.00406a80
push str.Reviser.exe
push esi
push str._s_s
lea edx, [esp + 0x54]
call fcn.004020d0
push 0x3c
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00406a80
add esp, 0x24
lea edx, [esp + 0x3c]
push esi
mov dword [esp + 4], 0x3c
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], str.restart__gidx:8
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 5
mov dword [esp + 8], 0x40
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [esp]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x401e26
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_execute__d_.
lea edx, [esp + 0x44]
call fcn.004020d0
add esp, 8
push 0x10
push str.ERROR
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.004025e6
add esp, 0x248
ret
Function at 0x4021d0
Capabilities:
Create process on windows
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
xor eax, eax
push esi
mov esi, ecx
mov ecx, dword [0x413e18]
push edi
mov edx, 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esi + 0xc], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esi + 8], edx
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
add ecx, 4
push edx
lea edx, [esp + 0x10]
push edx
xor edi, edi
mov dword [esp + 0x14], str.http:__launch.mygame.ph_package_LauncherSetup_PH.exe
mov dword [esp + 0x18], str.LauncherSetup.exe
call eax
test eax, eax
jne 0x40223f
mov dword [esi + 8], 4
mov dword [esi + 0xc], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x3c
lea ecx, [esp + 0x28]
push edi
push ecx
call fcn.00406a80
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 0x3c
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], 5
mov dword [esp + 0x2c], 0x40
mov dword [esi + 8], 2
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4022a1
mov dword [esi + 8], 5
mov dword [esi + 0xc], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x5c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x10]
push 0x20
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esi + 0xc], edi
pop edi
mov dword [esi + 8], 3
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4025e6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4121f4]
jne 0x4025f0
repz ret
jmp fcn.00404d78
Function at 0x40385f
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 + 0x412068]
je 0x40387a
inc edi
cmp edi, 0x17
jb 0x40386b
cmp edi, 0x17
jae 0x4039fa
push ebp
push 3
call fcn.00408b70
cmp eax, 1
pop ecx
je 0x4039c6
push 3
call fcn.00408b70
test eax, eax
pop ecx
jne 0x4038ae
cmp dword [0x412004], 1
je 0x4039c6
cmp ebx, 0xfc
je 0x4039f9
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4132a8
push ebp
call fcn.00408b0b
add esp, 0xc
test eax, eax
je 0x4038e4
push esi
push esi
push esi
push esi
push esi
call fcn.00403310
add esp, 0x14
push 0x104
mov esi, 0x4132c1
push esi
push 0
mov byte [0x4133c5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403928
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00408b0b
add esp, 0xc
test eax, eax
je 0x403928
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00403310
add esp, 0x14
push esi
call fcn.00408a80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40396d
push esi
call fcn.00408a80
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4135bc
push 0x40e7f4
sub ecx, eax
push ecx
push eax
call fcn.004089cb
add esp, 0x14
test eax, eax
je 0x40396d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00403310
add esp, 0x14
jmp 0x40396f
xor esi, esi
push 0x40e7f0
push ebx
push ebp
call fcn.0040895a
add esp, 0xc
test eax, eax
je 0x40398f
push esi
push esi
push esi
push esi
push esi
call fcn.00403310
add esp, 0x14
push dword [edi*8 + 0x41206c]
push ebx
push ebp
call fcn.0040895a
add esp, 0xc
test eax, eax
je 0x4039b1
push esi
push esi
push esi
push esi
push esi
call fcn.00403310
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040879d
add esp, 0xc
jmp 0x4039f9
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4039f9
cmp ebp, 0xffffffff
je 0x4039f9
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41206c]
push dword [esi]
call fcn.00408a80
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 0x40879d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00404424
xor ebx, ebx
cmp dword [0x413cdc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x408873
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x408953
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x408953
push eax
call fcn.004043b6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x413cdc], eax
call esi
push eax
call fcn.004043b6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x413ce0], eax
call esi
push eax
call fcn.004043b6
mov dword [0x413ce4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004035ec
test eax, eax
pop ecx
pop ecx
je 0x408841
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403310
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x408873
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004043b6
cmp eax, ebx
pop ecx
mov dword [0x413cec], eax
je 0x408873
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004043b6
pop ecx
mov dword [0x413ce8], eax
mov eax, dword [0x413ce8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4088f8
cmp dword [0x413cec], ecx
je 0x4088f8
push eax
call fcn.0040442d
push dword [0x413cec]
mov esi, eax
call fcn.0040442d
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4088f8
cmp edi, ebx
je 0x4088f8
call esi
cmp eax, ebx
je 0x4088c5
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4088c5
test byte [ebp - 0x18], 1
jne 0x4088f8
lea eax, [ebp - 0x10]
push eax
call fcn.00403623
test eax, eax
pop ecx
je 0x4088e0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403310
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4088ef
or dword [ebp + 0x10], 0x200000
jmp 0x408933
or dword [ebp + 0x10], 0x40000
jmp 0x408933
mov eax, dword [0x413ce0]
cmp eax, dword [ebp - 8]
je 0x408933
push eax
call fcn.0040442d
cmp eax, ebx
pop ecx
je 0x408933
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x408933
mov eax, dword [0x413ce4]
cmp eax, dword [ebp - 8]
je 0x408933
push eax
call fcn.0040442d
cmp eax, ebx
pop ecx
je 0x408933
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x413cdc]
call fcn.0040442d
cmp eax, ebx
pop ecx
je 0x408953
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408955
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret