Function at 0x469871
Capabilities:
Allocate or change rwx memory
Encode data using xor
Encrypt data using salsa20 or chacha
Hash data using murmur3

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x150
mov dword [ebp - 0x14c], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x140], edi
mov ebx, dword [0x4c7398]
mov edi, 0xfffffff
mov esi, dword [eax + 4]
sub eax, 4
mov dword [ebp - 0xe8], eax
mov eax, dword [esi]
and eax, edi
xor edx, edx
lea ecx, [ebx + eax - 1]
mov eax, ecx
div ebx
mov eax, dword [0x4c7398]
sub ecx, edx
mov dword [ebp - 0x84], ecx
mov eax, dword [0x403ef8]
mov dword [ebp - 0x68], eax
mov eax, dword [0x4c7398]
mov eax, dword [0x403ef8]
test eax, eax
je 0x469970
and dword [ebp - 0x78], 0
mov eax, dword [0x403ef8]
dec eax
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
test ecx, ecx
je 0x469928
mov ebx, dword [0x51b214]
imul ebx, ebx, 0x343fd
add ebx, 0x269ec3
mov dword [0x51b214], ebx
shr ebx, 0x10
shl eax, 0x10
or eax, ebx
shr edx, 0x10
jne 0x469903
xor edx, edx
div ecx
cmp dword [ebp - 0x68], 0
jbe 0x46996a
lea ebx, [edx*4 + 0x529524]
mov ecx, 0xffffc390
mov eax, 0x3c6f
inc dword [ebp - 0x78]
lock cmpxchg dword [ebx], ecx
cmp eax, 0x3c6f
je 0x469b46
lea eax, [edx + 1]
mov ecx, dword [0x403ef8]
xor edx, edx
div ecx
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x68]
jb 0x469932
xor ebx, ebx
test ebx, ebx
jne 0x4699ef
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x7c], eax
xor ebx, ebx
inc ebx
push 0x40
push 0x1000
push dword [ebp - 0x84]
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
test eax, eax
jne 0x469b5a
push eax
call dword [sym.imp.kernel32.dll_Sleep]
cmp ebx, 0x11
jb 0x46997b
xor ebx, ebx
cmp dword [0x51b2c4], ebx
ja 0x4699b7
test ebx, 3
je 0x4699cb
test ebx, ebx
je 0x4699c9
push 0x8000
push 0
push ebx
call dword [sym.imp.kernel32.dll_VirtualFree]
xor ebx, ebx
push dword [ebp - 0x7c]
call dword [sym.imp.kernel32.dll_SetLastError]
test ebx, ebx
je 0x4698d4
mov ecx, dword [ebp - 0x84]
mov eax, ebx
test ecx, ecx
je 0x4699ef
mov byte [eax], 0
inc eax
dec ecx
jne 0x4699e8
mov eax, 0xc17dde22
mov eax, dword [esi + 4]
and eax, 7
lea eax, [eax + esi + 8]
mov esi, dword [esi]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], eax
and esi, edi
lea ecx, [esi + eax]
mov eax, dword [0x4c7398]
mov edi, 0x400000
mov dword [ebp - 0x7c], ecx
sub eax, esi
sub dword [ebp - 0x80], edi
lea ecx, [eax + 1]
xor eax, eax
test ecx, ecx
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0x68], ecx
je 0x469a55
mov edx, dword [0x51b214]
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov dword [0x51b214], edx
shr edx, 0x10
shl eax, 0x10
or eax, edx
shr dword [ebp - 0x68], 0x10
jne 0x469a2f
xor edx, edx
div ecx
add ebx, edx
push ebx
push esi
push dword [ebp - 0x80]
mov dword [ebp - 0xc8], ebx
mov eax, 0xd6e3761
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x78]
add esp, 0xc
test esi, esi
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0xf0], ecx
mov byte [ebp - 0x55], 0
mov dword [ebp - 0xcc], esi
mov ebx, 0xfffff000
mov dword [ebp - 0x84], eax
je 0x46a1c3
lea eax, [ebp - 0xf0]
push eax
mov eax, 0x64636131
mov esi, dword [ebp - 0xf0]
and dword [ebp - 0x60], 0
mov eax, 0xfffffff
and dword [ebp - 0x5c], 0
pop ecx
mov ecx, dword [ebp - 0xec]
and ecx, eax
and esi, eax
mov dword [ebp - 0x74], ecx
add esi, edi
mov eax, edi
mov ecx, dword [0x402600]
sub eax, ecx
mov dword [ebp - 0xf8], eax
jne 0x469b61
xor ebx, ebx
cmp dword [ebp - 0x74], ebx
jbe 0x469dc6
mov edi, 0x4494b131
mov ecx, 0x7fffffff
movzx edx, byte [ebx + esi]
sub edx, edi
add dword [ebp - 0x60], edx
add edx, dword [ebp - 0x5c]
mov eax, edx
imul eax, eax, 0xd384
rol eax, 0xf
ror edx, 0xf
xor eax, edx
mov edx, 0xbb6b4ecf
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, ecx
sub edx, eax
mov eax, edx
sar eax, 0x1f
and eax, ecx
add eax, edx
add dword [ebp - 0x60], eax
inc ebx
cmp ebx, dword [ebp - 0x74]
mov dword [ebp - 0x5c], eax
jb 0x469afb
jmp 0x469dc6
mov ebx, dword [0x4c7398]
imul ebx, edx
lea ebx, [ebx + section..data]
jmp 0x46996c
mov ebx, eax
jmp 0x4699a7
mov ecx, esi
mov eax, dword [ebp - 0x74]
mov edx, dword [0x40003c]
lea edx, [edx + 0x4000a0]
add eax, esi
mov dword [ebp - 0x6c], eax
mov eax, dword [edx]
mov edx, dword [edx + 4]
add eax, edi
sub ecx, edi
mov dword [ebp - 0x70], edx
mov edi, ecx
mov edx, dword [ebp - 0x74]
and edi, ebx
mov dword [ebp - 0x64], edi
mov edi, ecx
sub edi, dword [ebp - 0x64]
add ecx, edx
mov edx, ecx
and edx, ebx
sub ecx, edx
mov dword [ebp - 0xe0], ecx
mov ebx, eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0xe4], edx
add ecx, eax
cmp eax, ecx
mov dword [ebp - 0xdc], ecx
je 0x469bc5
mov eax, dword [ebx]
cmp eax, dword [ebp - 0x64]
jae 0x469bc5
add ebx, dword [ebx + 4]
cmp ebx, ecx
jne 0x469bb7
and dword [ebp - 0xd4], 0
cmp ebx, ecx
je 0x469c04
mov eax, dword [ebp - 0x64]
cmp dword [ebx], eax
jne 0x469c04
mov eax, dword [ebx + 4]
sub eax, 8
shr eax, 1
je 0x469c04
mov ecx, dword [ebp - 0xd4]
movzx ecx, word [ebx + ecx*2 + 8]
and ecx, 0xfff
cmp ecx, edi
jae 0x469c04
inc dword [ebp - 0xd4]
cmp dword [ebp - 0xd4], eax
jne 0x469be1
mov edi, 0x4494b131
mov ecx, 0x7fffffff
cmp ebx, dword [ebp - 0xdc]
je 0x469d74
cmp dword [ebx], edx
ja 0x469d74
mov eax, dword [ebx + 4]
lea edx, [eax - 8]
shr edx, 1
mov eax, dword [ebp - 0xd4]
cmp eax, edx
jne 0x469c5a
add ebx, dword [ebx + 4]
cmp ebx, dword [ebp - 0xdc]
je 0x469d74
mov eax, dword [ebp - 0xe4]
cmp dword [ebx], eax
ja 0x469d74
and dword [ebp - 0xd4], 0
jmp 0x469c22
mov edx, dword [ebp - 0xe4]
cmp dword [ebx], edx
jne 0x469c80
movzx eax, word [ebx + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0xe0]
jae 0x469d74
mov eax, dword [ebp - 0xd4]
inc dword [ebp - 0xd4]
test word [ebx + eax*2 + 8], 0xf000
mov dword [ebp - 0x70], eax
je 0x469c0e
movzx eax, word [ebx + eax*2 + 8]
mov edx, dword [ebx]
and dword [ebp - 0x74], 0
and eax, 0xfff
lea eax, [eax + edx + 0x400000]
mov dword [ebp - 0x64], eax
sub dword [ebp - 0x64], esi
mov dword [ebp - 0x70], eax
je 0x469d06
mov eax, dword [ebp - 0x74]
movzx edx, byte [eax + esi]
sub edx, edi
add dword [ebp - 0x60], edx
add edx, dword [ebp - 0x5c]
mov eax, edx
imul eax, eax, 0xd384
rol eax, 0xf
ror edx, 0xf
xor eax, edx
mov edx, 0xbb6b4ecf
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, ecx
sub edx, eax
mov eax, edx
sar eax, 0x1f
and eax, ecx
add eax, edx
add dword [ebp - 0x60], eax
inc dword [ebp - 0x74]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x64]
jb 0x469cb8
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
sub eax, dword [ebp - 0xf8]
mov dword [ebp - 0xf4], eax
xor esi, esi
movzx edx, byte [ebp + esi - 0xf4]
sub edx, edi
add dword [ebp - 0x60], edx
add edx, dword [ebp - 0x5c]
mov eax, edx
imul eax, eax, 0xd384
rol eax, 0xf
ror edx, 0xf
xor eax, edx
mov edx, 0xbb6b4ecf
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, ecx
sub edx, eax
mov eax, edx
sar eax, 0x1f
and eax, ecx
add eax, edx
add dword [ebp - 0x60], eax
inc esi
cmp esi, 4
mov dword [ebp - 0x5c], eax
jb 0x469d19
mov esi, dword [ebp - 0x70]
add esi, 4
mov edx, dword [ebp - 0xe4]
jmp 0x469c0e
xor ebx, ebx
mov eax, dword [ebp - 0x6c]
sub eax, esi
mov dword [ebp - 0x6c], eax
je 0x469dc6
movzx edx, byte [ebx + esi]
sub edx, edi
add dword [ebp - 0x60], edx
add edx, dword [ebp - 0x5c]
mov eax, edx
imul eax, eax, 0xd384
rol eax, 0xf
ror edx, 0xf
xor eax, edx
mov edx, 0xbb6b4ecf
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, ecx
sub edx, eax
mov eax, edx
sar eax, 0x1f
and eax, ecx
add eax, edx
add dword [ebp - 0x60], eax
inc ebx
cmp ebx, dword [ebp - 0x6c]
mov dword [ebp - 0x5c], eax
jb 0x469d80
xor edi, edi
xor eax, eax
mov ecx, eax
and ecx, 7
mov cl, byte [ebp + ecx - 0x60]
mov byte [ebp + eax - 0x54], cl
inc eax
cmp eax, 0x10
jb 0x469dca
mov eax, 0x8dbb6fcf
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x10c], eax
mov eax, dword [0x5294e0]
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x108], ecx
mov ecx, dword [eax]
mov dword [ebp - 0x138], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x124], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x110], ecx
lea ecx, [ebp - 0x44]
sub eax, ecx
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x78]
sub eax, dword [ebp - 0xc8]
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x104], edx
mov dword [ebp - 0x100], esi
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x6c], eax
lea edi, [ebp - 0xc4]
lea esi, [ebp - 0x138]
push 0x10
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xa4]
mov esi, dword [ebp - 0xc4]
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x70], 3
mov ebx, dword [ebp - 0xb0]
lea edi, [edx + esi]
rol edi, 7
xor eax, edi
lea edi, [esi + eax]
rol edi, 9
xor ecx, edi
lea edi, [ecx + eax]
rol edi, 0xd
xor edx, edi
lea edi, [ecx + edx]
ror edi, 0xe
xor esi, edi
mov edi, dword [ebp - 0xc0]
add edi, ebx
rol edi, 7
xor dword [ebp - 0xa0], edi
mov edi, ebx
mov ebx, dword [ebp - 0xa0]
add edi, ebx
rol edi, 9
xor dword [ebp - 0x90], edi
mov edi, ebx
mov ebx, dword [ebp - 0x90]
add ebx, edi
rol ebx, 0xd
mov edi, dword [ebp - 0x90]
xor dword [ebp - 0xc0], ebx
mov ebx, dword [ebp - 0xc0]
add edi, ebx
ror edi, 0xe
mov ebx, dword [ebp - 0x9c]
xor dword [ebp - 0xb0], edi
mov edi, dword [ebp - 0xac]
add edi, ebx
rol edi, 7
xor dword [ebp - 0x8c], edi
mov edi, ebx
mov ebx, dword [ebp - 0x8c]
add edi, ebx
rol edi, 9
xor dword [ebp - 0xbc], edi
mov edi, ebx
mov ebx, dword [ebp - 0xbc]
add ebx, edi
mov edi, dword [ebp - 0xbc]
rol ebx, 0xd
xor dword [ebp - 0xac], ebx
mov ebx, dword [ebp - 0xac]
add edi, ebx
ror edi, 0xe
mov ebx, dword [ebp - 0x88]
xor dword [ebp - 0x9c], edi
mov edi, dword [ebp - 0x98]
add edi, ebx
rol edi, 7
xor dword [ebp - 0xb8], edi
mov edi, ebx
mov ebx, dword [ebp - 0xb8]
add edi, ebx
rol edi, 9
xor dword [ebp - 0xa8], edi
mov edi, ebx
mov ebx, dword [ebp - 0xa8]
add ebx, edi
rol ebx, 0xd
mov edi, dword [ebp - 0xa8]
xor dword [ebp - 0x98], ebx
mov ebx, dword [ebp - 0x98]
add edi, ebx
ror edi, 0xe
xor dword [ebp - 0x88], edi
mov edi, dword [ebp - 0xb8]
add edi, esi
rol edi, 7
xor dword [ebp - 0xc0], edi
mov edi, dword [ebp - 0xc0]
add edi, esi
rol edi, 9
xor dword [ebp - 0xbc], edi
mov ebx, dword [ebp - 0xbc]
mov edi, dword [ebp - 0xc0]
add ebx, edi
rol ebx, 0xd
mov edi, dword [ebp - 0xbc]
xor dword [ebp - 0xb8], ebx
mov ebx, dword [ebp - 0xb8]
add ebx, edi
mov edi, dword [ebp - 0xb0]
add edi, eax
ror ebx, 0xe
xor esi, ebx
rol edi, 7
xor dword [ebp - 0xac], edi
mov edi, dword [ebp - 0xb0]
mov ebx, dword [ebp - 0xac]
add ebx, edi
mov edi, dword [ebp - 0xac]
rol ebx, 9
xor dword [ebp - 0xa8], ebx
mov ebx, dword [ebp - 0xa8]
add ebx, edi
rol ebx, 0xd
xor eax, ebx
mov edi, dword [ebp - 0xa8]
mov ebx, dword [ebp - 0xa0]
add edi, eax
ror edi, 0xe
xor dword [ebp - 0xb0], edi
mov edi, dword [ebp - 0x9c]
add edi, ebx
rol edi, 7
xor dword [ebp - 0x98], edi
mov ebx, dword [ebp - 0x98]
mov edi, dword [ebp - 0x9c]
add ebx, edi
mov edi, dword [ebp - 0x98]
rol ebx, 9
xor ecx, ebx
mov ebx, dword [ebp - 0x8c]
add edi, ecx
rol edi, 0xd
xor dword [ebp - 0xa0], edi
mov edi, dword [ebp - 0xa0]
add edi, ecx
ror edi, 0xe
xor dword [ebp - 0x9c], edi
mov edi, dword [ebp - 0x88]
add edi, ebx
rol edi, 7
xor edx, edi
mov edi, dword [ebp - 0x88]
add edi, edx
rol edi, 9
xor dword [ebp - 0x90], edi
mov edi, dword [ebp - 0x90]
add edi, edx
rol edi, 0xd
xor dword [ebp - 0x8c], edi
mov edi, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x8c]
add ebx, edi
ror ebx, 0xe
xor dword [ebp - 0x88], ebx
dec dword [ebp - 0x70]
jne 0x469ea8
mov dword [ebp - 0x94], edx
push 0x40
mov dword [ebp - 0xb4], eax
xor edx, edx
xor eax, eax
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xc4], esi
pop ebx
mov ecx, dword [ebp + eax - 0x138]
add dword [ebp + eax - 0xc4], ecx
add eax, 4
cmp eax, ebx
jl 0x46a11c
lea edi, [ebp - 0x44]
lea esi, [ebp - 0xc4]
inc dword [ebp - 0x118]
cmp dword [ebp - 0xcc], ebx
push 0x10
pop ecx
rep movsd dword es:[edi], dword [esi]
jbe 0x46a183
mov esi, dword [ebp - 0x64]
mov eax, dword [ebp - 0x6c]
lea edi, [esi + eax]
lea ecx, [ebp + edx - 0x44]
mov al, byte [ecx + edi]
xor al, byte [ecx]
xor byte [ebp - 0x55], al
inc edx
mov byte [ecx + esi], al
cmp edx, ebx
jb 0x46a156
sub dword [ebp - 0xcc], ebx
add dword [ebp - 0x68], ebx
add esi, ebx
add dword [ebp - 0x84], ebx
mov dword [ebp - 0x64], esi
jmp 0x469e78
cmp dword [ebp - 0xcc], edx
jbe 0x46a1b3
mov esi, dword [ebp - 0x84]
lea eax, [ebp - 0x44]
sub esi, eax
mov edi, dword [ebp - 0x68]
sub edi, eax
lea ecx, [ebp + edx - 0x44]
mov al, byte [ecx + esi]
xor al, byte [ecx]
xor byte [ebp - 0x55], al
inc edx
cmp edx, dword [ebp - 0xcc]
mov byte [ecx + edi], al
jb 0x46a19b
mov edi, 0x400000
mov ebx, 0xfffff000
mov esi, dword [ebp - 0xd0]
mov eax, dword [ebp - 0x7c]
mov al, byte [eax + 8]
xor al, byte [ebp - 0x55]
je 0x46a25b
call fcn.004a5a28
mov edi, eax
mov edx, 0xffff
mov eax, dword [ebp - 0xe8]
lea ecx, [eax + 0xc]
mov dword [eax + 8], 0x4b3c5b
and ecx, 0xfffffffc
lea esi, [ecx + 0xfff]
and edi, ebx
and esi, ebx
xor eax, eax
mov ebx, dword [0x51b214]
imul ebx, ebx, 0x343fd
add ebx, 0x269ec3
mov dword [0x51b214], ebx
shr ebx, 0x10
shl eax, 0x10
or eax, ebx
shr edx, 0x10
jne 0x46a1fd
mov ebx, 0xffff
xor edx, edx
div ebx
inc edx
mov eax, ecx
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x6c], 0
cmp ecx, esi
jae 0x46a251
mov ecx, dword [ebp - 0x6c]
mov dword [eax], ecx
add eax, 4
cmp eax, esi
jb 0x46a245
mov eax, 0x4b3c5b
jmp 0x46a337
mov ecx, dword [0x402600]
mov eax, dword [ebp - 0x78]
sub eax, dword [ebp - 0xc8]
mov dword [ebp - 0xd0], eax
sub edi, ecx
mov dword [ebp - 0x7c], edi
jne 0x46a27f
test eax, eax
je 0x46a327
mov eax, dword [ebp - 0x80]
mov ecx, dword [0x4bebb0]
mov edi, dword [ebp - 0xc8]
sub edi, dword [ebp - 0x78]
add eax, esi
xor esi, esi
dec ecx
mov dword [ebp - 0x6c], eax
js 0x46a2c3
lea eax, [esi + ecx]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [eax*4 + 0x4bebb4]
and edx, 0xfffffff
cmp dword [ebp - 0x80], edx
jae 0x46a2ba
lea ecx, [eax - 1]
jmp 0x46a2bf
jbe 0x46a2c7
lea esi, [eax + 1]
cmp ecx, esi
jge 0x46a29b
mov ebx, esi
jmp 0x46a31f
mov ebx, eax
jmp 0x46a31f
mov eax, dword [ebx*4 + 0x4bebb4]
mov ecx, eax
and ecx, 0xfffffff
cmp ecx, dword [ebp - 0x6c]
jae 0x46a327
lea esi, [ecx + edi + 0x400000]
mov ecx, eax
shl ecx, 2
sar ecx, 0x1e
sar eax, 0x1e
and ecx, 3
and eax, 3
xor edx, edx
dec ecx
je 0x46a30f
dec ecx
je 0x46a307
dec ecx
jne 0x46a318
mov edx, dword [ebp - 0x7c]
jmp 0x46a318
mov edx, dword [ebp - 0xd0]
jmp 0x46a318
mov edx, dword [ebp - 0x7c]
sub edx, dword [ebp - 0xd0]
dec eax
dec eax
jne 0x46a31e
add dword [esi], edx
inc ebx
cmp ebx, dword [0x4bebb0]
jb 0x46a2cb
mov eax, dword [0x4c7398]
mov eax, 0x31abdb8d
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xe8]
mov dword [ecx + 8], eax
mov esi, dword [ebp - 0x13c]
mov edi, dword [ebp - 0x140]
mov edx, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x144]
mov ebx, dword [ebp - 0x148]
mov eax, dword [ebp - 0x14c]
mov esp, ebp
pop ebp
popfd
ret