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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
test byte [0x437fe8], 1
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
jne 0x401124
or dword [0x437fe8], 1
push 0x1c
lea eax, [ebp - 0x20]
push eax
push section..text
call edi
mov ecx, dword [ebp - 0x1c]
mov dword [0x437fec], ecx
movzx edx, word [ebp + 8]
mov eax, dword [0x437fec]
push 0x42f2c0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x401181
test byte [0x437fe8], 1
jne 0x401166
or dword [0x437fe8], 1
push 0x1c
lea ecx, [ebp - 0x3c]
push ecx
push section..text
call edi
mov edx, dword [ebp - 0x38]
mov dword [0x437fec], edx
mov eax, dword [0x437fec]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 8], eax
test eax, eax
jne 0x401189
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test byte [0x437fe8], 1
mov ebx, eax
mov dword [ebp - 4], 0
jne 0x4011c0
or dword [0x437fe8], 1
push 0x1c
lea ecx, [ebp - 0x58]
push ecx
push section..text
call edi
mov edx, dword [ebp - 0x54]
mov dword [0x437fec], edx
mov eax, dword [0x437fec]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push ebx
push eax
call fcn.00410950
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 4]
push ecx
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [ebp - 4]
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x40122d
lea eax, [esi + 4]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
jmp 0x40122f
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401410
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
movzx ecx, ax
shr eax, 0x10
push eax
push ecx
lea eax, [esi + 0xd0]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x401454
cmp dword [esi + 0x94], 8
lea eax, [esi + 0x80]
jb 0x401440
mov eax, dword [eax]
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4017c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push edi
mov edi, eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40184e
mov ecx, dword [ebp + 8]
mov ebx, edi
call fcn.004014b0
test eax, eax
je 0x40184e
cmp byte [edi + 0x24], 0
je 0x401803
mov ecx, dword [edi + 0x2c]
mov edx, dword [edi + 4]
push 0
push ecx
push 0xf1
push edx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x401811
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x30]
push eax
push 0
call fcn.00401860
mov ecx, dword [edi + 4]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0xc4]
mov edx, dword [edi + 0xcc]
mov ecx, dword [edi + 0xc0]
push 0x210
sub edx, eax
push edx
mov edx, dword [edi + 0xc8]
sub edx, ecx
push edx
push eax
mov eax, dword [edi + 4]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401ae0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b57a
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x435390]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x401b18
mov eax, dword [esi]
jmp 0x401b1a
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401c4a
cmp dword [esi + 0x14], edi
jb 0x401b32
mov eax, dword [esi]
jmp 0x401b34
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x401c4a
lea eax, [ebp - 0x4c]
push eax
call fcn.00425b10
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x14]
cmp eax, edi
jb 0x401b5e
mov ecx, dword [esi]
jmp 0x401b60
mov ecx, esi
cmp eax, edi
jb 0x401b66
mov esi, dword [esi]
push ecx
push esi
lea ecx, [ebp - 0x4c]
call fcn.004268d0
lea ecx, [ebp - 0x4c]
test eax, eax
je 0x401c3d
push str.ad.png
call fcn.00426380
mov ebx, dword [sym.imp.gdiplus.dll_GdipAlloc]
push 0x10
mov edi, eax
call ebx
mov esi, eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x401bba
lea eax, [esi + 4]
push eax
push edi
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
jmp 0x401bbc
xor esi, esi
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 0
mov dword [ecx + 0xb8], esi
push str.close.png
lea ecx, [ebp - 0x4c]
call fcn.00426380
push 0x10
mov edi, eax
call ebx
mov esi, eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x401c05
lea eax, [esi + 4]
push eax
push edi
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
jmp 0x401c07
xor esi, esi
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 0
lea eax, [ebp - 0x4c]
mov dword [edx + 0xbc], esi
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.00425d00
mov eax, 1
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
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.00425d00
xor eax, eax
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
Function at 0x404470
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x435390]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov eax, ecx
mov esi, dword [eax + 4]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x220]
push edx
xor edi, edi
or esi, 0x2001f
push esi
push edi
mov dword [ebp - 0x224], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x220], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x218]
mov ebx, eax
cmp ebx, edi
jne 0x404504
xor eax, eax
cmp ecx, edi
je 0x4044e6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x220]
and esi, 0x300
mov ebx, eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], esi
cmp eax, edi
je 0x404524
cmp ecx, edi
je 0x40450f
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040e68e
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x230]
push eax
push edi
push edi
push edi
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x20c]
push eax
push edi
push ecx
mov dword [ebp - 0x21c], 0x100
call esi
test eax, eax
jne 0x4045ac
jmp 0x404560
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x218]
call fcn.00404470
mov ebx, eax
cmp ebx, edi
jne 0x404602
lea edx, [ebp - 0x230]
push edx
mov edx, dword [ebp - 0x218]
push edi
push edi
push edi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push edi
push edx
mov dword [ebp - 0x21c], 0x100
call esi
test eax, eax
je 0x404560
mov eax, dword [ebp - 0x218]
cmp eax, edi
je 0x4045c3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x218], edi
mov ebx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x214], edi
call fcn.004046a0
mov esi, eax
mov eax, dword [ebp - 0x218]
cmp eax, edi
je 0x4045ed
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040e68e
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x218]
cmp eax, edi
je 0x404613
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040e68e
mov esp, ebp
pop ebp
ret 4
Function at 0x405340
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b1b6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x435390]
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 ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x430], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x418], edi
push 2
push edi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x424], esi
cmp esi, edi
jne 0x4053c0
call fcn.00403670
mov edi, eax
jmp 0x4054d9
mov eax, dword [ebp - 0x41c]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
jne 0x4053df
call fcn.00403670
jmp 0x4054d0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, edi
jne 0x4053fb
call fcn.00403670
jmp 0x4054d0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
mov dword [ebp - 0x41c], ebx
cmp eax, ebx
jae 0x40541c
mov edi, 0x8007000e
jmp 0x4054d2
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, edi
ja 0x405431
cmp eax, 0xffffffff
jbe 0x40543b
push 0x80070216
call fcn.00405970
cmp eax, 0x400
jbe 0x40546d
lea ecx, [ebp - 0x418]
push ecx
call fcn.00403d50
jmp 0x405479
lea edx, [ebp - 0x414]
mov dword [ebp - 0x418], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x418]
cmp eax, edi
jne 0x405491
mov edi, 0x8007000e
jmp 0x4054d2
push ebx
push eax
mov eax, dword [ebp - 0x420]
push ebx
push eax
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
jne 0x4054af
call fcn.00403670
jmp 0x4054d0
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x418]
push eax
lea ecx, [ebp - 0x42c]
call fcn.004051a0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x414]
cmp dword [ebp - 0x418], ecx
je 0x4054f2
lea eax, [ebp - 0x418]
call fcn.00403660
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.0040e68e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405aa0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b180
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x435390]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi], vtable.pbcs::ServiceProcess.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov byte [esi + 0x1c], bl
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [ebp - 4], ebx
lea eax, [esi + 0x30]
mov dword [esi], vtable.XGPopAdServiceImpl.0
call fcn.00401250
mov byte [ebp - 4], 1
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x114], ebx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x12c], ebx
mov dword [esi + 0x130], ebx
mov dword [esi + 0x134], ebx
mov dword [esi + 0x138], eax
mov dword [esi + method.XGPopAdServiceMessageWindow.virtual_0], vtable.XGPopAdServiceMessageWindow.0
mov dword [esi + 0x13c], esi
mov byte [ebp - 4], 2
cmp dword [0x436c00], ebx
jne 0x405b54
mov dword [0x436c00], ebx
lea ecx, [esi + 0x138]
push ecx
push 0x436dc4
mov ebx, 0x436bd0
call fcn.00406da0
add esp, 8
movzx ebx, ax
xor eax, eax
push eax
push eax
push 0x56000000
push eax
push eax
push 0xfffffffffffffffd
lea eax, [esi + 0x118]
call fcn.00406bd0
mov edx, dword [esi + 0x11c]
mov dword [esi + 0x140], edx
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
Function at 0x409020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42abad
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x435390]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 4]
mov ebp, dword [esp + 0x38]
mov edi, dword [eax + 4]
mov esi, eax
add ebp, 0xc
cmp byte [edi + 0x45], 0
mov al, 1
mov byte [esp + 0x18], al
jne 0x4090f5
lea ebx, [ebx]
cmp dword [edi + 0x20], 8
mov ebx, dword [edi + 0x1c]
lea eax, [edi + 0xc]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], ebx
jb 0x409086
mov eax, dword [eax]
mov esi, dword [ebp + 0x10]
mov ecx, esi
mov edx, esi
cmp esi, ebx
jb 0x409093
mov edx, ebx
cmp dword [ebp + 0x14], 8
jb 0x40909e
mov ecx, dword [ebp]
jmp 0x4090a0
mov ecx, ebp
test edx, edx
je 0x4090c3
mov bx, word [ecx]
cmp bx, word [eax]
jne 0x4090b7
add ecx, 2
add eax, 2
dec edx
jne 0x4090a4
jmp 0x4090bf
sbb eax, eax
and eax, 0xfffffffe
inc eax
jne 0x4090d3
mov ebx, dword [esp + 0x14]
cmp esi, ebx
jae 0x4090cc
or eax, 0xffffffff
jmp 0x4090d3
xor eax, eax
cmp esi, ebx
setne al
test eax, eax
sets al
mov byte [esp + 0x18], al
test al, al
je 0x4090e4
mov edi, dword [edi]
jmp 0x4090e7
mov edi, dword [edi + 8]
cmp byte [edi + 0x45], 0
je 0x409070
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
mov ebx, esi
mov dword [esp + 0x14], ebx
test al, al
je 0x409139
mov eax, dword [edx + 4]
cmp esi, dword [eax]
jne 0x40912c
mov eax, dword [esp + 0x38]
push eax
push 1
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
mov ebx, edx
call fcn.004091e0
mov edx, dword [eax]
mov eax, dword [esp + 0x34]
mov dword [eax], edx
mov byte [eax + 4], 1
jmp 0x4091bb
lea eax, [esp + 0x14]
call fcn.004097f0
mov ebx, dword [esp + 0x14]
cmp dword [ebp + 0x14], 8
mov edi, dword [ebp + 0x10]
lea ecx, [ebx + 0xc]
jb 0x40914a
mov eax, dword [ebp]
jmp 0x40914c
mov eax, ebp
push eax
mov eax, dword [ecx + 0x10]
call fcn.00401c80
test eax, eax
jns 0x409181
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call fcn.004091e0
mov ecx, dword [eax]
mov eax, dword [esp + 0x34]
mov dword [eax], ecx
mov byte [eax + 4], 1
jmp 0x4091bb
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], 1
lea esi, [ebp + 0x1c]
call fcn.0040b3d0
mov dword [esp + 0x28], 0xffffffff
mov esi, ebp
call fcn.0040b3d0
mov edx, dword [esp + 0x38]
push edx
call fcn.0040e683
mov eax, dword [esp + 0x38]
add esp, 4
mov dword [eax], ebx
mov byte [eax + 4], 0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
Function at 0x409ed0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409ee7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409f16
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x409f12
cmp esi, eax
jae 0x409f16
dec edi
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x409f04
cmp esi, eax
jb 0x409f1c
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x40e12d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x436dc0], 0
push esi
push edi
jne 0x40e0a3
call fcn.0040e00f
test eax, eax
je 0x40e0e8
mov eax, dword [0x436dc0]
cmp eax, 1
jne 0x40e0c4
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40e0e8
jmp 0x40e12a
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x40e12a
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 0x40e0ec
xor eax, eax
jmp 0x40e12a
mov eax, dword [esi]
push dword [0x436dc0]
call edi
mov edi, eax
test edi, edi
je 0x40e10e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40e12a
lea edi, [esi + 0xff0]
push esi
push dword [0x436dc0]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x40e114
mov eax, esi
pop edi
pop esi
ret
jmp 0x40e08f

Function at 0x40e68e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x435390]
jne 0x40e698
repz ret
jmp fcn.004102d6
Function at 0x4171b5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x435390]
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.0041178b
and dword [ebp - 0x14], 0
cmp dword [0x437cf4], 0
mov dword [ebp - 0x18], eax
jne 0x417268
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x417310
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x417310
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x437cf4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x437cf8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x437cfc], eax
call edi
push eax
call esi
mov dword [0x437d04], eax
test eax, eax
je 0x417268
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x437d00], eax
mov eax, dword [0x437d00]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4172c1
cmp dword [0x437d04], ecx
je 0x4172c1
push eax
call esi
push dword [0x437d04]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4172c1
test ebx, ebx
je 0x4172c1
call edi
test eax, eax
je 0x4172b8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4172b8
test byte [ebp - 8], 1
jne 0x4172c1
or dword [ebp + 0x10], 0x200000
jmp 0x4172f4
mov eax, dword [0x437cf8]
cmp eax, dword [ebp - 0x18]
je 0x4172f4
push eax
call esi
test eax, eax
je 0x4172f4
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4172f4
mov eax, dword [0x437cfc]
cmp eax, dword [ebp - 0x18]
je 0x4172f4
push eax
call esi
test eax, eax
je 0x4172f4
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x437cf4]
call esi
test eax, eax
je 0x417310
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x417312
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e68e
leave
ret
Function at 0x4254c0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x429f46
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x435390]
xor eax, esp
mov dword [esp + 0x248], eax
push ebp
push esi
push edi
mov eax, dword [0x435390]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x26c]
push 0x206
xor esi, esi
lea ecx, [esp + 0x56]
xor eax, eax
push esi
push ecx
mov word [esp + 0x5c], ax
call fcn.00410110
mov edx, dword [esp + 0x27c]
push esi
push edx
push ebp
call fcn.00422e50
push ebp
lea eax, [esp + 0x6c]
push 0x104
push eax
call fcn.00423231
lea eax, [esp + 0x74]
add esp, 0x24
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x425543
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x54]
mov ecx, ebx
call fcn.00406ef0
xor ecx, ecx
mov word [esp + 0x18], cx
push esi
mov eax, 0x42f30c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], esi
call fcn.00406ef0
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x270], esi
call fcn.00407360
add esp, 0xc
lea esi, [ebx + 0x1c]
mov edi, eax
mov byte [esp + 0x264], 1
call fcn.004071c0
mov byte [esp + 0x264], 0
cmp dword [esp + 0x48], 8
jb 0x4255cc
mov edx, dword [esp + 0x34]
push edx
call fcn.0040e683
add esp, 4
xor edi, edi
xor eax, eax
mov esi, 7
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], edi
mov word [esp + 0x34], ax
mov dword [esp + 0x264], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x425601
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040e683
add esp, 4
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x270]
mov dword [esp + 0x2c], esi
lea esi, [ecx + eax*2 + 2]
push edi
xor edx, edx
push esi
push ebp
mov dword [esp + 0x34], edi
mov word [esp + 0x24], dx
call fcn.00422e50
push ebp
push 1
lea edx, [esp + 0x28]
push 4
push edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
call fcn.0041008b
push ebp
push 1
lea eax, [esp + 0x34]
push 4
push eax
call fcn.0041008b
mov ecx, dword [esp + 0x40]
push edi
push ecx
push ebp
call fcn.00422e50
mov eax, dword [ebx + 0x44]
mov edi, dword [esp + 0x48]
add esp, 0x38
test eax, eax
je 0x425676
push eax
call fcn.0040ec51
add esp, 4
mov dword [ebx + 0x44], 0
push edi
call fcn.0040e678
mov edx, dword [esp + 0x14]
push ebp
push 1
push edx
push eax
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x48], edi
call fcn.0041008b
add esp, 0x14
lea eax, [esi + 8]
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.0040e68e
add esp, 0x258
ret 8
Function at 0x425930
Capabilities:
Check if file exists
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4259b6
push 0x42fcbc
lea eax, [esp + 8]
push esi
push eax
call fcn.0040fdfa
add esp, 0xc
test eax, eax
jne 0x4259b6
mov eax, dword [esp + 4]
mov esi, eax
test eax, eax
je 0x4259a1
push 0
push 0
push eax
call fcn.00422e50
push esi
push 1
lea ecx, [esp + 0x1c]
push 4
push ecx
mov dword [esp + 0x24], 0
call fcn.0041008b
mov eax, dword [esp + 0x24]
add esp, 0x1c
test eax, eax
je 0x42599d
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x10]
push edx
push eax
call fcn.004256c0
mov eax, dword [esp + 4]
push eax
call fcn.0041c1e0
add esp, 4
mov eax, 1
pop esi
add esp, 8
ret 4
xor eax, eax
pop esi
add esp, 8
ret 4