joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40498c
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40ab38]
push dword [eax]
push str.1114_dev_39_gb646710__built_2023_08_28_23:23:37_UTC
push str.vlmcsd__s_n_nUsage:_n____s___options___n_nWhere:_n___a__csvlk__epid__tuse__epid__for__csvlk__n___r_012_t_tset_ePID_randomization_level__default_1__n___C__LCID__t_tuse_fixed__LCID__in_random_ePIDs_n___H__build__t_tuse_fixed__build__number_in_random_ePIDs_n___o_0123_t_tset_protection_level_against_clients_with_public_IP_addresses__default_0__n___O__v___a_____c___tuse_VPN_adapter__v__with_IPv4_address__a__and_CIDR__c__n___x__level__t_texit_if_warning__level__reached__default_0__n___L__address__:_port___tlisten_on_IP_address__address__with_optional__port__n___P__port__t_tset_TCP_port__port__for_subsequent__L_statements__default_1688__n___m__clients__t_tHandle_max.__clients__simultaneously__default_no_limit__n___s_t_t_tinstall_vlmcsd_as_an_NT_service._Ignores__e_n___S_t_t_tremove_vlmcsd_service._Ignores_all_other_options_n___U__username__t_trun_NT_service_as__username_._Must_be_used_with__s_n___W__password__t_toptional__password__for__U._Must_be_used_with__s_n___e_t_t_tlog_to_stdout_n___D_t_t_tdoes_nothing._Provided_for_compatibility_with_POSIX_versions_only_n___K_0123_t_tset_white_listing_level_for_KMS_IDs__default__K0__n___c0___c1_t_tdisable_enable_client_time_checking__default__c0__n___M0___M1_t_tdisable_enable_maintaining_clients__default__M0__n___E0___E1_t_tdisable_enable_start_with_empty_client_list__default__E0__ignored_if__M0__n___t__seconds__t_tdisconnect_clients_after__seconds__of_inactivity__default_30__n___d_t_t_tdisconnect_clients_after_each_request_n___k_t_t_tdont_disconnect_clients_after_each_request__default__n___N0___N1_t_tdisable_enable_NDR64_n___B0___B1_t_tdisable_enable_bind_time_feature_negotiation_n___p__file__t_twrite_pid_to__file__n___i__file__t_tuse_config_file__file__n___j__file__t_tuse_KMS_data_file__file__n___R__interval__t_trenew_activation_every__interval___default_1w__n___A__interval__t_tretry_activation_every__interval___default_2h__n___l__file__t_tlog_to__file__n___T0___T1_t_tdisable_enable_logging_with_time_and_date__default__T1__n___v_t_t_tlog_verbose_n___q_t_t_tdont_log_verbose__default__n___V_t_t_tdisplay_version_information_and_exit_n
call fcn.00404029
add esp, 0xc
push 0x57
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x405de9
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, dword [esp + 0xc]
mov ebx, eax
mov ecx, esi
shl ecx, 2
push ecx
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
mov dword [esp + 0x14], edi
pop ecx
test edi, edi
jne 0x405e2d
call fcn.00401dca
mov esi, dword [esp + 0xc]
mov edi, eax
mov dword [esp + 0x10], edi
and dword [esp + 0x14], 0
test esi, esi
jle 0x405e97
push ebp
mov ebp, edi
mov edi, dword [esp + 0x18]
sub ebp, ebx
push 0
push 0
push 0
push dword [ebx + ebp]
push 0xffffffffffffffff
push dword [ebx]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
push esi
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
test eax, eax
jne 0x405e6c
call fcn.00401dca
push 0
push 0
push esi
push eax
push 0xffffffffffffffff
mov dword [ebx + ebp], eax
push dword [ebx]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, dword [esp + 0x10]
inc edi
add ebx, 4
cmp edi, esi
jl 0x405e3f
mov edi, dword [esp + 0x14]
pop ebp
mov dword [0x40ab3c], esi
xor esi, esi
push 0x40a840
mov dword [0x40ab38], edi
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x405ed2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x427
jne 0x405ed2
mov byte [0x40a83f], 0
call fcn.00405a8f
mov esi, eax
push esi
call dword [sym.imp.msvcrt.dll_exit]
pop edi
pop esi
pop ebx
Function at 0x40609b
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [sym.imp.msvcrt.dll_strchr]
push edi
mov edi, ecx
push 0x3d
push edi
call esi
push 0x2f
push edi
mov ebp, eax
call esi
push 0x3a
push edi
mov ebx, eax
call esi
add esp, 0x18
mov dword [0x40aad0], edi
mov edx, eax
test ebp, ebp
je 0x4060d9
lea ecx, [ebp + 1]
mov byte [ebp], 0
mov dword [str.10.10.10.9], ecx
jmp 0x4060df
mov ecx, dword [str.10.10.10.9]
test ebx, ebx
je 0x4060ee
lea eax, [ebx + 1]
mov byte [ebx], 0
mov dword [0x40a948], eax
test edx, edx
je 0x4060fd
lea eax, [edx + 1]
mov byte [edx], 0
mov dword [0x40a944], eax
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
bswap eax
or esi, 0xffffffff
mov dword [0x40aaf4], eax
cmp eax, esi
jne 0x40612c
push dword [0x40a940]
push str.Fatal:__s_is_not_a_valid_IPv4_address_n
call fcn.00404029
pop ecx
pop ecx
push 0x57
call dword [sym.imp.msvcrt.dll_exit]
push 0xa
lea eax, [esp + 0x14]
push eax
push dword [0x40a948]
call dword [sym.imp.msvcrt.dll_strtol]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov byte [0x40aafc], al
cmp byte [ecx], 0
jne 0x406223
sub al, 8
cmp al, 0x16
ja 0x406223
mov ecx, dword [0x40a944]
call fcn.00401c48
mov dword [0x40aac4], eax
test eax, eax
jne 0x40617b
push 0x4f
push str.Fatal:_No_valid_time_span_specified_in_option___c._n
jmp 0x40611d
mov cl, byte [0x40aafc]
mov eax, dword [0x40aaf4]
shr esi, cl
not esi
mov ecx, esi
mov dword [0x40aabc], esi
and ecx, eax
lea edx, [eax + 1]
not esi
mov dword [0x40aad8], ecx
or esi, eax
mov dword [0x40aaf0], edx
mov dword [0x40aac8], esi
cmp eax, ecx
jbe 0x4061b5
cmp edx, esi
jb 0x406233
mov edi, dword [sym.imp.WS2_32.dll_inet_ntoa]
lea ebp, [ecx + 1]
bswap ebp
lea ebx, [esi - 2]
push ebp
bswap ebx
call edi
push eax
call dword [sym.imp.msvcrt.dll__strdup]
mov esi, eax
pop ecx
test esi, esi
jne 0x4061dd
call fcn.00401dca
mov esi, eax
push ebx
call edi
push eax
call dword [sym.imp.msvcrt.dll__strdup]
mov edi, eax
pop ecx
test edi, edi
jne 0x4061f5
call fcn.00401dca
mov edi, eax
push str.Fatal:_For_this_subnet_the_IPv4_address_must_be
call fcn.00404029
pop ecx
cmp ebp, ebx
jne 0x40620f
push esi
push 0x408e70
jmp 0x40611d
push edi
push esi
push str.between__s_and__s_n
call fcn.00404029
add esp, 0xc
jmp 0x406124
push dword [0x40a948]
push str.Fatal:___s_is_not_a_valid_CIDR_mask_between__8_and__30_n
jmp 0x40611d
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x406239
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Terminate process

Disassembly:
push esi
mov esi, ecx
call fcn.00401d3a
push eax
push str.Registry_read_error:__s_n
call fcn.00404029
pop ecx
pop ecx
push esi
call dword [sym.imp.msvcrt.dll_exit]
pop esi
Function at 0x406685
Capabilities:
Terminate process

Disassembly:
push 0
lea eax, [esp + 8]
push eax
push dword [esp + 0xc]
push edx
push dword [esp + 0x14]
push edx
push ecx
push dword [0x40aaec]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4066cc
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, esi
call fcn.00401d3a
push eax
push str.Fatal:_VPN_adapter_error:__s_n
call fcn.00404029
pop ecx
pop ecx
push esi
call dword [sym.imp.msvcrt.dll_exit]
pop esi
mov eax, dword [esp + 4]
ret

Function at 0x406772
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x40a9b4]
sub esp, 0x24
cmp byte [ecx], 0x2d
push esi
jne 0x406790
movzx eax, byte [ecx + 1]
test al, al
je 0x406910
call fcn.0040609b
call fcn.00406256
push 4
mov edx, 0x40aac0
mov dword [0x40aaec], eax
mov ecx, 0x22000c
call fcn.00406685
pop ecx
push 0x10
mov edx, 0x40aadc
mov ecx, 0x220008
call fcn.00406685
mov eax, dword [0x40aaf4]
lea edx, [ebp - 0x10]
bswap eax
mov dword [ebp - 0x10], eax
mov eax, dword [0x40aad8]
bswap eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x40aabc]
pop ecx
bswap eax
push 0xc
mov ecx, 0x220028
mov dword [ebp - 8], eax
call fcn.00406685
pop ecx
mov ecx, dword [0x40aaf4]
lea edx, [ebp - 0x20]
mov eax, ecx
bswap eax
mov dword [ebp - 0x20], eax
mov eax, dword [0x40aabc]
bswap eax
mov dword [ebp - 0x1c], eax
lea eax, [ecx + 1]
bswap eax
mov dword [ebp - 0x18], eax
mov ecx, 0x22001c
mov eax, dword [0x40aac4]
push 0x10
mov dword [ebp - 0x14], eax
call fcn.00406685
pop ecx
push 4
lea edx, [ebp - 4]
mov dword [ebp - 4], 1
mov ecx, 0x220018
call fcn.00406685
pop ecx
push dword [0x40aac0]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
test eax, eax
jne 0x406855
call fcn.00401dca
xor esi, esi
mov dword [0x40aacc], eax
push esi
push esi
push esi
push 0x4066d1
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x406893
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, esi
call fcn.00401d3a
push eax
push str.Fatal:_Unable_to_start_VPN_thread:__s_n
call fcn.00404029
pop ecx
pop ecx
push esi
call dword [sym.imp.msvcrt.dll_exit]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x40aad4]
push dword [0x40aae4]
push dword [0x40aae0]
push dword [0x40aadc]
push dword [0x40aaf8]
push str._s__u._u._u_device___s__started_n
call fcn.00404019
add esp, 0x18
call fcn.00405ff8
test eax, eax
jne 0x4068fe
cmp esi, 0x14
jae 0x4068e8
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
call fcn.00405ff8
test eax, eax
je 0x4068ce
test eax, eax
jne 0x4068fe
push dword [0x40a940]
push str.Warning:_IPv4_address__s_not_assigned_n
call fcn.00404029
jmp 0x40690e
push dword [0x40a940]
push str.IPv4_address__s_assigned_n
call fcn.00404019
pop ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40118e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4012a4
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
xor esi, esi
push esi
push esi
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40129a
cmp word [ebp - 0x210], 0x22
jne 0x401242
cmp word [ebp - 0x20e], 0x22
lea eax, [ebp - 0x20e]
je 0x401206
cmp word [eax], si
je 0x401226
push eax
call dword [sym.imp.USER32.dll_CharNextW]
cmp word [eax], 0x22
jne 0x4011f4
cmp word [eax], si
je 0x401226
xor ecx, ecx
mov word [eax], cx
jmp 0x401226
cmp word [eax], 0x5c
je 0x401230
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_CharPrevW]
lea ecx, [ebp - 0x210]
cmp eax, ecx
ja 0x401212
cmp word [eax], si
je 0x40123a
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20e]
jmp 0x40128d
lea eax, [ebp - 0x210]
cmp word [ebp - 0x210], si
je 0x401287
push eax
call dword [sym.imp.USER32.dll_CharNextW]
cmp word [eax], si
jne 0x401251
jmp 0x401273
cmp word [eax], 0x5c
je 0x40127d
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_CharPrevW]
lea ecx, [ebp - 0x210]
cmp eax, ecx
ja 0x40125f
cmp word [eax], si
je 0x401287
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x210]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0xb0f370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xb0f38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xb38074
push ecx
mov edi, eax
call fcn.00b23198
mov esi, eax
add esp, 8
test esi, esi
jne 0xb0f3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00b2302e
push esi
call fcn.00b22fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xb12850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xb128ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xb3d720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xb128ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00b231e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xb128ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xb3d720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xb1292a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00b24082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xb12957
mov word [eax], si
add eax, 2
push eax
call fcn.00b24030
add esp, 4
jmp 0xb12959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xb128ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xb128b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xb12ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xb13080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xb130c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xb38458
push ecx
call fcn.00b231e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00b231e1
add esp, 0x10
jmp 0xb130d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00b2320b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00b22dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00b13050
mov eax, dword [0xb3d728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xb1313b
push esi
call fcn.00b12fb0
add esp, 4
mov dword [0xb3d728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xb1314c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00b12ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xb16440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xb164b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xb1648e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xb16471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xb1647e
add edx, ecx
cmp ebx, edx
jb 0xb1648a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xb16467
xor ecx, ecx
jmp 0xb164a2
test eax, eax
jne 0xb16492
xor ecx, ecx
jmp 0xb164a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00b163c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xb168f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xb16921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xb16946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xb1696e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xb16993
push ecx
push esi
call fcn.00b164c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0xb17c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0xb17c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xb17c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xb17c38
add edx, eax
cmp ebx, edx
jb 0xb17c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xb17c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xb17c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0xb17c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xb17cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xb17c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xb17ca8
add edx, ecx
cmp ebx, edx
jb 0xb17cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xb17c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xb17f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00b24145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xb17ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0xb17fdd
lea eax, [esp + 0x18]
push eax
jmp 0xb17fe2
push 0xb3d720
call fcn.00b23fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xb17fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xb17f40
push 4
push ecx
push eax
call fcn.00b2443f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xb18310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00b24145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xb183ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0xb1838d
lea eax, [esp + 0x18]
push eax
jmp 0xb18392
push 0xb3d720
call fcn.00b23fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xb18360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xb17f40
push 4
push ecx
push eax
call fcn.00b2443f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xb19f20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0xb19fd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0xb19fcf
push ebx
push edi
push 0xb3d770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xb19fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xb3d770
push esi
call ebx
test eax, eax
je 0xb19fae
mov ebp, 3
cmp dword [0xb3d774], ebp
jne 0xb19faa
push 0x3e8
call edi
push 0xb3d770
push esi
call ebx
test eax, eax
jne 0xb19f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xb19fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xb19fbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret