Function at 0x10001811
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push 0x70
mov eax, 0x10003d5e
call fcn.1000395e
mov dword [ebp - 0x2c], ecx
xor ebx, ebx
xor eax, eax
mov dword [ebp - 4], ebx
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
lea ecx, [ebp + 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
call fcn.100011b0
mov byte [ebp - 4], 1
mov eax, ebx
mov dword [ebp - 0x5c], 5
mov dword [ebp - 0x58], 0xc6c6ce84
mov byte [ebp - 0x54], 0xaa
xor byte [ebp + eax - 0x58], 0xaa
inc eax
cmp eax, dword [ebp - 0x5c]
jb 0x10001851
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x13]
push 0xa
pop esi
test eax, eax
jns 0x1000187f
neg eax
xor edx, edx
dec ecx
div esi
add dl, 0x30
mov byte [ecx], dl
test eax, eax
jne 0x1000186b
dec ecx
mov byte [ecx], 0x2d
jmp 0x1000188d
xor edx, edx
dec ecx
div esi
add dl, 0x30
mov byte [ecx], dl
test eax, eax
jne 0x1000187f
xor eax, eax
lea edi, [ebp - 0x74]
stosd dword es:[edi], eax
push 0xf
pop esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x13]
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
cmp ecx, eax
jne 0x100018b1
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], esi
mov byte [ebp - 0x74], bl
jmp 0x100018c0
lea eax, [ebp - 0x13]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x74]
call fcn.1000299a
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x50]
call fcn.100020ae
pop ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x60]
cmp edx, 0x10
jb 0x100018e9
mov ecx, dword [ebp - 0x74]
inc edx
call fcn.10002419
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmovae eax, dword [ebp - 0x50]
push eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], esi
mov byte [ebp - 0x74], bl
call edi
push dword [ebp - 0x2c]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov esi, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push 0x10002140
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
test esi, esi
jne 0x10001964
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
push 0x100041e4
cmovae eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10001964
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
push esi
push eax
push 1
push dword [ebp - 0x38]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
push eax
call edi
mov ecx, eax
test ecx, ecx
je 0x100019ce
mov dword [ebp - 0x5c], 8
mov eax, ebx
mov dword [ebp - 0x58], 0xc9c5d8da
mov dword [ebp - 0x54], 0xaad9d9cf
xor byte [ebp + eax - 0x58], 0xaa
inc eax
cmp eax, dword [ebp - 0x5c]
jb 0x1000198f
lea eax, [ebp - 0x58]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.1000216c
mov eax, dword [eax]
mov dword [eax + 0xc], esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.1000216c
mov eax, dword [eax]
cmp dword [eax + 0xc], ebx
setne bl
lea ecx, [ebp - 0x50]
call fcn.10001cdd
lea ecx, [ebp - 0x38]
call fcn.10001cbe
lea ecx, [ebp + 8]
call fcn.10001cbe
mov al, bl
call fcn.1000391c
ret