Function at 0x10596d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov dword [esp + 0xc], ecx
cmp dword [ecx + 8], 0
je 0x10597d0
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x10597d0
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x80b0a0d
mov word [esp + 8], 0
mov ebx, 0x9971d82
mov ecx, 0x7668e27d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea edi, [ebx - 0x97fffff]
mov esi, edi
or esi, 0xff8b4529
lea edx, [ecx + esi]
mov eax, ebx
sub eax, esi
and eax, 0x934be76
mov esi, edx
and esi, 0x36080009
or esi, eax
and edi, 0x141886
xor esi, edi
and edi, edx
movzx eax, byte [esp + ebx - 0x9971d7e]
xor esi, 0x4934fe76
or edi, esi
xor edi, eax
xor edi, 0xff8b4529
lea eax, [edi + 0x500c6c70]
mov edx, edi
and edx, 1
add edx, edi
add edx, 0x500c6c70
mov esi, eax
xor eax, 1
add edx, eax
and esi, 0xfe
sub edx, esi
mov byte [esp + ebx - 0x9971d7e], dl
inc ebx
dec ecx
cmp ebx, 0x9971d88
jne 0x1059720
mov eax, dword [esp + 4]
mov edi, dword [0xefa7f4]
test edi, edi
je 0x1059841
xor esi, esi
mov ebx, dword [0xefa7f8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebx + esi*8], 0x2dedf0b8
je 0x1059821
inc esi
cmp edi, esi
jne 0x10597c0
jmp 0x1059841
mov dword [esp + 4], 0x23626198
mov byte [esp + 8], 0
mov eax, pe_nt_image_headers32
mov ecx, 0x18
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx - 0x14]
lea esi, [edx + edx]
not esi
add esi, edx
mov ebx, ecx
or ebx, edx
not edx
or edx, esi
and edx, ecx
add ebx, eax
or ebx, edx
add bl, 0x88
mov byte [esp + ecx - 0x14], bl
dec eax
inc ecx
cmp ecx, 0x1d
jne 0x10597f0
mov eax, dword [esp + 4]
jmp 0x1059985
mov edx, dword [ebx + esi*8 + 4]
cmp edx, eax
je 0x1059841
push dword [ebp + 8]
push dword [esp + 0x14]
push 8
push edx
push dword [0xefa7fc]
call fcn.0105c1a0
add esp, 0x14
mov edi, dword [ebp + 0xc]
cmp edi, 1
mov esi, dword [ebp + 0x10]
mov ecx, esi
sbb ecx, 0
jl 0x1059974
cmp eax, 0xc000010a
jne 0x1059974
mov ecx, 0xffffd8f0
mov eax, edi
mul ecx
sub edx, edi
imul ecx, esi, 0xffffd8f0
add ecx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esp + 4], 0x80b0a0d
mov word [esp + 8], 0
mov esi, 0x9971d82
mov eax, 0x7668e27d
nop
nop
mov dword [esp + 0x10], eax
lea edi, [esi - 0x97fffff]
mov ecx, edi
or ecx, 0xff8b4529
lea edx, [eax + ecx]
mov eax, esi
sub eax, ecx
and eax, 0x934be76
mov ebx, edx
and ebx, 0x36080009
or ebx, eax
and edi, 0x141886
xor ebx, edi
and edi, edx
movzx eax, byte [esp + esi - 0x9971d7e]
xor ebx, 0x4934fe76
or edi, ebx
xor edi, eax
xor edi, 0xff8b4529
lea eax, [edi + 0x500c6c70]
mov ecx, edi
and ecx, 1
lea edx, [ecx + edi]
add edx, 0x500c6c70
mov ecx, eax
xor eax, 1
add edx, eax
mov eax, dword [esp + 0x10]
and ecx, 0xfe
sub edx, ecx
mov byte [esp + esi - 0x9971d7e], dl
inc esi
dec eax
cmp esi, 0x9971d88
jne 0x10598a0
mov eax, dword [esp + 4]
mov esi, dword [0xefa7f4]
test esi, esi
je 0x1059974
xor edi, edi
mov ebx, dword [0xefa7f8]
nop
nop
nop
nop
cmp dword [ebx + edi*8], 0x4e66b5a3
je 0x1059950
inc edi
cmp esi, edi
jne 0x1059940
jmp 0x1059974
mov edx, dword [ebx + edi*8 + 4]
cmp edx, eax
je 0x1059974
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x1c]
push 0xc
push edx
push dword [0xefa7fc]
call fcn.0105c1a0
add esp, 0x18
test eax, eax
js 0x1059985
mov ecx, dword [esp + 0xc]
mov esi, eax
call fcn.010595c0
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc