Function at 0x43e1a0
Capabilities:
Encode data using xor
Encrypt data using aes
Encrypt data using aes via x86 extensions
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x34
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
shr edi, 2
lea eax, [edi + 6]
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 0x118]
mov edx, dword [esi + 0x11c]
lea eax, [eax*4 + 4]
lea ebx, [esi + 0x18]
push eax
push ecx
mov dword [esp + 0x28], eax
push edx
mov eax, ebx
mov dword [esp + 0x30], esi
call fcn.0043fb00
cmp byte [0x6f9298], 0
mov dword [ebx + 0x104], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x100], eax
mov esi, dword [esi + 0x11c]
jne 0x43e211
call fcn.00437d80
cmp byte [0x6f929d], 0
mov ecx, dword [esp + 0x18]
push ecx
je 0x43e3c4
mov eax, dword [esp + 0x20]
movdqu xmm0, xmmword [ecx + eax - 0x10]
push eax
push esi
movdqa xmmword [esp + 0x3c], xmm0
call fcn.005c8e30
movdqa xmm0, xmmword [esp + 0x3c]
aeskeygenassist xmm1, xmm0, 0
pextrd eax, xmm1, 3
xor eax, dword [esi]
add esp, 0xc
xor eax, 1
mov dword [esi + edi*4], eax
mov ecx, dword [esi + 4]
xor ecx, eax
mov dword [esi + edi*4 + 4], ecx
mov eax, dword [esi + 8]
xor eax, ecx
mov dword [esi + edi*4 + 8], eax
mov ecx, dword [esi + 0xc]
xor ecx, eax
mov dword [esi + edi*4 + 0xc], ecx
mov ecx, dword [ebx + 0x104]
mov eax, dword [ebx + 0x100]
lea eax, [ecx + eax*4]
lea ecx, [esi + edi*4 + 0x10]
mov edx, 0x65c034
cmp ecx, eax
je 0x43e341
mov eax, dword [esp + 0x18]
cmp eax, 0x18
jne 0x43e2ae
mov eax, dword [esi + 0x24]
xor eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
xor ecx, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
jmp 0x43e2eb
cmp eax, 0x20
jne 0x43e2e8
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x14]
pinsrd xmm0, eax, 3
aeskeygenassist xmm1, xmm0, 0
pextrd eax, xmm1, 2
xor eax, dword [esi + 0x10]
xor ecx, eax
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x18]
xor eax, ecx
mov dword [esi + 0x34], ecx
mov ecx, dword [esi + 0x1c]
xor ecx, eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
jmp 0x43e2eb
mov ecx, dword [esi + 0x1c]
lea esi, [esi + edi*4]
pinsrd xmm0, ecx, 3
aeskeygenassist xmm1, xmm0, 0
pextrd eax, xmm1, 3
xor eax, dword [edx]
add edx, 4
xor eax, dword [esi]
mov dword [esi + edi*4], eax
mov eax, dword [esi + 4]
xor eax, dword [esi + edi*4]
mov dword [esi + edi*4 + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov dword [esi + edi*4 + 8], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [esi + edi*4 + 0xc], eax
mov eax, dword [ebx + 0x104]
mov ecx, dword [ebx + 0x100]
lea ecx, [eax + ecx*4]
lea eax, [esi + edi*4 + 0x10]
cmp eax, ecx
jne 0x43e292
mov esi, dword [esp + 0x24]
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x1c]
lea ecx, [esi + 4]
call eax
test al, al
jne 0x43eb3f
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x11c]
shl ecx, 4
add ecx, eax
cmp eax, ecx
je 0x43e37a
movdqa xmm0, xmmword [eax]
movdqa xmm1, xmmword [ecx]
movdqa xmmword [eax], xmm1
movdqa xmmword [ecx], xmm0
mov edx, dword [esi + 0x10]
mov ecx, 4
lea edx, [edx*4 - 4]
cmp edx, ecx
jbe 0x43e3b0
lea ecx, [ecx]
aesimc xmm0, xmmword [eax + ecx*4]
aesimc xmm1, xmmword [eax + edx*4]
movdqa xmmword [eax + ecx*4], xmm1
movdqa xmmword [eax + edx*4], xmm0
add ecx, 4
sub edx, 4
cmp ecx, edx
jb 0x43e390
aesimc xmm0, xmmword [eax + ecx*4]
movdqa xmmword [eax + ecx*4], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x20]
lea eax, [edi*4]
push ecx
push eax
push esi
mov dword [esp + 0x3c], 4
mov dword [esp + 0x30], eax
call fcn.005c53ca
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
sub eax, ecx
push eax
add ecx, esi
push 0
push ecx
call fcn.005c5560
lea edx, [esp + 0x44]
add esp, 0x1c
push edx
lea ecx, [esp + 0x30]
call fcn.0041b230
shr eax, 2
add esp, 4
xor ecx, ecx
test eax, eax
jbe 0x43e42d
lea esp, [esp]
mov edx, dword [esi + ecx*4]
bswap edx
mov dword [esi + ecx*4], edx
inc ecx
cmp ecx, eax
jb 0x43e420
mov ecx, dword [esi + edi*4 - 4]
mov eax, ecx
shr eax, 0x10
movzx edx, al
movzx eax, byte [edx + str.cw]
mov edx, ecx
shr edx, 8
xor eax, 1
movzx edx, dl
movzx edx, byte [edx + str.cw]
shl eax, 8
xor eax, edx
movzx edx, cl
movzx edx, byte [edx + str.cw]
shl eax, 8
xor eax, edx
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
shl eax, 8
xor eax, ecx
xor eax, dword [esi]
mov dword [esp + 0x1c], 0x64f884
mov dword [esi + edi*4], eax
mov ecx, dword [esi + 4]
xor ecx, eax
mov dword [esi + edi*4 + 4], ecx
mov eax, dword [esi + 8]
xor eax, ecx
mov dword [esi + edi*4 + 8], eax
mov edx, dword [esi + 0xc]
xor edx, eax
mov dword [esi + edi*4 + 0xc], edx
mov eax, dword [ebx + 0x100]
mov ecx, dword [ebx + 0x104]
lea edx, [ecx + eax*4]
lea eax, [esi + edi*4 + 0x10]
cmp eax, edx
je 0x43e5cd
mov eax, dword [esp + 0x18]
cmp eax, 0x18
jne 0x43e4d4
mov eax, dword [esi + 0x24]
xor eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
xor ecx, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
jmp 0x43e53d
cmp eax, 0x20
jne 0x43e53d
mov ecx, dword [esi + 0x2c]
mov edx, ecx
shr edx, 0x18
movzx eax, byte [edx + str.cw]
mov edx, ecx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + str.cw]
shl eax, 8
xor eax, edx
mov edx, ecx
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
shl eax, 8
movzx ecx, cl
xor eax, edx
movzx edx, byte [ecx + str.cw]
mov ecx, dword [esi + 0x14]
shl eax, 8
xor eax, edx
xor eax, dword [esi + 0x10]
xor ecx, eax
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x18]
xor eax, ecx
mov dword [esi + 0x34], ecx
mov ecx, dword [esi + 0x1c]
xor ecx, eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
lea esi, [esi + edi*4]
mov eax, dword [esi + edi*4 - 4]
mov edx, eax
shr edx, 0x10
movzx ecx, dl
movzx edx, byte [ecx + str.cw]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
shl edx, 8
xor edx, ecx
movzx ecx, al
movzx ecx, byte [ecx + str.cw]
shl edx, 8
xor edx, ecx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl edx, 8
xor edx, eax
xor edx, dword [esi]
mov eax, dword [esp + 0x1c]
xor edx, dword [eax]
add eax, 4
mov dword [esi + edi*4], edx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 4]
xor eax, edx
mov dword [esi + edi*4 + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov dword [esi + edi*4 + 8], ecx
mov edx, dword [esi + 0xc]
xor edx, ecx
mov dword [esi + edi*4 + 0xc], edx
mov eax, dword [ebx + 0x100]
mov ecx, dword [ebx + 0x104]
lea edx, [ecx + eax*4]
lea eax, [esi + edi*4 + 0x10]
cmp eax, edx
jne 0x43e4b8
mov edi, dword [esp + 0x24]
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x1c]
mov esi, dword [edi + 0x11c]
lea ecx, [edi + 4]
call eax
test al, al
je 0x43e62a
mov cl, byte [0x6f92a0]
test cl, cl
jne 0x43e5f5
call fcn.0043dfa0
xor eax, eax
mov edx, dword [esi + eax*4]
bswap edx
mov dword [esi + eax*4], edx
inc eax
cmp eax, 4
jb 0x43e5f7
mov eax, dword [edi + 0x10]
shl eax, 4
add eax, esi
mov ecx, eax
sub ecx, eax
mov edx, 4
mov ebx, dword [ecx + eax]
bswap ebx
mov dword [eax], ebx
add eax, 4
sub edx, 1
jne 0x43e616
jmp 0x43eaff
mov cl, byte [0x6f92a1]
test cl, cl
jne 0x43e639
call fcn.0043e030
mov eax, dword [edi + 0x10]
mov edx, 4
lea eax, [eax*4 - 4]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
cmp eax, edx
jbe 0x43e92e
lea ecx, [esi + eax*4 + 8]
lea eax, [esi + 0x18]
nop
mov edx, dword [eax - 8]
mov ebx, edx
mov edi, edx
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + str.cw]
shr edi, 0x18
movzx edi, byte [edi + str.cw]
mov edi, dword [edi*8 + 0x6f827c]
xor edi, dword [ebx*8 + 0x6f8279]
xor edi, dword [edx*8 + 0x6f827a]
movzx edx, byte [eax - 8]
movzx edx, byte [edx + str.cw]
xor edi, dword [edx*8 + 0x6f827b]
mov edx, dword [ecx - 8]
mov ebx, edx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + str.cw]
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
mov ebx, dword [ebx*8 + 0x6f827c]
xor ebx, dword [edx*8 + 0x6f8279]
mov edx, dword [ecx - 8]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x6f827a]
movzx edx, byte [ecx - 8]
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x6f827b]
mov dword [eax - 8], ebx
mov dword [ecx - 8], edi
mov edx, dword [eax - 4]
mov ebx, edx
mov edi, edx
shr ebx, 0x10
shr edx, 8
movzx ebx, bl
movzx ebx, byte [ebx + str.cw]
movzx edx, dl
movzx edx, byte [edx + str.cw]
shr edi, 0x18
movzx edi, byte [edi + str.cw]
mov edi, dword [edi*8 + 0x6f827c]
xor edi, dword [ebx*8 + 0x6f8279]
xor edi, dword [edx*8 + 0x6f827a]
movzx edx, byte [eax - 4]
movzx edx, byte [edx + str.cw]
xor edi, dword [edx*8 + 0x6f827b]
mov edx, dword [ecx - 4]
mov ebx, edx
shr edx, 0x10
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
mov ebx, dword [ebx*8 + 0x6f827c]
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x6f8279]
mov edx, dword [ecx - 4]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x6f827a]
movzx edx, byte [ecx - 4]
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x6f827b]
mov dword [eax - 4], ebx
mov dword [ecx - 4], edi
mov edx, dword [eax]
mov edi, edx
shr edi, 0x18
movzx edi, byte [edi + str.cw]
mov edi, dword [edi*8 + 0x6f827c]
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + str.cw]
xor edi, dword [ebx*8 + 0x6f8279]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor edi, dword [edx*8 + 0x6f827a]
movzx edx, byte [eax]
movzx edx, byte [edx + str.cw]
xor edi, dword [edx*8 + 0x6f827b]
mov edx, dword [ecx]
mov ebx, edx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + str.cw]
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
mov ebx, dword [ebx*8 + 0x6f827c]
xor ebx, dword [edx*8 + 0x6f8279]
mov edx, dword [ecx]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x6f827a]
movzx edx, byte [ecx]
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x6f827b]
add eax, 0x10
mov dword [eax - 0x10], ebx
mov dword [ecx], edi
mov edx, dword [eax - 0xc]
mov ebx, edx
mov edi, edx
shr edx, 8
shr ebx, 0x10
movzx edx, dl
movzx edx, byte [edx + str.cw]
shr edi, 0x18
movzx edi, byte [edi + str.cw]
mov edi, dword [edi*8 + 0x6f827c]
movzx ebx, bl
movzx ebx, byte [ebx + str.cw]
xor edi, dword [ebx*8 + 0x6f8279]
sub ecx, 0x10
xor edi, dword [edx*8 + 0x6f827a]
movzx edx, byte [eax - 0xc]
movzx edx, byte [edx + str.cw]
xor edi, dword [edx*8 + 0x6f827b]
mov edx, dword [ecx + 0x14]
mov ebx, edx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + str.cw]
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
mov ebx, dword [ebx*8 + 0x6f827c]
xor ebx, dword [edx*8 + 0x6f8279]
mov edx, dword [ecx + 0x14]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x6f827a]
movzx edx, byte [ecx + 0x14]
movzx edx, byte [edx + str.cw]
xor ebx, dword [edx*8 + 0x6f827b]
mov edx, dword [esp + 0x1c]
mov dword [eax - 0xc], ebx
mov dword [ecx + 0x14], edi
mov edi, dword [esp + 0x18]
add edx, 4
sub edi, 4
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edi
cmp edx, edi
jb 0x43e660
mov edi, dword [esp + 0x24]
mov eax, dword [esi + edx*4]
mov ebx, eax
mov ecx, eax
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
mov ecx, dword [ecx*8 + 0x6f827c]
shr eax, 8
movzx eax, al
movzx eax, byte [eax + str.cw]
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + str.cw]
xor ecx, dword [ebx*8 + 0x6f8279]
xor ecx, dword [eax*8 + 0x6f827a]
movzx eax, byte [esi + edx*4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x6f827b]
mov eax, dword [esi + edx*4 + 4]
mov dword [esi + edx*4], ecx
mov ebx, eax
mov ecx, eax
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
mov ecx, dword [ecx*8 + 0x6f827c]
shr eax, 8
movzx eax, al
movzx eax, byte [eax + str.cw]
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + str.cw]
xor ecx, dword [ebx*8 + 0x6f8279]
xor ecx, dword [eax*8 + 0x6f827a]
movzx eax, byte [esi + edx*4 + 4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x6f827b]
mov eax, dword [esi + edx*4 + 8]
mov dword [esi + edx*4 + 4], ecx
mov ebx, eax
mov ecx, eax
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
mov ecx, dword [ecx*8 + 0x6f827c]
shr eax, 8
shr ebx, 0x10
movzx eax, al
movzx eax, byte [eax + str.cw]
movzx ebx, bl
movzx ebx, byte [ebx + str.cw]
xor ecx, dword [ebx*8 + 0x6f8279]
xor ecx, dword [eax*8 + 0x6f827a]
movzx eax, byte [esi + edx*4 + 8]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x6f827b]
mov eax, dword [esi + edx*4 + 0xc]
mov dword [esi + edx*4 + 8], ecx
mov ebx, eax
mov ecx, eax
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
mov ecx, dword [ecx*8 + 0x6f827c]
shr eax, 8
shr ebx, 0x10
movzx eax, al
movzx eax, byte [eax + str.cw]
movzx ebx, bl
movzx ebx, byte [ebx + str.cw]
xor ecx, dword [ebx*8 + 0x6f8279]
xor ecx, dword [eax*8 + 0x6f827a]
movzx eax, byte [esi + edx*4 + 0xc]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x6f827b]
mov dword [esi + edx*4 + 0xc], ecx
mov ecx, dword [edi + 0x10]
mov eax, dword [esi]
shl ecx, 4
mov edx, dword [ecx + esi]
bswap edx
mov dword [esi], edx
mov ecx, dword [edi + 0x10]
bswap eax
shl ecx, 4
mov dword [ecx + esi], eax
mov edx, dword [edi + 0x10]
mov eax, dword [esi + 4]
shl edx, 4
mov ecx, dword [edx + esi + 4]
bswap ecx
mov dword [esi + 4], ecx
mov edx, dword [edi + 0x10]
shl edx, 4
bswap eax
mov dword [edx + esi + 4], eax
mov ecx, dword [edi + 0x10]
mov eax, dword [esi + 8]
shl ecx, 4
mov edx, dword [ecx + esi + 8]
bswap edx
mov dword [esi + 8], edx
mov ecx, dword [edi + 0x10]
shl ecx, 4
bswap eax
mov dword [ecx + esi + 8], eax
mov edx, dword [edi + 0x10]
mov eax, dword [esi + 0xc]
shl edx, 4
mov ecx, dword [edx + esi + 0xc]
bswap ecx
mov dword [esi + 0xc], ecx
mov edx, dword [edi + 0x10]
bswap eax
shl edx, 4
mov dword [edx + esi + 0xc], eax
cmp byte [0x6f9298], 0
jne 0x43eb0d
call fcn.00437d80
cmp byte [0x6f929d], 0
je 0x43eb3f
mov ecx, dword [edi + 0x10]
dec ecx
shl ecx, 4
shr ecx, 2
add esi, 0x10
test ecx, ecx
jbe 0x43eb3f
mov edx, esi
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov esi, dword [edx + eax]
bswap esi
mov dword [eax], esi
add eax, 4
sub ecx, 1
jne 0x43eb30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc