Function at 0x404df0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d806
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x43b698]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, 0xf
mov esi, ecx
mov dword [ebp - 0x838], edi
mov ecx, dword [esi + 0xc]
mov ebx, 1
mov dword [ebp - 0x83c], ebx
mov word [ebp - 0x84c], 0x44
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
lea edx, [ebp - 0x84c]
push edx
mov dword [ebp - 4], 0
call eax
mov dword [ebp - 0x81c], edi
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x820], ebx
mov word [ebp - 0x830], 0xbb
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
lea eax, [ebp - 0x830]
push eax
mov byte [ebp - 4], bl
call edx
push 0x400
lea eax, [ebp - 0x413]
push 0
push eax
mov byte [ebp - 0x414], 0
call fcn.0042ccee
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push ebx
call edx
mov al, byte [ebp - 0x414]
cmp al, 0x1f
jne 0x404f04
mov esi, 0x10
cmp dword [ebp - 0x81c], esi
jb 0x404ed5
mov eax, dword [ebp - 0x830]
push eax
call fcn.0042cccc
add esp, 4
mov dword [ebp - 0x81c], edi
mov dword [ebp - 0x820], 0
mov byte [ebp - 0x830], 0
cmp dword [ebp - 0x838], esi
jb 0x405166
mov ecx, dword [ebp - 0x84c]
push ecx
jmp 0x40515e
cmp al, 0x79
jne 0x40511c
mov eax, dword [ebp + 8]
mov edx, 0xfffd
cmp ax, dx
jb 0x404f91
mov ecx, eax
shr ecx, 8
mov byte [ebp - 0x813], al
xor al, cl
mov byte [ebp - 0x814], cl
mov ecx, dword [esi + 0xc]
mov byte [ebp - 0x812], al
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
lea eax, [ebp - 0x814]
push eax
push 3
call edx
push 0xc8
call dword [0x4310e0]
mov esi, dword [esi + 0xc]
lea ecx, [ebp - 0x414]
mov byte [ebp - 0x414], 0xff
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
push ecx
push ebx
mov ecx, esi
call edx
cmp byte [ebp - 0x414], 0x79
lea ecx, [ebp - 0x830]
jne 0x404fec
call fcn.00402590
lea ecx, [ebp - 0x84c]
call fcn.00402590
xor al, al
jmp 0x405168
movzx ebx, ax
dec al
lea ecx, [ebx - 1]
sar ecx, 8
mov byte [ebp - 0x813], al
xor al, cl
mov byte [ebp - 0x814], cl
mov ecx, dword [esi + 0xc]
mov byte [ebp - 0x812], al
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
lea edx, [ebp - 0x814]
push edx
push 3
call eax
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0x414]
mov byte [ebp - 0x414], 0xff
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
push eax
push 1
call edx
cmp byte [ebp - 0x414], 0x79
je 0x405001
lea ecx, [ebp - 0x830]
call fcn.00402590
lea ecx, [ebp - 0x84c]
call fcn.00402590
jmp 0x405166
xor eax, eax
mov byte [ebp - 0x84d], 0
test ebx, ebx
jle 0x405044
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x813]
sub edi, eax
mov dword [ebp - 0x854], ebx
nop
movzx edx, byte [eax + 1]
mov cl, byte [eax]
mov byte [edi + eax], cl
xor cl, dl
xor byte [ebp - 0x84d], cl
mov byte [edi + eax - 1], dl
add eax, 2
dec ebx
jne 0x405020
mov eax, dword [ebp - 0x854]
lea edi, [ebx + 0xf]
mov cl, byte [ebp - 0x84d]
mov byte [ebp + eax*2 - 0x814], cl
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
lea ebx, [ebp - 0x814]
push ebx
lea eax, [eax + eax + 1]
push eax
call edx
mov esi, dword [esi + 0xc]
lea ecx, [ebp - 0x414]
mov byte [ebp - 0x414], 0xff
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
push ecx
push 1
mov ecx, esi
call edx
cmp byte [ebp - 0x414], 0x79
mov esi, 0x10
jne 0x4050dd
cmp dword [ebp - 0x81c], esi
jb 0x4050a8
mov eax, dword [ebp - 0x830]
push eax
call fcn.0042cccc
add esp, 4
mov dword [ebp - 0x81c], edi
mov dword [ebp - 0x820], 0
mov byte [ebp - 0x830], 0
cmp dword [ebp - 0x838], esi
jb 0x4050d6
mov ecx, dword [ebp - 0x84c]
push ecx
call fcn.0042cccc
add esp, 4
xor al, al
jmp 0x405168
cmp dword [ebp - 0x81c], esi
jb 0x4050f4
mov edx, dword [ebp - 0x830]
push edx
call fcn.0042cccc
add esp, 4
mov dword [ebp - 0x81c], edi
mov dword [ebp - 0x820], 0
mov byte [ebp - 0x830], 0
cmp dword [ebp - 0x838], esi
jb 0x405166
mov eax, dword [ebp - 0x84c]
push eax
jmp 0x40515e
mov esi, 0x10
cmp dword [ebp - 0x81c], esi
jb 0x405138
mov ecx, dword [ebp - 0x830]
push ecx
call fcn.0042cccc
add esp, 4
mov dword [ebp - 0x81c], edi
mov dword [ebp - 0x820], 0
mov byte [ebp - 0x830], 0
cmp dword [ebp - 0x838], esi
jb 0x405166
mov edx, dword [ebp - 0x84c]
push edx
call fcn.0042cccc
add esp, 4
mov al, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ccde
mov esp, ebp
pop ebp
ret 8