joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411dd0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x457cb9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x274
push ebx
push esi
push edi
xor edi, edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x288], edi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x24], edi
lea eax, [esp + 0x290]
lea ecx, [esp + 0x10]
push eax
mov bl, 2
push str.SYSTEMCurrentControlSetServicesTcpIpParametersInterfaces_
push ecx
mov byte [esp + 0x294], bl
mov dword [esp + 0x28], edi
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28c], 3
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x288], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
lea eax, [esp + 0x10]
push edx
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push ecx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, edi
jne 0x411f68
mov ebx, dword [esp + 0x294]
mov esi, dword [esp + 0x10]
push ebp
xor ebp, ebp
mov eax, dword [ebx + 8]
mov dword [esp + 0x28], esi
test eax, eax
jle 0x411f2a
lea edx, [esp + 0x1c]
push edi
push edx
mov ecx, ebx
xor esi, esi
call fcn.00411da0
mov eax, dword [eax]
mov ecx, dword [eax - 8]
test ecx, ecx
lea ecx, [esp + 0x1c]
setg byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x411f0d
lea ecx, [esp + 0x24]
push edi
push ecx
mov ecx, ebx
call fcn.00411da0
mov edx, dword [eax]
lea ecx, [esp + 0x24]
mov al, byte [edx + esi]
mov byte [esp + ebp + 0x2c], al
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x1c]
push edi
inc esi
push eax
mov ecx, ebx
inc ebp
call fcn.00411da0
mov ecx, dword [eax]
mov edx, dword [ecx - 8]
lea ecx, [esp + 0x1c]
cmp esi, edx
setl byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
jne 0x411ec2
mov eax, dword [ebx + 8]
mov byte [esp + ebp + 0x2c], 0
inc ebp
inc edi
cmp edi, eax
mov byte [esp + ebp + 0x2c], 0
jl 0x411e96
mov esi, dword [esp + 0x14]
test eax, eax
je 0x411f34
inc ebp
mov byte [esp + ebp + 0x2c], 0
jmp 0x411f3a
mov byte [esp + ebp + 0x2c], 0
inc ebp
lea edx, [esp + 0x2c]
push ebp
push edx
push 7
push 0
push str.SubnetMask
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop ebp
jne 0x411f5d
mov dword [esp + 0x1c], 1
test esi, esi
je 0x411f68
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov byte [esp + 0x288], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x290]
mov dword [esp + 0x288], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x280]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x280
ret 8
Function at 0x411fb0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x457cf9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x404
push ebx
push esi
push edi
xor edi, edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x418], edi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x24], edi
lea eax, [esp + 0x420]
lea ecx, [esp + 0x10]
push eax
mov bl, 2
push str.SYSTEMCurrentControlSetServicesTcpIpParametersInterfaces_
push ecx
mov byte [esp + 0x424], bl
mov dword [esp + 0x28], edi
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x41c], 3
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x418], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
lea eax, [esp + 0x10]
push edx
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push ecx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, edi
jne 0x412146
mov esi, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x428]
xor ebx, ebx
mov dword [esp + 0x28], esi
mov eax, dword [ebp + 8]
test eax, eax
jle 0x412103
lea edx, [esp + 0x1c]
push edi
push edx
mov ecx, ebp
xor esi, esi
call fcn.00411da0
mov eax, dword [eax]
mov ecx, dword [eax - 8]
test ecx, ecx
lea ecx, [esp + 0x1c]
setg byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x4120ed
lea ecx, [esp + 0x24]
push edi
push ecx
mov ecx, ebp
call fcn.00411da0
mov edx, dword [eax]
lea ecx, [esp + 0x24]
mov al, byte [edx + esi]
mov byte [esp + ebx + 0x2c], al
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x1c]
push edi
inc esi
push eax
mov ecx, ebp
inc ebx
call fcn.00411da0
mov ecx, dword [eax]
mov edx, dword [ecx - 8]
lea ecx, [esp + 0x1c]
cmp esi, edx
setl byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
jne 0x4120a2
mov eax, dword [ebp + 8]
mov byte [esp + ebx + 0x2c], 0x2c
inc ebx
inc edi
cmp edi, eax
jl 0x412076
mov esi, dword [esp + 0x14]
mov eax, dword [ebp + 8]
pop ebp
test eax, eax
je 0x412113
dec ebx
mov byte [esp + ebx + 0x28], 0
jmp 0x412119
mov byte [esp + ebx + 0x28], 0
inc ebx
lea edx, [esp + 0x28]
push ebx
push edx
push 1
push 0
push str.NameServer
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x41213b
mov dword [esp + 0x1c], 1
test esi, esi
je 0x412146
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov byte [esp + 0x418], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x420]
mov dword [esp + 0x418], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x410]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x410
ret 8
Function at 0x4123c0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x457d89
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x274
push ebx
push esi
push edi
xor edi, edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x288], edi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x24], edi
lea eax, [esp + 0x290]
lea ecx, [esp + 0x10]
push eax
mov bl, 2
push str.SYSTEMCurrentControlSetServicesTcpIpParametersInterfaces_
push ecx
mov byte [esp + 0x294], bl
mov dword [esp + 0x28], edi
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28c], 3
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x288], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
lea eax, [esp + 0x10]
push edx
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push ecx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, edi
jne 0x412558
mov ebx, dword [esp + 0x294]
mov esi, dword [esp + 0x10]
push ebp
xor ebp, ebp
mov eax, dword [ebx + 8]
mov dword [esp + 0x28], esi
test eax, eax
jle 0x41251a
lea edx, [esp + 0x1c]
push edi
push edx
mov ecx, ebx
xor esi, esi
call fcn.00411da0
mov eax, dword [eax]
mov ecx, dword [eax - 8]
test ecx, ecx
lea ecx, [esp + 0x1c]
setg byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x4124fd
lea ecx, [esp + 0x24]
push edi
push ecx
mov ecx, ebx
call fcn.00411da0
mov edx, dword [eax]
lea ecx, [esp + 0x24]
mov al, byte [edx + esi]
mov byte [esp + ebp + 0x2c], al
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x1c]
push edi
inc esi
push eax
mov ecx, ebx
inc ebp
call fcn.00411da0
mov ecx, dword [eax]
mov edx, dword [ecx - 8]
lea ecx, [esp + 0x1c]
cmp esi, edx
setl byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
jne 0x4124b2
mov eax, dword [ebx + 8]
mov byte [esp + ebp + 0x2c], 0
inc ebp
inc edi
cmp edi, eax
mov byte [esp + ebp + 0x2c], 0
jl 0x412486
mov esi, dword [esp + 0x14]
test eax, eax
je 0x412524
inc ebp
mov byte [esp + ebp + 0x2c], 0
jmp 0x41252a
mov byte [esp + ebp + 0x2c], 0
inc ebp
lea edx, [esp + 0x2c]
push ebp
push edx
push 7
push 0
push str.DefaultGateway
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop ebp
jne 0x41254d
mov dword [esp + 0x1c], 1
test esi, esi
je 0x412558
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov byte [esp + 0x288], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x290]
mov dword [esp + 0x288], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x280]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x280
ret 8
Function at 0x4220c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4587d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 0xc]
push ebx
mov ecx, edi
mov dword [esp + 0x18], esi
mov dword [esi], 0x45deac
call fcn.00455d08
mov ebp, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi], 0x45ae40
add edi, 8
push edi
call ebp
lea edi, [esi + 0x2c]
push ebx
mov ecx, edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], edi
call fcn.00455d08
lea eax, [edi + 8]
mov dword [edi], 0x45ae40
push eax
call ebp
mov cl, byte [esp + 0x13]
push 0xc
mov byte [esp + 0x28], 1
mov byte [edi + 0x20], cl
call sub.MFC42.DLL_operatornew
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 4
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], ebx
mov dword [esi + 0x58], 0x45de98
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x60], ebx
push 0x4737d4
push 2
push 2
mov byte [esp + 0x30], 3
mov dword [esi], 0x45de90
call fcn.004048e0
add esp, 0xc
mov ecx, esi
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
call fcn.00422490
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x423df0
Capabilities:
Resume thread

Disassembly:
push ecx
push esi
push str.CQAccessInterface::MakeQAccessCall___Begin_n
push 2
mov esi, ecx
push 2
mov dword [esp + 0x10], 0
call fcn.004048e0
mov eax, dword [esi + 0x214]
add esp, 0xc
test eax, eax
jne 0x423e1e
mov ecx, esi
call fcn.004240a0
mov eax, dword [0x484800]
test eax, eax
jne 0x423eac
mov eax, dword [esi]
test eax, eax
je 0x423e72
mov edx, dword [eax + 0x2c]
lea ecx, [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x423e72
cmp dword [esp + 4], 0x103
je 0x423e72
push str.CQAccessInterface::MakeQAccessCall___Deleting_QuickAccessThread_pointer_n
push 2
push 2
call fcn.004048e0
mov ecx, dword [esi]
add esp, 0xc
test ecx, ecx
je 0x423e6c
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi], 0
push 0
push 4
push 0
push 0
push 0
push 0x423ce0
call sub.MFC42.DLL_AfxBeginThread
test eax, eax
mov dword [esi], eax
je 0x423eac
push 0x484800
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esi]
mov dword [ecx + 0x28], 0
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push str.CQAccessInterface::MakeQAccessCall___End_n
push 2
push 2
call fcn.004048e0
add esp, 0xc
xor eax, eax
pop esi
pop ecx
ret

Function at 0x4249e0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x458b38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebx, [esi + 4]
mov dword [esi], 0x45b21c
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
lea ebp, [esi + 8]
xor edi, edi
mov ecx, ebp
mov dword [esp + 0xb0], edi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0xc]
mov byte [esp + 0xb0], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x10]
mov byte [esp + 0xb0], 2
call sub.MFC42.DLL_CString::CString_2
push 0x47555c
push 1
push 2
mov byte [esp + 0xbc], 3
mov dword [esi], 0x45e030
call fcn.004048e0
mov eax, dword [esp + 0xc4]
add esp, 0xc
mov ecx, ebx
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0xbc]
push 0x4845b8
mov dword [esi + 0x34], ecx
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
push 0x4845b8
lea ecx, [esi + 0xc]
call sub.MFC42.DLL_CString::operator_1
push 0x4845b8
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::operator_1
lea edx, [esp + 0x14]
mov dword [esi + 0x14], edi
push edx
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x18], 5
jne 0x424adf
cmp dword [esp + 0x1c], edi
jne 0x424adf
mov eax, 1
jmp 0x424ae1
xor eax, eax
mov ecx, esi
mov dword [esi + 0x2c], eax
call fcn.00424c70
push 0x47553c
push 1
push 2
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], edi
call fcn.004048e0
mov ecx, dword [esp + 0xb4]
add esp, 0xc
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 8
Function at 0x424be0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ecx
push str.CRasModule::SetTCPWindow___Begin_n
push 1
push 2
call fcn.004048e0
add esp, 0xc
lea eax, [esp]
push eax
push 2
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x424c57
mov edx, dword [esp]
lea ecx, [esp + 8]
push 4
push ecx
push 4
push eax
push str.TcpWindowSize
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x424c44
mov ecx, dword [esp + 8]
push ecx
push eax
push str.Failed_to_set_TCP_Window_Size.__Error_code_d__Value_d_n
push 1
push 2
call fcn.004048e0
add esp, 0x14
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp], 0
push str.CRasModule::SetTCPWindow___End_n
push 1
push 2
call fcn.004048e0
add esp, 0x10
ret 4

Function at 0x424c70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push str.CRasModule::GetTCPWindow___Begin_n
push 1
push 2
call fcn.004048e0
add esp, 0xc
lea eax, [esp]
mov dword [esp + 4], 0
mov dword [esp + 8], 4
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x424d03
lea ecx, [esp + 8]
lea edx, [esp + 4]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x10]
push str.TcpWindowSize
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x424cf0
push eax
push 0xfaf0
push str.Failed_to_retrieve_TCP_Window_Size.__Default:__d.__Error:__d_n
push 1
push 2
mov dword [esp + 0x18], 0xfaf0
call fcn.004048e0
add esp, 0x14
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp], 0
push str.CRasModule::GetTCPWindow___End_n
push 1
push 2
call fcn.004048e0
mov eax, dword [esp + 0x10]
add esp, 0x18
ret
Function at 0x426a40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x5a0
push ebx
push esi
push edi
push str.CRasModule::GetPhoneBookPath___Begin_n
push 1
push 2
call fcn.004048e0
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x1c]
add esp, 0xc
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x1a8]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0xa4]
rep stosd dword es:[edi], eax
mov word [esp + 0xc], ax
mov ecx, 0x40
lea edi, [esp + 0x4ac]
mov ebx, 1
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x2ac]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x3ac]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0xe], al
push ecx
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x426ada
mov dword [esp + 0x20], 0xffffffff
lea edx, [esp + 0x1a8]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x3ac]
lea ecx, [esp + 0x2ac]
push eax
lea edx, [esp + 0x4b0]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1b4]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__splitpath]
mov eax, dword [esp + 0x34]
add esp, 0x14
dec eax
je 0x426b4e
dec eax
je 0x426b29
xor ebx, ebx
jmp 0x426b4e
push 0x475ea8
push str.RasPhone
lea edx, [esp + 0x14]
push str.Documents_and_SettingsAll_UsersApplication_DataMicrosoftNetworkConnectionspbk
lea eax, [esp + 0xb0]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__makepath]
add esp, 0x14
lea edi, [esp + 0xa4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x5b4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push ebx
push str.CRasModule::GetPhoneBookPath___End:_RetVal__BOOL_:__d_n
push 1
push 2
call fcn.004048e0
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x5a0
ret 4
Function at 0x427020
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x458c8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov esi, dword [esp + 0x138]
mov edi, dword [esp + 0x134]
lea eax, [esp + 0xc]
mov dword [esp + 0x128], ebx
push eax
push 0x20019
push ebx
push esi
push edi
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4270ea
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x19]
mov esi, dword [esp + 0xc]
mov byte [esp + 0x18], bl
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
lea eax, [esp + 0x14]
push ecx
push edx
push eax
push ebx
push str.RasProfileName
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 0x104
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x427109
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x427109
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x134]
call sub.MFC42.DLL_CString::operator_1
cmp esi, ebx
je 0x4270e3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x427116
push eax
push esi
push edi
call fcn.00427200
add esp, 4
push eax
push str.CRasModule::GetRasProfileNameInternal___open_key__s__s_failed_with__d_n
push 2
push 2
call fcn.004048e0
add esp, 0x18
jmp 0x427114
cmp esi, ebx
je 0x427114
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret

Function at 0x427130
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x458ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x14], edi
mov ebp, dword [esp + 0x30]
lea eax, [esp + 0x30]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push eax
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push ebp
push edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x42718d
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x14], edi
cmp eax, ebx
mov ebx, dword [esp + 0x28]
mov esi, eax
jne 0x4271b9
mov esi, dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push 0
push str.RasProfileName
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x4271dd
mov eax, dword [ebx]
mov ecx, dword [esp + 0x2c]
push esi
push eax
push ebp
push ecx
call fcn.00427200
add esp, 4
push eax
push str.CRasModule::SetRasProfileNameInternal___Setting__s__s_to__s_failed_with__d_n
push 2
push 2
call fcn.004048e0
add esp, 0x1c
test edi, edi
je 0x4271e8
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x427db0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x458d18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
xor ebx, ebx
push eax
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SOFTWARENovatel_WirelessVerizonNextGenCommon
push connect
mov dword [esp + 0x48], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x427f40
mov esi, dword [esp + 0x10]
push ebp
lea edx, [esp + 0xc]
push edi
push edx
mov dword [esp + 0x24], esi
call sub.MFC42.DLL_CTime::GetTickCount
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
push ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0x14]
push ebx
lea ecx, [esp + 0x14]
add edi, 0x76c
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebp, dword [eax + 0xc]
push ebx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0x10]
push edi
inc eax
push ebp
push eax
lea eax, [esp + 0x24]
push str._2d__2d__4d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x18]
push 0x14
call sub.MFC42.DLL_CString::GetBuffer
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push edi
call ebp
inc eax
push eax
push edi
push 1
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.UpdateDate
push esi
call ebx
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax]
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ecx, dword [eax + 4]
push 0
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [esp + 0x1c]
mov eax, dword [eax + 8]
push edi
push edx
push eax
lea eax, [esp + 0x20]
push str._2d:_2d:_2d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x14]
push 0x14
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
push edi
call ebp
inc eax
push eax
push edi
push 1
push 0
push str.UpdateTime
push esi
call ebx
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
pop edi
pop ebp
test esi, esi
je 0x427f40
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x427fc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, ecx
push esi
xor ebx, ebx
call fcn.00427f60
cmp eax, 1
jne 0x428066
mov eax, dword [0x484a30]
test eax, eax
jne 0x427ffb
mov ecx, edi
call fcn.00427550
mov eax, dword [0x484a30]
test eax, eax
je 0x4280ee
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0
lea ecx, [esp + 0x24]
push 0
push ecx
push 0
push esi
push eax
call edi
mov ebp, eax
mov eax, dword [esp + 0x20]
mov ebx, 4
cmp eax, ebx
jne 0x42804b
test ebp, ebp
jne 0x42805a
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
mov edx, dword [0x484a30]
lea ecx, [esp + 0x18]
push eax
push ecx
push ebp
push esi
push edx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
call edi
cmp dword [esp + 0x20], ebx
je 0x42805a
pop edi
pop esi
pop ebp
mov eax, 0x545
pop ebx
add esp, 8
ret 8
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov eax, dword [0x484a34]
test eax, eax
jne 0x42807f
mov ecx, edi
call fcn.00427550
mov eax, dword [0x484a34]
test eax, eax
je 0x4280df
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0
lea ecx, [esp + 0x24]
push 0
push ecx
push 0
push esi
push eax
call edi
test eax, eax
mov ebx, 4
jne 0x4280ca
cmp dword [esp + 0x20], ebx
jne 0x4280d0
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
mov edx, dword [0x484a34]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push esi
push edx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], ebx
call edi
cmp dword [esp + 0x20], ebx
je 0x4280f0
pop edi
pop esi
pop ebp
mov eax, 0x545
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 8
ret 8
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8