Function at 0x1001c340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084473
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x100a5c90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x38], 0
mov ebx, edx
jne 0x1001c382
mov eax, 0xf0000002
jmp 0x1001c58c
sub esp, 0x1c
mov ecx, esp
xor eax, eax
mov dword [ebp - 0x98], esp
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
push ebx
or eax, 0xffffffff
call fcn.10003850
call fcn.1001c880
lea eax, [edi + 0x64]
mov ecx, 0x11111111
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
xor ecx, ecx
lea edx, [edi + 0x84]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov byte [edx + 8], cl
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x14], cl
lea ecx, [ebp - 0x24]
push ecx
push edx
mov edx, dword [edi + 0x38]
push eax
mov eax, dword [edi + 0x14]
push 0x20
push edx
call eax
mov dword [ebp - 0x98], eax
test eax, eax
jne 0x1001c586
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x9c], esp
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
lea eax, [ebp - 0x24]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001c430
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x24]
call fcn.10003960
lea esi, [ebp - 0x94]
call fcn.10020fd0
add esp, 0x1c
mov edi, eax
mov esi, ebx
mov dword [ebp - 4], 0
call fcn.100037e0
mov ebx, 8
cmp dword [ebp - 0x80], ebx
jb 0x1001c47a
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.10066b10
add esp, 4
mov esi, 7
xor edi, edi
xor edx, edx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov word [ebp - 0x40], dx
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 1
call fcn.1001fe80
xor eax, eax
mov dword [ebp - 0x48], esi
mov word [ebp - 0x5c], ax
push 0x10
mov eax, str.UniqueKeyTmp.txt
lea esi, [ebp - 0x5c]
mov dword [ebp - 0x4c], edi
call fcn.10003a30
lea ecx, [ebp - 0x40]
push ecx
mov edx, esi
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.1001fca0
add esp, 4
mov edi, eax
lea esi, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.100037e0
cmp dword [ebp - 0x64], ebx
jb 0x1001c4eb
mov edx, dword [ebp - 0x78]
push edx
call fcn.10066b10
add esp, 4
xor eax, eax
mov dword [ebp - 0x64], 7
mov dword [ebp - 0x68], 0
mov word [ebp - 0x78], ax
cmp dword [ebp - 0x48], ebx
jb 0x1001c510
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.10066b10
add esp, 4
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x2c], ebx
jae 0x1001c51b
lea eax, [ebp - 0x40]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x9c]
push edx
push 2
push 0x10092a5c
push esi
call edi
push 0
lea eax, [ebp - 0x9c]
push eax
push 0x11
lea ecx, [ebp - 0x24]
push ecx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], ebx
jb 0x1001c586
mov edx, dword [ebp - 0x40]
push edx
call fcn.10066b10
add esp, 4
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret