Function at 0x10087110
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022f6e0
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x1029912c]
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
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x44]
push eax
call fcn.10087570
test al, al
je 0x100873f5
lea eax, [ebp - 0x158]
push eax
call fcn.10087430
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x10087190
nop
mov al, cl
lea edx, [ecx + esi]
add al, 0x49
inc ecx
xor byte [edx], al
mov edx, dword [edi]
cmp ecx, edx
jb 0x10087180
mov ecx, esi
mov byte [edx + esi], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100871b0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.100025c0
mov byte [ebp - 4], 1
mov eax, 0x2a
mov dword [ebp - 0xa0], eax
xor ecx, ecx
mov dword [ebp - 0x9c], 0x290015
mov dword [ebp - 0x98], 0x2b0038
lea ebx, [eax + 1]
mov dword [ebp - 0x94], 0x120022
mov dword [ebp - 0x90], 0x36002c
mov dword [ebp - 0x8c], 0xe0036
mov dword [ebp - 0x88], 0x350034
mov dword [ebp - 0x84], 0x330038
mov dword [ebp - 0x80], 0x2c0024
mov dword [ebp - 0x7c], 0x2e0038
mov dword [ebp - 0x78], 0x3003e
mov dword [ebp - 0x74], 0x300034
mov dword [ebp - 0x70], 0x5002b
mov dword [ebp - 0x6c], 0x100006
mov dword [ebp - 0x68], 0x100002
mov dword [ebp - 0x64], 0x9000c
mov dword [ebp - 0x60], 0x370009
mov dword [ebp - 0x5c], 0x19000a
mov dword [ebp - 0x58], 0x3000c
mov dword [ebp - 0x54], 0x1d000f
mov dword [ebp - 0x50], 0x130041
mov dword [ebp - 0x4c], 0x150017
mov dword [ebp - 0x48], 0x73
nop word [eax + eax]
lea eax, [ecx + 0x49]
xor word [ebp + ecx*2 - 0x9c], ax
inc ecx
mov eax, dword [ebp - 0xa0]
cmp ecx, eax
jb 0x10087290
xor ecx, ecx
mov word [ebp + eax*2 - 0x9c], cx
lea ecx, [ebp - 0x9c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100872c0
sub ecx, edx
lea eax, [ebp - 0x9c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.1004fa60
cmp dword [ebp - 0x30], 8
lea edx, [ebp - 0x44]
mov dword [ebp - 0xa8], 0
cmovae edx, dword [ebp - 0x44]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10087310
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xb8]
call fcn.100654a0
cmp dword [ebp - 0xa4], 8
lea eax, [ebp - 0xb8]
push 0
cmovae eax, dword [ebp - 0xb8]
push 0
push 2
push 0
push 3
push 0xc0000000
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10087368
xor bl, bl
jmp 0x100873a2
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x14]
push 0
push ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x10087393
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
jmp 0x100873a2
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea ecx, [ebp - 0xb8]
call fcn.1000db10
test bl, bl
jne 0x100873c5
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x1026d1d8
call esi
push 0x1026d1e4
call esi
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x100873f5
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100873eb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008741b
push edx
push ecx
call fcn.101d50ac
add esp, 8
lea ecx, [ebp - 0x44]
call fcn.1000db10
xor al, al
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.101d506b
mov esp, ebp
pop ebp
ret
call fcn.101f0b28
int3