joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42af60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x480628
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4a4a28]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
test edi, edi
je 0x42b185
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x42b185
push 3
call fcn.0042aac0
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x42b185
push 2
lea eax, [esp + 0x20]
push eax
push 0
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
test edi, edi
mov dword [esp + 0x28], edi
jbe 0x42b17e
mov ecx, SysReAllocString
mov eax, ebx
call fcn.0042aa60
lea eax, [eax + eax + 0x104]
mov dword [esp + 0x24], eax
add eax, edi
push eax
call fcn.0044288b
add esp, 4
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
push esi
mov ebx, eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0x24]
push edx
push edi
push ebx
push esi
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42b175
lea ecx, [esp + 0x14]
call fcn.00402860
mov eax, dword [esp + 0x24]
push eax
lea ecx, [ebx + edi]
push 0
push ecx
mov dword [esp + 0x44], 0
call fcn.004692d0
mov edi, dword [ebp + 0xc]
add esp, 0xc
push edi
lea edx, [esp + 0x18]
push str.__s_
push edx
call fcn.004048d0
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, ebx
call fcn.0042b1a0
test eax, eax
jne 0x42b0cc
push 2
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [esp + 0x18]
push str.__s_
push eax
call fcn.004048d0
mov ecx, dword [esp + 0x20]
add esp, 0xc
push esi
call fcn.0042b6a0
mov ecx, dword [ebp + 0x10]
add esp, 4
push esi
call fcn.0042b6a0
add esp, 4
push esi
mov ecx, 0x491008
call fcn.0042b6a0
add esp, 4
jmp 0x42b164
call fcn.0042b250
cmp byte [eax], 0
mov dword [esp + 0x24], eax
jne 0x42b0f5
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp + 0x10]
push esi
call fcn.0042b6a0
add esp, 4
jmp 0x42b164
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 8]
push 5
call fcn.0042aac0
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x42b164
mov edi, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov edx, edi
sub edx, ebx
push edx
push ebx
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
push esi
call fcn.0042b6a0
add esp, 4
push 0
mov ecx, ebx
sub ecx, edi
add ecx, dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push eax
push ecx
push edi
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.00402840
push ebx
call fcn.00442886
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b6a0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47fa68
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4a4a28]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
xor eax, eax
test ecx, ecx
mov dword [esp + 8], eax
je 0x42b738
push ecx
lea ecx, [esp + 8]
call fcn.00404a50
push 2
push 0x48cd24
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.00409170
mov eax, dword [esp + 4]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x24]
add ecx, ecx
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b734
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x14
ret
Function at 0x42c130
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x48176b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x4a4a28]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0xc], eax
jle 0x42c178
test eax, eax
jl 0x42c173
cmp eax, dword [ebp + 0xc]
jge 0x42c173
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + eax*4]
jmp 0x42c17a
call fcn.00442afc
xor edi, edi
mov edx, dword [edi]
mov eax, dword [esp + 0x3c]
mov edx, dword [edx + 0x1c]
push 0
push eax
mov ecx, edi
call edx
test eax, eax
je 0x42c2ea
call fcn.00442c05
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42c1ac
push 0x80004005
call fcn.00402720
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], 0
call fcn.00442c05
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42c1de
push 0x80004005
call fcn.00402720
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
mov eax, str.Exec
mov byte [esp + 0x28], 1
call fcn.00439bd0
mov dword [esp + 0x14], eax
mov edx, dword [edi]
mov edx, dword [edx + 0x78]
lea eax, [esp + 0x38]
push eax
push 0
mov ecx, edi
call edx
test eax, eax
je 0x42c28d
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
push eax
push str.Exec
push ecx
call fcn.004674aa
add esp, 0xc
test eax, eax
jne 0x42c28d
mov edx, dword [edi]
mov edx, dword [edx + 0x60]
lea eax, [esp + 0x38]
push eax
mov ecx, edi
call edx
test eax, eax
je 0x42c28d
push 0x10
call fcn.0044285b
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x28], 2
je 0x42c26d
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x40]
push ebp
push eax
call fcn.00436ae0
mov esi, eax
jmp 0x42c26f
xor esi, esi
mov edx, dword [esp + 0x34]
push edx
push esi
mov byte [esp + 0x30], 1
call fcn.00436cd0
test esi, esi
je 0x42c28d
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
mov ecx, edi
call edx
test eax, eax
jne 0x42c201
mov byte [esp + 0x28], al
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c2c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c2ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword [ecx + 0x10], 0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 0x10
Function at 0x42c9f0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
push str.DoSystemShutdown
push str.CActionDoc
call fcn.00420ef0
add esp, 8
mov edi, 0x57
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0xc]
push ecx
push 0x28
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x42cab1
xor eax, eax
lea edx, [esp + 0x14]
push edx
push str.SeShutdownPrivilege
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov esi, eax
test esi, esi
je 0x42caa2
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, eax
test esi, esi
je 0x42caa2
push 0
push 1
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
mov esi, eax
call ebx
mov edi, eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x42cac1
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov esi, eax
call ebx
mov edi, eax
mov eax, dword [esp + 0x24]
push esi
push str.DoSystemShutdown
push str.CActionDoc
mov dword [eax + 0x10], edi
call fcn.00421170
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x14
ret 4
Function at 0x42d7c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47febb
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x4a4a28]
xor eax, esp
mov dword [esp + 0x248], eax
push ebp
push edi
mov eax, dword [0x4a4a28]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x268]
push esi
push str.ShellExecuteItem
push str.CActionItem
call fcn.00420fc0
add esp, 0xc
call fcn.0044bc48
mov ecx, dword [eax + 4]
call fcn.00449160
lea eax, [esp + 0x4c]
push eax
xor edi, edi
push edi
push esi
mov dword [esp + 0x26c], edi
call dword [sym.imp.SHELL32.dll_FindExecutableW]
cmp eax, 0x20
jae 0x42d846
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x42d898
push 0x3c
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.004692d0
add esp, 0xc
test ebx, ebx
mov dword [esp + 0x10], 0x3c
jne 0x42d869
mov dword [esp + 0x18], edi
jmp 0x42d870
mov edx, dword [ebx + 0x20]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x26c]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x20], str.open
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, eax
push edi
push str.ShellExecuteItem
push str.CActionItem
call fcn.00421170
add esp, 0xc
lea ecx, [esp + 0xf]
mov dword [esp + 0x260], 0xffffffff
call fcn.00404940
mov eax, edi
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.00467769
add esp, 0x258
ret
Function at 0x42d8f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47fe88
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4a4a28]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
push esi
push str.OpenFolderWithExplorer
push str.CActionItem
call fcn.00420fc0
add esp, 0xc
push esi
xor edi, edi
call fcn.004280b0
add esp, 4
test eax, eax
je 0x42da3d
call fcn.00442c05
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42d958
push 0x80004005
call fcn.00402720
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x44
lea ecx, [esp + 0x28]
push 0
push ecx
mov dword [esp + 0x84], 0
call fcn.004692d0
add esp, 0xc
push esi
xor eax, eax
push str.explorer
lea edx, [esp + 0x18]
push str._s__s
mov edi, 1
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x60], edi
mov word [esp + 0x64], 5
call fcn.004048d0
mov esi, dword [esp + 0x20]
add esp, 0x10
cmp dword [esi - 4], edi
jle 0x42d9e0
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.00404810
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x42da19
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
mov ecx, dword [esp + 0x18]
push ecx
call ebx
lea eax, [esi - 0x10]
mov dword [esp + 0x78], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42da3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
push str.OpenFolderWithExplorer
push str.CActionItem
call fcn.00421170
add esp, 0xc
mov eax, edi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x6c
ret
Function at 0x430e40
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov eax, esi
xor ebx, ebx
call fcn.00439bd0
mov ebp, eax
add ebp, 1
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044288b
mov dword [esp + 0x18], eax
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044288b
add esp, 8
cmp ebp, 0x7fffffff
mov edi, eax
mov dword [esp + 0x10], edi
ja 0x430eb6
mov ecx, dword [esp + 0x14]
mov eax, esi
mov edx, ebp
call fcn.00402c70
mov eax, esi
mov edx, ebp
mov ecx, edi
call fcn.00402c70
call fcn.00425390
mov eax, dword [esp + 0x14]
push eax
push edi
call fcn.0046765d
add esp, 8
test eax, eax
je 0x430fa5
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
push 0
call edi
mov esi, eax
add esi, 1
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044288b
add esp, 4
mov ebx, eax
push ebx
push esi
call edi
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push eax
call edi
push ebx
mov esi, eax
call edi
push ebx
call fcn.00442886
add esp, 4
test esi, esi
mov ebx, esi
jne 0x430f5e
cmp ebp, 0x7fffffff
ja 0x430f3b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, ebp
call fcn.00402c70
mov edi, dword [esp + 0x10]
call fcn.00425390
mov ecx, dword [esp + 0x14]
push ecx
mov edx, edi
push edx
call fcn.0046765d
add esp, 8
test eax, eax
jne 0x430ed1
jmp 0x430fa5
cmp ebp, 0x7fffffff
mov edi, dword [esp + 0x1c]
ja 0x430f77
mov eax, dword [esp + 0x10]
mov edx, ebp
mov ecx, edi
call fcn.00402c70
cmp word [edi], 0
je 0x430fa1
mov esi, dword [sym.imp.USER32.dll_CharNextW]
jmp 0x430f89
mov edi, dword [esp + 0x1c]
cmp word [edi], 0x2f
jne 0x430f94
mov word [edi], 0x5c
push edi
call esi
cmp word [eax], 0
mov dword [esp + 0x1c], eax
jne 0x430f85
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push eax
call fcn.00442886
push edi
call fcn.00442886
add esp, 8
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret 4
Function at 0x431e00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x4a4a28]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x2c]
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 4
mul edx
seto cl
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
neg ecx
or ecx, eax
push ecx
call fcn.0044288b
add esp, 4
xor ebx, ebx
test edi, edi
mov dword [esp + 0xc], eax
jle 0x431eda
test ebx, ebx
jl 0x431f37
cmp ebx, dword [esi + 0x2c]
jge 0x431f37
mov eax, dword [esi + 0x28]
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x431ecd
mov ecx, edi
call fcn.00432720
mov ecx, dword [esp + 0xc]
add eax, 0x3ff
adc edx, 0
shrd eax, edx, 0xa
add eax, 0x3ff
shr eax, 0xa
shr edx, 0xa
lea edx, [esp + 0x18]
mov dword [ecx + ebx*4], eax
mov eax, dword [edi + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x431ecd
mov esi, dword [esp + 0x18]
shr esi, 4
not esi
push eax
and esi, 1
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
je 0x431ec9
mov eax, dword [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x10]
add ebx, 1
cmp dword [esp + 0x14], ebx
jg 0x431e54
mov ecx, esi
call fcn.00438dc0
mov edi, eax
test edi, edi
je 0x431f10
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi]
mov edx, dword [edx + 0x1c]
push eax
push ecx
push edi
mov ecx, esi
call edx
mov edi, dword [edi + 0x20]
test edi, edi
je 0x431f0c
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x431f10
or dword [esi + 0x38], 4
mov eax, dword [esp + 0xc]
push eax
call fcn.00442886
mov ecx, dword [esp + 0x270]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00467769
mov esp, ebp
pop ebp
ret
jmp fcn.00442afc
Function at 0x433200
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x481470
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4a28]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x40]
mov edi, ecx
xor esi, esi
call fcn.00442c05
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x433249
push 0x80004005
call fcn.00402720
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x40], eax
push 4
lea eax, [esp + 0x44]
mov ebx, edi
mov dword [esp + 0x34], esi
call fcn.00434500
test eax, eax
je 0x4333a5
mov esi, dword [esp + 0x40]
push esi
call fcn.004280b0
add esp, 4
test eax, eax
jne 0x4332f9
lea ecx, [esp + 0x14]
call fcn.0044f0c8
xor ebx, ebx
cmp esi, ebx
mov byte [esp + 0x30], 1
je 0x4332a3
lea ecx, [esp + 0x14]
push ecx
mov eax, esi
call fcn.00433f10
push ebx
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x433329
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, ebx
jle 0x4332ec
lea ebx, [ebx]
cmp esi, ebx
jl 0x433324
cmp esi, eax
jge 0x433324
mov edx, dword [esp + 0x18]
mov eax, dword [edx + esi*4]
mov ecx, dword [edi + 0x10]
push eax
push 0x491cc8
push ecx
call fcn.0042af60
mov eax, dword [esp + 0x28]
add esi, 1
add esp, 0xc
cmp eax, esi
jg 0x4332c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], bl
call fcn.0044f279
mov edi, dword [esp + 0x3c]
mov ebx, dword [edi]
lea ecx, [esp + 0x40]
push ecx
call fcn.004285b0
add esp, 4
push 1
push 0x48df2c
lea ecx, [esp + 0x48]
call fcn.00409170
test ebp, ebp
jne 0x43335e
xor eax, eax
jmp 0x433372
call fcn.00442afc
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], bl
call fcn.0044f279
lea eax, [esi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43335a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4333cf
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x433363
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x48]
call fcn.00409170
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push 1
push ecx
push eax
call edx
mov esi, eax
neg esi
lea eax, [esp + 0x40]
sbb esi, esi
push eax
mov ecx, edi
add esi, 1
call fcn.004092e0
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4333cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
Function at 0x433f10
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, eax
mov ecx, SysReAllocString
xor edx, edx
cmp word [eax], dx
je 0x433f2f
add eax, 2
sub ecx, 1
jne 0x433f20
jmp 0x433f37
test ecx, ecx
jne 0x43401a
mov edx, 0x80070057
xor eax, eax
xor ecx, ecx
test edx, edx
setl cl
mov edx, 2
sub ecx, 1
and ecx, eax
add ecx, 0x104
mov ebp, ecx
xor ecx, ecx
mov eax, ebp
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044288b
add esp, 4
cmp ebp, 0x7fffffff
mov edi, eax
ja 0x433f82
mov eax, esi
mov edx, ebp
mov ecx, edi
call fcn.00402c70
mov ecx, ebp
mov eax, edi
call fcn.0042aa60
mov dword [esp + 0x14], eax
nop
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
add esi, 1
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044288b
add esp, 4
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
call fcn.00442886
add esp, 4
test esi, esi
jne 0x434045
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 8]
push edi
push eax
mov ecx, ebx
call fcn.0044f3e0
call fcn.00425390
test edi, edi
mov dword [esp + 0x10], esi
je 0x434026
cmp ebp, 0x7fffffff
ja 0x434026
lea ecx, [esp + 0x10]
push ecx
push ebp
push edi
call fcn.00401040
test eax, eax
jge 0x43402f
xor ecx, ecx
jmp 0x434033
mov eax, SysReAllocString
sub eax, ecx
jmp 0x433f3e
mov eax, 0x80070057
xor ecx, ecx
jmp 0x434033
mov ecx, dword [esp + 0x10]
xor edx, edx
test eax, eax
setl dl
sub edx, 1
and edx, ecx
cmp edx, dword [esp + 0x14]
jae 0x434096
test edi, edi
mov dword [esp + 0x10], 0
je 0x43406d
cmp ebp, 0x7fffffff
ja 0x43406d
lea eax, [esp + 0x10]
push eax
push ebp
push edi
call fcn.00401040
test eax, eax
jge 0x434076
xor ecx, ecx
jmp 0x43407a
mov eax, 0x80070057
xor ecx, ecx
jmp 0x43407a
mov ecx, dword [esp + 0x10]
xor edx, edx
test eax, eax
setl dl
sub edx, 1
and edx, ecx
test esi, esi
mov dword [esp + 0x14], edx
je 0x433f90
mov ebx, dword [esp + 0x1c]
push edi
call fcn.00442886
mov eax, dword [ebx + 8]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x438700
Capabilities:
Enumerate gui resources
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x47fe4b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4a4a28]
xor eax, esp
mov dword [esp + 0x21c], eax
push esi
mov eax, dword [0x4a4a28]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
jne 0x438745
xor eax, eax
jmp 0x438845
push str.QueryProcessTopLevelWindow
push str.CInstallAction
call fcn.00420ef0
xor eax, eax
mov dword [esp + 0x1c], eax
add esp, 8
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
push 0x438870
mov dword [esp + 0x1c], esi
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x43882a
cmp dword [esp + 0xc], eax
je 0x43882a
call fcn.00442c05
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4387a9
push 0x80004005
call fcn.00402720
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
push 0x104
lea ecx, [esp + 0x20]
mov dword [esp + 0x234], 0
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x10]
push str._p:_s
push edx
call fcn.004048d0
mov esi, dword [esp + 0x18]
push str.QueryProcessTopLevelWindow
call fcn.00421450
lea eax, [esi - 0x10]
add esp, 0x14
mov dword [esp + 0x230], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43882a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
push ecx
push str.QueryProcessTopLevelWindow
push str.CInstallAction
call fcn.00421310
mov eax, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00467769
add esp, 0x22c
ret

Function at 0x438a20
Capabilities:
Terminate thread

Disassembly:
push esi
push 0x4935e4
push str.CPanelAction
mov esi, ecx
call fcn.00420ef0
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
add esp, 8
mov ecx, esi
call edx
test eax, eax
je 0x438a6b
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x2c]
push 0x4c7
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x14]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x14]
mov dword [ecx + 0x2c], 0
push 0x4935e4
push str.CPanelAction
xor esi, esi
call fcn.00421090
add esp, 8
pop esi
ret