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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
mov esi, dword [ebp + 8]
mov edi, 0x121c9f30
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
bswap eax
bswap ebx
bswap ecx
bswap edx
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x18
jb 0x120e5fc9
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
bswap eax
bswap ebx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ebx
cmp ecx, 0x20
jb 0x120e5fc9
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
bswap ecx
bswap edx
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], edx
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, 0x10
jne 0x120e6068
mov edx, dword [edi + 0xc]
mov eax, edx
mov ebx, edx
mov ecx, edx
shr eax, 0x10
shr ebx, 8
shr edx, 0x18
and eax, 0xff
and ebx, 0xff
and ecx, 0xff
mov eax, dword [eax*4 + str.ccccwwww]
mov ebx, dword [ebx*4 + str.ccccwwww]
mov ecx, dword [ecx*4 + str.ccccwwww]
mov edx, dword [edx*4 + str.ccccwwww]
and eax, 0xff000000
and ebx, 0xff0000
and ecx, 0xff00
and edx, 0xff
xor eax, ebx
xor eax, ecx
xor eax, edx
xor eax, dword [esi*4 + 0x121997a0]
xor eax, dword [edi]
mov dword [edi + 0x10], eax
xor eax, dword [edi + 4]
mov dword [edi + 0x14], eax
xor eax, dword [edi + 8]
mov dword [edi + 0x18], eax
xor eax, dword [edi + 0xc]
mov dword [edi + 0x1c], eax
inc esi
cmp esi, 0xa
je 0x120e6217
add edi, 0x10
jmp 0x120e5fd7
cmp eax, 0x18
jne 0x120e610f
mov edx, dword [edi + 0x14]
mov eax, edx
mov ebx, edx
mov ecx, edx
shr eax, 0x10
shr ebx, 8
shr edx, 0x18
and eax, 0xff
and ebx, 0xff
and ecx, 0xff
mov eax, dword [eax*4 + str.ccccwwww]
mov ebx, dword [ebx*4 + str.ccccwwww]
mov ecx, dword [ecx*4 + str.ccccwwww]
mov edx, dword [edx*4 + str.ccccwwww]
and eax, 0xff000000
and ebx, 0xff0000
and ecx, 0xff00
and edx, 0xff
xor eax, ebx
xor eax, ecx
xor eax, edx
xor eax, dword [esi*4 + 0x121997a0]
xor eax, dword [edi]
mov dword [edi + 0x18], eax
xor eax, dword [edi + 4]
mov dword [edi + 0x1c], eax
xor eax, dword [edi + 8]
mov dword [edi + 0x20], eax
xor eax, dword [edi + 0xc]
mov dword [edi + 0x24], eax
inc esi
cmp esi, 8
je 0x120e6105
xor eax, dword [edi + 0x10]
mov dword [edi + 0x28], eax
xor eax, dword [edi + 0x14]
mov dword [edi + 0x2c], eax
add edi, 0x18
jmp 0x120e6071
mov esi, 0xc
jmp 0x120e6217
cmp eax, 0x20
jne 0x120e6217
mov edx, dword [edi + 0x1c]
mov eax, edx
mov ebx, edx
mov ecx, edx
shr eax, 0x10
shr ebx, 8
shr edx, 0x18
and eax, 0xff
and ebx, 0xff
and ecx, 0xff
mov eax, dword [eax*4 + str.ccccwwww]
mov ebx, dword [ebx*4 + str.ccccwwww]
mov ecx, dword [ecx*4 + str.ccccwwww]
mov edx, dword [edx*4 + str.ccccwwww]
and eax, 0xff000000
and ebx, 0xff0000
and ecx, 0xff00
and edx, 0xff
xor eax, ebx
xor eax, ecx
xor eax, edx
xor eax, dword [esi*4 + 0x121997a0]
xor eax, dword [edi]
mov dword [edi + 0x20], eax
xor eax, dword [edi + 4]
mov dword [edi + 0x24], eax
xor eax, dword [edi + 8]
mov dword [edi + 0x28], eax
xor eax, dword [edi + 0xc]
mov dword [edi + 0x2c], eax
inc esi
cmp esi, 7
je 0x120e6212
mov ebx, eax
mov ecx, eax
mov edx, eax
shr eax, 0x18
shr ebx, 0x10
shr ecx, 8
and ebx, 0xff
and ecx, 0xff
and edx, 0xff
mov eax, dword [eax*4 + str.ccccwwww]
mov ebx, dword [ebx*4 + str.ccccwwww]
mov ecx, dword [ecx*4 + str.ccccwwww]
mov edx, dword [edx*4 + str.ccccwwww]
and eax, 0xff000000
and ebx, 0xff0000
and ecx, 0xff00
and edx, 0xff
xor eax, ebx
xor eax, ecx
xor eax, edx
xor eax, dword [edi + 0x10]
mov dword [edi + 0x30], eax
xor eax, dword [edi + 0x14]
mov dword [edi + 0x34], eax
xor eax, dword [edi + 0x18]
mov dword [edi + 0x38], eax
xor eax, dword [edi + 0x1c]
mov dword [edi + 0x3c], eax
add edi, 0x20
jmp 0x120e6118
mov esi, 0xe
mov ebx, esi
mov dword [0x121ca110], esi
xor ecx, ecx
shl ebx, 2
mov esi, 0x121c9f30
mov edi, 0x121ca020
jmp 0x120e6272
mov eax, dword [esi + ecx*4]
mov edx, dword [esi + ecx*4 + 4]
mov dword [edi + ebx*4], eax
mov dword [edi + ebx*4 + 4], edx
mov eax, dword [esi + ecx*4 + 8]
mov edx, dword [esi + ecx*4 + 0xc]
mov dword [edi + ebx*4 + 8], eax
mov dword [edi + ebx*4 + 0xc], edx
mov eax, dword [esi + ebx*4]
mov edx, dword [esi + ebx*4 + 4]
mov dword [edi + ecx*4], eax
mov dword [edi + ecx*4 + 4], edx
mov eax, dword [esi + ebx*4 + 8]
mov edx, dword [esi + ebx*4 + 0xc]
mov dword [edi + ecx*4 + 8], eax
mov dword [edi + ecx*4 + 0xc], edx
add ecx, 4
sub ebx, 4
cmp ecx, ebx
jbe 0x120e6230
mov esi, dword [0x121ca110]
dec esi
jmp 0x120e6474
add edi, 0x10
mov edx, dword [edi]
mov eax, edx
mov ebx, edx
mov ecx, edx
shr eax, 0x18
shr ebx, 0x10
shr ecx, 8
and ebx, 0xff
and ecx, 0xff
and edx, 0xff
mov eax, dword [eax*4 + str.ccccwwww]
mov ebx, dword [ebx*4 + str.ccccwwww]
mov ecx, dword [ecx*4 + str.ccccwwww]
mov edx, dword [edx*4 + str.ccccwwww]
and eax, 0xff
and ebx, 0xff
and ecx, 0xff
and edx, 0xff
mov eax, dword [eax*4 + 0x121983a0]
mov ebx, dword [ebx*4 + 0x121987a0]
mov ecx, dword [ecx*4 + 0x12198ba0]
mov edx, dword [edx*4 + 0x12198fa0]
xor eax, ebx
xor eax, ecx
xor eax, edx
mov dword [edi], eax
mov edx, dword [edi + 4]
mov eax, edx
mov ebx, edx
mov ecx, edx
shr eax, 0x18
shr ebx, 0x10
shr ecx, 8
and ebx, 0xff
and ecx, 0xff
and edx, 0xff
mov eax, dword [eax*4 + str.ccccwwww]
mov ebx, dword [ebx*4 + str.ccccwwww]
mov ecx, dword [ecx*4 + str.ccccwwww]
mov edx, dword [edx*4 + str.ccccwwww]
and eax, 0xff
and ebx, 0xff
and ecx, 0xff
and edx, 0xff
mov eax, dword [eax*4 + 0x121983a0]
mov ebx, dword [ebx*4 + 0x121987a0]
mov ecx, dword [ecx*4 + 0x12198ba0]
mov edx, dword [edx*4 + 0x12198fa0]
xor eax, ebx
xor eax, ecx
xor eax, edx
mov dword [edi + 4], eax
mov edx, dword [edi + 8]
mov eax, edx
mov ebx, edx
mov ecx, edx
shr eax, 0x18
shr ebx, 0x10
shr ecx, 8
and ebx, 0xff
and ecx, 0xff
and edx, 0xff
mov eax, dword [eax*4 + str.ccccwwww]
mov ebx, dword [ebx*4 + str.ccccwwww]
mov ecx, dword [ecx*4 + str.ccccwwww]
mov edx, dword [edx*4 + str.ccccwwww]
and eax, 0xff
and ebx, 0xff
and ecx, 0xff
and edx, 0xff
mov eax, dword [eax*4 + 0x121983a0]
mov ebx, dword [ebx*4 + 0x121987a0]
mov ecx, dword [ecx*4 + 0x12198ba0]
mov edx, dword [edx*4 + 0x12198fa0]
xor eax, ebx
xor eax, ecx
xor eax, edx
mov dword [edi + 8], eax
mov edx, dword [edi + 0xc]
mov eax, edx
mov ebx, edx
mov ecx, edx
shr eax, 0x18
shr ebx, 0x10
shr ecx, 8
and ebx, 0xff
and ecx, 0xff
and edx, 0xff
mov eax, dword [eax*4 + str.ccccwwww]
mov ebx, dword [ebx*4 + str.ccccwwww]
mov ecx, dword [ecx*4 + str.ccccwwww]
mov edx, dword [edx*4 + str.ccccwwww]
and eax, 0xff
and ebx, 0xff
and ecx, 0xff
and edx, 0xff
mov eax, dword [eax*4 + 0x121983a0]
mov ebx, dword [ebx*4 + 0x121987a0]
mov ecx, dword [ecx*4 + 0x12198ba0]
mov edx, dword [edx*4 + 0x12198fa0]
xor eax, ebx
xor eax, ecx
xor eax, edx
mov dword [edi + 0xc], eax
dec esi
or esi, esi
jne 0x120e6282
pop ebx
pop edi
pop esi
leave
ret 8