Function at 0x438830
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44141d
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x44b030]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], edx
mov ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], ebx
cmp ecx, 0x10
je 0x43887f
cmp ecx, 0x18
je 0x43887f
cmp ecx, 0x20
jne 0x438b41
mov eax, ecx
mov dword [ebp - 0x70], 0
cdq
and edx, 3
mov dword [ebp - 0x6c], 1
add eax, edx
mov dword [ebp - 0x68], 2
sar eax, 2
mov dword [ebp - 0x64], 4
mov dword [ebp - 0x60], 8
mov dword [ebp - 0x5c], 0x10
mov dword [ebp - 0x58], 0x20
mov dword [ebp - 0x54], 0x40
mov dword [ebp - 0x50], 0x80
mov dword [ebp - 0x4c], 0x1b
mov dword [ebp - 0x48], 0x36
mov dword [ebp - 0x24], eax
cmp ecx, 0x10
je 0x438915
cmp ecx, 0x18
je 0x438900
cmp ecx, 0x20
jne 0x438b41
lea eax, [ecx + 0x1c]
mov dword [ebp - 0x2c], 0xf0
mov dword [ebp - 0x28], 0xf0
jmp 0x438928
mov eax, 0x34
mov dword [ebp - 0x2c], 0xd0
mov dword [ebp - 0x28], 0xd0
jmp 0x438928
mov eax, 0x2c
mov dword [ebp - 0x2c], 0xb0
mov dword [ebp - 0x28], 0xb0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea edi, [eax*4]
movq qword [ebp - 0x1c], xmm0
push edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.0043fcba
push edi
push 0
push eax
lea esi, [eax + edi]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x18], esi
mov edi, dword [ebp - 0x24]
xor edx, edx
mov dword [ebp - 4], 0
test edi, edi
jle 0x438995
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [esi + edx*4]
mov dword [eax + edx*4], ecx
inc edx
cmp edx, edi
jl 0x438987
mov esi, edi
cmp edi, dword [ebp - 0x20]
jge 0x438a8e
mov dword [ebp - 0x24], 0
nop word [eax + eax]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + esi*4 - 4]
lea eax, [eax + esi*4]
mov dword [ebp - 0x34], eax
mov eax, esi
cdq
idiv edi
mov dword [ebp - 0x30], eax
test edx, edx
jne 0x438a1e
mov eax, ebx
shr ebx, 8
shl eax, 0x18
or ebx, eax
bswap eax
mov ecx, ebx
movzx ebx, byte [eax + str.cw]
mov eax, ecx
shr eax, 0x10
movzx eax, al
shl ebx, 8
movzx eax, byte [eax + str.cw]
or ebx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl ebx, 8
movzx eax, byte [eax + str.cw]
or ebx, eax
movzx eax, cl
shl ebx, 8
movzx eax, byte [eax + str.cw]
or ebx, eax
mov eax, dword [ebp - 0x30]
xor ebx, dword [ebp + eax*4 - 0x70]
jmp 0x438a6b
cmp edi, 6
jle 0x438a6b
cmp edx, 4
jne 0x438a6b
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, bl
shl ecx, 8
movzx ebx, byte [eax + str.cw]
or ebx, ecx
mov edx, dword [ebp - 0x24]
inc esi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edx + eax]
add edx, 4
xor eax, ebx
mov dword [ebp - 0x24], edx
mov dword [ecx], eax
cmp esi, dword [ebp - 0x20]
jl 0x4389b0
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x28]
xorps xmm0, xmm0
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
push edi
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
call fcn.0043fcba
push dword [ebp - 0x2c]
mov esi, eax
push 0
mov dword [ebx], esi
push esi
lea eax, [edi + esi]
mov dword [ebx + 8], eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x18]
add esi, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
and eax, 0xfffffffc
mov dword [ebx + 4], esi
push eax
push ecx
push dword [ebx]
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [ebp - 0x1c]
add esp, 0x1c
test edx, edx
je 0x438b23
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x438b19
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x438b19
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043fa5b
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043f92b
mov esp, ebp
pop ebp
ret
push ecx
lea ecx, [ebp - 0x44]
call fcn.00438500
push 0x449904
lea eax, [ebp - 0x44]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3