Function at 0x406c30
Capabilities:
Encode data using xor

Disassembly:
pop ecx
lock inc dword [eax + 0xe8]
lock inc dword [eax]
mov dword [esp + 0x178], ecx
jle 0x406b1b
lea ebx, [esp + 0x15c]
lea edi, [esp + 0x78]
lea esi, [esp + 0x30]
mov dword [esp + 0xf4], eax
mov dword [edi], 0xd
mov ecx, esi
mov edx, ebx
push edi
call fcn.00402e6d
add esp, 4
mov ecx, esi
call fcn.00401b70
mov eax, dword [ebx - 0x18]
mov ecx, dword [ebx - 0x14]
lea ebx, [esp + 0x78]
lea esi, [esp + 0x30]
mov dword [edi], 1
mov edx, ebx
add ecx, eax
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov ecx, esi
mov word [edi + 0xc], 0
call fcn.0045e500
mov esi, dword [esi + 4]
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404c5e
mov ecx, eax
and ecx, 1
je 0x404c5e
xor eax, 1
push eax
push esi
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
cmp dword [esp + 0x30], 0
je 0x404c74
push esi
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
mov al, 1
mov dword [esp + 0x104], 0
mov dword [esp + 0x17c], eax
mov eax, dword [esp + 0x160]
mov edi, dword [esp + 0x144]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov edx, edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x164]
mov dword [esp + 8], ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 0xc], ecx
mov dword [esp], eax
xor ecx, ecx
lea eax, [esp + 0x8c]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], 7
mov dword [eax + 4], ecx
mov dword [eax], ecx
mov dword [eax + 0xa], ecx
mov dword [eax + 6], ecx
mov ecx, dword [esp + 0x154]
mov eax, dword [esp + 0x148]
mov word [esp + 0x94], 0x101
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x150]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x30]
push ebx
mov dword [esp + 0x1d0], eax
push eax
call fcn.00456990
add esp, 8
cmp byte [esp + 0x30], 4
jne 0x404d34
mov esi, dword [esp + 0x34]
jmp 0x404d46
movzx ecx, byte [esp + 0x30]
mov esi, dword [esp + 0x34]
cmp ecx, 4
jne 0x404e5d
mov dword [esp + 0x11c], edi
xor edi, edi
mov dword [esp + 0x64], esi
lea ecx, [esp + 0x78]
mov edx, esi
push edi
push edi
push edi
push 1
call fcn.004570e0
add esp, 0x10
cmp dword [esp + 0x78], edi
je 0x404d95
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov ebx, 0
mov eax, ecx
neg al
sbb ebx, ebx
or ebx, edx
call fcn.00429aac
xor eax, eax
mov edi, ebx
inc eax
mov ebx, eax
jmp 0x405006
mov eax, dword [esp + 0x80]
mov esi, dword [esp]
xor edx, edx
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x84]
mov ecx, esi
mov dword [esp + 0x100], eax
call fcn.0043b1bc
mov ebx, edx
mov dword [esp + 0x18], eax
push esi
push dword [esp + 0x10]
push edx
call fcn.00462380
add esp, 0xc
cmp esi, 3
mov edi, 1
jbe 0x406b0a
push 2
push 4
mov dword [esp + 0x18], ebx
push ebx
xor eax, eax
push eax
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov ecx, esi
mov edx, edi
call fcn.0043b1bc
mov edi, dword [esp + 0x64]
lea ebx, [esp + 0x78]
mov dword [esp + 0xc], edx
mov dword [esp + 0x108], eax
mov ecx, ebx
mov edx, edi
push dword [esp + 0x1c]
push dword [esp + 0x54]
xor eax, eax
push eax
push eax
call fcn.004570e0
add esp, 0x10
xor eax, eax
cmp dword [esp + 0x78], eax
je 0x404e79
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov eax, ecx
neg al
mov eax, 0
sbb eax, eax
or eax, edx
mov dword [esp], eax
call fcn.00429aac
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
xor ebx, ebx
inc ebx
jmp 0x404fd0
mov eax, ecx
mov edi, 0
mov edx, esi
neg eax
sbb edi, edi
or edi, esi
call fcn.00429aac
xor ebx, ebx
inc ebx
jmp 0x40500d
lea edx, [esp + 0x64]
mov ecx, ebx
push esi
mov ebx, dword [esp + 0x10]
push ebx
call fcn.00421c94
add esp, 8
mov al, byte [esp + 0x78]
mov edx, ebx
cmp al, 4
jne 0x404eff
lea eax, [esi - 4]
mov esi, dword [esp + 0x10]
add edx, 4
mov ecx, esi
add ecx, 4
push eax
push ecx
push edx
call fcn.00460cfe
add esp, 0xc
test eax, eax
mov ebx, 1
je 0x404f1d
lea ecx, [esp + 0x78]
mov edx, edi
push dword [esp + 0x1c]
push dword [esp + 0x54]
xor esi, esi
push esi
push esi
call fcn.004570e0
add esp, 0x10
cmp dword [esp + 0x78], esi
je 0x404f27
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov eax, ecx
neg al
mov eax, 0
sbb eax, eax
or eax, edx
mov dword [esp], eax
call fcn.00429aac
jmp 0x404fc8
mov esi, edx
mov edx, dword [esp + 0x7c]
movzx ecx, al
call fcn.00429aac
mov ecx, esi
mov esi, dword [esp + 0x10]
mov ebx, 4
jmp 0x404fd0
mov ebx, 2
jmp 0x404fcc
mov ebx, dword [esp]
lea ecx, [esp + 0x78]
mov edx, edi
push ebx
push dword [esp + 0x14]
call fcn.00401914
add esp, 8
cmp byte [esp + 0x78], 4
jne 0x404fa6
xor edx, edx
mov ecx, ebx
inc edx
call fcn.0043b1bc
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x78]
mov edx, edi
push dword [esp + 0x1c]
push dword [esp + 0x54]
xor esi, esi
push esi
push esi
call fcn.004570e0
add esp, 0x10
cmp dword [esp + 0x78], esi
je 0x405220
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov eax, ecx
neg al
mov eax, 0
sbb eax, eax
or eax, edx
mov dword [esp], eax
call fcn.00429aac
mov esi, dword [esp + 0x10]
xor ebx, ebx
inc ebx
jmp 0x4052ae
mov ebx, dword [esp + 0x78]
mov esi, dword [esp + 0x7c]
mov ecx, ebx
mov edx, esi
call fcn.00429aac
neg bl
mov eax, 0
sbb eax, eax
or eax, esi
xor ebx, ebx
mov dword [esp], eax
inc ebx
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
cmp dword [esp + 0x108], 0
je 0x404fe9
push ecx
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esp + 0x18], 0
je 0x404fff
push esi
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edi, dword [esp]
mov esi, dword [esp + 0x64]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp ebx, 1
mov eax, ebx
lea ebx, [esp + 0x78]
jne 0x406810
cmp edi, 0x1f
jg 0x405189
cmp edi, 4
je 0x40518e
cmp edi, 2
je 0x4068d6
cmp edi, 5
jne 0x406904
test byte [esp + 0x17c], 1
je 0x406a47
mov eax, dword [esp + 0x144]
mov ecx, dword [esp + 0x148]
mov esi, ebx
xor ebx, ebx
mov word [esp + 0x124], 0x100
mov edx, esi
mov dword [esp + 0x1a0], ebx
mov dword [esp + 0x120], ebx
add ecx, eax
xor edi, edi
inc edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
lea ecx, [esp + 0x30]
mov word [esp + 0x84], 0
call fcn.0045e500
lea eax, [esp + 0x1a0]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
lea eax, [esp + 0x148]
push eax
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x405154
mov eax, dword [esp + 0x1a0]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x78], 0x10000000
mov dword [esp + 0x7c], 2
mov dword [esp + 0x180], ebx
mov dword [ecx - 8], ebx
mov dword [ecx - 0xc], ebx
mov dword [ecx], ebx
mov dword [ecx - 4], ebx
mov dword [esp + 0x90], 5
mov dword [esp + 0x94], eax
lea eax, [esp + 0x180]
push eax
push ebx
push esi
push 1
call sub.advapi32.dll_SetEntriesInAclW
test eax, eax
jne 0x405148
xor eax, eax
push eax
push dword [esp + 0x184]
push eax
push eax
push 4
push 1
push dword [esp + 0x4c]
call sub.advapi32.dll_SetNamedSecurityInfoW
test eax, eax
sete bl
push dword [esp + 0x180]
call sub.kernel32.dll_LocalFree
push dword [esp + 0x1a0]
call sub.advapi32.dll_FreeSid
cmp dword [esp + 0x30], 0
je 0x40516d
push dword [esp + 0x34]
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
test bl, bl
lea ebx, [esp + 0x78]
mov dword [esp + 0x17c], 0
jne 0x404c88
jmp 0x406a47
cmp edi, 0x24
jne 0x4051a4
xor ecx, ecx
xor edx, edx
push 0x5f5e100
call fcn.00451420
add esp, 4
jmp 0x404c88
cmp edi, 0x20
je 0x4051e9
cmp edi, 0x21
jne 0x406904
cmp byte [esp + 0x104], 0
jne 0x4069d5
mov ecx, dword [esp + 0x144]
mov edx, dword [esp + 0x148]
call fcn.0045eedb
mov cl, 1
test al, al
mov dword [esp + 0x104], ecx
jne 0x404c88
jmp 0x4069d5
cmp byte [esp + 0x104], 0
jne 0x406a0e
mov ecx, dword [esp + 0x144]
mov edx, dword [esp + 0x148]
call fcn.0045eedb
mov cl, 1
test al, al
mov dword [esp + 0x104], ecx
jne 0x404c88
jmp 0x406a0e
lea ecx, [esp + 0x78]
lea edx, [esp + 0x64]
push ebx
mov edi, dword [esp + 0x30]
push edi
call fcn.00421c94
add esp, 8
mov al, byte [esp + 0x78]
mov esi, dword [esp + 0x10]
cmp al, 4
jne 0x40529d
push ebx
push esi
push edi
call fcn.00460cfe
add esp, 0xc
xor ebx, ebx
test eax, eax
jne 0x4052ae
cmp dword [esp + 0x28], 0
je 0x40526c
push dword [esp + 0x2c]
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esp + 0x18], 0
mov ebx, 1
je 0x405287
push esi
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esp + 0x108], 0x80000000
jne 0x4052d0
mov ebx, dword [esp + 0xc]
jmp 0x404fff
mov edx, dword [esp + 0x7c]
movzx ecx, al
call fcn.00429aac
mov ebx, 4
cmp dword [esp + 0x28], 0
je 0x404fcc
push dword [esp + 0x2c]
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x404fcc
cmp dword [esp + 4], 0
je 0x406b1d
mov eax, dword [esp + 8]
mov esi, dword [eax + 0x28]
cmp esi, 5
jb 0x4052f3
mov esi, dword [eax + 4]
test esi, esi
je 0x40534b
mov eax, dword [eax + 8]
jmp 0x4052fa
test esi, esi
je 0x40534b
add eax, 8
mov ecx, dword [eax + esi*8 - 4]
bsr eax, dword [eax + esi*8 - 8]
mov edx, 0x3f
cmove eax, edx
bsr edx, ecx
xor eax, 0x1f
xor edx, 0x1f
add eax, 0x20
test ecx, ecx
cmove edx, eax
shl esi, 6
or esi, 7
sub esi, edx
mov edx, ebx
shr esi, 3
lea ecx, [esi - 0x82]
call fcn.0043b1bc
mov ebx, eax
mov eax, esi
mov dword [esp + 0x60], esi
add eax, 0xffffff7e
je 0x406b85
mov esi, edx
jmp 0x405368
mov ecx, 0xffffff7e
mov edx, ebx
call fcn.0043b1bc
mov ebx, eax
mov esi, edx
mov eax, 0xffffff7e
mov dword [esp + 0x60], 0
mov dword [esp + 0x18], eax
push 2
push eax
push esi
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov ah, byte [esi]
mov edx, dword [esp + 0x18]
and ah, 0x1f
cmp edx, 1
mov byte [esi], ah
je 0x406b2b
mov al, byte [esp + 0x168]
mov ecx, dword [esp]
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0xf0], al
inc al
cmp ecx, 0xfffffffd
mov byte [esi + 1], al
lea esi, [ecx + 2]
ja 0x406b64
mov ebx, edx
mov byte [esp + 0x74], ah
sub ebx, esi
jb 0x406b75
mov edi, dword [esp + 0x10]
lea eax, [edi + 2]
push ecx
push dword [esp + 0x10]
push eax
call fcn.00462380
add esp, 0xc
add esi, edi
lea edi, [esp + 0x78]
mov ecx, edi
mov edx, esi
push ebx
call fcn.0042848c
add esp, 4
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
cmp edx, 0x80000000
jne 0x405410
mov edi, dword [esp + 0xc]
mov ebx, eax
mov esi, ecx
jmp 0x4056ff
mov dword [esp + 0xec], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x114], edx
mov dword [esp + 0x2c], eax
call fcn.004216d6
mov eax, edi
xor edi, edi
mov dword [esp + 0x78], edi
push 2
push 4
push eax
push edi
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov eax, dword [esp + 0x78]
xor edx, edx
bswap eax
div dword [esp + 4]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 4], ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x5c], eax
push ecx
mov dword [esp + 0x100], edx
call dword [edx + 0x24]
add esp, 4
mov ecx, 1
mov dword [esp + 0x20], eax
cmp esi, 0x80000000
mov eax, 0
mov edx, ecx
je 0x4054ab
mov eax, dword [esp + 0x5c]
mov edx, ebx
mov edi, esi
mov ecx, ebx
mov dword [esp + 0x110], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x5c], edi
mov edi, dword [esp + 8]
lea esi, [edx + edx*2]
shl esi, 5
add edi, esi
mov dword [esp + 0x54], esi
push eax
push ecx
mov ebx, dword [esp + 0xc]
push ebx
mov esi, dword [esp + 0x108]
call dword [esi + 0xc]
add esp, 0xc
push ebx
call dword [esi + 0x10]
add esp, 4
mov dword [esp + 0xf8], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x58], edx
mov dword [esp + 0x14], edi
cmp eax, 5
mov dword [esp + 0x24], eax
jb 0x405518
mov eax, dword [edi + 4]
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 4]
test eax, eax
je 0x405566
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 8]
jmp 0x40552f
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 4]
test eax, eax
je 0x405566
mov eax, dword [esp + 0x14]
lea ecx, [eax + 8]
mov eax, dword [esp + 0x24]
mov edx, dword [ecx + eax*8 - 4]
bsr ecx, dword [ecx + eax*8 - 8]
mov esi, 0x3f
cmove ecx, esi
bsr esi, edx
xor ecx, 0x1f
xor esi, 0x1f
add ecx, 0x20
test edx, edx
cmove esi, ecx
shl eax, 6
sub eax, esi
mov esi, 0xb
cmp eax, 0x23a0
ja 0x4055f7
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x54]
lea esi, [ecx + edx + 0x38]
mov eax, dword [esi + 0x20]
cmp eax, 5
jb 0x405580
mov esi, dword [esi]
mov eax, dword [ecx + edx + 0x34]
test eax, eax
je 0x4055e7
shl eax, 3
xor ecx, ecx
mov bl, 1
xor edx, edx
test bl, 1
je 0x4055ee
add ecx, dword [esi]
adc edx, dword [esi + 4]
xor ebx, ebx
add esi, 8
add eax, 0xfffffff8
jne 0x40558d
mov ebx, dword [esp + 4]
cmp ecx, 2
mov eax, edx
mov esi, 0xc
sbb eax, 0
jb 0x4055f7
test edx, 0xfffffffe
mov esi, 0xd
jne 0x4055f7
cmp dword [esp + 0x24], 5
jb 0x4063ae
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 4]
test edi, edi
je 0x4063fc
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
jmp 0x4063c0
mov esi, 0xc
jmp 0x4055f7
mov ebx, dword [esp + 4]
mov esi, 0xd
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
cmp dword [esp + 0x58], 0
mov esi, dword [esp + 0x70]
je 0x405626
push dword [esp + 0xf8]
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
test edi, edi
je 0x40563f
push dword [esp + 0x110]
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
push ebx
mov edi, dword [esp + 0x100]
call dword [edi]
add esp, 4
cmp dword [edi + 4], 0
je 0x40566a
cmp dword [edi + 8], 9
jb 0x40565b
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
mov ebx, dword [esp + 0x70]
call dword [ebx]
add esp, 4
cmp dword [ebx + 4], 0
je 0x405692
cmp dword [ebx + 8], 9
jb 0x405683
mov esi, dword [esi - 4]
push esi
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esp + 0x78], 0x13
mov edx, dword [esp + 0x18]
jne 0x4056c5
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov esi, dword [esp + 0x84]
cmp ecx, 0x80000000
mov dword [esp + 0x54], eax
mov dword [esp + 0x6c], esi
jne 0x40572f
mov ebx, dword [esp + 0x54]
jmp 0x4056ca
mov ebx, 5
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0xec]
mov ecx, esi
call fcn.00421e96
cmp dword [esp + 0x114], 0
mov edi, dword [esp + 0xc]
je 0x4056fb
push dword [esi - 4]
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [esp + 0x6c]
cmp dword [esp + 0x28], 0
je 0x405718
push dword [esp + 0x10]
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp], esi
cmp dword [esp + 0x108], 0
je 0x404fff
push edi
jmp 0x404ff1
movzx edi, byte [esp + 0xf0]
mov dword [esp + 0x24], ecx
push edx
push 0
mov esi, dword [esp + 0x18]
push esi
call fcn.00462900
add esp, 0xc
cmp dword [esp + 0x28], 0
je 0x405795
push esi
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [esp + 0x50]
movzx eax, byte [esp + 0x74]
mov ecx, dword [esp + 0x1c]
mov esi, dword [edi*4 + 0x406c10]
add edx, dword [esp]
adc ecx, 0
add edx, eax
adc ecx, 0
add esi, dword [esp + 0x178]
mov dword [esp + 0x50], edx
xor eax, eax
mov dword [esp + 0x1c], ecx
xor ecx, ecx
jmp esi
mov edx, dword [esp + 0x50]
movzx eax, byte [esp + 0x74]
mov ecx, dword [esp + 0x1c]
mov esi, dword [edi*4 + 0x406c10]
add edx, dword [esp]
adc ecx, 0
add edx, eax
adc ecx, 0
add esi, dword [esp + 0x178]
mov dword [esp + 0x50], edx
xor eax, eax
mov dword [esp + 0x1c], ecx
xor ecx, ecx
jmp esi
cmp dword [esp + 0x24], 0
je 0x4063fc
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
add eax, 8
mov ecx, dword [eax + edi*8 - 4]
bsr eax, dword [eax + edi*8 - 8]
mov edx, 0x3f
cmove eax, edx
bsr edx, ecx
xor eax, 0x1f
xor edx, 0x1f
add eax, 0x20
test ecx, ecx
cmove edx, eax
shl edi, 6
or edi, 7
sub edi, edx
shr edi, 3
jmp 0x4063fe
xor edi, edi
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x20]
lea eax, [eax + ecx*2 - 0x80]
cmp eax, edi
jbe 0x40641b
mov dword [esp + 0x78], 3
jmp 0x406803
xor edx, edx
mov ecx, edi
inc edx
call fcn.0043b1bc
test edi, edi
mov dword [esp + 0x180], eax
mov dword [esp + 0x184], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x188], edi
je 0x406b93
lea eax, [edi - 1]
sub eax, dword [esp + 0x20]
mov dword [esp + 8], eax
jb 0x406ba1
inc dword [esp + 0x60]
cmp dword [esp + 0x20], 0
je 0x406474
push 2
push dword [esp + 0x24]
push dword [esp + 0x68]
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0x20]
jb 0x406bce
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x58]
jne 0x406be0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x60]
mov esi, eax
add ecx, eax
not esi
push eax
push dword [esp + 0xfc]
mov ebx, ecx
push ecx
call fcn.00462380
add esp, 0xc
sub esi, dword [esp + 0x18]
lea ecx, [edi + esi - 1]
cmp ecx, dword [esp + 8]
jae 0x406b38
mov ecx, dword [esp + 8]
add edi, esi
mov byte [ebx + edi - 1], 1
sub ecx, edi
jb 0x406bf2
cmp ecx, dword [esp + 0x18]
jne 0x406c02
mov dword [esp + 0x54], ebx
add edi, ebx
push dword [esp + 0x18]
push dword [esp + 0x14]
push edi
call fcn.00462380
add esp, 0xc
mov ecx, ebx
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 8]
push ebx
mov esi, dword [esp + 0x64]
push esi
mov edi, dword [esp + 0x74]
push edi
push dword [esp + 0x7c]
call fcn.00445eed
add esp, 0x10
mov ecx, esi
mov edx, ebx
push dword [esp + 8]
push dword [esp + 0x58]
push edi
push dword [esp + 0x7c]
call fcn.00445eed
add esp, 0x10
cmp dword [esp + 0x24], 5
jb 0x406776
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x24], eax
je 0x4067b7
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
jmp 0x406784
cmp dword [esp + 0x24], 0
je 0x4067b7
mov eax, dword [esp + 0x14]
add eax, 8
mov esi, dword [esp + 0x24]
mov edx, 0x3f
mov ecx, dword [eax + esi*8 - 4]
bsr eax, dword [eax + esi*8 - 8]
cmove eax, edx
bsr edx, ecx
xor eax, 0x1f
xor edx, 0x1f
add eax, 0x20
test ecx, ecx
cmove edx, eax
shl esi, 6
or esi, 7
sub esi, edx
shr esi, 3
jmp 0x4067b9
xor esi, esi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x78]
push esi
push dword [esp + 0x18c]
push dword [esp + 0x18c]
call fcn.004462d2
add esp, 0xc
lea ecx, [esp + 0x180]
call fcn.0045f409
cmp dword [esp + 0x180], 0
je 0x406803
push dword [esp + 0x184]
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
mov ebx, dword [esp + 4]
mov edi, dword [esp + 0x5c]
jmp 0x405606
cmp eax, 5
je 0x406828
mov edi, dword [esp + 0x68]
cmp eax, 9
jne 0x406859
mov dword [esp + 0x78], 0xe
jmp 0x406861
movsd xmm0, qword [esp + 0x140]
movsd xmm1, qword [esp + 0x148]
movsd qword [esp + 0x88], xmm1
movsd qword [esp + 0x80], xmm0
mov dword [esp + 0x78], 5
jmp 0x406934
mov dword [esp + 0x78], 0xf
lea esi, [esp + 0x30]
lea edx, [esp + 0x15c]
mov ecx, esi
push ebx
call fcn.00402e6d
add esp, 4
mov ecx, esi
call fcn.00401b70
lea ecx, [esp + 0xf4]
call fcn.00401e6f
mov eax, dword [esp + 0x158]
lock dec dword [eax]
jne 0x4068a2
mov ecx, dword [esp + 0x158]
call fcn.004022a8
lea ecx, [esp + 0x15c]
call fcn.00401e6f
cmp dword [esp + 0x140], 0
je 0x406985
push dword [esp + 0x144]
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x406985
lea esi, [esp + 0x30]
mov dword [esp + 0x78], 0xf
lea edx, [esp + 0x15c]
mov ecx, esi
push ebx
call fcn.00402e6d
add esp, 4
mov ecx, esi
call fcn.00401b70
mov edi, dword [esp + 0x68]
jmp 0x40687e
movsd xmm0, qword [esp + 0x140]
movsd xmm1, qword [esp + 0x148]
movsd qword [esp + 0x88], xmm1
movsd qword [esp + 0x80], xmm0
mov dword [esp + 0x78], 1
mov dword [esp + 0x7c], edi
lea esi, [esp + 0x30]
lea edx, [esp + 0x15c]
mov ecx, esi
push ebx
call fcn.00402e6d
add esp, 4
mov ecx, esi
call fcn.00401b70
mov edi, dword [esp + 0x68]
lea ecx, [esp + 0xf4]
call fcn.00401e6f
mov eax, dword [esp + 0x158]
lock dec dword [eax]
jne 0x406979
mov ecx, dword [esp + 0x158]
call fcn.004022a8
lea ecx, [esp + 0x15c]
call fcn.00401e6f
mov eax, dword [esp + 0x160]
lock dec dword [eax]
jne 0x40699d
mov ecx, dword [esp + 0x160]
call fcn.00402424
mov eax, dword [esp + 0x164]
lock dec dword [eax]
jne 0x4069b5
mov ecx, dword [esp + 0x164]
call fcn.004022a8
mov ecx, edi
call fcn.00404ad2
push dword [ebp + 8]
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movsd xmm0, qword [esp + 0x140]
movsd xmm1, qword [esp + 0x148]
movsd qword [esp + 0x88], xmm1
movsd qword [esp + 0x80], xmm0
mov dword [esp + 0x78], 1
mov dword [esp + 0x7c], 0x21
jmp 0x406934
movsd xmm0, qword [esp + 0x140]
movsd xmm1, qword [esp + 0x148]
movsd qword [esp + 0x88], xmm1
movsd qword [esp + 0x80], xmm0
mov dword [esp + 0x78], 1
mov dword [esp + 0x7c], 0x20
jmp 0x406934
movsd xmm0, qword [esp + 0x140]
movsd xmm1, qword [esp + 0x148]
movsd qword [esp + 0x88], xmm1
movsd qword [esp + 0x80], xmm0
mov dword [esp + 0x78], 1
mov dword [esp + 0x7c], 5
jmp 0x406934
mov ecx, 4
mov edx, esi
push 0x473490
call fcn.0046e9c0
ud2
xor ecx, ecx
xor edx, edx
push 0x4734a0
call fcn.0046e960
xor ecx, ecx
inc ecx
push 0x4734c0
call fcn.0046e960
mov edx, dword [esp + 8]
push 0x4733e8
call fcn.0046e960
lea eax, [esp + 0x30]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x473670
push 0x473448
push eax
call fcn.0046ece0
mov ecx, 2
mov edx, esi
push 0x4734d0
call fcn.0046ebe0
mov edx, dword [esp + 0x18]
mov ecx, esi
push 0x4734d0
call fcn.0046e9c0
xor ecx, ecx
xor edx, edx
push 0x4734b0
call fcn.0046e960
lea ecx, [esp + 0x120]
mov edx, 0x4733a8
jmp 0x406bad
lea ecx, [esp + 0x120]
mov edx, 0x4733b8
xor eax, eax
mov dword [ecx], str.mid___len
mov dword [ecx + 4], 1
mov dword [ecx + 0x10], eax
mov dword [ecx + 8], 0x486600
mov dword [ecx + 0xc], eax
call fcn.0046e8d0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 8]
push 0x4733c8
call fcn.0046e9c0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x58]
push 0x4733d8
call fcn.0046ef30
mov edx, dword [esp + 8]
mov ecx, edi
push 0x4733f8
call fcn.0046e900
mov edx, dword [esp + 0x18]
push 0x473408
call fcn.0046ef30
out 0xe, eax
add byte [eax], al
dec dword [ebx]
add byte [eax], al
dec dword [ebx]
add byte [eax], al
je 0x406c2a
add byte [eax], al
or al, 0xd
add byte [eax], al
out 0xe, eax
add byte [eax], al
mov ebx, 0x4a00000d
add byte [eax], al
dec edx
push cs
add byte [eax], al
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov eax, dword [ebp + 8]
mov ebx, esp
mov ecx, dword [eax]
mov edi, dword [eax + 0xc]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 8]
lea eax, [0x46db34]
mov dword [esp + 0x1c], edi
mov dword [ebx], eax
mov dword [esp + 0x34], ecx
mov ecx, dword [ebx]
mov dword [ebx], 0xc57cf6b3
mov edx, dword [ebx]
call fcn.00403d25
xorps xmm0, xmm0
mov ecx, 0xfffffffc
mov dword [ebx + 0x10], 0
movaps xmmword [ebx], xmm0
mov edx, dword [ecx + 0x4737f5]
xor edx, dword [eax + ecx + 4]
mov dword [esp + ecx + 4], edx
add ecx, 4
cmp ecx, 0x10
jb 0x406c85
mov eax, dword [esp + 0x10]
movaps xmm0, xmmword [esp]
mov ecx, 0x14
xor edx, edx
mov dword [esp + 0x30], eax
movaps xmmword [esp + 0x20], xmm0
call fcn.0043b1bc
movsd xmm0, qword [esp + 0x20]
movsd xmm1, qword [esp + 0x28]
lea esi, [esp + 0x40]
movsd qword [edx], xmm0
movsd qword [edx + 8], xmm1
mov ecx, dword [esp + 0x30]
mov dword [edx + 0x10], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0x14
mov dword [esp], 0x12
lea edx, [esp + 0x1c]
mov ecx, esi
push ebx
call fcn.00402e6d
add esp, 4
mov ecx, esi
call fcn.00401b70
lock inc dword [edi + 0xe8]
lock inc dword [edi]
jle 0x406e0f
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push edi
call fcn.0040f814
add esp, 4
lea eax, [0x468286]
mov dword [esp], eax
mov ecx, dword [esp]
mov dword [esp], 0xfb21de61
mov edx, dword [esp]
call fcn.004038e8
xorps xmm0, xmm0
mov ecx, 0xfffffffc
mov dword [esp + 0x10], 0
movaps xmmword [esp], xmm0
mov edx, dword [ecx + 0x473809]
xor edx, dword [eax + ecx + 4]
mov dword [esp + ecx + 4], edx
add ecx, 4
cmp ecx, 0x10
jb 0x406d55
mov eax, dword [esp + 0x10]
movaps xmm0, xmmword [esp]
mov ecx, 0x14
xor edx, edx
mov dword [esp + 0x30], eax
movaps xmmword [esp + 0x20], xmm0
call fcn.0043b1bc
movsd xmm0, qword [esp + 0x20]
movsd xmm1, qword [esp + 0x28]
lea esi, [esp + 0x40]
lea edi, [esp + 0x1c]
movsd qword [edx], xmm0
movsd qword [edx + 8], xmm1
mov ecx, dword [esp + 0x30]
mov dword [edx + 0x10], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0x14
mov dword [esp], 0x13
mov ecx, esi
mov edx, edi
push ebx
call fcn.00402e6d
add esp, 4
mov ecx, esi
call fcn.00401b70
mov ecx, edi
call fcn.00401e6f
mov esi, dword [esp + 0x3c]
lea ecx, [esi + 0x40]
call fcn.0044563a
lock dec dword [esi]
jne 0x406df6
mov ecx, esi
call fcn.0044313b
push dword [ebp + 8]
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
ud2