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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10250d78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push esi
mov esi, dword [ebp + 0xc]
push edi
shl esi, 5
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x34], edi
call sub.VCRUNTIME140.dll_memset
mov esi, dword [ebp + 0xc]
xor ecx, ecx
add esp, 0x10
mov dword [ebp - 0x24], ecx
test esi, esi
je 0x100e7eee
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
mov esi, dword [eax + ecx*4]
mov dword [ebp - 0x38], esi
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x64], 0x28
call dword [sym.imp.USER32.dll_GetDC]
push 0
mov edi, eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0
push esi
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
mov esi, dword [ebp - 0x5c]
imul esi, dword [ebp - 0x60]
shl esi, 2
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push esi
push 0
push eax
mov dword [ebp - 0x20], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x64], 0x28
mov eax, 0x20
mov dword [ebp - 0x54], 0
mov word [ebp - 0x56], ax
lea ecx, [ebp - 0x64]
mov eax, dword [ebp - 0x5c]
push 0
push ecx
push dword [ebp - 0x20]
cdq
xor eax, edx
sub eax, edx
push eax
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x5c], eax
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
movzx ecx, word [ebp - 0x56]
mov edx, dword [ebp - 0x5c]
mov esi, ecx
mov eax, dword [ebp - 0x60]
shr esi, 3
imul esi, edx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x88], edx
imul esi, eax
add eax, 0x1f
shr eax, 3
and eax, 0x1ffffffc
imul eax, edx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x2c], eax
add eax, 0x28
add esi, eax
push esi
mov dword [ebp - 0x7c], esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x80], edi
call sub.VCRUNTIME140.dll_memset
movups xmm0, xmmword [ebp - 0x64]
movups xmmword [edi], xmm0
movups xmm0, xmmword [ebp - 0x54]
mov esi, dword [ebp - 0x38]
lea eax, [edi + 0x28]
push esi
push dword [ebp - 0x20]
movups xmmword [edi + 0x10], xmm0
push eax
movq xmm0, qword [ebp - 0x44]
movq qword [edi + 0x20], xmm0
call sub.VCRUNTIME140.dll_memcpy
push dword [ebp - 0x2c]
lea eax, [esi + 0x28]
mov dword [ebp - 0x78], edi
add eax, edi
push 0
push eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 8]
push dword [ebp - 0x20]
add eax, eax
mov dword [edi + 8], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0x1c]
add esp, 0x2c
movups xmm0, xmmword [ebp - 0x8c]
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp + 0xc]
inc ecx
movups xmmword [eax], xmm0
mov dword [ebp - 0x24], ecx
movups xmm0, xmmword [ebp - 0x7c]
movups xmmword [eax + 0x10], xmm0
add eax, 0x20
mov dword [ebp - 0x1c], eax
cmp ecx, esi
jb 0x100e7d71
mov dword [ebp - 0xa4], 0x10000
mov eax, 1
mov word [ebp - 0xa0], si
mov dword [ebp - 0x14], vtable.WM::GMFile.0
mov dword [ebp - 0x10], 0xffffffff
push 0x80
push 2
push 3
push 0x40000000
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMFile::Create_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int__unsigned_int__unsigned_int_
test al, al
je 0x100e8232
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 0xffffffff
je 0x100e7f8e
push 0
lea ecx, [ebp - 0x18]
push ecx
push 2
lea ecx, [ebp - 0xa4]
push ecx
push eax
call edi
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
je 0x100e7f8e
push 0
lea ecx, [ebp - 0x18]
push ecx
push 2
lea ecx, [ebp - 0xa2]
push ecx
push eax
call edi
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
je 0x100e7f8e
push 0
lea ecx, [ebp - 0x18]
push ecx
push 2
lea ecx, [ebp - 0xa0]
push ecx
push eax
call edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
push 1
push 0
push 0
call dword [eax + 0x18]
shl esi, 4
push esi
mov dword [ebp - 0x28], 0x10
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push esi
push 0
push eax
mov dword [ebp - 0x24], eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x28]
add esp, 0x10
mov esi, dword [ebp + 0xc]
mov ecx, eax
mov edx, dword [ebp - 0x10]
imul ecx, esi
mov dword [ebp - 0x1c], 0
test ecx, ecx
je 0x100e800b
xor ecx, ecx
nop dword [eax]
cmp edx, 0xffffffff
je 0x100e7ffd
push 0
lea eax, [ebp - 0x18]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push edx
call edi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
imul eax, esi
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, eax
mov eax, dword [ebp - 0x28]
jb 0x100e7fe0
test esi, esi
je 0x100e80cb
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x24]
add eax, 0x14
mov dword [ebp - 0x20], eax
add esi, 2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
push 1
push 0
push 0
call dword [eax + 0x18]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
mov dword [esi + 0xa], eax
mov al, byte [ecx - 0x14]
mov byte [esi - 2], al
mov al, byte [ecx - 0x10]
mov byte [esi - 1], al
mov eax, dword [ecx]
mov al, byte [eax + 0x20]
mov byte [esi], al
mov ax, word [ecx - 0xc]
mov word [esi + 4], ax
mov eax, 1
mov word [esi + 2], ax
mov eax, dword [ecx]
mov dword [eax + 0x14], 0
mov edx, dword [ecx - 8]
test edx, edx
je 0x100e8093
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
je 0x100e8093
push 0
lea edi, [ebp - 0x18]
push edi
push dword [ecx - 4]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edx
push eax
call edi
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
push 1
push 0
push 0
call dword [eax + 0x18]
mov eax, dword [ebp - 0x30]
sub eax, dword [esi + 0xa]
mov dword [esi + 6], eax
add esi, 0x10
mov eax, dword [ebp - 0x20]
add eax, 0x20
sub dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], eax
jne 0x100e8028
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp + 0xc]
cmp edx, 0xffffffff
je 0x100e80fb
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
push 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push ecx
push edx
mov dword [ebp - 0x30], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
jne 0x100e80f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x10]
test esi, esi
je 0x100e81fb
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
add esi, 2
mov dword [ebp - 0x1c], eax
nop
lea eax, [esi - 2]
test eax, eax
je 0x100e812e
cmp edx, 0xffffffff
je 0x100e812e
push 0
lea eax, [ebp - 0x18]
push eax
push 1
lea eax, [esi - 2]
push eax
push edx
call edi
mov edx, dword [ebp - 0x10]
lea eax, [esi - 1]
test eax, eax
je 0x100e814c
cmp edx, 0xffffffff
je 0x100e814c
push 0
lea eax, [ebp - 0x18]
push eax
push 1
lea eax, [esi - 1]
push eax
push edx
call edi
mov edx, dword [ebp - 0x10]
test esi, esi
je 0x100e8164
cmp edx, 0xffffffff
je 0x100e8164
push 0
lea eax, [ebp - 0x18]
push eax
push 1
push esi
push edx
call edi
mov edx, dword [ebp - 0x10]
lea eax, [esi + 1]
test eax, eax
je 0x100e817f
cmp edx, 0xffffffff
je 0x100e817f
push 0
lea ecx, [ebp - 0x18]
push ecx
push 1
push eax
push edx
call edi
mov edx, dword [ebp - 0x10]
lea eax, [esi + 2]
test eax, eax
je 0x100e819a
cmp edx, 0xffffffff
je 0x100e819a
push 0
lea ecx, [ebp - 0x18]
push ecx
push 2
push eax
push edx
call edi
mov edx, dword [ebp - 0x10]
lea eax, [esi + 4]
test eax, eax
je 0x100e81b5
cmp edx, 0xffffffff
je 0x100e81b5
push 0
lea ecx, [ebp - 0x18]
push ecx
push 2
push eax
push edx
call edi
mov edx, dword [ebp - 0x10]
lea eax, [esi + 6]
test eax, eax
je 0x100e81d0
cmp edx, 0xffffffff
je 0x100e81d0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 4
push eax
push edx
call edi
mov edx, dword [ebp - 0x10]
lea eax, [esi + 0xa]
test eax, eax
je 0x100e81eb
cmp edx, 0xffffffff
je 0x100e81eb
push 0
lea ecx, [ebp - 0x18]
push ecx
push 4
push eax
push edx
call edi
mov edx, dword [ebp - 0x10]
add esi, 0x10
sub dword [ebp - 0x1c], 1
jne 0x100e8110
mov esi, dword [ebp + 0xc]
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test esi, esi
je 0x100e8224
mov eax, dword [ebp - 0x34]
lea edi, [eax + 0xc]
push dword [edi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea edi, [edi + 0x20]
sub esi, 1
jne 0x100e8211
push dword [ebp - 0x34]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov byte [ebp + 0xf], al
mov dword [ebp - 0x14], vtable.WM::GMFile.0
pop edi
pop esi
cmp ecx, 0xffffffff
je 0x100e8250
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0xf]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret