Function at 0x482c10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x62d414]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x38]
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
mov esi, edx
je 0x482c4b
pop edi
pop esi
mov eax, 0xfffffffb
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0051ed00
add esp, 0x2c
ret 8
cmp dword [edi + 8], 1
je 0x482c6a
pop edi
pop esi
mov eax, 0xfffffffa
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0051ed00
add esp, 0x2c
ret 8
test esi, esi
je 0x482e6b
test eax, eax
jle 0x482e6b
mov ecx, eax
and ecx, reloc.WS2_32.dll_ntohs
jns 0x482c89
dec ecx
or ecx, 0xfffffff0
inc ecx
je 0x482ca4
pop edi
pop esi
mov eax, 0xfffffff9
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0051ed00
add esp, 0x2c
ret 8
mov ecx, dword [edi + 4]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
sub ecx, 0
push ebp
mov dword [esp + 0x10], eax
je 0x482e00
sub ecx, 1
je 0x482cdb
pop ebp
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0051ed00
add esp, 0x2c
ret 8
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
mov ecx, dword [edi + 0x18]
mov ebp, dword [edi + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
test eax, eax
jle 0x482d6e
lea edx, [esp + 0x28]
push edx
push esi
call fcn.00483520
mov edx, dword [esp + 0x1c]
xor dword [esp + 0x30], edx
mov edx, dword [esp + 0x20]
xor dword [esp + 0x34], edx
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x2c]
xor ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
xor eax, ebp
mov ebp, dword [esi]
mov dword [esp + 0x18], edx
mov edx, dword [esi + 8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0xc]
mov dword [ebx], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 4], ecx
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x34]
dec eax
mov dword [ebx + 0xc], ecx
add esi, 0x10
add ebx, 0x10
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
test eax, eax
jg 0x482d00
lea edx, [esp + 0x28]
push edx
push esi
call fcn.00483520
mov eax, dword [esp + 0x18]
xor dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
xor eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
xor dword [esp + 0x28], ebp
xor dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
shr eax, 0x18
mov esi, eax
lea edx, [esi - 1]
cmp edx, 0xf
ja 0x482e51
mov ecx, 0x10
sub ecx, esi
mov eax, ecx
cmp eax, 0x10
jge 0x482dd3
jmp 0x482dc0
movzx edx, byte [esp + eax + 0x28]
cmp edx, esi
jne 0x482e51
inc eax
cmp eax, 0x10
jl 0x482dc0
push ecx
lea eax, [esp + 0x2c]
push eax
push ebx
call sub.MSVCR90.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
pop ebp
shl eax, 4
pop edi
sub eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0051ed00
add esp, 0x2c
ret 8
lea ebp, [eax - 1]
test ebp, ebp
jle 0x482e19
push ebx
push esi
call fcn.00483520
dec ebp
add esi, 0x10
add ebx, 0x10
test ebp, ebp
jg 0x482e07
lea ecx, [esp + 0x28]
push ecx
push esi
call fcn.00483520
movzx esi, byte [esp + 0x37]
cmp esi, 0x10
jge 0x482e51
mov ecx, 0x10
sub ecx, esi
mov eax, ecx
cmp eax, 0x10
jge 0x482dd3
lea esp, [esp]
movzx edx, byte [esp + eax + 0x28]
cmp edx, esi
jne 0x482e51
inc eax
cmp eax, 0x10
jl 0x482e40
jmp 0x482dd3
pop ebp
pop edi
pop esi
mov eax, 0xfffffff9
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0051ed00
add esp, 0x2c
ret 8
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0051ed00
add esp, 0x2c
ret 8