joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4135da
Capabilities:
Encode data using base64

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rsi, [0x0044b760]
lea rax, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
test dl, dl
mov rbx, rcx
mov edx, 6
cmovne rsi, rax
test rcx, rcx
je 0x413617
mov rax, qword [rcx]
mov ecx, 3
shl rax, 2
cqo
idiv rcx
lea rdx, [rax + 6]
xor ecx, ecx
call fcn.004055f0
mov rcx, rax
test rbx, rbx
je 0x41363b
mov r9, qword [rbx]
mov edi, 3
mov rax, r9
cqo
idiv rdi
mov r11, rdx
jmp 0x413641
xor r9d, r9d
xor r11d, r11d
sub r9, r11
lea rax, [rcx + 0x10]
xor r10d, r10d
cmp r10, r9
jne 0x413665
movabs r8, 0xaaaaaaaaaaaaaaac
imul r8, r10
test rbx, rbx
jne 0x4136c1
jmp 0x4136d3
movzx edx, byte [rbx + r10 + 0x11]
movzx r8d, byte [rbx + r10 + 0x10]
add rax, 4
shl r8d, 0x10
shl edx, 8
or edx, r8d
movzx r8d, byte [rbx + r10 + 0x12]
add r10, 3
mov edi, edx
shr edi, 0x12
or r8d, edx
shr edx, 0xc
mov dil, byte [rsi + rdi]
and edx, 0x3f
mov byte [rax - 4], dil
mov dl, byte [rsi + rdx]
mov byte [rax - 3], dl
mov edx, r8d
and r8d, 0x3f
shr edx, 6
and edx, 0x3f
mov dl, byte [rsi + rdx]
mov byte [rax - 2], dl
mov dl, byte [rsi + r8]
mov byte [rax - 1], dl
jmp 0x41364b
mov rax, qword [rbx]
mov edi, 3
cqo
idiv rdi
dec rdx
je 0x413718
cmp r11, 2
jne 0x413749
movzx edx, byte [rbx + r9 + 0x10]
movzx eax, byte [rbx + r9 + 0x11]
shl edx, 0x10
shl eax, 8
or eax, edx
shr edx, 0x12
mov dl, byte [rsi + rdx]
mov byte [rcx + r8 + 0x10], dl
mov edx, eax
shr eax, 6
shr edx, 0xc
and eax, 0x3c
and edx, 0x3f
mov dl, byte [rsi + rdx]
mov byte [rcx + r8 + 0x11], dl
mov al, byte [rsi + rax]
mov byte [rcx + r8 + 0x12], al
jmp 0x41373f
movzx eax, byte [rbx + r10 + 0x10]
mov edx, eax
shl eax, 4
shr edx, 2
and eax, 0x30
mov dl, byte [rsi + rdx]
mov byte [rcx + r8 + 0x10], dl
mov al, byte [rsi + rax]
mov byte [rcx + r8 + 0x12], 0x3d
mov byte [rcx + r8 + 0x11], al
mov byte [rcx + r8 + 0x13], 0x3d
add r8, 4
mov rdx, r8
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp fcn.004055f0
Function at 0x41e02d
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x498
lea rdi, [0x0044f480]
lea r14, [rsp + 0x88]
mov r12, rcx
mov r13, rdx
mov edx, 0x408
mov rcx, r14
mov rsi, r8
call fcn.0041df30
mov ecx, 0x20
call fcn.004055da
mov rcx, r12
mov rbx, rax
call fcn.0040618a
mov r12, rax
test r12, r12
je 0x41e08b
mov rcx, qword [r12]
test cl, 0x1f
jne 0x41e09b
xor eax, eax
test rsi, rsi
je 0x41e0c1
mov rax, qword [rsi]
add rsi, 0x10
jmp 0x41e0c1
inc rcx
call fcn.0040545f
mov rdx, r12
mov rcx, rax
mov r9, rax
call fcn.0041dfcf
mov rdx, rdi
mov rcx, r9
call fcn.0041dfa9
mov r12, r9
jmp 0x41e07d
xor r8d, r8d
test r13, r13
je 0x41e0d1
mov r8, qword [r13]
add r13, 0x10
mov qword [rsp + 0x20], rax
mov rdx, r13
mov r9, rsi
mov rcx, r14
mov esi, 0x1f
lea rdi, [rsp + 0x450]
lea rbp, [rsp + 0x78]
call fcn.0041c885
test rbx, rbx
lea rdx, [rbx + 0x10]
mov eax, 0
cmovne rax, rdx
xor r13d, r13d
mov qword [rsp + 0x38], rax
lea rdx, [rsi - 0x1f]
test r12, r12
je 0x41e11d
cmp rsi, qword [r12]
jl 0x41e146
mov edx, 0x408
mov rcx, r14
call fcn.0041b2c0
mov rcx, r13
call fcn.0040618a
add rsp, 0x498
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r8, rsi
mov rcx, r12
call fcn.004072a0
test rax, rax
jne 0x41e169
xor edx, edx
test rbx, rbx
je 0x41e235
mov rdx, qword [rbx]
jmp 0x41e235
mov rdx, qword [rax]
xor r10d, r10d
lea r15, [rsp + 0x60]
mov qword [rsp + 0x40], rdx
cmp qword [rsp + 0x40], r10
jle 0x41e156
mov rcx, qword [rsp + 0x38]
xor edx, edx
lea r8, [rax + r10]
lea r11, [rcx + r10]
mov cl, byte [r8 + rdx + 0x10]
xor cl, byte [rdi + rdx]
mov byte [r11 + rdx], cl
inc rdx
cmp rdx, 0x10
jne 0x41e18f
mov r9, r11
mov rdx, r11
mov r8d, 0x10
mov rcx, r14
mov qword [rsp + 0x20], 0x10
mov qword [rsp + 0x58], r10
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r11
call fcn.0041bd0a
mov edx, 0x10
mov rcx, rbp
call fcn.0041df30
mov edx, 0x10
mov rcx, rbp
call fcn.0041df30
mov r11, qword [rsp + 0x48]
mov rdx, r15
mov rcx, rdi
mov qword [rsp + 0x78], 0
mov r9d, 0x10
mov qword [rsp + 0x80], 0xf
mov r8, r11
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rsp + 0x60], xmm0
call fcn.0040769c
mov r10, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
add r10, 0x10
jmp 0x41e179
mov rcx, r13
add rsi, 0x20
call fcn.00405492
mov rdx, rbx
mov rcx, rax
mov r13, rax
call fcn.0041dfcf
jmp 0x41e10e
Function at 0x41e3df
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x468
lea r12, [rsp + 0x58]
mov rbp, rcx
mov r13, rdx
mov edx, 0x408
mov rcx, r12
mov qword [rsp + 0x4c0], r8
call fcn.0041df30
mov ecx, 0x20
call fcn.004055da
mov r9, qword [rsp + 0x4c0]
mov qword [rsp + 0x50], 0
mov rbx, rax
xor eax, eax
test r9, r9
je 0x41e43e
mov rax, qword [r9]
add r9, 0x10
xor r8d, r8d
test r13, r13
je 0x41e44e
mov r8, qword [r13]
add r13, 0x10
mov qword [rsp + 0x20], rax
mov rdx, r13
mov rcx, r12
lea r13, [rbx + 0x10]
mov edi, 0x1f
lea r14, [rsp + 0x440]
call fcn.0041c885
mov eax, 0
test rbx, rbx
cmove r13, rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rdx, [rdi - 0x1f]
test rbp, rbp
je 0x41e494
cmp rdi, qword [rbp]
jl 0x41e4b2
mov edx, 0x408
mov rcx, r12
lea rsi, [rsp + 0x50]
call fcn.0041b2c0
lea rbx, [0x0044f480]
jmp 0x41e57e
mov r8, rdi
mov rcx, rbp
call fcn.004072a0
mov rsi, rax
test rax, rax
jne 0x41e4d5
xor edx, edx
test rbx, rbx
je 0x41e550
mov rdx, qword [rbx]
jmp 0x41e550
mov rax, qword [rax]
xor r15d, r15d
lea r11, [rsi + 0x10]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], r15
jle 0x41e4c5
lea rdx, [r11 + r15]
mov r9, r14
mov r8d, 0x10
mov rcx, r12
mov qword [rsp + 0x20], 0x20
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x48], r15
call fcn.0041c180
mov r11, qword [rsp + 0x40]
mov r10, qword [rsp + 0x48]
mov rdx, r12
mov r8b, byte [rsi + r10 + 0x10]
mov cl, byte [rdx + 0x3e8]
inc rdx
xor cl, byte [rdx + 0x3c7]
mov byte [r13 + r10], cl
inc r10
mov byte [rdx + 0x3c7], r8b
cmp qword [rsp + 0x38], rdx
jne 0x41e520
add r15, 0x10
jmp 0x41e4e4
mov rcx, qword [rsp + 0x50]
add rdi, 0x20
call fcn.00405492
mov rdx, rbx
mov rcx, rax
mov qword [rsp + 0x50], rax
call fcn.0041dfcf
jmp 0x41e485
mov rdx, rbx
mov rcx, rsi
call fcn.0040b317
mov rcx, qword [rsp + 0x50]
mov rdx, rbx
call fcn.0040a4a8
test al, al
jne 0x41e573
mov rcx, qword [rsp + 0x50]
call fcn.0040618a
add rsp, 0x468
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x429fbc
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x004430a0], 0
je 0x429fe0
mov r8d, 1
jmp 0x42a13b
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
xor edx, edx
mov rcx, qword [rax + 0x10]
xor eax, eax
mov rbx, qword [rcx + 0x30]
test rbx, rbx
je 0x42a044
movsxd rdx, dword [rbx + 0x3c]
mov edx, dword [rbx + rdx + 0x88]
test edx, edx
je 0x42a03c
mov eax, edx
add rax, rbx
mov edx, dword [rax + 0xc]
add rdx, rbx
mov r8d, dword [rdx]
or r8d, 0x20202020
cmp r8d, 0x6c64746e
jne 0x42a03c
mov edx, dword [rdx + 4]
or edx, 0x20202020
cmp edx, 0x6c642e6c
je 0x42a053
mov rcx, qword [rcx]
mov rdx, rbx
jmp 0x429ff5
xor r8d, r8d
test rax, rax
je 0x42a13b
mov rbx, rdx
mov r13d, dword [rax + 0x1c]
mov edx, dword [rax + 0x18]
xor esi, esi
lea r14, [0x004430a8]
mov r12d, dword [rax + 0x24]
mov eax, dword [rax + 0x20]
lea edi, [rdx - 1]
add r13, rbx
add rax, rbx
add r12, rbx
lea r15, [rax + rdi*4]
add rdi, rdi
add rdi, r12
mov ecx, dword [r15]
add rcx, rbx
cmp word [rcx], 0x775a
jne 0x42a0bf
call fcn.00429f00
mov ebp, esi
inc esi
shl rbp, 4
add rbp, r14
mov dword [rbp], eax
movzx eax, word [rdi]
mov ecx, dword [r13 + rax*4]
mov dword [rbp + 4], ecx
add rcx, rbx
call fcn.00429f28
mov qword [rbp + 8], rax
cmp esi, 0x1f4
je 0x42a0d1
sub r15, 4
lea rax, [rdi - 2]
cmp r12, rdi
je 0x42a0d1
mov rdi, rax
jmp 0x42a080
mov dword [0x004430a0], esi
lea r10, [0x004430a8]
dec esi
test esi, esi
je 0x429fd5
lea rdx, [0x004430a0]
xor ecx, ecx
cmp ecx, esi
jae 0x42a137
lea eax, [rcx + 1]
mov r8d, dword [rdx + 0xc]
mov rcx, rax
shl rax, 4
add rax, r10
mov r9d, dword [rax + 4]
cmp r8d, r9d
jbe 0x42a131
mov ebx, dword [rdx + 8]
mov r11, qword [rdx + 0x10]
mov edi, dword [rax]
mov dword [rdx + 0xc], r9d
mov r9, qword [rax + 8]
mov dword [rdx + 8], edi
mov qword [rdx + 0x10], r9
mov dword [rax], ebx
mov dword [rax + 4], r8d
mov qword [rax + 8], r11
add rdx, 0x10
jmp 0x42a0f1
dec esi
jmp 0x42a0e0
mov eax, r8d
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x438170
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rbx
sub rsp, 0x28
or eax, 0xffffffff
mov rsi, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x438199
mov r10, qword [rcx]
xor edx, edx
lea r8, [0x0046ed40]
cmp rdx, r10
jl 0x43824a
not eax
mov edx, 8
mov ebx, eax
call fcn.004055f0
mov rcx, rsi
mov rdx, rax
call fcn.004052ee
mov eax, ebx
lea r8, [0x0046ed00]
mov edx, ebx
and eax, 0xf
mov rcx, qword [rsi]
mov al, byte [r8 + rax + 0x10]
mov byte [rcx + 0x17], al
mov rax, rdx
sar rax, 4
and eax, 0xf
mov al, byte [r8 + rax + 0x10]
mov byte [rcx + 0x16], al
mov rax, rdx
sar rax, 8
and eax, 0xf
mov al, byte [r8 + rax + 0x10]
mov byte [rcx + 0x15], al
mov rax, rdx
sar rax, 0xc
and eax, 0xf
mov al, byte [r8 + rax + 0x10]
mov byte [rcx + 0x14], al
mov rax, rdx
sar rax, 0x10
and eax, 0xf
mov al, byte [r8 + rax + 0x10]
mov byte [rcx + 0x13], al
mov rax, rdx
sar rax, 0x14
and eax, 0xf
mov al, byte [r8 + rax + 0x10]
mov byte [rcx + 0x12], al
mov rax, rdx
sar rdx, 0x1c
sar rax, 0x18
and eax, 0xf
mov al, byte [r8 + rax + 0x10]
mov byte [rcx + 0x11], al
mov al, byte [r8 + rdx + 0x10]
mov byte [rcx + 0x10], al
add rsp, 0x28
pop rbx
pop rsi
ret
mov r9d, eax
xor al, byte [rcx + rdx + 0x10]
inc rdx
movzx eax, al
shr r9d, 8
xor r9d, dword [r8 + rax*4]
mov eax, r9d
jmp 0x438190

Function at 0x43caa1
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
sub rsp, 0x38
lea rax, [0x0043ca20]
mov qword [rsp + 0x28], rax
call fcn.0040183b
call fcn.00401ce0
call fcn.00402a51
call fcn.00408698
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rdx, qword [0x00476970]
mov ecx, eax
mov rax, qword [0x00476950]
mov dword [rax], ecx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rcx, [rsp + 0x28]
call fcn.0040628a
call fcn.00408629
call fcn.0040b64b
call fcn.0040be4b
call fcn.0040f888
call fcn.0040fd7b
call fcn.0041089d
call fcn.00410e9a
call fcn.00410fb1
call fcn.00411472
call fcn.00412244
call fcn.00412f46
call fcn.00414e06
call fcn.00415d2e
call fcn.00416a8e
call fcn.00416d37
call fcn.004172e0
call fcn.004179a0
call fcn.00417f2f
call fcn.0041a9e0
call fcn.0041c8c1
call fcn.0041cbc9
call fcn.0041da2f
call fcn.0041edb0
call fcn.0041f0c0
call fcn.0041f370
call fcn.0041f460
call fcn.0041f630
call fcn.0041f73c
call fcn.00421b90
call fcn.00421bf8
call fcn.00421c40
call fcn.00421c90
call fcn.00421d10
call fcn.00421d60
call fcn.00421fb6
call fcn.00422caa
call fcn.00426be3
call fcn.004293e1
call fcn.0042a9d6
call fcn.0042aa80
call fcn.0042ae71
call fcn.0042b6c1
call fcn.0042e5c1
call fcn.0043056a
call fcn.0043153c
call fcn.004321dd
call fcn.00432dd0
call fcn.00433576
call fcn.00433798
call fcn.004345af
call fcn.0043c46e
mov rax, qword [rsp + 0x28]
call rax
nop
add rsp, 0x38
ret
Function at 0x43d120
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.00442620
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00442620
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x43d190
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00489c74]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x43d338
mov rax, qword [0x00489c78]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x43d1dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x43d267
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x43d1c0
mov rcx, r12
call fcn.0043def0
mov rbp, rax
test rax, rax
je 0x43d372
mov rax, qword [0x00489c78]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.0043e020
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00489c78]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x43d381
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x43d260
sub eax, 4
and eax, 0xfffffffb
jne 0x43d2f0
add dword [0x00489c74], 1
cmp ebx, 8
jae 0x43d298
test bl, 4
jne 0x43d340
test ebx, ebx
je 0x43d289
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x43d360
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x43d289
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x43d2ca
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00489c78]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x43d260
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0043d120
nop dword [rax]
xor edi, edi
jmp 0x43d1e7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x43d289
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x43d289
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.0043d120
mov rax, qword [0x00489c78]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.0043d120
nop
nop dword [rax]
Function at 0x43db60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00489f60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00489f40]
test rbx, rbx
je 0x43dbb4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x43dbab
test r12, r12
je 0x43dbab
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x43db90
lea rcx, [0x00489f60]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x43def0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x004766c0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x43df69
mov rcx, r10
call fcn.0043ddc0
test eax, eax
je 0x43df69
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x43df66
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x43df5d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x43df69
add r8, 0x28
cmp r8, r9
jne 0x43df48
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x11784
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x100
mov rax, qword [0x00045100]
xor rax, rsp
mov qword [rsp + 0xf0], rax
and qword [rsp + 0x30], 0
and dword [rsp + 0x20], 0
mov bpl, cl
lea r8, [rsp + 0x20]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [rsp + 0x20], 0x203a
jbe 0x117e7
xor al, al
jmp 0x11962
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x24]
call qword [sym.imp.ntoskrnl.exe_PsGetVersion]
mov edi, dword [rsp + 0x24]
mov eax, dword [rsp + 0x28]
and eax, 0xf
shl edi, 4
or edi, eax
call fcn.00033988
mov r14, rax
test rax, rax
je 0x117e0
test bpl, bpl
je 0x11856
lea rcx, [0x0003a690]
call fcn.000305dc
test rax, rax
je 0x117e0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x117e0
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
and dword [0x0004c394], 0
xor esi, esi
cmp dword [0x0004a83c], esi
jle 0x11945
lea rbx, [0x0004b210]
cmp dword [rbx], 0
je 0x11896
movzx ecx, byte [rbx]
movzx eax, byte [rbx + 1]
test ecx, ecx
je 0x1188a
cmp edi, ecx
jb 0x11933
test eax, eax
je 0x11896
cmp edi, eax
ja 0x11933
mov edx, dword [rbx - 0x20]
mov r12, qword [rbx - 0x18]
mov r13, qword [rbx - 0x10]
mov r9b, 1
mov rcx, r14
mov r8b, r9b
call fcn.00033b28
test rax, rax
je 0x118d9
mov r8, r12
mov rdx, r13
mov rcx, rax
call fcn.0002b464
test al, al
je 0x118d9
mov rax, qword [rbx - 8]
or qword [0x0004c398], rax
inc dword [0x0004c394]
jmp 0x11933
xor edx, edx
lea rcx, [rsp + 0x81]
mov byte [rsp + 0x80], 0
lea r8d, [rdx + 0x63]
call fcn.0003a110
mov r9d, dword [rbx - 0x20]
lea r8, [0x0003a6b0]
lea rcx, [rsp + 0x80]
mov edx, 0x64
call fcn.0001110c
call fcn.0003a020
lea r9, [rsp + 0x80]
mov r8d, eax
xor edx, edx
mov ecx, 0x8000100a
call fcn.00034e50
inc dword [0x0004c384]
inc esi
add rbx, 0x28
cmp esi, dword [0x0004a83c]
jl 0x11872
test bpl, bpl
je 0x11960
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, 1
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.00039af0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x15a4c
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
cmp dword [rcx], 1
mov rdi, rcx
mov byte [rcx + 0x403], 0
mov byte [rcx + 0x203], 0
jne 0x15ba5
mov al, byte [rcx + 0x204]
cmp al, 0x31
je 0x15a90
cmp al, 0x32
je 0x15a90
cmp al, 0x30
jne 0x15bef
lea r8, [0x0003a770]
lea rdx, [0x0003a790]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_RtlDeleteRegistryValue]
lea r8, [0x0003a810]
lea rdx, [0x0003a840]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_RtlDeleteRegistryValue]
mov dl, byte [rdi + 0x204]
cmp dl, 0x31
jne 0x15b53
call fcn.0001deec
mov rbx, rax
test rax, rax
je 0x15b49
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x15b49
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r10, qword [rsp + 0x38]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r10
lea r8, [0x0003a770]
repne scasw ax, word [rdi]
lea rdx, [0x0003a790]
mov r9d, 1
not rcx
lea eax, [rcx + rcx]
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r10
call qword [sym.imp.ntoskrnl.exe_RtlWriteRegistryValue]
cmp qword [rbx + 8], 0
mov edi, eax
je 0x15b3a
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov rcx, rbx
call fcn.00035470
mov eax, edi
jmp 0x15bf4
mov eax, 0xc0000001
jmp 0x15bf4
cmp dl, 0x32
jne 0x15ba1
and qword [rsp + 0x50], 0
lea rdx, [0x0003a840]
lea rcx, [rsp + 0x50]
mov r8d, 0xf003f
call fcn.000262a0
mov edi, eax
test eax, eax
js 0x15b42
mov rcx, qword [rsp + 0x50]
lea rdx, [0x0003a810]
mov r8d, 1
call fcn.00026324
mov rcx, qword [rsp + 0x50]
mov edi, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x15b42
xor eax, eax
jmp 0x15bf4
cmp dword [rcx], 2
jne 0x15bef
xor ebx, ebx
lea rsi, str.StartOskLauncher
mov rdx, qword [rsi]
lea rcx, [rdi + 4]
call qword [sym.imp.ntoskrnl.exe__stricmp]
test eax, eax
je 0x15bd6
inc ebx
add rsi, 8
cmp ebx, 0xa
jb 0x15bb3
mov eax, 0xc0000022
jmp 0x15bf4
lea r8, [rdi + 0x204]
lea rdx, [rdi + 4]
lea rcx, [0x0003a840]
call fcn.0001ddec
jmp 0x15bf4
mov eax, 0xc000000d
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x17da4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x450
mov rax, qword [0x00045100]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov r15d, dword [rcx]
mov rbx, qword [rcx + 4]
xor r12d, r12d
mov rdi, rcx
mov dword [rsp + 0x20], r12d
mov qword [rsp + 0x28], rbx
cmp r15d, r12d
je 0x17f5f
mov dword [rcx], r12d
lea ebp, [r12 + 5]
lea r9, [rsp + 0x20]
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov ecx, ebp
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov r13d, 0xc0000004
cmp eax, r13d
jne 0x17f5f
mov edx, dword [rsp + 0x20]
mov ecx, 1
call fcn.000353f8
mov rsi, rax
mov qword [rsp + 0x30], rax
cmp rax, r12
je 0x17f5f
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, ebp
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, r13d
jne 0x17e64
mov rcx, rsi
call fcn.00035470
jmp 0x17e21
cmp eax, r12d
jge 0x17e71
mov rcx, rsi
jmp 0x17f5a
mov rbp, rsi
lea r14, [rdi + 0xc]
mov esi, r12d
cmp qword [rbp + 0x40], r12
je 0x17f3f
mov rdx, qword [rbp + 0x50]
mov rcx, rbx
call fcn.00032990
cmp al, r12b
je 0x17f3f
mov rcx, qword [rbp + 0x50]
call fcn.00025f04
mov r13, rax
cmp rax, r12
je 0x17f3f
movsxd rbx, esi
xor edx, edx
mov r8d, 0x104
mov rcx, rbx
imul rcx, rcx, 0x210
lea r12, [rcx + rdi + 0x14]
mov rcx, r12
call fcn.0003a110
mov rcx, r13
mov r11d, 0x104
imul rbx, rbx, 0x210
sub rcx, rbx
sub rcx, rdi
xor edx, edx
lea rax, [r11 + 0x7ffffefa]
cmp rax, rdx
je 0x17f0f
movzx eax, word [rcx + r12 - 0x14]
cmp ax, dx
je 0x17f0f
mov word [r12], ax
add r12, 2
sub r11, 1
jne 0x17ee9
cmp r11, rdx
jne 0x17f18
sub r12, 2
mov word [r12], dx
mov rax, qword [rbp + 0x50]
mov rcx, r13
mov qword [r14], rax
inc dword [rdi]
add r14, 0x210
inc esi
call fcn.00035470
mov rbx, qword [rsp + 0x28]
xor r12d, r12d
cmp dword [rdi], r15d
jae 0x17f55
cmp dword [rbp], r12d
je 0x17f55
mov eax, dword [rbp]
add rbp, rax
jmp 0x17e7b
mov rcx, qword [rsp + 0x30]
call fcn.00035470
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.00039af0
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x17fe0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x00045100]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, dword [0x00049ce8]
mov rbx, rcx
cmp eax, 0xffffffff
jne 0x18069
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call fcn.0003a110
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
xor ecx, ecx
cmp eax, ecx
je 0x1803e
mov dword [0x00049ce8], ecx
mov al, cl
jmp 0x18069
cmp dword [rsp + 0x24], 6
jb 0x18034
mov eax, 1
mov dword [0x00049ce8], eax
jne 0x18069
cmp dword [rsp + 0x28], ecx
jne 0x18069
cmp word [rsp + 0x134], ax
cmovb eax, ecx
mov dword [0x00049ce8], eax
movzx eax, al
mov dword [rbx], eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.00039af0
add rsp, 0x150
pop rbx
ret