joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411780
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x411798
mov eax, 0x80070057
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0x10]
mov ecx, edi
call fcn.004077a0
mov ecx, edi
mov dword [ebp - 4], 0
mov dword [ebp + 8], 0
call fcn.004077a0
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x411859
mov eax, dword [ebp - 4]
test eax, eax
je 0x411859
lea ecx, [ebp + 8]
push ecx
push 0
push 0
push 0x8004
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4118d4
mov eax, dword [ebp + 8]
test eax, eax
je 0x4118e2
mov edx, dword [ebp + 0xc]
push 0
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4118ca
mov edx, dword [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push 4
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 4
call edi
test eax, eax
jne 0x411864
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 4]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
push edx
call fcn.0041e8d0
mov esi, eax
mov eax, dword [ebp + 8]
add esp, 4
test esi, esi
je 0x411846
push 0
lea edx, [ebp - 8]
push edx
push esi
push 2
push eax
call edi
test eax, eax
jne 0x4118aa
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 4]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x10]
mov ecx, edi
call fcn.004077a0
mov eax, dword [ebp - 8]
push edi
push eax
push esi
call fcn.004116a0
push edi
call fcn.00410b20
add esp, 0x10
jmp 0x4118d4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp + 8]
test eax, eax
je 0x4118e2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4118f2
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
pop edi
add eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412a60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fd38
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x43fa8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x412a9f
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push eax
lea ecx, [ebp + 8]
call fcn.0040ded0
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
mov dword [ebp - 4], 0
call esi
push str..crx
push str..zip
lea ecx, [ebp + 8]
call fcn.00411060
mov ecx, dword [ebp + 8]
push ecx
call esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412af9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x412b60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fbe8
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x43fa8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
test edi, edi
jne 0x412b9f
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
push 0x434f7c
lea ecx, [ebp - 0x10]
call fcn.0040ded0
push 0x43530c
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00411eb0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412bc5
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.00410800
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0xa28
or eax, ecx
jge 0x412c00
push 0xa28
mov ecx, esi
call fcn.004078f0
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
mov edi, eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x412c31
push ecx
push eax
call fcn.004200f0
add esp, 8
test eax, eax
js 0x412c7b
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x412c7b
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412c69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00405660
int3
Function at 0x412c90
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fd8b
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x43fa8c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x412d56
mov eax, dword [esi]
cmp eax, ebx
je 0x412ceb
mov ecx, dword [esi + 4]
push ecx
push eax
call fcn.00410a90
mov edx, dword [esi]
push edx
call fcn.0041e896
add esp, 0xc
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00407950
add eax, 0x10
add esp, 4
mov dword [ebp - 0x264], eax
push 2
push 0x43531c
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], ebx
call fcn.00410800
mov ebx, dword [ebp - 0x264]
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x412d5d
mov dword [ebp - 4], eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412d56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x412e48
test byte [ebp - 0x260], 0x10
je 0x412da4
lea ecx, [ebp - 0x234]
push 0x435318
push ecx
call fcn.0042054f
add esp, 8
test eax, eax
je 0x412da4
lea edx, [ebp - 0x234]
push 0x435310
push edx
call fcn.0042054f
add esp, 8
test eax, eax
je 0x412da4
lea eax, [ebp - 0x234]
push eax
mov ecx, esi
call fcn.00412090
lea ecx, [ebp - 0x260]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x412e19
jmp 0x412dc0
lea edx, [ebp - 0x234]
push 0x435318
push edx
call fcn.0042054f
add esp, 8
test eax, eax
je 0x412e07
lea eax, [ebp - 0x234]
push 0x435310
push eax
call fcn.0042054f
add esp, 8
test eax, eax
je 0x412e07
test byte [ebp - 0x260], 0x10
je 0x412e07
lea ecx, [ebp - 0x234]
push ecx
mov ecx, esi
call fcn.00412090
lea edx, [ebp - 0x260]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x412dc0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412e43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d48e
mov esp, ebp
pop ebp
ret
Function at 0x415940
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x43fa8c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
call fcn.0040f7d0
mov ebx, eax
cmp ebx, esi
je 0x4159ba
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x4159a5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d48e
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push esi
push esi
push esi
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push esi
push eax
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x415a3c
mov edi, edi
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.00415940
mov ebx, eax
cmp ebx, esi
jne 0x415994
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push esi
push edx
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4159f0
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x415a55
push eax
call ebx
mov dword [ebp - 0x210], esi
mov eax, dword [ebp - 0x218]
push eax
mov ecx, edi
mov dword [ebp - 0x20c], esi
call fcn.00414ee0
mov edi, eax
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x415a78
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d48e
mov esp, ebp
pop ebp
ret 4
Function at 0x4183a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4303b6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x43fa8c]
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 + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x430], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x418], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x41841d
call fcn.00408640
mov edi, eax
jmp 0x418502
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x418436
call fcn.00408640
jmp 0x4184f9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x418454
call fcn.00408640
jmp 0x4184f9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x41c], edi
cmp eax, edi
jae 0x418475
mov edi, 0x8007000e
jmp 0x4184fb
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00416b60
mov dword [ebp - 4], 1
jmp 0x4184ad
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x4184be
mov edi, 0x8007000e
jmp 0x4184fb
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4184d7
call fcn.00408640
jmp 0x4184f9
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x418]
push eax
push ecx
lea ecx, [ebp - 0x42c]
call fcn.00417e70
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x418520
lea ecx, [ebp - 0x418]
call fcn.004156e0
jmp 0x418520
mov eax, edi
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.0041d48e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x418830
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43045d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x43fa8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi + 4], edi
mov eax, dword [0x440ce0]
mov edx, dword [eax + 0xc]
mov ecx, 0x440ce0
call edx
add eax, 0x10
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
mov eax, dword [0x440ce0]
mov edx, dword [eax + 0xc]
mov ecx, 0x440ce0
mov dword [ebp - 4], edi
call edx
add eax, 0x10
mov dword [esi + 0x10], eax
mov eax, dword [0x440ce0]
mov edx, dword [eax + 0xc]
mov ecx, 0x440ce0
mov byte [ebp - 4], 1
call edx
add eax, 0x10
mov dword [esi + 0x14], eax
mov eax, dword [0x440ce0]
mov edx, dword [eax + 0xc]
mov ecx, 0x440ce0
mov byte [ebp - 4], 2
call edx
add eax, 0x10
mov dword [esi + 0x18], eax
mov eax, dword [0x440ce0]
mov edx, dword [eax + 0xc]
mov ecx, 0x440ce0
mov byte [ebp - 4], 3
call edx
add eax, 0x10
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 1
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 6
call fcn.0040ec90
fld dword [0x435364]
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x16c], edi
mov dword [esi + 0x17c], edi
lea ecx, [esi + 0x190]
mov dword [esi + 0x180], edi
mov dword [esi + 0x184], edi
mov dword [esi + 0x188], eax
mov dword [esi + method.CToolbarMessageHandler_class_CToolbar_.virtual_0], vtable.CToolbarMessageHandler_class_CToolbar_.0
mov dword [esi + 0x18c], esi
fstp dword [ecx + 0xc]
fld dword [0x435360]
mov dword [ecx], edi
fstp dword [ecx + 0x10]
mov dword [ecx + 4], edi
fld dword [0x43535c]
mov dword [ecx + 8], 0x11
fstp dword [ecx + 0x14]
mov dword [ecx + 0x18], 0xffffffff
mov dword [ecx + 0x1c], edi
mov dword [ecx + 0x20], edi
mov dword [ecx + 0x24], 0xa
mov dword [ecx + 0x28], edi
mov dword [ecx + 0x2c], edi
call fcn.00415790
mov dword [esi + 0x1c0], edi
mov dword [esi + 0x1c4], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a140
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430688
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43fa8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x440ce0]
mov edx, dword [eax + 0xc]
mov ecx, 0x440ce0
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0x10]
push ecx
lea edx, [esi + 8]
push 0x435370
push edx
mov dword [ebp - 4], 0
call fcn.004144d0
mov ebx, dword [ebp - 0x10]
add esp, 0x10
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41a1b9
mov ecx, esi
call fcn.00419710
mov edi, eax
test edi, edi
js 0x41a1ee
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41a1ee
add esi, 0xc
push esi
push ecx
lea eax, [ebx - 0x10]
mov dword [ebp - 0x14], esp
mov esi, esp
push eax
call fcn.00407950
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00414b00
add esp, 8
mov edi, eax
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41a211
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41aaa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x41aac1
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x41a810
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x41aae8
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41d110
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fad6
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x43fa8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [0x436760]
mov dword [esi + 4], eax
mov ecx, dword [0x436764]
mov dword [esi + 8], ecx
mov edx, dword [0x436768]
mov dword [esi + 0xc], edx
mov eax, dword [0x43676c]
mov dword [esi + 0x10], eax
mov ecx, dword [0x436760]
mov dword [esi + 0x14], ecx
mov edx, dword [0x436764]
mov dword [esi + 0x18], edx
mov eax, dword [0x436768]
mov dword [esi + 0x1c], eax
mov ecx, dword [0x43676c]
xor edi, edi
xor edx, edx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], 0xfefefefe
mov dword [esi], vtable.CAxWindowEx_class_CToolbarView_.0
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
call fcn.0040e850
mov dword [esi + 0x3c], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 6
call fcn.00406660
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0xb0], edi
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 8
call fcn.0041bbe0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41d48e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43fa8c]
jne 0x41d498
repz ret
jmp fcn.00420b10
Function at 0x42a975
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43fa8c]
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.004255c0
and dword [ebp - 0x14], 0
cmp dword [0x441b5c], 0
mov dword [ebp - 0x18], eax
jne 0x42aa28
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42aad0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x42aad0
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x441b5c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x441b60], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x441b64], eax
call edi
push eax
call esi
mov dword [0x441b6c], eax
test eax, eax
je 0x42aa28
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x441b68], eax
mov eax, dword [0x441b68]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42aa81
cmp dword [0x441b6c], ecx
je 0x42aa81
push eax
call esi
push dword [0x441b6c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42aa81
test ebx, ebx
je 0x42aa81
call edi
test eax, eax
je 0x42aa78
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42aa78
test byte [ebp - 8], 1
jne 0x42aa81
or dword [ebp + 0x10], 0x200000
jmp 0x42aab4
mov eax, dword [0x441b60]
cmp eax, dword [ebp - 0x18]
je 0x42aab4
push eax
call esi
test eax, eax
je 0x42aab4
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42aab4
mov eax, dword [0x441b64]
cmp eax, dword [ebp - 0x18]
je 0x42aab4
push eax
call esi
test eax, eax
je 0x42aab4
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x441b5c]
call esi
test eax, eax
je 0x42aad0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42aad2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d48e
leave
ret
Function at 0x42edc6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x441bc4], 0
push esi
push edi
jne 0x42ed3c
call fcn.0042eca8
test eax, eax
je 0x42ed81
mov eax, dword [0x441bc4]
cmp eax, 1
jne 0x42ed5d
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42ed81
jmp 0x42edc3
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x42edc3
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x42ed85
xor eax, eax
jmp 0x42edc3
mov eax, dword [esi]
push dword [0x441bc4]
call edi
mov edi, eax
test edi, edi
je 0x42eda7
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x42edc3
lea edi, [esi + 0xff0]
push esi
push dword [0x441bc4]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x42edad
mov eax, esi
pop edi
pop esi
ret
jmp 0x42ed28
Function at 0x4018c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x402bf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x70]
test eax, eax
jne 0x40196a
push esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401951
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x401951
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x70], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004028a8
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x401980
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4019e2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc