joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d3e4c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d3eca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d3ec1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d3ec1
mov rax, qword [rbp - 8]
jmp 0x2fc4d3edf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d3e94
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000a200
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x14000a290
jmp 0x14000a27f
jae 0x14000a350
cmp r8, 0x201
jae 0x14000a290
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14000a2e8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14000a2bf
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140039ab0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14000a311
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000a3b8
mov r8d, r14d
cmp r15, r8
jne 0x14000a270
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000a3db
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000a27f
jmp 0x14000a290
cmp rsi, r8
jb 0x14000a3f5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14000c7f0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x14000a3a1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140003420
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x14000a389
jmp 0x14000a3a1
lea rcx, [0x14003c2c8]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14003a480
jmp 0x14000a40a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14003a8d0
ud2
Function at 0x14000a460
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.14001bea0
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x408], rax
test rax, rax
je 0x14000a5e6
mov qword [rbp + 0x400], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x418], rax
mov qword [rbp + 0x3e8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x14000a520
jmp 0x14000a50f
jae 0x14000a5f8
cmp r8, 0x201
jae 0x14000a520
mov r15d, 0x200
lea r14, [rbp - 0x60]
mov r12, r8
jmp 0x14000a578
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x14000a54f
lea rcx, [rbp + 0x3e8]
mov rdx, r13
call fcn.140039ab0
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x410], rax
mov rdi, qword [rbp + 0x3f0]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3f8], r13
mov rbx, rdi
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x14000a5a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000a6cb
mov r8d, esi
cmp r12, r8
jne 0x14000a500
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000a6f5
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000a50f
jmp 0x14000a520
lea rcx, [rbp - 0x58]
call fcn.1400045b0
mov byte [rsi + 0x18], 2
jmp 0x14000a68a
cmp r15, r8
jb 0x14000a70f
lea rcx, [rbp + 0x3a0]
mov rdx, r14
call fcn.14000c7f0
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x14000a649
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rdi
call fcn.140003420
cmp byte [rbp + 0x3d8], 2
jne 0x14000a6a1
mov rsi, qword [rbp + 0x400]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.1400045b0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x14000a68a
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.140003420
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3c0]
movaps xmm1, xmmword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x400]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x14000a675
jmp 0x14000a68a
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3c0], rax
mov byte [rbp + 0x3d8], 2
test rdi, rdi
jne 0x14000a631
jmp 0x14000a649
lea rcx, [0x14003c2c8]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14003a480
jmp 0x14000a724
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.14003a8d0
ud2
Function at 0x14000f8a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.14002a3b0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call fcn.140039350
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x140015600]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call fcn.1400153a0
cmp qword [rbp + 0xfe8], 0
jne 0x14000fa77
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x14000fa43
cmp r12, 0x1000
ja 0x14000fa99
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x14000fa17
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x14000f9c0
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x14000fa1d
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x14000fa00
jbe 0x14000f970
jmp 0x14000fa85
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x14000f925
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.1400045b0
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xff0]
call fcn.1400045b0
jmp 0x14000fa43
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.14003a950
jmp 0x14000faad
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.14003a8d0
ud2
Function at 0x140012ed0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14003e168]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140012f14
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140012f7a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140012fb1
test eax, eax
js 0x140012f8b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140012fa4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14000c5c0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140004b20
mov ecx, 7
int 0x29
ud2
Function at 0x14001aff0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14001b033
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14000b7f0]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14003a3d0
ud2
Function at 0x140029130
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400291aa
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1400291a0
cmp r11, r10
ja 0x140029243
cmp r10, rdx
ja 0x140029257
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400291a2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140029180
jmp 0x140029217
ja 0x1400291aa
mov r11, r10
cmp rax, r8
jne 0x140029152
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14002921b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1400291f0
mov r8, r10
sub ecx, r9d
jns 0x14002920e
jmp 0x14002921d
cmp r10, rdx
je 0x140029229
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002921d
xor al, 1
cmp r8, rdx
jne 0x1400291d0
jmp 0x14002921d
xor eax, eax
jmp 0x14002921d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14003a480
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14003a950
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14003a8d0
ud2

Function at 0x14002a8e0
Capabilities:
Parse pe header

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

Function at 0x14002f124
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002ef20
Function at 0x1400321ec
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14003221c
xor eax, eax
jmp 0x1400322df
mov rbp, rbx
cmp word [rax], si
je 0x140032241
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140032228
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140032224
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14003210c
movsxd r14, eax
test eax, eax
jne 0x14003227f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140032215
mov rcx, r14
call fcn.1400330c8
mov rdi, rax
test rax, rax
jne 0x140032298
xor ecx, ecx
call fcn.14003076c
jmp 0x140032274
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14003210c
test eax, eax
jne 0x1400322c9
mov rcx, rdi
call fcn.14003076c
jmp 0x1400322d3
xor ecx, ecx
call fcn.14003076c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400357d0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400311dc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14003585a
cmp byte [rbp - 0x21], r15b
je 0x140035855
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140035890
call fcn.1400338d8
test eax, eax
jne 0x14003587c
cmp byte [rbp - 0x21], r15b
je 0x140035874
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140035890
cmp byte [rbp - 0x21], r15b
je 0x14003588d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400307bc
test eax, eax
jne 0x140035930
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400311dc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400358cf
cmp byte [rbp - 0x21], r15b
je 0x140035904
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140035904
call fcn.1400338d8
test eax, eax
jne 0x1400358f0
cmp byte [rbp - 0x21], r15b
je 0x1400358e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140035904
cmp byte [rbp - 0x21], r15b
je 0x140035901
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400307bc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140035930
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140035933
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140035941
mov rcx, rdi
call fcn.14003076c
cmp byte [rbp + 0x3f], r15b
je 0x140035950
mov rcx, qword [rbp + 0x27]
call fcn.14003076c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140038830
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140038858
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140038858
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400036eb
Capabilities:
Parse pe header

Disassembly:
sub rax, 0
xor rax, 0
mov rax, rax
sub rax, 0
mov rax, rax
nop
sub rax, 0
or rax, 0
xor rax, 0
nop
or rax, rax
sub rax, 0
or rax, 0
or rax, rax
nop
or rax, rax
sub rax, 0
or rax, rax
add rax, 0
xor rax, 0
mov rax, rax
or rax, 0
or rax, 0
or rax, rax
sub rax, 0
add rax, 0
xor rax, 0
or rax, rax
xor rax, 0
or rax, rax
or rax, 0
add rax, 0
sub rax, 0
sub rax, 0
mov rax, rax
or rax, rax
add rax, 0
or rax, 0
add rax, 0
xor rax, 0
sub rax, 0
or rax, rax
or rax, rax
nop
xor rax, 0
mov rax, rax
mov rax, rax
sub rax, 0
or rax, 0
add rax, 0
or rax, rax
or rax, rax
mov rax, rax
xor rax, 0
sub rax, 0
xor rax, 0
mov rax, rax
mov rax, rax
xor rax, 0
cmp word [rcx], 0x5a4d
jne 0x14000387e
add rax, 0
or rax, rax
or rax, 0
nop
nop
or rax, 0
sub rax, 0
nop
nop
sub rax, 0
nop
mov rax, rax
or rax, rax
or rax, 0
xor rax, 0
movsxd rax, dword [rcx + 0x3c]
or rdx, 0
or rdx, 0
xchg rdx, rdx
nop
xor rdx, 0
nop
xor rdx, 0
or rdx, rdx
or rdx, 0
nop
xor rdx, 0
or rdx, 0
xor rdx, 0
sub rdx, 0
xor rdx, 0
xchg rdx, rdx
xor rdx, 0
sub rdx, 0
or rdx, rdx
sub rdx, 0
cmp dword [rax + rcx], 0x4550
jne 0x140003893
add rax, rcx
nop
mov rcx, rcx
nop
mov rcx, rcx
or rcx, 0
nop
mov rcx, rcx
nop
xchg rcx, rcx
xor rcx, 0
xchg rcx, rcx
xchg rcx, rcx
add rcx, 0
mov rcx, rcx
or rcx, rcx
xchg rcx, rcx
mov rcx, rcx
add rcx, 0
nop
xor rcx, 0
xor rcx, 0
xor rcx, 0
ret
or rax, rax
xor rax, 0
nop
mov rax, rax
nop
or rax, 0
mov rax, rax
jmp 0x1400038dc
sub rax, 0
nop
sub rax, 0
or rax, rax
sub rax, 0
nop
sub rax, 0
sub rax, 0
mov rax, rax
or rax, rax
or rax, 0
mov rax, rax
nop
xor rax, 0
mov rax, rax
xor rax, 0
nop
xor rax, 0
sub rax, 0
or rax, rax
or rax, 0
or rax, rax
xor rax, 0
xor eax, eax
ret
Function at 0x140010139
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
lea rcx, [0x14001a040]
call fcn.140010170
mov ecx, eax
add rsp, 0x28
jmp fcn.1400179f8

