Function at 0x7f59b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [0xbcbae0]
mov ebx, edx
mov edi, ecx
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [ecx]
mov ebp, dword [ecx + 8]
test byte [eax + 0xa8], 2
mov dword [esp + 0xc], eax
jne 0x7f5a05
movzx eax, word [ebx + 0x2a]
test ax, ax
jle 0x7f5a01
xor ecx, ecx
mov edx, dword [ebx + 4]
lea esi, [ecx + ecx*4]
test byte [edx + esi*4 + 0x10], 1
je 0x7f59f9
mov byte [edx + esi*4 + 0xc], 2
movzx eax, word [ebx + 0x2a]
inc ecx
movsx edx, ax
cmp ecx, edx
jl 0x7f59e3
or byte [ebx + 0x25], 8
mov edx, dword [edi + 0x80]
test edx, edx
je 0x7f5a1b
mov ecx, ebp
push 2
call fcn.007f0770
add esp, 4
movsx eax, word [ebx + 0x28]
mov dword [esp + 8], ebx
test eax, eax
js 0x7f5ae2
mov ecx, dword [ebx + 4]
lea eax, [eax + eax*4]
lea esi, [esp + 0x14]
mov edx, dword [ecx + eax*4]
mov ecx, esi
call fcn.007f6a70
mov ecx, dword [esp + 0xc]
mov edx, 0x3b
push 0
push esi
call fcn.007d8c70
add esp, 8
mov ecx, edi
xor edx, edx
push eax
call fcn.007d8ad0
add esp, 4
test eax, eax
je 0x7f5ec3
cmp byte [edi + 0xc8], 2
mov ebx, eax
jb 0x7f5a88
mov eax, dword [esp + 8]
mov edx, dword [ebx + 4]
mov ecx, edi
lea eax, [eax + 0x28]
push eax
call fcn.007f6a90
add esp, 4
mov al, byte [edi + 0xc6]
mov ecx, edi
xor edx, edx
mov byte [ebx + 0xc], al
mov eax, dword [esp + 8]
mov word [eax + 0x28], 0xffff
movzx eax, byte [eax + 0x32]
push 2
push 0
push 0
push 0
push 0
push eax
push ebx
push 0
push 0
call fcn.007d0860
add esp, 0x24
mov eax, dword [esp + 0xc]
cmp byte [eax + 0x51], 0
jne 0x7f5ec3
cmp dword [edi + 0x24], 0
jne 0x7f5ec3
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.00787030
mov edi, eax
jmp 0x7f5b55
mov ecx, ebx
mov dword [esp], ebp
call fcn.00787030
movzx ebp, word [eax + 0x32]
mov edi, eax
mov ebx, 1
cmp bp, 2
jb 0x7f5b4a
mov ebx, 1
mov esi, 1
mov ecx, edi
mov edx, ebx
push esi
push edi
call fcn.007f6ab0
add esp, 8
test eax, eax
je 0x7f5b1f
dec word [edi + 0x34]
jmp 0x7f5b42
mov eax, dword [edi + 0x20]
mov ecx, dword [eax + esi*4]
mov dword [eax + ebx*4], ecx
mov eax, dword [edi + 0x1c]
movzx ecx, byte [eax + esi]
mov byte [eax + ebx], cl
mov eax, dword [edi + 4]
movzx ecx, word [eax + esi*2]
mov word [eax + ebx*2], cx
inc ebx
movzx ebp, word [edi + 0x32]
inc esi
movzx eax, bp
cmp esi, eax
jb 0x7f5b07
mov esi, dword [esp + 8]
mov ebp, dword [esp]
mov word [edi + 0x32], bx
mov eax, dword [edi + 0x38]
mov edx, dword [esp + 0xc]
mov ecx, eax
or ecx, 0x20
mov dword [edi + 0x38], ecx
test byte [edx + 0xa8], 2
jne 0x7f5b73
or eax, 0x28
mov dword [edi + 0x38], eax
movzx eax, word [edi + 0x32]
test ebp, ebp
mov dword [esp], eax
mov word [edi + 0x34], ax
je 0x7f5b95
mov edx, dword [edi + 0x2c]
test edx, edx
jle 0x7f5b95
mov ecx, ebp
push 0xb
call fcn.007f6b10
add esp, 4
mov eax, dword [esi + 0x1c]
mov edx, dword [esp]
mov dword [edi + 0x2c], eax
mov ebp, dword [esi + 8]
test ebp, ebp
jne 0x7f5bc2
mov eax, dword [esp + 8]
movsx ebx, word [eax + 0x2a]
test ebx, ebx
jg 0x7f5c8e
mov dword [esp + 4], 0
jmp 0x7f5ccc
mov eax, dword [ebp + 0x38]
and eax, 3
cmp eax, 2
je 0x7f5c1a
movzx eax, word [ebp + 0x32]
test dx, dx
je 0x7f5c16
mov word [esp + 0x12], ax
movzx eax, ax
mov esi, edi
xor ebx, ebx
xor edi, edi
mov dword [esp + 4], eax
mov edx, dword [esp + 4]
mov ecx, ebp
push edi
push esi
call fcn.007f6ab0
mov edx, dword [esp + 8]
add esp, 8
cmp eax, 1
adc ebx, 0
inc edi
cmp edi, edx
jne 0x7f5be8
mov ecx, dword [esp + 4]
movzx eax, word [esp + 0x12]
test ebx, ebx
mov edi, esi
jne 0x7f5c23
mov word [ebp + 0x34], ax
mov ebp, dword [ebp + 0x14]
test ebp, ebp
je 0x7f5ba5
jmp 0x7f5bc2
add ebx, ecx
mov ecx, dword [esp + 0xc]
mov edx, ebp
push ebx
call fcn.007f6b20
add esp, 4
test eax, eax
jne 0x7f5ec3
movzx eax, word [ebp + 0x32]
xor ebx, ebx
movzx esi, ax
movzx edx, ax
mov ecx, ebp
push ebx
push edi
call fcn.007f6ab0
add esp, 8
test eax, eax
jne 0x7f5c80
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 4]
movzx eax, word [eax + ebx*2]
mov word [ecx + esi*2], ax
mov eax, dword [edi + 0x20]
mov ecx, dword [ebp + 0x20]
mov eax, dword [eax + ebx*4]
mov dword [ecx + esi*4], eax
mov eax, dword [edi + 0x1c]
cmp byte [eax + ebx], 0
je 0x7f5c7f
or byte [ebp + 0x39], 2
inc esi
mov edx, dword [esp]
inc ebx
cmp ebx, edx
je 0x7f5c1a
movzx eax, word [ebp + 0x32]
jmp 0x7f5c45
mov ebp, dword [edi + 4]
xor esi, esi
mov dword [esp + 4], 0
mov ecx, ebp
push esi
call fcn.007f6bb0
add esp, 4
test eax, eax
jne 0x7f5cc4
mov eax, dword [esp + 8]
lea ecx, [esi + esi*4]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4 + 0x10]
shr eax, 5
not eax
and eax, 1
add dword [esp + 4], eax
mov edx, dword [esp]
inc esi
cmp esi, ebx
jne 0x7f5c9b
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
add eax, edx
mov edx, edi
push eax
call fcn.007f6b20
add esp, 4
test eax, eax
jne 0x7f5ec3
mov eax, dword [esp + 8]
mov edx, dword [esp]
mov dword [esp + 4], edi
movzx eax, word [eax + 0x2a]
test ax, ax
jle 0x7f5eba
mov ebp, fcn.008240c0
mov edi, eax
xor esi, esi
not ebp
and ebp, 1
mov eax, dword [esp + 4]
mov dword [esp], edx
mov ebx, dword [eax + 4]
mov ecx, ebx
push esi
call fcn.007f6bb0
add esp, 4
test eax, eax
je 0x7f5d30
mov edx, dword [esp]
jmp 0x7f5eae
mov eax, dword [esp + 8]
lea ecx, [esi + esi*4]
mov eax, dword [eax + 4]
test byte [eax + ecx*4 + 0x10], 0x20
je 0x7f5d49
mov edx, dword [esp]
jmp 0x7f5eae
mov ecx, ebp
xor eax, eax
movzx edx, byte [0xbac233]
add ecx, fcn.008240c0
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7f5e90
mov al, byte [0xbac233]
mov edx, ebp
xor ecx, ecx
add edx, fcn.008240c0
sete cl
mov edx, ecx
xor edx, 1
lea ecx, [ecx + edx*2 + 6]
mov dl, 1
and cl, 7
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbac233], dl
jne 0x7f5d79
mov edx, ebp
xor ecx, ecx
movzx eax, al
add edx, fcn.008240c0
sete cl
mov edx, ecx
xor edx, 1
lea ecx, [ecx + edx*2 + 6]
and cl, 7
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x7f5df8
mov ecx, ebp
xor eax, eax
movzx edx, byte [0xbac233]
add ecx, fcn.008240c0
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jae 0x7f5dcc
jmp 0x7f5e90
mov ecx, ebp
xor eax, eax
movzx edx, byte [0xbac233]
add ecx, fcn.008240c0
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7f5e6a
mov ecx, ebp
xor eax, eax
mov edi, dword [str.2_p0]
add ecx, fcn.008240c0
sete al
mov ecx, eax
not ecx
and ecx, 0x91
lea ecx, [eax + ecx*2 + 0x713e5f4e]
mov edx, ecx
xor edi, ecx
shr edx, 0x1f
mov dword [str.2_p0], edi
not edi
or edx, ecx
and cl, 7
imul edx, edi
xor dword [0xbac22c], edx
mov dl, 1
shl dl, cl
or byte [0xbac233], dl
mov ecx, ebp
xor eax, eax
add ecx, fcn.008240c0
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [eax + ecx*2 + 6]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbac233], al
mov edx, dword [esp]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov word [ebx + edx*2], si
mov eax, dword [eax + 0x20]
mov dword [eax + edx*4], str.2_p0
inc edx
movzx edi, word [ecx + 0x2a]
inc esi
movsx eax, di
cmp esi, eax
jl 0x7f5d0f
mov ecx, dword [esp + 4]
call fcn.007f6bd0
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00980459
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret