joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x4378bb
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x44765c]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
mov eax, dword [0x44765c]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
lea eax, [esp + 8]
xor esi, esi
push eax
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 8], 1
je 0x401072
mov ecx, dword [eax + 4]
push ecx
push 0x43dd6c
push 0x44b7ec
call fcn.00403ee0
add esp, 0xc
jmp 0x4010f5
mov edx, dword [eax]
push edx
push 0x43dd6c
push 0x44b7ec
call fcn.00403ee0
mov eax, dword [0x44b7ec]
add esp, 0xc
push 0x5c
push eax
call fcn.00421f69
add esp, 8
cmp eax, esi
jne 0x4010a0
or eax, 0xffffffff
jmp 0x4010a8
sub eax, dword [0x44b7ec]
sar eax, 1
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x44b7ec
call fcn.004030c0
push eax
mov ecx, 0x44b7ec
mov dword [esp + 0x22c], esi
call fcn.00403c00
mov dword [esp + 0x228], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4010f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x206
lea edx, [esp + 0x1a]
xor ecx, ecx
push esi
push edx
mov word [esp + 0x20], cx
call fcn.00423730
mov eax, dword [0x44b7ec]
add esp, 0xc
push 0x43dd74
push eax
push 0x43dd8c
lea ecx, [esp + 0x20]
push 0x104
push ecx
call fcn.00421ab4
lea edx, [esp + 0x28]
add esp, 0x14
push edx
call fcn.00402cd0
add esp, 4
lea esi, [esp + 0xc]
mov dword [0x44b7e0], eax
call fcn.00404000
test eax, eax
je 0x401174
cmp dword [esp + 0xc], 2
jne 0x401174
mov eax, dword [0x44b7e0]
cmp eax, 2
jne 0x401168
push str.RaInst64.exe
jmp 0x40118f
cmp eax, 1
jne 0x4011a1
push str.WifiAutoInstallDriver64.exe
jmp 0x40118f
mov eax, dword [0x44b7e0]
cmp eax, 2
jne 0x401185
push str.RaInst.exe
jmp 0x40118f
cmp eax, 1
jne 0x4011a1
push str.WifiAutoInstallDriver.exe
push 0x43dd6c
push 0x44b7f4
call fcn.00403ee0
add esp, 0xc
mov eax, 1
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004216ac
add esp, 0x224
ret
Function at 0x401470
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x437840
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x44765c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push str.RemoveShortcut_begin._n
call fcn.00403f00
add esp, 4
call fcn.004053eb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4014c2
push 0x80004005
call fcn.00403e10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], 0
call fcn.004053eb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4014f4
push 0x80004005
call fcn.00403e10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
push 0x69
mov byte [esp + 0x2c], 1
call fcn.0040554c
test eax, eax
je 0x401524
push 0x69
push eax
lea ecx, [esp + 0x18]
call fcn.00403900
mov esi, dword [esp + 0x10]
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea ecx, [esp + 0x1c]
push 0x43dd8c
push ecx
call fcn.00403ee0
mov edi, dword [esp + 0x24]
add esp, 0x10
lea edx, [esp + 0x18]
push edx
push 0x20019
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401585
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x401585
cmp eax, 2
jne 0x401578
push str.Key_not_found._n
jmp 0x40157d
push str.Error_opening_key._n
call fcn.00403f00
add esp, 4
push str.RemoveShortcut_end._n
call fcn.00403f00
lea eax, [esi - 0x10]
add esp, 4
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4015b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4015d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401bc0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x270
mov eax, dword [0x44765c]
xor eax, esp
mov dword [esp + 0x268], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x6a]
push ecx
mov word [esp + 0x6c], ax
call fcn.00423730
mov edx, dword [esp + 0x288]
mov eax, dword [esp + 0x284]
push edx
push eax
push str._s__s
lea ecx, [esp + 0x78]
push 0x104
push ecx
call fcn.00421ab4
push 0x44
lea edx, [esp + 0x3c]
push 0
push edx
mov dword [esp + 0x40], 0xffffffff
call fcn.00423730
add esp, 0x2c
xor eax, eax
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov word [esp + 0x68], ax
lea eax, [esp + 0x80]
push eax
push 0
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401cd2
mov eax, dword [esp + 0x278]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401c97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x27c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401cba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.004216ac
add esp, 0x270
ret
mov ecx, dword [esp + 4]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
mov eax, dword [esp + 0x278]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401d26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x27c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401d49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x26c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.004216ac
add esp, 0x270
ret

Function at 0x402320
Capabilities:
Delete file

Disassembly:
sub esp, 0x20
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov dword [esp], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov dword [esp + 0xc], eax
lea eax, [esp]
mov ecx, 0x614
push eax
mov word [esp + 0x14], cx
mov dword [esp + 0xc], edx
mov dword [esp + 8], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
inc eax
add esp, 0x20
ret
Function at 0x402380
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x218
mov eax, dword [0x44765c]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
lea edi, [esp + 4]
mov dword [esp + 4], 0
call fcn.004041d0
cmp dword [esp + 4], 2
jne 0x40241e
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00423730
mov edx, dword [0x44b7ec]
add esp, 0xc
push edx
push 0x43dd6c
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00421ab4
lea eax, [esp + 0x18]
add esp, 0x10
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4023f0
sub eax, edx
lea edx, [esp + 8]
sar eax, 1
xor ecx, ecx
push edx
mov word [esp + eax*2 + 0xe], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40241e
lea edx, [esp + 8]
call fcn.00402320
call fcn.00402440
mov ecx, dword [esp + 0x214]
pop edi
xor ecx, esp
call fcn.004216ac
add esp, 0x218
ret
Function at 0x402440
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Resume thread
Self delete

Disassembly:
sub esp, 0x67c
mov eax, dword [0x44765c]
xor eax, esp
mov dword [esp + 0x674], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x72]
push ecx
mov word [esp + 0x74], ax
call fcn.00423730
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x48e]
push eax
mov word [esp + 0x490], dx
call fcn.00423730
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x292]
push edx
mov word [esp + 0x294], cx
call fcn.00423730
add esp, 0x24
push 0x104
lea eax, [esp + 0x6c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4025fe
push 0x104
lea ecx, [esp + 0x6c]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x4025fe
push 0x104
lea eax, [esp + 0x47c]
push eax
push 0x43e0f4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4025fe
push str.__c_del
lea ecx, [esp + 0x274]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x274]
push eax
call esi
lea ecx, [esp + 0x270]
push ecx
lea edx, [esp + 0x47c]
push edx
call esi
push 0x40
lea eax, [esp + 0x28]
push 0
push eax
call fcn.00423730
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor eax, eax
add esp, 0xc
xor ecx, ecx
push 0x100
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 1
mov word [esp + 0x54], cx
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 0xf
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push eax
call edi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0xc
push 0
push 0
push 0
lea ecx, [esp + 0x498]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4025f0
mov edx, dword [esp + 0x10]
push 0x40
push edx
call esi
mov eax, dword [esp + 0x14]
push 0xfffffffffffffff1
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
jmp 0x402600
push 0x20
call ebx
push eax
call esi
push 0
call ebp
push eax
call edi
xor eax, eax
mov ecx, dword [esp + 0x684]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004216ac
add esp, 0x67c
ret
Function at 0x402620
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path

Disassembly:
sub esp, 0x824
mov eax, dword [0x44765c]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
push esi
push edi
push 0x208
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00423730
push 0x208
lea ecx, [esp + 0x634]
push 0
push ecx
call fcn.00423730
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
add esp, 0x18
lea edx, [esp + 0x624]
push edx
push 0x104
call edi
push str.UninstTmp.exe
lea eax, [esp + 0x628]
push eax
push str._s_s
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.00421ab4
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x14
lea edx, [esp + 0xc]
push edx
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4026b6
lea eax, [esp + 0xc]
push eax
call ebx
push 0x208
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.00423730
push 0x43e140
lea edx, [esp + 0x634]
push edx
push str._s_s
lea eax, [esp + 0x24]
push 0x104
push eax
call fcn.00421ab4
add esp, 0x20
lea ecx, [esp + 0xc]
push ecx
call esi
test eax, eax
je 0x4026fd
lea edx, [esp + 0xc]
push edx
call ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x426]
push ecx
mov word [esp + 0x428], ax
call fcn.00423730
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22a]
push eax
mov word [esp + 0x22c], dx
call fcn.00423730
add esp, 0x18
lea ecx, [esp + 0x214]
push ecx
push 0x104
call edi
push str.UninstTmp.exe
lea edx, [esp + 0x218]
push 0x104
push edx
call fcn.00421f95
add esp, 0xc
push 0x104
lea eax, [esp + 0x420]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x41c]
push ecx
call esi
pop edi
pop esi
pop ebx
test eax, eax
je 0x4027a1
push 0
lea edx, [esp + 0x20c]
push edx
lea eax, [esp + 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [esp + 0x820]
xor ecx, esp
mov eax, 1
call fcn.004216ac
add esp, 0x824
ret

Function at 0x4027c0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
push 0
push 0x43e1d0
push eax
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402801
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402821
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
ret
Function at 0x4037c0
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 0x4037d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403814
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403810
lea ebx, [ebx]
cmp esi, eax
jae 0x403814
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403800
cmp esi, eax
jb 0x40381a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404000
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x44765c]
xor eax, esp
mov dword [esp + 0x140], eax
push 0x114
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esi], 0
mov dword [esi + 4], 5
call fcn.00423730
add esp, 0xc
push str.GetNativeSystemInfo
push str.kernel32.dll
mov dword [esp + 0x2c], 0x114
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404060
lea ecx, [esp]
push ecx
call eax
jmp 0x40406a
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [esp]
cmp eax, 9
jg 0x40408e
je 0x404086
test eax, eax
je 0x404095
cmp eax, 6
jne 0x404095
mov dword [esi], 1
jmp 0x4040a3
mov dword [esi], 2
jmp 0x4040a3
cmp eax, 0xffff
je 0x40409d
mov dword [esi], 0
jmp 0x4040a3
mov dword [esi], 3
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [esp + 0x28]
push eax
call edi
test al, al
jne 0x4040de
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x114
call edi
test eax, eax
jne 0x4040de
pop edi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.004216ac
add esp, 0x144
ret
mov eax, dword [esp + 0x38]
sub eax, 1
je 0x40417b
sub eax, 1
je 0x4040fc
mov dword [esi + 4], 0xa
jmp 0x4041a9
mov eax, dword [esp + 0x2c]
cmp eax, 4
ja 0x40410c
mov dword [esi + 4], 3
cmp eax, 5
jne 0x404149
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x404125
mov dword [esi + 4], 4
jmp 0x4041a9
cmp eax, 1
je 0x404140
cmp eax, 2
jne 0x4041a9
cmp byte [esp + 0x142], 1
mov dword [esi + 4], 6
jne 0x4041a9
mov dword [esi + 4], 5
jmp 0x4041a9
cmp eax, 6
jne 0x4041a9
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x40415f
mov dword [esi + 4], 7
jmp 0x4041a9
cmp eax, 1
jne 0x40416d
mov dword [esi + 4], 8
jmp 0x4041a9
cmp eax, 2
jne 0x4041a9
mov dword [esi + 4], 9
jmp 0x4041a9
cmp dword [esp + 0x2c], 4
jne 0x4041a9
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x40418f
mov dword [esi + 4], eax
jmp 0x4041a9
cmp eax, 0xa
jne 0x40419d
mov dword [esi + 4], 1
jmp 0x4041a9
cmp eax, 0x5a
jne 0x4041a9
mov dword [esi + 4], 2
mov ecx, dword [esp + 0x144]
pop edi
xor ecx, esp
mov eax, 1
call fcn.004216ac
add esp, 0x144
ret
Function at 0x406fb8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x407000
call fcn.0040a533
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 0x407000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x407043
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x40702c
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 0x40702c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x407040
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 0x4084d1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4084f5
cmp dword [edi + 0x54], 0
jne 0x4084f5
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040a533
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00408492
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40af5c
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4365ec
call fcn.00422bd2
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40af81
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40afc7
lea ecx, [ebp - 0x10]
call fcn.00403a20
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405043
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403ca0
mov eax, esi
call fcn.00422caa
ret 8
Function at 0x410881
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4108c8
call fcn.0040a533
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4108c8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4108e4
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004103f9
mov esi, eax
test edi, edi
je 0x4108e2
test ebx, ebx
je 0x4108e2
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4216ac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44765c]
jne 0x4216b6
repz ret
jmp fcn.00426f66

Function at 0x42ef15
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00426975
and dword [ebp - 4], 0
cmp dword [0x44b518], 0
mov ebx, eax
jne 0x42efc6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42f077
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42f077
push eax
call fcn.00426903
mov dword [esp], 0x43c404
push edi
mov dword [0x44b518], eax
call esi
push eax
call fcn.00426903
mov dword [esp], 0x43c3f0
push edi
mov dword [0x44b51c], eax
call esi
push eax
call fcn.00426903
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44b520], eax
call esi
push eax
call fcn.00426903
pop ecx
mov dword [0x44b528], eax
test eax, eax
je 0x42efc6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00426903
pop ecx
mov dword [0x44b524], eax
mov eax, dword [0x44b524]
cmp eax, ebx
je 0x42f01e
cmp dword [0x44b528], ebx
je 0x42f01e
push eax
call fcn.0042697e
push dword [0x44b528]
mov esi, eax
call fcn.0042697e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42f01e
test edi, edi
je 0x42f01e
call esi
test eax, eax
je 0x42f015
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42f015
test byte [ebp - 0xc], 1
jne 0x42f01e
or dword [ebp + 0x10], 0x200000
jmp 0x42f057
mov eax, dword [0x44b51c]
cmp eax, ebx
je 0x42f057
push eax
call fcn.0042697e
pop ecx
test eax, eax
je 0x42f057
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42f057
mov eax, dword [0x44b520]
cmp eax, ebx
je 0x42f057
push eax
call fcn.0042697e
pop ecx
test eax, eax
je 0x42f057
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44b518]
call fcn.0042697e
pop ecx
test eax, eax
je 0x42f077
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42f079
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret