Function at 0x6b594c10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
shr ebx, 4
mov ecx, dword [edi + 0x50]
mov eax, ecx
add eax, ebx
mov dword [esp + 0x18], eax
mov esi, dword [edi + 0x54]
mov edx, esi
adc esi, 0
mov dword [esp + 4], ebx
test ebx, ebx
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x20], eax
mov ebx, dword [ebp + 0xc]
je 0x6b594ca6
test esi, esi
jne 0x6b594ca6
cmp dword [edi + 0x10], 0
je 0x6b594ca6
mov ecx, dword [esp + 0x18]
shr ecx, 1
mov edx, 0x20
mov eax, 0x20
je 0x6b594c6c
bsr eax, ecx
xor eax, 0x1f
sub edx, eax
mov ecx, edi
call fcn.6b594a50
test eax, eax
je 0x6b594f0c
mov eax, dword [edi + 0x50]
inc eax
lea ecx, [edi + 0x78]
lea edx, [edi + 0x88]
push edx
push dword [edi + 0x40]
push ecx
push eax
push dword [edi + 8]
push dword [esp + 0x18]
push dword [ebp + 0x10]
push ebx
call dword [edi + 0x10]
add esp, 0x20
jmp 0x6b594e3a
add ecx, 1
adc edx, 0
cmp dword [esp + 0x18], ecx
mov eax, esi
mov dword [esp + 0x24], edx
sbb eax, edx
jb 0x6b594e3a
mov dword [esp + 0x1c], esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
mov dword [esp + 0x28], ecx
test cl, 1
jne 0x6b594d00
xor edx, edx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
nop
nop
nop
nop
nop
nop
nop
mov esi, eax
shld esi, ecx, 0x1f
shr eax, 1
inc edx
test cl, 2
mov ecx, esi
je 0x6b594cf0
mov ecx, edi
call fcn.6b594a50
test eax, eax
je 0x6b594f0c
mov dword [esp + 4], ebx
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
xor ecx, dword [edi + 0x78]
mov dword [esp + 0x2c], ecx
xor ebx, dword [edi + 0x7c]
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x78], ecx
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 8]
xor edx, dword [edi + 0x80]
xor esi, dword [edi + 0x84]
mov dword [edi + 0x84], esi
mov dword [edi + 0x80], edx
mov ecx, edi
mov edi, dword [esp + 4]
mov edi, dword [edi + 0xc]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 4]
mov edi, dword [edi + 8]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 4]
mov eax, dword [edi]
mov edi, dword [esp + 4]
mov edi, dword [edi + 4]
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
xor dword [ecx + 0x88], eax
xor dword [esp + 0x2c], eax
xor dword [ecx + 0x8c], edi
xor ebx, edi
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
xor dword [ecx + 0x90], edi
xor dword [ecx + 0x94], eax
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov ebx, dword [esp + 4]
xor edx, edi
mov edi, ecx
xor esi, dword [esp + 0x30]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
add ebx, 0x10
push dword [ecx + 8]
lea eax, [esp + 0xc]
push eax
push eax
call dword [ecx]
add esp, 0xc
mov eax, dword [edi + 0x7c]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
xor ecx, dword [edi + 0x78]
xor dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov eax, dword [edi + 0x84]
xor edx, dword [edi + 0x80]
xor dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
mov dword [esi + 0xc], eax
mov dword [esi + 8], edx
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov dword [esi], ecx
add esi, 0x10
mov dword [esp + 0x20], esi
mov ecx, dword [esp + 0x28]
add ecx, 1
mov edx, dword [esp + 0x24]
adc edx, 0
cmp dword [esp + 0x18], ecx
mov esi, dword [esp + 0x1c]
mov eax, esi
mov dword [esp + 0x24], edx
sbb eax, edx
jae 0x6b594cd0
mov dword [esp + 4], ebx
mov ebx, dword [ebp + 0x14]
and ebx, 0xf
je 0x6b594efb
mov dword [esp + 0x1c], esi
lea eax, [edi + 0x78]
mov ecx, dword [edi + 0x24]
mov edx, dword [edi + 8]
mov esi, dword [edi + 0x20]
xor dword [edi + 0x78], esi
xor dword [edi + 0x7c], ecx
mov ecx, dword [edi + 0x2c]
mov esi, dword [edi + 0x28]
xor dword [edi + 0x80], esi
xor dword [edi + 0x84], ecx
lea ecx, [esp + 8]
push edx
push ecx
push eax
call dword [edi]
mov edx, ebx
add esp, 0xc
xor eax, eax
mov ebx, dword [esp + 4]
mov esi, dword [esp + 0x20]
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 8]
xor cl, byte [ebx + eax]
mov byte [esi + eax], cl
inc eax
cmp edx, eax
jne 0x6b594e90
mov eax, 0x10
sub eax, edx
lea ecx, [esp + edx + 8]
push eax
push 0
push ecx
mov esi, ebx
mov ebx, edx
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push esi
lea eax, [esp + 0x10]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [esp + ebx + 8], pe_nt_image_headers32
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
xor dword [edi + 0x88], eax
xor dword [edi + 0x8c], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
xor dword [edi + 0x94], ecx
xor dword [edi + 0x90], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], esi
mov eax, 1
jmp 0x6b594f0e
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret