Function at 0x47c414
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
mov edi, ecx
push 0x120c
mov dword [esp + 0x18], edi
lea ecx, [edi + 0x20]
call fcn.00458fbe
mov ebp, dword [esp + 0x20]
lea ecx, [edi + 0x10]
and dword [edi + 0x24], 0
shr ebp, 2
lea eax, [ebp + 6]
mov dword [edi + 0xc], eax
lea eax, [eax*4 + 4]
push eax
call fcn.0046b23c
mov esi, dword [edi + 0x1c]
call fcn.0047b7fa
test al, al
je 0x47c496
call fcn.0047b80e
test al, al
je 0x47c496
push esi
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.00481648
lea ecx, [edi + 4]
add esp, 0xc
mov eax, dword [ecx]
call dword [eax + 0x20]
test al, al
jne 0x47cb9b
push dword [edi + 0xc]
push dword [edi + 0x1c]
call fcn.004815f7
pop ecx
pop ecx
jmp 0x47cb9b
push ebx
push dword [esp + 0x24]
push dword [esp + 0x24]
push ebp
push esi
push 1
call fcn.0047b385
mov ebx, ebp
mov dword [esp + 0x34], 0x48f95c
add esp, 0x14
mov ecx, dword [esi + ebx*4 - 4]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, cl
shl edx, 8
shr ecx, 0x18
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, byte [ecx + str.cw]
shl edx, 8
xor edx, eax
xor edx, dword [esi]
xor edx, dword [0x48f958]
mov dword [esi + ebx*4], edx
mov eax, dword [esi + 4]
xor eax, edx
mov dword [esi + ebx*4 + 4], eax
jmp 0x47c5ff
cmp dword [esp + 0x24], 0x18
jne 0x47c52d
mov ecx, dword [esi + 0x24]
xor ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
xor eax, ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], eax
jmp 0x47c598
cmp dword [esp + 0x24], 0x20
jne 0x47c598
mov ecx, dword [esi + 0x2c]
mov eax, ecx
shr eax, 0x18
movzx edx, byte [eax + str.cw]
mov eax, ecx
shr eax, 0x10
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, cl
mov ecx, dword [esi + 0x18]
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
mov eax, dword [esi + 0x14]
xor edx, dword [esi + 0x10]
xor eax, edx
mov dword [esi + 0x30], edx
xor ecx, eax
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x1c]
xor eax, ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov ebx, ebp
shl ebx, 2
add esi, ebx
mov ecx, dword [ebx + esi - 4]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, cl
shl edx, 8
shr ecx, 0x18
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, byte [ecx + str.cw]
shl edx, 8
xor edx, eax
mov eax, dword [esp + 0x20]
xor edx, dword [eax]
add eax, 4
xor edx, dword [esi]
mov dword [ebx + esi], edx
mov dword [esp + 0x20], eax
mov eax, dword [esi + 4]
xor eax, edx
mov dword [ebx + esi + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov dword [esi + ebp*4 + 8], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [esi + ebp*4 + 0xc], eax
mov eax, dword [edi + 0x18]
mov ebx, dword [edi + 0x1c]
mov dword [esp + 0x10], ebx
lea ecx, [ebx + eax*4]
mov eax, ebp
shl eax, 2
add eax, 0x10
add eax, esi
cmp eax, ecx
jne 0x47c513
lea ecx, [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x20]
test al, al
je 0x47c66c
cmp byte [0x4ac290], 0
jne 0x47c64a
call fcn.0047b776
push 0x10
push ebx
push ebx
call fcn.00476712
mov eax, dword [edi + 0xc]
shl eax, 4
add eax, ebx
push 0x10
push eax
push eax
call fcn.00476712
add esp, 0x18
jmp 0x47cb7a
cmp byte [0x4ac291], 0
jne 0x47c67a
call fcn.0047b61e
mov eax, dword [edi + 0xc]
push 4
pop ebp
lea eax, [eax*4 - 4]
mov dword [esp + 0x20], eax
cmp eax, ebp
jbe 0x47c98e
mov edi, dword [esp + 0x20]
add eax, 2
lea eax, [ebx + eax*4]
mov dword [esp + 0x14], eax
lea eax, [ebx + 0x18]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov edx, dword [eax - 8]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 8
movzx eax, al
shr edx, 0x18
mov esi, dword [ecx*8 + 0x4aba91]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4aba92]
movzx eax, byte [edx + str.cw]
mov edx, dword [ebx - 8]
xor esi, dword [eax*8 + 0x4aba94]
mov eax, dword [esp + 0x24]
movzx eax, byte [eax - 8]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4aba93]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 8
movzx eax, al
shr edx, 0x18
mov ecx, dword [ecx*8 + 0x4aba91]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4aba92]
movzx eax, byte [edx + str.cw]
xor ecx, dword [eax*8 + 0x4aba94]
movzx eax, byte [ebx - 8]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4aba93]
mov eax, dword [esp + 0x24]
mov dword [eax - 8], ecx
mov dword [ebx - 8], esi
mov edx, dword [eax - 4]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 8
movzx eax, al
shr edx, 0x18
mov esi, dword [ecx*8 + 0x4aba91]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4aba92]
movzx eax, byte [edx + str.cw]
mov edx, dword [ebx - 4]
xor esi, dword [eax*8 + 0x4aba94]
mov eax, dword [esp + 0x24]
movzx eax, byte [eax - 4]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4aba93]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 8
movzx eax, al
shr edx, 0x18
mov ecx, dword [ecx*8 + 0x4aba91]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4aba92]
movzx eax, byte [edx + str.cw]
xor ecx, dword [eax*8 + 0x4aba94]
movzx eax, byte [ebx - 4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4aba93]
mov eax, dword [esp + 0x24]
mov dword [eax - 4], ecx
mov dword [ebx - 4], esi
mov edx, dword [eax]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov esi, dword [ecx*8 + 0x4aba91]
mov eax, edx
shr eax, 8
add ebp, 4
movzx eax, al
sub edi, 4
shr edx, 0x18
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4aba92]
movzx eax, byte [edx + str.cw]
mov edx, dword [ebx]
xor esi, dword [eax*8 + 0x4aba94]
mov eax, dword [esp + 0x24]
movzx eax, byte [eax]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4aba93]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 8
movzx eax, al
shr edx, 0x18
mov ecx, dword [ecx*8 + 0x4aba91]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4aba92]
movzx eax, byte [edx + str.cw]
xor ecx, dword [eax*8 + 0x4aba94]
movzx eax, byte [ebx]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4aba93]
mov eax, dword [esp + 0x24]
mov dword [eax], ecx
mov dword [ebx], esi
lea ebx, [ebx - 0x10]
mov edx, dword [eax + 4]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 8
movzx eax, al
shr edx, 0x18
mov esi, dword [ecx*8 + 0x4aba91]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4aba92]
movzx eax, byte [edx + str.cw]
mov edx, dword [ebx + 0x14]
xor esi, dword [eax*8 + 0x4aba94]
mov eax, dword [esp + 0x24]
movzx eax, byte [eax + 4]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4aba93]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 8
movzx eax, al
shr edx, 0x18
mov ecx, dword [ecx*8 + 0x4aba91]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4aba92]
movzx eax, byte [edx + str.cw]
xor ecx, dword [eax*8 + 0x4aba94]
movzx eax, byte [ebx + 0x14]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4aba93]
mov eax, dword [esp + 0x24]
mov dword [eax + 4], ecx
add eax, 0x10
mov dword [ebx + 0x14], esi
mov dword [esp + 0x24], eax
cmp ebp, edi
jb 0x47c6ac
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov edx, dword [ebx + ebp*4]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 8
movzx eax, al
shr edx, 0x18
mov ecx, dword [ecx*8 + 0x4aba91]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4aba92]
movzx eax, byte [edx + str.cw]
mov edx, dword [ebx + ebp*4 + 4]
xor ecx, dword [eax*8 + 0x4aba94]
movzx eax, byte [ebx + ebp*4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4aba93]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [ebx + ebp*4], ecx
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 8
movzx eax, al
shr edx, 0x18
mov ecx, dword [ecx*8 + 0x4aba91]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4aba92]
movzx eax, byte [edx + str.cw]
mov edx, dword [ebx + ebp*4 + 8]
xor ecx, dword [eax*8 + 0x4aba94]
movzx eax, byte [ebx + ebp*4 + 4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4aba93]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [ebx + ebp*4 + 4], ecx
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 8
movzx eax, al
shr edx, 0x18
mov ecx, dword [ecx*8 + 0x4aba91]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4aba92]
movzx eax, byte [edx + str.cw]
mov edx, dword [ebx + ebp*4 + 0xc]
xor ecx, dword [eax*8 + 0x4aba94]
movzx eax, byte [ebx + ebp*4 + 8]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4aba93]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [ebx + ebp*4 + 8], ecx
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 8
movzx eax, al
shr edx, 0x18
mov ecx, dword [ecx*8 + 0x4aba91]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4aba92]
movzx eax, byte [edx + str.cw]
xor ecx, dword [eax*8 + 0x4aba94]
movzx eax, byte [ebx + ebp*4 + 0xc]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4aba93]
mov dword [ebx + ebp*4 + 0xc], ecx
push dword [ebx]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
mov ecx, dword [edi + 0xc]
mov esi, eax
add ecx, ecx
push dword [ebx + ecx*8]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
mov dword [ebx], eax
mov ecx, dword [edi + 0xc]
add ecx, ecx
mov dword [ebx + ecx*8], esi
push dword [ebx + 4]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
mov ecx, dword [edi + 0xc]
mov esi, eax
add ecx, ecx
push dword [ebx + ecx*8 + 4]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
mov dword [ebx + 4], eax
mov ecx, dword [edi + 0xc]
add ecx, ecx
mov dword [ebx + ecx*8 + 4], esi
push dword [ebx + 8]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
mov ecx, dword [edi + 0xc]
mov esi, eax
add ecx, ecx
push dword [ebx + ecx*8 + 8]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
mov dword [ebx + 8], eax
mov ecx, dword [edi + 0xc]
add ecx, ecx
mov dword [ebx + ecx*8 + 8], esi
push dword [ebx + 0xc]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
mov ecx, dword [edi + 0xc]
mov esi, eax
add ecx, ecx
push dword [ebx + ecx*8 + 0xc]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
mov dword [ebx + 0xc], eax
add esp, 0x20
mov ecx, dword [edi + 0xc]
add ecx, ecx
mov dword [ebx + ecx*8 + 0xc], esi
call fcn.0047b7fa
test al, al
je 0x47cb9a
mov ecx, dword [edi + 0xc]
lea eax, [ebx + 0x10]
shl ecx, 4
sub ecx, 0x10
push ecx
push eax
push eax
call fcn.00476712
add esp, 0xc
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 0xc