joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009c73
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6f4
mov eax, dword [0x1035030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push 0x48e
mov word [ebp - 0x69c], ax
lea eax, [ebp - 0x69a]
push ebx
push eax
call sub.msvcrt.dll_memset
push 0x40
lea eax, [ebp - 0x6f0]
push ebx
push eax
mov dword [ebp - 0x6f4], ebx
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x6b0], ebx
lea edi, [ebp - 0x6ac]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x24
stosd dword es:[edi], eax
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
push 0x25
push ebx
mov dword [ebp - 0x6a0], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, ebx
jge 0x1009d38
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1009e91
test byte [eax + 0x1c], 1
je 0x1009e91
push edi
push 0x1002040
push 0xe4
jmp 0x1009df1
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x10026c8
lea eax, [ebp - 0x69c]
push 0x248
push eax
call fcn.01006a35
mov edi, eax
add esp, 0x14
cmp edi, ebx
jge 0x1009d86
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1009e91
test byte [eax + 0x1c], 1
je 0x1009e91
push edi
push 0x1002040
push 0xe5
jmp 0x1009df1
lea eax, [ebp - 0x6b0]
push eax
lea eax, [ebp - 0x6f4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x69c]
push eax
push ebx
mov dword [ebp - 0x6f4], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1009e01
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1009dca
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1009e91
test byte [eax + 0x1c], 1
je 0x1009e91
push edi
push 0x1002040
push 0xe6
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x1009e91
push 0x927c0
push dword [ebp - 0x6b0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x6b0]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x1009e53
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1009e88
test byte [eax + 0x1c], 2
je 0x1009e88
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1035014]
push 0x1002040
push 0xe7
jmp 0x1009e7d
cmp dword [ebp - 0x6a0], ebx
je 0x1009e8f
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1009e88
test byte [eax + 0x1c], 2
je 0x1009e88
push dword [ebp - 0x6a0]
push 0x1002040
push 0xe8
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
mov edi, 0x80004005
jmp 0x1009e91
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x6ac], ebx
je 0x1009ead
push dword [ebp - 0x6ac]
call esi
mov dword [ebp - 0x6ac], ebx
cmp dword [ebp - 0x6b0], ebx
je 0x1009ebd
push dword [ebp - 0x6b0]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01011f27
leave
ret 4
Function at 0x100cb4e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x1035030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push eax
mov ebx, 0x80070057
call sub.msvcrt.dll_memset
add esp, 0xc
test esi, esi
je 0x100cc09
test edi, edi
je 0x100cc09
cmp dword [ebp + 0x18], 0
je 0x100cc09
push dword [ebp + 0xc]
lea eax, [ebp - 0x84]
push 0x1002c60
push 0x40
push eax
call fcn.01006a35
mov ebx, eax
add esp, 0x10
test ebx, ebx
jge 0x100cbe0
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x100cc2d
test byte [eax + 0x1c], 1
je 0x100cc2d
push ebx
push 0x1002b5c
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x100cc2d
push dword [ebp + 0x18]
lea eax, [ebp - 0x84]
push edi
push dword [ebp + 0x10]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jle 0x100cc05
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x100cc2d
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x100cc2d
test byte [eax + 0x1c], 1
je 0x100cc2d
push 0x1002b5c
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01011f27
leave
ret 0x14
Function at 0x100f800
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1035030]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
push ebx
push esi
push edi
xor eax, eax
push 7
mov word [ebp - 0x24], ax
pop ecx
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
xor esi, esi
stosw word es:[edi], ax
mov dword [ebp - 0x28], esi
mov edi, 0x1035014
mov ebx, 0x1002b5c
cmp edx, esi
jne 0x100f880
push dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push 0x1003318
push 0x10
push eax
call fcn.01006a35
add esp, 0x10
cmp dword [ebp + 0xc], esi
jge 0x100f878
mov ecx, dword [0x1035014]
cmp ecx, edi
je 0x100f878
test byte [ecx + 0x1c], 2
je 0x100f878
push eax
push ebx
push 0xee
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01004eb4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], eax
jmp 0x100f883
mov dword [ebp - 0x28], edx
push 0x10032c8
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 0x2c], eax
cmp eax, esi
jne 0x100f8cc
mov eax, dword [0x1035014]
cmp eax, edi
je 0x100f93a
test byte [eax + 0x1c], 1
je 0x100f93a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1035014]
push ebx
push 0xef
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x100f93a
mov ecx, dword [ebp - 0x28]
neg ecx
sbb ecx, ecx
push esi
lea edx, [ebp - 0x28]
and ecx, edx
push ecx
xor ecx, ecx
cmp dword [ebp - 0x28], esi
push esi
setne cl
movzx ecx, cx
push ecx
xor ecx, ecx
cmp dword [ebp + 0xc], esi
push esi
push dword [ebp + 8]
setl cl
push esi
dec ecx
and ecx, 3
inc ecx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x100f931
mov eax, dword [0x1035014]
cmp eax, edi
je 0x100f931
test byte [eax + 0x1c], 1
je 0x100f931
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1035014]
push ebx
push 0xf0
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01011f27
leave
ret 0xc
Function at 0x1011f0d
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x10325e8
call fcn.01012314
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x1036720
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1011cc4
cmp eax, esi
jne 0x1011cb7
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1011cc7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1011c9e
xor esi, esi
inc esi
mov eax, dword [0x103671c]
cmp eax, esi
jne 0x1011cda
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1011d09
mov eax, dword [0x103671c]
test eax, eax
jne 0x1011d03
mov dword [0x103671c], esi
push 0x1001404
push 0x10013f8
call fcn.01011c03
pop ecx
pop ecx
test eax, eax
je 0x1011d09
jmp 0x1011e31
mov dword [0x103529c], esi
mov eax, dword [0x103671c]
cmp eax, esi
jne 0x1011d2d
push 0x10013f4
push 0x10013e8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x103671c], 2
test ebx, ebx
jne 0x1011d39
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x103672c], 0
je 0x1011d5d
push 0x103672c
call fcn.01012289
pop ecx
test eax, eax
je 0x1011d5d
push 0
push 2
push 0
call dword [0x103672c]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1011db9
test al, al
je 0x1011d77
cmp dword [ebp - 0x1c], 0
jne 0x1011db9
mov al, byte [esi]
test al, al
je 0x1011d87
cmp al, 0x20
ja 0x1011d87
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1011d77
test byte [ebp - 0x3c], 1
je 0x1011d93
movzx eax, word [ebp - 0x38]
jmp 0x1011d96
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1035298], eax
cmp dword [0x103528c], 0
jne 0x1011e0d
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1011dc8
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x1011ddb
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1011d64
cmp dword [0x103529c], 0
jne 0x1011e1c
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1035298]
jmp 0x1011e3d
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01012359
ret
call fcn.01012461
jmp 0x1011c64
Function at 0x1012aaa
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x18]
add eax, eax
push ebx
xor ebx, ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ebx
mov dword [ebp + 0x18], ebx
cmp eax, ebx
je 0x1012bbd
cmp word [eax], bx
je 0x1012bbd
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x1012ba2
cmp word [edi], bx
je 0x1012ba2
cmp dword [ebp + 0x14], ebx
jne 0x1012b16
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1012be1
test byte [eax + 0x1c], 1
je 0x1012be1
push 0x10035d0
push 0xc
jmp 0x1012bd6
push esi
lea ecx, [ebp + 0x18]
push ecx
mov ecx, dword [0x10355d4]
neg ecx
sbb ecx, ecx
and ecx, 0x100
add ecx, 0x20019
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x1012b8f
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
push ebx
push edi
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, ebx
jne 0x1012b8f
cmp dword [ebp - 4], 1
je 0x1012b8f
mov eax, dword [0x1035014]
push 0xd
pop esi
cmp eax, 0x1035014
je 0x1012b8f
test byte [eax + 0x1c], 1
je 0x1012b8f
push dword [ebp - 4]
push edi
push 0x10035d0
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004f4d
cmp dword [ebp + 0x18], ebx
je 0x1012b9d
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
jmp 0x1012be4
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1012be1
test byte [eax + 0x1c], 1
je 0x1012be1
push 0x10035d0
push 0xb
jmp 0x1012bd6
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1012be1
test byte [eax + 0x1c], 1
je 0x1012be1
push 0x10035d0
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
push 0x57
pop eax
pop edi
pop ebx
leave
ret 0x14
Function at 0x1012bef
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], edi
cmp eax, edi
je 0x1012d04
cmp word [eax], di
je 0x1012d04
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
je 0x1012ce9
cmp word [ebx], di
je 0x1012ce9
cmp dword [ebp + 0x14], edi
jne 0x1012c5b
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1012d28
test byte [eax + 0x1c], 1
je 0x1012d28
push 0x10035d0
push 0x16
jmp 0x1012d1d
push esi
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [0x10355d4]
neg ecx
sbb ecx, ecx
and ecx, 0x100
add ecx, 0x20019
push ecx
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x1012cd6
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 2
je 0x1012cd6
cmp dword [ebp - 8], 4
je 0x1012cd6
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1012cd3
test byte [eax + 0x1c], 1
je 0x1012cd3
push dword [ebp - 8]
push ebx
push 0x10035d0
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004f4d
push 0xd
pop esi
cmp dword [ebp - 4], edi
je 0x1012ce4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
jmp 0x1012d2b
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1012d28
test byte [eax + 0x1c], 1
je 0x1012d28
push 0x10035d0
push 0x15
jmp 0x1012d1d
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1012d28
test byte [eax + 0x1c], 1
je 0x1012d28
push 0x10035d0
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
push 0x57
pop eax
pop edi
pop ebx
leave
ret 0x10
Function at 0x1012d36
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x1012e2a
cmp word [eax], di
je 0x1012e2a
mov ebx, dword [ebp + 0x14]
cmp ebx, edi
je 0x1012e0f
cmp word [ebx], di
je 0x1012e0f
push esi
push edi
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [0x10355d4]
push dword [ebp + 0x10]
neg ecx
sbb ecx, ecx
and ecx, 0x100
add ecx, 0x20006
push ecx
push edi
push edi
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, edi
je 0x1012dbd
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1012dfc
test byte [eax + 0x1c], 1
je 0x1012dfc
push esi
push dword [ebp + 0xc]
push 0x10035d0
push 0x1a
jmp 0x1012df1
push 4
lea eax, [ebp + 0x18]
push eax
push 4
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, edi
je 0x1012dfc
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1012dfc
test byte [eax + 0x1c], 1
je 0x1012dfc
push esi
push ebx
push 0x10035d0
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004f4d
cmp dword [ebp - 4], edi
je 0x1012e0a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
jmp 0x1012e51
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1012e4e
test byte [eax + 0x1c], 1
je 0x1012e4e
push 0x10035d0
push 0x19
jmp 0x1012e43
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1012e4e
test byte [eax + 0x1c], 1
je 0x1012e4e
push 0x10035d0
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
push 0x57
pop eax
pop edi
pop ebx
leave
ret 0x14
Function at 0x1012e5c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 8
mov dword [ebp - 4], edi
cmp eax, edi
je 0x1012f70
cmp word [eax], di
je 0x1012f70
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
je 0x1012f55
cmp word [ebx], di
je 0x1012f55
cmp dword [ebp + 0x14], edi
jne 0x1012ec8
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1012f94
test byte [eax + 0x1c], 1
je 0x1012f94
push 0x10035d0
push 0x1e
jmp 0x1012f89
push esi
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [0x10355d4]
neg ecx
sbb ecx, ecx
and ecx, 0x100
add ecx, 0x20019
push ecx
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x1012f42
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, edi
jne 0x1012f42
cmp dword [ebp - 8], 0xb
je 0x1012f42
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1012f3f
test byte [eax + 0x1c], 1
je 0x1012f3f
push dword [ebp - 8]
push ebx
push 0x10035d0
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004f4d
push 0xd
pop esi
cmp dword [ebp - 4], edi
je 0x1012f50
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
jmp 0x1012f97
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1012f94
test byte [eax + 0x1c], 1
je 0x1012f94
push 0x10035d0
push 0x1d
jmp 0x1012f89
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1012f94
test byte [eax + 0x1c], 1
je 0x1012f94
push 0x10035d0
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
push 0x57
pop eax
pop edi
pop ebx
leave
ret 0x10
Function at 0x1012fa2
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x1013096
cmp word [eax], di
je 0x1013096
mov ebx, dword [ebp + 0x14]
cmp ebx, edi
je 0x101307b
cmp word [ebx], di
je 0x101307b
push esi
push edi
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [0x10355d4]
push dword [ebp + 0x10]
neg ecx
sbb ecx, ecx
and ecx, 0x100
add ecx, 0x20006
push ecx
push edi
push edi
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, edi
je 0x1013029
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1013068
test byte [eax + 0x1c], 1
je 0x1013068
push esi
push dword [ebp + 0xc]
push 0x10035d0
push 0x22
jmp 0x101305d
push 8
lea eax, [ebp + 0x18]
push eax
push 0xb
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, edi
je 0x1013068
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1013068
test byte [eax + 0x1c], 1
je 0x1013068
push esi
push ebx
push 0x10035d0
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004f4d
cmp dword [ebp - 4], edi
je 0x1013076
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
jmp 0x10130bd
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x10130ba
test byte [eax + 0x1c], 1
je 0x10130ba
push 0x10035d0
push 0x21
jmp 0x10130af
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x10130ba
test byte [eax + 0x1c], 1
je 0x10130ba
push 0x10035d0
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
push 0x57
pop eax
pop edi
pop ebx
leave
ret 0x18

Function at 0x10130c8
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x1013154
cmp word [eax], di
je 0x1013154
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x1013139
cmp word [esi], di
je 0x1013139
push ebx
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [0x10355d4]
neg ecx
sbb ecx, ecx
and ecx, 0x100
add ecx, 0x20006
push ecx
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp ebx, edi
jne 0x1013126
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
cmp dword [ebp - 4], edi
je 0x1013134
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
jmp 0x101317b
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1013178
test byte [eax + 0x1c], 1
je 0x1013178
push 0x10035d0
push 0x25
jmp 0x101316d
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1013178
test byte [eax + 0x1c], 1
je 0x1013178
push 0x10035d0
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
push 0x57
pop eax
pop edi
pop esi
leave
ret 0xc
Function at 0x1013831
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1035030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
call sub.msvcrt.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x1003710
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
call esi
test eax, eax
je 0x101389d
mov dword [ebp - 0x214], 1
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x10036c0
call esi
test eax, eax
je 0x10138b3
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x214], 0
je 0x10138cc
test ebx, ebx
jne 0x10138dc
mov dword [ebp - 0x210], 1
jmp 0x10138e6
test ebx, ebx
je 0x10138e6
mov dword [ebp - 0x210], 2
jmp 0x10138e6
mov dword [ebp - 0x210], 3
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01011f27
leave
ret

