joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440d6c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x440d9d
je 0x440df7
sub eax, 7
je 0x440dbe
dec eax
je 0x440de8
sub eax, 0x17
je 0x440e78
jmp 0x440eb6
add eax, 0xffffff00
sub eax, 9
jb 0x440e64
add eax, 0xffffff09
sub eax, 0xb
jb 0x440e4e
jmp 0x440eb6
mov eax, ebx
call fcn.00429e60
mov edi, eax
test edi, edi
je 0x440f16
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xc8]
test al, al
je 0x440f1f
jmp 0x440f16
test byte [ebx + 0x44], 0x20
jne 0x440f1f
jmp 0x440f16
mov edx, esi
mov eax, ebx
call fcn.0043e658
cmp dword [esi + 0xc], 0xffffffff
jne 0x440f1f
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.004075d0
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0043d108
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00440c1c
test eax, eax
je 0x440f1f
mov dword [esi + 0xc], 1
jmp 0x440f1f
mov edx, esi
mov eax, ebx
call fcn.00440ce0
test al, al
jne 0x440f1f
jmp 0x440f16
mov eax, ebx
call fcn.0043dcd0
test al, al
jne 0x440f1f
jmp 0x440f16
mov eax, ebx
call fcn.0044329c
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x440f16
cmp dword [0x4729c4], 0
je 0x440f16
mov eax, dword [0x4729c4]
cmp ebx, dword [eax + 0x24]
jne 0x440f16
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x4729c4]
call fcn.0043e574
jmp 0x440f16
mov eax, dword [0x47477c]
cmp byte [eax + 0x20], 0
je 0x440f16
mov eax, dword [0x47477c]
cmp dword [eax + 0x1c], 0
je 0x440f16
mov eax, dword [esi]
mov edx, dword [0x47477c]
cmp eax, dword [edx + 0x1c]
jne 0x440f16
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.00429d74
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb9
call fcn.00403028
jmp 0x440f1f
mov edx, esi
mov eax, ebx
call fcn.0043e658
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4413b0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x4413cc
cmp dword [esi + 4], 0
je 0x4413f9
test byte [ebx + 0x45], 1
jne 0x4413eb
mov eax, ebx
call fcn.00440420
test eax, eax
jne 0x4413eb
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x441509
mov edx, esi
mov eax, ebx
call fcn.00441028
jmp 0x441509
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x441502
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044329c
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0043e574
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004413b0
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044329c
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441509
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45ddef
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x47381a
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45de47
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x47383b
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x45de3d
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x45de4b
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x4043a0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x407634
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x40b170], eax
xor eax, eax
mov al, byte [0x40b171]
mov dword [0x40b17c], eax
mov eax, dword [0x40b170]
shr dword [0x40b170], 0x10
and eax, 0xff
mov dword [0x40b178], eax
shl eax, 8
add eax, dword [0x40b17c]
mov dword [0x40b174], eax
call fcn.004075f0
test eax, eax
jne 0x404414
push 0x1c
call fcn.00404540
add esp, 4
mov dword [ebp - 4], 0
call fcn.004064b0
call fcn.004075e0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40d954], eax
call fcn.00407190
mov dword [0x40b1b0], eax
test eax, eax
je 0x404447
cmp dword [0x40d954], 0
jne 0x404451
push 0xffffffffffffffff
call fcn.00403390
add esp, 4
call fcn.00406f10
call fcn.00406e20
call fcn.00403360
mov esi, dword [0x40d954]
mov al, byte [esi]
cmp al, 0x22
je 0x404478
cmp al, 0x20
jbe 0x4044a5
inc esi
cmp byte [esi], 0x20
ja 0x404470
jmp 0x4044a5
inc esi
cmp byte [esi], 0x22
je 0x4044a4
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x40449f
xor eax, eax
mov al, bl
push eax
call fcn.00406dc0
add esp, 4
test eax, eax
je 0x404499
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x404481
cmp byte [esi], 0x22
jne 0x4044a5
inc esi
cmp byte [esi], 0
je 0x4044b5
cmp byte [esi], 0x20
ja 0x4044b5
inc esi
cmp byte [esi], 0
jne 0x4044aa
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x4044d9
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00403390
jmp 0x40451a
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409340
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x409365
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00405bd0
add esp, 4
mov eax, 0xffffffff
ret
test al, 1
je 0x40938a
test byte [esp + 8], 2
je 0x40938a
mov dword [0x40b164], 0xd
mov dword [0x40b168], 5
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x4271b8
Capabilities:
Check for time delay via gettickcount
Delete file

Disassembly:
mov edi, edi
sub esp, 0x10
sub al, byte [0x428016]
push 0x40115c
call sub.msvcrt.dll_printf
pop ecx
mov dword [0x428018], 0x2b6b04
push 0x401170
call sub.msvcrt.dll_printf
pop ecx
adc cx, 0x8de0
cmp edi, edi
jne 0x427200
call sub.KERNEL32.DLL_GetTickCount
mov cx, word [0x42800e]
mov dword [esp + 4], 1
mov ebx, dword [0x428008]
not ebx
sub dword [section..data], edi
movzx eax, ch
push 0x401180
call sub.msvcrt.dll_printf
pop ecx
xor dword [esp + 4], 0xffffffff
sbb byte [0x428015], 0xb4
mov word [0x428006], 1
push 0x401194
call sub.msvcrt.dll_printf
pop ecx
mov ecx, dword [0x428008]
add dword [esp + 4], 1
mov byte [esp + 8], 0
add si, 1
push 0x4011a4
call sub.msvcrt.dll_printf
pop ecx
mov edi, dword [esp + 4]
mov dword [section..data], ecx
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], 0x290
xor di, 0xc360
call sub.KERNEL32.DLL_GetOEMCP
bswap ecx
mov edx, dword [0x42823c]
mov esi, dword [esp + 4]
neg eax
and dh, byte [0x428014]
call sub.KERNEL32.DLL_GetTickCount
add word [0x428006], 0x1fc
mov dword [0x428008], ecx
or dword [esp + 4], esi
nop
push 0x4011b8
call sub.msvcrt.dll_remove
inc eax
jne 0x4272e6
sbb byte [0x428017], al
test eax, 0x4d5d1ff1
js 0x4272c8
call sub.KERNEL32.DLL_GetOEMCP
push 0x4011cc
call sub.msvcrt.dll_printf
pop ecx
push 0x426d9e
push 1
push 0x30
push 0x4011e0
call sub.msvcrt.dll_qsort
mov word [esp + 0xc], 0x6ae0
call sub.KERNEL32.DLL_GetCurrentProcess
test eax, 0xe0edc704
jne 0x427308
push 0x4011f4
call sub.msvcrt.dll_printf
pop ecx
sub dword [esp + 4], ebx
or di, word [0x428004]
call sub.KERNEL32.DLL_GetCurrentProcess
mov ebx, dword [esp + 4]
add esp, 0x10
ret
Function at 0x70012b7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x70012c6
pop dword [ebp - 0x28]
mov eax, 0xbf0e8794
sub eax, 0xb80e74ce
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x535c1554
add dword [ebp - 0x38], 0xfaf62ff7
mov dword [ebp - 0x34], 0x44e53084
add dword [ebp - 0x34], 0xed4e1bc1
mov dword [ebp - 0x30], 0x1f6332ca
sub dword [ebp - 0x30], 0xd316ee9c
mov dword [ebp - 0x2c], 0xe261ca2f
sub dword [ebp - 0x2c], 0xe261ca2f
lea eax, [ebp - 0x38]
push eax
mov eax, 0x23773fa9
sub eax, 0x1c760f79
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x543d9e5c
sub dword [ebp - 0x38], 0xdfcb3506
mov dword [ebp - 0x34], 0xfcd693ca
sub dword [ebp - 0x34], 0xbb6a3255
mov dword [ebp - 0x30], 0xbeb6c46
add dword [ebp - 0x30], 0x57840026
mov dword [ebp - 0x2c], 0xbbc64815
add dword [ebp - 0x2c], 0x4439b7eb
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3b17f
push 0
call eax
mov ecx, 0x815ca7ce
add ecx, 0x7ea3a244
mov ebx, eax
mov edi, 0x743086f1
add edi, 0x92d17b0f
add edi, dword [ebp - 0x28]
mov edx, 0xa9d275be
mov dword [ebp - 0x1c], 0xdb43191b
mov esi, dword [edi]
mov dword [ebp - 0xc], 0x723597df
xor esi, edx
xor dword [ebp - 0x20], esi
mov dword [ebx], esi
xor dword [ebp - 0x24], 0xa026733
add ebx, 4
add edi, 0x2ce5ba04
sub edi, 0x2ce5ba00
loop 0x70013dd
add eax, 0x7d1d0698
add eax, 0x82e41483
xor ebx, ebx
add ebx, eax
add eax, 0x1668a5e2
sub eax, 0x1668a5dd
mov ecx, 0xde1ee264
add ecx, 0x28e11d9c
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x700d29f
Capabilities:
Set current directory

Disassembly:
push 8
mov eax, 0x70120f1
call fcn.07001cf8
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0700d491
xor ebx, ebx
mov dword [edi], vtable.FileSharedStream.0
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0700dd8a
lea ecx, [ebp - 0x10]
call fcn.0700d23c
mov eax, dword [edi + 0x14]
mov byte [ebp - 4], 2
push dword [eax + 0x14]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x700d30c
mov eax, dword [eax + 0x14]
jmp 0x700d311
mov eax, 0x70138c2
push 0x7015240
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov dword [edi + 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x700d343
mov ecx, dword [edi + 4]
call fcn.070076d1
lea ecx, [ebp - 0x10]
mov dword [edi + 8], eax
call fcn.070012b7
mov eax, edi
call fcn.07001ea7
ret 4
push str.file_does_not_exist
push ebx
call fcn.070012b7
int3
Function at 0x700de90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x700def4
cmp byte [esi + 0x10], 0
je 0x700deb2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov eax, dword [esi + 0xc]
pop ecx
mov byte [esi + 0x10], 0
push edi
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push dword [esi + 0xc]
mov edi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 0x14
test eax, eax
je 0x700dee2
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
pop ecx
test eax, eax
je 0x700defb
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
pop ecx
mov dword [esi + 8], eax
mov eax, edi
pop edi
jmp 0x700def6
xor eax, eax
pop esi
pop ebp
ret 8
push str.stream_read_error
push 0
call fcn.070012b7
int3

Function at 0x700e170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp byte [eax + 8], 0
jne 0x700e1c3
cmp dword [esi + 0xc], 0
je 0x700e1be
push dword [esi + 0xc]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [esi + 0xc]
mov byte [esi + 0x10], 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 0x14
test eax, eax
je 0x700e1b1
push str.stream_write_error
jmp 0x700e1c8
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
pop ecx
mov dword [esi + 8], eax
pop esi
pop ebp
ret 8
push str.Attempt_to_write_read_only_stream
push 0
call fcn.070012b7
int3
Function at 0x10009070
Capabilities:
Create thread
Set global application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x10009087
sub dword [edx], ebp
sub ebx, dword [eax + 0x6a]
add byte [edx], ch
pop eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x100146a8], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x100146ac], eax
push 0
push 0
push 0x10009680
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov dword [ebp - 8], eax
push 0x2000000
push 0
push 0
push str.Default
call dword [sym.imp.USER32.dll_OpenDesktopA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100090f5
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetThreadDesktop]
cmp dword [0x10015c10], 0
jne 0x10009119
push 0
mov ecx, dword [0x10014864]
push ecx
push 0x10008d20
push 4
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x10015c10], eax
cmp dword [0x10015c0c], 0
jne 0x1000913d
push 0
mov edx, dword [0x10014864]
push edx
push 0x10008c40
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x10015c0c], eax
push 0x2000000
push 0
push 0
push str.WINLOGON
call dword [sym.imp.USER32.dll_OpenDesktopA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10009164
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetThreadDesktop]
cmp dword [0x10015c14], 0
jne 0x10009188
push 0
mov ecx, dword [0x10014864]
push ecx
push 0x10008f30
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x10015c14], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_SetThreadDesktop]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100091a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push eax
xor eax, eax
nop
xor eax, eax
nop
nop
je 0x100091b7
nop
sub dword [edx], ebp
sub ebx, dword [eax + 0x6a]
add byte [eax - 0x80], ch
add byte [eax], al
add byte [edx + 4], ch
pop eax
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x100091e1
xor eax, eax
jmp 0x10009229
push 2
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000a1e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
nop
nop
je 0x1000a1fa
nop
nop
sub dword [edx], ebp
sub ebx, dword [eax - 0x39]
inc ebp
cld
add byte [eax], al
add byte [eax], al
pop eax
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000a22b
xor eax, eax
jmp 0x1000a2be
mov byte [ebp - 0x10c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x110], 0x104
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x10c]
push ecx
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000a285
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1000a2be
mov ecx, dword [ebp - 0x110]
lea esi, [ebp - 0x10c]
mov edi, dword [ebp + 0x14]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000a2b9
xor eax, eax
jmp 0x1000a2be
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000a360
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push eax
xor eax, eax
nop
nop
xor eax, eax
nop
je 0x1000a377
nop
sub dword [edx], ebp
sub ebx, dword [eax - 0x73]
inc ebp
in al, dx
pop eax
lea eax, [ebp - 0x14]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [ebp - 0xc]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], 2
push 0
push 0
push 0
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000a830
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000a847
sub dword [edx], ebp
sub ebx, dword [eax - 0x39]
inc ebp
cld
add byte [eax], al
add byte [eax], al
pop eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000a873
or eax, 0xffffffff
jmp 0x1000a8bd
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000a89d
mov edx, dword [ebp - 4]
push edx
jmp 0x10011a16
xor eax, eax
nop
jmp 0x1000a8bd
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1000a898

Function at 0x1000a8d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000a8ea
sub dword [edx], ebp
sub ebx, dword [eax - 0x39]
inc ebp
cld
add byte [eax], al
add byte [eax], al
pop eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x114], 0
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000a92e
jmp 0x1000a99c
mov byte [ebp - 0x10c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
push eax
lea ecx, [ebp - 0x10c]
push ecx
push 2
push 0
push str.ServiceDll
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret