Function at 0x439ae0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x280
mov ebx, dword [0x4505bc]
mov ebp, dword [0x4505b8]
mov eax, ebp
or eax, ebx
jne 0x439b92
mov dword [esp + 0x50], 0xd1bacfa2
mov dword [esp + 0x54], 0xd5bed3b4
mov dword [esp + 0x58], 0xd9f8d7b8
mov dword [esp + 0x5c], 0xddb6dbbc
mov dword [esp + 0x60], 0xe1dedfb0
lea eax, [esp + 0x50]
mov ecx, 0x52bc1cb2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [eax]
mov esi, ecx
or esi, edx
not esi
lea edi, [ecx - 0x52bc1c00]
and edi, edx
or edi, esi
mov edx, edi
and edx, 0x7e
add edx, edx
xor edi, 0x81
sub edx, edi
mov byte [eax], dl
inc eax
dec ecx
cmp ecx, 0x52bc1c9e
jne 0x439b40
lea eax, [esp + 0x50]
push eax
call fcn.004396b0
add esp, 4
mov ebp, eax
mov dword [0x4505bc], edx
mov dword [0x4505b8], eax
or eax, edx
je 0x439c8c
mov ebx, edx
lea eax, [esp + 0x150]
push 0x40
push eax
push ebx
push ebp
call fcn.00439490
add esp, 0x10
test eax, eax
js 0x439c8c
mov eax, dword [esp + 0x18c]
mov ecx, eax
sar ecx, 0x1f
add eax, ebp
adc ecx, ebx
add eax, 0x18
adc ecx, 0
lea edx, [esp + 0x190]
push 0xf0
push edx
push ecx
push eax
call fcn.00439490
add esp, 0x10
xor edi, edi
test eax, eax
js 0x439c8e
cmp dword [esp + 0x204], 0
je 0x439c8e
mov eax, dword [esp + 0x200]
mov esi, 0
test eax, eax
je 0x439c90
add eax, ebp
mov ecx, ebx
adc ecx, 0
lea edx, [esp + 0x28]
push 0x28
push edx
push ecx
push eax
call fcn.00439490
add esp, 0x10
test eax, eax
js 0x439c8c
mov esi, dword [esp + 0x3c]
mov eax, 0xffffffff
cmp esi, 0x40000000
jae 0x439c3b
lea eax, [esi*4]
push eax
call fcn.00408770
add esp, 4
mov edx, eax
mov eax, esi
and eax, 4
mov ecx, esi
or esi, 4
imul esi, eax
xor eax, 4
and ecx, 0xfffffffb
imul ecx, eax
add esi, ecx
mov eax, dword [esp + 0x44]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push esi
mov dword [esp + 0xc], edx
push edx
push ecx
push eax
call fcn.00439490
add esp, 0x10
test eax, eax
js 0x439c9f
mov eax, dword [esp + 0x3c]
test eax, eax
jns 0x439ca8
mov eax, 0xffffffff
jmp 0x439caa
xor edi, edi
xor esi, esi
mov eax, edi
mov edx, esi
add esp, 0x280
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
xor esi, esi
jmp 0x439ee1
add eax, eax
push eax
call fcn.00408770
add esp, 4
mov esi, dword [esp + 0x40]
add esi, esi
mov ecx, dword [esp + 0x4c]
add ecx, ebp
mov edx, ebx
adc edx, 0
push esi
mov dword [esp + 8], eax
push eax
push edx
push ecx
call fcn.00439490
add esp, 0x10
test eax, eax
js 0x439ed1
mov esi, dword [esp + 0x40]
mov eax, 0xffffffff
cmp esi, 0x40000000
jae 0x439cf4
lea eax, [esi*4]
push eax
call fcn.00408770
add esp, 4
mov edx, eax
mov eax, esi
and eax, 4
mov ecx, esi
or esi, 4
imul esi, eax
xor eax, 4
and ecx, 0xfffffffb
imul ecx, eax
add esi, ecx
mov eax, dword [esp + 0x48]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push esi
mov dword [esp + 0x14], edx
push edx
push ecx
push eax
call fcn.00439490
add esp, 0x10
test eax, eax
js 0x439ebf
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
cmp esi, eax
jb 0x439d48
mov esi, eax
test esi, esi
je 0x439ebf
xor edi, edi
mov dword [esp], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], esi
jmp 0x439d89
mov edx, 0x36c0b43e
mov ebx, dword [esp]
mov edi, dword [esp + 0xc]
cmp edx, dword [esp + 0x294]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
je 0x439ef2
inc edi
cmp edi, esi
je 0x439ebf
mov eax, dword [esp + 0x10]
mov eax, dword [eax + edi*4]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push 0x100
lea edx, [esp + 0x54]
push edx
push ecx
push eax
call fcn.00439490
add esp, 0x10
test eax, eax
jns 0x439db6
cmp eax, 0x8000000d
jne 0x439d80
mov dword [esp + 0xc], edi
mov eax, 0xffffffff
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, edx
cmp byte [esp + eax + 0x51], 0
lea eax, [eax + 1]
lea edx, [edx + 1]
jne 0x439dd0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], 0x969a9401
mov byte [esp + 0x18], 0
xor edx, edx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebp, byte [esp + edi + 0x14]
mov ebx, edx
and ebx, 6
mov esi, edi
xor esi, 0xe87050db
add esi, ebx
mov ebx, esi
and ebx, ebp
lea ecx, [esi + ebp]
not ecx
lea ebx, [ecx + ebx*2]
and ebx, esi
add ebx, ebx
sub ebx, esi
mov ecx, ebx
xor ecx, ebp
not ebx
and ebx, ebp
add ebx, ebx
sub ebx, ecx
add bl, 0xb9
mov byte [esp + edi + 0x14], bl
inc edi
add edx, 2
cmp edi, 5
jne 0x439e00
test eax, eax
je 0x439d5f
mov esi, dword [esp + 0x14]
mov edx, 0x36c0b43e
lea ebp, [esp + 0x50]
cmp eax, 1
mov ebx, dword [esp]
je 0x439e9d
mov ebx, dword [esp + 0x24]
and ebx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movsx ecx, byte [ebp]
mov edi, edx
and edi, ecx
add edx, ecx
add edi, edi
sub edx, edi
imul edx, esi
movsx ecx, byte [ebp + 1]
add ebp, 2
mov edi, edx
and edi, ecx
add edx, ecx
add edi, edi
sub edx, edi
imul edx, esi
add ebx, 0xfffffffe
jne 0x439e70
mov ebx, dword [esp]
test al, 1
mov edi, dword [esp + 0xc]
je 0x439d6b
movsx eax, byte [ebp]
mov ecx, edx
and ecx, eax
add edx, eax
add ecx, ecx
sub edx, ecx
imul edx, esi
jmp 0x439d6b
xor edi, edi
xor esi, esi
push dword [esp + 0x10]
call fcn.00408780
add esp, 4
jmp 0x439ed5
xor edi, edi
xor esi, esi
push dword [esp + 4]
call fcn.00408780
add esp, 4
push dword [esp + 8]
call fcn.00408780
add esp, 4
jmp 0x439c90
mov eax, dword [esp + 4]
movzx eax, word [eax + edi*2]
mov ecx, dword [esp + 8]
add ebp, dword [ecx + eax*4]
adc ebx, 0
mov edi, ebp
mov esi, ebx
jmp 0x439ec3