joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ac0
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x20
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
push 1
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
mov dword [esp + 0xc], edi
jbe 0x401b64
mov eax, dword [esp + 0x34]
push 0x24
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jbe 0x401b5d
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x401b5d
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea edx, [esp + 0x14]
push edx
push esi
call ebx
test eax, eax
je 0x401b5c
cmp dword [esp + 0x18], 1
je 0x401b5c
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x28]
lea ecx, [ecx]
mov edi, eax
mov eax, dword [esp + 0x2c]
push eax
call ebp
lea ecx, [esp + 0x14]
push ecx
push esi
call ebx
test eax, eax
je 0x401b54
mov eax, dword [esp + 0x28]
cmp eax, edi
jb 0x401b54
cmp dword [esp + 0x18], 1
jne 0x401b30
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [esp + 0x14], 1
jne 0x401bb9
lea eax, [ebp - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401b8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401bae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401bdd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401bfd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x20
ret 8
Function at 0x401fa0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x437361
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4495ec]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], ebx
mov esi, dword [esp + 0x3c]
push 0x43f240
mov ecx, esi
call fcn.00404560
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push 1
mov dword [esp + 0x48], ebx
push 0x43f240
push 8
mov dword [esp + 0x3c], 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call sub.WINSPOOL.DRV_EnumPrintersW
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00405f35
mov edx, dword [esp + 0x18]
add esp, 4
mov edi, eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
push edi
push 1
push 0x43f240
push 8
mov dword [esp + 0x40], edi
call sub.WINSPOOL.DRV_EnumPrintersW
test eax, eax
je 0x402104
xor ebp, ebp
cmp dword [esp + 0x18], ebx
jbe 0x402104
add edi, 8
mov eax, dword [edi - 4]
push eax
lea ecx, [esp + 0x20]
call fcn.00404560
mov dword [esp + 0x34], 1
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], ebx
jl 0x4020cc
push str.GoldGrid_Document_Maker_Driver
push eax
call fcn.0042167e
add esp, 8
cmp eax, ebx
je 0x4020cc
sub eax, dword [esp + 0x1c]
sar eax, 1
js 0x4020cc
mov edx, dword [edi]
cmp edx, ebx
jne 0x4020a9
xor eax, eax
jmp 0x4020c3
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4020b0
sub eax, esi
mov esi, dword [esp + 0x3c]
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00404950
mov byte [esp + 0x34], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4020f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 1
add edi, 0x10
cmp ebp, dword [esp + 0x18]
jb 0x402067
mov edi, dword [esp + 0x24]
push edi
call fcn.00405f30
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x402b20
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4495ec]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
push 0x114
xor esi, esi
lea eax, [esp + 8]
push esi
push eax
call fcn.00424130
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402b8a
cmp dword [esp + 0x14], 2
jne 0x402b72
cmp dword [esp + 8], 6
sbb esi, esi
add esi, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00421bf6
add esp, 0x118
ret
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00421bf6
add esp, 0x118
ret

Function at 0x402bb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x437312
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4495ec]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [0x4495ec]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov dword [esp + 0x220], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
call fcn.00406b37
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402c18
push 0x80004005
call fcn.00404330
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x224], 0
push ecx
mov dword [esp + 0xc], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402c50
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00404950
mov eax, esi
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00421bf6
add esp, 0x220
ret
Function at 0x403840
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push esi
push edi
lea eax, [esp + 0x10]
push eax
push str.PrintersDevModePerUser
push 0x80000001
call ebp
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x4038ab
lea ecx, [esp + 0x14]
push ecx
mov eax, 0x5d8
call fcn.00401520
mov edx, dword [esp + 0x18]
add esp, 4
add edx, 1
push edx
mov ebx, eax
mov eax, dword [esp + 0x14]
push ebx
push 3
push 0
push 0x43eb68
push eax
call esi
push ebx
call fcn.00421575
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call edi
lea edx, [esp + 0x10]
push edx
push str.PrintersDevModes2
push 0x80000001
call ebp
test eax, eax
jne 0x4038fd
lea eax, [esp + 0x14]
push eax
mov eax, 0x5d8
call fcn.00401520
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add esp, 4
add ecx, 1
push ecx
mov ebx, eax
push ebx
push 3
push 0
push 0x43eb68
push edx
call esi
push ebx
call fcn.00421575
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
push str.SoftwareMicrosoftInternet_ExplorerPageSetup
push 0x80000001
call ebp
test eax, eax
jne 0x403946
mov edx, dword [esp + 0x10]
push 1
push 0x43f02e
push 1
push eax
push str.footer
push edx
call esi
mov eax, dword [esp + 0x10]
push 1
push 0x43f02e
push 1
push 0
push str.header
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call edi
lea edx, [esp + 0x10]
push edx
push str..DEFAULTSoftwareMicrosoftInternet_ExplorerPageSetup
push 0x80000003
call ebp
test eax, eax
jne 0x40398f
push 1
push 0x43f02e
push 1
push eax
mov eax, dword [esp + 0x20]
push str.footer
push eax
call esi
mov ecx, dword [esp + 0x10]
push 1
push 0x43f02e
push 1
push 0
push str.header
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call edi
lea eax, [esp + 0x10]
push eax
push str.SoftwareMicrosoftNotepad
push 0x80000001
call ebp
test eax, eax
jne 0x4039d8
mov ecx, dword [esp + 0x10]
push 1
push 0x43f02e
push 1
push eax
push str.szHeader
push ecx
call esi
mov edx, dword [esp + 0x10]
push 2
push 0x43f10c
push 1
push 0
push 0x43f110
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x403c40
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x437271
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4495ec]
xor eax, esp
mov dword [esp + 0x21c], eax
push esi
push edi
mov eax, dword [0x4495ec]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push eax
push 2
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call fcn.00406b37
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403cda
push 0x80004005
call fcn.00404330
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x234], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
cmp ax, 0x804
jne 0x403d0d
push 0x19
push 0x43f14c
jmp 0x403d30
cmp ax, 0xc04
je 0x403d29
cmp ax, 0x404
je 0x403d29
push str.GoldGrid_Document_Maker_Settings
lea ecx, [esp + 0x10]
call fcn.00404a60
jmp 0x403d39
push 0x19
push 0x43f180
lea ecx, [esp + 0x14]
call fcn.00404950
push 4
push str..lnk
lea ecx, [esp + 0x14]
call fcn.004041d0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call fcn.00404560
mov byte [esp + 0x234], 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00404480
lea esi, [eax + 0x10]
mov dword [esp + 0x20], esi
mov byte [esp + 0x238], 2
mov edx, dword [esp + 0x18]
push esi
push edx
lea eax, [esp + 0x18]
push str._s_s
push eax
call fcn.00404440
mov edi, dword [esp + 0x20]
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
mov byte [esp + 0x234], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403dc2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x234], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403dea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x234], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403e11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00421bf6
add esp, 0x22c
ret
Function at 0x4047d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4047e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404824
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404820
lea ebx, [ebx]
cmp esi, eax
jae 0x404824
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404810
cmp esi, eax
jb 0x40482a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x407936
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4495ec]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x407973
push 0x438da8
push 4
push eax
call fcn.00422982
push eax
call fcn.00404840
add esp, 0x10
jmp 0x407985
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4079f0
push edi
call fcn.00422a64
mov edi, dword [eax]
call fcn.00422a64
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00422a0a
add esp, 0x18
mov ebx, eax
call fcn.00422a64
cmp dword [eax], 0
je 0x4079d0
call fcn.00422a64
push dword [eax]
call fcn.00406d97
pop ecx
jmp 0x4079d7
call fcn.00422a64
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x4079f0
cmp ebx, esi
jae 0x4079f0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x4079f2
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00421bf6
leave
ret
Function at 0x4095f5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x40963b
call fcn.00406a09
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40963b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40967e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x409667
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x409667
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40967b
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40a8a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x43621c
call fcn.00422538
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00406a09
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x40a8ef
call fcn.00406a09
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x40a900
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x40a90d
or eax, 0xffffffff
jmp 0x40aa69
mov ecx, esi
call fcn.0040a3f6
mov dword [ebp - 0x14], eax
call fcn.0040d3be
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x40a98b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x40a98b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40a98b
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0040791d
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x40a98b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x40a98b
mov ecx, ebx
call fcn.0041008c
test eax, eax
je 0x40a98b
push 0
mov ecx, ebx
call fcn.004100a7
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040ed3d
push dword [ebp - 0x14]
call fcn.0040d316
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0040a6ac
xor edi, edi
cmp eax, edi
je 0x40a9e8
test byte [esi + 0x3c], 0x10
je 0x40a9d2
push 4
pop edi
mov ecx, esi
call fcn.0040ff73
test ax, 0x100
je 0x40a9c8
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040cede
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x40a9e8
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00410276
or dword [ebp - 4], 0xffffffff
jmp 0x40aa13
cmp dword [ebp - 0x28], edi
je 0x40aa21
push 1
mov ecx, ebx
call fcn.004100a7
cmp dword [ebp - 0x2c], edi
je 0x40aa31
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x40aa4a
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x40aa4a
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0040a430
cmp dword [esi + 0x58], edi
je 0x40aa66
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.004225dd
ret
Function at 0x40fe57
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40fe9a
call fcn.00406a09
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40fe9a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40feb5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040fa11
test ebx, ebx
mov esi, eax
je 0x40feb3
test edi, edi
je 0x40feb3
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x411b6d
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 0x411b9b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x411bb9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00411ad7
jmp 0x411bb9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x411bb9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00411ad7
test edi, edi
mov eax, edi
jne 0x411ba3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44c730]
test ecx, ecx
je 0x411c7c
jmp 0x411b6c
ret 8

Function at 0x421bf6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4495ec]
jne 0x421c00
repz ret
jmp fcn.00429110
Function at 0x4259a7
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 + 0x449790]
je 0x4259c2
inc edi
cmp edi, 0x17
jb 0x4259b3
cmp edi, 0x17
jae 0x425b42
push ebp
push 3
call fcn.0042e760
cmp eax, 1
pop ecx
je 0x425b0e
push 3
call fcn.0042e760
test eax, eax
pop ecx
jne 0x4259f6
cmp dword [0x4495c0], 1
je 0x425b0e
cmp ebx, 0xfc
je 0x425b41
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x44ca90
push ebp
call fcn.0042e6fb
add esp, 0xc
test eax, eax
je 0x425a2c
push esi
push esi
push esi
push esi
push esi
call fcn.00427b9f
add esp, 0x14
push 0x104
mov esi, 0x44caa9
push esi
push 0
mov byte [0x44cbad], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x425a70
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042e6fb
add esp, 0xc
test eax, eax
je 0x425a70
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00427b9f
add esp, 0x14
push esi
call fcn.0042e670
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x425ab5
push esi
call fcn.0042e670
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x44cda4
push 0x43c18c
sub ecx, eax
push ecx
push eax
call fcn.0042e5b0
add esp, 0x14
test eax, eax
je 0x425ab5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00427b9f
add esp, 0x14
jmp 0x425ab7
xor esi, esi
push 0x43c188
push ebx
push ebp
call fcn.0042e53f
add esp, 0xc
test eax, eax
je 0x425ad7
push esi
push esi
push esi
push esi
push esi
call fcn.00427b9f
add esp, 0x14
push dword [edi*8 + 0x449794]
push ebx
push ebp
call fcn.0042e53f
add esp, 0xc
test eax, eax
je 0x425af9
push esi
push esi
push esi
push esi
push esi
call fcn.00427b9f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042e382
add esp, 0xc
jmp 0x425b41
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x425b41
cmp ebp, 0xffffffff
je 0x425b41
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x449794]
push dword [esi]
call fcn.0042e670
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 0x42e382
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00426557
xor ebx, ebx
cmp dword [0x44d598], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42e458
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42e538
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x42e538
push eax
call fcn.004264e9
mov dword [esp], 0x43c3cc
push edi
mov dword [0x44d598], eax
call esi
push eax
call fcn.004264e9
mov dword [esp], 0x43c3b8
push edi
mov dword [0x44d59c], eax
call esi
push eax
call fcn.004264e9
mov dword [0x44d5a0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00424253
test eax, eax
pop ecx
pop ecx
je 0x42e426
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00427b9f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42e458
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004264e9
cmp eax, ebx
pop ecx
mov dword [0x44d5a8], eax
je 0x42e458
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004264e9
pop ecx
mov dword [0x44d5a4], eax
mov eax, dword [0x44d5a4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42e4dd
cmp dword [0x44d5a8], ecx
je 0x42e4dd
push eax
call fcn.00426560
push dword [0x44d5a8]
mov esi, eax
call fcn.00426560
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42e4dd
cmp edi, ebx
je 0x42e4dd
call esi
cmp eax, ebx
je 0x42e4aa
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42e4aa
test byte [ebp - 0x18], 1
jne 0x42e4dd
lea eax, [ebp - 0x10]
push eax
call fcn.0042428a
test eax, eax
pop ecx
je 0x42e4c5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00427b9f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42e4d4
or dword [ebp + 0x10], 0x200000
jmp 0x42e518
or dword [ebp + 0x10], 0x40000
jmp 0x42e518
mov eax, dword [0x44d59c]
cmp eax, dword [ebp - 8]
je 0x42e518
push eax
call fcn.00426560
cmp eax, ebx
pop ecx
je 0x42e518
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42e518
mov eax, dword [0x44d5a0]
cmp eax, dword [ebp - 8]
je 0x42e518
push eax
call fcn.00426560
cmp eax, ebx
pop ecx
je 0x42e518
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44d598]
call fcn.00426560
cmp eax, ebx
pop ecx
je 0x42e538
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42e53a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret