Function at 0x10006980
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10094d19
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x100c29e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
push eax
push 0x104
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 1
call fcn.10007b70
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov al, 0x47
mov dword [ebp - 0x30], 0x210047
mov dword [ebp - 0x2c], 0x23002c
xor ecx, ecx
mov dword [ebp - 0x28], 0x34002d
mov dword [ebp - 0x24], 0x230026
mov dword [ebp - 0x20], 0x340026
mov dword [ebp - 0x1c], 0x690023
mov dword [ebp - 0x18], 0x24002e
mov dword [ebp - 0x14], 0x28
nop dword [eax + eax]
cbw
xor word [ebp + ecx*2 - 0x2e], ax
inc ecx
cmp ecx, 0xe
jae 0x10006a52
mov al, byte [ebp - 0x30]
jmp 0x10006a40
xor eax, eax
mov dword [ebp - 0x4c], 7
lea ecx, [ebp - 0x2e]
mov dword [ebp - 0x60], eax
mov word [ebp - 0x12], ax
lea edx, [ecx + 2]
mov dword [ebp - 0x50], eax
mov word [ebp - 0x60], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006a70
sub ecx, edx
lea eax, [ebp - 0x2e]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.10007f80
cmp dword [ebp - 0x34], 8
lea edx, [ebp - 0x48]
mov byte [ebp - 4], 2
cmovae edx, dword [ebp - 0x48]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006aa0
sub ecx, edi
sar ecx, 1
push ecx
push edx
push 0
lea ecx, [ebp - 0x60]
call fcn.100092d0
mov dword [esi], 0
xor ecx, ecx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x64], 3
mov byte [ebp - 4], 1
cmp ecx, 8
jb 0x10006b37
mov edx, dword [ebp - 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10006b2d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006c79
push ecx
push edx
call fcn.10065a16
add esp, 8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10006b41
mov eax, dword [esi]
push 1
push 0x40
push 0x22
push eax
lea ecx, [ebp - 0x130]
call fcn.100027e0
mov eax, dword [ebp - 0x130]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_fstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x134], eax
sub esp, 0x18
mov byte [ebp - 4], 3
mov eax, esp
lea ecx, [ebp - 0x120]
xorps xmm0, xmm0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
movq qword [eax + 0x10], xmm0
call fcn.1000a160
push 0
push 0x423e
push section..data
lea ecx, [ebp - 0x120]
call fcn.1000b060
lea ecx, [ebp - 0x120]
call fcn.10008be0
lea ecx, [ebp - 0x118]
call fcn.10008110
test eax, eax
jne 0x10006c1b
mov eax, dword [ebp - 0x130]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, 4
cmp dword [ebp + ecx - 0xf8], edx
cmovne eax, edx
or eax, dword [ebp + ecx - 0x124]
and eax, 0x15
or eax, 2
mov dword [ebp + ecx - 0x124], eax
mov ecx, dword [ebp + ecx - 0x120]
and ecx, eax
jne 0x10006c7e
lea ecx, [ebp - 0x130]
call fcn.100045a0
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x10006c5c
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10006c52
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006cc0
push ecx
push edx
call fcn.10065a16
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10065d4c
mov esp, ebp
pop ebp
ret
call fcn.10071200
test cl, 4
je 0x10006c8a
mov esi, str.ios_base::badbit_set
jmp 0x10006c9a
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x70]
push 1
push eax
call fcn.100094f0
add esp, 8
lea ecx, [ebp - 0x5c]
push eax
push esi
call fcn.10003a10
push 0x100b5ee4
lea eax, [ebp - 0x5c]
push eax
call fcn.1006712e
call fcn.10071200
int3