Function at 0x4b94b0
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 + 0xc8]
push edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4b987e
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4b987e
cmp dword [eax + 0x54], 0
je 0x4b987e
cmp dword [ebp + 8], 2
jge 0x4b950e
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 0x4b9593
cmp dword [ebp + 8], 4
jge 0x4b9568
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 0x4b95ec
cmp esi, 0x7f
jne 0x4b95e8
cmp dword [ebp + 8], 0xa
jl 0x4b955d
mov eax, dword [esp + 0x28]
push dword [eax + 6]
push dword [eax + 2]
call fcn.004ae8d0
add esp, 8
mov esi, eax
mov dword [esp + 0x18], esi
test edx, edx
jne 0x4b95d7
cmp esi, 0x7fffffff
ja 0x4b95d7
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x2c]
add ecx, 8
mov edx, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
jmp 0x4b95ec
mov ecx, ebx
call fcn.004bb760
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 0x4b955d
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 0x4b9649
add ecx, 4
mov dword [esp + 0xc], ecx
xor ecx, ecx
test esi, esi
jle 0x4b9649
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 0x4b9636
mov ebx, dword [ebp + 0xc]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0xc]
cmp al, 8
jae 0x4b9804
mov ecx, dword [edi + 0x18]
test ecx, ecx
jne 0x4b96aa
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 + 0xa4]
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 0x4b96b4
movzx eax, al
mov dword [edi + 8], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4b970a
cmp dword [edi + 0x10], 0
jne 0x4b970a
cmp byte [edi + 0x1c], 0
jne 0x4b970a
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 + 0xa4]
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 0x4b975c
cmp edx, ecx
jne 0x4b97dd
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 + 0xa4]
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 0x4b9871
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 + 0xa4]
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.0059256f
add esp, 8
mov dword [edi + 0xc], eax
test eax, eax
jne 0x4b975c
jmp 0x4b989b
movzx eax, al
sub eax, 8
je 0x4b986a
sub eax, 1
je 0x4b9833
sub eax, 1
jne 0x4b9871
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4b9871
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 0x4b9847
push dword [edi + 0x2c]
push ebx
call eax
add esp, 8
test eax, eax
jne 0x4b9871
sub esp, 8
mov edx, 0xa
mov ecx, ebx
push 0
push 0
call fcn.004b9150
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.004bb760
mov eax, dword [esp + 0xc]
add eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x4b9891
push eax
call fcn.004aaea0
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 0x595
mov edx, 0x626420
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
push 0x595
push 0x626440
push 0x626460
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.005885bd
int3