Function at 0x473170
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
cmp dword [esp + 0x44], 1
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x40]
je 0x473221
cmp edi, ebx
je 0x473264
cmp ebp, 0xf
jbe 0x4731dc
push eax
mov edx, dword [esp + 0x40]
push edx
push ebx
push edi
call sym._AES_decrypt
xor edx, edx
add esp, 0x10
jmp 0x4731c0
mov cl, byte [edx + esi]
xor byte [edx + ebx], cl
inc edx
cmp edx, 0xf
jbe 0x4731c0
mov esi, edi
sub ebp, 0x10
add edi, 0x10
add ebx, 0x10
cmp ebp, 0xf
ja 0x47319f
test ebp, ebp
jne 0x47330c
mov edx, dword [esi]
mov ebx, dword [esp + 0x40]
mov dword [ebx], edx
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov ebp, dword [esi + 8]
mov dword [ebx + 8], ebp
mov edi, dword [esi + 0xc]
mov dword [ebx + 0xc], edi
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
push ecx
mov edx, dword [esp + 0x40]
push edx
push ebx
push ebx
call sym._AES_encrypt
mov esi, ebx
sub ebp, 0x10
add edi, 0x10
add ebx, 0x10
add esp, 0x10
cmp ebp, 0xf
jbe 0x4732b2
xor edx, edx
lea esi, [esi]
mov al, byte [edx + esi]
xor al, byte [edx + edi]
mov byte [edx + ebx], al
inc edx
cmp edx, 0xf
jbe 0x473230
jmp 0x473206
mov edx, dword [esp]
mov dword [ecx], edx
mov eax, dword [esp + 4]
mov dword [ecx + 4], eax
mov esi, dword [esp + 8]
mov dword [ecx + 8], esi
mov edx, dword [esp + 0xc]
mov dword [ecx + 0xc], edx
sub ebp, 0x10
add edi, 0x10
add ebx, 0x10
cmp ebp, 0xf
jbe 0x473339
mov esi, dword [edi]
mov dword [esp], esi
mov edx, dword [edi + 4]
mov dword [esp + 4], edx
mov eax, dword [edi + 8]
mov dword [esp + 8], eax
mov ecx, dword [edi + 0xc]
mov dword [esp + 0xc], ecx
push esi
mov esi, dword [esp + 0x40]
push esi
push ebx
push edi
call sym._AES_decrypt
xor edx, edx
add esp, 0x10
lea esi, [esi]
mov ecx, dword [esp + 0x40]
mov al, byte [edx + ecx]
xor byte [edx + ebx], al
inc edx
cmp edx, 0xf
jbe 0x4732a0
jmp 0x473241
test ebp, ebp
je 0x4732ea
xor edx, edx
jmp 0x4732c4
mov cl, byte [edx + esi]
xor cl, byte [edx + edi]
mov byte [edx + ebx], cl
inc edx
cmp edx, ebp
jb 0x4732ba
mov edx, ebp
jmp 0x4732d3
mov al, byte [edx + esi]
mov byte [edx + ebx], al
inc edx
cmp edx, 0xf
jbe 0x4732cc
push eax
mov esi, dword [esp + 0x40]
push esi
push ebx
push ebx
call sym._AES_encrypt
mov esi, ebx
add esp, 0x10
mov ebp, dword [esi]
mov edx, dword [esp + 0x40]
mov dword [edx], ebp
mov edi, dword [esi + 4]
mov dword [edx + 4], edi
mov ebx, dword [esi + 8]
mov dword [edx + 8], ebx
mov eax, dword [esi + 0xc]
mov dword [edx + 0xc], eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
push eax
mov edx, dword [esp + 0x40]
push edx
lea eax, [esp + 8]
push eax
push edi
call sym._AES_decrypt
xor edx, edx
add esp, 0x10
jmp 0x47332e
mov cl, byte [edx + esi]
xor cl, byte [esp + edx]
mov byte [edx + ebx], cl
inc edx
cmp edx, ebp
jb 0x473324
mov esi, edi
jmp 0x4731e4
test ebp, ebp
je 0x4731fe
mov ecx, dword [edi]
mov dword [esp], ecx
mov edx, dword [edi + 4]
mov dword [esp + 4], edx
mov eax, dword [edi + 8]
mov dword [esp + 8], eax
mov esi, dword [edi + 0xc]
mov dword [esp + 0xc], esi
push edx
mov ecx, dword [esp + 0x40]
push ecx
push ebx
lea edi, [esp + 0xc]
push edi
call sym._AES_decrypt
xor edx, edx
add esp, 0x10
jmp 0x47337e
mov edi, dword [esp + 0x40]
mov al, byte [edx + edi]
xor byte [edx + ebx], al
inc edx
cmp edx, ebp
jb 0x473373
mov edx, ebp
jmp 0x47338d
mov cl, byte [esp + edx]
mov byte [edx + ebx], cl
inc edx
cmp edx, 0xf
jbe 0x473386
mov esi, dword [esp]
mov edx, dword [esp + 0x40]
mov dword [edx], esi
mov ebp, dword [esp + 4]
mov dword [edx + 4], ebp
mov ebx, dword [esp + 8]
mov dword [edx + 8], ebx
mov eax, dword [esp + 0xc]
mov dword [edx + 0xc], eax
jmp 0x473304