joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495140
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4e8d23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004dc063
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004e16fc
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004e2d7e
test eax, eax
je 0x49525c
mov ecx, dword [esp + 0x3c]
call fcn.004e1729
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x495220
push edi
mov ecx, esi
call fcn.004ded94
mov ecx, esi
call fcn.004953c0
cmp dword [esp + 0x38], 1
jne 0x495255
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004deecf
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x497c80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x497cb3
push esi
call fcn.0049ad80
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x497cac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x497d39
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x497d22
mov eax, dword [esi + 8]
test eax, eax
je 0x497cd7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x497d1e
cmp eax, 2
je 0x497d22
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x497cca
cmp eax, 3
je 0x497cfd
cmp eax, 1
jne 0x497cca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x497cca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x497cca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00497d60
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x497d48
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00497d60
add esp, 4
pop esi
ret
Function at 0x4acef0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.004b3370
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x4acfe9
lea ecx, [esp + 0x10]
push ecx
push str..htm
push SysReAllocString
mov ecx, esi
call fcn.004ad000
test eax, eax
jne 0x4acfe9
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push SysReAllocString
mov ecx, esi
call fcn.004ad000
test eax, eax
jne 0x4acfe9
lea edx, [esp + 0x10]
push str.__1_
push edx
call fcn.004ca8d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4acfba
lea eax, [esp + 0x10]
push 0x536774
push eax
call fcn.004ca8d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4acfba
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4acfbd
mov byte [esi], 0
push 0x535f3c
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8

Function at 0x4ad000
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4ad062
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x4b32b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4e9c98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x4b3360
mov eax, dword [0x537874]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004dae32
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004dae81
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.004dadde
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4b3347
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4b3347
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004daa4e
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4b6460
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ea120
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b6607
mov ecx, dword [0x537874]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x4b655c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004b5180
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004dab3b
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.004daa4e
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x535f3c
call fcn.004daabc
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.004b5540
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004dab3b
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.004daa4e
lea ecx, [esp + 0xc]
call fcn.004daf16
mov ecx, dword [esp + 0xc]
push 0x53697c
push ecx
call fcn.004c97c4
add esp, 8
test eax, eax
je 0x4b6584
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x4b64bd
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004daa4e
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004daa4e
jmp 0x4b660b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004b6200
test eax, eax
push 0
je 0x4b65ef
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.004b48a0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4b65d5
cmp eax, 0x64
jg 0x4b65c3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.DLL_MulDiv]
mov esi, eax
jmp 0x4b6560
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.DLL_MulDiv]
mov esi, eax
jmp 0x4b6560
cmp eax, 0x64
jge 0x4b655c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_MulDiv]
mov esi, eax
jmp 0x4b6560
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.004b48a0
mov esi, eax
jmp 0x4b6560
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x4b6615
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x4be8d0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4be973
test eax, eax
jbe 0x4be973
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4be973
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4be91e
xor esi, esi
jmp 0x4be924
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4be94f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004c2210
add esi, eax
push esi
mov ebx, esi
call fcn.004c2210
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4be930
pop ebp
test edi, edi
pop edi
jne 0x4be973
test ebx, ebx
je 0x4be973
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004ca100
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x4beab5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4bebcd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4bebcd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004dc4b5
mov esi, eax
test esi, esi
je 0x4bebcd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4bebcd
mov ecx, esi
call fcn.004bea20
cmp edi, eax
jge 0x4bebcd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4beb53
mov dword [esp + 0x34], 1
jmp 0x4bebae
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4bebcd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004bdf40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4c4830
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
call fcn.004cb7c7
add esp, 8
push 1
call fcn.004cb6d4
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 4]
xor eax, eax
mov cl, byte [edx]
test cl, cl
je 0x4c4876
push esi
mov esi, eax
shl esi, 7
add esi, eax
inc edx
movsx eax, cl
mov cl, byte [edx]
test cl, cl
lea eax, [esi + eax - 0x61c8ffff]
jne 0x4c485d
pop esi
ret
Function at 0x4dce59
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4dce91
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004daea9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004dae81
jmp 0x4dce9d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4de54e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4de590
call fcn.004e42ec
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x4de590
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x4de587
xor eax, eax
jmp 0x4de598
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004de59e
pop edi
pop esi
pop ebx
ret 4

Function at 0x4e481c
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 0x4e484a
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x4e4868
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004e4782
jmp 0x4e4868
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4e4868
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004e4782
test edi, edi
mov eax, edi
jne 0x4e4852
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401020
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
xor esi, esi
cmp dword [0x41b100], esi
push edi
jne 0x40105c
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x401052
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x41b0fc], eax
mov dword [0x41b100], 1
mov eax, dword [0x41b0fc]
test eax, eax
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x401079
push edi
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x4010b5
push ebp
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp]
test eax, eax
jne 0x4010aa
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
mov eax, dword [esp + 0x14]
jns 0x40109a
mov ecx, dword [eax + 8]
mov edx, dword [eax]
jmp 0x4010a0
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
push ecx
call edx
test eax, eax
je 0x4010bd
mov dword [ebp], eax
push edi
push eax
call ebx
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
pop edi
mov eax, esi
pop esi
pop ebx
ret 0xc
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
ret 0xc
Function at 0x401120
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
lea eax, [ecx + 0x10]
push ebx
mov dword [esp + 0xc], eax
mov dword [eax], 0x1f4
lea eax, [ecx + 0x14]
push ebp
push esi
lea esi, [ecx + 4]
lea ebx, [ecx + 8]
lea ebp, [ecx + 0xc]
mov dword [esp + 0x18], eax
mov dword [eax], 0
lea eax, [ecx + 0x18]
add ecx, 0x1c
cmp byte [0x409004], 0
mov dword [esi], 0x80000000
mov dword [ebx], 0x80000000
mov dword [ebp], 0x1f4
mov dword [esp + 0x1c], eax
mov dword [eax], 0x64
mov dword [esp + 0x20], ecx
mov dword [ecx], 0x64
je 0x4011aa
push str.max_Finder
call dword [sym.imp.maxutil.dll_char_const____cdecl_UtilityInterface::GetRegistryKeyBase_void_]
push eax
push str._s_s
push 0x104
push 0x41b108
call dword [sym.imp.MSVCR80.dll__snprintf]
add esp, 0x14
mov byte [0x409004], 0
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push 0x41b108
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40129f
mov edx, dword [esp + 0x10]
push edi
lea ecx, [esp + 0x10]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push eax
push str.InitX
mov edi, 4
push edx
mov dword [esp + 0x28], edi
call esi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push ebx
push 0
push 0
push str.InitY
push ecx
mov dword [esp + 0x28], edi
call esi
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push ebp
push 0
push 0
push str.InitW
push eax
mov dword [esp + 0x28], edi
call esi
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
push 0
push 0
push str.InitH
push eax
mov dword [esp + 0x28], edi
call esi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
push 0
push 0
push str.InitFileSpec
push eax
mov dword [esp + 0x28], edi
call esi
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
push 0
push 0
push str.InitPropDlgX
push eax
mov dword [esp + 0x28], edi
call esi
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
push 0
push 0
push str.InitPropDlgY
push eax
mov dword [esp + 0x28], edi
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x4012b0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
cmp byte [0x409004], 0
push esi
mov esi, ecx
je 0x4012ea
push str.max_Finder
call dword [sym.imp.maxutil.dll_char_const____cdecl_UtilityInterface::GetRegistryKeyBase_void_]
push eax
push str._s_s
push 0x104
push 0x41b108
call dword [sym.imp.MSVCR80.dll__snprintf]
add esp, 0x14
mov byte [0x409004], 0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0x4073e6
push 0
push 0x41b108
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4013bd
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [esi + 4]
push edx
push 4
push eax
mov eax, dword [esp + 0x18]
push str.InitX
push eax
call edi
mov edx, dword [esp + 8]
push 4
lea ecx, [esi + 8]
push ecx
push 4
push 0
push str.InitY
push edx
call edi
mov ecx, dword [esp + 8]
push 4
lea eax, [esi + 0xc]
push eax
push 4
push 0
push str.InitW
push ecx
call edi
mov eax, dword [esp + 8]
push 4
lea edx, [esi + 0x10]
push edx
push 4
push 0
push str.InitH
push eax
call edi
mov edx, dword [esp + 8]
push 4
lea ecx, [esi + 0x14]
push ecx
push 4
push 0
push str.InitFileSpec
push edx
call edi
mov ecx, dword [esp + 8]
push 4
lea eax, [esi + 0x18]
push eax
push 4
push 0
push str.InitPropDlgX
push ecx
call edi
mov edx, dword [esp + 8]
push 4
add esi, 0x1c
push esi
push 4
push 0
push str.InitPropDlgY
push edx
call edi
pop edi
pop esi
add esp, 8
ret

Function at 0x401720
Capabilities:
Get common file path

Disassembly:
sub esp, 0x228
push ebx
push esi
push edi
lea eax, [esp + 0x130]
push eax
push 0x104
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x9c59
mov ecx, ebx
call fcn.004035f0
lea edx, [esp + 0xc]
mov edi, edi
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x401750
lea eax, [esp + 0x130]
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401767
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x401780
mov ecx, eax
shr ecx, 2
mov esi, edx
mov edx, dword [ebx + 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0xc
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
add esp, 0x228
ret

Function at 0x4017c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x4048c0
push esi
mov esi, ecx
call fcn.004015d0
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x4048f4
push esi
push 0x4046a0
mov ecx, esi
call fcn.004015f0
push eax
push 0x6d
mov ecx, esi
call fcn.004015d0
push eax
call fcn.00401e10
mov dword [esi + 0x24], eax
pop esi
ret
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov ecx, esi
pop esi
jmp fcn.00403e00
Function at 0x401b50
Capabilities:
Print debug messages

Disassembly:
push edi
xor edi, edi
cmp dword [0x41b0f8], edi
je 0x401b66
push str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x41b0f0], edi
je 0x401b77
mov eax, 1
pop edi
ret 4
cmp dword [0x41b0f8], edi
push esi
jne 0x401b89
call fcn.00401960
test eax, eax
je 0x401bcb
mov eax, dword [0x41b210]
test eax, eax
mov esi, dword [section..data]
jne 0x401bb5
push str.ActivateActCtx
push 0x41b104
push 0x407348
call fcn.00401020
test eax, eax
mov dword [0x41b210], eax
je 0x401bcb
mov ecx, dword [esp + 0xc]
push ecx
push esi
call eax
test eax, eax
je 0x401bcb
pop esi
mov eax, 1
pop edi
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7f
je 0x401be0
cmp eax, 0x7e
je 0x401be0
cmp eax, 0x78
jne 0x401bef
mov eax, 1
pop esi
mov dword [0x41b0f0], eax
pop edi
ret 4
pop esi
mov eax, edi
pop edi
ret 4
Function at 0x402410
Capabilities:
Set current directory

Disassembly:
sub esp, 0x124
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x28]
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], ecx
xor esi, esi
push 0x9c58
mov ecx, ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], esi
call fcn.004035f0
lea edx, [esp + 8]
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
cmp eax, esi
je 0x402492
push edi
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edi, 0x4073e6
lea esi, [esp + 0x2c]
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
pop edi
je 0x402492
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, ebx
call fcn.00401720
pop esi
pop ebx
add esp, 0x124
ret
Function at 0x403290
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4032c0
mov eax, dword [esi + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esi + 0x84]
push ecx
push 0
push esi
push 0x403180
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
ret
mov edx, dword [esi + 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
ret
Function at 0x4056c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49bb1b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4d58b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], 0x4c3244
call fcn.0047bb73
push 4
mov dword [ebp - 4], 0
call fcn.0043dab4
mov edi, eax
add esp, 4
test edi, edi
je 0x40573c
call fcn.0047be25
mov dword [edi], eax
call fcn.0047bc53
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0047bb34
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405732
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0047bb5c
jmp 0x40573e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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