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

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, dword [esp + 0x5c]
push edi
mov edx, dword [esi + 0xc05c]
inc edx
mov eax, edx
mov dword [esi + 0xc05c], edx
cmp eax, 1
jb 0x484e48
push 0
call fcn.004cb14a
add esp, 4
mov edi, eax
call sub.KERNEL32.dll_GetCurrentProcessId
xor edi, eax
mov dword [esi + 0xc058], edi
mov eax, dword [esi + 0xc058]
push eax
call fcn.004b7ca5
mov ebp, dword [esp + 0x58]
push esi
push ebp
call fcn.00484dd0
add esp, 0xc
xor edi, edi
call fcn.004b7cb2
mov ebx, eax
push esi
sar ebx, 7
and ebx, 0xff
call fcn.00484d50
push esi
push ebx
mov dword [esp + 0x60], eax
call fcn.00484d70
mov dl, byte [esp + 0x60]
add esp, 0xc
xor bl, dl
mov byte [esp + edi + 0x14], bl
inc edi
cmp edi, 0xb
jl 0x484e64
push esi
push ebp
call fcn.00484dd0
add esp, 8
xor edi, edi
lea ebx, [esp + 0x20]
push esi
call fcn.00484d50
xor ecx, ecx
push esi
mov cl, byte [esp + edi + 0x1c]
mov ebp, eax
push ecx
call fcn.00484d70
xor edx, edx
add esp, 0xc
mov dl, byte [esp + edi + 0x14]
add ebx, 4
xor edx, ebp
inc edi
mov dword [ebx - 4], edx
cmp edi, 0xa
jl 0x484ea8
mov ebx, dword [esp + 0x58]
push esi
test ebx, ebx
jne 0x484f01
call fcn.00484d50
push esi
push 0xff
mov ebx, eax
call fcn.00484d70
add esp, 0xc
lea ebp, [edi*4]
xor ebx, 0xff
jmp 0x484f26
call fcn.00484d50
not ebx
shr ebx, 0x18
push esi
push ebx
mov dword [esp + 0x60], eax
call fcn.00484d70
mov eax, dword [esp + 0x60]
add esp, 0xc
lea ebp, [edi*4]
xor ebx, eax
push esi
mov dword [esp + ebp + 0x24], ebx
call fcn.00484d50
mov edi, dword [esp + 0x5c]
push esi
shr edi, 0x18
push edi
mov ebx, eax
call fcn.00484d70
xor edi, ebx
add esp, 0xc
mov dword [esp + ebp + 0x24], edi
xor eax, eax
lea ecx, [esp + 0x20]
mov ebp, 0xc
mov dl, byte [ecx]
add ecx, 4
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, ebp
jl 0x484f54
mov eax, dword [esi + 0x8ec]
test eax, eax
je 0x48503d
mov ecx, dword [esi + 0x90c]
mov edx, dword [esi + 0x904]
lea eax, [esp + 0x10]
xor edi, edi
push eax
mov eax, dword [esi + 0x900]
push ecx
mov ecx, 0x20
mov dword [esp + 0x68], ebp
mov dword [esp + 0x18], 3
call fcn.004b56a0
mov edx, dword [esi + 0x900]
push eax
mov eax, dword [esi + 0x8f8]
push edx
mov edx, dword [esi + 0x8fc]
mov ecx, 0x20
call fcn.004b56a0
push eax
mov eax, dword [esi + 0x8f8]
lea ecx, [esp + 0x74]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
push 1
call dword [esi + 0x908]
mov eax, dword [esp + 0x10]
cmp eax, 3
ja case.0x484fe1.0
jmp dword [eax*4 + 0x4850f8]
cmp dword [esp + 0x60], ebp
jne case.0x484fe1.0
mov ecx, dword [esi + 0x900]
add ecx, ebp
mov dword [esi + 0x900], ecx
mov eax, dword [esi + 0x904]
adc eax, 0
mov dword [esi + 0x904], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov edi, 9
mov dword [esi + 0xa0], 1
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov edi, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov eax, dword [esi + 0xa8]
push esi
cmp eax, 0xffffffff
jne 0x4850a3
mov edi, dword [esp + 0x60]
push 0
push ebp
push edi
push 0
call fcn.00483e80
add esp, 0x14
test eax, eax
je 0x485076
mov eax, dword [esi + 0xa0]
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xf6
pop ebp
add eax, 0x13
pop ebx
add esp, 0x40
ret
mov edx, dword [edi]
lea eax, [esp + 0x60]
push 0
push eax
lea ecx, [esp + 0x1c]
push ebp
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x485096
cmp dword [esp + 0x60], ebp
je 0x4850ed
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
call fcn.00484710
add esp, 4
test edx, edx
jg 0x4850c9
jl 0x4850b5
cmp eax, ebp
jae 0x4850c9
mov eax, dword [esp + 0x5c]
push esi
push eax
push 0
call fcn.00484830
add esp, 0xc
test eax, eax
jne 0x48509b
mov eax, dword [esi + 0xa8]
lea ecx, [esp + 0x60]
push 0
push ecx
lea edx, [esp + 0x1c]
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x485096
cmp dword [esp + 0x60], ebp
jne 0x485096
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret