Function at 0x4537d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
movzx eax, byte [edi + 0x1b6]
push ebx
push ebp
mov ebp, dword [edi]
test dword [ebp + 0xc], 0x400000
push esi
mov dword [esp + 0x24], eax
je 0x453cd2
cmp dword [edi + 0xc], 0
jne 0x453811
mov eax, ebp
call fcn.0042a6c0
test eax, eax
mov dword [edi + 0xc], eax
je 0x453811
push 0x84
call fcn.0042a890
add esp, 4
mov esi, dword [esp + 0x34]
mov edx, dword [esi + 0x44]
test edx, edx
mov dword [esp + 0x10], 0xfff0bdc0
je 0x45384f
cmp dword [ebp + 4], 0
mov dword [esp + 0x10], 0
jle 0x45384f
mov eax, dword [ebp + 8]
add eax, 0xc
cmp dword [eax], edx
je 0x45384f
mov ecx, dword [esp + 0x10]
add ecx, 1
add eax, 0x10
cmp ecx, dword [ebp + 4]
mov dword [esp + 0x10], ecx
jl 0x453838
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
mov ebx, dword [esi + 0x24]
shl ecx, 4
mov eax, dword [ecx + edx]
xor ecx, ecx
cmp ebx, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0xc], ebx
je 0x453a55
jmp 0x453888
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x28]
cmp byte [edi + 0x1b6], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ecx
push eax
je 0x4538ad
mov eax, dword [ebx + 8]
push eax
push ebp
call fcn.00425870
add esp, 0xc
jmp 0x4538bb
mov edx, dword [ebx + 8]
push edx
push ecx
push edi
call fcn.00425980
add esp, 0x10
mov esi, eax
test esi, esi
je 0x453a2b
lea eax, [esp + 0x18]
push eax
push ebx
push esi
push edi
lea eax, [esp + 0x30]
call fcn.00452470
add esp, 0x10
test eax, eax
jne 0x453a2b
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4538ef
mov dword [esp + 0x14], eax
jmp 0x453900
mov ecx, dword [ebx + 0x24]
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], edx
mov eax, edx
mov ecx, dword [esp + 0xc]
xor ebx, ebx
cmp dword [ecx + 0x14], ebx
jle 0x453978
jmp 0x453910
mov edx, dword [eax + ebx*4]
mov ecx, dword [esp + 0x34]
cmp edx, dword [ecx + 8]
jne 0x453923
mov dword [eax + ebx*4], 0xffffffff
cmp dword [ebp + 0xf8], 0
je 0x45396c
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45393c
mov edx, dword [eax + 8]
mov eax, dword [edx + ebx*4]
jmp 0x45393f
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
mov edx, dword [esp + 0x10]
lea eax, [eax + eax*2]
mov eax, dword [ecx + eax*8]
push edx
push eax
mov eax, dword [esi + 4]
push eax
mov eax, edi
call fcn.00442010
xor ecx, ecx
add esp, 0xc
cmp eax, 2
mov eax, dword [esp + 0x14]
sete cl
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0xc]
add ebx, 1
cmp ebx, dword [edx + 0x14]
jl 0x453910
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x18]
mov ebx, dword [esp + 0x10]
push eax
push 0
push ecx
push ebx
mov eax, edi
call fcn.00425260
mov eax, dword [esp + 0x48]
add dword [edi + 0x44], 1
add esp, 0x10
test eax, eax
je 0x4539bf
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
push edx
push esi
push ebx
push edi
call fcn.004526f0
add esp, 0x24
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4539e9
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push 1
push eax
mov eax, dword [esp + 0x18]
push edx
push eax
push ecx
push esi
push ebx
push edi
call fcn.004526f0
add esp, 0x24
mov eax, dword [esp + 0x20]
test eax, eax
je 0x453a1c
cmp eax, dword [ebp + 0xf0]
jb 0x453a1c
cmp eax, dword [ebp + 0xf4]
jae 0x453a1c
mov edx, dword [ebp + 0xec]
mov ebx, dword [esp + 0xc]
mov dword [eax], edx
add dword [ebp + 0xe4], 0xffffffff
mov dword [ebp + 0xec], eax
jmp 0x453a40
push eax
call fcn.00410050
mov ebx, dword [esp + 0x10]
add esp, 4
jmp 0x453a40
cmp dword [esp + 0x24], 0
je 0x453cd2
cmp byte [ebp + 0x1e], 0
jne 0x453cd2
mov ebx, dword [ebx + 4]
xor ecx, ecx
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x453880
mov esi, dword [esp + 0x34]
mov ebx, dword [esi + 4]
cmp ebx, ecx
mov dword [esp + 0x2c], ebx
mov eax, ebx
jne 0x453a68
mov dword [esp + 0x20], ecx
jmp 0x453a85
cmp byte [ebx], 0
je 0x453a78
lea ecx, [ecx]
add eax, 1
cmp byte [eax], 0
jne 0x453a70
sub eax, ebx
and eax, 0x3fffffff
mov ecx, eax
mov dword [esp + 0x20], eax
mov esi, dword [esi + 0x44]
add esi, 0x34
cmp dword [esi + 0xc], 0
mov dword [esp + 0x28], esi
je 0x453ad1
xor eax, eax
cmp dword [esp + 0x20], eax
mov edx, ebx
jle 0x453ac7
nop
movzx esi, byte [edx]
movzx esi, byte [esi + 0x4bb470]
lea ebx, [eax*8]
xor esi, ebx
sub ecx, 1
xor eax, esi
add edx, 1
test ecx, ecx
jg 0x453aa0
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
xor edx, edx
div dword [esi]
jmp 0x453ad3
xor edx, edx
push ebx
mov ebx, ecx
mov ecx, esi
call fcn.004136f0
xor esi, esi
add esp, 4
cmp eax, esi
je 0x453cd2
mov ebx, dword [eax + 8]
cmp ebx, esi
je 0x453cd2
jmp 0x453b00
cmp byte [ebx + 0x18], 0
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
jne 0x453b23
cmp dword [edi + 0x1a8], esi
jne 0x453b23
cmp byte [edi + 0x158], 0
je 0x453cc7
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x20]
push eax
push ebx
push ecx
push edi
lea eax, [esp + 0x28]
call fcn.00452470
add esp, 0x10
test eax, eax
je 0x453b58
cmp dword [esp + 0x24], esi
je 0x453cd2
cmp byte [ebp + 0x1e], 0
jne 0x453cd2
jmp 0x453cc7
cmp byte [ebp + 0x1e], 0
jne 0x453c8d
cmp byte [ebp + 0xe2], 0
je 0x453ba4
cmp word [ebp + 0xe0], 0x40
jb 0x453ba4
mov esi, dword [ebp + 0xec]
test esi, esi
je 0x453ba4
mov edx, dword [esi]
add dword [ebp + 0xe4], 1
mov eax, dword [ebp + 0xe4]
cmp eax, dword [ebp + 0xe8]
mov dword [ebp + 0xec], edx
jle 0x453bb8
mov dword [ebp + 0xe8], eax
jmp 0x453bb8
push pe_nt_image_headers32
call fcn.0040fd80
add esp, 4
test eax, eax
jne 0x453bb6
mov byte [ebp + 0x1e], 1
mov esi, eax
test esi, esi
je 0x453c8d
push pe_nt_image_headers32
push 0
push esi
call fcn.00482a10
mov word [esi + 2], 1
movsx eax, word [esi]
add esp, 0xc
push eax
push 1
push ebp
mov eax, esi
call fcn.004297a0
add esp, 0xc
cmp byte [ebp + 0x1e], 0
mov esi, eax
jne 0x453c82
movsx eax, word [esi]
lea ecx, [eax*8]
sub ecx, eax
mov dword [esi + ecx*8 - 0x2c], 0
mov dword [esi + ecx*8 - 0x30], 0
mov edx, dword [ebx]
lea eax, [esi + ecx*8 - 0x30]
mov dword [esi + 0x14], edx
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov eax, edx
mov ecx, 1
add word [eax + 0x20], cx
mov edx, dword [edi + 0x44]
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x20], edx
add dword [edi + 0x44], ecx
test eax, eax
je 0x453c56
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x20]
push eax
push ebx
push ecx
push edx
push esi
push edi
call fcn.00452e80
add esp, 0x20
mov eax, dword [esp + 0x38]
test eax, eax
je 0x453c7b
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
push ebx
push ecx
push edx
push esi
push edi
call fcn.00452e80
add esp, 0x20
mov dword [esi + 0xc], 0
push esi
mov eax, ebp
call fcn.004299e0
add esp, 4
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, esi
je 0x453cbe
cmp eax, dword [ebp + 0xf0]
jb 0x453cbe
cmp eax, dword [ebp + 0xf4]
jae 0x453cbe
mov ecx, dword [ebp + 0xec]
mov dword [eax], ecx
add dword [ebp + 0xe4], 0xffffffff
mov dword [ebp + 0xec], eax
jmp 0x453cc7
push eax
call fcn.00410050
add esp, 4
mov ebx, dword [ebx + 0xc]
cmp ebx, esi
jne 0x453b00
pop esi
pop ebp
pop ebx
add esp, 0x24
ret