joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427098
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
inc ebx
cmp eax, 0xf
push edi
mov esi, ecx
jne 0x4270c7
mov ecx, dword [ebp + 0x18]
lea eax, [esi + 0x134]
mov dword [eax], ebx
and dword [ecx], 0
cmp dword [eax], 0
je 0x427101
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
cmp eax, 2
jne 0x427122
push dword [esi + 0xc]
mov dword [esi + 0x134], ebx
push dword [esi + 0x13c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x4270fb
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4270fb
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [esi + 0x134], 0
jne 0x4270be
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00431fc9
jmp 0x4270c0
cmp eax, 0x47
jne 0x427147
push dword [ebp + 0x14]
lea edi, [esi + 0x134]
mov eax, esi
mov dword [edi], ebx
call fcn.0042719f
mov eax, dword [ebp + 0x18]
and dword [eax], 0
cmp dword [edi], 0
jmp 0x4270bc
cmp eax, 0x18
jne 0x427101
push dword [ebp + 0x10]
mov dword [esi + 0x134], ebx
call fcn.004323d7
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x42717f
push dword [esi + 8]
jmp 0x427175
mov ecx, dword [eax + 0x30]
shr ecx, 3
not ecx
test bl, cl
je 0x427189
push dword [eax + 8]
call fcn.004334e5
cmp eax, edi
pop ecx
jne 0x427166
mov eax, dword [ebp + 0x10]
mov ecx, esi
call fcn.0041b3d0
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
cmp dword [esi + 0x134], edi
jne 0x4270be
jmp 0x427101

Function at 0x42740c
Capabilities:
Hide graphical window

Disassembly:
mov eax, esi
call fcn.00427450
test eax, eax
jne 0x42741e
and dword [esi + 0x134], eax
ret
push dword [esi + 0x140]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42744f
push 0
push dword [esi + 0x140]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x140]
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [esi + 0x140], 0
ret
Function at 0x4324cf
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4cd4d8
call fcn.004ca860
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
mov dword [edi], vtable.CBkWindow.0
call fcn.0042905b
mov esi, 0x50c7c4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0042905b
add eax, 0x60
inc dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
call fcn.0042905b
mov ebx, eax
mov eax, dword [ebp - 0x10]
call fcn.00440738
push esi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x10]
xor ebx, ebx
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
lea esi, [edi + 0x24]
mov ecx, 0x50bacc
mov dword [edi + 0x20], ebx
call fcn.00402ab8
lea esi, [edi + 0x3c]
mov ecx, 0x50bacc
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
call fcn.00402ab8
lea esi, [edi + 0x44]
mov ecx, 0x50bacc
mov dword [edi + 0x40], ebx
call fcn.00402ab8
lea esi, [edi + 0x48]
mov ecx, 0x50bacc
call fcn.00402ab8
or dword [edi + 0x4c], 0xffffffff
or dword [edi + 0x50], 0xffffffff
or dword [edi + 0x60], 0xffffffff
lea esi, [edi + 0xbc]
mov eax, esi
mov dword [edi + 0x54], ebx
mov word [edi + 0x58], bx
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x64], ebx
mov dword [edi + 0x9c], ebx
mov dword [edi + 0xa0], ebx
mov dword [edi + 0xa4], ebx
mov dword [edi + 0xa8], 1
mov dword [edi + 0xac], ebx
mov dword [edi + 0xb0], ebx
mov dword [edi + 0xb4], ebx
mov dword [edi + 0xb8], ebx
call fcn.00415c9a
mov eax, esi
call fcn.00415c9a
mov byte [esi + 0x28], 0xff
lea esi, [edi + 0xf8]
mov dword [edi + 0xec], ebx
mov dword [edi + 0xf0], ebx
mov dword [edi + 0xf4], ebx
lea eax, [esi + 8]
mov dword [esi], vtable.CBkWindow::BkAnimationHandler.0
mov dword [esi + 4], edi
call fcn.00415c9a
lea eax, [esi + 8]
call fcn.00415c9a
mov byte [esi + 0x30], 0xff
lea eax, [edi + 0x10]
mov byte [esi + 0x38], bl
push eax
mov dword [edi + 0x134], ebx
mov dword [edi + 0x138], ebx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x434540
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x4345ce
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x434577
cmp dword [ebp - 8], 2
jne 0x4345cd
push esi
mov esi, dword [ebp + 0xc]
call fcn.00403245
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00402fc0
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x4345cc
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x4345be
push eax
call fcn.004a56c9
pop ecx
mov edx, esi
call fcn.0040294d
mov dword [ebp - 0xc], 1
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x4345d5
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x434603
push dword [esp + 0xc]
call fcn.004a56c9
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push edi
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x434603
inc edi
mov eax, edi
pop edi
ret 8

Function at 0x434dee
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4cd64e
call fcn.004ca860
sub esp, 0xc
push ebx
push esi
push edi
mov edi, edx
mov eax, dword [edi]
xor esi, esi
cmp dword [eax - 0xc], esi
mov ebx, ecx
mov dword [ebp - 0x14], esi
je 0x434ee5
mov eax, dword [ebx]
cmp dword [eax - 0xc], esi
je 0x434ee5
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp dword [eax - 0xc], esi
je 0x434ee5
lea eax, [ebp - 0x10]
push 0x104
push eax
call fcn.0047dff9
pop ecx
pop ecx
mov dword [ebp - 4], esi
mov eax, dword [ebx]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.00433867
mov edi, dword [edi]
push 0x708
inc esi
push esi
lea eax, [ebp + 8]
push eax
push esi
push dword [ebp - 0x10]
mov ebx, edi
mov edi, dword [ebp + 8]
call fcn.004358c2
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x434e78
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
jmp 0x434ee0
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
push edi
call fcn.0047da5e
test eax, eax
pop ecx
jne 0x434e92
mov dword [ebp - 0x14], 0xfb
jmp 0x434edd
cmp dword [ebp + 0x10], ebx
je 0x434ecc
lea eax, [ebp + 0xc]
push 0x4e3914
push eax
lea ecx, [ebp - 0x10]
call fcn.00437b8b
pop ecx
pop ecx
push esi
push ebx
push dword [eax]
push str.explorer.exe
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004027f4
jmp 0x434edd
push ebx
push 0x4e11a4
push edi
mov ecx, esi
call fcn.0047c49b
add esp, 0xc
lea eax, [edi - 0x10]
call fcn.004027f4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x4370c6
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ced15
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x9c]
mov eax, esi
mov dword [esp + 0x28], esi
call fcn.0048b0f6
and dword [esp + 0x10], 0
test eax, eax
mov dword [esp + 0x24], eax
jle 0x4372d1
add edi, 0x88
mov dword [esp + 0x18], edi
jmp 0x43711e
mov esi, dword [esp + 0x28]
mov eax, esi
call fcn.0048b0f6
mov edi, dword [esp + 0x10]
cmp edi, eax
jae 0x437145
mov eax, esi
call fcn.0048b0f6
cmp edi, eax
jb 0x43713d
call fcn.004a7b94
mov eax, dword [esi + 4]
mov ebx, dword [eax + edi*4]
jmp 0x437147
xor ebx, ebx
lea esi, [esp + 0x20]
mov eax, ebx
call fcn.0048af6c
and dword [esp + 0x24c], 0
mov eax, dword [0x50bacc]
mov ecx, 0x50bacc
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
mov byte [esp + 0x250], 1
mov edi, dword [esp + 0x24]
push eax
push edi
push dword [esp + 0x24]
call fcn.0047a732
test eax, eax
jne 0x4372a3
lea esi, [esp + 0x30]
mov eax, ebx
call fcn.0048af84
mov byte [esp + 0x24c], 2
push dword [eax]
lea esi, [esp + 0x3c]
call fcn.00402e5d
mov byte [esp + 0x24c], 3
push dword [eax]
lea eax, [esp + 0x10]
push eax
call fcn.00403321
lea eax, [esp + 0x3c]
cmp dword [esp + 0x38], eax
je 0x4371dc
push dword [esp + 0x38]
call fcn.004a5e9d
pop ecx
mov byte [esp + 0x24c], 6
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
call fcn.004027f4
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
call fcn.0047ad0b
push dword [esp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x437297
lea esi, [esp + 0x2c]
mov eax, ebx
call fcn.004827d1
mov byte [esp + 0x24c], 7
push dword [eax]
lea esi, [esp + 0x140]
call fcn.00402e5d
mov byte [esp + 0x24c], 8
push dword [eax]
lea eax, [esp + 0x20]
push eax
call fcn.00403321
lea eax, [esp + 0x140]
cmp dword [esp + 0x13c], eax
je 0x437262
push dword [esp + 0x13c]
call fcn.004a5e9d
pop ecx
mov byte [esp + 0x24c], 0xb
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.004027f4
push 0
push dword [esp + 0x20]
xor ecx, ecx
push dword [esp + 0x14]
inc ecx
call fcn.0047c49b
mov eax, dword [esp + 0x28]
add esp, 0xc
add eax, 0xfffffff0
call fcn.004027f4
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.004027f4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.004027f4
or dword [esp + 0x24c], 0xffffffff
lea eax, [edi - 0x10]
call fcn.004027f4
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x24]
jl 0x43711a
mov ecx, dword [esp + 0x244]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4377a9
Capabilities:
Delete file
Move file

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4377c8
push 4
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4377cb
xor eax, eax
inc eax
ret 4
Function at 0x4377ce
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4cd64e
call fcn.004ca860
push ecx
push ecx
push ebx
push str.http:__config.i.duba.net_aldconfig_resource.png
lea eax, [ebp - 0x10]
push eax
call fcn.00403321
and dword [ebp - 4], 0
push 0x1f4
push 0
push 0
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.0047f2a5
mov ebx, eax
mov eax, dword [ebp - 0x10]
add esp, 0x14
add eax, 0xfffffff0
call fcn.004027f4
test ebx, ebx
jne 0x437825
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x437825
xor eax, eax
inc eax
jmp 0x437827
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x437bff
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 8]
test eax, eax
je 0x437c31
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x437c24
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 8], 0
xor eax, eax
inc eax
ret
Function at 0x437d4d
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov ebx, eax
mov eax, dword [0x50c800]
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x1c], esi
je 0x437d6a
mov ebp, dword [eax + 4]
jmp 0x437d6c
xor ebp, ebp
cmp ebp, esi
jne 0x437d7c
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebp, eax
cmp ebp, esi
je 0x437da1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebp, eax
je 0x437da1
push ebp
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x437da1
push esi
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push ecx
mov eax, esp
mov dword [ebx + 0x51c], esi
push ebp
mov dword [eax], esi
call fcn.004381b4
mov ecx, eax
cmp ecx, esi
mov dword [esp + 0x18], ecx
jne 0x437dcc
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x437ebb
mov eax, dword [0x50c800]
cmp eax, esi
mov dword [esp + 0x20], esi
je 0x437de3
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov dword [eax + 4], ecx
mov eax, ebp
call fcn.00410370
cmp dword [ebx + 0x510], esi
je 0x437e5a
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp edi, dword [esp + 0x14]
je 0x437e3e
push 1
push edi
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp edi, dword [esp + 0x14]
je 0x437e5a
push esi
push edi
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, ebx
call fcn.00410142
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [ebx + 4]
mov dword [ebx + 0x51c], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x1c], esi
je 0x437e9f
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebp, esi
je 0x437e9f
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
jne 0x437e9f
push ebp
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x50c800]
cmp eax, esi
je 0x437eaf
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x437f51
Capabilities:
Create thread

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x437fc2
cmp dword [esp + 8], edi
je 0x437fc2
mov eax, dword [esi + 8]
cmp eax, edi
je 0x437f7d
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x437f7d
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], edi
cmp dword [esi + 8], edi
jne 0x437fc2
push ebx
mov ebx, dword [esi]
push 0xc
call fcn.0046133b
cmp eax, edi
pop ecx
jne 0x437f95
xor eax, eax
jmp 0x437fb3
mov ecx, dword [esp + 0xc]
push edi
push edi
push eax
push 0x438c13
push edi
push edi
mov dword [eax], ebx
mov dword [eax + 8], edi
mov dword [eax + 4], ecx
call fcn.004aa41d
add esp, 0x18
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [esi + 8], eax
pop ebx
mov eax, ecx
jmp 0x437fc4
xor eax, eax
pop edi
ret 4

