joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e4f0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5417b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x594ca8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x5704e4
lea ecx, [ebp - 0x14]
call fcn.004040f0
push 0x33
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.004046e0
push 1
push 0x57058c
lea ecx, [ebp - 0x14]
call fcn.00404340
push 0xe
push str.1905Player.exe
lea ecx, [ebp - 0x14]
call fcn.00404340
mov eax, dword [ebp - 0x14]
mov ebx, eax
test eax, eax
je 0x40e5a2
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x40e5a2
lea edi, [eax + eax]
mov eax, edi
call fcn.0051b880
mov esi, esp
test esi, esi
je 0x40e5a2
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40e5a4
xor eax, eax
lea ecx, [ebp - 0x18]
push ecx
push 0x20006
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e5dc
mov edx, dword [ebp - 0x18]
push 0x57053a
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40e5dc
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x33
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
lea ecx, [ebp - 0x14]
call fcn.004046e0
push 1
push 0x57058c
lea ecx, [ebp - 0x14]
call fcn.00404340
push 8
push 0x5712c4
lea ecx, [ebp - 0x14]
call fcn.00404340
mov eax, dword [ebp - 0x14]
mov ebx, eax
test eax, eax
je 0x40e64f
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x40e64f
lea edi, [eax + eax]
mov eax, edi
call fcn.0051b880
mov esi, esp
test esi, esi
je 0x40e64f
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40e651
xor eax, eax
lea ecx, [ebp - 0x18]
push ecx
push 0x20006
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e689
mov edx, dword [ebp - 0x18]
push 0x57053a
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40e689
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e6af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051553d
mov esp, ebp
pop ebp
ret

Function at 0x40e6d0
Capabilities:
Delete registry key

Disassembly:
call fcn.0040d990
call fcn.0040dc80
call fcn.0040df70
call fcn.0040e290
jmp fcn.0040e4f0
Function at 0x40efb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54185d
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x594ca8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
push 0x5704e4
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x128], ebx
call fcn.004040f0
mov dword [ebp - 4], ebx
mov edi, 1
mov dword [ebp - 0x128], edi
call fcn.00417515
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40f023
push 0x80004005
call fcn.00404860
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x118], eax
push 0x5712c4
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
lea ecx, [ebp - 0x118]
push 0x570bac
push ecx
mov dword [ebp - 4], edi
call fcn.00403cc0
push 0x103
lea edx, [ebp - 0x113]
push ebx
push edx
mov dword [ebp - 0x124], 0x104
mov byte [ebp - 0x114], bl
call fcn.00518ea0
mov eax, dword [ebp - 0x118]
add esp, 0x1c
cmp eax, ebx
jne 0x40f086
xor eax, eax
jmp 0x40f0ce
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, edi
cmp eax, 0x3fffffff
jg 0x40f0c6
lea edi, [eax + eax]
mov eax, edi
call fcn.0051b880
mov esi, esp
cmp esi, ebx
je 0x40f0c6
mov eax, dword [ebp - 0x118]
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push eax
push ebx
push 3
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40f0c8
xor eax, eax
mov esi, dword [ebp - 0x11c]
lea ecx, [ebp - 0x120]
push ecx
push 1
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f18f
mov ecx, dword [ebp - 0x120]
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
push str.DisplayVersion
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f18f
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jg 0x40f1d8
lea eax, [edi + edi]
call fcn.0051b880
mov esi, esp
cmp esi, ebx
je 0x40f1d8
push edi
push esi
push 0xffffffffffffffff
lea edx, [ebp - 0x114]
push edx
push ebx
xor ecx, ecx
push 3
mov word [esi], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x40f1d8
mov eax, esi
mov edx, esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40f171
sub eax, esi
sar eax, 1
mov esi, dword [ebp - 0x11c]
push eax
push edx
mov ecx, esi
call fcn.004046e0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f1b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
lea esp, [ebp - 0x138]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051553d
mov esp, ebp
pop ebp
ret
xor edx, edx
xor eax, eax
jmp 0x40f180
Function at 0x410c70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5411f8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x594ca8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00417515
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410cb0
push 0x80004005
call fcn.00404860
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push 0x57058c
add ecx, 0x27c
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00404260
push str.1905Client.exe
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.00404260
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00404790
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410d24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410d47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x3c
lea ecx, [ebp - 0x50]
push 0
push ecx
call fcn.00518ea0
mov esi, dword [ebp - 0x10]
add esp, 0xc
lea edx, [ebp - 0x50]
push edx
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x34], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410d98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4116f0
Capabilities:
Create directory
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea edi, [esi + 0x27c]
push esi
mov dword [0x59cd00], 2
mov dword [0x59cba0], 0xfffffffe
call fcn.00410ac0
mov ecx, edi
call fcn.0040f370
mov ecx, eax
call fcn.0040f3f0
mov ecx, edi
call fcn.0040a5e0
test eax, eax
je 0x41175c
mov edi, dword [edi]
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x41176b
cmp eax, 0xb7
je 0x41176b
push 0
push 0x57102c
push 0x571034
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [esi + 0x278], 0
pop edi
mov esp, ebp
pop ebp
ret
push ecx
lea eax, [esi + 0x280]
mov dword [ebp - 4], esp
mov ecx, esp
push eax
call fcn.00404900
call fcn.0040ad70
add esp, 4
test eax, eax
je 0x41175c
mov ecx, esi
call fcn.00410350
lea ecx, [ebp - 8]
push ecx
push 0
push esi
push 0x411990
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4117c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542298
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x594ca8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00407f60
call fcn.00408250
call fcn.00408540
push 0
call fcn.00408860
add esp, 4
call fcn.00408bd0
call fcn.00417515
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41181f
push 0x80004005
call fcn.00404860
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00402240
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.00517280
add esp, 8
test eax, eax
jne 0x411854
or eax, 0xffffffff
jmp 0x411858
sub eax, esi
sar eax, 1
push eax
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004037c0
push str.exe
push eax
lea edx, [ebp - 0x14]
push edx
mov byte [ebp - 4], 1
call fcn.00404260
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00404790
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4118ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4118ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebx + 0x2b0]
push ecx
push ecx
lea edx, [ebp - 0x10]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push edx
call fcn.00404900
call fcn.0040aa80
mov eax, dword [ebx + 0x27c]
add esp, 8
lea edi, [ebx + 0x27c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push edi
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.00410ef0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [ebx + 0x290]
mov edx, dword [ebx + 0x28c]
push ecx
push edx
call fcn.00408e40
mov eax, dword [ebx + 0x288]
push eax
push edi
call fcn.00409670
add esp, 0x10
call fcn.0040b710
call fcn.0040bbb0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
call fcn.00410b80
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411977
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412310
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x8c
mov esi, ecx
call dword [sym.imp.DuiLib_u.dll_public:_void___thiscall_DuiLib::CWindowWnd::SetIcon_unsigned_int_]
mov eax, dword [esi + 4]
push 0x571b64
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
call dword [sym.imp.DuiLib_u.dll_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetInstance_void_]
mov edi, eax
call fcn.00404a10
mov ecx, dword [esi + 4]
lea edi, [esi + 0x3d8]
push ecx
mov eax, edi
call fcn.00404ad0
test byte [edi + 0xc], 2
mov ebx, dword [sym.imp.USER32.dll_GetParent]
mov byte [edi + 0xf], 6
je 0x41236d
mov edx, dword [edi + 4]
push edx
call ebx
push eax
call fcn.00404d30
test byte [edi + 0xc], 2
mov word [edi + 0x10], 0
je 0x412385
mov eax, dword [edi + 4]
push eax
call ebx
push eax
call fcn.00404d30
test byte [edi + 0xc], 2
mov byte [edi + 0xd], 0x32
je 0x41239b
mov ecx, dword [edi + 4]
push ecx
call ebx
push eax
call fcn.00404d30
push esi
call fcn.004123d0
lea edx, [ebp - 4]
push edx
push 0
push esi
push 0x413550
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414270
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541428
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x594ca8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.DuiLib_u.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
push str.RunPrg
lea ecx, [ebx + 0x2c]
call esi
test eax, eax
je 0x4142b8
mov ecx, dword [ebx + 0x278]
push ecx
mov ecx, eax
call dword [sym.imp.DuiLib_u.dll_public:_void___thiscall_DuiLib::CProgressUI::SetValue_int_]
push str.PercentLabel
lea ecx, [ebx + 0x2c]
call esi
mov esi, eax
call fcn.00417515
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4142de
push 0x80004005
call fcn.00404860
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test esi, esi
je 0x41431d
mov ecx, dword [ebx + 0x278]
push ecx
lea edx, [ebp - 0x10]
push str._d__
push edx
call fcn.00403cc0
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
add esp, 0xc
push ecx
mov ecx, esi
call edx
cmp dword [ebx + 0x278], 0x64
jne 0x41436a
mov eax, dword [ebx + 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push str.InstallLabel
lea ecx, [ebx + 0x2c]
call dword [sym.imp.DuiLib_u.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov esi, eax
test esi, esi
je 0x414363
push 4
push 0x571ef4
lea ecx, [ebp - 0x10]
call fcn.004046e0
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push ecx
mov ecx, esi
call edx
mov eax, ebx
call fcn.004148d0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414390
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414990
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541581
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x594ca8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x103
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.00518ea0
add esp, 0xc
push 1
push 0x1c
lea ecx, [ebp - 0x114]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x5704e4
lea ecx, [ebp - 0x118]
call fcn.004040f0
lea edx, [ebp - 0x114]
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jg 0x414b70
lea eax, [esi + esi]
call fcn.0051b880
mov edi, esp
test edi, edi
je 0x414b70
push esi
push edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x114]
xor eax, eax
push ecx
push eax
push 3
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x414b70
mov eax, edi
mov edx, edi
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414a60
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x118]
call fcn.004046e0
push 0x57058c
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x11c]
push eax
call fcn.00404260
push str.1905Cache1
push eax
lea ecx, [ebp - 0x120]
push ecx
mov byte [ebp - 4], 1
call fcn.00404260
add esp, 0x18
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.00404790
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x120]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414ae3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414b09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
lea edx, [ebp - 0x118]
mov dword [ebp - 0x124], esp
mov ecx, esp
push edx
call fcn.00404900
call fcn.00402330
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414b4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x130]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051553d
mov esp, ebp
pop ebp
ret
xor edx, edx
xor eax, eax
jmp 0x414a6f
Function at 0x414f90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x8c
mov esi, ecx
call dword [sym.imp.DuiLib_u.dll_public:_void___thiscall_DuiLib::CWindowWnd::SetIcon_unsigned_int_]
mov eax, dword [esi + 4]
push 0x571b64
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
call dword [sym.imp.DuiLib_u.dll_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetInstance_void_]
mov edi, eax
call fcn.00404a10
mov ecx, dword [esi + 4]
lea edi, [esi + 0x3d8]
push ecx
mov eax, edi
call fcn.00404ad0
test byte [edi + 0xc], 2
mov ebx, dword [sym.imp.USER32.dll_GetParent]
mov byte [edi + 0xf], 6
je 0x414fed
mov edx, dword [edi + 4]
push edx
call ebx
push eax
call fcn.00404d30
test byte [edi + 0xc], 2
mov word [edi + 0x10], 0
je 0x415005
mov eax, dword [edi + 4]
push eax
call ebx
push eax
call fcn.00404d30
test byte [edi + 0xc], 2
mov byte [edi + 0xd], 0x32
je 0x41501b
mov ecx, dword [edi + 4]
push ecx
call ebx
push eax
call fcn.00404d30
push esi
call fcn.00415410
lea edx, [ebp - 4]
push edx
push 0
push esi
push 0x4165a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4165c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542180
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x594ca8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ebx, [ebp - 0x10]
call fcn.00407aa0
mov edi, dword [ebp + 8]
add edi, 0x3d4
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00404790
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41662e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
mov ecx, 0x5704e4
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41665b
test dx, dx
je 0x416657
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41665b
add eax, 4
add ecx, 4
test dx, dx
jne 0x416635
xor eax, eax
jmp 0x416660
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x4167b9
call fcn.0040b1c0
call fcn.00407f60
call fcn.00408250
call fcn.00408540
push 1
call fcn.00408860
add esp, 4
call fcn.00408bd0
call fcn.00417515
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4166aa
push 0x80004005
call fcn.00404860
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.00402240
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.00517280
add esp, 8
test eax, eax
jne 0x4166df
or eax, 0xffffffff
jmp 0x4166e3
sub eax, esi
sar eax, 1
push eax
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004037c0
push str.exe
push eax
lea edx, [ebp - 0x14]
mov bl, 2
push edx
mov byte [ebp - 4], bl
call fcn.00404260
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00404790
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416736
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416759
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 0x3c8]
push ecx
push ecx
lea edx, [ebp - 0x10]
mov dword [ebp + 8], esp
mov ecx, esp
push edx
call fcn.00404900
call fcn.0040aa80
mov eax, dword [edi]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push edi
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00415db0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4167b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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