joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412cf0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x43ec50
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push esi
call ebx
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.00409b60
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
call fcn.0040a9e0
add esp, 4
mov byte [esp + 0x24], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412d6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x4478c8
lea ecx, [esp + 0x18]
call fcn.0040d490
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412d84
mov ecx, dword [esp + 0x10]
sub eax, edx
lea esi, [eax + 1]
mov eax, dword [ecx - 0xc]
cmp esi, eax
jge 0x412df2
jmp 0x412da0
test esi, esi
jl 0x412e29
cmp esi, eax
jg 0x412e29
cmp byte [esi + ecx], 0x5c
jne 0x412dea
push esi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00409440
mov edi, dword [esp + 0x18]
push 0
push edi
call ebx
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412de6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
inc esi
cmp esi, eax
jl 0x412da0
lea eax, [ecx - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412e16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
push 0x80070057
call fcn.0040a000
int3
Function at 0x412e40
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43efcb
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
call fcn.00413c41
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x412e93
push 0x80004005
call fcn.0040a000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
push 0x208
lea ecx, [esp + 0x18]
push 0
push ecx
mov dword [esp + 0x234], 0
call fcn.00425400
add esp, 0xc
push 0x208
lea edx, [esp + 0x18]
push edx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [esp + 0x234]
mov ecx, dword [esp + 0x230]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0040ad10
add esp, 0xc
test eax, eax
jne 0x412f1c
lea eax, [esp + 0x10]
push str.The_disk_free_space_is_to_small_
push eax
xor edi, edi
call fcn.00409910
mov esi, dword [esp + 0x18]
add esp, 8
push edi
push esi
push 0x453d11
call fcn.0040d890
lea eax, [esi - 0x10]
mov dword [esp + 0x228], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412f43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00421f65
add esp, 0x220
ret
Function at 0x413370
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
xor edx, edx
mov dword [esi], edx
mov dword [esi + 4], edx
xor eax, eax
lea ebx, [ebx]
mov dword [esi + eax*4 + 8], eax
inc eax
cmp eax, 0x100
jl 0x413380
push ebp
push edi
xor edi, edi
lea ecx, [esi + 0x10]
mov dword [esp + 8], 0x40
jmp 0x4133a0
movzx ebp, byte [edx + ebx]
mov eax, dword [ecx - 8]
add ebp, eax
add edi, ebp
and edi, 0x800000ff
jns 0x4133bb
dec edi
or edi, 0xffffff00
inc edi
mov ebp, dword [esi + edi*4 + 8]
mov dword [ecx - 8], ebp
mov dword [esi + edi*4 + 8], eax
lea eax, [edx + 1]
cdq
mov ebp, 0xd
idiv ebp
mov eax, dword [ecx - 4]
movzx ebp, byte [edx + ebx]
add ebp, eax
add edi, ebp
and edi, 0x800000ff
jns 0x4133ec
dec edi
or edi, 0xffffff00
inc edi
mov ebp, dword [esi + edi*4 + 8]
mov dword [ecx - 4], ebp
mov dword [esi + edi*4 + 8], eax
lea eax, [edx + 1]
cdq
mov ebp, 0xd
idiv ebp
mov eax, dword [ecx]
movzx ebp, byte [edx + ebx]
add ebp, eax
add edi, ebp
and edi, 0x800000ff
jns 0x41341c
dec edi
or edi, 0xffffff00
inc edi
mov ebp, dword [esi + edi*4 + 8]
mov dword [ecx], ebp
mov dword [esi + edi*4 + 8], eax
lea eax, [edx + 1]
cdq
mov ebp, 0xd
idiv ebp
mov eax, dword [ecx + 4]
movzx ebp, byte [edx + ebx]
add ebp, eax
add edi, ebp
and edi, 0x800000ff
jns 0x41344c
dec edi
or edi, 0xffffff00
inc edi
mov ebp, dword [esi + edi*4 + 8]
mov dword [ecx + 4], ebp
mov dword [esi + edi*4 + 8], eax
lea eax, [edx + 1]
cdq
mov ebp, 0xd
idiv ebp
add ecx, 0x10
sub dword [esp + 8], 1
jne 0x4133a0
pop edi
pop ebp
pop ecx
ret
Function at 0x413ad0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x8008
call fcn.004277f0
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x8004], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0
call fcn.00413c41
test eax, eax
jne 0x413b06
push 0x80004005
call fcn.0040a000
mov edx, dword [eax]
push ebp
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ebp, eax
push 0x447a48
push esi
add ebp, 0x10
call fcn.00438da0
mov edi, eax
add esp, 8
test edi, edi
je 0x413ba8
push 0x447e34
push ebx
call fcn.0042292f
mov esi, eax
add esp, 8
test esi, esi
je 0x413b9f
push esi
mov dword [esp + 0x10], 1
call fcn.0042309e
add esp, 4
test eax, eax
jne 0x413b96
push 0x8000
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.00439310
add esp, 0xc
test eax, eax
jle 0x413b96
push esi
push eax
lea edx, [esp + 0x18]
push 1
push edx
call fcn.0042301c
add esp, 0x10
test eax, eax
je 0x413b8e
push esi
call fcn.0042309e
add esp, 4
test eax, eax
je 0x413b53
jmp 0x413b96
mov dword [esp + 0xc], 0
push esi
call fcn.004229bd
add esp, 4
push edi
call fcn.00439780
add esp, 4
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop ebp
test edx, edx
jg 0x413bc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x8008]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.00421f65
add esp, 0x8008
ret

Function at 0x41d62a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41d671
call fcn.004180fe
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41d671
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41d68d
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041d1a4
mov esi, eax
test edi, edi
je 0x41d68b
test ebx, ebx
je 0x41d68b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x421f65
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44fb64]
jne 0x421f6f
repz ret
jmp fcn.00427dc3
Function at 0x433e86
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00429941
and dword [ebp - 4], 0
cmp dword [0x453bb0], 0
mov ebx, eax
jne 0x433f37
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x433fe8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x443d94
push edi
call esi
test eax, eax
je 0x433fe8
push eax
call fcn.004298cf
mov dword [esp], 0x443d84
push edi
mov dword [0x453bb0], eax
call esi
push eax
call fcn.004298cf
mov dword [esp], 0x443d70
push edi
mov dword [0x453bb4], eax
call esi
push eax
call fcn.004298cf
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x453bb8], eax
call esi
push eax
call fcn.004298cf
pop ecx
mov dword [0x453bc0], eax
test eax, eax
je 0x433f37
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004298cf
pop ecx
mov dword [0x453bbc], eax
mov eax, dword [0x453bbc]
cmp eax, ebx
je 0x433f8f
cmp dword [0x453bc0], ebx
je 0x433f8f
push eax
call fcn.0042994a
push dword [0x453bc0]
mov esi, eax
call fcn.0042994a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x433f8f
test edi, edi
je 0x433f8f
call esi
test eax, eax
je 0x433f86
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x433f86
test byte [ebp - 0xc], 1
jne 0x433f8f
or dword [ebp + 0x10], 0x200000
jmp 0x433fc8
mov eax, dword [0x453bb4]
cmp eax, ebx
je 0x433fc8
push eax
call fcn.0042994a
pop ecx
test eax, eax
je 0x433fc8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x433fc8
mov eax, dword [0x453bb8]
cmp eax, ebx
je 0x433fc8
push eax
call fcn.0042994a
pop ecx
test eax, eax
je 0x433fc8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x453bb0]
call fcn.0042994a
pop ecx
test eax, eax
je 0x433fe8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x433fea
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x439030
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esi + 4]
cmp edi, 2
jae 0x4390a4
test edi, edi
je 0x43904c
mov eax, dword [esi]
mov ecx, dword [esi + 0x44]
mov dl, byte [eax]
mov byte [ecx], dl
call fcn.004252ae
mov edx, 0x4000
mov ecx, edi
mov dword [eax], 0
mov eax, dword [esi + 0x40]
sar edx, cl
push eax
mov eax, dword [esi + 0x44]
add eax, edi
push edx
push 1
push eax
call fcn.004233a6
add esp, 0x10
test eax, eax
jne 0x439089
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x439089
mov dword [esi + 0x38], 0xffffffff
mov edx, dword [esi + 4]
add edx, eax
mov dword [esi + 4], edx
mov eax, edx
mov edx, dword [esi + 0x44]
cmp eax, 2
mov dword [esi], edx
jae 0x4390a4
mov dword [esi + 0x58], eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi]
mov edx, dword [0x444400]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, edx
jne 0x4391c0
mov ecx, dword [0x444404]
xor edx, edx
mov dl, byte [eax + 1]
cmp edx, ecx
jne 0x4391c0
mov ecx, dword [esi + 4]
add eax, 2
add ecx, 0xfffffffe
push esi
mov dword [esi + 4], ecx
mov dword [esi], eax
call fcn.004391d0
push esi
mov edi, eax
call fcn.004391d0
add esp, 8
cmp edi, 8
mov ebx, eax
jne 0x4391b5
test bl, 0xe0
jne 0x4391b5
mov edi, 6
push esi
call fcn.004391d0
add esp, 4
dec edi
jne 0x439103
test bl, 4
je 0x439146
push esi
call fcn.004391d0
push esi
mov edi, eax
call fcn.004391d0
shl eax, 8
add edi, eax
add esp, 8
mov eax, edi
dec edi
test eax, eax
je 0x439146
push esi
call fcn.004391d0
add esp, 4
cmp eax, 0xffffffff
je 0x439146
mov ecx, edi
dec edi
test ecx, ecx
jne 0x439131
test bl, 8
je 0x43916a
push esi
call fcn.004391d0
add esp, 4
test eax, eax
je 0x43916a
cmp eax, 0xffffffff
je 0x43916a
push esi
call fcn.004391d0
add esp, 4
test eax, eax
jne 0x439158
test bl, 0x10
je 0x43918e
push esi
call fcn.004391d0
add esp, 4
test eax, eax
je 0x43918e
cmp eax, 0xffffffff
je 0x43918e
push esi
call fcn.004391d0
add esp, 4
test eax, eax
jne 0x43917c
test bl, 2
je 0x4391a4
mov edi, 2
push esi
call fcn.004391d0
add esp, 4
dec edi
jne 0x439198
mov edx, dword [esi + 0x3c]
pop edi
neg edx
sbb edx, edx
and edx, 0xfffffffd
mov dword [esi + 0x38], edx
pop esi
pop ebx
ret
mov dword [esi + 0x38], 0xfffffffd
pop edi
pop esi
pop ebx
ret
mov dword [esi + 0x58], 1
pop edi
pop esi
pop ebx
ret

Function at 0x4391d0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4391e1
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi + 4]
test eax, eax
jne 0x43922e
call fcn.004252ae
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call fcn.004233a6
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x439229
mov edx, dword [esi + 0x40]
mov dword [esi + 0x3c], 1
or eax, 0xffffffff
test byte [edx + 0xc], 0x20
je 0x439240
mov dword [esi + 0x38], eax
pop esi
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi + 4]
xor ecx, ecx
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
mov eax, ecx
pop esi
ret
Function at 0x4395a0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x439657
cmp byte [esi + 0x5c], 0x77
jne 0x439657
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
test edi, edi
mov dword [esi], ebp
mov dword [esi + 4], edi
je 0x43963b
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4395f5
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x48]
push ecx
push 0x4000
push 1
push eax
mov dword [esi + 0xc], eax
call fcn.0042301c
add esp, 0x10
cmp eax, 0x4000
jne 0x439634
mov dword [esi + 0x10], eax
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x68]
add eax, edx
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x10]
add ecx, eax
push 0
push esi
mov dword [esi + 0x68], ecx
call fcn.00437a20
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x64]
sub edx, ecx
add esp, 8
mov dword [esi + 0x64], edx
mov edx, dword [esi + 0x10]
sub dword [esi + 0x68], edx
mov dword [esi + 0x38], eax
test eax, eax
jne 0x43963b
test ecx, ecx
jne 0x4395ca
jmp 0x43963b
mov dword [esi + 0x38], 0xffffffff
mov eax, dword [esi + 0x4c]
push edi
push ebp
push eax
call fcn.0043cd30
mov ecx, dword [esi + 4]
add esp, 0xc
mov dword [esi + 0x4c], eax
mov eax, edi
pop edi
pop ebp
sub eax, ecx
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret

Function at 0x439660
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x439726
cmp byte [esi + 0x5c], 0x77
jne 0x439726
mov ebp, dword [esp + 0x18]
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x10]
mov edi, 0x4000
sub edi, eax
je 0x4396b3
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x48]
push eax
push edi
push 1
push ecx
call fcn.0042301c
add esp, 0x10
cmp eax, edi
jne 0x43970a
mov edx, dword [esi + 0x48]
mov dword [esi + 0x10], 0x4000
mov dword [esi + 0xc], edx
test ebx, ebx
jne 0x439715
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x68]
add ecx, eax
push ebp
push esi
mov dword [esi + 0x68], ecx
call fcn.00437a20
mov ecx, dword [esi + 0x10]
mov ebx, dword [esi + 0x68]
add esp, 8
sub ebx, ecx
test edi, edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x68], ebx
jne 0x4396e6
cmp eax, 0xfffffffb
jne 0x4396e6
mov dword [esi + 0x38], edi
test ecx, ecx
jne 0x4396f4
cmp dword [esi + 0x38], 1
je 0x4396f4
xor ebx, ebx
jmp 0x4396f9
mov ebx, 1
mov eax, dword [esi + 0x38]
test eax, eax
je 0x439683
cmp eax, 1
jne 0x439715
jmp 0x439683
or eax, 0xffffffff
pop edi
mov dword [esi + 0x38], eax
pop esi
pop ebp
pop ebx
ret
mov esi, dword [esi + 0x38]
pop edi
mov eax, esi
dec eax
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
ret
Function at 0x401000
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x40b084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004055d0
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401070
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
lea ecx, [ebp - 0x228]
call fcn.004016c0
mov ebx, 0xd
lea eax, [ebp - 0x228]
call fcn.004011b0
cmp dword [ebp - 0x214], 8
jb 0x4010b8
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x22c], ecx
jmp 0x4010c4
lea edx, [ebp - 0x228]
mov dword [ebp - 0x22c], edx
push 0x100
push 0x64
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 0
mov edi, eax
mov eax, dword [ebp - 0x22c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea ecx, [ebp - 0x230]
push ecx
push edi
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x44
lea edx, [ebp - 0x284]
push 0
push edx
call fcn.004055d0
mov eax, dword [ebp - 0x228]
mov esi, 8
add esp, 0xc
mov dword [ebp - 0x258], 0x80
cmp dword [ebp - 0x214], esi
jae 0x40115f
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x284]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 0x214], esi
pop edi
pop esi
pop ebx
jb 0x40119c
mov eax, dword [ebp - 0x228]
push eax
call fcn.004018ae
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0040189f
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40189f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b084]
jne 0x4018a9
repz ret
jmp fcn.0040201d
Function at 0x40444c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40b084]
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.004032fe
and dword [ebp - 0x14], 0
cmp dword [0x40c9a8], 0
mov dword [ebp - 0x18], eax
jne 0x4044ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4045a7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4045a7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40c9a8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40c9ac], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40c9b0], eax
call edi
push eax
call esi
mov dword [0x40c9b8], eax
test eax, eax
je 0x4044ff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40c9b4], eax
mov eax, dword [0x40c9b4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404558
cmp dword [0x40c9b8], ecx
je 0x404558
push eax
call esi
push dword [0x40c9b8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404558
test ebx, ebx
je 0x404558
call edi
test eax, eax
je 0x40454f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40454f
test byte [ebp - 8], 1
jne 0x404558
or dword [ebp + 0x10], 0x200000
jmp 0x40458b
mov eax, dword [0x40c9ac]
cmp eax, dword [ebp - 0x18]
je 0x40458b
push eax
call esi
test eax, eax
je 0x40458b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40458b
mov eax, dword [0x40c9b0]
cmp eax, dword [ebp - 0x18]
je 0x40458b
push eax
call esi
test eax, eax
je 0x40458b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40c9a8]
call esi
test eax, eax
je 0x4045a7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4045a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040189f
leave
ret
Function at 0x431090
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4640cd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x47f4ac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esi], 0x46c544
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov ebx, 1
mov dword [esi + 0x10], ebx
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 4], edi
mov dword [esi + 0x20], edi
mov dword [ebp - 4], edi
mov dword [esi], 0x469b8c
mov eax, dword [0x47f000]
mov edx, dword [eax + 0xc]
mov ecx, 0x47f000
call edx
add eax, 0x10
mov dword [esi + 0x2c], eax
mov byte [ebp - 4], bl
mov eax, dword [0x47f000]
mov edx, dword [eax + 0xc]
mov ecx, 0x47f000
call edx
add eax, 0x10
mov dword [esi + 0x30], eax
mov byte [ebp - 4], 2
lea ebx, [esi + 0x40]
push 8
mov dword [ebp - 0x14], ebx
mov dword [ebx], edi
call fcn.0047460e
add esp, 4
cmp eax, edi
je 0x431226
mov dword [ebx], eax
mov dword [eax + 4], edi
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [ebx]
mov dword [eax], ebx
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
lea eax, [esi + 0x58]
push 0x1388
push eax
mov byte [ebp - 4], 4
call dword [fcn.004660e8]
mov byte [ebp - 4], 5
mov edx, dword [0x47f000]
mov eax, dword [edx + 0xc]
mov ecx, 0x47f000
call eax
add eax, 0x10
mov dword [esi + 0x70], eax
mov byte [ebp - 4], 6
mov edx, dword [0x47f000]
mov eax, dword [edx + 0xc]
mov ecx, 0x47f000
call eax
add eax, 0x10
mov dword [esi + 0x74], eax
mov byte [ebp - 4], 7
mov edx, dword [0x47f000]
mov eax, dword [edx + 0xc]
mov ecx, 0x47f000
call eax
add eax, 0x10
mov dword [esi + 0x78], eax
mov byte [ebp - 4], 8
push 0x468e28
lea eax, [esi + 0x2c]
push eax
xor ebx, ebx
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
call fcn.00426980
push 0x468e28
lea eax, [esi + 0x30]
push eax
call fcn.00426980
push 0x468e28
lea eax, [esi + 0x70]
push eax
call fcn.00426980
push 0x468e28
lea eax, [esi + 0x74]
push eax
call fcn.00426980
push 0x468e28
lea eax, [esi + 0x78]
push eax
call fcn.00426980
mov dword [ebp - 4], 0xffffffff
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
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], edi
call fcn.004744ab
push 0x476664
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], 0x4667cc
call fcn.0047678a
int3