Function at 0x406070
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x48
mov eax, dword [0x42200c]
xor eax, esp
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x4c]
push ebx
push ebp
push esi
mov eax, dword [ecx + 0x3c]
xor ebp, ebp
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0
mov edx, dword [eax + ecx + 0x78]
mov eax, dword [edx + ecx + 0x20]
add edx, ecx
mov dword [esp + 0x20], edx
add eax, ecx
mov dword [esp + 0x14], eax
mov edx, dword [edx + 0x18]
mov dword [esp + 0x1c], edx
test edx, edx
je 0x40631e
nop word [eax + eax]
mov edx, dword [eax]
xorps xmm0, xmm0
add edx, ecx
mov dword [esp + 0x34], 0
mov eax, edx
mov dword [esp + 0x38], 0
movups xmmword [esp + 0x24], xmm0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4060e1
sub eax, esi
lea ecx, [esp + 0x24]
push eax
push edx
call fcn.00401070
mov edi, dword [esp + 0x34]
lea ebx, [esp + 0x24]
mov esi, edi
xor esi, 0x14d
cmp dword [esp + 0x38], 0x10
cmovae ebx, dword [esp + 0x24]
push ebx
shr edi, 2
push edi
push str._x_and__p
call fcn.00406450
add esp, 0xc
xor edx, edx
test edi, edi
je 0x406151
nop word [eax + eax]
imul ecx, dword [ebx + edx*4], 0x5bd1e991
inc edx
imul esi, esi, 0x5bd1e991
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e991
xor esi, ecx
cmp edx, edi
jl 0x406130
mov eax, dword [esp + 0x34]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x40617b
sub eax, 1
je 0x406171
sub eax, 1
jne 0x406189
movsx ecx, byte [ebx + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [ebx + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [ebx + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul eax, eax, 0x5bd1e991
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
je 0x4061a5
cmp ecx, dword [esp + 0x60]
je 0x4061fe
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
add eax, 4
mov dword [esp + 0x14], eax
cmp ecx, 0x10
jb 0x4061ea
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4061dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406337
push ecx
push edx
call fcn.00406f2a
mov eax, dword [esp + 0x1c]
add esp, 8
mov ecx, dword [esp + 0x10]
inc ebp
cmp ebp, dword [esp + 0x1c]
jae 0x40631e
jmp 0x4060c0
xorps xmm0, xmm0
lea ecx, [esp + 0x3c]
push 0x50
movups xmmword [esp + 0x40], xmm0
call fcn.00405e20
movups xmm0, xmmword [str.006:107_4:_00007:277_0:_004:_04:_008:_08:_08:_8:_7:2_3:_9:193_4:_]
mov edi, eax
mov dword [esp + 0x4c], 0x41
mov ebx, 0x4f
mov dword [esp + 0x3c], edi
push 0xc
mov dword [esp + 0x54], ebx
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x41a210]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x41a220]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [0x41a230]
movups xmmword [edi + 0x30], xmm0
mov al, byte [0x41a240]
mov byte [edi + 0x40], al
mov byte [edi + 0x41], 0
call fcn.00406efa
add esp, 4
test eax, eax
je 0x406283
lea ecx, [esp + 0x3c]
push ecx
mov ecx, eax
call fcn.004011a0
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x3c]
jmp 0x406285
xor eax, eax
mov esi, dword [eax + 4]
push 0xc
push eax
shl esi, 2
call fcn.00406f2a
mov ecx, dword [esp + 0x18]
mov eax, esi
cdq
add esp, 8
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
imul eax, ebp
add eax, dword [edx + 0x24]
movzx eax, word [eax + ecx]
imul eax, esi
add eax, dword [edx + 0x1c]
mov eax, dword [eax + ecx]
mov dword [esp + 0x18], eax
cmp ebx, 0x10
jb 0x4062e8
lea ecx, [ebx + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4062de
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406337
push ecx
push edi
call fcn.00406f2a
add esp, 8
mov ecx, dword [esp + 0x38]
cmp ecx, 0x10
jb 0x40631a
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406310
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406337
push ecx
push edx
call fcn.00406f2a
add esp, 8
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
pop edi
pop esi
add eax, ecx
mov ecx, dword [esp + 0x4c]
pop ebp
pop ebx
xor ecx, esp
call fcn.00406f38
add esp, 0x48
ret
call fcn.00409f0f
int3