Function at 0x439010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49311d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
push esi
mov esi, ecx
lea eax, [ebp - 0xba]
push edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x30], 0
call fcn.004393a0
mov ebx, eax
xor edx, edx
lea edi, [ebx + 2]
movsx cx, byte [ebx]
xor word [edi + edx*2], cx
inc edx
cmp edx, 0x3d
jb 0x439057
xor eax, eax
push 0xc
mov word [edi + 0x7a], ax
call fcn.0046f96e
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
mov edx, 0x7c
mov ecx, dword [0x4baf24]
mov dword [eax], 0
mov byte [eax + 8], 1
mov dword [eax + 4], 0x7c
call fcn.00428eb0
mov ecx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], ecx
test ecx, ecx
je 0x4390bc
test edi, edi
je 0x4390bc
push dword [eax + 4]
push edi
push ecx
call fcn.004714a0
add esp, 0xc
xor ecx, ecx
nop
movsx ax, byte [ebx]
xor word [edi + ecx*2], ax
inc ecx
cmp ecx, 0x3d
jb 0x4390c0
mov eax, 0xffff
mov word [edi + 0x7a], ax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4bb400]
cmp eax, dword [ecx + 4]
jg 0x43934b
mov ebx, dword [ebp - 0x10]
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov eax, dword [0x4b8d18]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0x4bb404
mov dword [ebp - 0x28], 0x20
lea edi, [eax - 0x80000000]
mov dword [ebp - 0x24], 0xffffffff
mov eax, dword [0x4b8d1c]
add eax, 0x80000000
sub eax, edi
cmp eax, 0xffffffff
jne 0x43914e
call fcn.0048fbd5
jmp 0x439158
inc eax
lea ecx, [ebp - 0x2c]
push eax
call fcn.00433e40
lea ecx, [eax + edi]
mov dword [ebp - 0x20], 0
cmp ecx, 0x80000000
lea eax, [ecx - 0x80000000]
lea edx, [ecx - 0x80000000]
cmovae edx, eax
mov dword [ebp - 0x38], edx
test edx, edx
jle 0x439309
mov dword [ebp - 0x2c], 0x4bb404
mov dword [ebp - 0x28], 0x20
mov dword [ebp - 0x24], 0xffffffff
nop word [eax + eax]
mov eax, dword [0x4bb3f8]
mov ebx, dword [ebx]
lea edi, [eax - 0x80000000]
mov eax, dword [0x4bb3fc]
add eax, 0x80000000
sub eax, edi
cmp eax, 0xffffffff
jne 0x4391c5
call fcn.0048fbd5
jmp 0x4391cf
inc eax
lea ecx, [ebp - 0x2c]
push eax
call fcn.00433e40
lea ecx, [eax + edi]
cmp ecx, 0x80000000
lea eax, [ecx - 0x80000000]
lea edx, [ecx - 0x80000000]
mov ecx, dword [esi + 0x10]
cmovae edx, eax
mov dword [ebp - 0x14], ecx
movsx ax, byte [edx + ebx]
mov ebx, dword [esi + 0x14]
movzx edx, ax
mov dword [ebp - 0x18], edx
cmp ecx, ebx
jae 0x43921e
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp ebx, 8
jb 0x43920e
mov eax, dword [esi]
mov word [eax + ecx*2], dx
xor edx, edx
mov word [eax + ecx*2 + 2], dx
jmp 0x4392f5
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x439394
lea eax, [ecx + 1]
mov edi, eax
mov dword [ebp - 0x34], eax
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x439248
mov edi, 0x7ffffffe
jmp 0x439266
mov ecx, ebx
mov eax, 0x7ffffffe
shr ecx, 1
sub eax, ecx
cmp ebx, eax
jbe 0x43925e
mov edi, 0x7ffffffe
jmp 0x439266
lea eax, [ecx + ebx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.00423b80
mov ecx, dword [ebp - 0x34]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0x14]
add ecx, ecx
mov dword [esi + 0x14], edi
mov dword [ebp - 0x1c], eax
push ecx
lea edi, [ecx + eax]
mov dword [ebp - 0x14], edi
cmp ebx, 8
jb 0x4392da
mov edi, dword [esi]
push edi
push eax
call fcn.004714a0
mov eax, dword [ebp - 0x14]
lea ebx, [ebx*2 + 2]
mov ecx, dword [ebp - 0x18]
add esp, 0xc
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
cmp ebx, 0x1000
jb 0x4392ce
mov ecx, dword [edi - 4]
add ebx, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x43938f
mov edi, ecx
push ebx
push edi
call fcn.0046fbef
add esp, 8
jmp 0x4392f0
push esi
push eax
call fcn.004714a0
mov ecx, dword [ebp - 0x18]
add esp, 0xc
xor eax, eax
mov word [edi], cx
mov word [edi + 2], ax
mov eax, dword [ebp - 0x1c]
mov dword [esi], eax
mov ecx, dword [ebp - 0x20]
inc ecx
mov dword [ebp - 0x20], ecx
cmp ecx, dword [ebp - 0x38]
jge 0x439309
mov ebx, dword [ebp - 0x10]
jmp 0x4391a0
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
test eax, eax
je 0x43932d
push dword [ebx + 4]
push 0
push eax
call fcn.00471a20
push dword [ebx]
call fcn.004741d4
add esp, 0x10
mov dword [ebx], 0
push 0xc
push ebx
call fcn.0046fbef
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4bb400
call fcn.0046feea
mov ebx, dword [ebp - 0x10]
add esp, 4
cmp dword [0x4bb400], 0xffffffff
jne 0x4390f3
mov eax, dword [ebx + 4]
sub eax, 2
mov dword [0x4bb3f8], 0
push 0x4bb400
mov dword [0x4bb3fc], eax
call fcn.0046fea0
add esp, 4
jmp 0x4390f3
call fcn.00476f7f
call fcn.00402d60
int3