joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a300
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14000a361
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14000a320
mov ecx, dword [r9]
jmp 0x14000a44b
cmp ecx, 0x4e0
jb 0x14000a44b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14000a380
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14000a3d0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x14000abec
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 0x14000ac26
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000ac2b
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 0x14000ac74
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000d540]
cmp byte [rcx + rax], 0
je 0x14000ac74
dec r8
sub rdx, 1
jne 0x14000ac5a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14000b968
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0xf0
mov rbx, rcx
mov edi, 0x50
lea rcx, [rax - 0x58]
mov r8, rdi
xor edx, edx
call fcn.140005310
mov dword [rsp + 0xa0], edi
lea rax, section..text
lea rdi, str.DUMMY
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xe0], rdi
mov qword [rsp + 0xb8], rbx
call qword [sym.imp.USER32.dll_RegisterClassExA]
xor ebx, ebx
cmp ax, bx
jne 0x1400010bb
or eax, 0xffffffff
jmp 0x1400011a9
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_CreateWindowExA]
cmp rax, rbx
jne 0x1400010ff
mov eax, 0xfffffffe
jmp 0x1400011a9
lea rax, [rsp + 0x100]
lea r8, [0x1400018b4]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x60], rax
cmp rax, rbx
jne 0x140001138
call qword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
jmp 0x1400011a9
mov edi, 1
lea rdx, [rsp + 0x60]
or r9d, 0xffffffff
xor r8d, r8d
mov ecx, edi
mov dword [rsp + 0x20], 0x4ff
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, ebx
je 0x1400011a7
cmp eax, edi
je 0x14000118a
cmp eax, 0x102
je 0x14000113d
cmp eax, 0xffffffff
jne 0x14000113d
mov eax, 0xfffffffd
jmp 0x1400011a9
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_DispatchMessageA]
lea rcx, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], edi
call qword [sym.imp.USER32.dll_PeekMessageA]
cmp eax, ebx
jne 0x140001174
jmp 0x14000113d
xor eax, eax
mov rbx, qword [rsp + 0x108]
add rsp, 0xf0
pop rdi
ret

Function at 0x1400015d4
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
lea rbx, [0x140025a40]
call fcn.140005760
add rax, rsi
jmp 0x1400015ff
cmp byte [rax], 0x5c
je 0x140001609
dec rax
cmp rax, rsi
jne 0x1400015f7
cmp byte [rax], 0x5c
jne 0x14000160c
inc rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x140001632
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x140001632
xor eax, eax
jmp 0x140001660
cmp qword [0x140025a40], 0
je 0x14000165b
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 8], rax
test rax, rax
je 0x140001670
add rbx, 0x10
cmp qword [rbx], 0
jne 0x14000163c
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rcx, str.undef_symbol
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14000162e
Function at 0x1400016dc
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
lea rbx, [0x140025a40]
test rdx, rdx
jne 0x140001709
call fcn.1400015d4
jmp 0x140001771
call fcn.140002dd0
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
mov rbp, rax
call fcn.1400014e0
mov rdi, rax
test rbp, rbp
je 0x14000173b
mov r8, qword [0x140026db8]
test r8, r8
je 0x14000173b
mov rdx, rbp
xor ecx, ecx
call r8
test rdi, rdi
jne 0x140001744
xor eax, eax
jmp 0x140001771
cmp qword [0x140025a40], 0
je 0x14000176c
mov rdx, qword [rbx]
mov rcx, rdi
call fcn.140001538
mov qword [rbx + 8], rax
test rax, rax
je 0x140001786
add rbx, 0x10
cmp qword [rbx], 0
jne 0x14000174e
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea rcx, str.undef_symbol
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140001740
Function at 0x1400025cc
Capabilities:
Enumerate pe sections

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rdx, qword [rcx]
mov esi, 1
mov r12, rcx
movzx eax, word [rdx + 0x14]
mov r15, qword [rdx + 0x30]
xor ebx, ebx
lea r9, [rax + rdx + 0x18]
movabs rax, 0xffffffff00000000
mov r10d, dword [r9 + 8]
and r15, rax
or r10, r15
mov qword [r11 - 0x48], r10
mov r11d, dword [rcx + 0x50]
mov ecx, dword [r9 + 0x10]
sub r11d, esi
not r11d
and r11, r10
mov qword [rsp + 0x28], r11
cmp ecx, ebx
jne 0x14000264a
test byte [r9 + 0x24], 0x40
je 0x140002640
mov ecx, dword [rdx + 0x20]
jmp 0x14000264a
test byte [r9 + 0x24], 0x80
je 0x14000264a
mov ecx, dword [rdx + 0x24]
mov r8d, dword [r9 + 0x24]
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x38], ebx
mov r13d, esi
mov dword [rsp + 0x34], r8d
cmp si, word [rdx + 6]
jae 0x140002720
lea rdi, [r9 + 0x4c]
mov eax, dword [r12 + 0x50]
mov r14d, dword [rdi - 0x1c]
mov ebp, dword [rdi - 0x14]
sub eax, esi
or r14, r15
not eax
mov esi, eax
and rsi, r14
cmp ebp, ebx
jne 0x14000269a
test byte [rdi], 0x40
je 0x140002692
mov ebp, dword [rdx + 0x20]
jmp 0x14000269a
test byte [rdi], 0x80
je 0x14000269a
mov ebp, dword [rdx + 0x24]
cmp r11, rsi
je 0x1400026d5
mov eax, ecx
add rax, r10
cmp rax, rsi
ja 0x1400026d5
lea rdx, [rsp + 0x20]
mov rcx, r12
call fcn.140002510
cmp eax, ebx
je 0x140002756
mov r8d, dword [rdi]
mov r10, r14
mov qword [rsp + 0x20], r14
mov r11, rsi
mov qword [rsp + 0x28], rsi
mov ecx, ebp
jmp 0x1400026fa
mov eax, dword [rdi]
bt eax, 0x19
jae 0x1400026e9
bt r8d, 0x19
jae 0x1400026e9
or r8d, eax
jmp 0x1400026f1
or r8d, eax
btr r8d, 0x19
mov ecx, ebp
sub ecx, dword [rsp + 0x20]
add ecx, r14d
mov rdx, qword [r12]
mov esi, 1
add rdi, 0x28
movzx eax, word [rdx + 6]
add r13d, esi
mov dword [rsp + 0x34], r8d
cmp r13d, eax
mov dword [rsp + 0x30], ecx
jl 0x14000266c
lea rdx, [rsp + 0x20]
mov rcx, r12
mov dword [rsp + 0x38], esi
call fcn.140002510
cmp eax, ebx
setne bl
mov eax, ebx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor eax, eax
jmp 0x140002738
Function at 0x1400069ac
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.14000b440
nop
cmp dword [0x140025fc8], 1
je 0x140006958
mov dword [0x140025fc4], 1
mov byte [0x140025fc0], r12b
test ebx, ebx
jne 0x140006944
mov rcx, qword [0x140028018]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140006931
mov rcx, qword [0x140028010]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x1400068d0
call fcn.1400079c0
cmp qword [rdi], rax
jne 0x1400068d0
jmp 0x1400068b6
cmp rdi, rsi
jb 0x140006931
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.1400079c0
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140028018]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140028010]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14000690f
cmp r13, rax
je 0x14000692f
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x1400068b6
lea rdx, [0x140010358]
lea rcx, [0x140010340]
call fcn.140006700
lea rdx, [0x140010368]
lea rcx, [0x140010360]
call fcn.140006700
nop
test r12d, r12d
je 0x140006967
mov ecx, 8
call fcn.14000b340
test r12d, r12d
jne 0x140006992
mov dword [0x140025fc8], 1
lea ecx, [r12 + 8]
call fcn.14000b340
mov ecx, r15d
call fcn.140006694
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x140006820

Function at 0x1400069b8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140006820
Function at 0x14000b9d4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400079c0
xor ebx, ebx
mov rdi, rax
cmp qword [0x1400266e8], rbx
jne 0x14000bada
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14000bbaf
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000bbaf
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400266e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400266f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x1400266f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140026708], rax
test rax, rax
je 0x14000bad1
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140026700], rax
jmp 0x14000bae1
mov rax, qword [0x140026700]
jmp 0x14000bae8
mov rax, qword [0x140026700]
mov r11, qword [0x140026708]
cmp rax, rdi
je 0x14000bb50
cmp r11, rdi
je 0x14000bb50
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140026708]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14000bb50
test rax, rax
je 0x14000bb50
call rsi
test rax, rax
je 0x14000bb4a
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000bb4a
test byte [rsp + 0x38], 1
jne 0x14000bb50
bts ebp, 0x15
jmp 0x14000bb8e
mov rcx, qword [0x1400266f0]
cmp rcx, rdi
je 0x14000bb8e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000bb8e
call rax
mov rbx, rax
test rax, rax
je 0x14000bb8e
mov rcx, qword [0x1400266f8]
cmp rcx, rdi
je 0x14000bb8e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000bb8e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400266e8]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000bbaf
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14000bbb1
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14000e8f7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140014e10]
jne 0x14000b1ea
rol rcx, 0x10
test cx, 0xffff
jne 0x14000b1e6
repz ret
ror rcx, 0x10
jmp 0x14000e850
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400267d0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400268c8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000e8d5
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, [0x1400267d0]
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.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000e8f7
mov rax, qword [rsp + 0x88]
mov qword [0x1400268c8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140026868], rax
mov rax, qword [0x1400268c8]
mov qword [0x140026740], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140026850], rax
mov dword [0x140026730], 0xc0000409
mov dword [0x140026734], 1
mov rax, qword [0x140014e10]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140014e18]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400267c8], eax
mov ecx, 1
call fcn.14000cd88
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400115a0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400267c8], 0
jne 0x14000e97e
mov ecx, 1
call fcn.14000cd88
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140007430
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r8d, dword [0x140202960]
lea r11, [0x140202960]
mov r9d, 0x270
cmp r8d, r9d
jne 0x140007495
lea r8, [0x140202968]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140007450
mov r8d, dword [0x140202960]
jmp 0x14000756f
cmp r8d, 0x4e0
jb 0x14000756f
xor r8d, r8d
mov r9d, 0x38c
mov r10d, r8d
nop
mov eax, dword [r10 + r11 + 0x9c4]
mov edx, eax
xor edx, dword [r10 + r11 + 0x9c8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + r11 + 0xff8]
xor ecx, edx
mov dword [r10 + r11 + 4], ecx
add r10, 4
cmp r10, r9
jb 0x1400074b0
mov eax, dword [r9 + r11 + 0x9c4]
mov edx, eax
xor edx, dword [r9 + r11 + 0x9c8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + r11 - 0x388]
xor ecx, edx
mov dword [r9 + r11 + 4], ecx
add r9, 4
cmp r9, 0x9bc
jb 0x1400074f0
mov edx, dword [0x140202964]
xor edx, dword [0x140203ce0]
btr edx, 0x1f
mov dword [0x140202960], r8d
xor edx, dword [0x140203ce0]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, edx
xor ecx, dword [0x140202f94]
mov dword [0x140203320], ecx
mov eax, r8d
inc r8d
mov ecx, dword [r11 + rax*4 + 4]
mov eax, ecx
shr eax, 0xb
and eax, dword [0x140203ce4]
xor ecx, eax
mov dword [0x140202960], r8d
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
Function at 0x14000ba90
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14013f040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 0x22
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [rsp + 0x40]
call fcn.140005080
nop
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x14000bae6
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140011ca0
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x14000bc0b
mov byte [rsp + 0x38], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14000bc0b
mov byte [rsp + 0x39], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x39]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14000bc0b
mov byte [rsp + 0x3a], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x3a]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14000bc0b
mov eax, dword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x14000bbd1
mov rbx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14000bc0b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
sete bl
jmp 0x14000bc0d
xor bl, bl
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000bc4d
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bc48
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000bc48
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400f58d4
movzx eax, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400f5870
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x1400109f0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140010a18
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140010a3e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140010a40
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140010a99
test ecx, ecx
jle 0x140010a79
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140010a99
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140010a99
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140010ac0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140010ae2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140010af8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140010b14
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140010b16
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140010b52
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140010bee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140010b8d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140010bce
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140010bee
cmp rbx, rax
ja 0x140010ba0
test rbx, rbx
je 0x140010bee
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret