joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402070
Capabilities:
Get disk information

Disassembly:
sub esp, 0x264
mov eax, dword [0x45308c]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
mov ebx, dword [esp + 0x26c]
push esi
mov esi, dword [esp + 0x274]
mov dword [esp + 0xc], esi
test ebx, ebx
je 0x402180
test esi, esi
je 0x402180
push ebp
push edi
lea eax, [esp + 0x7c]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x40213c
cmp byte [esp + 0x7c], 0
je 0x40213c
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea esi, [esp + 0x7c]
nop
push 0x440d54
push esi
call ebp
test eax, eax
je 0x402130
push 0x440d50
push esi
call ebp
test eax, eax
je 0x402130
mov cl, byte [esi]
mov dl, byte [esi + 1]
push 0x64
lea eax, [esp + 0x1c]
mov byte [esp + 0x14], cl
push eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x402144
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push edi
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.0042ac58
add esp, 0xc
test eax, eax
je 0x40215f
add esi, 4
cmp byte [esi], 0
jne 0x4020d0
mov esi, dword [esp + 0x14]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0042a8de
add esp, 0x264
ret
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add ebx, edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, 1
jmp 0x402146
mov ecx, dword [esp + 0x268]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0042a8de
add esp, 0x264
ret

Function at 0x4021a0
Capabilities:
Get process image filename
Terminate process

Disassembly:
sub esp, 0x20c
mov eax, dword [0x45308c]
xor eax, esp
mov dword [esp + 0x208], eax
push edi
mov edi, dword [esp + 0x218]
test edi, edi
jne 0x4021d8
xor eax, eax
pop edi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042a8de
add esp, 0x20c
ret
mov eax, dword [esp + 0x214]
push esi
push eax
push 0
push 0x411
mov byte [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x402230
push 0x104
lea ecx, [esp + 0x110]
push ecx
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameA
test eax, eax
je 0x402229
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x110]
push eax
call fcn.00402070
add esp, 8
test eax, eax
jne 0x402249
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042a8de
add esp, 0x20c
ret
lea ecx, [esp + 8]
push edi
push ecx
call fcn.0042a920
add esp, 8
test eax, eax
je 0x402264
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x210]
pop esi
pop edi
xor ecx, esp
mov eax, 1
call fcn.0042a8de
add esp, 0x20c
ret
Function at 0x402290
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
mov eax, dword [0x45308c]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push edi
push 0x124
lea eax, [esp + 0x10]
push 0
push eax
mov edi, ecx
mov dword [esp + 0x14], 0
call fcn.0042b050
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40230e
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40230e
add edi, 0x1b4
mov edx, dword [esp + 0x10]
push edi
push edx
call fcn.004021a0
add esp, 8
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4022f1
mov ecx, dword [esp + 0x130]
pop edi
pop esi
xor ecx, esp
call fcn.0042a8de
add esp, 0x12c
ret
Function at 0x402330
Capabilities:
Get common file path
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43d62b
mov eax, dword fs:[0]
push eax
sub esp, 0x31c
mov eax, dword [0x45308c]
xor eax, esp
mov dword [esp + 0x318], eax
push ebp
push esi
push edi
mov eax, dword [0x45308c]
xor eax, esp
push eax
lea eax, [esp + 0x32c]
mov dword fs:[0], eax
mov ebp, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0
call fcn.00402fc0
mov ecx, 0xd
mov esi, str.SoftWareMicrosoftWindowsCurrentVersionUninstall_
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0x3bc]
mov dword [esp + 0x334], 0
mov dword [esp + 0x18], 0xffffffff
movsb byte es:[edi], byte [esi]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4023b0
lea edi, [esp + 0x1c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4023c0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x20]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00404340
lea edx, [esp + 0x12c]
push edx
call fcn.00401e20
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x120]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402413
lea edi, [esp + 0x1c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402423
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x1c]
rep movsb byte es:[edi], byte [esi]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402440
mov ecx, dword [str..reg]
mov dl, byte [0x440d6c]
push 0
push 0x80
push 2
push 0
mov dword [eax], ecx
push 3
mov byte [eax + 4], dl
push 0xc0000000
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4024f2
mov ecx, dword [0x451850]
mov eax, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x28]
add eax, dword [0x451854]
push 0
lea edx, [esp + 0x18]
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea edx, [esp + 0x228]
push edx
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [esp + 0x224]
push ecx
lea edx, [esp + 0x124]
push str.regedit__s__s
push edx
call fcn.00401d80
add esp, 0xc
push 0
push 2
push 0
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x20]
call fcn.00403060
lea ecx, [esp + 0x10]
mov dword [esp + 0x334], 0xffffffff
call fcn.00402fd0
mov ecx, dword [esp + 0x32c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x318]
xor ecx, esp
call fcn.0042a8de
add esp, 0x328
ret
Function at 0x402530
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x34c
mov eax, dword [0x45308c]
xor eax, esp
mov dword [esp + 0x348], eax
push esi
mov esi, dword [esp + 0x354]
push edi
push 0x103
lea eax, [esp + 0x251]
push 0
push eax
mov byte [esp + 0x258], 0
call fcn.0042b050
push 0x103
lea ecx, [esp + 0x159]
push 0
push ecx
mov byte [esp + 0x160], 0
call fcn.0042b050
push esi
lea edx, [esp + 0x268]
push str._s.
push edx
call fcn.00401d80
add esp, 0x24
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4025ce
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x348]
xor ecx, esp
call fcn.0042a8de
add esp, 0x34c
ret
push ebp
nop
lea edx, [esp + 0xc]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0xc], 0x10
mov ebp, eax
lea eax, [esp + 0x38]
je 0x40267b
mov ecx, 0x440db4
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402612
test dl, dl
je 0x40260e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402612
add eax, 2
add ecx, 2
test dl, dl
jne 0x4025f2
xor eax, eax
jmp 0x402617
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4026a0
mov ecx, 0x440db0
lea eax, [esp + 0x38]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402648
test dl, dl
je 0x402644
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402648
add eax, 2
add ecx, 2
test dl, dl
jne 0x402628
xor eax, eax
jmp 0x40264d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4026a0
lea eax, [esp + 0x38]
push eax
push esi
lea ecx, [esp + 0x154]
push str._s_s
push ecx
call fcn.00401d80
lea edx, [esp + 0x15c]
push edx
call fcn.00402530
add esp, 0x14
jmp 0x4026a0
push eax
push esi
lea ecx, [esp + 0x154]
push str._s_s
push ecx
call fcn.00401d80
add esp, 0x10
lea edx, [esp + 0x14c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test ebp, ebp
jne 0x4025d0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x354]
pop ebp
neg eax
pop edi
sbb eax, eax
pop esi
xor ecx, esp
neg eax
call fcn.0042a8de
add esp, 0x34c
ret
Function at 0x4026f0
Capabilities:
Delete file
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x45308c]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x15]
push ebx
push eax
mov edi, ecx
mov byte [esp + 0x1c], bl
call fcn.0042b050
push 0x103
lea ecx, [esp + 0x125]
push ebx
push ecx
mov byte [esp + 0x12c], bl
call fcn.0042b050
add esp, 0x18
xor esi, esi
lea ebp, [edi + 0x2b8]
jmp 0x402750
push esi
lea edx, [esp + 0x118]
push str.lnk_d
push edx
call fcn.0042b0ca
push 0x104
push 1
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x12c]
push ecx
push ebp
push SysReAllocStringLen
mov byte [esp + 0x34], bl
call fcn.00404220
add esp, 0x24
cmp byte [esp + 0x10], bl
je 0x4027d3
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x4027b7
lea eax, [esp + 0x10]
push eax
call fcn.00402530
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push reloc.OLEAUT32.dll_SafeArrayGetDim
jmp 0x4027cc
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
mov ecx, edi
call fcn.00401ca0
inc esi
cmp esi, 0x64
jl 0x402750
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042a8de
add esp, 0x20c
ret
Function at 0x403060
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x19c
mov eax, dword [0x45308c]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push esi
mov esi, dword [esp + 0x1a8]
push edi
mov edi, dword [esp + 0x1b0]
push 0x40
lea eax, [esp + 0x64]
push 0
push eax
mov ebx, ecx
mov dword [esp + 0x68], 0x44
call fcn.0042b050
push 0x38
lea ecx, [esp + 0x34]
push 0
push ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x38], 0x3c
call fcn.0042b050
mov eax, dword [esp + 0x1cc]
add esp, 0x18
cmp eax, 3
ja case.default.0x4030ce
jmp dword [eax*4 + 0x40324c]
push edi
push esi
lea edx, [esp + 0xa8]
push str._s__s
push edx
call fcn.0042b0ca
mov eax, dword [esp + 0x1c8]
add esp, 0x10
push eax
lea ecx, [esp + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp case.default.0x4030ce
mov edx, dword [esp + 0x1b8]
push edx
push 0
push edi
push esi
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp case.default.0x4030ce
push edi
push esi
lea eax, [esp + 0xa8]
push str._s__s
push eax
call fcn.0042b0ca
mov cx, word [esp + 0x1c8]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x60]
push eax
push 0
push 0
push 0x10
push 0
push 0
mov word [esp + 0xa8], cx
push 0
lea ecx, [esp + 0xc0]
push ecx
push 0
mov dword [esp + 0xb0], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403231
mov edx, dword [esp + 0x10]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
jmp case.default.0x4030ce
mov ecx, ebx
call fcn.00402fe0
test eax, eax
jne 0x4031d5
mov ecx, dword [esp + 0x1b8]
push ecx
push eax
push edi
push esi
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp case.default.0x4030ce
mov eax, dword [esp + 0x1b8]
lea ecx, [esp + 0x20]
lea edx, [esp + 0xa0]
push ecx
mov dword [esp + 0x24], 0x3c
mov dword [esp + 0x28], 0x40
mov dword [esp + 0x30], str.runas
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne case.default.0x4030ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 1
mov ecx, dword [esp + 0x1a4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042a8de
add esp, 0x19c
ret 0x10
Function at 0x403fd0
Capabilities:
Access peb ldr_data
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43d74b
mov eax, dword fs:[0]
push eax
sub esp, 0x53c
mov eax, dword [0x45308c]
xor eax, esp
mov dword [esp + 0x538], eax
push esi
push edi
mov eax, dword [0x45308c]
xor eax, esp
push eax
lea eax, [esp + 0x548]
mov dword fs:[0], eax
push 0x207
lea eax, [esp + 0x341]
push 0
push eax
mov byte [esp + 0x348], 0
call fcn.0042b050
push 0x103
lea ecx, [esp + 0x145]
push 0
push ecx
mov byte [esp + 0x14c], 0
call fcn.0042b050
add esp, 0x18
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
call fcn.00402fc0
call dword [sym.imp.USER32.dll_GetInputState]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x30]
push ecx
push 0
push 0x44190c
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x30]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4040b4
mov ecx, dword [str..bat]
mov dl, byte [0x441908]
mov dword [eax], ecx
mov byte [eax + 4], dl
push 0x104
lea eax, [esp + 0x23c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0x104
lea ecx, [esp + 0x138]
push ecx
lea edx, [esp + 0x240]
push edx
call edi
mov edx, dword [str._echo_off_r_n:winuar_r_nif_not_exist___s___del___0__else__del___s_goto_winuar_]
lea eax, [esp + 0x134]
push eax
mov ecx, eax
push ecx
push edx
lea eax, [esp + 0x348]
push eax
call fcn.0042b0ca
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404159
lea ecx, [esp + 0xc]
mov dword [esp + 0x550], eax
call fcn.00402fd0
or eax, esi
jmp 0x4041b5
push 0
lea edx, [esp + 0x14]
push edx
push 0x208
lea eax, [esp + 0x348]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea ecx, [esp + 0x138]
push ecx
lea edx, [esp + 0x38]
push edx
call edi
push 0
lea eax, [esp + 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
lea ecx, [esp + 0xc]
mov dword [esp + 0x550], 0xffffffff
call fcn.00402fd0
xor eax, eax
mov ecx, dword [esp + 0x548]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x538]
xor ecx, esp
call fcn.0042a8de
add esp, 0x548
ret
Function at 0x404220
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, 1
call fcn.004041e0
test eax, eax
je 0x404235
mov esi, 0x101
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push esi
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404256
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x24]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret
Function at 0x4054f0
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 0x405509
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405544
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x405540
lea ebx, [ebx]
cmp esi, eax
jae 0x405544
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405530
cmp esi, eax
jb 0x40554a
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 0x405cd0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x43d9e0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45308c]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], vtable.CBitmap.0
lea ecx, [esp + 0x30]
mov dword [esp + 0x60], ebx
call fcn.004140a1
push 0x3e9
mov ecx, esi
mov byte [esp + 0x64], 1
mov dword [esp + 0x18], ebx
call fcn.004151a0
push ebx
mov ebp, eax
push 0x20e
push ebx
mov ecx, ebp
call fcn.0041525e
call fcn.00413d9e
movzx ecx, word [esi + 0xac]
mov eax, dword [eax + 8]
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
lea ecx, [esp + 0x1c]
call fcn.0041483c
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x40]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00414556
cmp eax, ebx
jne 0x405d88
xor eax, eax
jmp 0x405d8b
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x34]
call fcn.0041456a
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x405db6
mov edx, dword [esp + 0x34]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x14], eax
jmp 0x405dba
mov dword [esp + 0x14], ebx
mov ecx, dword [ebp + 0x20]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp + 0x20]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
sub esi, dword [esp + 0x24]
sub edi, dword [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00414556
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
push 0xcc0020
push ebx
push ebx
push ecx
mov ecx, dword [esp + 0x30]
push esi
push edi
push edx
mov edx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x18]
call fcn.00414868
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], bl
call fcn.004145e9
lea ecx, [esp + 0x18]
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x18], vtable.CBitmap.0
call fcn.00401460
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret

Function at 0x40a2d0
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4567d4], 0
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowsHookExA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
jne 0x40a2fa
call edi
push eax
push 0
push 0x409a40
push 0xffffffffffffffff
call esi
mov dword [0x4567d4], eax
cmp dword [0x4567d8], 0
jne 0x40a316
call edi
push eax
push 0
push 0x40a110
push 3
call esi
mov dword [0x4567d8], eax
mov eax, dword [0x4567dc]
test eax, eax
jne 0x40a332
call edi
push eax
push 0
push 0x40a210
push 4
call esi
mov dword [0x4567dc], eax
cmp dword [0x4567d4], 0
pop edi
pop esi
je 0x40a350
cmp dword [0x4567d8], 0
je 0x40a350
test eax, eax
je 0x40a350
mov eax, 1
ret
xor eax, eax
ret
Function at 0x412b82
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 0x412bc9
call fcn.00413d9e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x412bc9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x412be5
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004126fc
mov esi, eax
test edi, edi
je 0x412be3
test ebx, ebx
je 0x412be3
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41591b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x43e910
call fcn.0042be48
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x415940
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x415986
lea ecx, [ebp - 0x10]
call fcn.00401340
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.00412cd4
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401020
mov eax, esi
call fcn.0042bf20
ret 8

Function at 0x416aae
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 0x416ad2
cmp dword [edi + 0x54], 0
jne 0x416ad2
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00413d9e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
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.00416a6f
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 0x419262
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 0x4192aa
call fcn.00413d9e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4192aa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4192ed
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 0x4192d6
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 0x4192d6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4192ea
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 0x42a8de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45308c]
jne 0x42a8e8
repz ret
jmp fcn.004323bc