Function at 0x401e80
Capabilities:
Decode data using base64 via winapi
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47cce8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4ac084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.start_CAffid::InitializeData__
push 1
push 3
push 0x3a
push str.CAffid::InitializeData
push str.Affid.cpp
lea ecx, [ebp - 0x34]
call fcn.00457220
push eax
call fcn.004573f0
add esp, 0x10
mov ecx, edi
call fcn.00402430
test eax, eax
je 0x401ef1
lea eax, [edi + 0xc]
mov ecx, edi
push eax
call fcn.004024a0
mov dword [ebp - 0x14], 1
test eax, eax
jne 0x401ef8
mov dword [ebp - 0x14], 0
xor ebx, ebx
lea eax, [ebp - 0x10]
push ebx
push eax
push ebx
push 0x20119
push ebx
push ebx
push ebx
push dword [edi + 0x24]
mov dword [ebp - 0x10], ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x401f6c
push ebx
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push ecx
push ebx
push 0x4900b8
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x401f4d
cmp dword [ebp - 0x1c], 1
mov eax, 1
cmove ebx, eax
push dword [ebp - 0x10]
call esi
test ebx, ebx
je 0x401f6c
lea eax, [edi + 0x10]
mov ecx, edi
push eax
call fcn.00402620
mov dword [ebp - 0x10], 1
test eax, eax
jne 0x401f73
mov dword [ebp - 0x10], 0
xor ebx, ebx
lea eax, [ebp - 0x18]
push ebx
push eax
push ebx
push 0x20119
push ebx
push ebx
push ebx
push dword [edi + 0x24]
mov dword [ebp - 0x18], ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x401fc7
push ebx
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push ecx
push ebx
push 0x4900d4
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x401fc2
cmp dword [ebp - 0x1c], 3
mov eax, 1
cmove ebx, eax
push dword [ebp - 0x18]
call esi
test ebx, ebx
je 0x4020d0
push 0x20119
push dword [edi + 0x24]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.00402f70
test eax, eax
jne 0x4020c6
lea eax, [edi + 0x20]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0x4900d4
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4020c6
cmp dword [ebp - 0x20], 3
jne 0x4020c6
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x402037
push eax
call esi
push dword [edi + 0x20]
lea ecx, [edi + 0x1c]
call fcn.00402d50
test al, al
je 0x4020d0
mov eax, dword [edi + 0x1c]
lea ecx, [ebp - 0x34]
push 0x20119
push dword [edi + 0x24]
mov dword [ebp - 0x20], eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.00402f70
test eax, eax
jne 0x4020c6
lea eax, [edi + 0x20]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x20]
push eax
push 0
push 0x4900d4
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4020c6
cmp dword [ebp - 0x20], 3
jne 0x4020c6
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4020ad
push eax
call esi
push dword [edi]
push dword [edi + 0x20]
push dword [edi + 0x1c]
call fcn.00401880
test eax, eax
mov eax, 1
cmovne ebx, eax
jmp 0x4020d0
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4020d0
push eax
call esi
cmp dword [ebp - 0x14], 0
je 0x4020e5
test ebx, ebx
je 0x4020e5
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x40228b
call fcn.00403450
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402101
push 0x80004005
call fcn.004039a0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
call fcn.00403450
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402131
push 0x80004005
call fcn.004039a0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
call fcn.00403450
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40215e
push 0x80004005
call fcn.004039a0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00402940
mov esi, dword [ebp - 0x20]
test eax, eax
je 0x402227
cmp dword [ebp - 0x14], 0
jne 0x4021aa
lea eax, [ebp - 0x1c]
lea ecx, [edi + 0xc]
push eax
call fcn.00402e10
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x10], 0
jne 0x4021c3
lea eax, [ebp - 0x18]
lea ecx, [edi + 0x10]
push eax
call fcn.00402e10
mov dword [ebp - 0x10], 1
test ebx, ebx
jne 0x402227
lea eax, [edi + 0x20]
test esi, esi
je 0x402227
test eax, eax
je 0x402227
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], ebx
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x24], ebx
push ecx
push eax
push ebx
push 1
push ebx
push esi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x402227
push dword [edi + 0x20]
lea ecx, [edi + 0x1c]
call fcn.00402d50
test al, al
je 0x402227
lea eax, [edi + 0x20]
push eax
push dword [edi + 0x1c]
push esi
call fcn.00401810
test eax, eax
je 0x402227
push dword [edi]
push dword [edi + 0x20]
push dword [edi + 0x1c]
call fcn.00401880
test eax, eax
mov eax, 1
cmovne ebx, eax
mov byte [ebp - 4], 1
or ecx, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, ecx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40224b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
mov byte [ebp - 4], 0
mov eax, ecx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40226c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x402288
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x10]
mov eax, dword [edi]
lea ecx, [ebp - 0x40]
push dword [eax + 4]
push str.trt_retrieving_finished__trtNum___d
push 1
push 3
push 0x6e
push str.CAffid::InitializeData
push str.Affid.cpp
call fcn.00457220
push eax
call fcn.004573f0
add esp, 0x14
cmp dword [ebp - 0x14], 0
je 0x4022cb
test ebx, ebx
je 0x4022cb
test esi, esi
je 0x4022cb
mov eax, 1
jmp 0x4022cd
xor eax, eax
mov dword [edi + 4], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret