Function at 0x4b8c50
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [edx + 2]
mov dword [esp + 4], eax
mov dword [esp + 8], 0
push esi
mov eax, dword [ebx + 0xc4]
push edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4b901e
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4b901e
cmp dword [eax + 0x54], 0
je 0x4b901e
cmp dword [ebp + 8], 2
jge 0x4b8cae
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax]
mov edi, dword [eax]
lea eax, [ecx + edx]
mov dword [esp + 0x28], eax
movzx eax, word [eax]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
movzx eax, dx
shr eax, 0xf
mov dword [esp + 0x24], eax
mov eax, edx
shr eax, 8
and eax, 0xffffff0f
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
movzx eax, dl
mov esi, eax
mov dword [esp + 0x2c], eax
and esi, 0x7f
mov dword [esp + 0x18], esi
cmp esi, 0x7e
jne 0x4b8d33
cmp dword [ebp + 8], 4
jge 0x4b8d08
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x28]
movzx eax, word [eax + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
add ecx, 2
movzx esi, ax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], ecx
jmp 0x4b8d8c
cmp esi, 0x7f
jne 0x4b8d88
cmp dword [ebp + 8], 0xa
jl 0x4b8cfd
mov eax, dword [esp + 0x28]
push dword [eax + 6]
push dword [eax + 2]
call fcn.004ae160
add esp, 8
mov esi, eax
mov dword [esp + 0x18], esi
test edx, edx
jne 0x4b8d77
cmp esi, 0x7fffffff
ja 0x4b8d77
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x2c]
add ecx, 8
mov edx, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
jmp 0x4b8d8c
mov ecx, ebx
call fcn.004baec0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
shr eax, 5
and eax, 4
add eax, esi
add eax, ecx
cmp dword [ebp + 8], eax
jl 0x4b8cfd
mov eax, dword [esp + 0x14]
test dl, 0x80
mov edx, 0
lea eax, [ecx + eax]
cmovne edx, eax
mov dword [esp + 0x30], edx
test edx, edx
je 0x4b8de9
add ecx, 4
mov dword [esp + 0xc], ecx
xor ecx, ecx
test esi, esi
jle 0x4b8de9
mov eax, dword [esp + 0x14]
mov ebx, edx
add eax, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
mov edx, eax
mov eax, ecx
and eax, 3
mov al, byte [eax + ebx]
xor byte [edx + ecx], al
inc ecx
cmp ecx, esi
jl 0x4b8dd6
mov ebx, dword [ebp + 0xc]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0xc]
cmp al, 8
jae 0x4b8fa4
mov ecx, dword [edi + 0x18]
test ecx, ecx
jne 0x4b8e4a
push dword [ebp + 0x10]
movzx eax, al
mov dword [edi + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
add eax, 0xa
mov ecx, dword [esp + 0x20]
push dword [ecx + 0x38]
push dword [ecx + 0x34]
push eax
push esi
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
add eax, edx
push eax
push dword [ebx + 0xa0]
mov eax, dword [ecx + 0x54]
push 0
push ebx
call eax
mov eax, dword [esp + 0x34]
add esp, 0x28
add eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test al, al
je 0x4b8e54
movzx eax, al
mov dword [edi + 8], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4b8eaa
cmp dword [edi + 0x10], 0
jne 0x4b8eaa
cmp byte [edi + 0x1c], 0
jne 0x4b8eaa
push dword [ebp + 0x10]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push dword [ecx + 0x38]
push dword [ecx + 0x34]
push 0
push esi
push eax
mov eax, dword [esp + 0x2c]
add eax, edx
push eax
push dword [ebx + 0xa0]
mov eax, dword [ecx + 0x54]
push 0
push ebx
call eax
mov eax, dword [esp + 0x34]
add esp, 0x28
add eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
add eax, esi
cmp eax, edx
jl 0x4b8efc
cmp edx, ecx
jne 0x4b8f7d
push dword [ebp + 0x10]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
mov byte [edi + 0x1c], 1
mov dword [esp + 0x14], 0
push dword [eax + 0x38]
push dword [eax + 0x34]
mov eax, dword [eax + 0x54]
push 0xa
push dword [edi + 0x10]
push ecx
push dword [edi + 0xc]
push dword [ebx + 0xa0]
push 0
push ebx
call eax
add esp, 0x28
mov dword [edi + 0x10], 0
mov eax, dword [esp + 0xc]
push dword [esp + 0x18]
add eax, dword [esp + 0x18]
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 0xc]
sub edx, dword [edi + 0x10]
add ecx, dword [edi + 0x10]
push eax
call fcn.00401000
mov esi, dword [esp + 0x20]
add esp, 8
add dword [edi + 0x10], esi
cmp dword [esp + 0x24], 0
je 0x4b9011
push dword [ebp + 0x10]
mov ecx, dword [esp + 0x20]
xor edx, edx
cmp byte [edi + 0x1c], dl
mov eax, 0xb
cmove eax, edx
push dword [ecx + 0x38]
push dword [ecx + 0x34]
push eax
push dword [edi + 0x10]
lea eax, [esp + 0x24]
push eax
push dword [edi + 0xc]
mov eax, dword [ecx + 0x54]
push dword [ebx + 0xa0]
push edx
push ebx
call eax
mov eax, dword [esp + 0x34]
add esp, 0x28
mov byte [edi + 0x1c], 0
add eax, esi
mov dword [edi + 0x10], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edx + edx]
cmp eax, ecx
cmovg eax, ecx
push eax
push dword [edi + 0xc]
mov dword [edi + 0x14], eax
call fcn.00591c5f
add esp, 8
mov dword [edi + 0xc], eax
test eax, eax
jne 0x4b8efc
jmp 0x4b903b
movzx eax, al
sub eax, 8
je 0x4b900a
sub eax, 1
je 0x4b8fd3
sub eax, 1
jne 0x4b9011
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4b9011
push dword [edi + 0x2c]
push ebx
call eax
mov eax, dword [esp + 0x14]
add esp, 8
add eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4b8fe7
push dword [edi + 0x2c]
push ebx
call eax
add esp, 8
test eax, eax
jne 0x4b9011
sub esp, 8
mov edx, 0xa
mov ecx, ebx
push 0
push 0
call fcn.004b88e0
mov eax, dword [esp + 0x1c]
add esp, 0x10
add eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.004baec0
mov eax, dword [esp + 0xc]
add eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xc8]
test eax, eax
je 0x4b9031
push eax
call fcn.004aa730
add esp, 4
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x593
mov edx, 0x61e7c0
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0x593
push 0x61e7e0
push 0x61e800
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.00587d2d
int3