joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1011dc02
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1011dc9f
push ebx
push esi
call fcn.1011dbcb
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1011b654
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1011dc4c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1011dc9e
push edi
push eax
call fcn.10119ea0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1011dc6c
call fcn.10119320
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1011dc9d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1011b654
add esp, 0x20
test eax, eax
jne 0x1011dc8b
push edi
call fcn.10119320
jmp 0x1011dc93
push ebx
call fcn.10119320
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1011dca2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1011dcb3
pop esi
ret
push ebx
push edi
push esi
call fcn.1011dbcb
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10119ea0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1011dcdb
push ebx
push esi
push edi
call fcn.1010f460
add esp, 0xc
push 0
call fcn.10119320
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1011e0aa
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1011dcf0
Function at 0x10122f33
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10122eaf
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x101230a2
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x101230a2
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10123057
jg 0x10122f8f
test eax, eax
je 0x1012304d
push 1
push 0x1000
call fcn.101192c0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10122fb2
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10123044
push 0x8000
push ebx
call fcn.10122dde
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10122fdb
jg 0x10122fd6
cmp ecx, 0x1000
jb 0x10122fdb
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1012052c
add esp, 0x10
cmp eax, 0xffffffff
je 0x10123020
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10122fd6
jl 0x10123007
test ecx, ecx
jne 0x10122fc8
push dword [ebp - 0xc]
push ebx
call fcn.10122dde
push esi
call fcn.10119320
add esp, 0xc
xor ebx, ebx
jmp 0x101230b0
cmp byte [edi + 0x24], 0
je 0x10123037
cmp dword [edi + 0x20], 5
jne 0x10123037
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10123042
mov ebx, dword [edi + 0x18]
jmp 0x10123044
xor ebx, ebx
push esi
call fcn.10119320
pop ecx
jmp 0x101230b0
test ecx, ecx
jg 0x10123019
jl 0x10123057
test eax, eax
jae 0x10123019
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10117961
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10123077
cmp byte [edi + 0x1c], 0
je 0x10123019
jmp 0x101230a8
push ebx
call fcn.1011e63c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10123019
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x101230b0
cmp byte [edi + 0x1c], 0
je 0x101230ad
mov ebx, dword [edi + 0x18]
jmp 0x101230b0
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10117961
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x101260b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x101260dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101260dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41363b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004134b1

Function at 0x417a29
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041757c

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401e10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x428150
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_3
xor ebx, ebx
lea ecx, [esp + 8]
mov dword [esp + 0x54], ebx
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [esp + 0x60]
lea ecx, [esp + 8]
push eax
mov byte [esp + 0x58], 1
call fcn.004276c0
push ebx
call fcn.0041bbe0
add esp, 4
cmp eax, 5
je 0x401eb4
push ebx
call fcn.0041bbe0
add esp, 4
cmp eax, 6
je 0x401eb4
mov edx, dword [esp + 8]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 1
lea eax, [esp + 0x10]
jmp 0x401ef9
mov edx, dword [esp + 8]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], str.runas
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 1
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [esp + 8]
mov byte [esp + 0x54], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x54], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x4c]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 8

Function at 0x405440
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
xor ecx, ecx
xor eax, eax
mov word [esp + 5], cx
mov byte [esp + 0xc], al
mov byte [esp + 0xd], al
mov byte [esp + 0xf], al
mov byte [esp + 4], al
mov dword [esi], eax
lea edx, [esp + 4]
mov byte [esp + 7], cl
mov ecx, dword [esp + 0x14]
push 4
lea eax, [esp + 0xc]
push edx
push eax
push ecx
mov byte [esp + 0x18], 0x80
mov byte [esp + 0x19], 6
mov byte [esp + 0x1a], 0x40
mov byte [esp + 0x1b], 0xcf
mov byte [esp + 0x1e], 4
call fcn.00424090
add esp, 0x10
cmp eax, 1
jne 0x4054dc
mov dword [esi], eax
mov al, byte [esp + 6]
cmp al, 1
jne 0x4054d5
mov al, byte [esp + 7]
mov dword [esi], 2
cmp al, 0xff
jne 0x4054d5
mov al, byte [esp + 5]
cmp al, 0xaa
jne 0x4054cb
mov dword [esi], 3
xor eax, eax
pop esi
add esp, 0xc
ret
cmp al, 0x55
jne 0x4054d5
mov dword [esi], 4
xor eax, eax
pop esi
add esp, 0xc
ret
mov dword [esi], 0xffffffff
mov eax, 1
pop esi
add esp, 0xc
ret
Function at 0x407060
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 0x1088]
dec eax
je 0x407085
dec eax
je 0x40707d
dec eax
jne 0x407091
mov eax, dword [esi + 0x20]
push 3
push eax
jmp 0x40708b
mov ecx, dword [esi + 0x20]
push 2
push ecx
jmp 0x40708b
mov edx, dword [esi + 0x20]
push 1
push edx
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push 1
push 0
push 0
push edx
push eax
mov ecx, esi
call sub.MFC42u.DLL_CWnd::MoveWindow
push 0
mov ecx, esi
call sub.MFC42u.DLL_CWnd::ShowWindow
mov dword [esi + 0x1088], 0
pop esi
add esp, 0x10
ret

Function at 0x4070e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x407117
cmp dword [esp + 0x10], 2
jne 0x407117
cmp dword [esp + 4], 6
jb 0x407117
mov eax, 1
add esp, 0x114
ret
xor eax, eax
add esp, 0x114
ret
Function at 0x409f60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x428da6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x18]
call fcn.00412d60
lea edi, [esi + 0x34]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x18], ebx
call sub.MFC42u.DLL_CString::CString_3
mov ecx, edi
mov byte [esp + 0x18], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x24], ebx
call sub.MFC42u.DLL_CString::Empty
mov ecx, 0x41
xor eax, eax
lea edi, [esi + 0x38]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov dword [esi + 8], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40a290
Capabilities:
Create thread

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
push 0x43ba50
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp eax, esi
je 0x40a2b8
push eax
call edi
mov dword [ebx + 0xc], esi
mov eax, dword [ebx + 0x2c]
mov dword [ebx], esi
cmp eax, esi
mov dword [ebx + 4], esi
mov dword [esp + 0xc], esi
je 0x40a2ce
push eax
call edi
mov dword [ebx + 0x2c], esi
push ebp
push str.SZ_CallBackEvt
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebp, dword [esp + 0x20]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x30], ebp
cmp eax, esi
je 0x40a2fb
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [ebx + 0x20], esi
push 0x8c9
call sub.MFC42u.DLL_operatornew
mov edi, eax
mov ecx, 0x232
xor eax, eax
mov dword [ebx + 0x20], edi
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x20]
mov ecx, 0x232
stosb byte es:[edi], al
mov edi, dword [ebx + 0x20]
add esp, 4
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 1]
pop ebp
cmp eax, 4
movsb byte es:[edi], byte [esi]
ja case.default.0x40a32f
jmp dword [eax*4 + 0x40a3c4]
lea eax, [esp + 0x10]
push eax
push 0
push ebx
push 0x40a960
jmp 0x40a370
lea ecx, [esp + 0x10]
push ecx
push 0
push ebx
push 0x40b320
jmp 0x40a370
lea edx, [esp + 0x10]
push edx
push 0
push ebx
push 0x40bbd0
jmp 0x40a370
lea eax, [esp + 0x10]
push eax
push 0
push ebx
push 0x40c100
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebx + 0xc], eax
jne case.default.0x40a32f
jmp 0x40a3a1
lea ecx, [esp + 0x10]
push ecx
push 0
push ebx
push 0x40c270
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebx + 0xc], eax
jne case.default.0x40a32f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
push 0x43ba50
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x40a3e0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x428dd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_3
lea eax, [esp + 8]
xor esi, esi
push str._SZ__CAccaSZ::SZAutoUnMountArrange__IN
push eax
mov dword [esp + 0x20], esi
call sub.MFC42u.DLL_CString::Format
mov eax, dword [ebx + 0x2c]
add esp, 8
cmp eax, esi
mov dword [ebx], esi
mov dword [ebx + 4], esi
je 0x40a433
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x2c], esi
push str.SZ_CallBackEvt
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x20]
cmp eax, esi
mov eax, dword [ebx + 0x20]
je 0x40a4b7
cmp eax, esi
je 0x40a460
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [ebx + 0x20], esi
push ebp
mov ebp, dword [esp + 0x28]
push edi
lea eax, [ebp + ebp*4]
lea eax, [eax + eax*4]
lea esi, [eax + eax*4]
lea esi, [esi + esi*8]
shl esi, 1
sub esi, ebp
push esi
call sub.MFC42u.DLL_operatornew
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x20], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebx + 0x20]
mov ecx, esi
mov esi, dword [esp + 0x28]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 0x24], ebp
pop edi
xor esi, esi
pop ebp
jmp 0x40a4c6
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x24], esi
lea ecx, [esp + 0xc]
push ecx
push esi
push ebx
push 0x40c4a0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [ebx + 0x10], eax
jne 0x40a50f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 8]
push str._SZ__CAccaSZ::SZAutoUnMountArrange__OUT
push edx
mov dword [ebx + 0x10], esi
call sub.MFC42u.DLL_CString::Format
add esp, 8
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x40a560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], esi
jle 0x40a6e1
mov eax, dword [ebp + 0x14]
add eax, 8
mov dword [esp + 0x14], eax
jmp 0x40a593
xor esi, esi
cmp dword [ebp + 0x10], 1
jle 0x40a5a7
mov dword [esp + 0x20], 0x800
mov dword [esp + 0x24], esi
jmp 0x40a5c2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
push 0x400
push ecx
push edx
call fcn.00427dd0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x14]
push esi
push 0x20000000
push 1
push esi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40a70b
cmp ebx, esi
je 0x40a70b
mov eax, dword [esp + 0x24]
xor edi, edi
test eax, eax
jb 0x40a6b8
ja 0x40a60c
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x40a6b8
lea ecx, [esp + 0x1c]
push 0
push ecx
push 0x100000
push 0x43bc90
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a6ec
cmp dword [esp + 0x1c], 0x100000
jne 0x40a6ec
mov ecx, dword [esp + 0x18]
cmp dword [ecx], 0
jne 0x40a6f0
mov eax, dword [ecx + 8]
test eax, eax
jne 0x40a6f0
add esi, 1
mov edx, dword [ecx + 0x30]
adc edi, 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
push 0
fild qword [esp + 0x2c]
fild qword [esp + 0x24]
sub esp, 8
fdivp st(1)
fiadd dword [esp + 0x1c]
fild dword [ebp + 0x10]
fmul qword [0x42c5c8]
fdivp st(1)
fmul qword [0x42c5c8]
fmul qword [0x42c5c0]
fmul qword [0x42c5c8]
fmul qword [0x42bb08]
fstp qword [esp]
push edx
call fcn.0040a0e0
cmp edi, dword [esp + 0x24]
jb 0x40a60c
ja 0x40a6b8
cmp esi, dword [esp + 0x20]
jb 0x40a60c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [ebp + 0x10]
inc eax
add edx, 0x408
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jl 0x40a591
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x18]
test ebx, ebx
je 0x40a6ff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
cmp dword [ecx], 0
jne 0x40a71a
mov eax, dword [ecx + 8]
test eax, eax
jne 0x40a71a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
mov eax, 0x126d
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40a730
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x428df8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
mov dword [esp + 0xc], ecx
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.0040c720
mov ebp, dword [esp + 0x30]
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x20], ebx
jle 0x40a7cc
mov eax, dword [esp + 0x34]
lea edi, [eax + 8]
cmp ebp, 1
jle 0x40a77c
mov eax, 0x80000000
xor edx, edx
jmp 0x40a792
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push 0
push 0x40000000
push ecx
push edx
call fcn.00427dd0
push edx
push eax
push edi
call fcn.0040c860
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40a7f4
mov eax, dword [esp + 0x14]
cmp dword [eax], 0
jne 0x40a7f4
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40a7f4
push edi
push str._CAccaSZ::_FastMakeFile_____s
call fcn.0041ba60
add esp, 8
inc ebx
add edi, 0x408
cmp ebx, ebp
jl 0x40a76e
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.0040c750
xor eax, eax
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.0040c750
mov eax, esi
jmp 0x40a7df

