Function at 0x422025
Capabilities:
Encode data using xor
Inspect section memory permissions

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
mov bl, byte [esi + 8]
mov al, byte [esi + 9]
mov cl, byte [esi + 7]
mov dl, bl
or dl, al
or dl, byte [esi + 0xa]
and dl, 0x1f
not cl
or dl, cl
test dl, 0x3f
push edi
je 0x422617
mov eax, 1
test al, cl
mov edx, 0x1000000
je 0x422060
cmp dword [esi + 0x3c], edx
mov byte [esp + 0x4c], al
jbe 0x422065
mov byte [esp + 0x4c], 0
test cl, 2
je 0x422073
cmp dword [esi + 0x40], edx
mov byte [esp + 0x4d], al
jbe 0x422078
mov byte [esp + 0x4d], 0
test cl, 4
je 0x422086
cmp dword [esi + 0x44], edx
mov byte [esp + 0x4e], al
jbe 0x42208b
mov byte [esp + 0x4e], 0
mov edi, dword [esi + 0x64]
mov dl, cl
shr dl, 3
and dl, al
mov byte [esp + 0x44], dl
mov dl, cl
shr dl, 4
and dl, al
mov byte [esp + 0x45], dl
mov dl, cl
shr dl, 5
and dl, al
mov byte [esp + 0x46], dl
mov edx, edi
and edx, eax
je 0x4220be
test bl, 0x10
lea eax, [esp + 0x5c]
jne 0x4220c1
lea eax, [esi + 0x18]
xor ebp, ebp
cmp edx, ebp
mov dword [esp + 0x34], eax
je 0x4220d4
test bl, 0x10
lea edx, [esp + 0x14]
jne 0x4220d7
lea edx, [esi + 0x24]
mov dword [esp + 0x30], edx
mov edx, edi
and edx, 2
je 0x4220ec
test byte [esi + 9], 0x10
lea ebx, [esp + 0x5c]
jne 0x4220ef
lea ebx, [esi + 0x1c]
cmp edx, ebp
mov dword [esp + 0x10], ebx
je 0x422101
test byte [esi + 9], 0x10
lea edx, [esp + 0x14]
jne 0x422104
lea edx, [esi + 0x28]
and edi, 4
mov dword [esp + 0x38], edx
je 0x422117
test byte [esi + 0xa], 0x10
lea edx, [esp + 0x5c]
jne 0x42211a
lea edx, [esi + 0x20]
cmp edi, ebp
mov dword [esp + 0x3c], edx
je 0x42212c
test byte [esi + 0xa], 0x10
lea edi, [esp + 0x14]
jne 0x42212f
lea edi, [esi + 0x2c]
mov dword [esp + 0x40], edi
lea edi, [esp + 0x5c]
cmp eax, edi
je 0x42244d
lea eax, [esp + 0x5c]
cmp ebx, eax
je 0x42244d
lea eax, [esp + 0x5c]
cmp edx, eax
je 0x42244d
test cl, 0x38
mov ecx, dword [esp + 0x5c]
jne 0x422286
cmp ecx, ebp
jle 0x422405
mov eax, dword [esp + 0x4c]
and eax, 0xff
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x4d]
and eax, 0xff
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x4e]
and eax, 0xff
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
jmp 0x42219b
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x2c], 4
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x3c]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, eax
add eax, edx
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x34]
shr ecx, 0x1a
and ecx, edi
mov edi, dword [esi + 0x40]
mov edx, eax
add eax, edi
dec ecx
shr edx, 0x1a
and edx, ebx
mov ebx, dword [esi + 0x38]
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x20]
mov edi, ebx
shr edi, 0x1a
and edi, eax
mov eax, dword [esi + 0x18]
lea ebp, [ecx + eax]
mov eax, dword [esi + 0x20]
xor ebp, ecx
dec edx
dec edi
add eax, edi
xor eax, edi
add ebp, eax
mov eax, dword [esi + 0x1c]
add eax, edx
xor eax, edx
add eax, dword [esp + 0x10]
add eax, ebp
mov ebp, dword [esi + 0x24]
add ebp, ecx
xor ebp, ecx
mov ecx, dword [esi + 0x28]
add ecx, edx
xor ecx, edx
mov edx, dword [esp + 0x14]
add ebp, ecx
mov ecx, dword [esi + 0x2c]
add ecx, edi
xor ecx, edi
add ecx, edx
lea edi, [ecx + ebp]
mov ecx, dword [esi + 0x44]
add ebx, ecx
mov ecx, dword [esp + 0x2c]
dec ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
mov dword [esi + 0x38], ebx
mov dword [esp + 0x2c], ecx
jne 0x4221ab
mov ecx, dword [esp + 0x58]
mov ebx, dword [ecx]
cdq
and edx, 3
add eax, edx
sar eax, 2
add ebx, eax
mov eax, edi
cdq
and edx, 3
add eax, edx
mov dword [ecx], ebx
mov edi, dword [ecx + 4]
sar eax, 2
add edi, eax
mov eax, dword [esp + 0x28]
mov dword [ecx + 4], edi
add ecx, 8
dec eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x28], eax
jne 0x422199
jmp 0x422401
cmp ecx, ebp
jle 0x422405
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x46]
and eax, 0xff
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
and eax, 0xff
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x4d]
and eax, 0xff
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x45]
and eax, 0xff
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x4e]
and eax, 0xff
and edx, 0xff
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], ecx
jmp 0x4222e5
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x30], 4
mov edx, dword [esi + 0x50]
mov edi, dword [esp + 0x18]
mov eax, edx
shr eax, 0x16
mov eax, dword [esi + eax*4 + 0x2068]
mov ecx, edx
shr ecx, 0x11
shr eax, cl
mov ecx, dword [esi + 0x54]
add ecx, edx
mov edx, dword [esi + 0x30]
mov ebx, dword [esp + 0x1c]
mov dword [esi + 0x50], ecx
mov ecx, edx
shr ecx, 0x1a
and ecx, edi
mov edi, dword [esp + 0x24]
and edi, eax
or ecx, edi
mov edi, dword [esi + 0x3c]
add edx, edi
mov edi, dword [esi + 0x34]
mov ebp, dword [esp + 0x20]
mov dword [esi + 0x30], edx
mov edx, edi
shr edx, 0x1a
and edx, ebx
mov ebx, dword [esp + 0x28]
and ebx, eax
or edx, ebx
mov ebx, dword [esi + 0x40]
add edi, ebx
mov ebx, dword [esi + 0x38]
mov dword [esi + 0x34], edi
mov edi, ebx
shr edi, 0x1a
and edi, ebp
mov ebp, dword [esp + 0x2c]
and ebp, eax
mov eax, dword [esi + 0x20]
or edi, ebp
dec ecx
dec edx
dec edi
lea ebp, [eax + edi]
mov eax, dword [esi + 0x1c]
add eax, edx
xor eax, edx
xor ebp, edi
add ebp, eax
mov eax, dword [esi + 0x18]
add eax, ecx
xor eax, ecx
add eax, dword [esp + 0x10]
add eax, ebp
mov ebp, dword [esi + 0x28]
add ebp, edx
xor ebp, edx
mov edx, dword [esi + 0x2c]
add edx, edi
xor edx, edi
mov edi, dword [esp + 0x14]
add ebp, edx
mov edx, dword [esi + 0x24]
add edx, ecx
xor edx, ecx
mov ecx, dword [esi + 0x44]
add ebx, ecx
mov ecx, dword [esp + 0x30]
add edx, edi
lea edi, [edx + ebp]
dec ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
mov dword [esi + 0x38], ebx
mov dword [esp + 0x30], ecx
jne 0x4222f5
mov ecx, dword [esp + 0x58]
mov ebx, dword [ecx]
cdq
and edx, 3
add eax, edx
sar eax, 2
add ebx, eax
mov eax, edi
cdq
and edx, 3
add eax, edx
mov dword [ecx], ebx
mov edi, dword [ecx + 4]
sar eax, 2
add edi, eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 4], edi
add ecx, 8
dec eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x34], eax
jne 0x4222e3
mov ecx, dword [esp + 0x5c]
mov eax, dword [esi + 0x4c]
shr eax, 6
imul eax, ecx
mov ecx, dword [esi + 0x48]
shr ecx, 8
add eax, ecx
cmp eax, 0x400000
mov dword [esi + 0x48], eax
jb 0x42243a
mov dl, byte [esi + 0xd]
and dl, 0xb
cmp dl, 0xa
je 0x422433
or eax, 0x200000
mov dword [esi + 0x48], eax
and dword [esi + 0x48], 0x3fffff
mov eax, dword [esi + 0x48]
pop edi
shl eax, 8
mov dword [esi + 0x48], eax
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8
mov edx, dword [esp + 0x5c]
cmp edx, ebp
jle 0x422617
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
and ecx, 0xff
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x4d]
and ecx, 0xff
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x45]
and ecx, 0xff
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x4e]
and ecx, 0xff
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x46]
and eax, 0xff
and ecx, 0xff
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x4c], edx
jmp 0x4224b4
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x44], 4
mov edx, dword [esi + 0x48]
mov edi, dword [esi + 0x10]
mov ecx, edx
shr ecx, 0x18
shl ecx, 2
mov edi, dword [edi + ecx]
mov dword [esp + 0x5c], edi
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + ecx]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x4c]
add ecx, edx
cmp ecx, 0x40000000
mov dword [esi + 0x48], ecx
jb 0x422508
mov dl, byte [esi + 0xd]
and dl, 0xb
cmp dl, 0xa
je 0x422501
or ecx, 0x20000000
mov dword [esi + 0x48], ecx
and dword [esi + 0x48], 0x3fffffff
mov edi, dword [esi + 0x50]
mov ebx, dword [esp + 0x18]
mov edx, edi
mov ecx, edi
shr ecx, 0x11
shr edx, 0x16
mov edx, dword [esi + edx*4 + 0x2068]
shr edx, cl
mov ecx, dword [esi + 0x54]
add ecx, edi
mov edi, dword [esi + 0x30]
mov dword [esi + 0x50], ecx
mov ecx, edi
shr ecx, 0x1a
and ecx, ebx
mov ebx, dword [esp + 0x24]
and ebx, edx
or ecx, ebx
mov ebx, dword [esp + 0x34]
mov ebx, dword [ebx]
dec ecx
add ebx, ecx
xor ebx, ecx
add eax, ebx
mov ebx, dword [esp + 0x30]
mov ebx, dword [ebx]
add ebx, ecx
xor ebx, ecx
mov ecx, dword [esi + 0x3c]
add edi, ecx
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x30], edi
mov edi, dword [esp + 0x1c]
shr ecx, 0x1a
and ecx, edi
mov edi, dword [esp + 0x28]
and edi, edx
or ecx, edi
add ebp, ebx
mov ebx, dword [esp + 0x10]
dec ecx
mov edi, ecx
add edi, dword [ebx]
mov ebx, dword [esp + 0x20]
xor edi, ecx
add eax, edi
mov edi, dword [esp + 0x38]
mov edi, dword [edi]
add edi, ecx
xor edi, ecx
mov ecx, dword [esi + 0x34]
add ebp, edi
mov edi, dword [esi + 0x40]
add ecx, edi
mov edi, dword [esi + 0x38]
mov dword [esi + 0x34], ecx
mov ecx, edi
shr ecx, 0x1a
and ecx, ebx
mov ebx, dword [esp + 0x2c]
and ebx, edx
mov edx, dword [esp + 0x3c]
mov edx, dword [edx]
or ecx, ebx
dec ecx
add edx, ecx
xor edx, ecx
add eax, edx
mov edx, dword [esp + 0x40]
mov edx, dword [edx]
add edx, ecx
xor edx, ecx
mov ecx, dword [esi + 0x44]
add edi, ecx
mov ecx, dword [esp + 0x44]
add ebp, edx
dec ecx
mov dword [esi + 0x38], edi
mov dword [esp + 0x44], ecx
jne 0x4224be
mov ecx, dword [esp + 0x58]
mov ebx, dword [ecx]
cdq
and edx, 3
add eax, edx
sar eax, 2
add ebx, eax
mov eax, ebp
cdq
and edx, 3
add eax, edx
mov dword [ecx], ebx
mov edi, dword [ecx + 4]
sar eax, 2
add edi, eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 4], edi
add ecx, 8
dec eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x4c], eax
jne 0x4224b2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8