Function at 0x1000b980
Capabilities:
Write file on windows

Disassembly:
and dword [ecx], eax
adc byte [ebp - 0x2276b], cl
call dword [edx + 0x6a]
add byte [ebx - 0xaff3bb], cl
adc eax, sym.imp.KERNEL32.dll_GetFileAttributesExA
test eax, eax
jne 0x1000b952
jmp 0x1000b975
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push 0x224
lea edx, [ebp - 0x228]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebp
mov ebp, esp
sub esp, 0x460
push ebx
push esi
push edi
mov dword [ebp - 0x460], ecx
push eax
xor eax, eax
je 0x1000b99e
jae 0x1000b936
mov eax, dword [0xa0858b58]
sti
invalid
pop eax
mov eax, dword [ebp - 0x460]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov byte [ebp - 0x110], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x458], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x457]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x458]
push ecx
push str._s.
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x354], 0
mov ecx, 0x4f
xor eax, eax
lea edi, [ebp - 0x350]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x354]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x1000ba52
mov edx, dword [ebp - 0x460]
mov dword [edx + 4], 0x1b58
jmp 0x1000bb61
mov ecx, dword [ebp - 0x460]
call fcn.1000da30
mov dword [ebp - 0x45c], eax
cmp dword [ebp - 0x45c], 0xffffffff
jne 0x1000ba88
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x460]
mov dword [ecx + 4], 0x1b69
jmp 0x1000bb61
mov dword [ebp - 4], 0
mov byte [ebp - 0x214], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x213]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [ebp - 4], 0
jne 0x1000bb4a
push 0x10014610
lea edx, [ebp - 0x328]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1000bb1a
push 0x1001460c
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1000bb1a
lea ecx, [ebp - 0x328]
push ecx
lea edx, [ebp - 0x458]
push edx
push str._s_s
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x214]
push ecx
mov edx, dword [ebp - 0x45c]
push edx
mov ecx, dword [ebp - 0x460]
call fcn.1000b8f0
lea eax, [ebp - 0x354]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000bb45
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1000bb43
mov dword [ebp - 4], 1
jmp 0x1000bb45
jmp 0x1000bb4a
jmp 0x1000baa8
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret