joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4093d8
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x415b71
call fcn.00414110
sub esp, 0x40
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 0x10
mov dword [ebp - 0x18], ecx
lea ebx, [esi + 4]
jb 0x4093fa
mov eax, dword [ebx]
jmp 0x4093fc
mov eax, ebx
lea ecx, [ebp - 0x4c]
push ecx
push eax
call dword [sym.imp.MSVCR71.dll__stat]
test eax, eax
pop ecx
pop ecx
jne 0x409430
cmp dword [esi + 0x18], 0x10
jb 0x409417
mov eax, dword [ebx]
jmp 0x409419
mov eax, ebx
push 0x418838
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
xor esi, esi
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
jne 0x409434
xor al, al
jmp 0x4094ac
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
push edi
inc eax
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a1bc
cmp dword [ebp - 0x14], esi
mov edi, dword [ebp - 0x24]
mov dword [ebp - 4], esi
jbe 0x40947d
test edi, edi
jne 0x409458
xor eax, eax
jmp 0x40945d
mov eax, dword [ebp - 0x20]
sub eax, edi
push dword [ebp - 0x10]
sub eax, esi
push eax
lea ecx, [edi + esi]
push 1
push ecx
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
test eax, eax
je 0x4094bc
add esi, eax
cmp esi, dword [ebp - 0x14]
jb 0x409450
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR71.dll_fclose]
lea eax, [edi + esi]
mov byte [eax], 0
pop ecx
mov eax, edi
mov ecx, dword [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.0040910b
test eax, eax
jne 0x40948f
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.00408e68
mov al, bl
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
mov eax, dword [ebp - 0x10]
test byte [eax + 0xc], 0x20
je 0x40947d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x4094d2
mov esi, dword [ebx]
jmp 0x4094d4
mov esi, ebx
call dword [sym.imp.MSVCR71.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR71.dll_strerror]
push eax
push esi
push str.Failed_to_read_file__s:__s_n
call fcn.00411378
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 0x14
xor bl, bl
jmp 0x4094a1

Function at 0x40a478
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x422a68]
push esi
push edi
mov dword [ebp - 4], eax
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x20c], 0
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40a513
cmp eax, esi
ja 0x40a513
push 0x40
pop ecx
push dword [ebp + 8]
xor eax, eax
mov byte [ebp - 0x108], 0
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20c]
push eax
push 0x418938
lea eax, [ebp - 0x108]
push 0x103
push eax
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x14
test eax, eax
jle 0x40a513
mov byte [ebp + eax - 0x108], 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x40a515
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.00414215
leave
ret
Function at 0x40b3bc
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x415cc3
call fcn.00414110
sub esp, 0x24
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
mov esi, 0x104
push esi
lea ecx, [ebp - 0x20]
call fcn.0040a1bc
mov ebx, dword [ebp + 0xc]
and dword [ebp - 4], 0
cmp dword [ebx + 0x18], 0x10
lea edi, [ebx + 4]
jb 0x40b3f2
mov eax, dword [edi]
jmp 0x40b3f4
mov eax, edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x1c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x40b477
cmp eax, esi
jae 0x40b477
push esi
lea ecx, [ebp - 0x30]
call fcn.0040a1bc
mov edi, dword [ebp - 0x2c]
test edi, edi
mov esi, dword [ebp - 0x28]
mov byte [ebp - 4], 1
jne 0x40b426
xor eax, eax
jmp 0x40b42a
mov eax, esi
sub eax, edi
push eax
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
test eax, eax
je 0x40b446
test edi, edi
je 0x40b446
sub esi, edi
cmp eax, esi
jae 0x40b446
push edi
jmp 0x40b465
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40b462
push eax
push dword [ebp - 0x1c]
push str.Unable_to_get_long_path_name_for___s_:_GetLongPathName_failed__error__d__n
call fcn.004110c4
add esp, 0xc
push dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
call fcn.004014ff
lea ecx, [ebp - 0x30]
call fcn.00408e68
jmp 0x40b49d
cmp dword [ebx + 0x18], 0x10
jb 0x40b47f
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x419730
call fcn.004110c4
mov ecx, dword [ebp + 8]
add esp, 0xc
push ebx
call fcn.00401452
lea ecx, [ebp - 0x20]
call fcn.00408e68
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40b9f8
Capabilities:
Compare security identifiers

Disassembly:
mov eax, 0x415d47
call fcn.00414110
sub esp, 0x30
mov eax, dword [0x422a68]
push ebx
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
xor ebx, ebx
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x40ba56
call edi
cmp eax, 0x3f0
jne 0x40ba4f
lea eax, [ebp - 0x20]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40ba56
xor al, al
jmp 0x40bb36
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
push 0x400
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call fcn.0040a1bc
mov byte [ebp - 4], 1
push esi
mov esi, dword [ebp - 0x38]
cmp esi, ebx
mov dword [ebp - 0x28], ebx
jne 0x40ba7f
xor eax, eax
jmp 0x40ba84
mov eax, dword [ebp - 0x34]
sub eax, esi
lea ecx, [ebp - 0x28]
push ecx
push eax
push esi
push 2
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x40bab6
call edi
cmp eax, 0x7a
jne 0x40bb1f
lea ecx, [ebp - 0x3c]
call fcn.00408e68
push ebx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x3c]
call fcn.0040bb4c
jmp 0x40ba71
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40bb1f
xor edi, edi
cmp dword [esi], ebx
mov byte [ebp - 0x19], bl
jbe 0x40bb13
lea ebx, [esi + 4]
push dword [ebp - 0x24]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40bb0f
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x40baf6
jmp 0x40bb13
mov byte [ebp - 0x19], 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov bl, byte [ebp - 0x19]
lea ecx, [ebp - 0x3c]
call fcn.00408e68
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040ae02
mov al, bl
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00414215
leave
ret
Function at 0x40f2f5
Capabilities:
Get memory capacity

Disassembly:
cmp dword [0x422cd0], 0
jne 0x40f311
cmp dword [0x422cc8], 0
jne 0x40f30c
jmp fcn.0040f167
jmp fcn.0040f0af
jmp fcn.0040f1e1

Function at 0x40f92c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0xc], ecx
xor ebx, ebx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40f988
cmp eax, ebx
je 0x40f988
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x1c], 0x10
jb 0x40f971
mov ecx, dword [ecx + 8]
jmp 0x40f974
add ecx, 8
push eax
push ecx
push str.File_seek_error___s_:_error__d_n
call fcn.004110c4
add esp, 0xc
jmp 0x40fa2d
mov edx, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi + 4]
cmp ecx, ebx
push edi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 4], edx
jne 0x40f9a4
xor eax, eax
jmp 0x40f9a9
mov eax, dword [esi + 8]
sub eax, ecx
cmp edx, ebx
ja 0x40f9b1
cmp edi, ebx
jbe 0x40fa2b
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
cmp byte [0x422d78], bl
je 0x40f9c4
call fcn.0040ebca
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00410ff4
mov eax, dword [eax]
pop ecx
pop ecx
mov ecx, dword [esi + 4]
push ebx
lea edx, [ebp + 0x18]
push edx
push eax
push ecx
push dword [ebp + 0xc]
mov dword [ebp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40fa05
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x40fa2b
sub dword [ebp - 8], eax
sbb dword [ebp - 4], ebx
jne 0x40f9b7
cmp dword [ebp - 8], ebx
ja 0x40f9b7
jmp 0x40fa2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x1c], 0x10
jb 0x40fa19
mov ecx, dword [ecx + 8]
jmp 0x40fa1c
add ecx, 8
push eax
push ecx
push str.File_read_error___s_:_error__d_n
call fcn.004110c4
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fb38
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x41609b
call fcn.00414110
sub esp, 0x1b8
mov eax, dword [0x422a68]
push ebx
push 0x5c
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18c]
push eax
call fcn.00409058
push 0x41bacc
push eax
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00409d5e
add esp, 0x18
push ebx
push 1
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 2
call fcn.004010eb
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x40fb97
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x16c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x170], eax
jne 0x40fbc0
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004010eb
jmp 0x40fc8d
push esi
push edi
cmp byte [ebp + 0xc], bl
je 0x40fc59
test byte [ebp - 0x16c], 0x10
je 0x40fc59
push 2
mov edi, 0x41bad0
lea esi, [ebp - 0x140]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40fc59
push 3
mov edi, 0x41bad4
lea esi, [ebp - 0x140]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40fc59
push 0x5c
push dword [ebp + 8]
lea eax, [ebp - 0x1a8]
push eax
call fcn.00409058
lea ecx, [ebp - 0x140]
push ecx
push eax
lea eax, [ebp - 0x1c4]
push eax
mov byte [ebp - 4], 3
call fcn.00409d5e
push dword [ebp + 0xc]
mov byte [ebp - 4], 4
push eax
call fcn.0040fb38
add esp, 0x20
push ebx
push 1
lea ecx, [ebp - 0x1c4]
call fcn.004010eb
push ebx
push 1
lea ecx, [ebp - 0x1a8]
mov byte [ebp - 4], 2
call fcn.004010eb
lea eax, [ebp - 0x16c]
push eax
push dword [ebp - 0x170]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40fbc2
push dword [ebp - 0x170]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004010eb
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00414215
leave
ret
Function at 0x411120
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
sub eax, ebx
push esi
push edi
je 0x41113c
dec eax
je 0x411138
dec eax
jne 0x411141
push 4
pop esi
jmp 0x411144
push 2
jmp 0x411135
xor esi, esi
inc esi
jmp 0x411144
mov esi, dword [ebp - 4]
push 0x41c5d0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov edi, eax
cmp edi, ebx
jne 0x41116a
mov byte [0x422ded], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_report_messages_to_system_event_log:_RegisterEventSource_failed__error__d__n
jmp 0x4111d2
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push 1
push ebx
push 0x40000001
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x4111b9
call esi
cmp eax, 0x5de
mov byte [0x422ded], bl
jne 0x4111ac
push str.Unable_to_report_messages_to_system_event_log:_event_log_is_full_n
call fcn.004110c4
jmp 0x4111b8
push eax
push str.Unable_to_report_messages_to_system_event_log:_ReportEvent_failed__error__d__n
call fcn.004110c4
pop ecx
pop ecx
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
test eax, eax
jne 0x4111d9
mov byte [0x422ded], bl
call esi
push eax
push str.Unable_to_report_messages_to_system_event_log:_DeregisterEventSource_failed__error__d__n
call fcn.004110c4
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41143d
Capabilities:
Disable system features via registry on windows
Persist via windows service
Set registry value

Disassembly:
mov eax, 0x41630a
call fcn.00414110
sub esp, 0x30
mov eax, dword [0x422a68]
push esi
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
xor edi, edi
push edi
push 0x20006
push edi
push edi
push edi
mov esi, str.SYSTEMCurrentControlSetServicesEventLogApplicationJavaQuickStarterService
push esi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, edi
je 0x411490
push eax
push esi
push str.Unable_to_initialize_event_logging:_Could_not_create_the_registry_key_HKEY_LOCAL_MACHINE_s._Error__d_n
call fcn.004110c4
add esp, 0xc
jmp 0x411525
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.0040b34a
pop ecx
pop ecx
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 1
jae 0x4114b5
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc ecx
push ecx
push eax
push 2
push edi
push str.EventMessageFile
push dword [ebp - 0x34]
call esi
cmp eax, edi
je 0x4114da
push eax
push str.Unable_to_initialize_event_logging:_Could_not_set_the_event_message_file._Error__d_n
jmp 0x4114fe
push 4
lea eax, [ebp - 0x38]
push eax
push 4
push edi
push str.TypesSupported
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 7
call esi
cmp eax, edi
je 0x411507
push eax
push str.Unable_to_initialize_event_logging:_Could_not_set_the_supported_types._Error__d_n
call fcn.004110c4
pop ecx
pop ecx
jmp 0x41150e
mov byte [0x422ded], 1
push edi
lea ecx, [ebp - 0x2c]
push 1
call fcn.004010eb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004115fa
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.00414215
leave
ret

