Function at 0x4a09c0
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 [0x5552b0]
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 0x4a09f2
sub eax, edx
je 0x4a0f92
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 0x4a0a10
sub eax, edx
je 0x4a0f92
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 0x4a1003
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 0x4a0b14
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x68]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a0ae2
cmp dl, bl
je 0x4a0ade
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a0ae2
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4a0ac2
xor eax, eax
jmp 0x4a0ae7
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4a0e59
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.004e4746
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 0x51d110
push eax
mov byte [esp + 0x40], bl
mov dword [esp + 0x34], edi
call esi
test eax, eax
jne 0x4a0e59
mov ecx, str.111_5154514_TW9710
lea eax, [esp + 0x28]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a0b90
cmp dl, bl
je 0x4a0b8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a0b90
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4a0b70
xor eax, eax
jmp 0x4a0b95
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4a0e82
mov ecx, str.121_5154514_TW9710
lea eax, [esp + 0x28]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a0bc6
cmp dl, bl
je 0x4a0bc2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a0bc6
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4a0ba6
xor eax, eax
jmp 0x4a0bcb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4a0e82
mov ecx, str.111_5154653_TW9710
lea eax, [esp + 0x28]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a0c00
cmp dl, bl
je 0x4a0bfc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a0c00
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4a0be0
xor eax, eax
jmp 0x4a0c05
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4a0e82
mov ecx, str.121_5154653_TW9710
lea eax, [esp + 0x28]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a0c36
cmp dl, bl
je 0x4a0c32
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a0c36
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4a0c16
xor eax, eax
jmp 0x4a0c3b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4a0e82
push 0xff
lea ecx, [esp + 0x18d]
push ebx
push ecx
mov byte [esp + 0x194], bl
call fcn.004e8ba0
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], 0x100
mov dword [esp + 0x30], 3
call esi
test eax, eax
jne 0x4a0e7b
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.004e8ba0
mov eax, dword [esp + 0x2c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a0cc6
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
sub eax, edx
push eax
lea ebx, [esp + 0x8c]
call fcn.004cc360
add esp, 4
mov eax, 0x100
xor ecx, ecx
mov edi, edi
mov edx, dword [esp + ecx + 0x88]
cmp edx, dword [esp + ecx + 0x188]
jne 0x4a0d30
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x4a0cf0
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.004e4746
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 0x4a0d66
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 0x4a0da0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a0dc0
test dl, dl
je 0x4a0dbc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a0dc0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4a0da0
xor eax, eax
jmp 0x4a0dc5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4a0e43
mov ecx, str.111_0003021_010501
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a0df4
test dl, dl
je 0x4a0df0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a0df4
add eax, 2
add ecx, 2
test dl, dl
jne 0x4a0dd4
xor eax, eax
jmp 0x4a0df9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4a0e1e
mov ecx, dword [esp + 0x10]
push 0x100
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.004e4746
mov esp, ebp
pop ebp
ret
push str.irpformat__CID_Mismatch
push str.Network
xor edx, edx
xor ecx, ecx
call fcn.004a3a40
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.004e4746
mov esp, ebp
pop ebp
ret
push str.irpformat__CID_Failed
jmp 0x4a0e48
mov edi, dword [esp + 0x20]
mov ecx, str.111_0003021_010501
mov eax, edi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a0eb0
cmp dl, bl
je 0x4a0eac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a0eb0
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4a0e90
xor eax, eax
jmp 0x4a0eb5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4a0f6d
mov esi, dword [esp + 0x24]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a0ec6
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 0x51d110
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.004e8ba0
mov eax, edi
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4a0f13
sub eax, ecx
mov ecx, dword [esp + 0x24]
push eax
lea ebx, [esp + 0x8c]
call fcn.004cc360
mov edx, dword [esp + 0x14]
add esp, 4
push 0x100
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.004e4746
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.004e4746
mov esp, ebp
pop ebp
ret
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a0f97
sub eax, edx
jne 0x4a0fc2
lea eax, [esi + 0xb8]
lea edx, [eax + 1]
jmp 0x4a0fb0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a0fb0
sub eax, edx
jne 0x4a0fc2
push str.irpformat__Both_Key_Empty
jmp 0x4a0ff2
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a0fc7
sub eax, edx
jne 0x4a0fd9
push str.irpformat__Private_Key_Empty
jmp 0x4a0ff2
lea eax, [esi + 0xb8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a0fe2
sub eax, edx
jne 0x4a1003
push str.irpformat__Public_Key_Empty
push str.Network
xor edx, edx
xor ecx, ecx
call fcn.004a3a40
add esp, 8
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004e4746
mov esp, ebp
pop ebp
ret