joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4311d1
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4ce1e2
call fcn.004cc790
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.00427a5b
mov esi, 0x50f968
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00427a5b
add eax, 0x60
inc dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
call fcn.00427a5b
mov ebx, eax
mov eax, dword [ebp - 0x10]
call fcn.0043134d
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, 0x50ec24
mov dword [edi + 0x20], ebx
call fcn.004014d2
lea esi, [edi + 0x3c]
mov ecx, 0x50ec24
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.004014d2
lea esi, [edi + 0x44]
mov ecx, 0x50ec24
mov dword [edi + 0x40], ebx
call fcn.004014d2
lea esi, [edi + 0x48]
mov ecx, 0x50ec24
call fcn.004014d2
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.004144fa
mov eax, esi
call fcn.004144fa
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.004144fa
lea eax, [esi + 8]
call fcn.004144fa
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 0x432f9e
Capabilities:
Get proxy

Disassembly:
mov eax, 0x4d0148
call fcn.004cc790
sub esp, 0x428
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], 0x104
mov esi, 0x206
push esi
lea eax, [ebp - 0x22a]
push ebx
mov dword [ebp - 4], ebx
push eax
mov word [ebp - 0x22c], bx
call fcn.004954a0
push esi
lea eax, [ebp - 0x432]
push ebx
push eax
mov word [ebp - 0x434], bx
call fcn.004954a0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x18
lea eax, [ebp - 0x1c]
push eax
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
mov edi, SysReAllocStringLen
push edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
call esi
cmp eax, ebx
jne 0x433042
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
push str.ProxyEnable
lea eax, [ebp - 0x10]
push eax
call fcn.00433c5a
cmp dword [ebp - 0x10], ebx
je 0x433042
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
je 0x433056
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], ebx
je 0x433187
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push edi
mov dword [ebp - 0x10], ebx
call esi
cmp eax, ebx
jne 0x433187
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push str.ProxyServer
lea eax, [ebp - 0x14]
push eax
lea esi, [ebp - 0x24]
lea edi, [ebp - 0x22c]
call fcn.00418880
cmp eax, ebx
jne 0x433179
cmp word [ebp - 0x22c], bx
je 0x433179
mov eax, edi
push 0x104
push eax
call fcn.0049527b
mov esi, dword [ebp + 8]
mov edi, str.socks
lea eax, [ebp - 0x22c]
push edi
push eax
mov dword [esi], 2
call fcn.00494fc6
add esp, 0x10
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x4330fe
mov dword [esi], 3
push edi
call fcn.004953a9
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x434]
push eax
call fcn.00433be5
jmp 0x433137
mov edi, str.http
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.00494fc6
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp + 8], eax
mov dword [esi], 2
jne 0x4330e3
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x434]
push 0x104
push eax
call fcn.0049542c
add esp, 0xc
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0043288d
mov esi, dword [ebp + 0x10]
push dword [ebp + 0xc]
mov ecx, esi
lea ebx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0043319b
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
je 0x433179
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x10], ebx
je 0x433187
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4344bf
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 0x43454d
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 0x4344f6
cmp dword [ebp - 8], 2
jne 0x43454c
push esi
mov esi, dword [ebp + 0xc]
call fcn.00401477
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004011f9
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 0x43454b
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 0x43453d
push eax
call fcn.004953a9
pop ecx
mov edx, esi
call fcn.004011d8
mov dword [ebp - 0xc], 1
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x434554
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x434582
push dword [esp + 0xc]
call fcn.004953a9
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 0x434582
inc edi
mov eax, edi
pop edi
ret 8

Function at 0x43492e
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 0x43499f
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 0x43499f
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 [0x4ef988]
fnstsw ax
test ah, 1
jne 0x43499f
inc esi
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x434dae
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4ce6e5
call fcn.004cc790
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 0x434ea5
mov eax, dword [ebx]
cmp dword [eax - 0xc], esi
je 0x434ea5
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp dword [eax - 0xc], esi
je 0x434ea5
lea eax, [ebp - 0x10]
push 0x104
push eax
call fcn.0047f295
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.004325ec
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.0043588b
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x434e38
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
jmp 0x434ea0
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
push edi
call fcn.0047ecfa
test eax, eax
pop ecx
jne 0x434e52
mov dword [ebp - 0x14], 0xfb
jmp 0x434e9d
cmp dword [ebp + 0x10], ebx
je 0x434e8c
lea eax, [ebp + 0xc]
push 0x4e5ac0
push eax
lea ecx, [ebp - 0x10]
call fcn.00437d4d
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.004011c0
jmp 0x434e9d
push ebx
push 0x4e30ec
push edi
mov ecx, esi
call fcn.0047d737
add esp, 0xc
lea eax, [edi - 0x10]
call fcn.004011c0
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 0x437112
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d1033
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.004787db
and dword [esp + 0x10], 0
test eax, eax
mov dword [esp + 0x24], eax
jle 0x43731d
add edi, 0x88
mov dword [esp + 0x18], edi
jmp 0x43716a
mov esi, dword [esp + 0x28]
mov eax, esi
call fcn.004787db
mov edi, dword [esp + 0x10]
cmp edi, eax
jae 0x437191
mov eax, esi
call fcn.004787db
cmp edi, eax
jb 0x437189
call fcn.004965e9
mov eax, dword [esi + 4]
mov ebx, dword [eax + edi*4]
jmp 0x437193
xor ebx, ebx
lea esi, [esp + 0x20]
mov eax, ebx
call fcn.0048cdf9
and dword [esp + 0x24c], 0
mov eax, dword [0x50ec24]
mov ecx, 0x50ec24
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.0047b8f5
test eax, eax
jne 0x4372ef
lea esi, [esp + 0x30]
mov eax, ebx
call fcn.0048ce11
mov byte [esp + 0x24c], 2
push dword [eax]
lea esi, [esp + 0x3c]
call fcn.0041dae5
mov byte [esp + 0x24c], 3
push dword [eax]
lea eax, [esp + 0x10]
push eax
call fcn.0043288d
lea eax, [esp + 0x3c]
cmp dword [esp + 0x38], eax
je 0x437228
push dword [esp + 0x38]
call fcn.00496058
pop ecx
mov byte [esp + 0x24c], 6
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
call fcn.004011c0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
call fcn.0047bece
push dword [esp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4372e3
lea esi, [esp + 0x2c]
mov eax, ebx
call fcn.0048ce2a
mov byte [esp + 0x24c], 7
push dword [eax]
lea esi, [esp + 0x140]
call fcn.0041dae5
mov byte [esp + 0x24c], 8
push dword [eax]
lea eax, [esp + 0x20]
push eax
call fcn.0043288d
lea eax, [esp + 0x140]
cmp dword [esp + 0x13c], eax
je 0x4372ae
push dword [esp + 0x13c]
call fcn.00496058
pop ecx
mov byte [esp + 0x24c], 0xb
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.004011c0
push 0
push dword [esp + 0x20]
xor ecx, ecx
push dword [esp + 0x14]
inc ecx
call fcn.0047d737
mov eax, dword [esp + 0x28]
add esp, 0xc
add eax, 0xfffffff0
call fcn.004011c0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.004011c0
or dword [esp + 0x24c], 0xffffffff
lea eax, [edi - 0x10]
call fcn.004011c0
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x24]
jl 0x437166
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 0x4377f5
Capabilities:
Delete file
Move file

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

Disassembly:
mov eax, 0x4ce6e5
call fcn.004cc790
push ecx
push ecx
push ebx
push str.http:__config.i.duba.net_aldconfig_resource.png
lea eax, [ebp - 0x10]
push eax
call fcn.0043288d
and dword [ebp - 4], 0
push 0x1f4
push 0
push 0
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00480614
mov ebx, eax
mov eax, dword [ebp - 0x10]
add esp, 0x14
add eax, 0xfffffff0
call fcn.004011c0
test ebx, ebx
jne 0x437871
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x437871
xor eax, eax
inc eax
jmp 0x437873
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x437dc1
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 8]
test eax, eax
je 0x437df3
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x437de6
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 0x437f0f
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov ebx, eax
mov eax, dword [0x50f9a4]
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x1c], esi
je 0x437f2c
mov ebp, dword [eax + 4]
jmp 0x437f2e
xor ebp, ebp
cmp ebp, esi
jne 0x437f3e
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebp, eax
cmp ebp, esi
je 0x437f63
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebp, eax
je 0x437f63
push ebp
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x437f63
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.00438361
cmp eax, esi
mov dword [esp + 0x18], eax
jne 0x437f8c
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x438068
mov edx, eax
call fcn.0041a6e5
mov dword [esp + 0x20], eax
mov eax, ebp
call fcn.0040e530
cmp dword [ebx + 0x510], esi
je 0x43800e
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 0x437ff2
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 0x43800e
push esi
push edi
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, ebx
call fcn.0040e7fe
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 0x438053
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebp, esi
je 0x438053
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
jne 0x438053
push ebp
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0041a6e5
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 0x4380fe
Capabilities:
Create thread

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x43816f
cmp dword [esp + 8], edi
je 0x43816f
mov eax, dword [esi + 8]
cmp eax, edi
je 0x43812a
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x43812a
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], edi
cmp dword [esi + 8], edi
jne 0x43816f
push ebx
mov ebx, dword [esi]
push 0xc
call fcn.00462151
cmp eax, edi
pop ecx
jne 0x438142
xor eax, eax
jmp 0x438160
mov ecx, dword [esp + 0xc]
push edi
push edi
push eax
push 0x438c77
push edi
push edi
mov dword [eax], ebx
mov dword [eax + 8], edi
mov dword [eax + 4], ecx
call fcn.00499bda
add esp, 0x18
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [esi + 8], eax
pop ebx
mov eax, ecx
jmp 0x438171
xor eax, eax
pop edi
ret 4

Function at 0x438eca
Capabilities:
Delete file

Disassembly:
mov eax, 0x4ce301
call fcn.004cc790
sub esp, 0x14
mov eax, dword [0x50ec24]
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
mov ecx, 0x50ec24
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, 0x510a20
mov dword [ebp - 0x1c], esi
push str.GetPacketData__d
mov esi, edi
call fcn.00482fc3
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
push 0
mov esi, ebx
call fcn.00438fda
push eax
push str.GetPacketData_return:_d
mov esi, edi
mov dword [ebp - 0x14], eax
call fcn.00482fc3
cmp dword [ebp - 0x14], 0
pop ecx
pop ecx
jne 0x438f3f
mov dword [ebx + 0x1c], 1
jmp 0x438fb8
push 0x28
call fcn.00462151
test eax, eax
pop ecx
je 0x438f55
push eax
call fcn.0047196e
mov ebx, eax
jmp 0x438f57
xor ebx, ebx
test ebx, ebx
mov dword [ebp - 0x1c], ebx
je 0x438fb8
push str.Extract...
call fcn.00482fc3
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.00482fc3
test ebx, ebx
pop ecx
pop ecx
je 0x438fb1
xor esi, esi
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004011c0
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 0x438fc8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x438fd5
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, dword [ebp - 0x20]
jmp 0x438f93
Function at 0x4390bb
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.004954a0
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 SysReAllocStringLen
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x439147
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, 0x510a20
call fcn.00482fc3
add esp, 0xc
jmp 0x4391bf
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 0x43917a
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
jmp 0x4391a2
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 0x4391b1
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, 0x510a20
call fcn.00482fc3
add esp, 0xc
jmp 0x4391b8
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 0x439622
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 0x439693
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 0x439693
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 [0x4ef990]
fnstsw ax
test ah, 1
jne 0x439693
inc esi
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x43a240
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4d0f68
call fcn.004cc790
push ecx
push ecx
mov eax, dword [0x50ec24]
push ebx
push esi
push edi
mov ecx, 0x50ec24
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push 0x510cf4
push 0x65
pop ecx
lea esi, [ebp - 0x10]
call fcn.004396db
mov ebx, eax
test ebx, ebx
je 0x43a311
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push dword [ebp + 8]
push eax
call fcn.0043288d
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.00401367
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0
call fcn.0043990a
mov ebx, eax
test ebx, ebx
je 0x43a314
mov eax, dword [esi - 0xc]
mov ecx, dword [0x510cf8]
cmp eax, dword [ecx - 0xc]
jl 0x43a314
lea eax, [ebp - 0x10]
mov edi, 0x510cf8
call fcn.004013c9
push str.product_tag_cmpc_ch.tag
lea eax, [ebp - 0x10]
call fcn.00416576
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43a305
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x43a305
mov dword [0x510cf4], 0x12
jmp 0x43a314
mov dword [0x510cf4], 0x65
jmp 0x43a314
mov esi, dword [ebp - 0x10]
lea eax, [esi - 0x10]
call fcn.004011c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x43b03a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
xor eax, eax
push 0x1fe
push eax
mov dword [ebp - 4], eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
call fcn.004954a0
mov eax, dword [ebp + 0x10]
add esp, 0xc
push dword [eax]
lea eax, [ebp - 0x204]
push pe_nt_image_headers32
push eax
mov eax, dword [ebp + 0xc]
push 0x4e30ec
push dword [eax]
push 0x4e6c34
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call fcn.0043288d
mov eax, dword [ebp + 8]
leave
ret

Function at 0x43b09e
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4d1f46
call fcn.004cc790
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.00480614
add esp, 0x14
test eax, eax
jne 0x43b0db
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43b0db
inc edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004011c0
mov ecx, dword [ebp - 0xc]
mov eax, edi
mov dword fs:[0], ecx
pop edi
leave
ret