Function at 0x5109f0
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65abcb
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x6dc0b8]
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
mov eax, ecx
mov dword [ebp - 0x140], eax
lea esi, [eax + 0x88]
mov dword [ebp - 0x144], 6
lea eax, [ebp - 0x38]
xor ebx, ebx
push eax
mov ecx, esi
mov dword [ebp - 0x124], ebx
call fcn.004e9980
xor edx, edx
mov dword [ebp - 4], ebx
cmp word [0x6b0a98], dx
mov ecx, 4
cmove ecx, edx
cmp dword [eax + 0x14], 8
jb 0x510a67
mov edx, dword [eax]
jmp 0x510a69
mov edx, eax
push ecx
push 0x6b0a98
push dword [eax + 0x10]
push edx
call fcn.00411dd0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add esp, 0x10
cmp eax, 8
jb 0x510a99
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
test edi, edi
jne 0x510dad
call fcn.004ebc70
xor eax, eax
mov dword [ebp - 0xec], edi
xorps xmm0, xmm0
mov dword [ebp - 0xe8], edi
mov byte [ebp - 0x100], 0
mov dword [ebp - 0xe8], 7
mov dword [ebp - 0xec], edi
mov word [ebp - 0xfc], ax
mov byte [ebp - 0xe4], al
mov dword [ebp - 0xe0], eax
mov byte [ebp - 0xdc], al
mov dword [ebp - 0xd8], eax
mov byte [ebp - 0xd4], al
movups xmmword [ebp - 0xd0], xmm0
mov byte [ebp - 0xc0], al
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x120]
push esi
mov byte [ebp - 0x100], 1
mov byte [ebp - 0xe4], 1
call fcn.004ebac0
push ecx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.004eb9e0
mov byte [ebp - 4], 3
sub esp, 8
mov eax, dword [ebp - 0x120]
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x510b5b
mov ecx, dword [eax]
jmp 0x510b5d
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x38]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.004e91d0
push 0x6ae0e4
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00511cf0
add esp, 0xc
mov ecx, eax
mov edi, dword [ebp - 0x140]
mov byte [ebp - 4], 5
lea eax, [edi + 0x58]
push eax
push ecx
lea eax, [ebp - 0x88]
push eax
call fcn.004c1400
add esp, 0xc
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x510bbf
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x510bec
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x88]
mov dword [ebp - 0x28], 0
push eax
call fcn.004ec3c0
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x120]
call fcn.004eb5b0
push ecx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x120]
call fcn.004ec470
lea eax, [ebp - 0x100]
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x1c]
call fcn.004ee700
mov eax, dword [ebp - 0x24]
add esp, 4
cmp eax, 8
jb 0x510c57
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x510c7b
cmp eax, 0xffffffff
jne 0x510c85
cmp byte [ebp - 0x1c], 0
jne 0x510c85
xor bl, bl
jmp 0x510c87
mov bl, 1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.004eec10
test bl, bl
je 0x510d0e
lea eax, [ebp - 0x38]
push eax
call fcn.0050fe00
mov edx, eax
mov byte [ebp - 4], 0xa
cmp dword [edx + 0x14], 8
jb 0x510cae
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x510cb3
sub ecx, esi
sar ecx, 1
push 1
lea eax, [ecx*2 + 2]
push eax
push edx
push str.lastrun
lea ecx, [edi + 0xa0]
call fcn.004ef4c0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x510cf6
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], 0
xor ebx, ebx
mov word [ebp - 0x38], ax
jmp 0x510d13
mov ebx, 6
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x510d32
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x58]
mov word [ebp - 0x88], ax
mov byte [ebp - 4], 2
call fcn.004ebbd0
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 1
call fcn.004ebbd0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xe8]
cmp eax, 8
jb 0x510d89
inc eax
lea ecx, [ebp - 0xfc]
push eax
push dword [ebp - 0xfc]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0xe8], 7
mov word [ebp - 0xfc], ax
mov eax, ebx
mov dword [ebp - 0xec], 0
jmp 0x511446
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
push 0x6b6740
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xb
call fcn.00416b10
mov byte [ebp - 4], 0xc
xor eax, eax
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], 0
call fcn.004f7b40
add esp, 4
test al, al
je 0x510e11
lea eax, [ebp - 0x70]
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x50]
call fcn.004f7f30
add esp, 4
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x510e26
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.00416870
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x510e3f
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x88], al
push 0xffffffffffffffff
lea edx, [ebp - 0x88]
mov byte [ebp - 4], 0xd
mov ecx, esi
call fcn.004f6520
add esp, 4
lea ecx, [ebp - 0x138]
call fcn.00512470
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x12c]
push eax
call fcn.00512080
mov ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x138]
push eax
call fcn.00512170
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
mov byte [ebp - 4], 0xf
xor edi, edi
mov eax, dword [ebp - 0x134]
sub eax, dword [ebp - 0x138]
sar eax, 5
test eax, eax
je 0x5111f9
xor esi, esi
mov dword [ebp - 0x13c], esi
nop dword [eax + eax]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x12c]
push eax
push edi
call fcn.005123b0
mov eax, dword [ebp - 0x138]
sub esp, 8
add eax, esi
mov edx, esp
cmp dword [eax + 0x18], 8
jb 0x510f5c
mov ecx, dword [eax + 4]
jmp 0x510f5f
lea ecx, [eax + 4]
mov dword [edx], ecx
lea ecx, [ebp - 0x70]
mov eax, dword [eax + 0x14]
mov dword [edx + 4], eax
lea eax, [ebp - 0x38]
push eax
call fcn.004e9d10
push 0
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 0x10
mov esi, dword [ebp - 0x40]
cmovae eax, dword [ebp - 0x50]
cmp dword [ebp - 0x24], 8
push 0
push 2
push 0
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x128], 0
call fcn.004eec80
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x510fd8
cmp eax, 0xffffffff
je 0x510fd8
mov ecx, 1
jmp 0x510fda
xor ecx, ecx
test cl, cl
jne 0x51102d
test bl, 0x10
je 0x510ff7
and ebx, 0xffffffef
lea ecx, [ebp - 0x200]
mov dword [ebp - 0x124], ebx
call fcn.004ef990
test bl, 8
je 0x5110ab
and ebx, 0xfffffff7
mov dword [ebp - 0x124], ebx
mov eax, dword [ebp - 0x104]
cmp eax, 0x10
jb 0x5110ab
inc eax
lea ecx, [ebp - 0x118]
push eax
push dword [ebp - 0x118]
call fcn.00414c80
jmp 0x5110ab
push 0
lea ecx, [ebp - 0x18]
push ecx
push esi
push dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x51104e
cmp dword [ebp - 0x18], esi
je 0x5110ab
test eax, eax
jne 0x511071
test bl, 0x40
je 0x511067
and ebx, 0xffffffbf
lea ecx, [ebp - 0x200]
mov dword [ebp - 0x124], ebx
call fcn.004ef990
test bl, 0x20
je 0x5110ab
and ebx, 0xffffffdf
jmp 0x51109a
test ebx, 0x100
je 0x511090
and ebx, 0xfffffeff
lea ecx, [ebp - 0x1f8]
mov dword [ebp - 0x124], ebx
call fcn.004ef6d0
test bl, bl
jns 0x5110ab
and ebx, 0xffffff7f
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x124], ebx
call fcn.00414d60
lea ecx, [ebp - 0x128]
call fcn.004eec10
xor eax, eax
mov dword [ebp - 0xa8], 0
push 0xffffffffffffffff
push eax
mov word [ebp - 0xb8], ax
lea ecx, [ebp - 0xb8]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xa4], 0
push eax
mov dword [ebp - 0xa4], 7
mov dword [ebp - 0xa8], 0
call fcn.00416500
xor ecx, ecx
mov byte [ebp - 4], 0x21
cmp word [0x6ab9a0], cx
mov eax, 6
cmove eax, ecx
push eax
push ecx
push 0x6ab9a0
lea ecx, [ebp - 0xb8]
call fcn.004ea470
cmp eax, 0xffffffff
je 0x51113b
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00416500
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0xa4]
cmp eax, 8
jb 0x51115d
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
mov dword [ebp - 0xa8], 0
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x511193
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x5111c0
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.00414c80
mov eax, dword [ebp - 0x134]
inc edi
sub eax, dword [ebp - 0x138]
mov esi, dword [ebp - 0x13c]
add esi, 0x20
sar eax, 5
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
mov dword [ebp - 0x13c], esi
cmp edi, eax
jb 0x510f10
cmp dword [ebp - 0x8c], 8
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x40], 0
cmovae eax, dword [ebp - 0xa0]
xor ecx, ecx
mov word [ebp - 0x50], cx
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], 0
test ecx, ecx
jne 0x511244
xor eax, eax
mov dword [ebp - 0x40], ecx
mov word [ebp - 0x50], ax
jmp 0x51124e
push ecx
push eax
lea ecx, [ebp - 0x50]
call fcn.004169e0
push 1
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
lea ecx, [ebp - 0x50]
call fcn.004ea470
cmp eax, 0xffffffff
je 0x511275
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x50]
call fcn.00416450
mov byte [ebp - 4], 0x22
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 8
cmovae eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x3c]
setne bl
cmp eax, 8
jb 0x5112aa
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], ax
test bl, bl
je 0x511339
cmp dword [ebp - 0x8c], 8
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x511332
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x74736e49
push eax
push esi
mov dword [ebp - 0x1c], 0x5f6c6c61
mov dword [ebp - 0x18], 0x325f7a37
mov byte [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x511332
mov ecx, dword [ebp - 0x140]
add ecx, 0x58
cmp dword [ecx + 0x14], 8
jb 0x51131c
mov ecx, dword [ecx]
push ecx
call eax
xor edx, edx
mov ecx, 6
cmp eax, 0xffffffff
cmovne ecx, edx
mov dword [ebp - 0x144], ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x70]
push 1
push eax
call fcn.004f7530
mov byte [ebp - 4], 0xe
add esp, 8
mov eax, dword [ebp - 0x8c]
cmp eax, 8
jb 0x511369
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
mov byte [ebp - 4], 0x23
mov ecx, dword [ebp - 0x138]
test ecx, ecx
je 0x5113dc
push dword [ebp - 0x17]
mov edx, dword [ebp - 0x134]
push ecx
call fcn.00511df0
mov ecx, dword [ebp - 0x130]
add esp, 8
mov eax, dword [ebp - 0x138]
sub ecx, eax
sar ecx, 5
push ecx
push eax
call fcn.00511b60
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x5113fb
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00414c80
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x51142c
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00416870
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x60], 0
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.00545b50
mov esp, ebp
pop ebp
ret