Function at 0x40a810
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jle 0x40a84f
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push edi
lea esi, [ecx + 8]
mov edi, eax
push 1
push 0
push esi
call fcn.0041c100
add esp, 0xc
test eax, eax
jne 0x40a83e
push esi
call ebx
add esi, 0x408
dec edi
jne 0x40a82a
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
xor eax, eax
ret 8
Function at 0x410db0
Capabilities:
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42946b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
push edi
push 0
lea eax, [esp + 0x3c]
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x38]
push str.AccaData.dat
push ecx
lea edx, [esp + 0xc]
push str._sTemp_s
push edx
mov dword [esp + 0x258], 0
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x14]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
jne 0x410e51
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x24c], edi
call sub.MFC42u.DLL_CString::CString
mov eax, esi
pop esi
pop edi
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
add esp, 0x248
ret
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__wstati64]
add esp, 8
test eax, eax
jne 0x410ec1
fild qword [esp + 0x20]
mov dword [esp + 0x248], edi
lea ecx, [esp + 4]
fcomp qword [0x42c5d8]
fnstsw ax
test ah, 0x40
jne 0x410ea4
call sub.MFC42u.DLL_CString::CString
mov eax, 2
pop edi
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
add esp, 0x248
ret
call sub.MFC42u.DLL_CString::CString
xor eax, eax
pop edi
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
add esp, 0x248
ret
lea ecx, [esp + 4]
mov dword [esp + 0x248], edi
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x240]
mov eax, 0xd
pop edi
mov dword fs:[0], ecx
add esp, 0x248
ret
Function at 0x410f40
Capabilities:
Get disk size

Disassembly:
mov eax, dword [0x43ba70]
sub esp, 0x34
push ebx
push ebp
push esi
push edi
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, dword [esp + 0x48]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x4c]
not ecx
sub edi, ecx
lea edx, [ebx + 0x451]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x68]
xor edi, edi
mov dword [ebx + 0x891], ecx
mov eax, dword [ebp + 0x68]
test eax, eax
jle 0x411029
mov edx, edi
shl edx, 7
add edx, edi
lea esi, [ebp + edx*8 + 0x6c]
add esi, 8
push esi
call fcn.00410bd0
add esp, 4
test edi, edi
jne 0x410fea
lea ebp, [ebx + 0x491]
push esi
push ebp
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.MSVCRT.dll__wstati64]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov ebp, dword [esp + 0x58]
mov dword [ebx + 0x895], ecx
add esp, 0x10
mov dword [ebx + 0x899], edx
jmp 0x41101d
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.MSVCRT.dll__wstati64]
mov ecx, dword [esp + 0x34]
mov esi, dword [ebx + 0x895]
mov edx, dword [esp + 0x38]
add esp, 8
add esi, ecx
mov dword [ebx + 0x895], esi
mov eax, dword [ebx + 0x899]
adc eax, edx
mov dword [ebx + 0x899], eax
mov eax, dword [ebp + 0x68]
inc edi
cmp edi, eax
jl 0x410f98
mov cl, byte [ebp + 0x45]
mov eax, 1
cmp cl, al
jne 0x41103d
mov dword [ebx + 0x8b9], eax
jmp 0x411047
mov dword [ebx + 0x8b9], 0
movsx eax, byte [ebx + 0x410]
push eax
lea ecx, [esp + 0x14]
push str._c:_
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
add ebx, 0x89d
lea edx, [esp + 0x10]
push ebx
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [0x43ba70]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8