joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d5153aa
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x6d5153f8
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x6d515409
push 0xd
pop eax
jmp 0x6d515433
push edi
xor edi, edi
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x6d51540c
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x6d5158d1
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x6d51e944]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.6d518cc6
mov ebx, eax
cmp ebx, esi
je 0x6d515944
lea ecx, [ebp - 0x74]
call fcn.6d514b0c
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d5189ea
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x6d51595c
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.6d5158d1
cmp eax, esi
jne 0x6d51598e
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x6d51594c
lea ecx, [ebp - 0x74]
call fcn.6d514b0c
push dword [ebp - 0x78]
mov ecx, edi
call fcn.6d514a9d
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.6d514b0c
mov eax, esi
jmp 0x6d51592a
Function at 0x6d5189ea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d51e944]
jne 0x6d5189f4
repz ret
jmp fcn.6d519069

Function at 0x6d518cc6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x6d518cd5
pop dword [ebp - 0x24]
mov eax, 0x7a170ba4
add eax, 0xf33a8131
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x7894d8e
sub dword [ebp - 0x34], 0xb9370843
mov dword [ebp - 0x30], 0x938770ce
sub dword [ebp - 0x30], 0x61542489
mov dword [ebp - 0x2c], 0xdce3e1fa
sub dword [ebp - 0x2c], 0x90979dcc
mov dword [ebp - 0x28], 0xc773b7aa
add dword [ebp - 0x28], 0x388c4856
lea eax, [ebp - 0x34]
push eax
mov eax, 0x6fab5b19
add eax, 0xfda6450b
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xaffa66aa
sub dword [ebp - 0x34], 0x3b87fd54
mov dword [ebp - 0x30], 0x42782863
sub dword [ebp - 0x30], 0x10bc6ee
mov dword [ebp - 0x2c], 0x47f1ae55
sub dword [ebp - 0x2c], 0xe48241e9
mov dword [ebp - 0x28], 0x171ea044
sub dword [ebp - 0x28], 0x171ea044
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x512c992f
sub eax, 0xe3daf90f
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x36fbf
push 0
call eax
mov ecx, 0xf080d172
sub ecx, 0xf0808920
xor ebx, ebx
add ebx, eax
mov edi, 0xf3c70bfa
add edi, 0x798b0806
add edi, dword [ebp - 0x24]
mov edx, 0x150679be
sub edx, 0x1c62b77c
mov esi, dword [edi]
xor dword [ebp - 0x18], 0xc1f5bf18
add esi, edx
add dword [ebp - 0x1c], 0xc0b0162c
mov dword [ebx], esi
add dword [ebp - 0x1c], 0x78a93bf6
add ebx, 0xa34bff88
add ebx, 0x5cb4007c
add edi, 0xc738bd01
add edi, 0x38c74303
loop 0x6d518df9
add eax, 0x617891d7
sub eax, 0x61777dbc
xor ebx, ebx
add ebx, eax
add eax, 0xe1727df7
add eax, 0x1e8d820e
mov ecx, 0x4302e23b
add ecx, 0x2a4e1dc5
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x10096cb
Capabilities:
Inspect load icon resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
push 1
push 0x261
push 0x1001da4
lea ecx, [ebp - 0x24]
call fcn.0101a2a6
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esi + 4], edi
call fcn.01012771
mov dword [ebp - 0x24], eax
test eax, eax
mov eax, 0x265
jge 0x100970c
mov word [ebp - 0x1e], ax
jmp 0x1009790
cmp dword [ebp - 0x24], 0
mov word [ebp - 0x20], ax
jne 0x100971d
mov dword [esi + 0x14], 1
push esi
call fcn.0100959b
mov dword [ebp - 0x24], eax
test eax, eax
mov eax, 0x26b
jl 0x1009703
push 0x1001d88
mov word [ebp - 0x20], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 8], eax
test eax, eax
jne 0x1009754
call fcn.0101df05
mov dword [ebp - 0x24], eax
mov eax, 0x26e
jmp 0x1009703
and dword [ebp - 0x24], 0
push 0x9b
mov eax, 0x26e
push edi
mov word [ebp - 0x20], ax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esi + 0x10], eax
test eax, eax
jne 0x1009783
call fcn.0101df05
mov dword [ebp - 0x24], eax
mov eax, 0x273
jmp 0x1009703
and dword [ebp - 0x24], 0
mov eax, 0x273
mov word [ebp - 0x20], ax
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
call fcn.0101a57c
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x100a670
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
xor esi, esi
inc esi
push esi
push 0xa19
push 0x1001e98
lea ecx, [ebp - 0x30]
call fcn.0101a2a6
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, 0xa21
cmp edi, ebx
jne 0x100a6b2
mov dword [ebp - 0x30], 0x80070057
mov word [ebp - 0x2a], ax
jmp 0x100a83b
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x2c], ax
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, ebx
jne 0x100a6d4
call fcn.0101df05
mov dword [ebp - 0x30], eax
mov eax, 0xa27
jmp 0x100a6a9
mov ecx, 0xa27
mov word [ebp - 0x2c], cx
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 0x30], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x100a704
call fcn.0101df05
mov dword [ebp - 0x30], eax
mov eax, 0xa2a
jmp 0x100a828
mov eax, 0xa2a
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x2c], ax
cmp dword [ebp - 4], esi
jne 0x100a726
add eax, 5
mov dword [edi], esi
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x2c], ax
jmp 0x100a82c
cmp dword [ebp - 4], esi
mov dword [ebp + 8], esi
jle 0x100a812
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
lea esi, [eax + ecx*4]
mov ecx, dword [esi]
mov eax, ecx
lea edx, [eax + 2]
mov bx, word [eax]
inc eax
inc eax
test bx, bx
jne 0x100a742
sub eax, edx
sar eax, 1
mov dword [ebp - 0xc], eax
cmp eax, 9
jbe 0x100a78e
push 9
push 0x1001cc0
push ecx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x100a78e
mov dword [edi], 2
mov eax, dword [esi]
add eax, 0x12
push eax
lea eax, [edi + 4]
push eax
call fcn.0101b793
mov dword [ebp - 0x30], eax
test eax, eax
mov eax, 0xa39
jmp 0x100a7fb
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x1001cd4
push dword [esi]
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x100a7ab
mov dword [edi], 3
jmp 0x100a801
push 0x1001ce8
push dword [esi]
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x100a7c2
mov dword [edi], 4
jmp 0x100a801
cmp dword [ebp - 0xc], 0xb
jbe 0x100a84f
push 0xb
push 0x1001d08
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x100a84f
mov eax, dword [esi]
add eax, 0x16
push eax
lea eax, [edi + 8]
push eax
call fcn.0101b793
mov dword [ebp - 0x30], eax
test eax, eax
mov eax, 0xa45
jl 0x100a828
mov word [ebp - 0x2c], ax
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jl 0x100a732
xor ebx, ebx
cmp dword [edi], 2
jne 0x100a82c
cmp dword [edi + 4], ebx
jne 0x100a82c
mov eax, 0xa51
mov dword [ebp - 0x30], 0x80070057
mov word [ebp - 0x2a], ax
cmp dword [ebp - 8], 0
je 0x100a83b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
call fcn.0101a57c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
mov eax, 0xa49
jmp 0x100a821
Function at 0x100acd1
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push 1
push 0xbb5
push 0x1001efc
lea ecx, [ebp - 0x28]
call fcn.0101a2a6
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, 0xbbb
cmp dword [ebp + 8], ebx
jne 0x100ad0e
mov dword [ebp - 0x28], 0x80070057
mov word [ebp - 0x22], ax
jmp 0x100ae56
mov word [ebp - 0x24], ax
mov eax, 0xbbc
cmp dword [ebp + 0xc], ebx
je 0x100acfe
mov word [ebp - 0x24], ax
inc eax
cmp dword [ebp + 0x10], ebx
je 0x100acfe
push 0x18
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x24], ax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x100ad49
mov dword [ebp - 0x28], 0x8007000e
mov eax, 0xbc2
jmp 0x100ad05
push edi
push 6
pop ecx
push ebx
push ebx
xor eax, eax
mov edi, esi
push 1
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
call edi
mov dword [esi], eax
mov ebx, 0x80070000
test eax, eax
jne 0x100ad90
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100ad7c
and eax, 0xffff
or eax, ebx
mov dword [ebp - 0x28], eax
test eax, eax
mov eax, 0xbce
jl 0x100ae51
mov word [ebp - 0x24], ax
xor eax, eax
push eax
push eax
push 1
push eax
call edi
xor edi, edi
mov dword [esi + 4], eax
cmp eax, edi
jne 0x100adc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x100adb3
and eax, 0xffff
or eax, ebx
mov dword [ebp - 0x28], eax
cmp eax, edi
mov eax, 0xbd8
jl 0x100ae51
mov word [ebp - 0x24], ax
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x100ab3d
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x100ae01
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100adf1
and eax, 0xffff
or eax, ebx
mov dword [ebp - 0x28], eax
test eax, eax
mov eax, 0xbde
jl 0x100ae51
mov word [ebp - 0x24], ax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [eax], edi
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
mov dword [eax], esi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100ae42
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100ae32
and eax, 0xffff
or eax, ebx
mov dword [ebp - 0x28], eax
test eax, eax
mov eax, 0xbe8
jl 0x100ae51
mov word [ebp - 0x24], ax
mov esi, dword [esi + 0x14]
test esi, esi
jge 0x100ae55
mov dword [ebp - 0x28], esi
mov eax, 0xbee
mov word [ebp - 0x22], ax
pop edi
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0101a57c
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100affe
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
push 1
push 0x73
push 0x1001f5c
lea ecx, [ebp - 0x40]
call fcn.0101a2a6
xor esi, esi
xor eax, eax
mov dword [ebp - 0x1c], esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0x1004590
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
stosd dword es:[edi], eax
cmp dword [ebp + 8], esi
je 0x100b0e7
mov ecx, dword [ebp + 8]
call fcn.0102174f
mov edx, dword [0x102531c]
push 0x7c
pop eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x40], esi
mov word [ebp - 0x3c], ax
call fcn.01021f7a
push 0x7f
mov dword [ebp - 0x40], eax
cmp eax, esi
pop eax
jl 0x100b0f1
push dword [ebp - 0x10]
mov word [ebp - 0x3c], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100b106
test al, 0x10
jne 0x100b1b5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100b0fa
call fcn.0101df05
mov dword [ebp - 0x40], eax
mov eax, 0x8e
mov word [ebp - 0x3a], ax
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x100b1c0
test dword [eax + 0x1c], 0x2000000
je 0x100b1c0
push dword [ebp - 0x40]
push dword [ebp - 0x10]
push 0x1001f38
push 0x1001cb0
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090d1
jmp 0x100b1c0
push 0x7c
mov dword [ebp - 0x40], 0x80070057
pop eax
mov word [ebp - 0x3a], ax
jmp 0x100b1c0
mov eax, 0x8e
mov dword [ebp - 0x40], esi
mov word [ebp - 0x3c], ax
push esi
lea eax, [ebp - 4]
push eax
push 1
push dword [0x1025320]
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x100b12b
call fcn.0101df05
mov dword [ebp - 0x40], eax
mov eax, 0x99
jmp 0x100b0f1
mov eax, 0x99
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100b1b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100b167
xor eax, eax
cmp eax, esi
jle 0x100b175
and eax, 0xffff
or eax, 0x80070000
mov ecx, eax
cmp ecx, esi
mov dword [ebp - 0x40], ecx
mov eax, 0xa6
jge 0x100b1b1
mov word [ebp - 0x3a], ax
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x100b1c0
test dword [eax + 0x1c], 0x2000000
je 0x100b1c0
push ecx
push dword [ebp - 0x10]
push 0x1001f30
push 0x1001cb0
push 0xb
jmp 0x100b0d7
mov word [ebp - 0x3c], ax
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.010218a8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x40]
lea ecx, [ebp - 0x10]
call fcn.0102172b
lea ecx, [ebp - 0x40]
call fcn.0101a57c
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x100b1e9
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x78
push esi
push edi
xor edi, edi
inc edi
push edi
push 0x19e
push 0x1001f8c
lea ecx, [ebp - 0x3c]
call fcn.0101a2a6
xor esi, esi
mov eax, 0x1004590
push 0x38
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x74]
push esi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x78], esi
call sub.msvcrt.dll_memset
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov eax, 0x1a4
cmp edx, esi
jne 0x100b250
mov dword [ebp - 0x3c], 0x80070057
mov word [ebp - 0x36], ax
jmp 0x100b340
mov word [ebp - 0x38], ax
mov eax, 0x1a5
cmp dword [ebp + 0x14], esi
je 0x100b240
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x38], ax
call fcn.01021f7a
mov dword [ebp - 0x3c], eax
cmp eax, esi
mov eax, 0x1a7
jl 0x100b247
push dword [ebp + 0x14]
mov edx, 0x1001f88
lea ecx, [ebp - 0x18]
mov word [ebp - 0x38], ax
call fcn.010223c9
mov dword [ebp - 0x3c], eax
cmp eax, esi
mov eax, 0x1a9
jl 0x100b247
mov word [ebp - 0x38], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], 0x2000540
mov dword [ebp - 0x78], 0x3c
mov dword [ebp - 0x70], eax
cmp dword [ebp + 0xc], esi
je 0x100b2bd
mov dword [ebp - 0x6c], 0x1001f7c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x5c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x100b340
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x100b2ee
and eax, 0xffff
or eax, 0x80070000
mov ecx, eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [0x1025318]
cmp eax, 0x1025318
je 0x100b31b
test dword [eax + 0x1c], 0x200
je 0x100b31b
push ecx
push 0x1001cb0
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090a5
cmp dword [ebp - 0x3c], 0x800704c7
jne 0x100b32e
mov dword [ebp - 0x3c], edi
mov eax, 0x1be
jmp 0x100b33c
cmp dword [ebp - 0x3c], esi
mov eax, 0x1c2
jl 0x100b247
mov word [ebp - 0x38], ax
cmp dword [ebp - 0x40], esi
je 0x100b351
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x40], esi
mov esi, dword [ebp - 0x3c]
lea ecx, [ebp - 0xc]
call fcn.0102172b
lea ecx, [ebp - 0x18]
call fcn.0102172b
lea ecx, [ebp - 0x3c]
call fcn.0101a57c
pop edi
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x100b379
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push 1
push 0x1dc
push 0x1001fcc
lea ecx, [ebp - 0x30]
call fcn.0101a2a6
xor esi, esi
push 0x1001fa4
mov dword [ebp - 0xc], 0x1004590
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.0101e2bb
mov dword [ebp - 0x30], eax
cmp eax, esi
mov eax, 0x1e1
jge 0x100b3c4
mov word [ebp - 0x2a], ax
jmp 0x100b455
mov word [ebp - 0x2c], ax
call fcn.01012771
test eax, eax
jne 0x100b3f8
push 1
call dword [sym.imp.ntdll.dll_NtShutdownSystem]
mov ecx, eax
call fcn.0101df68
cmp eax, esi
mov dword [ebp - 0x30], eax
jge 0x100b3ee
mov eax, 0x1e6
jmp 0x100b3bb
mov dword [ebp - 0x30], esi
mov eax, 0x1e7
jmp 0x100b451
mov edx, dword [ebp + 8]
push 0x9c
lea ecx, [ebp - 0xc]
call fcn.0102240e
mov dword [ebp - 0x30], eax
cmp eax, esi
mov eax, 0x1ea
jl 0x100b3bb
push 0x2001a
push 0x27
push esi
push dword [ebp - 0xc]
mov word [ebp - 0x2c], ax
push esi
call dword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
cmp eax, 0x45b
jne 0x100b433
xor eax, eax
cmp eax, esi
jle 0x100b441
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x30], eax
cmp eax, esi
mov eax, 0x1f8
jl 0x100b3bb
mov word [ebp - 0x2c], ax
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0xc]
call fcn.0102172b
lea ecx, [ebp - 0x30]
call fcn.0101a57c
mov eax, esi
pop esi
leave
ret 4
Function at 0x100bf48
Capabilities:
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 1
push 0x57e
push 0x100205c
lea ecx, [ebp - 0x4c]
call fcn.0101a2a6
mov esi, dword [ebp + 8]
xor ebx, ebx
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x24]
mov dword [ebp - 0x28], ebx
rep stosd dword es:[edi], eax
lea eax, [esi + 0x70]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [eax], ebx
je 0x100bf90
lea ecx, [esi + 0x6c]
push ecx
push eax
call fcn.0101e76e
cmp dword [esi + 0x84], ebx
je 0x100bfef
lea eax, [ebp - 4]
push eax
push 0x10035d0
push 1
push ebx
push 0x10035c0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x4c], eax
cmp eax, ebx
mov eax, 0x593
jge 0x100bfc6
mov word [ebp - 0x46], ax
mov edi, ebx
jmp 0x100c0c3
push dword [esi + 0x84]
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 4]
mov dword [esi + 0x84], ebx
cmp eax, ebx
je 0x100bfef
mov dword [ebp - 4], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x100c008
cmp eax, 0xffffffff
jne 0x100c017
call fcn.0101df05
mov dword [ebp - 0x4c], eax
mov eax, 0x59c
jmp 0x100bfbb
push 0xa4
push 0x1002048
mov ecx, 0x59c
push eax
mov dword [ebp - 0x4c], ebx
mov word [ebp - 0x48], cx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebx
je 0x100c03f
cmp edi, 0xffffffff
jne 0x100c076
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1025318]
cmp ecx, 0x1025318
je 0x100c06f
test dword [ecx + 0x1c], 0x4000000
je 0x100c06f
push eax
push 0x1001cb0
push 0x11
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010090a5
mov eax, 0x5a4
jmp 0x100c0bc
lea eax, [ebp - 0x28]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x100c0c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1025318]
cmp ecx, 0x1025318
je 0x100c0b7
test dword [ecx + 0x1c], 0x4000000
je 0x100c0b7
push eax
push 0x1001cb0
push 0x12
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010090a5
mov eax, 0x5ad
mov word [ebp - 0x48], ax
mov dword [ebp - 0x4c], ebx
mov eax, dword [ebp - 0x4c]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x100c0d6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, ebx
je 0x100c0e8
cmp edi, 0xffffffff
je 0x100c0e8
push edi
call esi
cmp dword [ebp - 8], ebx
je 0x100c0f8
cmp dword [ebp - 8], 0xffffffff
je 0x100c0f8
push dword [ebp - 8]
call esi
lea ecx, [ebp - 0x4c]
call fcn.0101a57c
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100cd91
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x10253c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
push 0x9e5
push 0x100229c
lea ecx, [ebp - 0x128]
call fcn.0101a2a6
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x168]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0xec], ebx
lea edi, [ebp - 0xe8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
mov eax, 0x1004590
push 0x1a
mov dword [ebp - 0x104], eax
mov dword [ebp - 0xf8], eax
mov eax, 0x1002230
pop ecx
mov esi, eax
lea edi, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x1a
pop ecx
mov esi, eax
lea edi, [ebp - 0xdc]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x100], ebx
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xf0], ebx
movsw word es:[edi], word [esi]
mov dword [ebp - 0x16c], 0x44
call fcn.01021f7a
mov dword [ebp - 0x128], eax
cmp eax, ebx
mov eax, 0x9f0
jge 0x100ce5e
mov word [ebp - 0x122], ax
jmp 0x100ceda
lea edx, [ebp - 0xdc]
lea ecx, [ebp - 0xf8]
mov word [ebp - 0x124], ax
call fcn.01021f7a
mov dword [ebp - 0x128], eax
cmp eax, ebx
mov eax, 0x9f1
jl 0x100ce55
mov word [ebp - 0x124], ax
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x16c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xf8]
push dword [ebp - 0x104]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100cec8
call fcn.0101df05
mov dword [ebp - 0x128], eax
mov eax, 0x9fc
jmp 0x100ce55
mov eax, 0x9fc
mov dword [ebp - 0x128], ebx
mov word [ebp - 0x124], ax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xe8], ebx
je 0x100cef6
push dword [ebp - 0xe8]
call esi
mov dword [ebp - 0xe8], ebx
cmp dword [ebp - 0xec], ebx
je 0x100cf0c
push dword [ebp - 0xec]
call esi
mov dword [ebp - 0xec], ebx
mov esi, dword [ebp - 0x128]
lea ecx, [ebp - 0xf8]
call fcn.0102172b
lea ecx, [ebp - 0x104]
call fcn.0102172b
lea ecx, [ebp - 0x128]
call fcn.0101a57c
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01019b13
leave
ret
Function at 0x100de92
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
push 1
push 0x684
push 0x10023ac
lea ecx, [ebp - 0x28]
call fcn.0101a2a6
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov eax, 0x68b
cmp esi, edi
jne 0x100ded1
mov dword [ebp - 0x28], 0x80070057
mov word [ebp - 0x22], ax
jmp 0x100dfb4
push ebx
push esi
push 0x1014937
push edi
push 0x74
push dword [esi + 4]
mov dword [ebp - 0x28], edi
mov word [ebp - 0x24], ax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov ebx, eax
cmp ebx, edi
jne 0x100df07
call fcn.0101df05
mov dword [ebp - 0x28], eax
mov eax, 0x68e
mov word [ebp - 0x22], ax
jmp 0x100dfa2
push 5
mov eax, 0x68e
push ebx
mov dword [ebp - 0x28], edi
mov word [ebp - 0x24], ax
mov dword [esi + 0xd8], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x100de53
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x100df5c
push esi
call fcn.0100ddd6
call fcn.0101df05
mov dword [ebp - 0x28], eax
mov eax, 0x69a
mov word [ebp - 0x22], ax
jmp 0x100df94
mov ecx, 0x69a
push eax
mov dword [ebp - 0x28], edi
mov word [ebp - 0x24], cx
call fcn.0101e198
mov dword [ebp - 0x28], eax
cmp eax, edi
mov eax, 0x69c
jl 0x100df56
mov word [ebp - 0x24], ax
mov eax, dword [esi + 0xc8]
mov dword [ebp - 0x28], eax
cmp eax, edi
mov eax, 0x69e
jl 0x100df56
mov word [ebp - 0x24], ax
cmp dword [ebp + 8], edi
je 0x100dfa2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
je 0x100dfb3
push ebx
mov dword [esi + 0xd8], edi
call dword [sym.imp.USER32.dll_DestroyWindow]
pop ebx
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0101a57c
pop edi
mov eax, esi
pop esi
leave
ret 4