joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6a7d0100
Capabilities:
Enumerate pe sections

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
mov eax, dword [ecx]
mov ebx, dword [ecx + 0x10]
mov esi, dword [ecx + 0x14]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x34], ebx
mov edi, dword [ecx + 0x20]
mov dword [ebp - 0x30], eax
mov ebx, dword [ecx + 0x18]
mov dword [ebp - 0x38], esi
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0x1c]
test byte [0x6a7d40e8], 8
jne 0x6a7d01c0
lea eax, [ebp - 0x1c]
mov dword [esp], 0xb
mov dword [esp + 4], eax
call sym._get_typeinfo
mov edx, eax
test eax, eax
js 0x6a7d01a7
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x38]
mov ecx, dword [edx]
mov dword [esp + 0x10], eax
movzx eax, word [ebp - 0x34]
mov dword [esp], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x18], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x14], ebx
mov dword [esp + 4], eax
call dword [ecx + 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
sub esp, 0x20
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x2c]
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x24
movzx ecx, word [ebp - 0x34]
mov dword [ebp - 0x3c], ecx
test eax, eax
je 0x6a7d02c0
mov ecx, eax
mov dword [ebp - 0x40], edx
shr ecx, 0x10
je 0x6a7d02a0
movzx ecx, byte [eax + 0xf]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [eax + 0xe]
mov dword [esp + 0x28], ecx
movzx ecx, byte [eax + 0xd]
mov dword [esp + 0x24], ecx
movzx ecx, byte [eax + 0xc]
mov dword [esp + 0x20], ecx
movzx ecx, byte [eax + 0xb]
mov dword [esp + 0x1c], ecx
movzx ecx, byte [eax + 0xa]
mov dword [esp + 0x18], ecx
movzx ecx, byte [eax + 9]
mov dword [esp + 0x14], ecx
movzx ecx, byte [eax + 8]
mov dword [esp + 0x10], ecx
movzx ecx, word [eax + 6]
mov dword [esp + 0xc], ecx
movzx ecx, word [eax + 4]
mov dword [esp + 8], ecx
mov eax, dword [eax]
mov dword [esp], 0x6a7d6b04
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_4
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6a7d726c
mov dword [esp + 8], str.static_ports_Invoke
mov dword [esp + 4], 0x6a7d40e8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x6a7d0143
movzx eax, ax
mov dword [esp], 0x6a7d6af3
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_4
mov edx, dword [ebp - 0x40]
jmp 0x6a7d0242
mov eax, 0x6a7d6aec
jmp 0x6a7d0242
Function at 0x6a7d1390
Capabilities:
Enumerate pe sections

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
mov eax, dword [ecx]
mov ebx, dword [ecx + 0x10]
mov esi, dword [ecx + 0x14]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x34], ebx
mov edi, dword [ecx + 0x20]
mov dword [ebp - 0x30], eax
mov ebx, dword [ecx + 0x18]
mov dword [ebp - 0x38], esi
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0x1c]
test byte [0x6a7d40e8], 8
jne 0x6a7d1450
lea eax, [ebp - 0x1c]
mov dword [esp], 0xa
mov dword [esp + 4], eax
call sym._get_typeinfo
mov edx, eax
test eax, eax
js 0x6a7d1437
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x38]
mov ecx, dword [edx]
mov dword [esp + 0x10], eax
movzx eax, word [ebp - 0x34]
mov dword [esp], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x18], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x14], ebx
mov dword [esp + 4], eax
call dword [ecx + 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
sub esp, 0x20
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x2c]
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x24
movzx ecx, word [ebp - 0x34]
mov dword [ebp - 0x3c], ecx
test eax, eax
je 0x6a7d1550
mov ecx, eax
mov dword [ebp - 0x40], edx
shr ecx, 0x10
je 0x6a7d1530
movzx ecx, byte [eax + 0xf]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [eax + 0xe]
mov dword [esp + 0x28], ecx
movzx ecx, byte [eax + 0xd]
mov dword [esp + 0x24], ecx
movzx ecx, byte [eax + 0xc]
mov dword [esp + 0x20], ecx
movzx ecx, byte [eax + 0xb]
mov dword [esp + 0x1c], ecx
movzx ecx, byte [eax + 0xa]
mov dword [esp + 0x18], ecx
movzx ecx, byte [eax + 9]
mov dword [esp + 0x14], ecx
movzx ecx, byte [eax + 8]
mov dword [esp + 0x10], ecx
movzx ecx, word [eax + 6]
mov dword [esp + 0xc], ecx
movzx ecx, word [eax + 4]
mov dword [esp + 8], ecx
mov eax, dword [eax]
mov dword [esp], 0x6a7d6b04
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_4
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6a7d726c
mov dword [esp + 8], str.upnpnat_Invoke
mov dword [esp + 4], 0x6a7d40e8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x6a7d13d3
movzx eax, ax
mov dword [esp], 0x6a7d6af3
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_4
mov edx, dword [ebp - 0x40]
jmp 0x6a7d14d2
mov eax, 0x6a7d6aec
jmp 0x6a7d14d2
Function at 0x10089086
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1012abca
call fcn.10123694
mov esi, ecx
mov dword [ebp - 0x14], esi
call fcn.1007dd03
xor ebx, ebx
mov dword [esi], vtable.ScObjects::Thread.0
push 0x10
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], ebx
mov byte [esi + 0x14], bl
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
pop ecx
test eax, eax
je 0x100890ca
mov dword [eax], vtable.ScObjects::ThreadData.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
jmp 0x100890cc
mov eax, ebx
mov dword [esi + 8], eax
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push 0x10089256
push ebx
push ebx
call dword [sym.imp.MSVCR120.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
cmp ecx, 0xffffffff
jne 0x100890ff
mov eax, dword [esi + 8]
mov dword [esi + 0x10], 0x20
mov dword [esi + 0xc], ebx
mov dword [eax + 4], ebx
jmp 0x1008910b
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
mov dword [eax + 4], ecx
mov eax, esi
call fcn.10123662
ret

Function at 0x1008933b
Capabilities:
Resume thread

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

Function at 0x1008f795
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0x2c
mov eax, 0x1012b954
call fcn.101236c7
mov esi, dword [ebp + 8]
xor edi, edi
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], edi
call fcn.100894ce
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], 1
call fcn.1008f895
test eax, eax
jne 0x1008f7d9
push 0xffffffffffffffff
push 0x10130ee8
mov ecx, esi
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
jmp 0x1008f820
lea ecx, [ebp - 0x20]
push ecx
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov ecx, esi
push 0xffffffffffffffff
push 0x10130ee8
test eax, eax
je 0x1008f7d2
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
movzx eax, byte [ebp + edi - 0x20]
push eax
lea eax, [ebp - 0x30]
push 0x1013d2f0
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
lea eax, [ebp - 0x30]
push eax
push esi
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
add esp, 0x14
inc edi
cmp edi, 0x10
jb 0x1008f7f8
mov eax, esi
call fcn.10123676
ret

Function at 0x1008f895
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push esi
mov esi, dword [0x107ac5a0]
test esi, esi
jne 0x1008f8ea
push esi
push 1
push esi
push esi
push 0x107ac5a0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1008f8e4
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1008f8e4
push 8
push 1
push esi
push esi
push 0x107ac5a0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1008f8e4
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [0x107ac5a0], esi
jmp 0x1008f8ea
mov esi, dword [0x107ac5a0]
mov eax, esi
pop esi
ret
Function at 0x1008fa93
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x54
mov eax, 0x1012ba03
call fcn.101236c7
and dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
and dword [ebp - 0x48], 0
mov dword [ebp - 0x50], ebx
call fcn.1008f895
and dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x44], eax
call fcn.100894ce
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.100894ce
push edi
mov eax, 0x1013d378
mov dword [ebp - 0x48], 1
push eax
push esi
push eax
push edi
push ebx
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
pop ecx
pop ecx
push eax
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
pop ecx
pop ecx
push eax
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
pop ecx
pop ecx
push eax
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
pop ecx
pop ecx
push eax
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
mov eax, dword [ebp - 0x44]
pop ecx
pop ecx
test eax, eax
jne 0x1008fb28
push 0xffffffffffffffff
push 0x10130ee8
mov ecx, ebx
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
jmp 0x1008fbe9
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1008fb15
push 0
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1008fb15
and dword [ebp - 0x40], 0
lea eax, [ebp - 0x4c]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 4
pop ecx
push 0
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x4c], ecx
push eax
push ecx
push dword [ebp - 0x3c]
call esi
test eax, eax
je 0x1008fb15
push dword [ebp - 0x40]
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
mov edi, eax
pop ecx
test edi, edi
je 0x1008fb15
push 0
lea eax, [ebp - 0x40]
push eax
push edi
push 2
push dword [ebp - 0x3c]
call esi
mov ecx, ebx
push 0xffffffffffffffff
push 0x10130ee8
test eax, eax
jne 0x1008fbaa
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
jmp 0x1008fbe2
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
xor esi, esi
cmp dword [ebp - 0x40], esi
jbe 0x1008fbe2
cmp esi, 0x28
jae 0x1008fbe2
movzx eax, byte [esi + edi]
push eax
lea eax, [ebp - 0x38]
push 0x1013d2f0
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
lea eax, [ebp - 0x38]
push eax
push ebx
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
add esp, 0x14
inc esi
cmp esi, dword [ebp - 0x40]
jb 0x1008fbb6
push edi
call sub.MSVCR120.dll_free
pop ecx
cmp dword [ebp - 0x3c], 0
je 0x1008fbf8
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.1008950a
mov eax, ebx
call fcn.10123676
ret
Function at 0x1009d200
Capabilities:
Create mailslot

Disassembly:
push 0x14
mov eax, 0x1012df8f
call fcn.10123694
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [0x10169ee4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100990c2
xor ebx, ebx
mov dword [esi], vtable.WinInterAppStream.0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.100894ce
lea eax, [esi + 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
pop ecx
pop ecx
push eax
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
push 0xc
lea edi, [esi + 0x56]
push ebx
push edi
call sub.MSVCR120.dll_memset
push edi
mov ecx, ebx
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
add esp, 0x18
test al, al
je 0x1009d273
cmp dword [esi + 0x5a], ebx
cmovne 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.1008950a
mov eax, esi
call fcn.10123662
ret 8

Function at 0x1009d40f
Capabilities:
Write file on windows

Disassembly:
push 0x1c
mov eax, 0x1012e000
call fcn.10123694
mov esi, ecx
push esi
lea ecx, [ebp - 0x18]
call fcn.1007dcd0
and dword [ebp - 4], 0
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x28]
call fcn.100893a0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
push dword [eax + 8]
push dword [eax + 4]
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
push 0
xor ecx, ecx
lea eax, [esi + 0x56]
cmp dword [esi + 0x5a], ecx
push 0x80
push 3
cmovne ecx, eax
push ecx
push ebx
push 0x40000000
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_CreateFileA]
and dword [ebp - 0x10], 0
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x1009d4aa
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push 0
push ecx
push dword [edi + 8]
push dword [edi + 4]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
je 0x1009d4aa
mov eax, dword [edi + 8]
cmp dword [ebp - 0x10], eax
je 0x1009d4ac
xor bl, bl
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.1008950a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1007de05
mov al, bl
call fcn.10123662
ret 8
Function at 0x100b69aa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x100b69b9
pop dword [ebp - 0x4c]
mov eax, 0x5ae915a4
sub eax, 0x4addabeb
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x896ed212
add dword [ebp - 0x5c], 0xc4e37339
mov dword [ebp - 0x58], 0x656d8b0c
add dword [ebp - 0x58], 0xccc5c139
mov dword [ebp - 0x54], 0xbba5783
add dword [ebp - 0x54], 0x4091ecab
mov dword [ebp - 0x50], 0x5b7637e8
add dword [ebp - 0x50], 0xa489c818
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xeb4f61ec
sub eax, 0xdb3c5f04
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xbb49ffeb
sub dword [ebp - 0x5c], 0x46d79695
mov dword [ebp - 0x58], 0xa80f1631
add dword [ebp - 0x58], 0x995d4b44
mov dword [ebp - 0x54], 0xf1475fd4
add dword [ebp - 0x54], 0x72280c98
mov dword [ebp - 0x50], 0xd3d96a7
sub dword [ebp - 0x50], 0xd3d96a7
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x565c3f51
add eax, 0xb9b6c37b
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x62d02
push 0
call eax
mov ecx, 0xeba07697
sub ecx, 0xeba035ea
mov edx, eax
mov esi, 0x107bfa00
add esi, dword [ebp - 0x4c]
mov ebx, 0xd8b6024b
sub ebx, 0x268e030b
mov dword [ebp - 0x1c], 0x3be5ab20
mov edi, dword [esi]
sub dword [ebp - 0x14], 0x8647cafa
add edi, ebx
mov dword [ebp - 0x44], 0xe4b9a5c8
mov dword [edx], edi
xor dword [ebp - 0x1c], ebx
add edx, 4
add esi, 4
loop 0x100b6ad5
add eax, 0x2003f556
sub eax, 0x2002ffcf
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x4a82040c
add ecx, 0xc57dfbf4
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x10107d92
Capabilities:
Read file on windows

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

Function at 0x10108001
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1016f640]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107ac69c], 0
mov eax, dword [ebp + 8]
je 0x10108029
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x10108043
lea ecx, [ebp - 0x108]
push ecx
push eax
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_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.1012364c
mov esp, ebp
pop ebp
ret 4

Function at 0x101081ea
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1016f640]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107ac69c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x10108220
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x10108286
push 0x103
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
lea eax, [ebp - 0x20c]
push eax
push edi
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_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
lea eax, [ebp - 0x108]
push ebx
push eax
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1012364c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10108299
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1016f640]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107ac69c], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x101082c5
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x101082f6
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x101082f4
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x101082f6
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1012364c
mov esp, ebp
pop ebp
ret 8
Function at 0x10114cb5
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x1016f640]
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 0x10114d11
cmp dword [eax + 0x264], edi
je 0x10114df3
cmp byte [0x107ac69c], 0
push eax
push dword [eax + 0x250]
je 0x10114cfe
call dword [sym.imp.kernel32.dll_FindNextFileW]
jmp 0x10114d04
call dword [sym.imp.kernel32.dll_FindNextFileA]
mov ecx, dword [esi]
mov dword [ecx + 0x264], eax
jmp 0x10114df3
mov eax, dword [eax + 0x25c]
test eax, eax
je 0x10114e84
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy]
mov eax, dword [esi]
pop ecx
pop ecx
cmp dword [eax + 0x260], edi
je 0x10114d5d
lea eax, [ebp - 0x234]
push eax
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
mov eax, dword [esi]
push dword [eax + 0x260]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.MSVCR120.dll_wcscat]
add esp, 0xc
mov ecx, dword [esi]
mov eax, 0x80
push 0x10
pop edx
test byte [ecx + 0x268], 1
cmovne eax, edx
mov dword [ecx], eax
cmp byte [0x107ac69c], 0
je 0x10114d8d
push dword [esi]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
jmp 0x10114daf
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x234]
push eax
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_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
xor eax, eax
mov ecx, dword [esi]
cmp dword [ecx + 0x250], 0xffffffff
setne al
mov dword [ecx + 0x264], eax
mov eax, dword [esi]
cmp dword [eax + 0x264], edi
jne 0x10114ddb
mov dword [eax + 0x250], edi
mov eax, dword [esi]
xor ecx, ecx
inc ecx
mov dword [eax + 0x254], ecx
mov eax, dword [esi]
cmp dword [eax + 0x264], edi
jne 0x10114df3
mov dword [esi + 4], ecx
mov eax, dword [esi]
cmp dword [eax + 0x264], edi
je 0x10114e15
cmp byte [0x107ac69c], 0
jne 0x10114e15
push dword [eax + 0x258]
add eax, 0x2c
push eax
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [eax + 0x26c], ecx
xor ecx, ecx
mov ebx, dword [esi]
inc ecx
mov edi, dword [ebx + 0x26c]
shr edi, 4
and edi, ecx
je 0x10114e4d
push esi
xor edi, edi
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
cmp word [eax], 0x2e
je 0x10114e48
test byte [ebx + 0x268], 3
jne 0x10114e57
xor edi, edi
inc edi
jmp 0x10114e57
test byte [ebx + 0x268], 1
cmovne edi, ecx
cmp dword [ebx + 0x264], 0
je 0x10114e75
test edi, edi
jne 0x10114cce
test byte [ebx + 0x26c], 2
jne 0x10114cce
mov ecx, ebx
xor eax, eax
cmp dword [ecx + 0x264], eax
setne al
jmp 0x10114e86
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1012364c
mov esp, ebp
pop ebp
ret 4