Function at 0x47cf34
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00403f30
mov eax, dword [ebp - 0xc]
call fcn.00403f30
xor eax, eax
push ebp
push 0x47d1a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 8]
call fcn.00403d7c
cmp eax, 4
jl 0x47cf90
mov eax, dword [ebp - 0xc]
call fcn.00403d7c
cmp eax, 0xa
je 0x47cfc9
cmp byte [ebp + 8], 0
je 0x47d173
push 0x10
mov eax, dword [0x49a1b4]
mov eax, dword [eax]
call fcn.00403f40
push eax
mov eax, dword [0x49a3f0]
mov eax, dword [eax]
call fcn.00403f40
push eax
mov eax, dword [ebp - 4]
call fcn.00435d90
push eax
call sub.user32.dll_MessageBoxA_1
jmp 0x47d173
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00407f58
xor edi, edi
mov eax, dword [ebp - 0x18]
mov al, byte [eax + edi]
xor bl, al
inc edi
cmp edi, 9
jne 0x47cfd6
and bl, 0xf
xor eax, eax
mov al, bl
mov edx, dword [0x499408]
mov al, byte [edx + eax]
mov edx, dword [ebp - 0x18]
cmp al, byte [edx + 9]
je 0x47d035
cmp byte [ebp + 8], 0
je 0x47d173
push 0x10
mov eax, dword [0x49a1b4]
mov eax, dword [eax]
call fcn.00403f40
push eax
mov eax, dword [0x49a3f0]
mov eax, dword [eax]
call fcn.00403f40
push eax
mov eax, dword [ebp - 4]
call fcn.00435d90
push eax
call sub.user32.dll_MessageBoxA_1
jmp 0x47d173
xor esi, esi
xor edi, edi
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dl, byte [edx + edi]
call fcn.00403c88
mov eax, dword [ebp - 0x1c]
mov edx, dword [0x499408]
call fcn.00404008
test eax, eax
ja 0x47d092
cmp byte [ebp + 8], 0
je 0x47d173
push 0x10
mov eax, dword [0x49a1b4]
mov eax, dword [eax]
call fcn.00403f40
push eax
mov eax, dword [0x49a3f0]
mov eax, dword [eax]
call fcn.00403f40
push eax
mov eax, dword [ebp - 4]
call fcn.00435d90
push eax
call sub.user32.dll_MessageBoxA_1
jmp 0x47d173
dec eax
and eax, 0xf
or esi, eax
cmp edi, 7
je 0x47d0a0
shl esi, 4
inc edi
cmp edi, 8
jne 0x47d039
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00403b7c
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e4]
call fcn.0042ffd4
mov edx, dword [ebp - 0x20]
mov eax, 0x47d1c0
call fcn.00404008
test eax, eax
jle 0x47d0e3
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, 0x47d1d0
call fcn.00403dc8
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e4]
call fcn.0042ffd4
mov edx, dword [ebp - 0x20]
mov eax, 0x47d1dc
call fcn.00404008
test eax, eax
jle 0x47d115
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, 0x47d1ec
call fcn.00403dc8
mov eax, esi
xor edx, edx
push edx
push eax
call fcn.0047ccdc
push edx
push eax
mov eax, dword [ebp - 0x14]
call fcn.0047cbbc
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x47d135
cmp eax, dword [esp]
pop edx
pop eax
jne 0x47d13f
mov byte [ebp - 0xd], 1
jmp 0x47d173
mov byte [ebp - 0xd], 0
cmp byte [ebp + 8], 0
je 0x47d173
push 0x10
mov eax, dword [0x49a1b4]
mov eax, dword [eax]
call fcn.00403f40
push eax
mov eax, dword [0x49a3f0]
mov eax, dword [eax]
call fcn.00403f40
push eax
mov eax, dword [ebp - 4]
call fcn.00435d90
push eax
call sub.user32.dll_MessageBoxA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d1aa
lea eax, [ebp - 0x20]
call fcn.00403ae4
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00403b08
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403b08
ret