joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10168e10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10341368
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x10], ebx
cmp dword [ebx + 0x40], 0
je 0x10168fb1
cmp byte [ebx + 0x45], 0
je 0x10168fb1
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x10168e74
xor al, al
jmp 0x10168fb3
mov ecx, 0xf
mov dword [esp + 0x2c], 0
mov dword [esp + 0x2c], ecx
lea eax, [esp + 0x18]
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x28], 0
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x28], 0
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
jmp 0x10168ed0
cmp esi, 0x10
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
cmovae edx, edi
lea ecx, [esp + 0x1c]
cmovae ecx, edi
add eax, edx
push eax
push ecx
mov ecx, dword [ebx + 0x40]
lea eax, [ebx + 0x48]
push eax
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x10168f0c
dec eax
je 0x10168f10
sub eax, 2
je 0x10168f7a
xor bl, bl
jmp 0x10168f7c
mov byte [ebx + 0x45], 0
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edi, dword [esp + 0x18]
cmp esi, 0x10
mov ebx, dword [esp + 0x14]
cmovae eax, edi
sub ebx, eax
je 0x10168f54
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
cmp esi, 0x10
cmovae eax, edi
push dword [ecx + 0x50]
push ebx
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp ebx, eax
jne 0x10168f08
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x45], 0
je 0x10168f7a
test ebx, ebx
mov ebx, eax
jne 0x10168ed0
push 0
push 8
lea ecx, [esp + 0x20]
call fcn.10168b90
jmp 0x10168ec3
mov bl, 1
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x10168f98
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x2c], 0xf
mov al, bl
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
jmp 0x10168fb3
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1033d458
mov esp, ebp
pop ebp
ret
Function at 0x10169850
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10350f69
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
push 0
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::_Lockit::constructor_int_]
mov dword [esp + 0x30], 0
mov eax, dword [0x105e81c0]
mov ecx, dword [sym.imp.MSVCP120.dll_class_std::locale::id_std::codecvt_char__char__int_::id]
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCP120.dll_public:_unsigned_int___thiscall_std::locale::id::operator_unsigned_int_void_]
mov edi, eax
mov eax, dword [ebx]
cmp edi, dword [eax + 0xc]
jae 0x101698c1
mov ecx, dword [eax + 8]
mov esi, dword [ecx + edi*4]
test esi, esi
jne 0x10169932
jmp 0x101698c3
xor esi, esi
cmp byte [eax + 0x14], 0
je 0x101698da
call dword [sym.imp.MSVCP120.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Getgloballocale_void_]
cmp edi, dword [eax + 0xc]
jae 0x101698de
mov eax, dword [eax + 8]
mov esi, dword [eax + edi*4]
test esi, esi
jne 0x10169932
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x10169932
lea eax, [esp + 0x1c]
push ebx
push eax
call dword [sym.imp.MSVCP120.dll_public:_static_unsigned_int___cdecl_std::codecvt_char__char__int_::_Getcat_class_std::locale::facet_const____class_std::locale_const__]
add esp, 8
cmp eax, 0xffffffff
jne 0x10169918
push str.bad_cast
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCR120.dll_public:_void___thiscall_std::bad_cast::constructor_char_const__]
push 0x105b89dc
lea eax, [esp + 0x14]
push eax
call sub.MSVCR120.dll__CxxThrowException
mov esi, dword [esp + 0x1c]
mov ecx, esi
mov dword [0x105e81c0], esi
mov edx, dword [esi]
call dword [edx + 4]
push esi
call fcn.1033d207
add esp, 4
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1033d458
add esp, 0x24
ret
Function at 0x1016cfb0
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
push esi
push 0x11c
mov esi, ecx
push 0
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1016d041
mov eax, dword [esi + 4]
cmp eax, 6
ja 0x1016cfe7
jne 0x1016d03a
cmp dword [esi + 8], 2
jb 0x1016d03a
lea eax, [esp + 0x10]
mov dword [esp + 4], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
lea edx, [esp + 0x10]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.1016d4a0
add esp, 8
test al, al
je 0x1016d03a
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov eax, dword [esp + 8]
mov dword [esi + 8], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0xc], eax
mov al, 1
pop esi
add esp, 0x10
ret
xor al, al
pop esi
add esp, 0x10
ret

Function at 0x1016d4a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x28
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
push ebx
push ebp
mov ebp, dword [esp + 0x34]
mov ebx, edx
push esi
push edi
push str.kernel32.dll
mov edi, ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x1016d56a
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1016d56a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1016d56a
movdqu xmm0, xmmword [0x1055ec78]
push eax
movdqu xmmword [esp + 0x18], xmm0
movdqu xmm0, xmmword [0x1055ec88]
movdqu xmmword [esp + 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1016d56a
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1016d56a
cmp word [esi + 2], ax
jbe 0x1016d56a
movzx eax, word [esi + 0x32]
mov ecx, dword [esp + 0x10]
mov dword [edi], eax
movzx eax, word [esi + 0x30]
mov dword [ebx], eax
movzx eax, word [esi + 0x36]
mov dword [ebp], eax
movzx eax, word [esi + 0x34]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov al, 1
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1033d458
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1033d458
add esp, 0x28
ret

Function at 0x1016d580
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
xor eax, eax
mov esi, ecx
push 0x20a
push eax
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x1016d5f7
xor eax, eax
mov ecx, esi
mov word [esp + 0x20e], ax
lea eax, [esp + 4]
push eax
call fcn.100cd6c0
mov al, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.1033d458
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
xor al, al
pop esi
xor ecx, esp
call fcn.1033d458
add esp, 0x210
ret
Function at 0x1016d610
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1033ffb8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
and edi, 0xffffb1af
cmp dword [esi + 0x14], 8
jb 0x1016d655
mov eax, dword [esi]
jmp 0x1016d657
mov eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push eax
call ebx
test eax, eax
je 0x1016d66c
mov al, 1
jmp 0x1016d6f7
xor eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov dword [esp + 0x38], eax
lea edx, [esp + 0x14]
mov ecx, esi
call fcn.1016e8c0
test al, al
je 0x1016d6c0
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push edi
cmovae eax, dword [esp + 0x18]
push eax
call ebx
test eax, eax
je 0x1016d6c0
mov bl, 1
jmp 0x1016d6c2
xor bl, bl
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x1016d6de
push dword [esp + 0x14]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov word [esp + 0x14], ax
mov al, bl
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1033d458
add esp, 0x2c
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x1034a058
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x1016d75c
mov eax, dword [esi]
jmp 0x1016d75e
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1016d7f4
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.1016e8c0
test al, al
je 0x1016d7c1
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x1016d7dd
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1033d458
add esp, 0x28
ret
Function at 0x1016d820
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x103513c0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp dword [edi + 0x14], 8
jb 0x1016d85e
mov eax, dword [edi]
jmp 0x1016d860
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x1016d868
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1016d87b
mov al, 1
jmp 0x1016d9e9
xor eax, eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov byte [esp + 0xf], 0
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
mov dword [esp + 0x50], eax
lea edx, [esp + 0x2c]
mov ecx, esi
call fcn.1016e8c0
movzx ecx, byte [esp + 0xf]
test al, al
mov edx, 1
mov dword [esp + 0x24], 0
cmovne ecx, edx
mov dword [esp + 0x28], 0
xor eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov byte [esp + 0x50], dl
lea edx, [esp + 0x14]
mov ecx, edi
call fcn.1016e8c0
test al, al
jne 0x1016d909
cmp byte [esp + 0x10], al
je 0x1016d986
cmp dword [esp + 0x28], 8
lea ecx, [esp + 0x14]
lea eax, [esp + 0x2c]
cmovae ecx, dword [esp + 0x14]
cmp dword [esp + 0x40], 8
push ecx
cmovae eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1016d986
mov byte [esp + 0x50], 0
cmp dword [esp + 0x28], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x1016d94c
push dword [esp + 0x14]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x40], 8
jb 0x1016d97b
push dword [esp + 0x2c]
call esi
add esp, 4
xor eax, eax
mov word [esp + 0x2c], ax
mov al, 1
jmp 0x1016d9d9
mov byte [esp + 0x50], 0
cmp dword [esp + 0x28], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x1016d9a1
push dword [esp + 0x14]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x40], 8
jb 0x1016d9d0
push dword [esp + 0x2c]
call esi
add esp, 4
xor eax, eax
mov word [esp + 0x2c], ax
xor al, al
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 7
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1033d458
add esp, 0x48
ret
Function at 0x1016da10
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x10351408
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x1016da50
mov eax, dword [esi]
jmp 0x1016da52
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x1016da5a
mov ecx, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0xb
push eax
push ecx
call ebx
test eax, eax
je 0x1016da71
mov al, 1
jmp 0x1016dc52
xor eax, eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov byte [esp + 0x17], 0
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
mov dword [esp + 0x70], eax
lea edx, [esp + 0x4c]
mov ecx, edi
call fcn.1016e8c0
movzx ecx, byte [esp + 0x17]
test al, al
mov edx, 1
mov dword [esp + 0x44], 0
cmovne ecx, edx
mov dword [esp + 0x48], 0
xor eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
mov byte [esp + 0x70], dl
lea edx, [esp + 0x34]
mov ecx, esi
call fcn.1016e8c0
mov ebp, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test al, al
jne 0x1016db06
cmp byte [esp + 0x18], 0
je 0x1016db33
cmp dword [esp + 0x48], 8
lea ecx, [esp + 0x34]
push 0xb
cmovae ecx, dword [esp + 0x38]
lea eax, [esp + 0x50]
cmp dword [esp + 0x64], 8
push ecx
cmovae eax, dword [esp + 0x54]
push eax
call ebx
test eax, eax
je 0x1016db33
mov bl, 1
jmp 0x1016dbf5
mov ecx, esi
call fcn.1016d720
cmp eax, 0xffffffff
je 0x1016dbf3
xor eax, eax
mov dword [esp + 0x2c], 0
push 0xffffffffffffffff
push eax
mov dword [esp + 0x38], 0
lea ecx, [esp + 0x24]
push esi
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
call fcn.100cd9d0
mov byte [esp + 0x70], 2
lea ecx, [esp + 0x1c]
call fcn.1016e590
test al, al
je 0x1016dbc7
lea edx, [esp + 0x1c]
mov ecx, esi
call fcn.1016d820
test al, al
je 0x1016dbc7
mov edx, esi
mov ecx, edi
call fcn.1016d820
lea ecx, [esp + 0x1c]
test al, al
je 0x1016dbc0
call fcn.1016de80
mov byte [esp + 0x70], 1
lea ecx, [esp + 0x1c]
call fcn.100cd690
mov bl, 1
jmp 0x1016dbf5
mov edx, esi
call fcn.1016d820
mov byte [esp + 0x70], 1
cmp dword [esp + 0x30], 8
jb 0x1016dbdc
push dword [esp + 0x1c]
call ebp
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
xor bl, bl
mov byte [esp + 0x70], 0
cmp dword [esp + 0x48], 8
jb 0x1016dc0a
push dword [esp + 0x34]
call ebp
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
mov dword [esp + 0x70], 0xffffffff
cmp dword [esp + 0x60], 8
jb 0x1016dc39
push dword [esp + 0x4c]
call ebp
add esp, 4
xor eax, eax
mov dword [esp + 0x60], 7
mov word [esp + 0x4c], ax
mov al, bl
mov dword [esp + 0x5c], 0
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.1033d458
add esp, 0x60
ret
Function at 0x1016dc80
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x1034a058
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x1016dcbc
mov eax, dword [esi]
jmp 0x1016dcbe
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1016dcd0
mov al, 1
jmp 0x1016dd5e
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.1016e8c0
test al, al
je 0x1016dd27
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1016dd27
mov bl, 1
jmp 0x1016dd29
xor bl, bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x1016dd45
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1033d458
add esp, 0x28
ret

Function at 0x1016dd80
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x1034a058
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x1016ddbc
mov eax, dword [esi]
jmp 0x1016ddbe
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1016ddd2
mov al, 1
jmp 0x1016de62
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.1016e8c0
test al, al
je 0x1016de2b
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
push 0
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1016de2b
mov bl, 1
jmp 0x1016de2d
xor bl, bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x1016de49
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1033d458
add esp, 0x28
ret
Function at 0x1016de80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10351450
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x1016dec3
mov eax, dword [esi]
jmp 0x1016dec5
mov eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x1016ded9
mov al, 1
jmp 0x1016e059
cmp dword [esi + 0x14], 8
jb 0x1016dee3
mov eax, dword [esi]
jmp 0x1016dee5
mov eax, esi
push eax
lea ecx, [esp + 0x34]
call fcn.100cd5c0
mov dword [esp + 0x58], 0
lea ecx, [esp + 0x30]
call fcn.1016d720
mov dword [esp + 0x14], eax
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x44], 8
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x1016df26
push dword [esp + 0x30]
call ebx
mov eax, dword [esp + 0x18]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], cx
cmp eax, 0xffffffff
jne 0x1016df49
xor al, al
jmp 0x1016e059
cmp dword [esi + 0x14], 8
jb 0x1016df53
mov eax, dword [esi]
jmp 0x1016df55
mov eax, esi
push eax
lea ecx, [esp + 0x34]
call fcn.100cd5c0
mov dword [esp + 0x58], 1
xor edx, edx
lea ecx, [esp + 0x30]
call fcn.1016d610
test al, al
sete al
mov byte [esp + 0x13], al
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x44], 8
jb 0x1016df97
push dword [esp + 0x30]
call ebx
mov al, byte [esp + 0x17]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], cx
test al, al
jne 0x1016df42
cmp dword [esi + 0x14], 8
jb 0x1016dfbc
mov eax, dword [esi]
jmp 0x1016dfbe
mov eax, esi
push eax
call edi
test eax, eax
jne 0x1016ded2
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], eax
mov word [esp + 0x30], ax
mov dword [esp + 0x58], 2
lea edx, [esp + 0x30]
mov ecx, esi
call fcn.1016e8c0
test al, al
je 0x1016e012
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
cmovae eax, dword [esp + 0x30]
push eax
call edi
test eax, eax
je 0x1016e012
mov bl, 1
jmp 0x1016e046
cmp dword [esi + 0x14], 8
jb 0x1016e01a
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x1c]
call fcn.100cd5c0
mov byte [esp + 0x58], 3
lea ecx, [esp + 0x18]
mov edx, dword [esp + 0x14]
call fcn.1016d610
mov byte [esp + 0x58], 2
lea ecx, [esp + 0x18]
call fcn.100cd690
xor bl, bl
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.100cd690
mov al, bl
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1033d458
mov esp, ebp
pop ebp
ret
Function at 0x1016e080
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1035148b
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [0x105be7d0]
xor eax, esp
mov dword [esp + 0x624], eax
push esi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x630]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x105e280c]
mov dword [esp + 8], 0x105e280c
test eax, eax
je 0x1016e0d2
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x638], 0
cmp dword [0x105da810], 0
je 0x1016e120
cmp esi, 0x105da800
je 0x1016e0fe
push 0xffffffffffffffff
push 0
push 0x105da800
mov ecx, esi
call fcn.100cd9d0
mov dword [esp + 0x638], 0xffffffff
mov eax, dword [0x105e280c]
test eax, eax
je 0x1016e119
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x1016e1fb
xor eax, eax
push 0x20a
push eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x16]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1016e1de
xor eax, eax
push 0x410
push eax
mov word [esp + 0x21e], ax
mov word [esp + 0x220], ax
lea eax, [esp + 0x222]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x218]
push 0x208
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x1016e1cd
test eax, eax
je 0x1016e1cd
add eax, eax
cmp eax, 0x412
jae 0x1016e1c8
xor ecx, ecx
mov word [esp + eax + 0x218], cx
lea eax, [esp + 0x218]
push eax
mov ecx, esi
call fcn.100cd6c0
jmp 0x1016e0fe
call fcn.1033d7c4
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.100cd6c0
jmp 0x1016e0fe
mov dword [esp + 0x638], 0xffffffff
mov eax, dword [0x105e280c]
test eax, eax
je 0x1016e1f9
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x630]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.1033d458
add esp, 0x634
ret