joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc7c6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x516108]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x4888ac
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x4888ac
call fcn.00444e20
mov esi, eax
jmp 0x48899c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4888cf
call fcn.00444e20
jmp 0x48898f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x4888ed
call fcn.00444e20
jmp 0x48898f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x48890e
mov esi, 0x8007000e
jmp 0x488991
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004876d0
jmp 0x488938
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x48894f
mov esi, 0x8007000e
jmp 0x488991
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x48896f
call fcn.00444e20
jmp 0x48898f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004886a0
mov esi, eax
test edi, edi
je 0x48899c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4889c0
lea ecx, [ebp - 0x418]
call fcn.00487bb0
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048e923
mov esp, ebp
pop ebp
ret 0x10
Function at 0x489fe0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x489ff9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48a005
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x48a000
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x491498
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4c46e2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c4561

Function at 0x4caf14
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cabd4
Function at 0x4713c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x440015
lea edi, [esi - 0x3f015]
push edi
jmp 0x4713da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4713e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4713d0
mov eax, 1
add ebx, ebx
jne 0x4713f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x471404
jne 0x471423
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x471423
dec eax
add ebx, ebx
jne 0x471410
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4713e8
add ebx, ebx
jne 0x47141f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x471475
xor ecx, ecx
sub eax, 3
jb 0x47143b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4714aa
sar eax, 1
mov ebp, eax
jmp 0x471446
add ebx, ebx
jne 0x471446
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x471414
inc ecx
add ebx, ebx
jne 0x471454
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x471414
add ebx, ebx
jne 0x471461
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x471456
jne 0x471472
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x471456
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x471494
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x471486
jmp 0x4713d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x471494
add edi, ecx
jmp 0x4713d6
pop esi
mov edi, esi
mov ecx, 0x95e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4714b2
cmp byte [edi], 6
jne 0x4714b2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4714b7
lea edi, [esi + 0x6e000]
mov eax, dword [edi]
or eax, eax
je 0x471526
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x72504]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x72628]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4714e4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x72630]
or eax, eax
je 0x471520
mov dword [ebx], eax
add ebx, 4
jmp 0x471501
call dword [esi + 0x7262c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x471557
cmp al, 0xef
ja 0x47154a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x47152c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x471539
mov ebp, dword [esi + 0x72634]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x715b2]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4715a3
sub esp, 0xffffff80
jmp 0x4010ba
Function at 0x4a5280
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6e000]
push edi
jmp 0x4a529a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4a52a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a5290
mov eax, 1
add ebx, ebx
jne 0x4a52b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4a52c4
jne 0x4a52e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a52e3
dec eax
add ebx, ebx
jne 0x4a52d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4a52a8
add ebx, ebx
jne 0x4a52df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4a5335
xor ecx, ecx
sub eax, 3
jb 0x4a52fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4a536a
sar eax, 1
mov ebp, eax
jmp 0x4a5306
add ebx, ebx
jne 0x4a5306
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a52d4
inc ecx
add ebx, ebx
jne 0x4a5314
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a52d4
add ebx, ebx
jne 0x4a5321
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4a5316
jne 0x4a5332
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a5316
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4a5354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4a5346
jmp 0x4a5296
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4a5354
add edi, ecx
jmp 0x4a5296
pop esi
mov edi, esi
mov ecx, 0x318d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4a5372
cmp byte [edi], 0x1b
jne 0x4a5372
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4a5377
lea edi, [esi + 0xa2000]
mov eax, dword [edi]
or eax, eax
je 0x4a53ef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb88e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb8a00]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4a53a4
mov ecx, edi
jns 0x4a53d3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb8a04]
or eax, eax
je 0x4a53e9
mov dword [ebx], eax
add ebx, 4
jmp 0x4a53c1
call dword [esi + 0xb8a14]
mov ebp, dword [esi + 0xb8a08]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4a5423
sub esp, 0xffffff80
jmp 0x453e3d
Function at 0x4010a0
Capabilities:
Hash data using sha256

Disassembly:
push esi
push edi
push 0x128
mov edi, ecx
push 0
push edi
call fcn.00414350
add esp, 0xc
add edi, 0x100
mov esi, 0x42a610
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret

Function at 0x405001
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword [esp + 4]
push 0xfffffffffffffffb
pop eax
mov dl, byte [eax + ecx]
cmp dl, 0x90
je 0x405015
cmp dl, 0xcc
jne 0x40505f
inc eax
cmp eax, 0xffffffff
jle 0x405008
mov al, byte [ecx]
cmp al, 0x8b
je 0x405025
cmp al, 0x89
jne 0x40505f
cmp byte [ecx + 1], 0xff
jne 0x40505f
mov eax, 0x4053b7
mov byte [ecx - 5], 0xe9
sub eax, ecx
mov dword [ecx - 4], eax
lea eax, [ecx + 2]
mov dword [0x4418b0], eax
mov eax, 0xf9eb
push 0
push 0
mov word [ecx], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, 1
ret 0xc
xor al, al
jmp 0x40505c

Function at 0x4050c5
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi], edi
jne 0x405119
push edi
push edi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [esi], eax
test eax, eax
je 0x405119
mov ecx, dword [esp + 0x10]
push 0x20
pop eax
test ecx, ecx
jne 0x4050ee
mov ecx, eax
cdq
idiv ecx
push 0x40
push 0x3000
lea eax, [edx + ecx]
mov dword [esi + 8], eax
shl eax, 7
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esi + 4], eax
test eax, eax
jne 0x405119
mov dword [esi], edi
pop edi
pop esi
ret 8

Function at 0x4055b8
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebp
push esi
xor ebp, ebp
push ebp
push ebp
push str.PATH
call ebx
mov esi, eax
test esi, esi
je 0x405646
push edi
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sym.plugin_container.exe_moz_xmalloc
pop ecx
push esi
mov edi, eax
push edi
push str.PATH
call ebx
lea ecx, [esi - 1]
cmp ecx, eax
jne 0x40563e
push ebp
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
call ebp
mov ebx, eax
test ebx, ebx
je 0x40563e
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sym.plugin_container.exe_moz_xmalloc
pop ecx
push ebx
mov esi, eax
push esi
push edi
call ebp
test eax, eax
je 0x405637
push esi
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.0040f554
pop ecx
push edi
call fcn.0040f554
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x405a66
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov ebp, edx
push pe_nt_image_headers32
mov dword [esp + 0x20], ebx
call sym.plugin_container.exe_moz_xmalloc
pop ecx
mov esi, eax
mov dword [esp + 0x10], 0x80
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x44
push eax
lea eax, [esp + 0x14]
push eax
push esi
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
jne 0x405b17
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x405b15
cmp dword [esp + 0x14], 0x44
ja 0x405b1a
mov eax, dword [esp + 0x10]
cmp eax, 0x80
jbe 0x405af7
xor ecx, ecx
mov edi, esi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sym.plugin_container.exe_moz_xmalloc
push edi
mov esi, eax
call fcn.0040f554
push ebx
call fcn.0040f554
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push esi
lea eax, [esp + 0x20]
push eax
push ebp
push dword [esp + 0x30]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
setne bl
push esi
call fcn.0040f554
pop ecx
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x10
ret

Function at 0x4083e2
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x4083f2
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4083ef
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x4083ef
add ecx, 0x2b
cmp word [eax + 0x18], cx
sete al
ret
Function at 0x40c2b7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x43f4b0]
xor eax, esp
mov dword [esp + 0x268], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 0x10]
and dword [esp + 0x1c], 0
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebx
mov ebx, dword [ebp + 0x30]
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x2c]
push eax
push ecx
push edx
push dword [ebp + 0x20]
mov dword [esp + 0x2c], ebx
push dword [ebp + 0x1c]
mov ebx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x48]
push edi
push ebx
push esi
call dword [esp + 0x3c]
test eax, eax
je 0x40c332
xor eax, eax
inc eax
jmp 0x40c433
mov edx, esi
mov ecx, str.CreateProcessW
call fcn.0040732d
call fcn.0040d307
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
cmp dword [eax], 1
jle 0x40c431
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x18]
mov ecx, ebx
push 1
push 0x10
pop edx
mov dword [esp + 0x18], eax
call fcn.0040d47a
pop ecx
test al, al
je 0x40c427
call fcn.0040d421
mov edi, eax
test edi, edi
je 0x40c427
and dword [esp + 0x10], 0
lea eax, [esp + 0x68]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40c3ad
cmp eax, 0x104
jae 0x40c3ad
lea eax, [esp + 0x68]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 8]
and dword [esp + 0x34], 0
add eax, edi
push 0x30
mov dword [esp + 0x20], eax
lea eax, [esp + 0x3c]
push 0
push eax
mov dword [esp + 0x24], edi
call fcn.00414350
add esp, 0xc
mov dword [esp + 0x24], 0x10
lea eax, [esp + 0x34]
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0040c814
add esp, 0x14
test eax, eax
jne 0x40c427
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esp + 0x3c], 0
jne 0x40c431
mov edx, esi
mov ecx, str.CreateProcessW
call fcn.0040742c
jmp 0x40c32a
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040eefd
mov esp, ebp
pop ebp
ret 0x2c
Function at 0x40c44a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x43f4b0]
xor eax, esp
mov dword [esp + 0x268], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
and dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp + 0x30]
push ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x2c]
push eax
push ecx
push edx
push dword [ebp + 0x20]
mov dword [esp + 0x2c], ebx
push dword [ebp + 0x1c]
mov ebx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x2c]
push edi
push esi
push dword [esp + 0x30]
call ebx
test eax, eax
je 0x40c4be
xor eax, eax
inc eax
jmp 0x40c553
mov ebx, dword [esp + 0xc]
mov ecx, str.CreateProcessA
push 2
mov edx, ebx
call fcn.00407311
pop ecx
call fcn.0040d307
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
cmp dword [eax], 1
jle 0x40c551
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
push 1
push 0x10
pop edx
mov dword [esp + 0x20], eax
call fcn.0040d47a
pop ecx
test al, al
je 0x40c547
call fcn.0040d421
mov dword [esp + 0x24], eax
test eax, eax
je 0x40c547
xor ecx, ecx
xor edi, edi
mov dword [esp + 0xc], ecx
test esi, esi
je 0x40c529
mov ecx, esi
call fcn.0040d6dc
mov edi, eax
test edi, edi
je 0x40c547
mov ecx, dword [esp + 0xc]
test ebx, ebx
je 0x40c56a
mov ecx, ebx
call fcn.0040d6dc
mov ecx, eax
mov dword [esp + 0xc], eax
test ecx, ecx
jne 0x40c56a
xor edx, edx
mov ecx, edi
call fcn.0040d95a
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040eefd
mov esp, ebp
pop ebp
ret 0x2c
xor esi, esi
test edi, edi
je 0x40c579
mov eax, dword [edi + 4]
mov dword [esp + 0x14], eax
jmp 0x40c57d
mov dword [esp + 0x14], esi
test ecx, ecx
je 0x40c58a
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
jmp 0x40c58e
mov dword [esp + 0x10], esi
lea eax, [esp + 0x68]
mov dword [esp + 0x20], esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40c5b5
cmp eax, 0x104
jae 0x40c5b5
lea eax, [esp + 0x68]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x24]
push 0x30
push esi
mov dword [esp + 0x34], ecx
mov eax, dword [ecx + 8]
add eax, ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], eax
lea eax, [esp + 0x40]
push eax
call fcn.00414350
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x28], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x24], 0x10
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0040c939
add esp, 0x14
xor edx, edx
mov ecx, edi
mov esi, eax
call fcn.0040d95a
mov ecx, dword [esp + 0xc]
xor edx, edx
call fcn.0040d95a
test esi, esi
jne 0x40c547
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esp + 0x3c], esi
jne 0x40c551
mov edx, ebx
mov ecx, str.CreateProcessA
call fcn.00407412
jmp 0x40c4b6
Function at 0x416e5c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43f4b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00414035
mov dword [ebp - 0x14], eax
cmp dword [0x4415c0], esi
jne 0x416f4f
push 0x800
push esi
push 0x4256f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x416edc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41702f
push esi
push esi
push 0x4256f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41702f
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41702f
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4415c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4415c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4415c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4415d0], eax
test eax, eax
je 0x416f4c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4415cc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x416f74
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x416f67
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x416f89
push 4
pop eax
jmp 0x417031
cmp dword [ebp - 0x14], esi
je 0x416f89
push dword [0x4415c0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x416f6e
mov eax, dword [0x4415cc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x416fe7
cmp dword [0x4415d0], edi
je 0x416fe7
push eax
call ebx
push dword [0x4415d0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x416fe7
test eax, eax
je 0x416fe7
call ecx
test eax, eax
je 0x416fdc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x416fdc
test byte [ebp - 8], 1
jne 0x416fe7
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x417017
mov eax, dword [0x4415c4]
cmp eax, edi
je 0x417014
push eax
call ebx
test eax, eax
je 0x417014
call eax
mov esi, eax
test esi, esi
je 0x417014
mov eax, dword [0x4415c8]
cmp eax, edi
je 0x417014
push eax
call ebx
test eax, eax
je 0x417014
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4415c0]
call ebx
test eax, eax
je 0x41702f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x417031
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040eefd
mov esp, ebp
pop ebp
ret