Function at 0x1013b08
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 6
pop ecx
push 0x80000001
xor esi, esi
push 0x100379c
xor eax, eax
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
push esi
rep stosd dword es:[edi], eax
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
jne 0x1013b79
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1013c0c
test byte [eax + 0x1c], 1
je 0x1013c0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1035014]
push 0x10035d0
push 0x77
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x1013c0c
push 4
push 0x100378c
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
jne 0x1013baf
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1013bfc
test byte [eax + 0x1c], 1
je 0x1013bfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10035d0
push 0x78
jmp 0x1013bde
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1013bf0
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1013bfc
test byte [eax + 0x1c], 1
je 0x1013bfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10035d0
push 0x79
mov eax, dword [0x1035014]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x1013bfc
xor eax, eax
cmp dword [ebp - 0x1c], 4
sete al
mov dword [ebp - 4], eax
cmp edi, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x1013c09
push edi
call esi
push ebx
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1013e44
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x1013fae
cmp word [esi], bx
je 0x1013fae
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x1013f93
cmp word [eax], bx
je 0x1013f93
mov edi, dword [ebp + 0x18]
cmp edi, ebx
je 0x1013f78
cmp word [edi], bx
je 0x1013f78
lea eax, [ebp - 8]
push eax
push 0x7fffffff
push edi
call fcn.01006a94
cmp eax, ebx
jge 0x1013ed4
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x1013ecc
test byte [ecx + 0x1c], 1
je 0x1013ecc
push eax
push 0x10035d0
push 0x11
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01004eb4
push 0x57
pop esi
jmp 0x1013f66
push ebx
lea eax, [ebp - 4]
push eax
mov eax, dword [0x10355d4]
push dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 0x100
add eax, 0x20006
push eax
push ebx
push ebx
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
je 0x1013f22
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1013f66
test byte [eax + 0x1c], 1
je 0x1013f66
push esi
push dword [ebp + 0xc]
push 0x10035d0
push 0x12
jmp 0x1013f5b
mov eax, dword [ebp - 8]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
je 0x1013f66
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1013f66
test byte [eax + 0x1c], 1
je 0x1013f66
push esi
push edi
push 0x10035d0
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004f4d
cmp dword [ebp - 4], ebx
je 0x1013f74
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1013fd5
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1013fd2
test byte [eax + 0x1c], 1
je 0x1013fd2
push 0x10035d0
push 0x10
jmp 0x1013fc7
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1013fd2
test byte [eax + 0x1c], 1
je 0x1013fd2
push 0x10035d0
push 0xf
jmp 0x1013fc7
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1013fd2
test byte [eax + 0x1c], 1
je 0x1013fd2
push 0x10035d0
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
push 0x57
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x14