Function at 0x41153b
Capabilities:
Delete registry key

Disassembly:
mov eax, 0x41631c
call fcn.00414110
push ecx
push ecx
lea eax, [ebp - 0x14]
push eax
push 0x20006
push 0
push 0x41c374
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x411593
cmp eax, 2
jne 0x411581
push 0x41c3ac
push 0x41c3e4
push 4
call fcn.004113d7
add esp, 0xc
jmp 0x4115ee
push eax
push 0x41c418
push 0x41c450
call fcn.004110c4
jmp 0x41157c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push 0x41c494
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x4115e2
cmp eax, 2
jne 0x4115ca
push 0x41c4ac
push 0x41c4c4
push 0x41c4fc
push 4
call fcn.004113d7
jmp 0x4115df
push eax
push 0x41c534
push str.SYSTEMCurrentControlSetServicesEventLogApplication
push 0x41c588
call fcn.004110c4
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004115fa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x411954
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41639e
call fcn.00414110
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [ebp - 0x10], esi
mov dword [esi], eax
call fcn.00404019
xor ebx, ebx
push 0x16
pop ecx
xor eax, eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
lea edi, [esi + 0x30]
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
call fcn.0040b197
mov dword [esi + 0x88], eax
call fcn.0040b197
shl eax, 4
lea ecx, [esi + 0x94]
mov dword [esi + 0x8c], eax
mov byte [esi + 0x90], bl
mov byte [esi + 0x91], bl
call fcn.00404019
lea eax, [esi + 0xb0]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov ecx, dword [ebp - 0xc]
lea eax, [esi + 0xc0]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov byte [esi + 0xd0], bl
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xd8], ebx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xe4], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4122bc
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x4163d4
call fcn.00414110
push ecx
push ecx
lea eax, [ebp - 0x14]
push eax
push 0x20006
push 0
push dword [0x4229a0]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x412317
cmp eax, 2
jne 0x412304
push dword [0x4229a0]
push str.Registry_key_HKEY_LOCAL_MACHINE_s_does_not_exist_n
push 4
call fcn.004113d7
add esp, 0xc
jmp 0x412374
push eax
push dword [0x4229a0]
push str.Could_not_open_the_registry_key_HKEY_LOCAL_MACHINE_s._Error__d_n
call fcn.004110c4
jmp 0x4122ff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push 0x41d144
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x412368
cmp eax, 2
jne 0x41234f
push 0x41d150
push dword [0x4229a0]
push str.Registry_value_HKEY_LOCAL_MACHINE_s_s_does_not_exist_n
push 4
call fcn.004113d7
jmp 0x412365
push eax
push str.jqs_sun.com
push dword [0x4229a0]
push str.Could_not_delete_the_registry_value_HKEY_LOCAL_MACHINE_s_s._Error__d_n
call fcn.004110c4
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004115fa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x412380
Capabilities:
Modify service
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
push 2
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x4123c7
cmp byte [ebp + 8], 0
mov esi, 0x41d49c
jne 0x4123ab
mov esi, 0x41d4a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Unable_to__s_service:_OpenSCManager_failed__error__d__n
call fcn.00411378
add esp, 0xc
xor al, al
jmp 0x412500
push ebx
push 0xf01ff
push 0x41d4e4
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 4], ebx
jne 0x41241c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x412402
push 0x41d4fc
push 0x41d510
call fcn.00411378
pop ecx
pop ecx
jmp 0x412415
push eax
push 0x41d52c
push str.Unable_to_open__s_service:_OpenService_failed__error__d__n
call fcn.00411378
add esp, 0xc
xor al, al
jmp 0x4124ff
push edi
push edi
push edi
xor eax, eax
cmp byte [ebp + 8], al
push edi
push edi
push edi
sete al
push edi
push 0xffffffffffffffff
lea eax, [eax + eax + 2]
push eax
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x41245e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 8], 0
mov ecx, str.enable
jne 0x412455
mov ecx, str.disable
push eax
push ecx
push str.Unable_to__s_service:_ChangeServiceConfig_failed__error__d__n
jmp 0x41240d
cmp byte [ebp + 8], 0
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
je 0x41249c
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x4124d0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0x3e8
jmp 0x41248a
cmp dword [ebp - 0x20], 2
jne 0x4124d0
push edi
call ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x412484
jmp 0x4124d0
lea eax, [ebp - 0x24]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4124d0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0x3e8
jmp 0x4124c0
cmp dword [ebp - 0x20], 3
jne 0x4124d0
push edi
call ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4124ba
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 4]
mov bl, 1
call esi
test eax, eax
je 0x4124ed
cmp byte [ebp + 8], 0
je 0x412504
cmp dword [ebp - 0x3c], 4
je 0x41250a
xor bl, bl
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 4]
call esi
mov al, bl
pop ebx
pop edi
pop esi
leave
ret
cmp dword [ebp - 0x3c], 1
jne 0x4124eb
mov bl, 1
jmp 0x4124ed
Function at 0x412882
Capabilities:
Set registry value

Disassembly:
mov eax, 0x416432
call fcn.00414110
sub esp, 0x64
mov eax, dword [0x422a68]
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
xor esi, esi
push esi
push 0x20006
push esi
push esi
push esi
push dword [0x4229a0]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
je 0x4128d9
push eax
push dword [0x4229a0]
push str.Could_not_create_the_registry_key_HKEY_LOCAL_MACHINE_s._Error__d_n
call fcn.004110c4
add esp, 0xc
jmp 0x412977
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
push str..._lib_deploy_jqs_ff
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], esi
call fcn.004014ff
push esi
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 1
call fcn.0040b4b7
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 2
call fcn.0040b3bc
add esp, 0x14
push esi
push 1
lea ecx, [ebp - 0x70]
call fcn.004010eb
push esi
push 1
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.004010eb
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x412938
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
inc ecx
push ecx
push eax
push 2
push esi
push 0x41d084
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, esi
je 0x412960
push eax
push str.Could_not_add_Firefox_extensions_directory._Error__d_n
call fcn.00411378
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x2c]
push 1
call fcn.004010eb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004115fa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.00414215
leave
ret
Function at 0x41298c
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [ebp - 8], eax
jne 0x4129bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_uninstall_service:_OpenSCManager_failed__error__d__n
call fcn.00411378
pop ecx
pop ecx
xor al, al
leave
ret
push edi
push 0xf01ff
push str.JavaQuickStarterService
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
mov dword [ebp - 4], edi
jne 0x412a11
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x4129f7
push 0x41d624
push str._s_service_does_not_exist_n
call fcn.00411378
pop ecx
pop ecx
jmp 0x412a0a
push eax
push 0x41d654
push str.Could_not_open__s_service:_OpenService_failed__error__d__n
call fcn.00411378
add esp, 0xc
xor al, al
jmp 0x412aa2
push esi
lea eax, [ebp - 0x24]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x412a56
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
mov ebx, 0x3e8
push ebx
call esi
lea eax, [ebp - 0x24]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x412a4f
cmp dword [ebp - 0x20], 3
jne 0x412a55
push ebx
call esi
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call edi
test eax, eax
jne 0x412a3f
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x412a80
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41d6a4
push str.Unable_to_remove__s_service:_DeleteService_failed__error__d__n
call fcn.00411378
add esp, 0xc
xor al, al
jmp 0x412aa1
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 4]
call esi
call fcn.0041153b
call fcn.004127d6
call fcn.004122bc
mov al, 1
pop esi
pop edi
leave
ret