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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
mov dword [ebp - 0x30], ecx
cmp dword [ebp + 8], 0
jne 0x555357
jmp 0x555a5f
cmp dword [ebp + 0x10], 0x10
je 0x55536e
cmp dword [ebp + 0x10], 0x18
je 0x55536e
cmp dword [ebp + 0x10], 0x20
je 0x55536e
jmp 0x555a5f
cmp dword [ebp + 0x14], 0x10
je 0x555385
cmp dword [ebp + 0x14], 0x18
je 0x555385
cmp dword [ebp + 0x14], 0x20
je 0x555385
jmp 0x555a5f
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x3c8], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 0x14]
mov dword [edx + 0x3cc], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x3cc]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x3d4
push ecx
call fcn.00578000
add esp, 0xc
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x3cc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x30]
add edx, 0x3f4
push edx
call fcn.00578000
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x3c8]
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x34], 0x10
je 0x5553f7
cmp dword [ebp - 0x34], 0x18
je 0x555433
jmp 0x555454
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x3cc], 0x10
jne 0x55540c
mov dword [ebp - 0x38], 0xa
jmp 0x555425
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x3cc]
sub ecx, 0x18
neg ecx
sbb ecx, ecx
and ecx, 2
add ecx, 0xc
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
mov dword [edx + 0x3d0], eax
jmp 0x555461
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x3cc]
sub edx, 0x20
neg edx
sbb edx, edx
and edx, 0xfffffffe
add edx, 0xe
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x3d0], edx
jmp 0x555461
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x3d0], 0xe
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x3cc]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 0
jmp 0x555488
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ecx + 0x3d0]
jg 0x5554cb
mov dword [ebp - 0x1c], 0
jmp 0x5554a8
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x2c]
jge 0x5554c9
mov edx, dword [ebp - 0x14]
shl edx, 5
mov eax, dword [ebp - 0x30]
lea ecx, [eax + edx + 8]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + edx*4], 0
jmp 0x55549f
jmp 0x55547f
mov dword [ebp - 0x14], 0
jmp 0x5554dd
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ecx + 0x3d0]
jg 0x555523
mov dword [ebp - 0x1c], 0
jmp 0x5554fd
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x2c]
jge 0x555521
mov edx, dword [ebp - 0x14]
shl edx, 5
mov eax, dword [ebp - 0x30]
lea ecx, [eax + edx + 0x1e8]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + edx*4], 0
jmp 0x5554f4
jmp 0x5554d4
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x3d0]
add ecx, 1
imul ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x3c8]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x30]
add eax, 0x414
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0
jmp 0x55556e
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
jge 0x5555fa
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov dl, byte [ecx]
shl edx, 0x18
mov eax, dword [ebp - 4]
mov dword [eax], edx
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
xor eax, eax
mov al, byte [edx]
shl eax, 0x10
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
or edx, eax
mov eax, dword [ebp - 4]
mov dword [eax], edx
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
xor eax, eax
mov al, byte [edx]
shl eax, 8
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
or edx, eax
mov eax, dword [ebp - 4]
mov dword [eax], edx
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
or edx, eax
mov eax, dword [ebp - 4]
mov dword [eax], edx
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
jmp 0x555565
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
jmp 0x55561c
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0xc]
jge 0x55568f
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x28]
jge 0x55568f
mov eax, dword [ebp - 0x10]
cdq
idiv dword [ebp - 0x2c]
shl eax, 5
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx + eax + 8]
mov eax, dword [ebp - 0x10]
cdq
idiv dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov eax, dword [esi + eax*4 + 0x414]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0x10]
cdq
idiv dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x3d0]
sub edx, eax
shl edx, 5
mov eax, dword [ebp - 0x30]
lea ecx, [eax + edx + 0x1e8]
mov eax, dword [ebp - 0x10]
cdq
idiv dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov eax, dword [esi + eax*4 + 0x414]
mov dword [ecx + edx*4], eax
jmp 0x55560a
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x28]
jge 0x55599a
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + edx*4 + 0x410]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
sar edx, 0x10
and edx, 0xff
movsx eax, byte [edx + str.cw]
and eax, 0xff
shl eax, 0x18
mov ecx, dword [ebp - 0x20]
sar ecx, 8
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
and edx, 0xff
shl edx, 0x10
xor eax, edx
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
and edx, 0xff
shl edx, 8
xor eax, edx
mov ecx, dword [ebp - 0x20]
sar ecx, 0x18
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
and edx, 0xff
xor eax, edx
mov ecx, dword [ebp - 0x24]
movsx edx, byte [ecx + 0x61a750]
and edx, 0xff
shl edx, 0x18
xor eax, edx
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x414]
xor edx, eax
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x414], edx
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0xc], 8
je 0x5557af
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0xc]
jge 0x5557aa
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov eax, dword [ecx + eax*4 + 0x414]
xor eax, dword [esi + edx*4 + 0x414]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov dword [edx + ecx*4 + 0x414], eax
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
jmp 0x555767
jmp 0x555907
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0xc]
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x14], eax
jge 0x555805
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov edx, dword [eax + edx*4 + 0x414]
xor edx, dword [esi + ecx*4 + 0x414]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + eax*4 + 0x414], edx
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x5557bd
mov eax, dword [ebp - 0xc]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax*4 + 0x410]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0xc]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
and edx, 0xff
mov ecx, dword [ebp - 0x20]
sar ecx, 8
and ecx, 0xff
movsx ecx, byte [ecx + str.cw]
and ecx, 0xff
shl ecx, 8
xor edx, ecx
mov ecx, dword [ebp - 0x20]
sar ecx, 0x10
and ecx, 0xff
movsx ecx, byte [ecx + str.cw]
and ecx, 0xff
shl ecx, 0x10
xor edx, ecx
mov ecx, dword [ebp - 0x20]
sar ecx, 0x18
and ecx, 0xff
movsx ecx, byte [ecx + str.cw]
and ecx, 0xff
shl ecx, 0x18
xor edx, ecx
mov ecx, dword [ebp - 0x30]
mov ecx, dword [ecx + eax*4 + 0x414]
xor ecx, edx
mov eax, dword [ebp - 0xc]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0x30]
mov dword [edx + eax*4 + 0x414], ecx
mov eax, dword [ebp - 0xc]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0xc]
jge 0x555907
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov edx, dword [eax + edx*4 + 0x414]
xor edx, dword [esi + ecx*4 + 0x414]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + eax*4 + 0x414], edx
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x5558c4
mov dword [ebp - 0x1c], 0
jmp 0x555922
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0xc]
jge 0x555995
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x28]
jge 0x555995
mov eax, dword [ebp - 0x10]
cdq
idiv dword [ebp - 0x2c]
shl eax, 5
mov edx, dword [ebp - 0x30]
lea ecx, [edx + eax + 8]
mov eax, dword [ebp - 0x10]
cdq
idiv dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov eax, dword [esi + eax*4 + 0x414]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0x10]
cdq
idiv dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x3d0]
sub edx, eax
shl edx, 5
mov eax, dword [ebp - 0x30]
lea ecx, [eax + edx + 0x1e8]
mov eax, dword [ebp - 0x10]
cdq
idiv dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov eax, dword [esi + eax*4 + 0x414]
mov dword [ecx + edx*4], eax
jmp 0x555910
jmp 0x555696
mov dword [ebp - 8], 1
jmp 0x5559ac
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x3d0]
jge 0x555a58
mov dword [ebp - 0x1c], 0
jmp 0x5559d0
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x2c]
jge 0x555a53
mov eax, dword [ebp - 8]
shl eax, 5
mov ecx, dword [ebp - 0x30]
lea edx, [ecx + eax + 0x1e8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
sar edx, 0x18
and edx, 0xff
mov eax, dword [ebp - 0x20]
sar eax, 0x10
and eax, 0xff
mov ecx, dword [edx*4 + 0x619750]
xor ecx, dword [eax*4 + 0x619b50]
mov edx, dword [ebp - 0x20]
sar edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x619f50]
mov eax, dword [ebp - 0x20]
and eax, 0xff
xor ecx, dword [eax*4 + 0x61a350]
mov edx, dword [ebp - 8]
shl edx, 5
mov eax, dword [ebp - 0x30]
lea edx, [eax + edx + 0x1e8]
mov eax, dword [ebp - 0x1c]
mov dword [edx + eax*4], ecx
jmp 0x5559c7
jmp 0x5559a3
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 4], 1
pop esi
mov esp, ebp
pop ebp
ret 0x10