Function at 0x5496e8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff14
mov dword [esp], edx
mov ebx, eax
mov dword [esp + 8], ebx
lea ecx, [ebx + 0x200]
mov esi, ecx
add esi, 0x100
mov edi, pe_nt_image_headers32
lea eax, [ebx + 0x100]
mov dl, byte [eax]
mov ebp, dword [esp + 8]
xor byte [ebp], dl
xor byte [ecx], dl
xor byte [esi], dl
inc dword [esp + 8]
inc ecx
inc esi
inc eax
dec edi
jne 0x549714
mov edx, 0x5499f8
mov eax, ebx
mov ecx, 6
call fcn.0040a6e4
test eax, eax
sete byte [esp + 4]
cmp byte [esp + 4], 0
je 0x5499e6
mov eax, dword [esp]
xor ecx, ecx
mov edx, 0x230
call fcn.00402f1c
mov eax, dword [esp]
mov byte [eax], 0
xor eax, eax
mov al, byte [ebx + 8]
mov edx, dword [esp]
mov dword [edx + 4], eax
lea eax, [esp + 0xc]
lea edx, [ebx + 9]
mov ecx, 0x20
call fcn.004030a4
lea edx, [esp + 0xc]
mov eax, dword [esp]
add eax, 8
mov cl, 0x20
call fcn.00402e0c
mov eax, dword [ebx + 0x29]
mov edx, dword [esp]
mov dword [edx + 0x2c], eax
mov al, byte [ebx + 0x2d]
mov edx, dword [esp]
mov byte [edx + 0x30], al
mov al, byte [ebx + 0x2e]
mov edx, dword [esp]
mov byte [edx + 0x31], al
mov al, byte [ebx + 0x2f]
mov edx, dword [esp]
mov byte [edx + 0x32], al
lea eax, [esp + 0xc]
lea edx, [ebx + 0x30]
mov ecx, 0x20
call fcn.004030a4
lea edx, [esp + 0xc]
mov eax, dword [esp]
add eax, 0x33
mov cl, 0x20
call fcn.00402e0c
lea eax, [esp + 0xc]
lea edx, [ebx + 0x50]
mov ecx, 0x20
call fcn.004030a4
lea edx, [esp + 0xc]
mov eax, dword [esp]
add eax, 0x54
mov cl, 0x20
call fcn.00402e0c
lea eax, [esp + 0x30]
lea edx, [ebx + 0xa0]
mov ecx, 0x10
call fcn.004030a4
lea edx, [esp + 0x30]
mov eax, dword [esp]
add eax, 0x75
mov cl, 0x10
call fcn.00402e0c
cmp word [ebx + 0xc4], 0xa
jl 0x549957
cmp word [ebx + 0xc6], 0
je 0x549957
mov edx, 0x5499f8
lea eax, [ebx + 0x200]
mov ecx, 6
call fcn.0040a6e4
test eax, eax
jne 0x549957
lea eax, [esp + 0x44]
lea edx, [ebx + 0x208]
mov ecx, 0x32
call fcn.004030a4
lea edx, [esp + 0x44]
mov eax, dword [esp]
add eax, 0xb9
mov cl, 0x32
call fcn.00402e0c
lea eax, [esp + 0x44]
lea edx, [ebx + 0x23a]
mov ecx, 0x32
call fcn.004030a4
lea edx, [esp + 0x44]
mov eax, dword [esp]
add eax, 0xec
mov cl, 0x32
call fcn.00402e0c
lea eax, [esp + 0x44]
lea edx, [ebx + 0x26c]
mov ecx, 0x32
call fcn.004030a4
lea edx, [esp + 0x44]
mov eax, dword [esp]
add eax, 0x11f
mov cl, 0x32
call fcn.00402e0c
lea eax, [esp + 0x78]
lea edx, [ebx + 0x29e]
mov ecx, 0x1e
call fcn.004030a4
lea edx, [esp + 0x78]
mov eax, dword [esp]
add eax, 0x152
mov cl, 0x1e
call fcn.00402e0c
mov eax, dword [esp]
mov edx, dword [ebx + 0x2bc]
mov dword [eax + 0x190], edx
mov edx, dword [ebx + 0x2c0]
mov dword [eax + 0x194], edx
mov eax, dword [esp]
mov edx, dword [ebx + 0x2c4]
mov dword [eax + 0x198], edx
mov edx, dword [ebx + 0x2c8]
mov dword [eax + 0x19c], edx
lea eax, [esp + 0x98]
lea edx, [ebx + 0x2d4]
mov ecx, 0x50
call fcn.004030a4
lea edx, [esp + 0x98]
mov eax, dword [esp]
add eax, 0x1a0
mov cl, 0x50
call fcn.00402e0c
jmp 0x5499a2
lea eax, [esp + 0xc]
lea edx, [ebx + 0x80]
mov ecx, 0x20
call fcn.004030a4
lea edx, [esp + 0xc]
mov eax, dword [esp]
add eax, 0xec
mov cl, 0x32
call fcn.00402e0c
lea eax, [esp + 0x30]
lea edx, [ebx + 0x70]
mov ecx, 0x10
call fcn.004030a4
lea edx, [esp + 0x30]
mov eax, dword [esp]
add eax, 0x152
mov cl, 0x1e
call fcn.00402e0c
mov ax, word [ebx + 0xb0]
mov edx, dword [esp]
mov word [edx + 0x172], ax
mov ax, word [ebx + 0xb2]
mov edx, dword [esp]
mov word [edx + 0x178], ax
mov edx, dword [esp]
cmp ax, 1
jne 0x5499e6
mov edx, dword [esp]
add edx, 0x17a
lea eax, [ebx + 0xb4]
mov ecx, 0x10
call fcn.00402a14
mov al, byte [esp + 4]
add esp, 0xec
pop ebp
pop edi
pop esi
pop ebx
ret