Function at 0x48d700
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], esi
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x48d827
mov edx, dword [0x566ac0]
lea ecx, [edx + 2]
lea eax, [edx + 1]
imul ecx, eax
imul ecx, edx
and ecx, 0x8000000f
jns 0x48d73c
dec ecx
or ecx, 0xfffffff0
inc ecx
cmp ecx, 0xf
jne 0x48d7ca
xor esi, esi
mov ecx, esi
and ecx, 1
dec ecx
not ecx
and ecx, edx
mov eax, esi
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
inc esi
add edx, eax
cmp esi, 0x100
jl 0x48d747
mov dword [0x566ac0], edx
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
mov esi, dword [eax - 0x10]
lea edx, [eax - 0x10]
je 0x48d81f
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x48d7ff
cmp dword [eax - 8], 0
jl 0x48d939
mov dword [eax - 0xc], 0
mov eax, dword [ebx]
pop esi
mov byte [eax], 0
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x48d813
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 1], 0
call fcn.0048f120
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [esi]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 8], eax
test eax, eax
jne 0x48d862
push dword [esi]
mov ecx, ebx
call fcn.00402720
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push eax
call fcn.004e3d44
push dword [ebp - 8]
mov edi, eax
push 0
push edi
call fcn.004e67c0
mov ecx, dword [esi]
add esp, 0x10
push 0
push 0
push dword [ebp - 8]
push edi
push dword [ecx - 0xc]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 8], eax
call fcn.0048f120
test al, al
jne 0x48d8c1
push 4
call fcn.004e4ad7
mov esi, eax
call fcn.004e5d44
mov dword [esi], eax
push esi
mov dword [0x566ac0], eax
call fcn.004e4aa8
mov esi, dword [ebp - 0xc]
add esp, 8
cmp dword [ebp - 8], 0
jne 0x48d8d2
push dword [esi]
mov ecx, ebx
call fcn.00402720
jmp 0x48d922
test edi, edi
jne 0x48d8da
xor ecx, ecx
jmp 0x48d8e9
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48d8e0
sub ecx, edx
push ecx
push edi
mov ecx, ebx
call fcn.00482ba0
mov ecx, dword [0x566ac0]
mov byte [ebp - 1], 1
lea edx, [ecx + 2]
lea eax, [ecx + 1]
imul edx, eax
imul edx, ecx
and edx, 0x8000000f
jns 0x48d915
dec edx
or edx, 0xfffffff0
inc edx
cmp edx, 0xb
jne 0x48d922
push 0
call dword [sym.imp.KERNEL32.dll_GetFileType]
test edi, edi
je 0x48d92f
push edi
call fcn.004e5e73
add esp, 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402fc0
int3