joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40344c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40345b
pop dword [ebp - 0x40]
mov eax, 0x7b4ed269
add eax, 0x84f161f2
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x84da8088
add dword [ebp - 0x50], 0xc977c4c3
mov dword [ebp - 0x4c], 0x3abcc87a
add dword [ebp - 0x4c], 0xf77683cb
mov dword [ebp - 0x48], 0xa62d6965
add dword [ebp - 0x48], 0xa61edac9
mov dword [ebp - 0x44], 0x62b6e947
sub dword [ebp - 0x44], 0x62b6e947
lea eax, [ebp - 0x50]
push eax
mov eax, 0x31f1cd8f
add eax, 0xce4e72c5
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xa9446147
add dword [ebp - 0x50], 0xcb2e080f
mov dword [ebp - 0x4c], 0x5e74d637
add dword [ebp - 0x4c], 0xe2f78b3e
mov dword [ebp - 0x48], 0x8e6ab6b4
sub dword [ebp - 0x48], 0x2afb4a48
mov dword [ebp - 0x44], 0x4775fa0a
sub dword [ebp - 0x44], 0x4775fa0a
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x37bc3
push 0
call eax
mov ecx, 0x9b5d14f6
sub ecx, 0x9b5cc97b
mov edx, eax
mov ebx, 0x22d411d4
sub ebx, 0x22938dd4
add ebx, dword [ebp - 0x40]
mov esi, 0x6623780
add esi, 0x52d563c9
sub dword [ebp - 0x30], edi
mov edi, dword [ebx]
sub dword [ebp - 0x34], edi
sub edi, esi
mov dword [ebp - 0x20], 0xd855fe25
mov dword [edx], edi
xor dword [ebp - 0x24], ebx
add edx, 0x8a35d6b2
sub edx, 0x8a35d6ae
add ebx, 0xc1fa4eab
add ebx, 0x3e05b159
loop 0x403578
add eax, 0xb48b31be
sub eax, 0xb48a10ff
mov ebx, eax
add eax, 0x5e69e517
add eax, 0xa1961aee
mov ecx, 0x4b2e3763
add ecx, 0xb511c89d
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x4018d0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x410060]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR71.dll_wcslen
add esp, 4
cmp eax, 0x3e8
jae 0x40191a
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x808]
push eax
call sub.MSVCR71.dll_swprintf
add esp, 0xc
lea ecx, [ebp - 0x808]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
call fcn.00409559
mov esp, ebp
pop ebp
ret

Function at 0x401a40
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x410060]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 4], 0
push str.SYSTEMCurrentControlSetServicesEventLogApplication
lea eax, [ebp - 0x220]
push eax
call sub.MSVCR71.dll_wcscpy
add esp, 8
push 0x40a398
lea ecx, [ebp - 0x220]
push ecx
call sub.MSVCR71.dll_wcscat
add esp, 8
push str.MSSQLServerADHelper
lea edx, [ebp - 0x220]
push edx
call sub.MSVCR71.dll_wcscat
add esp, 8
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x220]
push ecx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401adb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_create_the_event_log_service_registry_key.
call fcn.004018d0
add esp, 8
jmp 0x401b65
mov edx, dword [ebp + 8]
push edx
call sub.MSVCR71.dll_wcslen
add esp, 4
lea eax, [eax + eax + 2]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 2
push 0
push str.EventMessageFile
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401b25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_set_the_event_message_file.
call fcn.004018d0
add esp, 8
jmp 0x401b65
mov dword [ebp - 8], 7
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.TypesSupported
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401b65
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_set_the_supported_types.
call fcn.004018d0
add esp, 8
cmp dword [ebp - 0x224], 0
je 0x401b7b
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
call fcn.00409559
mov esp, ebp
pop ebp
ret

Function at 0x401b90
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServicesEventLogApplication
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401bbe
jmp 0x401bcd
push str.MSSQLServerADHelper
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 4], 0
je 0x401bdd
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x401fa0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x410060]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
call fcn.00401b90
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x402149
push 0xf01ff
push str.MSSQLServerADHelper
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402111
lea ecx, [ebp - 0x240]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4020ba
push str.MSSQLServerADHelper
push str.Stopping__s.
call sub.MSVCR71.dll_wprintf
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40208b
cmp dword [ebp - 8], 0x12c
jae 0x40208b
cmp dword [ebp - 0x23c], 3
jne 0x402087
push 0x40a654
call sub.MSVCR71.dll_wprintf
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x402089
jmp 0x40208b
jmp 0x40203d
cmp dword [ebp - 0x23c], 1
jne 0x4020a8
push str.MSSQLServerADHelper
push 0x40a658
call sub.MSVCR71.dll_wprintf
add esp, 8
jmp 0x4020ba
push str.MSSQLServerADHelper
push str._n_s_failed_to_stop._n
call sub.MSVCR71.dll_wprintf
add esp, 8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x4020dc
push str.MSSQLServerADHelper
push str._s_removed._n
call sub.MSVCR71.dll_wprintf
add esp, 8
jmp 0x402105
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x104
lea ecx, [ebp - 0x220]
push ecx
call fcn.00402190
add esp, 0xc
push eax
push str.DeleteService_failed____s_n
call sub.MSVCR71.dll_wprintf
add esp, 8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40213a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x104
lea eax, [ebp - 0x220]
push eax
call fcn.00402190
add esp, 0xc
push eax
push str.OpenService_failed____s_n
call sub.MSVCR71.dll_wprintf
add esp, 8
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x402172
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x104
lea edx, [ebp - 0x220]
push edx
call fcn.00402190
add esp, 0xc
push eax
push str.OpenSCManager_failed____s_n
call sub.MSVCR71.dll_wprintf
add esp, 8
mov ecx, dword [ebp - 0xc]
call fcn.00409559
mov esp, ebp
pop ebp
ret
Function at 0x402320
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x410060]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x21c], 0
mov word [ebp - 0x218], 0
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
push 0x105
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x4023e6
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCR71.dll_wcslen
add esp, 4
mov edx, 0x105
sub edx, eax
sub edx, 2
cmp dword [ebp - 0x220], edx
jae 0x4023e6
mov eax, dword [ebp - 0x220]
movzx ecx, word [ebp + eax*2 - 0x21a]
cmp ecx, 0x5c
je 0x4023be
push 0x40b07c
push 0x105
lea edx, [ebp - 0x218]
push edx
call fcn.00402400
mov eax, dword [ebp + 8]
push eax
push 0x105
lea ecx, [ebp - 0x218]
push ecx
call fcn.00402400
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
call fcn.00409559
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4042d0
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x410060]
mov dword [ebp - 8], eax
mov dword [0x410168], 3
mov eax, dword [ebp + 8]
add eax, 0xa28
mov dword [0x410170], eax
mov dword [0x410240], 3
mov ecx, dword [ebp + 0xc]
add ecx, 0x10c
mov dword [0x410248], ecx
mov dword [0x410570], 3
mov edx, dword [ebp + 0xc]
add edx, 0x210c
mov dword [0x410578], edx
mov dword [0x410450], 3
mov eax, dword [ebp + 0xc]
add eax, 0x2214
mov dword [0x410458], eax
mov dword [0x4103f0], 0xa
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x231c]
mov eax, dword [ecx + 0x2320]
mov dword [0x4103f8], edx
mov dword [0x4103fc], eax
mov dword [0x410228], 3
mov ecx, dword [ebp + 0xc]
add ecx, 0x2324
mov dword [0x410230], ecx
mov dword [0x410150], 3
mov edx, dword [ebp + 0xc]
add edx, 0x242c
mov dword [0x410158], edx
mov dword [0x410270], 3
mov eax, dword [ebp + 0xc]
add eax, 0x2534
mov dword [0x410278], eax
mov dword [0x4105d0], 3
mov dword [0x4105e8], 3
mov dword [0x410600], 3
mov dword [0x410618], 3
mov dword [0x410630], 3
mov dword [0x4105d8], 0x40ab88
mov dword [0x4105f0], 0x40ab98
mov dword [0x410608], 0x40aba8
mov dword [0x410620], 0x40abb8
mov dword [0x410638], 0x40abc8
mov dword [0x410420], 0xa
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x263c]
mov eax, dword [ecx + 0x2640]
mov dword [0x410428], edx
mov dword [0x41042c], eax
mov dword [0x4100f0], 3
mov ecx, dword [ebp + 0xc]
add ecx, 0x2644
mov dword [0x4100f8], ecx
mov dword [0x410300], 3
mov dword [0x410318], 3
mov dword [0x410330], 3
mov dword [0x410348], 3
mov dword [0x410360], 3
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0x208
push 0x40abd8
mov edx, dword [ebp + 8]
add edx, 0x10f8
push edx
call sub.MSVCR71.dll_wcscpy
add esp, 8
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x4044d7
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp + 8]
add eax, 0x10f8
push eax
call sub.MSVCR71.dll_wcscat
add esp, 8
jmp 0x4044f3
mov ecx, dword [ebp + 8]
add ecx, 0x820
push ecx
mov edx, dword [ebp + 8]
add edx, 0x10f8
push edx
call sub.MSVCR71.dll_wcscat
add esp, 8
mov eax, dword [ebp + 8]
add eax, 0x10f8
mov dword [0x410308], eax
push 0x40abdc
mov ecx, dword [ebp + 8]
add ecx, 0x1300
push ecx
call sub.MSVCR71.dll_wcscpy
add esp, 8
push 0x40abe0
mov edx, dword [ebp + 8]
add edx, 0x820
push edx
call sub.MSVCR71.dll_wcscmp
add esp, 8
test eax, eax
je 0x40454d
mov eax, dword [ebp + 8]
add eax, 0x820
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x1300
push ecx
call sub.MSVCR71.dll_wcscat
add esp, 8
mov edx, dword [ebp + 8]
add edx, 0x1300
mov dword [0x410320], edx
mov dword [0x410338], 0x40abf8
mov dword [0x410350], 0x40ac08
mov dword [0x410368], 0x40ac18
mov eax, 1
mov ecx, dword [ebp - 8]
call fcn.00409559
mov esp, ebp
pop ebp
ret
Function at 0x404d90
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
push eax
push 2
call fcn.00403650
add esp, 8
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0xc]
add edx, 0x618
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x404e0e
mov dword [ebp - 0x10], 0x4644
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x40aebc
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x404e20
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
push 4
call fcn.00403650
add esp, 8
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0xc]
add edx, 0x618
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x404e90
mov dword [ebp - 0x10], 0x654
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x40aec4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x404ea0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
push 3
call fcn.00403650
add esp, 8
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0xc]
add edx, 0x618
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x404f10
mov dword [ebp - 0x10], 0x53c
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x40aecc
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4054c0
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x410060]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x420], 0x208
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x40551b
mov eax, dword [ebp - 0x41c]
jmp 0x40558e
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.004055a0
add esp, 8
test eax, eax
je 0x405537
xor eax, eax
jmp 0x40558e
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00402b80
test eax, eax
jge 0x405553
xor eax, eax
jmp 0x40558e
push 0x40afb4
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00402b80
test eax, eax
jge 0x40556d
xor eax, eax
jmp 0x40558e
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00402b80
test eax, eax
jge 0x405589
xor eax, eax
jmp 0x40558e
mov eax, 1
mov ecx, dword [ebp - 4]
call fcn.00409559
mov esp, ebp
pop ebp
ret
Function at 0x405a90
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0
je 0x405aa4
cmp dword [ebp + 0xc], 0
jne 0x405aab
mov eax, 0x80070057
jmp 0x405b1d
mov eax, dword [ebp + 8]
mov word [eax], 0
mov ecx, dword [ebp + 0xc]
push ecx
push 1
call fcn.00403650
add esp, 8
lea edx, [ebp - 0xc]
push edx
push 0x20019
push 0
mov eax, dword [ebp + 0xc]
add eax, 0x618
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405b1a
mov dword [ebp - 0x10], 0x108
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.Service_Account
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x405b30
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
je 0x405b44
cmp dword [ebp + 0xc], 0
jne 0x405b4b
mov eax, 0x80070057
jmp 0x405bbb
mov eax, dword [ebp + 0xc]
push eax
push 1
call fcn.00403650
add esp, 8
lea ecx, [ebp - 8]
push ecx
push 2
push 0
mov edx, dword [ebp + 0xc]
add edx, 0x618
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405bb8
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR71.dll_wcslen
add esp, 4
shl eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 1
push 0
push str.Service_Account
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x406840
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x410060]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
push eax
push 2
call fcn.00403650
add esp, 8
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0xc]
add edx, 0x618
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40689a
jmp 0x4068e5
mov dword [ebp - 0xc], 0x208
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x40b044
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4068cc
jmp 0x4068e5
cmp dword [ebp + 8], 0
je 0x4068e5
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.MSVCR71.dll_wcscpy
add esp, 8
cmp dword [ebp - 0x10], 0
je 0x4068f5
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
call fcn.00409559
mov esp, ebp
pop ebp
ret
Function at 0x406be0
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push str.MSSQLServerADHelper
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
cmp dword [ebp - 4], 0
je 0x406c35
push 0
lea edx, [ebp - 0xc]
push edx
push 0
push 2
push 0
mov eax, dword [ebp + 0xc]
push eax
push 0
mov cx, word [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov esp, ebp
pop ebp
ret
Function at 0x1007c4d0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102658e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1030f644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x88]
push esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x1007c51b
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
add esp, 4
mov dword [ebp - 4], 0
lea edx, [edi + 0x68]
mov ebx, dword [ebp + 0xc]
mov edi, dword [edx + 0xc]
movzx eax, bl
xor eax, 0x811c9dc5
mov dword [ebp - 0x10], edx
imul ecx, eax, 0x1000193
movzx eax, bh
xor ecx, eax
movzx eax, byte [ebp + 0xe]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp + 0xf]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [edx + 0x18]
and ecx, eax
mov eax, dword [edi + ecx*8]
add ecx, ecx
lea edx, [ecx*4 + 4]
mov ecx, dword [edi + ecx*4]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
mov edx, dword [edx + 4]
nop
cmp ecx, edx
jne 0x1007c588
mov ecx, edx
jmp 0x1007c590
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + edi]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x1007c5a4
cmp dword [eax + 8], ebx
je 0x1007c5a0
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
jmp 0x1007c580
cmp eax, edx
jne 0x1007c5fd
mov edi, dword [edx]
lea eax, [ebp + 0xc]
push ecx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov ebx, dword [edi + 4]
push ecx
push ebx
push edi
call fcn.1007d090
mov edx, eax
mov ecx, 0xffffffe
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
sub ecx, eax
cmp ecx, 1
jae 0x1007c5db
push str.list_T__too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov ecx, dword [ebp - 0x10]
inc eax
mov dword [ecx + 8], eax
mov dword [edi + 4], edx
mov dword [ebx], edx
mov eax, dword [ecx + 4]
mov eax, dword [eax]
push eax
add eax, 8
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1007cc40
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
test eax, eax
je 0x1007c622
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1007d8a0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10265a60
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1030f644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov edi, dword [ebp + 0x10]
xor al, al
mov byte [ebp - 0xd], al
test edi, edi
je 0x1007d9f0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
add esi, 0x20
mov ebx, eax
push esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x1007d907
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
add esp, 4
mov edx, dword [ebp - 0x14]
movzx eax, bl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, bh
xor ecx, eax
movzx eax, byte [ebp - 0x16]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp - 0x15]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [edx + 0x18]
and ecx, eax
mov eax, dword [edx + 0xc]
mov edx, dword [edx + 4]
mov eax, dword [eax + ecx*8]
add ecx, ecx
lea esi, [ecx*4 + 4]
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + 0xc]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [edi + ecx*4]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x20], ecx
cmp ecx, edx
jne 0x1007d96f
mov ecx, edx
jmp 0x1007d983
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov ecx, dword [edi + 0xc]
mov edi, dword [ebp + 0x10]
mov ecx, dword [esi + ecx]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x1007d99c
cmp dword [eax + 8], ebx
je 0x1007d993
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
jmp 0x1007d967
cmp eax, edx
je 0x1007d99c
mov ebx, dword [eax + 0xc]
jmp 0x1007d99e
xor ebx, ebx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
test eax, eax
je 0x1007d9bd
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
add esp, 4
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x1007d9ed
push dword [ebp + 0x14]
mov ecx, ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1007bf70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10