joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005aa0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000f010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140005acd
xor eax, eax
jmp 0x140005c39
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140005b07
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140005b07
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140005c39
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140005c2c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140005b4a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140005b75
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140005c31
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005be4
sub eax, 1
je 0x140005be4
cmp eax, 2
jne 0x140005c2c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140005c31
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005c12
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140005c2c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140005c31
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140008690
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400060c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000f010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140006193
cmp byte [rcx + 0x71], 0
je 0x140006193
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000618f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140006154
sub eax, 1
je 0x140006158
cmp eax, 2
jne 0x14000618f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140008690
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140006186
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000618f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000613c
xor al, al
jmp 0x14000613c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140008690
add rsp, 0x60
pop rbx
ret

Function at 0x140008028
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400080ac
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000a570]
cmp byte [rcx + rax], 0
je 0x1400080ac
dec r8
sub rdx, 1
jne 0x140008092
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140009144
Capabilities:
Parse pe header

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

Disassembly:
cmp rcx, qword [0x1400280a8]
jne 0x14000f2ba
rol rcx, 0x10
test cx, 0xffff
jne 0x14000f2b6
repz ret
ror rcx, 0x10
jmp 0x14000fbb4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400ae700]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400ae7f8]
mov qword [rsp + 0x58], rax
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 0x14000fc39
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, [0x1400ae700]
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 0x14000fc5b
mov rax, qword [rsp + 0x88]
mov qword [0x1400ae7f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400ae798], rax
mov rax, qword [0x1400ae7f8]
mov qword [0x1400ae670], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400ae780], rax
mov dword [0x1400ae660], 0xc0000409
mov dword [0x1400ae664], 1
mov rax, qword [0x1400280a8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400280b0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400ae6f8], eax
mov ecx, 1
call fcn.1400118f4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140017340]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400ae6f8], 0
jne 0x14000fce2
mov ecx, 1
call fcn.1400118f4
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 0x1400104f0
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140010360
Function at 0x140012478
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1400280a8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14001149c
xor ebx, ebx
cmp qword [0x1400af670], rbx
mov rdi, rax
jne 0x14001258b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140012662
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140012662
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400af670], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400af678], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1400af680], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1400af690], rax
test rax, rax
je 0x140012582
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1400af688], rax
jmp 0x140012592
mov rax, qword [0x1400af688]
jmp 0x140012599
mov rax, qword [0x1400af688]
mov r11, qword [0x1400af690]
cmp rax, rdi
je 0x140012600
cmp r11, rdi
je 0x140012600
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1400af690]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140012600
test rax, rax
je 0x140012600
call rsi
test rax, rax
je 0x1400125fa
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400125fa
test byte [rsp + 0x40], 1
jne 0x140012600
bts ebp, 0x15
jmp 0x140012640
mov rcx, qword [0x1400af678]
cmp rcx, rdi
je 0x140012640
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140012640
call rax
mov rbx, rax
test rax, rax
je 0x140012640
mov rcx, qword [0x1400af680]
cmp rcx, rdi
je 0x140012640
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140012640
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400af670]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140012662
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140012664
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000f2a0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400778f0
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
movzx r8d, word [rcx]
movsxd rax, dword [rcx + 0x3c]
xor r9d, r9d
test rax, rax
setne r9b
xor r10d, r10d
cmp r8d, 0x5a4d
lea r9d, [r9 + r9*4 + 1]
cmovne r9d, r10d
cmp r9b, 6
jne 0x1400779ca
cmp eax, 0x40
jb 0x140077b5d
cmp rax, rdx
ja 0x140077b73
movzx r8d, word [rax + rcx + 0x18]
cmp r8d, 0x20b
je 0x14007799b
mov r9b, 5
cmp r8d, 0x10b
jne 0x1400779ca
mov r9b, 2
cmp dword [rcx + rax], 0x4550
jne 0x1400779ca
lea r8, [rcx + rax]
movzx r10d, word [r8 + 4]
mov r9b, 3
cmp r10d, 0x14c
jne 0x1400779ca
movzx esi, word [r8 + 0x16]
mov r9b, 4
test sil, 2
je 0x1400779ca
mov r11d, 0x138
mov bl, 1
xor r9d, r9d
jmp 0x1400779f8
mov r9b, 2
cmp dword [rcx + rax], 0x4550
jne 0x1400779ca
lea r8, [rcx + rax]
movzx r10d, word [r8 + 4]
mov r9b, 3
cmp r10d, 0x8664
jne 0x1400779ca
movzx esi, word [r8 + 0x16]
mov r9b, 4
test sil, 2
jne 0x1400779ea
movzx eax, r9b
shl rax, 0x20
or rax, 0xb
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r11d, 0x148
mov r9d, 1
xor ebx, ebx
lea r14, [rax - 0x40]
add r11, r14
cmp r11, rdx
ja 0x140077b84
mov qword [rsp + 0x38], r9
mov r10, rdx
sub r10, r11
movzx r12d, word [rcx + rax + 6]
lea r9, [r12*8]
lea r9, [r9 + r9*4]
mov r15, r10
sub r15, r9
jb 0x140077b95
lea r10, [rcx + 0x40]
mov rdi, rcx
shr rdi, 8
add r11, rcx
add r9, r11
mov rbp, r12
shr rbp, 8
mov dword [rsp + 0x41], edi
mov r13, rdi
shr r13, 0x30
mov byte [rsp + 0x47], r13b
shr rdi, 0x20
mov word [rsp + 0x45], di
mov qword [rsp + 0x48], r10
mov byte [rsp + 0x40], cl
mov qword [rsp + 0x50], r14
mov r10, qword [rsp + 0x38]
mov qword [rsp + 0x58], r10
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r11
mov byte [rsp + 0x70], r12b
mov dword [rsp + 0x71], ebp
mov byte [rsp + 0x77], 0
mov word [rsp + 0x75], 0
mov qword [rsp + 0x78], r9
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x90], rdx
test bl, bl
je 0x140077ac9
mov ecx, 6
xor eax, eax
or rax, rcx
jmp 0x1400779d6
test esi, 0x2000
jne 0x140077af4
cmp dword [rcx + rax + 0xfc], 0
je 0x140077b03
cmp dword [rcx + rax + 0xf8], 0
je 0x140077b03
xor eax, eax
mov ecx, 9
or rax, rcx
jmp 0x1400779d6
mov ecx, 7
xor eax, eax
or rax, rcx
jmp 0x1400779d6
mov esi, dword [rcx + rax + 0x28]
test rsi, rsi
je 0x140077b29
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x40]
call fcn.140077080
cmp dword [rsp + 0x28], 0
jne 0x140077b38
mov rax, qword [rsp + 0x30]
jmp 0x140077b3c
xor eax, eax
mov ecx, 8
or rax, rcx
jmp 0x1400779d6
mov eax, dword [rsp + 0x30]
je 0x140077b4e
mov ecx, dword [rsp + 0x2c]
shl rax, 0x20
or rax, rcx
jmp 0x1400779d6
add rax, rsi
call rax
mov eax, 0xe
jmp 0x1400779d6
lea r8, [0x140ac1c60]
mov ecx, 0x40
mov rdx, rax
call fcn.1400bff30
ud2
lea r8, [0x140ac1c60]
mov rcx, rax
call fcn.1400bfeb0
ud2
lea r8, [0x140ac1ca0]
mov rcx, r11
call fcn.1400bfe30
ud2
lea r8, [0x140ac1ce8]
mov rcx, r9
mov rdx, r10
call fcn.1400bfe30
ud2
Function at 0x14008a330
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x140b01f81]
mov ecx, 0x10
mov edx, 8
call fcn.140077020
test rax, rax
je 0x14008a40f
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14008a4a0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14008a401
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14008a3d8
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.140077030
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call fcn.140077030
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.1400bf840
ud2
Function at 0x14008f5b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
movzx ebp, byte [rdx + 0x38]
cmp bpl, 1
ja 0x14008f60d
movzx ebx, byte [rdi + 0x3a]
mov rcx, rdi
call fcn.14008f490
test bpl, bpl
jne 0x14008f611
lea rcx, [rdi + 0x10]
xor r8d, r8d
cmp byte [rdi + 0x10], 6
cmove rcx, r8
je case.0x14008f601.2
movzx edx, byte [rcx]
mov r8d, 6
lea r9, [0x14008f784]
movsxd rdx, dword [r9 + rdx*4]
add rdx, r9
jmp rdx
mov r8, qword [rcx + 0x10]
add r8, 4
jmp case.0x14008f601.2
xor eax, eax
xor ebx, ebx
xor r8d, r8d
movzx r10d, bl
movzx ebx, al
lea rcx, [r10 + rbx]
add rcx, r8
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14008f768
mov r11, qword [rdi]
lea rax, [r11 + rcx]
cmp rdx, rcx
jne 0x14008f648
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x14008f6c9
movzx r9d, byte [rdi + 0x10]
add r8, rbx
add r8, r10
sub r8, rdx
inc r8
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x14008f690
nop dword [rax]
cmp byte [rdi], 0x5c
je 0x14008f6ab
inc r8
dec rdi
cmp r8, 1
jne 0x14008f670
jmp 0x14008f6c9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14008f6ab
cmp ebx, 0x5c
je 0x14008f6ab
inc r8
dec rdi
cmp r8, 1
jne 0x14008f690
jmp 0x14008f6c9
neg r8
add rcx, r8
inc rcx
cmp rdx, rcx
jb 0x14008f776
add r11, rcx
mov r10d, 1
mov rax, r11
sub rdx, rcx
je 0x14008f6f2
mov cl, 9
cmp rdx, 2
je 0x14008f6f6
cmp rdx, 1
jne 0x14008f705
cmp byte [rax], 0x2e
jne 0x14008f705
xor ecx, ecx
cmp r9b, 3
setae cl
lea ecx, [rcx + rcx*2]
add ecx, 7
jmp 0x14008f705
mov cl, 0xa
jmp 0x14008f705
cmp byte [rax], 0x2e
jne 0x14008f705
cmp byte [rax + 1], 0x2e
sete cl
xor cl, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], cl
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rdx, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
lea r8, [rcx + 1]
test rcx, rcx
cmove r8, rcx
add r8, rdx
add r8, 8
jmp case.0x14008f601.2
mov rdx, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
lea r8, [rcx + 1]
test rcx, rcx
cmove r8, rcx
add r8, rdx
add r8, 2
jmp case.0x14008f601.2
mov r8d, 2
jmp case.0x14008f601.2
lea r8, [0x140ac5920]
call fcn.1400bfe30
ud2
lea r8, [0x140ac5908]
call fcn.1400bfe30
ud2
Function at 0x140092b10
Capabilities:
Query environment variable

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 rax, qword [rdx]
mov qword [rbp + 0x3c0], rax
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor r14d, r14d
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x140092bb0
jmp 0x140092b9f
jae 0x140092c76
cmp r8, 0x201
jae 0x140092bb0
mov r15d, 0x200
lea rdi, [rbp - 0x60]
mov r12, r8
jmp 0x140092c08
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x140092bdf
lea rcx, [rbp + 0x3c8]
mov rdx, r13
call fcn.1400bead0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov r14, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp r14, rax
mov r13d, 0xffffffff
cmovb r13, r14
mov qword [rbp + 0x3d8], r13
mov rbx, r14
mov r15, r13
mov rdi, qword [rbp + 0x3e8]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rbp + 0x3c0]
mov rdx, rdi
mov r8d, r12d
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x140092c37
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140092cde
mov r8d, esi
cmp r12, r8
jne 0x140092b90
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140092d01
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x140092b9f
jmp 0x140092bb0
cmp r15, r8
jb 0x140092d1b
lea rcx, [rbp + 0x3a0]
mov rdx, rdi
call fcn.140095ff0
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test r14, r14
je 0x140092cc7
add r14, r14
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, r14
call fcn.140077030
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 r14, r14
jne 0x140092caf
jmp 0x140092cc7
lea rcx, [0x140ac5d60]
lea r8, [0x140ac5e28]
mov edx, 0x28
call fcn.1400bfa20
jmp 0x140092d30
lea rax, [0x140ac5e10]
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.1400bfeb0
ud2

Function at 0x140093370
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 0x140093400
jmp 0x1400933ef
Function at 0x140095510
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140095548
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.140095560
nop
add rsp, 0x38
ret

Function at 0x140095560
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 0x1400955a3
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, [0x14008c690]
mov qword [rbp - 0x28], rax
lea rax, [0x140ac64a8]
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, [0x140ac64e0]
lea rcx, [rbp - 0x60]
call fcn.1400bf980
ud2

Function at 0x1400976d0
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 [0x140ac68c8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140097714
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 0x14009777a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400977b1
test eax, eax
js 0x14009778b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400977a4
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 byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x140ac6928]
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.14008e3c0
mov rcx, rax
call fcn.140087b30
mov ecx, 7
int 0x29
ud2