joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7c018586
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x7c018594
xor ecx, ecx
jmp 0x7c0185b2
cmp eax, 0x1a
jbe 0x7c01859e
push 0x57
pop eax
pop ebp
ret
add al, 0x40
and byte [ebp + 0xb], 0
lea ecx, [ebp + 8]
mov byte [ebp + 8], al
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov eax, dword [ebp + 0xc]
push eax
lea edx, [eax + 4]
push edx
lea edx, [eax + 0xc]
push edx
add eax, 8
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x7c0185d4
pop ebp
jmp dword [sym.imp.kernel32.dll_GetLastError]
xor eax, eax
pop ebp
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x7c018be2
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.7c0102b7
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x7c018c05
test byte [esp + 8], 2
je 0x7c018c05
call sym.MSVCR70.dll__errno
mov dword [eax], 0xd
call sym.MSVCR70.dll___doserrno
mov dword [eax], 5
jmp 0x7c018bde
xor eax, eax
ret

Function at 0x7c018cfd
Capabilities:
Set current directory

Disassembly:
push 0x10
push 0x7c03fc28
call fcn.7c00101f
mov ebx, dword [ebp + 8]
cmp ebx, 1
jl 0x7c018d6c
cmp ebx, 0x1f
jg 0x7c018d6c
push 7
call fcn.7c013c12
pop ecx
and dword [ebp - 4], 0
add ebx, 0x40
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], 0x3a
and byte [ebp - 0x1a], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x7c018d44
and dword [ebp - 0x20], 0
jmp 0x7c018d55
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.7c0102b7
pop ecx
or dword [ebp - 0x20], 0xffffffff
or dword [ebp - 4], 0xffffffff
call fcn.7c018d63
mov eax, dword [ebp - 0x20]
jmp 0x7c018d85
call sym.MSVCR70.dll__errno
mov dword [eax], 0xd
call sym.MSVCR70.dll___doserrno
mov dword [eax], 0xf
or eax, 0xffffffff
call fcn.7c00105a
ret

Function at 0x7c018d8b
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x7c018db8
test byte [esp + 8], 0x80
je 0x7c018da6
and eax, 0xfffffffe
jmp 0x7c018da9
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
jne 0x7c018dc9
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.7c0102b7
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x7c0284d7
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x7c04f564]
push ebx
push ebp
mov ebp, dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x7c028520
call ebp
mov esi, eax
cmp esi, ebx
je 0x7c028506
mov dword [0x7c04f564], 1
jmp 0x7c028525
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x7c02851b
push 2
pop eax
mov dword [0x7c04f564], eax
jmp 0x7c028520
mov eax, dword [0x7c04f564]
cmp eax, 1
jne 0x7c02857d
cmp esi, ebx
jne 0x7c028538
call ebp
mov esi, eax
cmp esi, ebx
jne 0x7c028538
xor eax, eax
jmp 0x7c028624
cmp word [esi], bx
mov eax, esi
je 0x7c02854d
inc eax
inc eax
cmp word [eax], bx
jne 0x7c02853f
inc eax
inc eax
cmp word [eax], bx
jne 0x7c02853f
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call sym.MSVCR70.dll_malloc
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x7c028570
xor edi, edi
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x7c028624
push ebp
push esi
push edi
call fcn.7c013c12
add esp, 0xc
jmp 0x7c028562
cmp eax, 2
je 0x7c028586
cmp eax, ebx
jne 0x7c028531
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x7c028531
cmp byte [ebp], bl
mov esi, ebp
je 0x7c0285bc
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x7c028531
push esi
add edi, eax
call sym.MSVCR70.dll_strlen
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x7c028599
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call sym.MSVCR70.dll_malloc
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x7c028635
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x7c028616
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x7c02862b
push edi
call sym.MSVCR70.dll_strlen
push esi
lea edi, [edi + eax + 1]
call sym.MSVCR70.dll_wcslen
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x7c0285dc
push ebp
mov word [esi], bx
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call sym.MSVCR70.dll_free
pop ecx
push ebp
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
jmp 0x7c028531
Function at 0x7c03070e
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x7c03072f
lea eax, [ebp - 4]
push eax
call fcn.7c013c12
mov eax, dword [ebp - 4]
pop ecx
mov dword [ebp - 8], eax
lea edi, [ebp - 8]
lea eax, [edi + 4]
push eax
call fcn.7c013c12
test eax, eax
pop ecx
jne 0x7c030750
call sym.MSVCR70.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x7c030851
mov cx, word [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x30], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x2e], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x2a], cx
mov cx, word [eax + 8]
mov word [ebp - 0x28], cx
mov cx, word [eax + 4]
mov word [ebp - 0x26], cx
mov ax, word [eax]
and word [ebp - 0x22], 0
push esi
mov esi, dword [sym.imp.kernel32.dll_SystemTimeToFileTime]
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call esi
test eax, eax
je 0x7c030842
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.kernel32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x7c030842
push edi
call fcn.7c013c12
test eax, eax
pop ecx
je 0x7c030842
mov cx, word [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x30], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x2e], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x2a], cx
mov cx, word [eax + 8]
mov word [ebp - 0x28], cx
mov cx, word [eax + 4]
mov word [ebp - 0x26], cx
mov ax, word [eax]
and word [ebp - 0x22], 0
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call esi
test eax, eax
je 0x7c030842
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.kernel32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x7c030842
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 8]
call sym.MSVCR70.dll__get_osfhandle
pop ecx
push eax
call dword [sym.imp.kernel32.dll_SetFileTime]
test eax, eax
je 0x7c030842
xor eax, eax
jmp 0x7c030850
call sym.MSVCR70.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
pop esi
pop edi
leave
ret
Function at 0x7c03088b
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x7c0308b2
lea eax, [ebp - 0x30]
push eax
call fcn.7c013c12
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
pop ecx
mov dword [ebp - 0x34], eax
lea edi, [ebp - 0x38]
lea eax, [edi + 8]
push eax
call fcn.7c013c12
test eax, eax
pop ecx
jne 0x7c0308d3
call sym.MSVCR70.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x7c0309d4
mov cx, word [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x28], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x26], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x22], cx
mov cx, word [eax + 8]
mov word [ebp - 0x20], cx
mov cx, word [eax + 4]
mov word [ebp - 0x1e], cx
mov ax, word [eax]
and word [ebp - 0x1a], 0
push esi
mov esi, dword [sym.imp.kernel32.dll_SystemTimeToFileTime]
mov word [ebp - 0x1c], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x7c0309c5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x7c0309c5
push edi
call fcn.7c013c12
test eax, eax
pop ecx
je 0x7c0309c5
mov cx, word [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x28], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x26], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x22], cx
mov cx, word [eax + 8]
mov word [ebp - 0x20], cx
mov cx, word [eax + 4]
mov word [ebp - 0x1e], cx
mov ax, word [eax]
and word [ebp - 0x1a], 0
mov word [ebp - 0x1c], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x7c0309c5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x7c0309c5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 8]
call sym.MSVCR70.dll__get_osfhandle
pop ecx
push eax
call dword [sym.imp.kernel32.dll_SetFileTime]
test eax, eax
je 0x7c0309c5
xor eax, eax
jmp 0x7c0309d3
call sym.MSVCR70.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
pop esi
pop edi
leave
ret
Function at 0x100806b1
Capabilities:
Resume thread

Disassembly:
cmp dword [ecx + 0x10], 0
jne 0x100806c3
mov eax, dword [ecx + 8]
push dword [eax + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
ret

Function at 0x1008082b
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1011a647
call fcn.1011345f
mov esi, ecx
mov dword [ebp - 0x14], esi
call fcn.100757b4
xor ebx, ebx
push 0x10
mov dword [ebp - 4], ebx
mov dword [esi], vtable.ScObjects::Thread.0
mov dword [esi + 0x10], ebx
mov byte [esi + 0x14], bl
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
pop ecx
cmp eax, ebx
je 0x1008086f
mov dword [eax], vtable.ScObjects::ThreadData.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
jmp 0x10080871
xor eax, eax
mov dword [esi + 8], eax
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push 0x10080612
push ebx
push ebx
call sub.MSVCR100.dll__beginthreadex
add esp, 0x18
cmp eax, 0xffffffff
jne 0x100808a1
mov eax, dword [esi + 8]
mov dword [esi + 0x10], 0x20
mov dword [esi + 0xc], ebx
mov dword [eax + 4], ebx
jmp 0x100808ad
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi + 8]
mov dword [ecx + 4], eax
mov eax, esi
call fcn.10113537
ret

Function at 0x100879cc
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebx
xor ebx, ebx
cmp dword [0x1079d928], ebx
jne 0x10087a18
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
push ebx
push 1
push ebx
push ebx
mov edi, 0x1079d928
push edi
call esi
test eax, eax
jne 0x10087a16
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x10087a16
push 8
push 1
push ebx
push ebx
push edi
call esi
test eax, eax
jne 0x10087a16
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [0x1079d928], ebx
pop edi
pop esi
mov eax, dword [0x1079d928]
pop ebx
ret

Function at 0x10087b24
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0x2c
mov eax, 0x1011b72d
call fcn.101134c8
xor esi, esi
mov ecx, edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], esi
call fcn.10080ca6
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], 1
call fcn.100879cc
cmp eax, esi
jne 0x10087b65
push 0xffffffffffffffff
push 0x10121c10
mov ecx, edi
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
jmp 0x10087bab
lea ecx, [ebp - 0x20]
push ecx
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0xffffffffffffffff
mov ecx, edi
push 0x10121c10
test eax, eax
je 0x10087b5e
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
movzx eax, byte [ebp + esi - 0x20]
push eax
lea eax, [ebp - 0x30]
push 0x1012e9d4
push eax
call sub.MSVCR100.dll_sprintf
lea eax, [ebp - 0x30]
push eax
push edi
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
add esp, 0x14
inc esi
cmp esi, 0x10
jb 0x10087b84
mov eax, edi
call fcn.1011354b
ret
Function at 0x10094398
Capabilities:
Create mailslot

Disassembly:
push 0x14
mov eax, 0x1011da50
call fcn.1011345f
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [0x1015d0d4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100925c5
xor ebx, ebx
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.WinInterAppStream.0
call fcn.10080ca6
lea eax, [esi + 0x40]
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 1
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
pop ecx
pop ecx
push eax
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
push 0xc
lea edi, [esi + 0x56]
push ebx
push edi
call sub.MSVCR100.dll_memset
add esp, 0x14
mov eax, edi
xor ecx, ecx
call fcn.10094387
test al, al
je 0x1009440d
cmp dword [esi + 0x5a], ebx
je 0x1009440d
mov ecx, edi
push ecx
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_CreateMailslotA]
lea ecx, [ebp - 0x20]
mov dword [esi + 0x52], eax
mov byte [ebp - 4], bl
call fcn.10080ce2
mov eax, esi
call fcn.10113537
ret 8

Function at 0x10094486
Capabilities:
Write file on windows

Disassembly:
push 0x1c
mov eax, 0x1011da7b
call fcn.1011345f
mov esi, ecx
push esi
lea ecx, [ebp - 0x18]
call fcn.100752a2
lea eax, [esi + 0x30]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.1008103f
mov eax, dword [ebp + 8]
push dword [eax + 8]
lea ecx, [ebp - 0x28]
push dword [eax + 4]
mov byte [ebp - 4], 1
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
mov eax, dword [esi + 0x5a]
push ebx
push 0x80
add esi, 0x56
neg eax
push 3
sbb eax, eax
and eax, esi
push eax
push 1
push 0x40000000
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x10], ebx
cmp edi, 0xffffffff
je 0x10094524
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push ebx
lea edx, [ebp - 0x10]
push edx
push eax
push ecx
push edi
call dword [sym.imp.kernel32.dll_WriteFile]
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp + 8], ebx
je 0x10094524
mov esi, dword [esi + 8]
mov byte [ebp + 0xb], 1
cmp dword [ebp - 0x10], esi
je 0x10094527
mov byte [ebp + 0xb], bl
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.10080ce2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.100752d5
mov al, byte [ebp + 0xb]
call fcn.10113537
ret 8
Function at 0x100a7706
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x100a7715
pop dword [ebp - 0x18]
mov eax, 0x100a7715
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x2f6e2a28
sub dword [ebp - 0x28], 0xe11be4dd
mov dword [ebp - 0x24], 0x8d48686f
add dword [ebp - 0x24], 0xa4eae3d6
mov dword [ebp - 0x20], 0xa2519f2b
add dword [ebp - 0x20], 0xa9faa503
mov dword [ebp - 0x1c], 0x801f58ba
add dword [ebp - 0x1c], 0x7fe0a746
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x17ef7f4c
add dword [ebp - 0x28], 0x5c82ea0a
mov dword [ebp - 0x24], 0x85c04972
sub dword [ebp - 0x24], 0x4453e7fd
mov dword [ebp - 0x20], 0x5812ba1b
sub dword [ebp - 0x20], 0xf4a34daf
mov dword [ebp - 0x1c], 0x23fc697e
add dword [ebp - 0x1c], 0xdc039682
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x66b7b
push 0
call eax
mov ecx, 0x168e4755
add ecx, 0xe971faf8
mov ebx, eax
mov esi, 0x107b7400
add esi, dword [ebp - 0x18]
mov edi, 0x2a506f56
add edi, 0x33c57193
sub dword [ebp - 0x10], edi
mov edx, dword [esi]
xor dword [ebp - 0xc], 0xdd228224
add edx, edi
xor dword [ebp - 0xc], 0xb23514b5
mov dword [ebx], edx
sub dword [ebp - 0x14], 0xb2551054
add ebx, 4
add esi, 0x71119561
sub esi, 0x7111955d
loop 0x100a7822
add eax, 0x9f18b697
add eax, 0x60e84570
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x100f867b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
jne 0x100f86fe
push ebx
mov ebx, dword [ebp + 0x10]
push edi
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [esi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x100f86c8
mov byte [esi + 0x2d], 0xff
test edi, edi
je 0x100f86c8
cmp edi, ebx
jge 0x100f86c8
mov eax, dword [ebp + 0xc]
mov ecx, ebx
sub ecx, edi
push ecx
add eax, edi
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [esi + 0x18], 0
je 0x100f86f8
add dword [esi + 0x1c], ebx
cmp dword [esi + 0x1c], 0xffff
jle 0x100f86f8
xor eax, eax
mov word [esi + 0x1e], ax
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
push 1
push dword [esi + 0x20]
push eax
push ecx
call dword [edx + 0xc]
mov edi, dword [ebp + 0x10]
mov eax, edi
pop edi
pop ebx
jmp 0x100f8710
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x100f89a6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x101631e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
cmp byte [0x1079d9e8], al
je 0x100f89dd
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x100f8a41
push 0x103
push eax
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x107]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
lea eax, [ebp - 0x20c]
push eax
push edi
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
push ebx
lea eax, [ebp - 0x108]
push eax
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10113450
leave
ret 0x10

Function at 0x100f8a52
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101631e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1079d9e8], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x100f8a7e
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x100f8aaf
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x100f8aad
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x100f8aaf
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10113450
leave
ret 8
Function at 0x100f8b4a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101631e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1079d9e8], 0
mov eax, dword [ebp + 8]
je 0x100f8b72
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x100f8b8c
lea ecx, [ebp - 0x108]
push ecx
push eax
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10113450
leave
ret 4
Function at 0x1010402d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x101631e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
xor edi, edi
cmp dword [eax + 0x254], edi
je 0x10104089
cmp dword [eax + 0x264], edi
je 0x1010416f
cmp byte [0x1079d9e8], 0
push eax
push dword [eax + 0x250]
je 0x10104076
call dword [sym.imp.kernel32.dll_FindNextFileW]
jmp 0x1010407c
call dword [sym.imp.kernel32.dll_FindNextFileA]
mov ecx, dword [esi]
mov dword [ecx + 0x264], eax
jmp 0x1010416f
mov eax, dword [eax + 0x25c]
cmp eax, edi
je 0x10104209
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy]
mov eax, dword [esi]
pop ecx
pop ecx
cmp dword [eax + 0x260], edi
je 0x101040d5
lea eax, [ebp - 0x234]
push eax
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
mov eax, dword [esi]
push dword [eax + 0x260]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.MSVCR100.dll_wcscat]
add esp, 0xc
mov eax, dword [esi]
mov cl, byte [eax + 0x268]
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
and ecx, 0xffffff90
sub ecx, 0xffffff80
mov dword [eax], ecx
cmp byte [0x1079d9e8], 0
je 0x10104109
push dword [esi]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
jmp 0x1010412b
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x234]
push eax
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
push dword [esi]
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov ecx, dword [esi]
mov dword [ecx + 0x250], eax
mov eax, dword [esi]
xor ecx, ecx
cmp dword [eax + 0x250], 0xffffffff
setne cl
mov dword [eax + 0x264], ecx
mov eax, dword [esi]
cmp dword [eax + 0x264], edi
jne 0x10104157
mov dword [eax + 0x250], edi
mov ecx, dword [esi]
xor eax, eax
inc eax
mov dword [ecx + 0x254], eax
mov ecx, dword [esi]
cmp dword [ecx + 0x264], edi
jne 0x1010416f
mov dword [esi + 4], eax
mov eax, dword [esi]
cmp dword [eax + 0x264], edi
je 0x10104191
cmp byte [0x1079d9e8], 0
jne 0x10104191
push dword [eax + 0x258]
add eax, 0x2c
push eax
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [eax + 0x26c], ecx
mov edx, dword [esi]
mov ebx, dword [edx + 0x26c]
mov ecx, ebx
shr ecx, 4
and ecx, 1
je 0x101041c6
push esi
xor ecx, ecx
call sym.rt3d.dll_public:_void___stdcall_MATRIX3D::Invert_struct_MATRIX3D_const__
cmp word [eax], 0x2e
je 0x101041cf
test byte [edx + 0x268], 3
jne 0x101041d2
jmp 0x101041cf
test byte [edx + 0x268], 1
je 0x101041d2
xor ecx, ecx
inc ecx
cmp dword [edx + 0x264], edi
je 0x101041eb
cmp ecx, edi
jne 0x10104046
test bl, 2
jne 0x10104046
mov eax, edx
xor ecx, ecx
cmp dword [eax + 0x264], edi
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10113450
leave
ret 4
xor al, al
jmp 0x101041f8

Function at 0x10113450
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101631e0]
jne 0x1011345a
repz ret
jmp fcn.10113f88