joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411550
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [0x43ba70]
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0xffffffffffffffff
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00412b20
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [esp + 0x10]
mov edi, eax
call sub.MFC42u.DLL_CString::CString
cmp edi, 0xffffffff
jne 0x4115bb
mov edx, dword [0x43ba70]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4115f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x43ba70]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov eax, 0xe91ed8f5
mov dword [esp + 0x14], 0
mul ebx
mov esi, edx
shr esi, 0xb
lea eax, [esi + esi*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*8]
shl ecx, 1
sub ecx, esi
push ecx
call sub.MFC42u.DLL_operatornew
add esp, 4
lea edx, [esp + 0x14]
mov ebp, eax
push 0
push edx
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
je 0x411666
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call sub.MFC42u.DLL_operatordelete
mov eax, dword [0x43ba70]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
push esi
call fcn.0041a2b0
add esp, 8
xor ebx, ebx
test esi, esi
jbe 0x4116b6
mov ecx, dword [esp + 0x20]
lea edx, [ebp + 0x451]
mov dword [esp + 0x10], esi
lea eax, [ecx + 4]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4116a1
mov ecx, 0x10
mov esi, edx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
inc ebx
add eax, 0x44
add edx, 0x8c9
dec ecx
mov dword [esp + 0x10], ecx
jne 0x41168e
push ebp
call sub.MFC42u.DLL_operatordelete
mov edx, dword [esp + 0x20]
add esp, 4
mov dword [edx], ebx
mov eax, dword [0x43ba70]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
Function at 0x4124f0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x43ba70]
sub esp, 8
push esi
push 0xffffffffffffffff
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00412b20
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 7
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [esp + 4]
mov esi, eax
call sub.MFC42u.DLL_CString::CString
cmp esi, 0xffffffff
jne 0x412555
mov edx, dword [0x43ba70]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 8
ret 0x8cc
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push eax
push 1
call fcn.0041a270
add esp, 8
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
mov dword [esp + 8], 0
push 0
push ecx
push 0x8c9
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x4125bc
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x43ba70]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
pop edi
pop esi
add esp, 8
ret 0x8cc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x43ba70]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
pop esi
add esp, 8
ret 0x8cc
Function at 0x413c70
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x429960
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], edi
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 1
call sub.MFC42u.DLL_CString::CString_3
lea eax, [esp + 0x40]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x3c], 2
call sub.MFC42u.DLL_CString::CString_2
push str._____sz
lea ecx, [esp + 0x18]
mov bl, 3
push 0x434208
push ecx
mov byte [esp + 0x44], bl
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x10]
push edx
call sub.MFC42u.DLL_CString::Find_1
mov ebp, eax
cmp ebp, edi
jle 0x413d6c
lea eax, [esp + 0x1c]
push ebp
push eax
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 4
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], bl
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
mov ecx, dword [edx - 8]
sub eax, ecx
lea ecx, [esp + 0x10]
sub eax, ebp
push eax
lea eax, [esp + 0x20]
push eax
call sub.MFC42u.DLL_CString::Right
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 5
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], bl
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll__wtoi]
mov edi, 0x64
add esp, 4
sub edi, eax
push edi
mov ecx, esi
call fcn.004136f0
mov ecx, esi
call fcn.004139f0
push ecx
lea edx, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [esi + 0x7c]
call fcn.004077d0
mov ebp, dword [esi + 0x98]
lea edi, [esi + 0x90]
mov ebx, eax
push 0xffffffffffffffff
lea eax, [ebp + 1]
mov ecx, edi
push eax
call fcn.00414d50
mov ecx, dword [edi + 4]
lea edx, [esp + 0x20]
push edx
mov dword [ecx + ebp*4], 0
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x84]
mov edi, dword [esp + 0x24]
lea eax, [ecx + ecx*2]
shl eax, 4
sub eax, ecx
mov ecx, dword [esp + 0x2c]
sub ecx, edi
cmp eax, ecx
jle 0x413dfc
mov edx, dword [sym.imp.MFC42u.DLL_tagSIZEconstCScrollView::sizeDefault]
mov ecx, 0x64
push edx
push edx
push eax
push ecx
push 1
mov ecx, esi
call sub.MFC42u.DLL_CScrollView::SetScrollSizes
mov edx, dword [esi + 0x20]
push 1
push 0
push edx
mov dword [esi + 0x78], ebx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov eax, ebx
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret 4
Function at 0x415150
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x10]
lea ecx, [esp]
push 0
push eax
push 0xc
push ecx
push 0
push 0
push 0x2d1080
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x41517d
add esp, 0xc
ret
cmp dword [esp + 0x10], 0xc
je 0x41518a
xor eax, eax
add esp, 0xc
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
mov eax, dword [esp + 8]
mov dword [edx], eax
mov eax, 1
add esp, 0xc
ret

Function at 0x415b70
Capabilities:
Get disk information
Get storage device properties

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x429b68
push eax
mov dword fs:[0], esp
sub esp, 0x648
push ebx
push ebp
push esi
mov eax, dword [esp + 0x664]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or ebp, 0xffffffff
cmp esi, ebp
jne 0x415bd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x664]
mov esi, eax
mov dword [esp + 0x65c], ebp
call sub.MFC42u.DLL_CString::CString
mov eax, esi
jmp 0x415d25
lea ecx, [esp + 0x10]
push edi
lea edx, [esp + 0x10]
push ecx
push edx
push esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call fcn.00415150
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x258]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x258]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [esp + 0x258], bx
lea edi, [esp + 0x258]
je 0x415d0f
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
push edi
lea ecx, [esp + 0x5c]
push str.._s
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
lea edx, [esp + 0x64]
push edx
call ebp
add esp, 0x10
mov word [esp + eax*2 + 0x56], bx
lea eax, [esp + 0x58]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x415cf9
lea ecx, [esp + 0x20]
push ebx
push ecx
lea edx, [esp + 0x38]
push 0x28
push edx
lea eax, [esp + 0x34]
push 0xc
push eax
push 0x2d1400
push esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x54], 0x28
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x415cf2
cmp byte [esp + 0x38], bl
jne 0x415cf2
cmp dword [esp + 0x4c], 7
jne 0x415cf2
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
push esi
call fcn.00415150
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
add esp, 0xc
cmp eax, ecx
jne 0x415cf2
mov ecx, dword [esp + 0x670]
mov ax, word [esp + 0x60]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x66c]
mov word [ecx + edx*2], ax
mov eax, dword [esp + 0x670]
inc dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebp
lea edi, [edi + eax*2 + 2]
add esp, 4
cmp word [edi], bx
jne 0x415c32
or ebp, 0xffffffff
lea ecx, [esp + 0x668]
mov dword [esp + 0x660], ebp
call sub.MFC42u.DLL_CString::CString
xor eax, eax
pop edi
mov ecx, dword [esp + 0x654]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x654
ret
Function at 0x41a2f0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret
Function at 0x41b420
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
pop esi
ret

Function at 0x41b440
Capabilities:
Get disk size

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x24]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
xor eax, eax
cmp ebx, eax
je 0x41b47c
mov ecx, dword [esp + 0x10]
mov dword [ebx], ecx
mov dword [ebx + 4], ebp
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
cmp edi, eax
je 0x41b491
mov dword [edi], edx
mov dword [edi + 4], ecx
mov esi, dword [esp + 0x38]
cmp esi, eax
je 0x41b4a6
sub edx, dword [esp + 0x10]
sbb ecx, ebp
mov dword [esi], edx
mov dword [esi + 4], ecx
xor eax, eax
mov ecx, dword [esp + 0x3c]
cmp ecx, eax
je 0x41b4bb
mov edx, dword [esp + 0x20]
mov dword [ecx], edx
mov edx, dword [esp + 0x24]
mov dword [ecx + 4], edx
cmp dword [esp + 0x2c], eax
jne 0x41b4f0
cmp ebx, eax
je 0x41b4ca
mov dword [ebx], eax
mov dword [ebx + 4], eax
cmp edi, eax
je 0x41b4d3
mov dword [edi], eax
mov dword [edi + 4], eax
cmp esi, eax
je 0x41b4dc
mov dword [esi], eax
mov dword [esi + 4], eax
cmp ecx, eax
je 0x41b4e5
mov dword [ecx], eax
mov dword [ecx + 4], eax
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x41b500
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x42a000
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x28], 0
xor esi, esi
call fcn.00427942
lea ecx, [esp + 0x2c]
push 1
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 1
call sub.MFC42u.DLL_CString::Left
mov edx, dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
push 0x4377cc
push edx
call edi
add esp, 8
lea ecx, [esp + 0x2c]
test eax, eax
setne bl
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x41b57e
mov esi, 2
jmp 0x41b595
mov ebx, 3
inc esi
lea ecx, [esp + 0x10]
push esi
push 0x5c
call sub.MFC42u.DLL_CString::Find_3
dec ebx
mov esi, eax
jne 0x41b583
push 1
push 0x5c
lea ecx, [esp + 0x34]
call sub.MFC42u.DLL_CString::CString_1
lea eax, [esp + 0x18]
push 1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call sub.MFC42u.DLL_CString::Right
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax]
push ecx
push edx
call edi
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
setne bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 1
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x41b5ef
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::operator_1
inc esi
lea ecx, [esp + 0x10]
push esi
push 0x5c
call sub.MFC42u.DLL_CString::Find_3
mov esi, eax
cmp esi, 0xffffffff
je 0x41b67c
mov ebp, dword [esp + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0x2c]
push esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 3
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 1
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x14]
push 0
push ecx
call ebx
test eax, eax
jne 0x41b656
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xb7
jne 0x41b6b0
test ebp, ebp
je 0x41b668
mov edx, dword [esp + 0x14]
push ebp
push edx
call fcn.0041a2f0
add esp, 8
inc esi
lea ecx, [esp + 0x10]
push esi
push 0x5c
call sub.MFC42u.DLL_CString::Find_3
mov esi, eax
cmp esi, 0xffffffff
jne 0x41b60d
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x41b8d0
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 8]
push eax
mov eax, dword [esp + 8]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
ret 0xc
Function at 0x41b8f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [ecx + 8]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
ret 0xc

Function at 0x41b920
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ecx, dword [esi + 8]
push 0x104
push eax
push 0
push ecx
mov dword [esi + 4], 1
call edi
test eax, eax
jne 0x41b96b
mov eax, dword [esi + 4]
lea ecx, [esp + 8]
push 0x104
push ecx
lea edx, [eax + 1]
push eax
mov dword [esi + 4], edx
mov edx, dword [esi + 8]
push edx
call edi
test eax, eax
je 0x41b94d
mov eax, dword [esi + 4]
pop edi
dec eax
pop esi
add esp, 0x208
ret

Function at 0x41b980
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 8]
push eax
mov eax, dword [esp + 8]
push edx
push 3
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc
Function at 0x41ba60
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, 0x1428
call fcn.00427cb0
mov eax, dword [0x43ba78]
test eax, eax
je 0x41bbd1
push esi
lea eax, [esp + 0xc]
push edi
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp + 0x20]
push 0x208
push ecx
lea edx, [esp + 0x18]
push str.yyMMdd
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
mov esi, dword [sym.imp.MSVCRT.dll_swprintf]
lea eax, [esp + 0x20]
push eax
push 0x43ba80
lea ecx, [esp + 0x230]
push str._sAccaLog_s.log
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0x430]
lea eax, [esp + 0x10]
push 0x800
push edx
push str._HH:mm:ss_
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov edx, dword [esp + 0x1434]
lea ecx, [esp + 0x1438]
mov edi, eax
push ecx
lea eax, [esp + 0xc34]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_vswprintf]
add esp, 0xc
lea ecx, [esp + 0xc30]
lea edx, [esp + edi*2 + 0x42e]
push ecx
push str._s_r_n
push edx
call esi
mov eax, dword [0x43ba7c]
add esp, 0xc
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0x80
push 4
push 0
push 3
lea ecx, [esp + 0x23c]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41bb88
lea edx, [esp + 0xc]
push 0
push edx
lea eax, [esp + 0x12]
push 2
push eax
push esi
mov byte [esp + 0x1e], 0xff
mov byte [esp + 0x1f], 0xfe
call edi
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0xc]
push 0
lea edx, [esp + 0x434]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
shl eax, 1
push eax
lea eax, [esp + 0x43c]
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x43ba7c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
add esp, 0x1428
ret

Function at 0x41bbe0
Capabilities:
Check os version

Disassembly:
sub esp, 0x11c
push edi
mov ecx, 0x47
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 8]
pop edi
cmp eax, 5
jne 0x41bc43
mov eax, dword [esp + 8]
sub eax, 0
je 0x41bc3c
dec eax
je 0x41bc27
dec eax
jne 0x41bc6c
mov eax, 4
jmp 0x41bc6e
mov eax, dword [esp + 0x118]
and eax, 0x200
neg eax
sbb eax, eax
add eax, 2
jmp 0x41bc6e
mov eax, 3
jmp 0x41bc6e
cmp eax, 6
jne 0x41bc6c
mov eax, dword [esp + 8]
sub eax, 0
je 0x41bc65
dec eax
je 0x41bc5e
dec eax
jne 0x41bc6c
mov eax, 7
jmp 0x41bc6e
mov eax, 6
jmp 0x41bc6e
mov eax, 5
jmp 0x41bc6e
xor eax, eax
mov ecx, dword [esp + 0x120]
test ecx, ecx
je 0x41bc88
mov edx, dword [esp + 0x114]
and edx, 0xffff
mov dword [ecx], edx
add esp, 0x11c
ret
Function at 0x41bce0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x42a07c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [esp + 0x230]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x22c], 0
call fcn.004276c0
push 1
push 0x5c
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0x10]
push 1
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x230], 1
call sub.MFC42u.DLL_CString::Right
mov edx, dword [esp + 0x14]
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
push edx
push eax
call esi
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], 0
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x41bd89
push 0x5c
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x10]
push 2
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::Left
mov edx, dword [eax]
push 0x437808
push edx
call esi
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x41be02
push 2
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::Find_3
inc eax
lea ecx, [esp + 0xc]
push eax
push 0x5c
call sub.MFC42u.DLL_CString::Find_3
inc eax
lea ecx, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x22c], 2
call sub.MFC42u.DLL_CString::operator_2
mov byte [esp + 0x228], 0
lea ecx, [esp + 0x10]
jmp 0x41be30
lea ecx, [esp + 0x10]
push 3
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x22c], 3
call sub.MFC42u.DLL_CString::operator_2
mov byte [esp + 0x228], 0
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 0x104
push edx
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov edi, dword [esp + 0x234]
test eax, eax
mov dword [edi], 0
jne 0x41be85
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xc]
mov dword [edi], eax
mov dword [esp + 0x228], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
jmp 0x41bebd
lea ecx, [esp + 0x18]
push 0x4362d8
push ecx
call esi
add esp, 8
mov dword [esp + 0x228], 0xffffffff
test eax, eax
lea ecx, [esp + 0xc]
jne 0x41beb3
call sub.MFC42u.DLL_CString::CString
mov eax, 0x64
jmp 0x41bebd
call sub.MFC42u.DLL_CString::CString
mov eax, 0x65
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x220
ret