Function at 0x40397c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
cmp dword [0x48d180], edi
mov esi, eax
jne 0x40399d
call fcn.0040372e
mov dword [0x48d180], 1
mov eax, dword [ebp + 0xc]
sub eax, 0x80
je 0x4039c9
sub eax, 0x40
je 0x4039c1
sub eax, 0x40
je 0x4039b9
push 0xffffffffffffffe0
pop eax
jmp 0x403bf6
mov dword [esi], 0xe
jmp 0x4039cf
mov dword [esi], 0xc
jmp 0x4039cf
mov dword [esi], 0xa
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 8]
shr ecx, 5
push ebx
mov dword [esi + 4], eax
mov dword [ebp + 0xc], ecx
je 0x403a0c
mov ecx, dword [ebp + 8]
add ecx, 2
movzx ebx, byte [ecx - 1]
xor edx, edx
mov dh, byte [ecx + 1]
mov dl, byte [ecx]
add ecx, 4
shl edx, 8
or edx, ebx
movzx ebx, byte [ecx - 6]
shl edx, 8
or edx, ebx
mov dword [eax + edi*4], edx
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x4039e7
mov esi, dword [esi]
sub esi, 0xa
je 0x403b83
dec esi
dec esi
je 0x403b01
dec esi
dec esi
jne 0x403bf3
and dword [ebp + 0xc], esi
mov esi, 0xff
mov ecx, dword [eax + 0x1c]
and ecx, esi
xor edx, edx
mov dh, byte [ecx + 0x48a3f0]
movzx ecx, byte [eax + 0x1f]
movzx ecx, byte [ecx + 0x48a3f0]
xor edx, ecx
movzx ecx, byte [eax + 0x1e]
movzx ecx, byte [ecx + 0x48a3f0]
shl edx, 8
xor edx, ecx
movzx ecx, byte [eax + 0x1d]
movzx ecx, byte [ecx + 0x48a3f0]
mov edi, dword [eax + 8]
shl edx, 8
xor edx, ecx
mov ecx, dword [ebp + 0xc]
xor edx, dword [ecx + 0x48acf0]
lea ebx, [eax + 0x20]
mov ecx, edx
xor ecx, dword [eax]
mov edx, dword [eax + 4]
xor edx, ecx
mov dword [ebx], ecx
mov ecx, dword [eax + 0xc]
xor edi, edx
xor ecx, edi
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x24], edx
movzx edx, byte [eax + 0x2f]
mov dword [ebp - 4], ebx
xor ebx, ebx
mov dword [eax + 0x28], edi
mov bh, byte [edx + 0x48a3f0]
movzx edx, byte [eax + 0x2e]
movzx edx, byte [edx + 0x48a3f0]
xor ebx, edx
movzx edx, byte [eax + 0x2d]
movzx edx, byte [edx + 0x48a3f0]
add dword [ebp + 0xc], 4
and ecx, esi
movzx ecx, byte [ecx + 0x48a3f0]
shl ebx, 8
xor ebx, edx
mov edx, dword [eax + 0x14]
shl ebx, 8
xor ecx, ebx
xor ecx, dword [eax + 0x10]
mov ebx, dword [ebp - 4]
xor edx, ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [eax + 0x18]
xor ecx, edx
mov dword [eax + 0x38], ecx
xor ecx, dword [eax + 0x1c]
cmp dword [ebp + 0xc], 0x1c
mov dword [eax + 0x34], edx
mov dword [eax + 0x3c], ecx
mov eax, ebx
jb 0x403a2f
jmp 0x403bf3
xor ebx, ebx
mov esi, 0xff
mov ecx, dword [eax + 0x14]
and ecx, esi
xor edx, edx
mov dh, byte [ecx + 0x48a3f0]
movzx ecx, byte [eax + 0x17]
movzx ecx, byte [ecx + 0x48a3f0]
xor edx, ecx
movzx ecx, byte [eax + 0x16]
movzx ecx, byte [ecx + 0x48a3f0]
shl edx, 8
xor edx, ecx
movzx ecx, byte [eax + 0x15]
movzx ecx, byte [ecx + 0x48a3f0]
shl edx, 8
xor edx, ecx
xor edx, dword [ebx + 0x48acf0]
lea edi, [eax + 0x18]
mov ecx, edx
xor ecx, dword [eax]
mov edx, dword [eax + 4]
xor edx, ecx
mov dword [edi], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x1c], edx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x20], ecx
mov ecx, dword [eax + 0x10]
xor ecx, edx
mov dword [eax + 0x28], ecx
xor ecx, dword [eax + 0x14]
add ebx, 4
cmp ebx, 0x20
mov dword [eax + 0x24], edx
mov dword [eax + 0x2c], ecx
mov eax, edi
jb 0x403b08
jmp 0x403bf3
xor ebx, ebx
mov esi, 0xff
mov ecx, dword [eax + 0xc]
and ecx, esi
xor edx, edx
mov dh, byte [ecx + 0x48a3f0]
movzx ecx, byte [eax + 0xf]
movzx ecx, byte [ecx + 0x48a3f0]
xor edx, ecx
movzx ecx, byte [eax + 0xe]
movzx ecx, byte [ecx + 0x48a3f0]
shl edx, 8
xor edx, ecx
movzx ecx, byte [eax + 0xd]
movzx ecx, byte [ecx + 0x48a3f0]
shl edx, 8
xor edx, ecx
xor edx, dword [ebx + 0x48acf0]
lea edi, [eax + 0x10]
mov ecx, edx
xor ecx, dword [eax]
mov edx, dword [eax + 4]
xor edx, ecx
mov dword [edi], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x18], ecx
xor ecx, dword [eax + 0xc]
add ebx, 4
cmp ebx, 0x28
mov dword [eax + 0x14], edx
mov dword [eax + 0x1c], ecx
mov eax, edi
jb 0x403b8a
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret