Function at 0x4a2a20
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x284
mov eax, dword [0x5322a8]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xd8]
mov eax, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a2a52
sub eax, edx
je 0x4a2fc2
lea eax, [esi + 0xb8]
mov dword [esp + 0x24], eax
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a2a70
sub eax, edx
je 0x4a2fc2
lea eax, [esp + 0x10]
push eax
push 0x2001f
xor ebx, ebx
push ebx
push str.SystemCurrentcontrolsetServicesWin_Win
push reloc.WS2_32.dll_bind
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4a3033
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x6c]
push edx
mov dword [esp + 0x71], eax
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov dword [esp + 0x89], eax
mov word [esp + 0x8d], ax
mov byte [esp + 0x8f], al
lea eax, [esp + 0x20]
push eax
push ebx
push str.RegNumber
mov edi, 0x1f
push ecx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], edi
mov byte [esp + 0x80], bl
call esi
test eax, eax
jne 0x4a2b74
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x68]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a2b42
cmp dl, bl
je 0x4a2b3e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a2b42
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4a2b22
xor eax, eax
jmp 0x4a2b47
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4a2e85
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x5002
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov word [esp + 0x45], ax
mov byte [esp + 0x47], al
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push 0x51d868
push eax
mov byte [esp + 0x40], bl
mov dword [esp + 0x34], edi
call esi
test eax, eax
jne 0x4a2e85
mov ecx, str.111_5154514_TW9710
lea eax, [esp + 0x28]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a2bf0
cmp dl, bl
je 0x4a2bec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a2bf0
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4a2bd0
xor eax, eax
jmp 0x4a2bf5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4a2eae
mov ecx, str.121_5154514_TW9710
lea eax, [esp + 0x28]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a2c26
cmp dl, bl
je 0x4a2c22
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a2c26
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4a2c06
xor eax, eax
jmp 0x4a2c2b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4a2eae
mov ecx, str.111_5154653_TW9710
lea eax, [esp + 0x28]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a2c60
cmp dl, bl
je 0x4a2c5c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a2c60
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4a2c40
xor eax, eax
jmp 0x4a2c65
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4a2eae
mov ecx, str.121_5154653_TW9710
lea eax, [esp + 0x28]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a2c96
cmp dl, bl
je 0x4a2c92
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a2c96
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4a2c76
xor eax, eax
jmp 0x4a2c9b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4a2eae
push 0xff
lea ecx, [esp + 0x18d]
push ebx
push ecx
mov byte [esp + 0x194], bl
call fcn.004e7d90
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18c]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push str.ConsoleIdentify
push edx
mov dword [esp + 0x34], pe_nt_image_headers32
mov dword [esp + 0x30], 3
call esi
test eax, eax
jne 0x4a2ea7
mov eax, dword [esp + 0x14]
push 0xff
lea ecx, [esp + 0x8d]
push ebx
push ecx
mov byte [eax + 0xb9], 0x32
mov byte [esp + 0x94], bl
call fcn.004e7d90
mov eax, dword [esp + 0x2c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a2d26
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
sub eax, edx
push eax
lea ebx, [esp + 0x8c]
call fcn.004cba30
add esp, 4
mov eax, pe_nt_image_headers32
xor ecx, ecx
mov edi, edi
mov edx, dword [esp + ecx + 0x88]
cmp edx, dword [esp + ecx + 0x188]
jne 0x4a2d90
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x4a2d50
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov dword [esp + 0x61], eax
mov word [esp + 0x65], ax
mov byte [esp + 0x67], al
lea eax, [esp + 0x188]
mov byte [esp + 0x48], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a2dc6
push 0
push 0
push 0x1f
sub eax, edx
lea ecx, [esp + 0x54]
push ecx
sar eax, 1
push eax
lea edx, [esp + 0x19c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x48]
lea eax, [esp + 0x28]
jmp 0x4a2e00
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a2e20
test dl, dl
je 0x4a2e1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a2e20
add eax, 2
add ecx, 2
test dl, dl
jne 0x4a2e00
xor eax, eax
jmp 0x4a2e25
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4a2e6f
mov ecx, dword [esp + 0x10]
push pe_nt_image_headers32
lea eax, [esp + 0x8c]
push eax
push 3
push 0
push str.ConsoleIdentify
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
push str.irpformat__CID_Mismatch
push str.Network
xor edx, edx
xor ecx, ecx
call fcn.004a5710
add esp, 8
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
push str.irpformat__CID_Failed
jmp 0x4a2e74
mov edi, dword [esp + 0x20]
mov ecx, str.111_0003021_010501
mov eax, edi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a2ee0
cmp dl, bl
je 0x4a2edc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a2ee0
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4a2ec0
xor eax, eax
jmp 0x4a2ee5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4a2f9d
mov esi, dword [esp + 0x24]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a2ef6
mov ecx, dword [esp + 0x14]
sub eax, edx
mov edx, dword [esp + 0x10]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push ebx
push 0x51d868
push edx
mov byte [ecx + 0xb9], 0x32
call esi
push 0xff
lea eax, [esp + 0x8d]
push ebx
push eax
mov byte [esp + 0x94], bl
call fcn.004e7d90
mov eax, edi
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4a2f43
sub eax, ecx
mov ecx, dword [esp + 0x24]
push eax
lea ebx, [esp + 0x8c]
call fcn.004cba30
mov edx, dword [esp + 0x14]
add esp, 4
push pe_nt_image_headers32
mov ecx, ebx
push ecx
push 3
push 0
push str.ConsoleIdentify
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a2fc7
sub eax, edx
jne 0x4a2ff2
lea eax, [esi + 0xb8]
lea edx, [eax + 1]
jmp 0x4a2fe0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a2fe0
sub eax, edx
jne 0x4a2ff2
push str.irpformat__Both_Key_Empty
jmp 0x4a3022
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a2ff7
sub eax, edx
jne 0x4a3009
push str.irpformat__Private_Key_Empty
jmp 0x4a3022
lea eax, [esi + 0xb8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a3012
sub eax, edx
jne 0x4a3033
push str.irpformat__Public_Key_Empty
push str.Network
xor edx, edx
xor ecx, ecx
call fcn.004a5710
add esp, 8
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004e3946
mov esp, ebp
pop ebp
ret