Function at 0x46df40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xf0
xorps xmm4, xmm4
movups xmmword [ebp - 0x38], xmm4
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xdc], ecx
mov esi, edx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x46df97
call fcn.0046dbf0
mov edi, eax
mov ecx, dword [ebp - 0xdc]
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x78], eax
test al, 3
jne 0x46dfbb
lea edx, [eax + 1]
lea ebx, [ecx + 0xc]
lock cmpxchg dword [ebx], edx
mov edx, dword [ebp - 0x78]
cmp eax, edx
jne 0x46dfbb
mov dword [ebp + 8], edi
jmp 0x46e31c
mov ecx, dword [ebp - 0xdc]
cmp dword [ecx + 8], edi
jne 0x46dfbb
mov edx, dword [ecx + 0x10]
inc edx
je 0x46e7a5
mov dword [ecx + 0x10], edx
mov eax, edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x46dfc6
xor eax, eax
jmp 0x46dfb1
mov ebx, dword [0x6456e0]
cmp ebx, 1
je 0x46dffe
cmp ebx, 3
jne 0x46e08d
cmp word [ecx + 0x14], 0x8000
jne 0x46e0a5
mov edx, 0x6456e0
movsx edx, word [edx + 6]
mov word [ecx + 0x14], dx
mov ecx, dword [ebp - 0xdc]
jmp 0x46e0a5
mov ebx, 1
jmp 0x46e009
test ebx, ebx
je 0x46e02d
push 0
lea ecx, [ebp - 0xfc]
mov edx, 4
call fcn.004039d0
call sub.KERNEL32.dll_Sleep
lea ecx, [ebp - 0xfc]
call fcn.00403a01
jmp 0x46e041
push 1
call fcn.00404e30
cmp dword [0x648478], 0
jne 0x46e7c8
mov eax, dword [0x6456e0]
cmp eax, 3
mov ecx, dword [ebp - 0xdc]
je 0x46dfda
test eax, eax
je 0x46e08d
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x7c], eax
test al, 3
jne 0x46e080
mov dword [ebp + 8], edi
lea edx, [eax + 1]
lea edi, [ecx + 0xc]
lock cmpxchg dword [edi], edx
mov edx, dword [ebp - 0x7c]
cmp eax, edx
je 0x46e31c
mov ecx, dword [ebp - 0xdc]
mov edi, dword [ebp + 8]
test ebx, ebx
sete bl
movzx ebx, bl
jmp 0x46e005
call fcn.0046dce0
test eax, eax
mov ecx, dword [ebp - 0xdc]
je 0x46dffe
jmp 0x46dfda
mov eax, 0x6456e0
movsx ebx, word [eax + 6]
test ebx, ebx
je 0x46e333
mov eax, 0x6456e0
movsx eax, word [eax + 8]
mov dword [ebp - 0x18], eax
movsx edx, word [ecx + 0x14]
test edx, edx
jge 0x46e0d4
inc edx
mov word [ecx + 0x14], dx
jmp 0x46e333
mov dword [ebp + 8], edi
xor eax, eax
mov dword [ebp - 0x20], eax
mov edi, dword [ecx + 0xc]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], 1
cmp dword [ebp - 0x50], 0x80
jb 0x46e13d
test byte [ebp - 0x50], 2
jne 0x46e1b4
movzx eax, word [ecx + 0x16]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x46e13d
cmp dword [0x648478], 0
mov dword [ebp - 0x1c], edx
jne 0x46e7d2
call sub.KERNEL32.dll_GetTickCount64
sub eax, dword [ebp - 0x58]
movzx ecx, ax
cmp ecx, 0x64
jl 0x46e13a
mov ecx, dword [ebp - 0x50]
add ecx, 2
mov dword [ebp - 0x50], ecx
mov eax, 2
mov dword [ebp - 0x54], eax
jmp 0x46e173
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xdc]
test byte [ebp - 0x50], 1
jne 0x46e15a
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x1c], edx
jmp 0x46e173
test byte [ebp - 0x50], 0x1c
je 0x46e1af
mov dword [ebp - 0x1c], edx
test edx, edx
je 0x46e1aa
lea ecx, [ebp - 0x50]
call fcn.004af590
test eax, eax
je 0x46e19f
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0xdc]
lea ecx, [edx + 0xc]
mov esi, dword [ebp - 0x80]
mov eax, edi
lock cmpxchg dword [ecx], esi
cmp eax, edi
je 0x46e1bb
mov edi, eax
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ebp - 0x1c]
jmp 0x46e0df
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ebp - 0x1c]
jmp 0x46e1b4
mov edx, dword [ebp - 0x1c]
jmp 0x46e1b4
mov dword [ebp - 0x1c], edx
jmp 0x46e167
mov eax, 2
jmp 0x46e1de
mov eax, dword [ebp - 0x54]
cmp eax, 1
jne 0x46e1d5
mov ecx, 1
test edi, 0x1c
cmovne ecx, dword [ebp - 0x20]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ebp - 0x1c]
cmp eax, 1
jne 0x46e317
cmp dword [ebp - 0x20], 0
cmovne edx, ebx
mov dword [ebp - 0x1c], edx
xor eax, eax
push 0
mov dword [ebp - 0x24], eax
mov ecx, eax
mov edx, 0xa
call fcn.00472190
mov eax, dword [ebp - 0x24]
inc eax
cwde
mov ecx, eax
cmp ecx, dword [ebp - 0x1c]
jge 0x46e2ab
mov eax, dword [ebp - 0xdc]
mov edi, dword [eax + 0xc]
test edi, 3
jne 0x46e23f
lea esi, [edi - 3]
lea edx, [eax + 0xc]
mov eax, edi
lock cmpxchg dword [edx], esi
cmp eax, edi
je 0x46e255
mov edi, eax
mov eax, dword [ebp - 0xdc]
jmp 0x46e21d
test edi, 2
jne 0x46e24e
mov edi, 1
jmp 0x46e25d
mov edi, 2
jmp 0x46e25d
xor edi, edi
mov eax, dword [ebp - 0xdc]
cmp edi, 1
je 0x46e2a4
mov ecx, eax
mov edx, edi
test edx, edx
jne 0x46e2ab
cmp dword [ebp - 0x20], 0
je 0x46e31c
cmp dword [ebp - 0x18], 0
jg 0x46e31c
movsx edx, word [ecx + 0x14]
mov esi, edx
cmp esi, ebx
jge 0x46e31c
lea eax, [esi + 1]
mov word [ecx + 0x14], ax
jmp 0x46e31c
mov eax, ecx
jmp 0x46e1f3
mov ecx, dword [ebp - 0xdc]
lea edx, [ecx + 0xc]
mov eax, 0xfffffffc
lock xadd dword [edx], eax
add eax, 0xfffffffc
test al, 1
jne 0x46e2df
lea edi, [eax + 1]
mov dword [ebp - 0x84], eax
lock cmpxchg dword [edx], edi
mov edi, dword [ebp - 0x84]
cmp eax, edi
je 0x46e2e6
mov edi, eax
jmp 0x46e2c0
mov eax, 2
jmp 0x46e2e8
xor eax, eax
cmp dword [ebp - 0x20], 0
je 0x46e317
cmp dword [ebp - 0x18], 0
jg 0x46e317
movsx edx, word [ecx + 0x14]
test eax, eax
jne 0x46e307
cmp edx, ebx
jge 0x46e317
inc edx
mov word [ecx + 0x14], dx
jmp 0x46e317
lea edi, [edx - 1]
movsx edi, di
test edx, edx
cmovle edi, dword [ebp - 0x18]
mov word [ecx + 0x14], di
cmp eax, 2
je 0x46e330
mov ecx, dword [ebp - 0xdc]
mov edi, dword [ebp + 8]
mov dword [ecx + 8], edi
mov edi, dword [ebp + 8]
jmp 0x46dfaf
mov edi, dword [ebp + 8]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x46e376
xor edx, edx
call fcn.0046e820
mov dword [ebp + 8], edi
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xe0], eax
mov edx, dword [ecx + 0xc]
xor edi, edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x60], edx
test byte [ebp - 0x60], 3
jne 0x46e37b
mov edi, dword [ebp - 0x60]
inc edi
mov dword [ebp - 0x60], edi
mov edx, dword [ebp - 0x88]
jmp 0x46e3b8
mov dword [ebp + 8], edi
jmp 0x46e34a
lea ecx, [ebp - 0x60]
call fcn.004af5b0
test eax, eax
je 0x46e7dc
mov edi, dword [ebp - 0x88]
cmp edi, 0x80
jae 0x46e3d8
mov edx, dword [ebp - 0x5c]
test edx, edx
mov dword [ebp - 0x5c], edx
jne 0x46e3d4
mov dword [ebp - 0x5c], 1
mov ecx, dword [ebp - 0xdc]
mov word [ecx + 0x16], 0
mov edx, edi
mov edi, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xdc]
lea eax, [ecx + 0xc]
mov esi, eax
mov eax, edx
lock cmpxchg dword [esi], edi
cmp eax, edx
je 0x46e3dc
mov edx, eax
jmp 0x46e358
mov edx, edi
jmp 0x46e3b8
mov edx, edi
jmp 0x46e3b8
test dl, 3
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0x14], ebx
je 0x46e31c
mov eax, dword [ebp - 0x5c]
cmp edx, 0x80
setb dl
movzx edx, dl
or eax, edx
je 0x46e42b
call sub.KERNEL32.dll_GetTickCount64
movzx edi, ax
cmp dword [0x648478], 0
jne 0x46e7e2
lea ecx, [edi - 1]
movzx ecx, cx
test edi, edi
cmove edi, ecx
mov ecx, dword [ebp - 0xdc]
mov word [ecx + 0x16], di
mov eax, 0x6456e0
add eax, 0x10
mov dword [ebp - 0xe4], eax
mov edx, eax
mov esi, dword [edx]
mov edx, dword [edx + 4]
mov dword [ebp - 0x90], edx
mov ebx, esi
add ebx, 1
adc edx, 0
push edx
push ebx
mov ebx, dword [ebp - 0x90]
push ebx
push esi
mov ecx, eax
call fcn.00404e10
xor eax, esi
xor edx, ebx
or eax, edx
mov eax, dword [ebp - 0xe4]
jne 0x46e439
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0x38], ecx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 2
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x2c], esi
call fcn.00401a60
mov edx, dword [eax + 4]
mov dword [ebp - 0x28], edx
lea edx, [ebp - 0x34]
mov dword [eax + 4], edx
xor edx, edx
mov dword [ebp - 0x3c], edx
test esi, esi
jl 0x46e4c1
call sub.KERNEL32.dll_GetTickCount64
mov edi, eax
cmp dword [0x648478], 0
je 0x46e4c7
call fcn.00403201
jmp 0x46e4c7
xor ecx, ecx
xor eax, eax
mov edi, eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x10], esi
mov eax, esi
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ecx + 0xc]
test dl, 0x40
setne dl
movzx edx, dl
push edx
push 0
push 0
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0x44], eax
mov edx, eax
cmp dword [ecx], ecx
call fcn.00476c90
test eax, eax
je 0x46e750
xor eax, eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x14], 0
jle 0x46e58c
xor edx, edx
mov ecx, dword [ebp - 0xdc]
mov edi, dword [ecx + 0xc]
test edi, 1
jne 0x46e60b
lea esi, [edi - 0x9f]
test esi, 2
je 0x46e572
add esi, 0xfffffffe
cmp esi, 0x80
jb 0x46e572
test edx, edx
jne 0x46e572
mov dword [ebp - 0x64], 1
call sub.KERNEL32.dll_GetTickCount64
movzx eax, ax
cmp dword [0x648478], 0
jne 0x46e594
test eax, eax
jne 0x46e565
dec eax
movzx eax, ax
mov edx, eax
mov ecx, dword [ebp - 0xdc]
mov word [ecx + 0x16], ax
mov edx, dword [ebp - 0x64]
mov ebx, dword [ebp - 0xe8]
mov eax, edi
lock cmpxchg dword [ebx], esi
cmp eax, edi
je 0x46e5cf
mov edi, eax
mov dword [ebp - 0xe8], ebx
jmp 0x46e51a
mov ebx, dword [ebp - 0x14]
jmp 0x46e634
mov dword [ebp - 0x68], eax
call fcn.00403201
mov eax, dword [ebp - 0x68]
jmp 0x46e55b
call fcn.00403201
jmp 0x46e5f4
mov dword [ebp - 0x70], eax
call fcn.00403201
mov eax, dword [ebp - 0x70]
jmp 0x46e696
call fcn.00403201
jmp 0x46e6ff
call fcn.00403201
mov eax, dword [ebp - 0x48]
jmp 0x46e73b
cmp esi, 0x80
jb 0x46e756
test edx, edx
jne 0x46e756
call sub.KERNEL32.dll_GetTickCount64
movzx ebx, ax
cmp dword [0x648478], 0
jne 0x46e5a1
test ebx, ebx
jne 0x46e5fc
dec ebx
movzx ebx, bx
mov ecx, dword [ebp - 0xdc]
mov word [ecx + 0x16], bx
jmp 0x46e756
mov eax, dword [ebp - 0x4c]
push 0
mov dword [ebp - 0x4c], eax
mov ecx, eax
mov edx, 0xa
call fcn.00472190
mov edi, dword [ebp - 0x4c]
inc edi
movsx edi, di
mov ebx, dword [ebp - 0x14]
cmp edi, ebx
mov dword [ebp - 0x4c], edi
jl 0x46e6d6
cmp dword [ebp - 0x3c], 0
jne 0x46e750
mov eax, 0xffffffe0
mov edx, dword [ebp - 0xe8]
lock xadd dword [edx], eax
add eax, 0xffffffe0
xor ecx, ecx
test al, 1
jne 0x46e713
mov dword [ebp - 0x8c], eax
lea edi, [eax - 0x7f]
test edi, 2
je 0x46e6ad
add edi, 0xfffffffe
cmp edi, 0x80
jb 0x46e6ad
test ecx, ecx
jne 0x46e6ad
mov dword [ebp - 0x6c], 1
call sub.KERNEL32.dll_GetTickCount64
movzx eax, ax
cmp dword [0x648478], 0
jne 0x46e5a8
test eax, eax
jne 0x46e6a0
dec eax
movzx eax, ax
mov edx, eax
mov ecx, dword [ebp - 0xdc]
mov word [ecx + 0x16], ax
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0xe8]
mov eax, dword [ebp - 0x8c]
lock cmpxchg dword [edx], edi
mov esi, dword [ebp - 0x8c]
cmp eax, esi
je 0x46e6de
mov esi, eax
mov dword [ebp - 0xe8], edx
mov eax, esi
jmp 0x46e652
mov dword [ebp - 0x14], ebx
jmp 0x46e50f
cmp edi, 0x80
jb 0x46e756
test ecx, ecx
jne 0x46e756
call sub.KERNEL32.dll_GetTickCount64
movzx ebx, ax
cmp dword [0x648478], 0
jne 0x46e5b8
test ebx, ebx
jne 0x46e707
dec ebx
movzx ebx, bx
mov ecx, dword [ebp - 0xdc]
mov word [ecx + 0x16], bx
jmp 0x46e756
mov eax, dword [ebp - 0x44]
test eax, eax
mov dword [ebp - 0x14], ebx
jl 0x46e4cf
call sub.KERNEL32.dll_GetTickCount64
mov edi, dword [ebp - 0x40]
sub eax, edi
mov dword [ebp - 0x48], eax
cmp dword [0x648478], 0
jne 0x46e5c2
mov esi, dword [ebp - 0x10]
cmp eax, esi
jae 0x46e750
mov edx, esi
sub edx, eax
mov eax, edx
mov dword [ebp - 0x10], esi
jmp 0x46e4cf
cmp dword [ebp - 0x3c], 0
je 0x46e767
mov ecx, dword [ebp - 0xdc]
mov edi, dword [ebp + 8]
mov dword [ecx + 8], edi
mov dword [ebp - 0x74], edi
jmp 0x46e782
cmp dword [ebp - 0x38], 0
je 0x46e78b
call fcn.00401a60
mov ecx, dword [ebp - 0x28]
mov dword [eax + 4], ecx
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
jmp 0x46e78b
mov ecx, esp
call fcn.0046e7ec
jmp 0x46e79d
mov ecx, dword [ebp - 0xdc]
call fcn.004af5e0
xor eax, eax
jmp 0x46dfb1
mov eax, dword [ebp - 0x74]
jmp 0x46dfb1
mov ecx, 0x54aac0
call fcn.004029a0
mov esi, eax
mov ecx, esi
call fcn.0044ca50
mov ecx, 0x538e98
mov dword [esi + 4], ecx
mov ecx, esi
call fcn.00402f6b
int3
call fcn.00403201
jmp 0x46e041
call fcn.00403201
jmp 0x46e117
call fcn.0045cf60
int3
call fcn.00403201
jmp 0x46e416