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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6f4afb
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x70b414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x6bf3ce
lea eax, [ecx - 7]
jmp 0x6bf6e9
lea eax, [esi + 0x30]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0xc]
push ecx
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_WriteFile_1]
test eax, eax
je 0x6bf3fe
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
jmp 0x6bf6e9
call dword [sym.imp.KERNEL32.dll_GetLastError_1]
mov edi, eax
mov dword [ebp - 0x4c], edi
cmp edi, 0xe9
ja 0x6bf43d
je case.0x6bf422.109
cmp edi, 0xe8
ja case.0x6bf422.1
movzx eax, byte [edi + 0x6bf720]
jmp dword [eax*4 + 0x6bf70c]
mov eax, 0xfffffff2
jmp 0x6bf6e9
mov eax, 0xffffffe7
jmp 0x6bf6e9
sub eax, 0x3e5
je case.0x6bf422.0
sub eax, 0x313
je case.0x6bf422.8
sub eax, 0x20
je case.0x6bf422.8
mov eax, dword [0x70d8a8]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x28], 0
push 0x30
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
call fcn.006ba460
mov ecx, eax
mov dword [ebp - 0x14], 0x2f
mov dword [ebp - 0x18], 0x26
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
movups xmmword [ecx + 0x10], xmm0
mov dword [ecx + 0x20], 0
mov word [ecx + 0x24], 0
mov byte [ecx + 0x26], 0
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x28], ecx
jb 0x6bf4c7
movsx edx, byte [ecx]
jmp 0x6bf4cd
movsx edx, byte [eax]
lea ecx, [ebp - 0x28]
mov eax, 0x704650
add edx, 0x1735224
sub eax, ecx
mov esi, 0x26
mov dword [ebp - 0x44], eax
mov edi, eax
mov eax, edx
lea ecx, [ecx + 1]
imul edx, edx, 0xdef5
shr eax, 4
xor al, byte [edi + ecx - 1]
mov byte [ecx - 1], al
add edx, 0x12db7f6d
sub esi, 1
jne 0x6bf4e4
mov edi, dword [ebp - 0x4c]
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x64], 0x6ffa60
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
mov eax, 0x704414
inc eax
cmp byte [eax], 0
jne 0x6bf528
sub eax, 0x704414
mov dword [ebp - 0x58], eax
lea ecx, [eax + 1]
mov dword [ebp - 0x5c], ecx
test ecx, ecx
jne 0x6bf544
xor eax, eax
jmp 0x6bf54d
push ecx
call fcn.006e3fc6
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, 0x704414
mov dword [ebp - 0x60], eax
inc ecx
cmp byte [ecx], 0
jne 0x6bf558
sub ecx, 0x704414
inc ecx
push ecx
push 0x704414
push eax
call fcn.006e1ac0
add esp, 0xc
push edi
lea ecx, [ebp - 0x94]
call fcn.006c6bc0
push 0x30
mov byte [ebp - 4], 3
call fcn.006ba460
mov edx, eax
mov dword [ebp - 0x30], 0x23
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0x2f
mov dword [ebp - 0x40], edx
mov edi, 0x7046b0
mov esi, 0x23
movups xmmword [edx], xmm0
movups xmmword [edx + 0x10], xmm0
mov dword [edx + 0x20], 0
movsx ecx, byte [edx]
add ecx, 0x1735224
sub edi, edx
mov eax, ecx
lea edx, [edx + 1]
imul ecx, ecx, 0xdbf5
shr eax, 4
xor al, byte [edi + edx - 1]
mov byte [edx - 1], al
add ecx, 0x12db7f6d
sub esi, 1
jne 0x6bf5c4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x84]
call fcn.006c7070
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.006c63b0
push ecx
mov ecx, dword [ebp - 0x54]
push esi
push 0xf3
push dword [ebp - 0x50]
mov byte [ebp - 4], 7
push dword [eax + 4]
call fcn.006d3a60
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x6ffa60
test eax, eax
je 0x6bf637
push eax
call fcn.006e3fab
add esp, 4
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], 0x6ffa60
test eax, eax
je 0x6bf651
push eax
call fcn.006e3fab
add esp, 4
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x6bf685
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x6bf67b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6bf706
push edx
push ecx
call fcn.006df222
add esp, 8
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x6bf698
push eax
call fcn.006e3fab
add esp, 4
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x6bf6a8
push eax
call fcn.006e3fab
add esp, 4
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x6bf6d8
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x6bf6ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6bf706
push edx
push ecx
call fcn.006df222
add esp, 8
or eax, 0xffffffff
jmp 0x6bf6e9
mov eax, 0xfffffff6
jmp 0x6bf6e9
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006df1da
mov esp, ebp
pop ebp
ret 8
call fcn.006e3ec2
nop
in al, 0xf6
imul eax, dword [eax], -35
imul byte [ebx]
xor esi, esp
imul eax, dword [eax], 41
hlt