joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c9a0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x14
mov eax, dword [0x4f3c58]
xor ecx, ecx
push esi
cmp eax, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], 0x523574
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x14], 0x523574
lea esi, [eax - 1]
jg 0x43c9f7
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push 0x21e1
push str.C:Documents_and_SettingscorkumMy_DocumentsMy_ProjectsFEAWIN_5.X_fea.cpp
add eax, 0x40
push str.fatal:_attrib_AST_stack_overflow__s__d___n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push 1
call dword [sym.imp.MSVCRT.dll_exit]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
push 0x107
mov dword [0x4f3c58], esi
call fcn.0041dd70
add esp, 0x18
test eax, eax
je 0x43ca51
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x108
call fcn.0041dd70
add esp, 0x18
test eax, eax
jne 0x43ca90
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
push 1
push eax
mov eax, dword [esp + 0x20]
push ecx
push 0x523574
push edx
push eax
mov dword [0x4f3c58], esi
call fcn.0043daf0
push 0x20
push 0x4f2f48
call fcn.0041d990
add esp, 0x24
pop esi
add esp, 0x14
ret
mov ecx, dword [0x52e628]
call fcn.0044eb50
mov dword [0x4f3c58], esi
pop esi
add esp, 0x14
ret
Function at 0x43d9e0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x14
mov eax, dword [0x4f3c58]
xor ecx, ecx
push esi
cmp eax, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], 0x523574
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x14], 0x523574
lea esi, [eax - 1]
jg 0x43da37
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push 0x22fb
push str.C:Documents_and_SettingscorkumMy_DocumentsMy_ProjectsFEAWIN_5.X_fea.cpp
add eax, 0x40
push str.fatal:_attrib_AST_stack_overflow__s__d___n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push 1
call dword [sym.imp.MSVCRT.dll_exit]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
push 0x124
mov dword [0x4f3c58], esi
call fcn.0041dd70
add esp, 0x18
test eax, eax
je 0x43da91
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x121
call fcn.0041dd70
add esp, 0x18
test eax, eax
jne 0x43dad0
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
push 1
push eax
mov eax, dword [esp + 0x20]
push ecx
push 0x523574
push edx
push eax
mov dword [0x4f3c58], esi
call fcn.0043daf0
push 4
push 0x4f3098
call fcn.0041d990
add esp, 0x24
pop esi
add esp, 0x14
ret
mov ecx, dword [0x52e628]
call fcn.00450a90
mov dword [0x4f3c58], esi
pop esi
add esp, 0x14
ret

Function at 0x43ebf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x120
lea eax, [esp + 0xc]
push esi
push edi
push eax
xor edi, edi
call fcn.0043e1a0
mov eax, dword [eax]
lea ecx, [esp + 8]
push ecx
push 0xf003f
push edi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.004d0c74
test esi, esi
jne 0x43ec7e
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
push esi
push str.CurDir
push edx
mov dword [esp + 0x24], 0x104
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43ec73
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MSVCRT.dll__chdir]
add esp, 4
mov edi, 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0x120
ret
Function at 0x43ec90
Capabilities:
Set registry value

Disassembly:
sub esp, 0x110
lea eax, [esp + 0xc]
push esi
push edi
push 0x104
mov esi, ecx
push eax
xor edi, edi
call dword [sym.imp.MSVCRT.dll__getcwd]
add esp, 8
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0043e1a0
mov eax, dword [eax]
lea edx, [esp + 0x10]
lea ecx, [esp + 8]
push edx
push ecx
push edi
push 0xf003f
push edi
push edi
push edi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.004d0c74
test esi, esi
jne 0x43ed24
mov eax, dword [esp + 8]
lea edx, [esp + 0x14]
push 0x104
push edx
push 1
push esi
push str.CurDir
push eax
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x43ed19
mov edi, 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0x110
ret
Function at 0x440360
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
mov dword [esp], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 8]
add esp, 0x20
ret

Function at 0x440380
Capabilities:
Get common file path
Get disk size

Disassembly:
sub esp, 0x120
mov ax, word [0x52f16c]
push ebp
push esi
push edi
mov word [esp + 0x28], ax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2a]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
push ecx
push 0x104
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x44045d
push 0x4f6c8c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x44045d
push str.GetDiskFreeSpaceExA
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov byte [esp + 0x2b], 0
jne 0x440421
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x44044c
mov esi, dword [esp + 0x14]
push ebp
imul esi, dword [esp + 0x24]
imul esi, dword [esp + 0x1c]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x440465
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x30]
push ecx
push edx
call eax
test eax, eax
je 0x44044c
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x440465
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x440465
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
push 0
push 0x3e8
push edi
push esi
call fcn.004d0820
pop edi
pop esi
pop ebp
add esp, 0x120
ret

Function at 0x4404d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, ecx
call fcn.00440360
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fmul qword [0x4dc4c0]
call sub.MSVCRT.dll__ftol
mov esi, eax
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SOFTWARERocsciencePhase2_5.0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x440573
mov eax, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.Swap
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x440560
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x440560
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
add esp, 0x14
ret
push esi
mov ecx, edi
call fcn.00440580
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
add esp, 0x14
ret
Function at 0x440580
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
lea ecx, [esp]
push esi
xor esi, esi
push eax
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push str.SoftwareRocsciencePhase2_5.0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4405eb
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push esi
push str.Swap
push ecx
mov dword [esp + 0x20], 4
mov dword [esp + 0x24], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4405e0
mov esi, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret 4
Function at 0x4491c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d52a8
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push 4
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
imul ecx, eax
push eax
push ecx
push edx
lea eax, [esp + 0x34]
sub esp, 0xc
mov dword [esp + 0x38], 0
mov ecx, esp
mov dword [esp + 0x64], esp
push eax
call fcn.0047d4e0
mov ecx, esi
call fcn.0041c770
lea ecx, [esp + 0x14]
mov dword [esi], 0x4dc780
mov dword [esp + 0xc], 0xffffffff
call fcn.0047d600
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x28

Function at 0x44d800
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d598b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4db6c8
mov dword [esi + 4], eax
lea ebp, [esi + 0x20]
mov dword [esp + 0x24], eax
mov ecx, ebp
call fcn.0047d390
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push edi
mov byte [esp + 0x28], 1
mov dword [esi], 0x4dc858
call fcn.0047d550
push eax
mov ecx, ebp
mov byte [esp + 0x28], 2
call fcn.0047d700
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call fcn.0047d600
push edi
call fcn.004520f0
push edi
mov dword [esi + 0x2c], eax
call fcn.004520f0
push edi
mov dword [esi + 0x38], eax
call fcn.004520f0
push edi
mov dword [esi + 0x34], eax
call fcn.004520f0
push edi
mov dword [esi + 0x30], eax
call fcn.004520f0
mov ecx, dword [esp + 0x30]
add esp, 0x14
mov dword [esi + 0x3c], eax
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 4

Function at 0x44d819
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d598b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4db6c8
mov dword [esi + 4], eax
lea ebp, [esi + 0x20]
mov dword [esp + 0x24], eax
mov ecx, ebp
call fcn.0047d390
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push edi
mov byte [esp + 0x28], 1
mov dword [esi], 0x4dc858
call fcn.0047d550
push eax
mov ecx, ebp
mov byte [esp + 0x28], 2
call fcn.0047d700
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call fcn.0047d600
push edi
call fcn.004520f0
push edi
mov dword [esi + 0x2c], eax
call fcn.004520f0
push edi
mov dword [esi + 0x38], eax
call fcn.004520f0
push edi
mov dword [esi + 0x34], eax
call fcn.004520f0
push edi
mov dword [esi + 0x30], eax
call fcn.004520f0
mov ecx, dword [esp + 0x30]
add esp, 0x14
mov dword [esi + 0x3c], eax
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x44efd0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d5a68
push eax
mov dword fs:[0], esp
mov eax, dword [esp + 0x10]
mov ecx, dword [ecx + 0x30]
push eax
mov dword [esp + 0xc], 0
call fcn.00442290
test eax, eax
je 0x44f00f
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
push ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call dword [edx + 0x40]
lea ecx, [esp + 0x18]
mov dword [esp + 8], 0xffffffff
call fcn.0044c440
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret 0xa0
Function at 0x457110
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d6ba9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x640
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], 0
mov edi, dword [ebp + 0xc4]
push 0
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x658], 1
call fcn.0044c3d0
push 0
push edi
lea ecx, [esp + 0x150]
mov byte [esp + 0x658], 2
call fcn.0044c3d0
push 0
push edi
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x658], 3
call fcn.0044c3d0
lea eax, [esp + 0x3c8]
lea ecx, [ebp + 0xc]
push eax
mov byte [esp + 0x654], 4
call fcn.004795e0
lea ecx, [esp + 0x330]
push 5
push ecx
mov ecx, eax
mov byte [esp + 0x658], 5
call fcn.004794a0
lea ecx, [esp + 0x3d0]
mov byte [esp + 0x650], 8
call fcn.0044c440
lea edx, [esp + 0x278]
lea ecx, [ebp + 0xc]
push edx
mov byte [esp + 0x654], 7
mov dword [esp + 0x3cc], 0x4db6c8
call fcn.004795e0
mov ecx, eax
mov byte [esp + 0x650], 9
call fcn.00479710
fstp qword [esp + 0xc]
lea ecx, [esp + 0x280]
mov byte [esp + 0x650], 0xa
call fcn.0044c440
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
lea edx, [esp + 0x334]
push ecx
lea eax, [esp + 0x1e8]
push edx
lea ecx, [esp + 0x154]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x668], 7
call fcn.00454780
mov eax, dword [ebp + 0xcc]
mov ecx, dword [ebp + 0xc8]
push eax
push ecx
mov ecx, esi
call fcn.004579d0
fstp qword [esp + 0xc]
lea edx, [esp + 0x1e0]
push edx
push 0
lea eax, [esp + 0x280]
push 0
push eax
call fcn.0044c9f0
mov esi, eax
lea ecx, [esp + 0x158]
lea edx, [esp + 0x5c0]
push ecx
push 0x3ff00000
push 0
push edx
mov byte [esp + 0x670], 0xb
call fcn.0044c9f0
mov edi, eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x38]
mov byte [esp + 0x670], 0xc
push eax
push ecx
lea eax, [esp + 0x540]
push edx
push eax
call fcn.0044c9f0
push edi
lea ecx, [esp + 0x4b4]
push eax
push ecx
mov byte [esp + 0x68c], 0xd
call fcn.0044c5c0
push esi
lea edx, [esp + 0xf0]
push eax
push edx
mov byte [esp + 0x698], 0xe
call fcn.0044c5c0
add esp, 0x48
lea ecx, [esp + 0x480]
mov byte [esp + 0x650], 0x13
call fcn.0044c440
lea ecx, [esp + 0x518]
mov byte [esp + 0x650], 0x12
call fcn.0044c440
lea ecx, [esp + 0x5b0]
mov byte [esp + 0x650], 0x11
call fcn.0044c440
lea ecx, [esp + 0x278]
mov byte [esp + 0x650], 0x10
call fcn.0044c440
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0xb8]
push eax
mov ecx, esi
mov dword [esi], 0x4db768
call fcn.0044c390
lea ecx, [esp + 0xb0]
push ecx
mov ecx, esi
call fcn.0044c4a0
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xb0]
mov byte [esp + 0x650], 7
call fcn.0044c440
lea ecx, [esp + 0x330]
mov byte [esp + 0x650], 4
call fcn.0044c440
lea ecx, [esp + 0x1e0]
mov byte [esp + 0x650], 3
call fcn.0044c440
mov byte [esp + 0x650], 2
lea ecx, [esp + 0x148]
call fcn.0044c440
lea ecx, [esp + 0x18]
mov byte [esp + 0x650], 1
call fcn.0044c440
lea ecx, [ebp + 0x14]
mov dword [esp + 0x650], 0x14
call fcn.0044c440
mov ecx, dword [esp + 0x648]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc8
Function at 0x469140
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4d8284
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x68
mov dword [esp + 0x18], esi
call fcn.004d0f2c
lea edi, [esi + 0x60]
mov dword [esp + 0x1c], 0
mov ecx, edi
call sub.MFC42.DLL_CString::CString
lea ebx, [esi + 0x64]
mov byte [esp + 0x1c], 1
mov ecx, ebx
call sub.MFC42.DLL_CString::CString
lea ebp, [esi + 0x68]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x6c]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString
push 0x523574
mov ecx, edi
mov byte [esp + 0x20], 4
mov dword [esi], 0x4dd298
call fcn.004d0c62
push 0x523574
mov ecx, ebx
call fcn.004d0c62
push 0x523574
mov ecx, ebp
call fcn.004d0c62
push 0x523574
lea ecx, [esi + 0x6c]
call fcn.004d0c62
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x70], ecx
mov ecx, dword [esp + 0x30]
cmp eax, 2
mov dword [esi + 0x84], ecx
mov ecx, 0xd
mov dword [esi + 0x74], edx
mov dword [esi + 0x80], eax
mov dword [esi + 0x7c], ecx
jne 0x46921d
mov dword [esi + 0x7c], 0xc
jmp 0x469225
cmp eax, 1
jne 0x469225
mov dword [esi + 0x7c], ecx
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x46e3c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d8568
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
push esi
mov esi, ecx
push eax
push 0
lea ecx, [esp + 0xc]
call fcn.0046e0a0
mov ecx, esi
mov dword [esp + 0x2c], 0
call fcn.0046e2c0
test eax, eax
je 0x46e413
push eax
lea ecx, [esp + 8]
call fcn.0046e1e0
mov ecx, esi
call fcn.0046e2f0
test eax, eax
jne 0x46e3fe
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 0x14]
mov edx, dword [esp + 0x14]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], ecx
lea ecx, [esp + 4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], 0xffffffff
call fcn.0046e160
mov ecx, dword [esp + 0x24]
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 4

Function at 0x46e798
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x46e7bb
cmp dword [ebp - 8], 1
je 0x46e7cb
cmp dword [ebp - 8], 2
je 0x46e7db
jmp 0x46e7e9
push str.bswap0.dat
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
jmp 0x46e7e9
push str.bswap1.dat
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
jmp 0x46e7e9
push str.bswap2.dat
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x46e7f4
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 8
mov eax, dword [ebp + 0x10]
imul eax, dword [ebp + 0xc]
imul eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 2
je 0x46e820
jmp 0x46e835
cmp dword [ebp + 0x10], 0
jne 0x46e835
push 0
push 0x51dbf8
mov ecx, dword [ebp - 0x10]
call fcn.0046e721
mov edx, dword [0x531a00]
push edx
call dword [sym.imp.MSVCRT.dll_rewind]
add esp, 4
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0x531a00]
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 1
je 0x46e872
cmp dword [ebp - 0x18], 2
je 0x46e88f
jmp 0x46e8ab
mov eax, dword [0x531a00]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
jmp 0x46e8ab
mov ecx, dword [0x531a00]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x24]
sub eax, 1
cmp dword [ebp + 0x10], eax
jne 0x46e8f1
cmp dword [ebp + 0x14], 2
jne 0x46e8f1
cmp dword [0x531a00], 0
je 0x46e8e2
mov ecx, dword [0x531a00]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [0x531a00], 0
push 0
push 0x51dbfc
mov ecx, dword [ebp - 0x10]
call fcn.0046e721
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46e8fc
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 4
mov eax, dword [ebp + 0x10]
imul eax, dword [ebp + 0xc]
imul eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 2
je 0x46e928
jmp 0x46e93d
cmp dword [ebp + 0x10], 0
jne 0x46e93d
push 1
push 0x51dc00
mov ecx, dword [ebp - 0x10]
call fcn.0046e721
mov edx, dword [0x531a04]
push edx
call dword [sym.imp.MSVCRT.dll_rewind]
add esp, 4
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0x531a04]
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 1
je 0x46e97a
cmp dword [ebp - 0x18], 2
je 0x46e997
jmp 0x46e9b3
mov eax, dword [0x531a04]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
jmp 0x46e9b3
mov ecx, dword [0x531a04]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x24]
sub eax, 1
cmp dword [ebp + 0x10], eax
jne 0x46e9f9
cmp dword [ebp + 0x14], 2
jne 0x46e9f9
cmp dword [0x531a04], 0
je 0x46e9ea
mov ecx, dword [0x531a04]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [0x531a04], 0
push 1
push 0x51dc04
mov ecx, dword [ebp - 0x10]
call fcn.0046e721
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46ea04
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x4dd488
mov ecx, dword [ebp + 8]
shl ecx, 2
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp + 8]
shl ecx, 2
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x38], 0
mov edx, dword [ebp - 0x10]
cmp dword [edx + 8], 0
jne 0x46ea86
mov eax, dword [sym.imp.MSVCIRT.dll_class_ostream____cdecl_endl_class_ostream__]
push eax
push str.SkyMatrix_Constructor_failed
mov ecx, dword [sym.imp.MSVCIRT.dll_class_ostream_withassign_cout]
call dword [sym.imp.MSVCIRT.dll_public:_class_ostream____thiscall_ostream::operator___char_const__]
mov ecx, eax
call dword [sym.imp.MSVCIRT.dll_public:_class_ostream____thiscall_ostream::operator___class_ostream_____cdecl___class_ostream___]
push 0xffffffffffffffff
call dword [sym.imp.MSVCRT.dll_exit]
mov dword [ebp - 4], 0
jmp 0x46ea98
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 8]
jge 0x46eac2
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 4]
mov dword [ecx + edx*4], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov dword [ecx + edx*4], 0
jmp 0x46ea8f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4