Function at 0x10001870
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1000c90f
push eax
mov dword fs:[0], esp
mov eax, dword [ebp + 8]
sub esp, 0x4dc
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x10001bf3
mov ecx, dword [ebp + 0xc]
cmp ecx, edi
je 0x10001bf3
mov dword [0x10012008], eax
mov dword [0x1001200c], ecx
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], edi
mov byte [ebp - 0x64], 0
lea ecx, [ebp + 0xc]
push ecx
push 0x50
push edi
push edi
mov dword [ebp - 4], edi
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edi
call eax
mov edx, dword [ebp + 0xc]
add esp, 0x10
cmp edx, edi
je 0x10001904
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100018e4
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x64]
call fcn.100028f0
mov edx, dword [ebp + 0xc]
push edx
call dword [0x1001200c]
add esp, 4
cmp dword [ebp - 0x54], edi
je 0x10001bc9
cmp dword [ebp - 0x50], 0x10
mov eax, dword [ebp - 0x64]
jae 0x10001919
lea eax, [ebp - 0x64]
lea ecx, [ebp + 8]
push ecx
push edi
push eax
call fcn.10001180
add esp, 0xc
cmp eax, 1
jne 0x10001bc9
cmp dword [ebp + 8], edi
jbe 0x10001bc9
lea edx, [ebp - 0x40]
push edx
mov dword [ebp - 0x40], 0x6e72656b
mov dword [ebp - 0x3c], 0x32336c65
mov dword [ebp - 0x38], 0x6c6c642e
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x18], 0x74697257
mov dword [ebp - 0x14], 0x6c694665
mov word [ebp - 0x10], 0x65
mov dword [ebp - 0x30], 0x61657243
mov dword [ebp - 0x2c], 0x69466574
mov dword [ebp - 0x28], 0x57656c
mov dword [ebp - 0x24], 0x736f6c43
mov dword [ebp - 0x20], 0x6e614865
mov dword [ebp - 0x1c], 0x656c64
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push esi
call edi
lea ecx, [ebp - 0x30]
push ecx
push esi
call edi
lea edx, [ebp - 0x24]
push edx
push esi
call edi
mov eax, dword [ebp + 8]
push eax
call fcn.10002c20
mov ecx, dword [ebp + 8]
push ecx
mov ebx, eax
push 0
push ebx
call fcn.10003b50
mov eax, dword [ebp - 0x64]
add esp, 0x10
cmp dword [ebp - 0x50], 0x10
jae 0x100019dd
lea eax, [ebp - 0x64]
lea edx, [ebp + 8]
push edx
push ebx
push eax
call fcn.10001180
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x4e6]
push ecx
mov word [ebp - 0x4e8], ax
call fcn.10003b50
push 0x20a
lea edx, [ebp - 0x2e0]
push 0
push edx
call fcn.10003b50
mov ecx, 0x104
mov esi, ebx
lea edi, [ebp - 0x4e8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
add esp, 0x24
xor edi, edi
xor esi, esi
cmp byte [ebp - 0xd8], 0x51
jne 0x10001b66
lea eax, [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x9c]
call fcn.100029f0
cmp dword [ebp - 0x88], 8
mov eax, dword [ebp - 0x9c]
mov byte [ebp - 4], 1
jae 0x10001a66
lea eax, [ebp - 0x9c]
push eax
call fcn.10001350
sub esp, 0x18
lea edx, [ebp - 0x4e8]
mov ecx, esp
mov dword [ebp - 0x48], esp
push edx
call fcn.100029f0
lea eax, [ebp - 0xd4]
push eax
call fcn.10001500
push eax
lea ecx, [ebp - 0x9c]
push ecx
lea edx, [ebp - 0xb8]
push edx
mov byte [ebp - 4], 2
call fcn.10002b00
add esp, 0x2c
push eax
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 3
call fcn.10002a80
lea ecx, [ebp - 0xb8]
call fcn.10002430
lea ecx, [ebp - 0xd4]
call fcn.10002430
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], edi
mov byte [ebp - 0x80], 0
lea eax, [ebp - 0x80]
push eax
sub esp, 0x1c
lea edx, [ebp - 0x9c]
mov ecx, esp
mov dword [ebp - 0x48], esp
push edx
mov byte [ebp - 4], 4
call fcn.100028c0
call fcn.100016b0
mov eax, dword [ebp - 0x80]
add esp, 0x20
cmp dword [ebp - 0x6c], 0x10
jae 0x10001b0b
lea eax, [ebp - 0x80]
push 0x1000d264
push eax
call fcn.1000411e
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x10001b23
xor esi, esi
jmp 0x10001b4f
mov eax, dword [ebp + 8]
push esi
add eax, 0xfffffbee
push 1
lea ecx, [ebx + 0x412]
push eax
push ecx
call fcn.10003fe8
push esi
call fcn.10003e35
push esi
call fcn.10003c37
add esp, 0x18
mov esi, 1
lea ecx, [ebp - 0x80]
call fcn.10002400
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0
call fcn.10002430
push ebx
call fcn.10003b41
xor edx, edx
add esp, 4
cmp esi, edi
sete dl
lea eax, [ebp - 0x4e8]
mov dword [ebp - 0x44], edi
lea esi, [eax + 2]
lea edx, [edx*8 + 0x52]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10001b90
sub eax, esi
lea ecx, [ebp - 0x44]
push ecx
sar eax, 1
push edx
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x4e8]
push eax
call dword [0x10012008]
mov eax, dword [ebp - 0x44]
add esp, 0x10
cmp eax, edi
je 0x10001bc9
push eax
call dword [0x1001200c]
add esp, 4
cmp dword [ebp - 0x50], 0x10
jb 0x10001bdb
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.1000348d
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
or eax, 0xffffffff
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8