Function at 0x10009150
Capabilities:
Delete file
Encode data using xor
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061318
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x10077604]
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 - 0x48], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x44], edi
cmp dword [edi + 0x10], 0
je 0x10009228
lea ecx, [eax + 0x18]
cmp ecx, edi
je 0x100091a1
push 0xffffffffffffffff
push 0
push edi
call fcn.100026e0
cmp dword [edi + 0x14], 0x10
jb 0x100091ab
mov eax, dword [edi]
jmp 0x100091ad
mov eax, edi
push 0
push 0x80
push 3
push 0
push 0
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000922f
movaps xmm0, xmmword [0x10066720]
xor ecx, ecx
movups xmmword [ebp - 0x80], xmm0
mov dword [ebp - 0x50], 0x2e2e397c
movaps xmm0, xmmword [str.2_3_92:509t.j.]
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x4c], 0x562e33
movaps xmm0, xmmword [0x10066760]
movups xmmword [ebp - 0x60], xmm0
nop
mov al, byte [ebp - 0x80]
xor byte [ebp + ecx - 0x7f], al
inc ecx
cmp ecx, 0x36
jb 0x10009200
cmp dword [edi + 0x14], 0x10
mov byte [ebp - 0x49], 0
jb 0x10009219
mov edi, dword [edi]
push 0
lea eax, [ebp - 0x7f]
push eax
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x10009419
mov dh, 0x2a
mov byte [ebp - 0x31], 0
mov al, 4
mov byte [ebp - 0x38], dh
mov ah, 0x47
mov byte [ebp - 0x31], 0
xor al, dh
xor ah, dh
mov byte [ebp - 0x37], al
mov cl, 0x4e
mov byte [ebp - 0x33], ah
mov dl, 0x59
lea eax, [ebp - 0x37]
mov ch, 0x5a
push eax
mov bl, 0x5e
lea eax, [ebp - 0x2c]
xor cl, dh
xor dl, dh
xor bl, dh
mov byte [ebp - 0x36], cl
xor ch, dh
mov byte [ebp - 0x35], dl
push edi
push eax
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x32], ch
call fcn.10006fd0
add esp, 0xc
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
push esi
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x100092b9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
xor bl, bl
jmp 0x10009400
push ebx
call fcn.1005fa9a
add esp, 4
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push 0
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x816
xor esi, esi
mov dword [ebp - 0x3c], ecx
test ebx, ebx
je 0x10009327
mov edi, dword [ebp - 0x40]
mov edx, ecx
mov eax, 0x6081
movzx ecx, byte [esi + edi]
add cx, word [ebp - 0x3c]
movzx ecx, cx
imul ecx, eax
mov eax, 0x7105
shr edx, 8
xor dl, byte [esi + edi]
mov byte [esi + edi], dl
inc esi
add cx, ax
movzx ecx, cx
mov dword [ebp - 0x3c], ecx
cmp esi, ebx
jb 0x100092f3
mov edi, dword [ebp - 0x44]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push ebx
mov ebx, dword [ebp - 0x40]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.1005faa3
add esp, 4
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
cmovae eax, dword [ebp - 0x2c]
push 0
push 0x80
push 3
push 0
push 0
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x48]
mov esi, eax
push esi
call fcn.10008890
push esi
mov bl, al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x100093eb
movaps xmm0, xmmword [str.p_C_]
xor ecx, ecx
movups xmmword [ebp - 0x68], xmm0
movaps xmm0, xmmword [0x100666a0]
movups xmmword [ebp - 0x58], xmm0
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x1e
jb 0x100093c3
cmp dword [edi + 0x14], 0x10
mov byte [ebp - 0x49], 0
jb 0x100093dc
mov edi, dword [edi]
push 0
lea eax, [ebp - 0x67]
push eax
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x10009417
push 1
inc ecx
push ecx
push dword [ebp - 0x2c]
call fcn.10002610
add esp, 0xc
mov al, bl
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.1005f6be
mov esp, ebp
pop ebp
ret 4