Function at 0x10005333
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
and dword [ebp - 0xc], 0
push edi
push dword [ebp + 0x20]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10003734
cmp eax, 0xffffffff
je 0x10005598
push 0x2f
call fcn.10001000
mov dword [ebp + 0x20], eax
test eax, eax
je 0x10005598
cmp byte [0x1001f8fc], 0
mov ecx, dword [0x1001fb14]
mov byte [eax + 0xf], 4
lea edx, [ecx + 4]
mov byte [eax + 0x1f], 0x10
mov byte [eax + 0x2c], 1
movzx edx, dx
je 0x1000539d
add ecx, 8
movzx edx, cx
mov edi, dword [ebp - 0xc]
push edx
push dword [0x1001faec]
push dword [0x1001fae8]
push 0x2f
push eax
push 0x20
push edi
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10004afe
lea esi, [ebp + 0x20]
mov dword [ebp - 4], eax
call fcn.100020d0
cmp dword [ebp - 4], 0xffffffff
je 0x10005598
cmp dword [0x1001fb40], 0
jne 0x100054e8
xor eax, eax
cmp byte [0x1001f8fc], al
setne al
lea eax, [eax*4 + 4]
mov dword [ebp - 8], eax
add eax, 0xf
movzx eax, ax
mov dword [ebp - 0x14], eax
movzx eax, ax
push eax
call fcn.10001000
mov esi, eax
mov dword [ebp + 0x20], esi
test esi, esi
je 0x10005598
cmp byte [0x1001f8fc], 0
mov ecx, dword [0x1001faec]
movzx eax, word [0x1001fb20]
je 0x10005442
cdq
add eax, dword [0x1001fae8]
adc edx, ecx
mov dword [esi + 0xf], eax
mov dword [esi + 0x13], edx
jmp 0x1000544b
add eax, dword [0x1001fae8]
mov dword [esi + 0xf], eax
movzx eax, word [0x1001fb10]
push eax
push ecx
push dword [0x1001fae8]
push dword [ebp - 0x14]
push esi
push dword [ebp - 8]
push edi
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10004afe
lea esi, [ebp + 0x20]
mov dword [ebp - 4], eax
call fcn.100020d0
cmp dword [ebp - 4], 0xffffffff
je 0x10005598
xor esi, esi
inc esi
push 0x10
mov dword [0x1001fb40], esi
call fcn.10001000
mov dword [ebp + 0x20], eax
test eax, eax
je 0x10005598
movzx ecx, word [0x1001fb34]
push ecx
push dword [0x1001faec]
mov byte [eax + 0xf], 1
push dword [0x1001fae8]
push 0x10
push eax
push esi
push edi
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10004afe
lea esi, [ebp + 0x20]
mov dword [ebp - 4], eax
call fcn.100020d0
cmp dword [ebp - 4], 0xffffffff
je 0x10005598
push 0x13
call fcn.10001000
mov dword [ebp + 0x20], eax
test eax, eax
je 0x10005598
push 0x36
pop ecx
mov word [eax + 0x11], di
mov word [eax + 0xf], cx
movzx ecx, word [0x1001fb20]
push ecx
push dword [0x1001faec]
push dword [0x1001fae8]
push 0x13
push eax
push 4
push edi
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10004afe
lea esi, [ebp + 0x20]
mov dword [ebp - 4], eax
call fcn.100020d0
cmp dword [ebp - 4], 0xffffffff
je 0x10005598
cmp dword [0x1001fb3c], 0
je 0x100055e1
push 0x10
call fcn.10001000
mov esi, eax
mov dword [ebp + 0x20], esi
test esi, esi
je 0x10005598
movzx eax, word [0x1001fb1c]
push eax
push dword [0x1001faec]
push dword [0x1001fae8]
push 0x10
push esi
push 1
push edi
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10004afe
cmp eax, 0xffffffff
jne 0x100055a0
lea esi, [ebp + 0x20]
call fcn.100020d0
or eax, 0xffffffff
jmp 0x10005a40
movzx eax, word [0x1001fb2c]
push eax
push dword [0x1001faec]
mov byte [esi + 0xf], 2
push dword [0x1001fae8]
push 0x10
push esi
push 1
push edi
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10004afe
lea esi, [ebp + 0x20]
mov dword [ebp - 4], eax
call fcn.100020d0
cmp dword [ebp - 4], 0xffffffff
je 0x10005598
cmp dword [0x1001fb38], 0
je 0x10005640
push 0x10
call fcn.10001000
mov dword [ebp + 0x20], eax
test eax, eax
je 0x10005598
movzx ecx, word [0x1001fb30]
push ecx
push dword [0x1001faec]
push dword [0x1001fae8]
push 0x10
push eax
push 1
push edi
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10004afe
lea esi, [ebp + 0x20]
mov dword [ebp - 4], eax
call fcn.100020d0
cmp dword [ebp - 4], 0xffffffff
je 0x10005598
and dword [0x1001fb38], 0
xor eax, eax
cmp byte [0x1001f8fc], al
setne al
lea eax, [eax*4 + 4]
mov dword [ebp - 8], eax
add eax, 0xf
movzx esi, ax
movzx eax, si
push eax
call fcn.10001000
mov dword [ebp + 0x20], eax
test eax, eax
je 0x10005598
movzx ecx, word [0x1001fb28]
push ecx
push dword [0x1001faec]
push dword [0x1001fae8]
push esi
push eax
push dword [ebp - 8]
push edi
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10004afe
lea esi, [ebp + 0x20]
mov edi, eax
call fcn.100020d0
cmp edi, 0xffffffff
je 0x10005598
push 0xf
mov dword [0x1001fb3c], 1
call fcn.10001000
mov dword [ebp + 0x20], eax
xor eax, eax
cmp dword [ebp + 0x20], eax
je 0x10005598
push eax
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0x20]
mov dword [ebp - 0xc], eax
push eax
push eax
mov dword [ebp - 4], eax
movzx eax, word [0x1001fb44]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0xf
pop eax
call fcn.10003986
mov edi, eax
call fcn.100020d0
cmp edi, 0xffffffff
je 0x10005598
movzx eax, word [0x1001fb28]
mov ecx, dword [0x1001fae8]
mov esi, dword [0x1001faec]
lea edi, [ebp - 0xc]
push edi
lea edi, [ebp - 4]
push edi
push dword [ebp - 8]
cdq
push esi
push ecx
add eax, ecx
adc edx, esi
push edx
push eax
mov eax, dword [ebp + 0x1c]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10004c1c
cmp eax, 0xffffffff
jne 0x10005757
lea esi, [ebp - 4]
jmp 0x10005593
cmp byte [0x1001f8fc], 0
je 0x1000578c
cmp word [ebp - 0xc], 8
jb 0x1000574f
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push eax
mov edx, eax
push ecx
mov dword [0x1001faf8], ecx
mov dword [0x1001fafc], eax
sar edx, 0x1f
call fcn.10002088
test eax, eax
jne 0x100057ab
jmp 0x1000574f
cmp word [ebp - 0xc], 4
jb 0x1000574f
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and dword [0x1001fafc], 0
mov dword [0x1001faf8], eax
cmp eax, 0x80000000
jb 0x1000574f
lea esi, [ebp - 4]
call fcn.100020d0
mov esi, dword [0x1001faf8]
mov edi, dword [0x1001fafc]
add esi, 0x100
adc edi, 0
xor eax, eax
cmp byte [0x1001f8fc], al
mov dword [ebp - 0x20], esi
sete al
mov dword [ebp - 0x1c], edi
lea eax, [eax + eax + 0xe5c]
movzx eax, ax
mov dword [ebp - 0x14], eax
movzx eax, ax
push eax
call fcn.10001000
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10005598
cmp byte [0x1001f8fc], 0
je 0x10005836
mov ecx, 0x1e8
mov word [eax + 0xf], cx
mov byte [eax + 0x14], 0xc3
mov dword [ebp + 0x20], 0x100131a8
lea ecx, [eax + 0x15]
mov dword [ebp - 8], 0xe47
mov edx, dword [ebp + 0x20]
mov dl, byte [edx]
xor dl, 0xcc
inc dword [ebp + 0x20]
mov byte [ecx], dl
inc ecx
dec dword [ebp - 8]
jne 0x10005821
jmp 0x1000586c
mov ecx, 0x3e8
mov word [eax + 0xf], cx
mov ecx, 0x4c2
mov word [eax + 0x14], cx
mov dword [ebp + 0x20], 0x100131a8
lea ecx, [eax + 0x17]
mov dword [ebp - 8], 0xe47
mov edx, dword [ebp + 0x20]
mov dl, byte [edx]
xor dl, 0xcc
inc dword [ebp + 0x20]
mov byte [ecx], dl
inc ecx
dec dword [ebp - 8]
jne 0x10005859
cmp byte [0x1001f8fc], 0
je 0x10005882
mov dword [ebp - 4], 8
mov byte [ebp + 0x23], 0x70
jmp 0x1000588d
mov dword [ebp - 4], 4
mov byte [ebp + 0x23], 0x38
push 0
push edi
push esi
push dword [ebp - 0x14]
push eax
push dword [ebp - 4]
push dword [ebp + 0x1c]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10004afe
lea esi, [ebp - 0xc]
mov edi, eax
call fcn.100020d0
or esi, 0xffffffff
cmp edi, esi
jne 0x100058c5
mov eax, esi
jmp 0x10005a40
mov ecx, dword [ebp - 0x20]
cmp dword [0x1001faf0], ecx
jne 0x100058da
mov eax, dword [0x1001faf4]
cmp eax, dword [ebp - 0x1c]
je 0x1000592c
mov edx, dword [0x1001fb08]
mov eax, dword [0x1001fb24]
lea eax, [edx + eax - 0x200]
movzx eax, ax
mov edx, 0xfe80
cmp ax, dx
jbe 0x100058fd
mov edi, esi
jmp 0x1000591c
push eax
push dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
push ecx
push dword [ebp + 0x1c]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10004820
mov edi, eax
mov eax, dword [ebp - 0x20]
mov dword [0x1001faf0], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x1001faf4], eax
cmp edi, esi
je 0x100058be
movzx eax, byte [ebp + 0x23]
cdq
mov esi, eax
add esi, dword [0x1001fae0]
adc edx, dword [0x1001fae4]
mov dword [ebp - 0xc], edx
cmp dword [0x1001faf0], esi
jne 0x10005956
cmp dword [0x1001faf4], edx
je 0x100059a6
mov ecx, dword [0x1001fb24]
mov eax, dword [0x1001fb08]
lea eax, [eax + ecx - 0x200]
movzx eax, ax
mov ecx, 0xfe80
cmp ax, cx
jbe 0x1000597a
or edi, 0xffffffff
jmp 0x1000599a
push eax
mov eax, dword [ebp - 4]
push edx
push esi
push dword [ebp + 0x1c]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10004820
mov edx, dword [ebp - 0xc]
mov edi, eax
mov dword [0x1001faf0], esi
mov dword [0x1001faf4], edx
or eax, 0xffffffff
cmp edi, eax
je 0x10005a40
mov eax, dword [ebp - 4]
xor esi, esi
push esi
push dword [ebp - 0x1c]
mov dword [0x1001fb08], 0x200
push dword [ebp - 0x20]
push esi
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10004820
or edi, 0xffffffff
cmp eax, edi
je 0x10005a3e
push 0xc
call fcn.10001000
mov dword [ebp + 0x14], eax
cmp eax, esi
je 0x10005a3e
push 0xd
mov dword [ebp + 0xc], esi
call fcn.10001000
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x10005a3e
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push 0xd
push eax
push dword [ebp + 0x14]
push pe_nt_image_headers32
push dword [ebp + 0x18]
push ebx
push 0xfeff
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call fcn.1000330e
lea esi, [ebp + 0x14]
mov edi, eax
call fcn.100020d0
lea esi, [ebp - 0xc]
call fcn.100020d0
mov eax, edi
pop edi
pop esi
leave
ret 0x1c