joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c0b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x425001
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x184
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
lea edi, [esi + 0xc8]
push edi
call sub.MFC42.DLL_CString::CString_1
xor ebx, ebx
push str.NetConfig.ini
lea ecx, [esp + 0x14]
mov dword [esp + 0x19c], ebx
call fcn.0042364a
mov eax, dword [esp + 0x10]
push eax
push ebx
push str.SetAutoUpdateTime
push str.FLAGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, ebx
je 0x40c121
mov dword [esp + 0x198], 0xffffffff
jmp 0x40c2d8
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
push 0x104
lea ecx, [esp + 0x10]
mov byte [esp + 0x19c], 1
call sub.MFC42.DLL_CString::GetBufferSetLength
mov esi, dword [esi + 0x120]
push 0x104
push eax
push esi
call fcn.00405910
add esp, 0xc
or esi, 0xffffffff
lea ecx, [esp + 0xc]
push esi
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.RsConfig.cfg
lea ecx, [esp + 0x10]
call fcn.0042364a
mov edi, dword [edi]
lea ecx, [esp + 0x54]
push edi
call fcn.00407150
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x2c]
push ecx
push edx
push 0x4010
lea ecx, [esp + 0x60]
mov byte [esp + 0x1a4], 2
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], 0x400f
mov dword [esp + 0x48], ebx
call fcn.004072a0
test eax, eax
jne 0x40c2b0
lea ecx, [esp + 0x54]
call fcn.00407550
cmp eax, ebx
je 0x40c2b0
mov ecx, 2
mov edx, dword [eax]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push ecx
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x4c]
push ecx
mov ecx, eax
mov dword [esp + 0x38], 3
mov dword [esp + 0x28], ebx
mov dword [esp + 0x50], 0x4010
mov dword [esp + 0x58], 8
mov dword [esp + 0x60], ebx
call dword [edx + 0x4c]
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x40c2b0
xor edx, edx
mov word [esp + 0x1c], bx
mov dword [esp + 0x1e], edx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x22], edx
mov word [esp + 0x26], dx
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x20]
push edx
push 4
call dword [eax + 0x18]
cmp eax, ebx
jne 0x40c2a7
cmp word [esp + 0x24], bx
ja 0x40c2a7
push ebx
call dword [sym.imp.MSVCRT.dll_time]
cdq
mov ecx, 0x3c
add esp, 4
idiv ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
push 4
mov word [esp + 0x30], dx
mov edx, dword [ecx]
call dword [edx + 0x2c]
cmp eax, ebx
jne 0x40c2a7
mov ecx, dword [esp + 0x10]
push ecx
push 0x42d2b0
push str.SetAutoUpdateTime
push str.FLAGS
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
call dword [edx + 8]
lea ecx, [esp + 0x54]
mov byte [esp + 0x198], 1
call fcn.00407230
lea ecx, [esp + 0xc]
mov byte [esp + 0x198], bl
call fcn.004235ea
mov dword [esp + 0x198], esi
lea ecx, [esp + 0x10]
call fcn.004235ea
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x190
ret
Function at 0x40c700
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4250a8
push eax
mov eax, dword [0x430d34]
mov dword fs:[0], esp
sub esp, 0x58
test eax, eax
jne 0x40c7e1
push edi
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x430c70]
push str.RegGuide.exe__OverTip
push eax
lea eax, [esp + 0xc]
push str._s_s
push eax
mov dword [esp + 0x74], 0
call sub.MFC42.DLL_CString::Format
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x28]
add esp, 0x10
rep stosd dword es:[edi], eax
mov eax, dword [0x430c70]
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
mov eax, dword [esp + 0x10]
push 0
push 0
push 1
push 0
push 0
push eax
push 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x40c7d0
mov ecx, dword [esp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
lea ecx, [esp + 4]
mov dword [esp + 0x64], 0xffffffff
call fcn.004235ea
mov eax, 1
pop esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret
lea ecx, [esp]
mov dword [esp + 0x60], 0xffffffff
call fcn.004235ea
mov ecx, dword [esp + 0x58]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x64
ret

Function at 0x40ccd0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x120]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x104
push eax
push ecx
push edx
or esi, 0xffffffff
call fcn.0040cd50
add esp, 0x10
test eax, eax
je 0x40cd42
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x114]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
add esp, 0x104
ret
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret

Function at 0x40e660
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.0040e7b0
test eax, eax
jne 0x40e6d0
mov ecx, esi
call fcn.0040e630
mov eax, dword [esp + 8]
test eax, eax
je 0x40e687
mov dword [esi + 8], eax
mov dword [esi + 0x10], 0
jmp 0x40e695
mov dword [esi + 8], 0
mov dword [esi + 0x10], 1
mov eax, dword [esi + 8]
test eax, eax
je 0x40e6c9
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0
push esi
push 0x4132d0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
jne 0x40e6d0
pop esi
ret 4
mov ecx, esi
call fcn.00412130
mov eax, 1
pop esi
ret 4
Function at 0x40e6e0
Capabilities:
Terminate thread

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
call fcn.0040e7b0
test eax, eax
je 0x40e7a7
mov dword [esi + 0x7c], 1
lea ecx, [esi + 0x14]
call fcn.00403cc0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40e7a7
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40e71c
mov ecx, esi
call fcn.0040e810
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 0x31
mov eax, dword [esi + 4]
test eax, eax
je 0x40e783
lea ecx, [esp + 0x30]
push ecx
push eax
call ebp
test eax, eax
je 0x40e783
cmp dword [esp + 0x30], 0x103
jne 0x40e783
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push 0
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40e77a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0x64
call edi
dec ebx
jne 0x40e730
jmp 0x40e787
test ebx, ebx
jne 0x40e793
mov edx, dword [esi + 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
mov dword [esi + 4], 0
pop ebx
pop esi
add esp, 0x1c
ret 4

Function at 0x40e7f0
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [ecx + 4]
mov dword [ecx + 0xc], 1
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x40e810
Capabilities:
Resume thread

Disassembly:
mov eax, dword [ecx + 4]
mov dword [ecx + 0xc], 0
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret
Function at 0x40f080
Capabilities:
Check if file exists
Delete file
Get file attributes
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x425510
push eax
mov eax, dword [0x430c94]
mov dword fs:[0], esp
sub esp, 8
cmp eax, 3
push esi
mov esi, ecx
ja case.default.0x40f0a5
jmp dword [eax*4 + 0x40f2a8]
mov dword [esi + 0x68], 0
jmp case.default.0x40f0a5
mov dword [esi + 0x68], 3
mov eax, dword [0x430ca0]
test eax, eax
je 0x40f0ee
mov eax, dword [0x430ca8]
mov ecx, dword [0x430ca4]
mov dx, word [0x430c9c]
push eax
mov eax, dword [0x430c98]
push ecx
push 1
push 1
push edx
push eax
lea ecx, [esi + 0x14]
call fcn.00403be0
jmp case.default.0x40f0a5
mov cx, word [0x430c9c]
mov edx, dword [0x430c98]
push 0
push 0
push 0
push 1
push ecx
push edx
lea ecx, [esi + 0x14]
call fcn.00403be0
jmp case.default.0x40f0a5
mov dword [esi + 0x68], 1
mov eax, dword [esi + 8]
push ebx
push ebp
push edi
push eax
lea ecx, [esi + 0x14]
call fcn.00403c80
mov eax, dword [0x430c70]
lea ebp, [esi + 0x6c]
push eax
mov ecx, ebp
call fcn.004235f0
mov eax, dword [0x430c70]
lea ebx, [esi + 0x74]
push eax
push str._sDownLoad
push ebx
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x430c70]
add esp, 0xc
lea edi, [esi + 0x78]
push eax
push str._sUpdate
push edi
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x430c70]
add esp, 0xc
lea ecx, [esi + 0x70]
push eax
push str._sCopyRun
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebx]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40f196
cmp eax, 0x10
je 0x40f196
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov edx, dword [edi]
push str.CompsVer.inf
push edx
lea eax, [esp + 0x18]
push str._s_s
push eax
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0x10
lea edi, [esi + 0x88]
push ecx
push 0x20
push 0x20
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push str.18.00
push str.Version
push str.Update
call ebx
push 0xffffffffffffffff
mov ecx, edi
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp]
push str.CompsVer.inf
push edx
lea eax, [esp + 0x18]
push str._s_s
push eax
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ecx
push 0x20
push 0x20
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push str.18.00
push str.Version
push str.Update
call ebx
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edi, dword [edi]
mov edx, dword [esp + 0x14]
push edi
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
pop edi
pop ebp
pop ebx
je 0x40f272
mov dword [esi + 0x84], 1
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.004235ea
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004235ea
mov ecx, dword [esp + 0xc]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40f2c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x425538
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebp
push esi
mov esi, ecx
push edi
push 0x42d2d0
lea eax, [esp + 0x18]
lea ebp, [esi + 0x70]
push ebp
push eax
call sub.MFC42.DLL_operator
push str.RavCopy.exe
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x80], 0
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 2
call fcn.004235ea
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi + 0x6c]
mov eax, dword [esp + 0x10]
push edx
push str.RISING_UPGRADE_SYSTEM
push eax
lea ecx, [esp + 0x18]
push str.__s___s___s_
push ecx
mov byte [esp + 0x88], 3
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 0x10]
add esp, 0x14
test eax, eax
je 0x40f35f
push str._SILENCE
lea ecx, [esp + 0x10]
call fcn.0042364a
mov ebp, dword [ebp]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x18]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x28]
push edx
push eax
push ebp
push 0
push 0
push 1
push 0
push 0
push ecx
push 0
mov dword [esp + 0x50], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40f3e7
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x74], 2
call fcn.004235ea
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0xffffffff
call fcn.004235ea
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
lea ecx, [esp + 0xc]
mov byte [esp + 0x74], 2
call fcn.004235ea
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0xffffffff
call fcn.004235ea
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x6c
ret
Function at 0x40f420
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x425558
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push esi
mov esi, ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x78]
push str.Setup.exe
push eax
lea ecx, [esp + 0xc]
push str.__s_s___UPDATE
push ecx
mov dword [esp + 0x74], 0
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 0x10]
add esp, 0x10
test eax, eax
je 0x40f47c
push str._SILENCE
lea ecx, [esp + 8]
call fcn.0042364a
mov esi, dword [esi + 0x78]
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 8]
lea eax, [esp + 0x1c]
push edx
push eax
push esi
push 0
push 0
push 1
push 0
push 0
push ecx
push 0
mov dword [esp + 0x44], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x40f4f6
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
lea ecx, [esp + 4]
mov dword [esp + 0x64], 0xffffffff
call fcn.004235ea
mov eax, 1
pop esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret
lea ecx, [esp + 4]
mov dword [esp + 0x64], 0xffffffff
call fcn.004235ea
mov ecx, dword [esp + 0x5c]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x64
ret
Function at 0x413e00
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov esi, dword [esp + 0x118]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x103
jbe 0x413e4d
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret
push 0x103
lea eax, [esp + 0x10]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
lea ecx, [esp + 0x18]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 0x14
test eax, eax
je 0x413f1b
mov ebx, dword [esp + 0x114]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push ebx
mov byte [eax], 0
call edi
test eax, eax
jne 0x413ea1
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret
mov eax, dword [esp + 0x120]
test eax, eax
je 0x413ed3
lea edx, [esp + 0xc]
push 0
push edx
call fcn.00413f30
add esp, 8
test eax, eax
jne 0x413ed3
push 0x52
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret
push ebp
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x413ee9
push 0x80
push esi
call ebp
mov eax, dword [esp + 0x120]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
test edi, edi
je 0x413f0e
mov eax, dword [esp + 0x128]
test eax, eax
je 0x413f0e
push eax
push esi
call ebp
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x104
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret
Function at 0x413f30
Capabilities:
Create directory

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov esi, dword [esp + 0x114]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test esi, esi
mov ebx, 1
stosb byte es:[edi], al
je 0x413f7d
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jle 0x413f7d
push esi
call edi
cmp eax, 0x104
jbe 0x413f89
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret
push ebp
push 0x103
lea eax, [esp + 0x14]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathSkipRootA]
mov edi, dword [esp + 0x11c]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll__mbschr]
mov esi, eax
add esp, 8
test esi, esi
je 0x413fee
lea edx, [esp + 0x10]
push edi
push edx
mov byte [esi], 0
call ebp
and ebx, eax
jne 0x413fe6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x413fe6
mov ebx, 1
mov byte [esi], 0x5c
lea eax, [esi + 1]
jmp 0x413fb3
lea eax, [esp + 0x10]
push edi
push eax
call ebp
and ebx, eax
pop ebp
jne 0x41400d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41400d
mov ebx, 1
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x414020
Capabilities:
Get disk size

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
or ecx, 0xffffffff
xor eax, eax
push edi
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 3
jae 0x414048
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add esp, 0x28
ret
push ebx
xor eax, eax
push 3
lea ecx, [esp + 0x34]
xor ebx, ebx
mov word [esp + 0x35], ax
push edx
push ecx
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3f], al
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4140b2
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
push edx
push ecx
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x38]
push edx
push ecx
call eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
pop ebx
mov dword [ecx], edx
mov edx, dword [esp + 0x14]
mov dword [ecx + 4], edx
add esp, 0x28
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 4]
push eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
cmp eax, ebx
je 0x4140fc
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x34]
imul edx, dword [esp + 8]
imul edx, dword [esp + 0xc]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
pop ebx
add esp, 0x28
ret
Function at 0x419640
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x426119
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esp + 0x14], 3
call fcn.00419710
mov eax, dword [esi + 0x38]
push eax
mov dword [esp + 0xc], eax
call sub.MFC42.DLL_operatordelete
xor ebx, ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov eax, dword [esi + 0x28]
push eax
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_operatordelete
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov eax, dword [esi + 0x14]
add esp, 8
cmp eax, ebx
je 0x4196c0
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4196b7
cmp al, 0xff
je 0x4196b7
dec al
mov byte [ecx], al
jmp 0x4196c0
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4196ed
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4196e4
cmp al, 0xff
je 0x4196e4
dec al
mov byte [ecx], al
jmp 0x4196ed
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x41c960
Capabilities:
Create directory

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov esi, dword [esp + 0x114]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test esi, esi
mov ebx, 1
stosb byte es:[edi], al
je 0x41c9ad
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jle 0x41c9ad
push esi
call edi
cmp eax, 0x104
jbe 0x41c9b9
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret
push ebp
push 0x103
lea eax, [esp + 0x14]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathSkipRootA]
mov edi, dword [esp + 0x11c]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x5c
push eax
call sub.MSVCRT.dll__mbschr
mov esi, eax
add esp, 8
test esi, esi
je 0x41ca1d
lea edx, [esp + 0x10]
push edi
push edx
mov byte [esi], 0
call ebp
and ebx, eax
jne 0x41ca15
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41ca15
mov ebx, 1
mov byte [esi], 0x5c
lea eax, [esi + 1]
jmp 0x41c9e3
lea eax, [esp + 0x10]
push edi
push eax
call ebp
and ebx, eax
pop ebp
jne 0x41ca3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41ca3c
mov ebx, 1
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x41ca50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax], 0x5c
je 0x41ca6f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41ca6f
test al, 0x10
je 0x41ca6f
mov eax, 1
ret
xor eax, eax
ret
Function at 0x41cae0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x6c]
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41cb12
mov eax, 1
pop edi
add esp, 0x68
ret
push ebx
push ebp
push esi
mov esi, dword [esp + 0x84]
test esi, esi
je 0x41cb2b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0041d160
push 0x100000
mov dword [esp + 0x84], 0
call sub.MFC42.DLL_operatornew
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 8
lea edx, [esp + 0x7c]
mov esi, eax
push 0
push edx
push 0x100000
push esi
push edi
mov ebp, 1
call ebx
test eax, eax
je 0x41cb9d
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x41cb9b
push eax
lea eax, [esp + 0x24]
push esi
push eax
call fcn.0041d190
add esp, 0xc
lea ecx, [esp + 0x7c]
push 0
push ecx
push 0x100000
push esi
push edi
call ebx
test eax, eax
jne 0x41cb6e
jmp 0x41cb9d
xor ebp, ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.0041dc20
push esi
call sub.MFC42.DLL_operatordelete
add esp, 0xc
test ebp, ebp
pop esi
pop ebp
pop ebx
je 0x41cbcb
or eax, 0xffffffff
pop edi
add esp, 0x68
ret
mov ecx, dword [esp + 0x74]
lea edx, [esp + 4]
push ecx
push 0x10
push edx
call fcn.0041ca80
add esp, 0xc
xor eax, eax
pop edi
add esp, 0x68
ret