Function at 0x140010154
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
call fcn.140010170
mov ecx, eax
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.1400179f0

Function at 0x140010170
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [rcx + 0x18]
test eax, eax
je 0x1400158c2
dec eax
ret
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x140015939
lea r8, [rsp + 0x2c]
and dword [r8], 0
lea rbx, [rsi + 0x10]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x140015980
cmp dword [rsp + 0x2c], 0
je 0x140015961
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140015970
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14017a0c8]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14017a0c8], rsi
jne 0x140015914
mov byte [0x14017a0c0], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x140015966
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140015980
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x140015966
mov esi, eax
mov ecx, edi
call sub.KERNEL32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x140015966
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
ud2
Function at 0x140010bd9
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
call fcn.140012fb6
test rax, rax
je 0x140010c11
mov edx, 4
mov rcx, rax
call fcn.14000abd0
jmp 0x140010c4a
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
lea rdx, [rsp + 0x40]
movups xmmword [rdx + 0x10], xmm1
movups xmmword [rdx], xmm0
lea rbx, [rsp + 0x70]
mov rcx, rbx
call fcn.1400100f7
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movaps xmmword [rdi + 0x20], xmm2
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi], xmm0
and qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov rdx, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
jmp fcn.1400101bd
Function at 0x140012fb6
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov r12d, 0x20
xor esi, esi
mov r13d, 0xffffffff
test r12, r12
je 0x140013047
mov r14, rdi
cmp r12, r13
mov r15d, 0xffffffff
cmovb r15, r12
add rdi, r15
sub r12, r15
xor ecx, ecx
mov rdx, r14
mov r8d, r15d
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x140012fd6
mov ebx, eax
mov rcx, r14
mov edx, r15d
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140012fd6
xor ebx, 0x80000000
je 0x140013045
mov al, byte [0x14017a058]
mov ecx, 4
mov edx, 4
call fcn.14000ab40
test rax, rax
je 0x14001305a
mov rsi, rax
mov dword [rax], ebx
jmp 0x140013047
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x14001587f
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140010170
mov ecx, eax
add rsp, 0x28
jmp fcn.1400179f8

Function at 0x1400158c2
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [rcx + 0x18]
test eax, eax
je 0x1400158c2
dec eax
ret
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x140015939
lea r8, [rsp + 0x2c]
and dword [r8], 0
lea rbx, [rsi + 0x10]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x140015980
cmp dword [rsp + 0x2c], 0
je 0x140015961
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140015970
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14017a0c8]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14017a0c8], rsi
jne 0x140015914
mov byte [0x14017a0c0], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x140015966
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140015980
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x140015966
mov esi, eax
mov ecx, edi
call sub.KERNEL32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x140015966
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
ud2