Function at 0x40151a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x34], ebx
shr edi, 4
xor ebx, ebx
mov esi, edi
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x34]
shl esi, 4
mov dword [ebp - 0x30], esi
mov esi, edx
sub esi, dword [ebp - 0x30]
mov dword [ecx], ebx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], esi
test edx, edx
je case.default.0x4012fe
mov edx, dword [0x41ef40]
cmp edx, 3
ja case.default.0x4012fe
jmp dword [edx*4 + 0x4017e0]
mov dword [ebp - 0x2c], ebx
test edi, edi
je 0x401348
sub eax, ecx
mov edi, ecx
mov dword [ebp - 0x1c], eax
add eax, edi
mov edx, 0x10
push eax
mov ecx, edi
call fcn.00401af0
add esp, 4
test eax, eax
jne 0x4017cf
mov eax, dword [ebp - 0x2c]
add ebx, 0x10
inc eax
add edi, 0x10
cmp eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
jb 0x401313
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
test esi, esi
je 0x4017b2
cmp esi, 0x10
ja case.default.0x4012fe
add eax, dword [ebp - 0x30]
mov edx, esi
add ecx, dword [ebp - 0x30]
push eax
call fcn.00401af0
add esp, 4
test eax, eax
jne 0x4017cf
mov eax, dword [ebp - 0x34]
add ebx, 0x10
pop edi
pop esi
mov dword [eax], ebx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004051f4
mov esp, ebp
pop ebp
ret
mov edx, dword [0x41ef38]
xor ebx, ebx
test edi, edi
je 0x40143b
mov ecx, edx
lea edi, [ebp - 0x14]
mov edx, dword [ebp - 0x20]
sub ecx, edx
mov eax, edx
mov dword [ebp - 0x1c], ecx
sub eax, edi
mov dword [ebp - 0x38], eax
jmp 0x4013b6
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x18]
xor edi, edi
jmp 0x4013c0
test ebx, ebx
jne 0x4013d7
lea edx, [ebp - 0x14]
add edx, edi
add eax, edx
mov cl, byte [eax + ecx]
xor cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x20]
jmp 0x4013ec
mov ecx, ebx
shl ecx, 4
lea eax, [ecx + esi]
add ecx, edi
mov al, byte [eax + edi - 0x10]
xor al, byte [ecx + edx]
mov byte [ebp + edi - 0x14], al
mov ecx, dword [ebp - 0x1c]
inc edi
mov eax, dword [ebp - 0x38]
cmp edi, 0x10
jb 0x4013c0
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x14]
mov eax, ebx
mov edx, 0x10
shl eax, 4
add eax, dword [ebp - 0x18]
push eax
call fcn.00401af0
add esp, 4
test eax, eax
jne 0x4017cf
mov eax, dword [ebp - 0x24]
inc ebx
mov edx, dword [ebp - 0x20]
add eax, 0x10
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
cmp ebx, dword [ebp - 0x28]
jb 0x4013b3
mov ecx, edx
mov edx, dword [0x41ef38]
jmp 0x40143d
xor eax, eax
test esi, esi
je 0x401502
xor edi, edi
test esi, esi
je 0x401496
mov ebx, dword [ebp - 0x20]
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x1c], eax
mov eax, ecx
lea ecx, [ebp - 0x14]
sub eax, ecx
mov dword [ebp - 0x38], eax
nop
cmp dword [ebp - 0x28], 0
jne 0x401479
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
add edx, edi
add eax, edx
mov cl, byte [eax + ecx]
xor cl, byte [eax]
mov byte [edx], cl
jmp 0x40148e
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
add eax, ecx
add ecx, edi
mov al, byte [eax + edi - 0x10]
xor al, byte [ecx + ebx]
mov byte [ebp + edi - 0x14], al
mov eax, dword [ebp - 0x38]
inc edi
cmp edi, esi
jb 0x401460
cmp esi, 0x10
jae 0x4014dd
mov eax, dword [0x41ef38]
lea ecx, [ebp - 0x14]
mov dl, byte [0x41ef44]
sub eax, ecx
mov dword [ebp - 0x1c], eax
mov edi, edi
cmp dword [ebp - 0x28], 0
jne 0x4014c4
lea ecx, [ebp - 0x14]
add ecx, esi
mov al, byte [ecx + eax]
xor al, dl
mov byte [ecx], al
jmp 0x4014d4
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x30]
mov al, byte [eax + esi - 0x10]
xor al, dl
mov byte [ebp + esi - 0x14], al
mov eax, dword [ebp - 0x1c]
inc esi
cmp esi, 0x10
jb 0x4014b0
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
add eax, dword [ebp - 0x30]
mov edx, 0x10
push eax
call fcn.00401af0
add esp, 4
test eax, eax
jne 0x4017cf
mov eax, dword [ebp - 0x24]
add eax, 0x10
mov ecx, dword [ebp - 0x34]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004051f4
mov esp, ebp
pop ebp
ret
mov eax, dword [0x41ef38]
xor edi, edi
cmp dword [ebp - 0x28], ebx
jbe 0x4015d9
lea ebx, [ebx]
mov edx, 0x10
test edi, edi
jne 0x401549
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.00401af0
mov ebx, dword [ebp - 0x18]
jmp 0x40155f
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
mov eax, edi
shl eax, 4
lea ecx, [ebx - 0x10]
add ecx, eax
call fcn.00401af0
add esp, 4
test eax, eax
jne 0x4017cf
mov esi, dword [ebp - 0x20]
mov eax, edi
add eax, eax
xor ecx, ecx
lea edx, [ebx + eax*8]
mov ebx, esi
sub ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
lea ebx, [esi + eax*8]
mov esi, dword [ebp - 0x1c]
movzx eax, byte [esi + edx]
lea edx, [edx + 4]
xor al, byte [ebp + ecx - 0x14]
mov byte [edx - 4], al
movzx eax, byte [ebx + ecx + 1]
xor al, byte [ebp + ecx - 0x13]
mov byte [edx - 3], al
movzx eax, byte [ebx + ecx + 2]
xor al, byte [ebp + ecx - 0x12]
mov byte [edx - 2], al
movzx eax, byte [ebx + ecx + 3]
xor al, byte [ebp + ecx - 0x11]
add ecx, 4
mov byte [edx - 1], al
cmp ecx, 0x10
jb 0x401584
mov ebx, dword [ebp - 0x24]
inc edi
mov esi, dword [ebp - 0x2c]
add ebx, 0x10
mov eax, dword [0x41ef38]
mov dword [ebp - 0x24], ebx
cmp edi, dword [ebp - 0x28]
jb 0x401530
test esi, esi
je 0x4017b2
mov edx, 0x10
test edi, edi
jne 0x4015f2
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
jmp 0x401603
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
mov eax, edi
add ecx, 0xfffffff0
shl eax, 4
add ecx, eax
call fcn.00401af0
add esp, 4
test eax, eax
jne 0x4017cf
xor edx, edx
test esi, esi
je 0x401645
mov ebx, dword [ebp - 0x20]
mov ecx, edi
shl ecx, 4
add ecx, dword [ebp - 0x18]
sub ebx, dword [ebp - 0x18]
jmp 0x401630
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor al, byte [ebp + edx - 0x14]
inc edx
mov byte [ecx - 1], al
cmp edx, esi
jb 0x401630
mov ebx, dword [ebp - 0x24]
cmp esi, 0x10
jae 0x4017af
mov ecx, dword [ebp - 0x18]
mov dl, byte [0x41ef44]
shl edi, 4
add ecx, edi
lea esp, [esp]
mov al, byte [ebp + esi - 0x14]
xor al, dl
mov byte [ecx + esi], al
inc esi
cmp esi, 0x10
jb 0x401660
mov eax, dword [ebp - 0x34]
add ebx, 0x10
pop edi
pop esi
mov dword [eax], ebx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004051f4
mov esp, ebp
pop ebp
ret
mov eax, dword [0x41ef38]
xor edi, edi
cmp dword [ebp - 0x28], ebx
jbe 0x401737
lea ebx, [ebx]
lea ecx, [ebp - 0x14]
mov edx, 0x10
test edi, edi
jne 0x4016b1
push ecx
mov ecx, eax
jmp 0x4016b5
lea eax, [ebp - 0x14]
push eax
call fcn.00401af0
add esp, 4
test eax, eax
jne 0x4017cf
mov esi, dword [ebp - 0x20]
mov eax, edi
mov edx, dword [ebp - 0x18]
mov ebx, esi
shl eax, 4
xor ecx, ecx
add edx, eax
sub ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
lea ebx, [eax + esi]
mov esi, dword [ebp - 0x1c]
movzx eax, byte [edx + esi]
lea edx, [edx + 4]
xor al, byte [ebp + ecx - 0x14]
mov byte [edx - 4], al
movzx eax, byte [ebx + ecx + 1]
xor al, byte [ebp + ecx - 0x13]
mov byte [edx - 3], al
movzx eax, byte [ebx + ecx + 2]
xor al, byte [ebp + ecx - 0x12]
mov byte [edx - 2], al
movzx eax, byte [ebx + ecx + 3]
xor al, byte [ebp + ecx - 0x11]
add ecx, 4
mov byte [edx - 1], al
cmp ecx, 0x10
jb 0x4016e2
mov ebx, dword [ebp - 0x24]
inc edi
mov esi, dword [ebp - 0x2c]
add ebx, 0x10
mov eax, dword [0x41ef38]
mov dword [ebp - 0x24], ebx
cmp edi, dword [ebp - 0x28]
jb 0x4016a0
test esi, esi
je 0x4017b2
lea ecx, [ebp - 0x14]
mov edx, 0x10
test edi, edi
jne 0x40174c
push ecx
mov ecx, eax
jmp 0x401750
lea eax, [ebp - 0x14]
push eax
call fcn.00401af0
add esp, 4
test eax, eax
jne 0x4017cf
xor edx, edx
test esi, esi
je 0x401785
mov ebx, dword [ebp - 0x20]
mov ecx, edi
shl ecx, 4
add ecx, dword [ebp - 0x18]
sub ebx, dword [ebp - 0x18]
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor al, byte [ebp + edx - 0x14]
inc edx
mov byte [ecx - 1], al
cmp edx, esi
jb 0x401770
mov ebx, dword [ebp - 0x24]
cmp esi, 0x10
jae 0x4017af
mov ecx, dword [ebp - 0x18]
mov dl, byte [0x41ef44]
shl edi, 4
add ecx, edi
jmp 0x4017a0
mov al, byte [ebp + esi - 0x14]
xor al, dl
mov byte [ecx + esi], al
inc esi
cmp esi, 0x10
jb 0x4017a0
add ebx, 0x10
mov eax, dword [ebp - 0x34]
pop edi
pop esi
mov dword [eax], ebx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004051f4
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004051f4
mov esp, ebp
pop ebp
ret