joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x36a0295b
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x159e4c94
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401290
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431f00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [eax]
push edi
mov ecx, dword [ebx]
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x18]
push 0
push edx
push esi
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x11], 0
call sub.iphlpapi.dll_GetIpForwardTable
mov edi, eax
cmp edi, 0x7a
jne 0x401464
push esi
mov dword [ebp - 4], 0
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp - 0x18]
push eax
call sub.MFC42.DLL_operatornew
add esp, 8
lea ecx, [ebp - 0x18]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push 0
push ecx
push esi
call sub.iphlpapi.dll_GetIpForwardTable
mov edi, eax
test edi, edi
je 0x40150e
push esi
call sub.MFC42.DLL_operatordelete
mov eax, dword [0x441ff4]
add esp, 4
test eax, eax
je 0x4013aa
mov edx, dword [0x441fd4]
mov eax, dword [edx]
cmp eax, 2
je 0x401344
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x4013aa
cmp eax, 2
jle 0x4013aa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x401369
mov edx, dword [0x441fa0]
mov dword [0x436030], edx
call fcn.0041c4b1
test eax, eax
je 0x40139c
mov eax, dword [0x436030]
push 2
push eax
push 0xbe
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
push edi
push str.GetSystemRouting__failed_to_get_routing_table__ret_d_n
call fcn.0041c506
add esp, 0x18
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [edx], 0
mov dword [eax], 0
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x40150e
mov eax, dword [0x441ff4]
test eax, eax
je 0x401500
mov edx, dword [0x441fd4]
mov eax, dword [edx]
cmp eax, 2
je 0x401496
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x401500
cmp eax, 2
jle 0x401500
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x436030]
test eax, eax
jge 0x4014bc
mov edx, dword [0x441fa0]
mov dword [0x436030], edx
call fcn.0041c4b1
test eax, eax
je 0x4014ef
mov eax, dword [0x436030]
push 2
push eax
push 0xc8
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
push edi
push str.GetSystemRouting__try_to_get_routing_table_failed__ret_d_n
call fcn.0041c506
add esp, 0x18
call fcn.0041c4cc
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x4013aa
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
pop edi
mov al, 1
mov dword [edx], esi
mov dword [ebx], ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403420
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x608
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
mov byte [esp + 0x418], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x419]
mov byte [esp + 0x218], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x219]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x441ab4
lea eax, [esp + 0x1c]
push str.SYSTEMCurrentControlSetEnum_s
push eax
mov dword [esp + 0x1c], ebx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push edx
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x403573
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x218]
push eax
push ecx
push ebx
push ebx
push str.Driver
push edx
mov dword [esp + 0x2c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403568
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
lea ecx, [esp + 0x218]
lea edx, [esp + 0x418]
push ecx
push str.SYSTEMCurrentControlSetControlClass_s
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x418]
push eax
push 0x20019
push ebx
push ecx
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x403573
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x441780
push ebx
push ebx
push str.NetCfgInstanceId
push eax
mov dword [esp + 0x2c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
test eax, eax
push ecx
sete bl
call ebp
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0x608
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x608
ret
Function at 0x405fc0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
lea eax, [esp + 8]
push ebx
push eax
xor ebx, ebx
push 0xf003f
push ebx
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
push reloc.WS2_32.dll_bind
mov byte [esp + 0x1b], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40613f
push ebp
push esi
push edi
mov ecx, 0x40
lea edi, [esp + 0x25]
mov byte [esp + 0x24], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push ebx
push ebx
lea ecx, [esp + 0x20]
push ebx
lea edx, [esp + 0x34]
stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
push ecx
push edx
mov esi, 0x104
push ebx
push eax
mov dword [esp + 0x34], esi
mov ebp, 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x406125
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push 0xf003f
lea edx, [esp + 0x2c]
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4060eb
mov ecx, 0x40
lea edi, [esp + 0x129]
mov byte [esp + 0x128], bl
lea edx, [esp + 0x128]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], ebx
stosb byte es:[edi], al
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push edx
push eax
push ebx
push str.NetCfgInstanceId
push ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4060e0
mov esi, dword [esp + 0x230]
lea eax, [esp + 0x128]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4060d2
cmp cl, bl
je 0x4060ce
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4060d2
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4060ae
xor eax, eax
jmp 0x4060d7
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x406116
mov esi, 0x104
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x20]
push ebx
lea edx, [esp + 0x34]
mov eax, ebp
push ecx
push edx
push eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], esi
push eax
inc ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x406036
jmp 0x406125
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x13], bl
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
mov al, byte [esp + 7]
pop ebx
add esp, 0x21c
ret
Function at 0x407180
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebx
lea eax, [esp + 4]
push esi
lea ecx, [esp + 0xc]
xor ebx, ebx
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWAREArray_NetworksArray_SSL_VPN8_4_6_40DNS_Backup
push reloc.WS2_32.dll_bind
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x407218
mov ecx, dword [esp + 0x14]
lea edx, [esp + 8]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push ecx
push edx
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x407211
mov edx, dword [esp + 0x18]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
push ecx
push edx
push 1
push ebx
push 0x437184
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop edi
jne 0x40720a
mov bl, 1
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
mov al, bl
pop esi
pop ebx
add esp, 8
ret
Function at 0x40a830
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push ebx
push ebp
mov ebp, dword [esp + 0x48]
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x3c
push eax
mov dword [esp + 0x24], str.netsh.exe
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40a918
mov eax, dword [0x441ff4]
test eax, eax
je 0x40a90e
mov ecx, dword [0x441fd4]
mov eax, dword [ecx]
cmp eax, 1
je 0x40a8a1
mov edx, dword [0x441fdc]
cmp dword [edx], 0
jne 0x40a90e
cmp eax, 1
jle 0x40a90e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call esi
mov ebx, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x40a8c6
mov eax, dword [0x441fa0]
mov dword [0x436030], eax
call fcn.0041c4b1
test eax, eax
je 0x40a900
mov ecx, dword [0x436030]
push 1
push ecx
push 0x9ad
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
add esp, 0x10
call esi
push eax
push ebp
push str.Adapter_InvokeNetShell__ShellExecuteExA_netsh.exe__s_error__d_n
call fcn.0041c506
add esp, 0xc
call fcn.0041c4cc
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40a9d4
push 0x493e0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
je 0x40a9d4
mov eax, dword [0x441ff4]
test eax, eax
je 0x40a9ca
mov edx, dword [0x441fd4]
mov eax, dword [edx]
cmp eax, 1
je 0x40a964
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x40a9ca
cmp eax, 1
jle 0x40a9ca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x40a989
mov edx, dword [0x441fa0]
mov dword [0x436030], edx
call fcn.0041c4b1
test eax, eax
je 0x40a9bc
mov eax, dword [0x436030]
push 1
push eax
push 0x9b5
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
push ebx
push str.Adapter_InvokeNetShell__WaitForSingleObject_error__d_n
call fcn.0041c506
add esp, 0x18
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3c
ret
Function at 0x4161f0
Capabilities:
Create thread

Disassembly:
push 0x9c40
push 0
push 3
call fcn.0041bd50
push 0
push 0
push 0
push 0
push 2
push 0x15
call fcn.0041e7ec
add esp, 0x24
mov eax, dword [0x441e28]
test eax, eax
jne 0x416249
push 0
call fcn.00422816
add esp, 4
mov eax, dword [0x441e28]
test eax, eax
jne 0x416249
call fcn.004225b1
test eax, eax
je 0x416249
push 0
push 0
push 0x4102a0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov eax, dword [0x441e68]
test eax, eax
je 0x416259
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x441e50]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x416276
push eax
call esi
mov dword [0x441e50], 0
mov eax, dword [0x441e58]
test eax, eax
je 0x41628c
push eax
call esi
mov dword [0x441e58], 0
pop esi
ret
Function at 0x41bde0
Capabilities:
Access the windows event log

Disassembly:
mov eax, dword [0x441f98]
sub esp, 0x8c
test eax, eax
push esi
jne 0x41be60
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.ArraySSL_VPN_Service8.4.6.40
push 0
mov dword [0x441f94], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
mov eax, dword [0x441f94]
push eax
push str.ArraySSL_VPN_Service8.4.6.40
lea ecx, [esp + 0x14]
push str._s_error:__d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0xa4]
add esp, 0x10
lea edx, [esp + 0xc]
mov dword [esp + 8], eax
test esi, esi
mov dword [esp + 4], edx
je 0x41be60
lea ecx, [esp + 4]
push 0
push ecx
push 0
push 2
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
add esp, 0x8c
ret
Function at 0x41be70
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
sub esp, 0x204
lea eax, [esp + 4]
push edi
push 0x200
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41beb7
push 0x100
push 0x441e70
call fcn.0041dbd3
push eax
push str.Array_SSL_VPN_Service_8_4_6_40
push str.Unable_to_install__s____s_n
call fcn.0041b710
add esp, 0x14
pop edi
add esp, 0x204
ret
push 3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
mov dword [esp + 4], edi
je 0x41c012
push esi
push 0
push 0
push 0x441e2c
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push str.Array_SSL_VPN_Service_8_4_6_40
push str.ArraySSL_VPN_Service8.4.6.40
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
je 0x41bfe5
push str.Array_SSL_VPN_Service_8_4_6_40
push str._s_installed._n
call fcn.0041b710
add esp, 8
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x41bfce
mov eax, dword [0x441ff4]
test eax, eax
je 0x41bfce
mov edx, dword [0x441fd4]
mov eax, dword [edx]
cmp eax, 1
je 0x41bf59
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x41bfce
cmp eax, 1
jle 0x41bfce
push ebx
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call edi
mov ebp, eax
mov eax, dword [0x43c534]
test eax, eax
jge 0x41bf82
mov edx, dword [0x441fa0]
mov dword [0x43c534], edx
call fcn.0041c4b1
test eax, eax
je 0x41bfba
mov eax, dword [0x43c534]
push 1
push eax
push 0x211
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsService.cpp
call fcn.0041c4e1
add esp, 0x10
call edi
push eax
push str.Install_service__failed_to_start__err_d_n
call fcn.0041c506
add esp, 8
call fcn.0041c4cc
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esp + 0x10]
pop ebp
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
add esp, 0x204
ret
push 0x100
push 0x441e70
call fcn.0041dbd3
push eax
push str.CreateService_failed____s_n
call fcn.0041b710
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
add esp, 0x204
ret
push 0x100
push 0x441e70
call fcn.0041dbd3
push eax
push str.OpenSCManager_failed____s_n
call fcn.0041b710
add esp, 0x10
pop edi
add esp, 0x204
ret
Function at 0x41c040
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x41c18d
push esi
push 0x10024
push str.ArraySSL_VPN_Service8.4.6.40
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x41c166
push 0x441f70
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x41c10a
push ebx
push edi
push str.Array_SSL_VPN_Service_8_4_6_40
push str.Stopping__s.
call fcn.0041b710
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x441f70
push esi
call ebx
test eax, eax
je 0x41c0e5
cmp dword [0x441f74], 3
jne 0x41c0e5
push 0x4369c0
call fcn.0041b710
add esp, 4
push 0x3e8
call edi
push 0x441f70
push esi
call ebx
test eax, eax
jne 0x41c0bc
mov eax, dword [0x441f74]
pop edi
pop ebx
cmp eax, 1
push str.Array_SSL_VPN_Service_8_4_6_40
jne 0x41c0fd
push str._s_stopped._n
jmp 0x41c102
push str._s_failed_to_stop._n
call fcn.0041b710
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x41c138
push str.Array_SSL_VPN_Service_8_4_6_40
push str._s_removed._n
call fcn.0041b710
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
ret
push 0x100
push 0x441e70
call fcn.0041dbd3
push eax
push str.DeleteService_failed____s_n
call fcn.0041b710
add esp, 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
ret
push 0x100
push 0x441e70
call fcn.0041dbd3
push eax
push str.OpenService_failed____s_n
call fcn.0041b710
add esp, 0x10
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
ret
push 0x100
push 0x441e70
call fcn.0041dbd3
push eax
push str.OpenSCManager_failed____s_n
call fcn.0041b710
add esp, 0x10
pop ebp
ret
Function at 0x41c9fb
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x24
lea eax, [esp + 0x10]
push ebx
push ebp
push esi
push edi
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0041cb79
pop ecx
test eax, eax
pop ecx
je 0x41cb0e
mov ebp, dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, str.GlobalLOG_BUFFER_0D38375B_DD21_4562_9ED0_C1B93680E653
xor ebx, ebx
push edi
push ebx
push 6
call ebp
mov esi, eax
cmp esi, ebx
jne 0x41ca66
push str.SeCreateGlobalPrivilege
call fcn.0041d1f0
pop ecx
lea eax, [esp + 0x14]
push edi
push 0x1000
push ebx
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
cmp esi, ebx
je 0x41caee
push esi
call fcn.0041cbb6
pop ecx
push ebx
push ebx
push ebx
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x41cae3
mov edi, str.GlobalLOG_LEVEL_SHAREDMEM_0D38375B_DD21_4562_9ED0_C1B93680E653
push edi
push ebx
push 6
call ebp
cmp eax, ebx
mov dword [0x441fe4], eax
jne 0x41cac4
push str.SeCreateGlobalPrivilege
call fcn.0041d1f0
pop ecx
lea eax, [esp + 0x14]
push edi
push 0x200
push ebx
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push eax
mov dword [0x441fe4], eax
call fcn.0041cbb6
mov eax, dword [0x441fe4]
pop ecx
cmp eax, ebx
je 0x41cad9
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [0x441fe8], eax
jne 0x41cb12
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp esi, ebx
je 0x41caee
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x441fe8]
cmp eax, ebx
je 0x41cafe
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [0x441fe4]
cmp eax, ebx
je 0x41cb0e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41cb49
lea ecx, [eax + 4]
mov dword [0x441fdc], eax
mov dword [0x441fe0], ecx
mov ecx, dword [0x441fa0]
push 1
lea ecx, [eax + ecx*4 + 0x10]
mov dword [0x441fd4], ecx
lea ecx, [eax + 0x100]
add eax, 0x104
mov dword [0x441ff0], ecx
mov dword [0x441fec], eax
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x41d3d1
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi]
mov dword [esi + 0x220], edi
cmp eax, edi
je 0x41d483
cmp dword [ebp + 8], edi
je 0x41d430
push edi
push edi
push edi
push edi
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
mov dword [esi + 0x220], eax
je 0x41d40e
push 1
pop eax
jmp 0x41d42a
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [esi + 0x220], eax
xor eax, eax
cmp dword [esi + 0x220], edi
sete al
pop edi
pop esi
leave
ret 4
cmp dword [esi + 0xc], edi
jle 0x41d41f
lea eax, [ebp - 8]
mov ecx, esi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp + 8], edi
mov dword [ebp - 4], edi
call fcn.0041d6ae
test eax, eax
je 0x41d475
push dword [ebp + 8]
mov ecx, esi
call fcn.0041d3d1
test eax, eax
je 0x41d47a
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.0041d502
jmp 0x41d430
cmp dword [ebp + 8], edi
je 0x41d483
push dword [ebp + 8]
call sub.MSVCRT.dll_free
pop ecx
xor eax, eax
jmp 0x41d42a

Function at 0x41d502
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
push esi
mov esi, ecx
xor ebp, ebp
mov eax, dword [esi]
cmp eax, ebp
je 0x41d557
push ebx
push edi
push ebp
lea ecx, [esi + 0x10]
push ebp
lea edi, [esi + 0x14]
push ecx
lea ecx, [esi + 0xc]
push edi
lea ebx, [esi + 8]
push ecx
push ebp
lea ecx, [esi + 4]
push ebx
push ecx
push ebp
push ebp
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [ebx]
cmp eax, ebp
mov dword [esi + 0x220], eax
lea ecx, [ecx + ecx + 2]
mov dword [ebx], ecx
mov ecx, dword [edi]
lea ecx, [ecx + ecx + 2]
mov dword [edi], ecx
pop edi
pop ebx
je 0x41d557
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], ebp
xor eax, eax
cmp dword [esi], ebp
pop esi
pop ebp
setne al
ret

Function at 0x41d630
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
cmp dword [esi], ebx
mov dword [esi + 0x220], 6
je 0x41d6a4
mov eax, dword [esi + 8]
inc eax
push eax
mov dword [ebp - 8], eax
call sub.MSVCRT.dll_malloc
mov edi, eax
pop ecx
cmp edi, ebx
je 0x41d69a
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
push edi
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
mov dword [esi + 0x220], eax
jne 0x41d691
push dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.0041d5d1
mov dword [ebp - 4], eax
push edi
call sub.MSVCRT.dll_free
pop ecx
jmp 0x41d6a4
mov dword [esi + 0x220], 8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41d773
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov dword [esi + 0x220], 6
test eax, eax
je 0x41d7ab
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push 0
push dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov dword [esi + 0x220], eax
jne 0x41d7ab
push 1
pop eax
jmp 0x41d7ad
xor eax, eax
pop esi
ret 8