Function at 0x101b4a76
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x50]
push esi
push edi
push eax
xor esi, esi
mov dword [ebp - 0x54], edx
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x50], esi
call fcn.1016fe72
test eax, eax
jns 0x101b4ac1
mov ecx, eax
call fcn.101bec08
mov ebx, eax
jmp 0x101b4e93
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x28]
push eax
push 0x1a
pop ecx
mov dword [ebp - 0x28], esi
call fcn.101bc83b
test eax, eax
js 0x101b4ce3
push 8
pop eax
mov dword [ebp - 0x4c], eax
lea esi, [ebp - 0x4c]
mov dword [ebp - 0x48], eax
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x44], 0x10087c98
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x28]
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
lea eax, [ebp - 0x3c]
push eax
push 0
mov ecx, edi
call dword [0x101e07c0]
mov ecx, esi
call edi
test eax, eax
js 0x101b4ce3
mov eax, dword [esi]
push 0
mov edi, dword [eax + 0x18]
mov ecx, edi
call dword [0x101e07c0]
mov ecx, esi
call edi
test eax, eax
js 0x101b4ce3
push 7
pop eax
mov dword [ebp - 0x4c], eax
lea esi, [ebp - 0x4c]
mov dword [ebp - 0x48], eax
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x44], 0x100080bc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x28]
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
lea eax, [ebp - 0x3c]
push eax
push 0
mov ecx, edi
call dword [0x101e07c0]
mov ecx, esi
call edi
test eax, eax
js 0x101b4ce6
push 8
pop eax
push dword [ebp - 0x54]
mov dword [ebp - 0x4c], eax
lea esi, [ebp - 0x4c]
mov dword [ebp - 0x48], eax
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x44], 0x100339d8
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x28]
mov eax, dword [esi]
mov edi, dword [eax + 0x2c]
lea eax, [ebp - 0x3c]
push eax
push 0
mov ecx, edi
call dword [0x101e07c0]
mov ecx, esi
call edi
test eax, eax
js 0x101b4ce3
mov eax, dword [esi]
push 0
mov edi, dword [eax + 0x18]
mov ecx, edi
call dword [0x101e07c0]
mov ecx, esi
call edi
test eax, eax
js 0x101b4ce3
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebx]
imul eax, dword [eax + 4], 0xc
add eax, ebx
mov dword [ebp - 0x2c], eax
cmp ebx, eax
je 0x101b4c75
push 4
pop eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0x10087ccc
lea esi, [ebp - 0x4c]
lea edi, [ebp - 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x28]
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
lea eax, [ebp - 0x74]
push eax
push 0
mov ecx, edi
call dword [0x101e07c0]
mov ecx, esi
call edi
test eax, eax
js 0x101b4ce6
push 0xc
pop eax
mov dword [ebp - 0x3c], eax
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x38], eax
lea edi, [ebp - 0x60]
mov dword [ebp - 0x34], 0x10087cbc
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x28]
mov eax, dword [esi]
mov edi, dword [eax + 0x2c]
lea eax, [ebp - 0x60]
push eax
push 0
mov ecx, edi
call dword [0x101e07c0]
mov ecx, esi
call edi
test eax, eax
js 0x101b4ce3
mov eax, dword [esi]
push 1
mov edi, dword [eax + 0x18]
mov ecx, edi
call dword [0x101e07c0]
mov ecx, esi
call edi
test eax, eax
js 0x101b4ce3
add ebx, 0xc
cmp ebx, dword [ebp - 0x2c]
jne 0x101b4beb
push 7
pop eax
mov dword [ebp - 0x3c], eax
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x38], eax
lea edi, [ebp - 0x60]
mov dword [ebp - 0x34], 0x100080bc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x28]
mov eax, dword [esi]
mov edi, dword [eax + 0x20]
lea eax, [ebp - 0x60]
push eax
push 0
mov ecx, edi
call dword [0x101e07c0]
mov ecx, esi
call edi
test eax, eax
js 0x101b4ce6
push 8
pop eax
mov dword [ebp - 0x3c], eax
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x38], eax
lea edi, [ebp - 0x60]
mov dword [ebp - 0x34], 0x10087c98
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x28]
mov eax, dword [esi]
mov edi, dword [eax + 0x20]
lea eax, [ebp - 0x60]
push eax
push 0
mov ecx, edi
call dword [0x101e07c0]
mov ecx, esi
call edi
test eax, eax
jns 0x101b4cf4
mov esi, dword [ebp - 0x28]
mov ecx, eax
call fcn.101bec08
mov ebx, eax
jmp 0x101b4e7f
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0xc]
mov eax, dword [edi]
mov ebx, dword [eax + 8]
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, ebx
call dword [0x101e07c0]
mov ecx, edi
call ebx
test eax, eax
jns 0x101b4d28
mov ecx, eax
call fcn.101bec08
mov ebx, eax
jmp 0x101b4e5d
push ecx
mov eax, esp
lea ecx, [ebp - 0x24]
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [eax], ecx
mov ecx, dword [ebp - 0x68]
call fcn.101b4a0b
test eax, eax
jns 0x101b4d55
mov ecx, eax
call fcn.101bec08
mov ebx, eax
jmp 0x101b4e55
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x1c]
mov dword [ebp - 0x54], ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x54]
call fcn.100e899b
mov edi, dword [ebp - 0x54]
mov ecx, edi
call fcn.10094ff1
test al, al
je 0x101b4dd3
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jne 0x101b4d98
mov ebx, 0x36fd
jmp 0x101b4da5
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x101b4da5
int3
mov dword [ebp - 0x64], 0x10087c64
mov dword [ebp - 0x60], 0x10087ca4
mov dword [ebp - 0x5c], 0x3d
mov dword [ebp - 0x58], 0x10087cd4
test ebx, ebx
jle 0x101b4dce
movzx ebx, bx
or ebx, 0x80070000
lea ecx, [ebp - 0x64]
jmp 0x101b4e34
push ebx
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x101b4ec5
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jne 0x101b4dfb
mov ebx, 0x36fd
jmp 0x101b4e08
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x101b4e08
int3
mov dword [ebp - 0x78], 0x10087c64
mov dword [ebp - 0x74], 0x10087ca4
mov dword [ebp - 0x70], 0x3f
mov dword [ebp - 0x6c], 0x10087cf0
test ebx, ebx
jle 0x101b4e31
movzx ebx, bx
or ebx, 0x80070000
lea ecx, [ebp - 0x78]
push ebx
call fcn.1016dbec
mov ecx, edi
call fcn.10094ff1
test al, al
jne 0x101b4e55
push edi
call dword [sym.imp.ntdll.dll_NtClose]
test eax, eax
jns 0x101b4e55
push 7
pop ecx
int 0x29
lea ecx, [ebp - 0x24]
call fcn.10117e30
cmp dword [ebp - 0x10], 0
je 0x101b4e7c
lea ecx, [ebp - 0x18]
call fcn.1009502f
xor eax, eax
lea edi, [ebp - 0x60]
stosd dword es:[edi], eax
lea esi, [ebp - 0x60]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x101b4e93
mov eax, dword [esi]
mov edi, dword [eax]
mov ecx, edi
call dword [0x101e07c0]
mov ecx, esi
call edi
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x101b4eaa
mov eax, dword [esi]
mov edi, dword [eax]
mov ecx, edi
call dword [0x101e07c0]
mov ecx, esi
call edi
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x101b4ec1
mov eax, dword [esi]
mov edi, dword [eax]
mov ecx, edi
call dword [0x101e07c0]
mov ecx, esi
call edi
mov eax, ebx
jmp 0x101b4f3a
push edi
call dword [sym.imp.ntdll.dll_NtClose]
test eax, eax
jns 0x101b4ed5
push 7
pop ecx
int 0x29
lea ecx, [ebp - 0x24]
call fcn.10117e30
cmp dword [ebp - 0x10], ebx
je 0x101b4efe
lea ecx, [ebp - 0x18]
call fcn.1009502f
xor eax, eax
lea edi, [ebp - 0x60]
stosd dword es:[edi], eax
lea esi, [ebp - 0x60]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x28]
mov eax, dword [esi]
mov edi, dword [eax]
mov ecx, edi
call dword [0x101e07c0]
mov ecx, esi
call edi
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x101b4f25
mov eax, dword [esi]
mov edi, dword [eax]
mov ecx, edi
call dword [0x101e07c0]
mov ecx, esi
call edi
mov esi, dword [ebp - 0xc]
mov eax, dword [esi]
mov edi, dword [eax]
mov ecx, edi
call dword [0x101e07c0]
mov ecx, esi
call edi
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b88c0
leave
ret 4