Function at 0x438dbc
Capabilities:
Delete file

Disassembly:
mov eax, 0x4cbd68
call fcn.004ca860
sub esp, 0x14
mov eax, dword [0x50bacc]
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
mov ecx, 0x50bacc
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push esi
mov dword [ebp - 4], esi
mov edi, 0x50d858
mov dword [ebp - 0x1c], esi
push str.GetPacketData__d
mov esi, edi
call fcn.00481c9c
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
push 0
mov esi, ebx
call fcn.00438ecc
push eax
push str.GetPacketData_return:_d
mov esi, edi
mov dword [ebp - 0x14], eax
call fcn.00481c9c
cmp dword [ebp - 0x14], 0
pop ecx
pop ecx
jne 0x438e31
mov dword [ebx + 0x1c], 1
jmp 0x438eaa
push 0x28
call fcn.0046133b
test eax, eax
pop ecx
je 0x438e47
push eax
call fcn.00470bc5
mov ebx, eax
jmp 0x438e49
xor ebx, ebx
test ebx, ebx
mov dword [ebp - 0x1c], ebx
je 0x438eaa
push str.Extract...
call fcn.00481c9c
mov eax, dword [ebx]
pop ecx
push dword [ebp + 8]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push ebx
call dword [eax]
mov ebx, eax
xor eax, eax
test ebx, ebx
sete al
push eax
push str.Extract_return:_d
call fcn.00481c9c
test ebx, ebx
pop ecx
pop ecx
je 0x438ea3
xor esi, esi
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004027f4
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x438eba
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x438ec7
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, dword [ebp - 0x20]
jmp 0x438e85
Function at 0x438fad
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
xor edi, edi
push 0x206
mov esi, eax
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 4], edi
mov word [ebp - 0x210], di
call fcn.004a6df0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x439039
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadImageToMem_CreateFile_error:_d__path:_ws
mov esi, 0x50d858
call fcn.00481c9c
add esp, 0xc
jmp 0x4390b1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push eax
push edi
push 2
push edi
push ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp ebx, edi
mov dword [esi], eax
jne 0x43906c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
jmp 0x439094
push dword [esi + 8]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x4390a3
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
mov esi, 0x50d858
call fcn.00481c9c
add esp, 0xc
jmp 0x4390aa
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x439514
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x439585
xor eax, eax
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x439585
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [ebp - 8], eax
and dword [ebp - 8], 0x80000000
and eax, 0x7fffffff
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], esi
fild qword [ebp - 0x14]
fild qword [ebp - 0xc]
fchs
faddp st(1)
fcomp qword [0x4ed5b0]
fnstsw ax
test ah, 1
jne 0x439585
inc esi
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x43a0cd
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4cecb3
call fcn.004ca860
push ecx
push ecx
mov eax, dword [0x50bacc]
push ebx
push esi
push edi
mov ecx, 0x50bacc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push 0x50db44
push 0x65
pop ecx
lea esi, [ebp - 0x10]
call fcn.004395cd
mov ebx, eax
test ebx, ebx
je 0x43a19e
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push dword [ebp + 8]
push eax
call fcn.00403321
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x10]
push ecx
lea eax, [esi - 0x10]
mov dword [ebp + 8], esp
mov edi, esp
call fcn.00403285
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0
call fcn.004397fc
mov ebx, eax
test ebx, ebx
je 0x43a1a1
mov eax, dword [esi - 0xc]
mov ecx, dword [0x50db48]
cmp eax, dword [ecx - 0xc]
jl 0x43a1a1
lea eax, [ebp - 0x10]
mov edi, 0x50db48
call fcn.00403197
push str.product_tag_cmpc_ch.tag
lea eax, [ebp - 0x10]
call fcn.00417cd0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43a192
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x43a192
mov dword [0x50db44], 0x12
jmp 0x43a1a1
mov dword [0x50db44], 0x65
jmp 0x43a1a1
mov esi, dword [ebp - 0x10]
lea eax, [esi - 0x10]
call fcn.004027f4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x43ad1b
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4cd21e
call fcn.004ca860
sub esp, 0x204
xor eax, eax
push edi
mov dword [ebp - 0x10], eax
push 0x1fe
mov dword [ebp - 4], 1
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004a6df0
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push pe_nt_image_headers32
push eax
push 0x4e11a4
push dword [ebp + 8]
push 0x4e4a84
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00403321
lea edi, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00403197
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004027f4
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00403285
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004027f4
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004027f4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x43add6
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4cd2a2
call fcn.004ca860
push edi
push 0x12c
xor edi, edi
push edi
push edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], 1
call fcn.0047f2a5
add esp, 0x14
test eax, eax
jne 0x43ae13
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43ae13
inc edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004027f4
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004027f4
mov ecx, dword [ebp - 0xc]
mov eax, edi
mov dword fs:[0], ecx
pop edi
leave
ret
Function at 0x43b56d
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4d0582
call fcn.004ca860
push ecx
push ebx
push esi
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43b5d0
cmp dword [ebp + 0xc], 0
je 0x43b5d0
mov esi, dword [ebp + 8]
call fcn.0041aea8
push esi
push eax
call fcn.00403504
call fcn.004193df
mov ebx, eax
call fcn.00419540
push 0x1770
call fcn.00447246
mov dword [esp], 0x1771
call fcn.0043fd99
mov dword [esp], 0x1772
call fcn.0043f974
jmp 0x43b5f2
push 0x2710
call fcn.0043fd99
mov dword [esp], 0x2711
call fcn.0043f974
mov dword [esp], 0x2712
call fcn.00447246
mov eax, dword [ebp + 8]
pop ecx
add eax, 0xfffffff0
call fcn.004027f4
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x43b693
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4d07b6
call fcn.004ca860
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
xor ebx, ebx
call fcn.00403285
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push esi
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0047b030
pop ecx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004027f4
test edi, edi
je 0x43b721
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x10], esp
mov edi, esp
call fcn.00403285
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov edi, esp
call fcn.00403285
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
call fcn.0043add6
pop ecx
pop ecx
mov ebx, eax
lea eax, [esi - 0x10]
call fcn.004027f4
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004027f4
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004027f4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
leave
ret