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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x024a9030], 1
mov r12d, eax
je 0x17d96bc
call fcn.017d87c0
mov ecx, dword [0x01b79198]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x17d9798
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.017d7f00
cmp dword [rbx + 0x48], esi
jbe 0x17d9720
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], rbp
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.017d7f40
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x17d97a5
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x17d97a5
mov eax, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
sub r8d, eax
lea rcx, [rdi + rax*8]
shl r8, 3
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x17d96e9
call fcn.017d8870
mov rbx, rax
jmp 0x17d96d4
mov rcx, r13
call fcn.017d7f40
mov eax, 0xc
jmp 0x17d9708

Function at 0x17d9830
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x024a9030], 1
je 0x17d9842
call fcn.017d87c0
mov ecx, dword [0x01b79198]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x17d9860
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.017d8870
test rax, rax
jne 0x17d9853
add rsp, 0x28
ret

Function at 0x17d98d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x024a9030], 1
je 0x17d98e2
call fcn.017d87c0
mov ecx, dword [0x01b79198]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x17d9900
add rax, 0x18
add rsp, 0x28
ret
call fcn.017d8870
test rax, rax
jne 0x17d98f3
jmp 0x17d98f7

Function at 0x17d9a20
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x024a9038]
test eax, eax
jne 0x17d9a38
xor eax, eax
add rsp, 0x28
ret
cmp dword [0x024a9030], 1
je 0x17d9a46
call fcn.017d87c0
mov ecx, dword [0x01b79198]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x17d9a70
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x17d9a2e
test byte [rax + 0x40], 3
je 0x17d9a2e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x17d9a30
call fcn.017d8870
test rax, rax
je 0x17d9a2e
jmp 0x17d9a57
Function at 0x17d9a80
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x024a9030], 1
mov ebx, ecx
je 0x17d9a95
call fcn.017d87c0
mov ecx, dword [0x01b79198]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x17d9ad0
add rax, 0x20
test ebx, ebx
jle 0x17d9ac0
lock add dword [rax], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax], 1
add rsp, 0x20
pop rbx
ret
call fcn.017d8870
test rax, rax
jne 0x17d9aa6
add rsp, 0x20
pop rbx
ret

Function at 0x17d9bd0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbx
sub rsp, 0x28
cmp dword [0x024a9030], 1
je 0x17d9be5
call fcn.017d87c0
mov ecx, dword [0x01b79198]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x17d9c50
test byte [rbx + 0x40], 0xc
jne 0x17d9c09
mov eax, dword [0x024a9038]
test eax, eax
jne 0x17d9c18
add rsp, 0x28
pop rbx
pop r12
ret
lea r12, [rbx + 0x38]
mov rcx, r12
call fcn.017d7880
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x17d9c3b
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x17d9c3b
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x17d9c65
mov rcx, r12
add rsp, 0x28
pop rbx
pop r12
jmp fcn.017d7ba0
call fcn.017d8870
mov rbx, rax
test rax, rax
jne 0x17d9bf9
add rsp, 0x28
pop rbx
pop r12
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x17d9c83
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, r12
call fcn.017d7ba0
call fcn.017d9ae0
nop
nop word cs:[rax + rax]
nop dword [rax]
push r12
push rbx
sub rsp, 0x28
xor r12d, r12d
test rcx, rcx
je 0x17d9cc6
call fcn.017d7610
mov edx, 0xfffffffe
mov r12d, 0xffffffff
cmp rax, rdx
cmovbe r12d, eax
cmp dword [0x024a9030], 1
je 0x17d9cd4
call fcn.017d87c0
mov ecx, dword [0x01b79198]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x17d9d38
test r12d, r12d
je 0x17d9d18
call fcn.017d9bd0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x17d9d48
mov edx, r12d
call fcn.017d76d0
call fcn.017d9bd0
xor eax, eax
add rsp, 0x28
pop rbx
pop r12
ret
call fcn.017d9bd0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.017d9bd0
xor eax, eax
add rsp, 0x28
pop rbx
pop r12
ret
call fcn.017d8870
mov rbx, rax
jmp 0x17d9ce8
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x17d9d03
Function at 0x140001990
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x3a0
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rsp + 0x390], rax
xor edx, edx
mov ecx, 2
xor esi, esi
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
cmp qword [0x1400050f0], 7
lea r15, [0x1400050d8]
mov r14, qword [0x1400050e8]
mov rbx, r15
cmova rbx, qword [0x1400050d8]
mov rdi, rax
mov dword [rsp + 0x150], 0x238
mov rbp, 0xffffffffffffffff
test r14, r14
je 0x140001ac3
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, pe_nt_image_headers64
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x1400036a8]
mov edx, pe_nt_image_headers64
lea r8, [0x1400036aa]
movzx eax, word [rcx]
cmp ax, dx
jae 0x140001a7a
movzx eax, al
add rcx, 2
mov byte [rsp + rax + 0x50], 1
cmp rcx, r8
jne 0x140001a30
lea rcx, [r14 - 1]
mov rax, rbp
cmp rcx, rax
cmovb rax, rcx
lea rcx, [rbx + rax*2]
nop dword [rax + rax]
movzx eax, word [rcx]
cmp ax, dx
jae 0x140001a6f
cmp byte [rsp + rax + 0x50], sil
jne 0x140001abb
cmp rcx, rbx
je 0x140001ac3
sub rcx, 2
jmp 0x140001a60
lea rcx, [r14 - 1]
mov rax, rbp
cmp rcx, rax
cmovb rax, rcx
lea rcx, [rbx + rax*2]
nop dword [rax]
movzx r8d, word [rcx]
lea rax, [0x1400036a8]
mov edx, 1
cmp word [rax], r8w
je 0x140001abb
add rax, 2
sub rdx, 1
jne 0x140001aa0
cmp rcx, rbx
je 0x140001ac3
sub rcx, 2
jmp 0x140001a90
sub rcx, rbx
sar rcx, 1
jmp 0x140001ac6
mov rcx, rbp
inc rcx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
cmp r14, rcx
jb 0x140001be2
sub r14, rcx
cmp r14, rbp
cmovb rbp, r14
cmp qword [0x1400050f0], 7
mov r8, rbp
cmova r15, qword [0x1400050d8]
lea rdx, [r15 + rcx*2]
lea rcx, [rsp + 0x28]
call fcn.140001d60
lea rdx, [rsp + 0x150]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001b65
cmp qword [rsp + 0x40], 7
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x17c]
cmova rdx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140001b5e
lea rdx, [rsp + 0x150]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001b24
jmp 0x140001b65
mov esi, dword [rsp + 0x158]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x140001bb3
mov rcx, qword [rsp + 0x28]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bae
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000213c
mov eax, esi
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.140001ea0
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.140001d40
int3
Function at 0x140002a10
Capabilities:
Parse pe header

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

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140010331
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14001035e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140010360
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400103b9
test ecx, ecx
jle 0x140010399
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400103b9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400103b9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
invalid
Function at 0x1400103e0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140010402
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140010411
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140010434
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140010436
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140010472
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001050e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400104ad
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400104ee
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14001050e
cmp rbx, rax
ja 0x1400104c0
test rbx, rbx
je 0x14001050e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
invalid
Function at 0x140010970
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14014b140]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001099d
xor eax, eax
jmp 0x140010b09
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400109d7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400109d7
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 0x140010b09
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140010afc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140010a1a
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 0x140010a45
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 0x140010b01
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 0x140010ab4
sub eax, 1
je 0x140010ab4
cmp eax, 2
jne 0x140010afc
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 0x140010b01
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140010ae2
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 0x140010afc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140010b01
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14007bff0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140010f20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14014b140]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140010ff3
cmp byte [rcx + 0x71], 0
je 0x140010ff3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140010fef
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 0x140010fb4
sub eax, 1
je 0x140010fb8
cmp eax, 2
jne 0x140010fef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14007bff0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140010fe6
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 0x140010fef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140010f9c
xor al, al
jmp 0x140010f9c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14007bff0
add rsp, 0x60
pop rbx
ret

Function at 0x140016cb0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
call fcn.140016920
mov r11, rax
test rax, rax
je 0x140016d53
mov eax, 0x5a4d
cmp word [r11], ax
jne 0x140016d53
movsxd rcx, dword [r11 + 0x3c]
cmp dword [rcx + r11], 0x4550
jne 0x140016d53
mov eax, dword [rcx + r11 + 0x88]
test eax, eax
je 0x140016d53
mov ebx, dword [rax + r11 + 0x1c]
xor r9d, r9d
mov r10d, dword [rax + r11 + 0x20]
mov ebp, dword [rax + r11 + 0x24]
add r10, r11
add rbp, r11
lea rsi, [r11 + rbx]
test ebx, ebx
je 0x140016d53
nop dword [rax]
mov r8d, dword [r10]
mov rax, rdi
add r8, r11
sub r8, rdi
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140016d43
inc rax
test ecx, ecx
jne 0x140016d30
test edx, edx
je 0x140016d6a
inc r9d
add r10, 4
cmp r9d, ebx
jb 0x140016d20
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
movzx ecx, word [rbp + r9*2]
mov eax, dword [rsi + rcx*4]
add rax, r11
jmp 0x140016d55
Function at 0x140016d80
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x14014b140]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140016e0a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140016e0a
nop word [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140016e06
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140016de0
jmp 0x140016e0a
mov esi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14007bff0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140016e40
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14014b140]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor eax, eax
mov rdi, rcx
mov qword [rcx], rax
mov rsi, r8
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
lea ecx, [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140016eef
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x140016eef
nop dword [rax]
nop word [rax + rax]
mov rdx, rsi
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140016ed6
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x140016eb0
jmp 0x140016eef
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
mov edx, dword [rsp + 0x40]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rdx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14007bff0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140018220
Capabilities:
Create process on windows
Query environment variable
Self delete

Disassembly:
sub rsp, 0x268
mov rax, qword [0x14014b140]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14001831d
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x14001831d
lea rdx, str._c_del
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, str.____NUL
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, str.ComSpec
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x14001831d
mov qword [rsp + 0x260], rbx
lea r9, [rsp + 0x140]
xor ebx, ebx
lea r8, [rsp + 0x30]
mov dword [rsp + 0x28], ebx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
setg bl
mov eax, ebx
mov rbx, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14007bff0
add rsp, 0x268
ret
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14007bff0
add rsp, 0x268
ret
Function at 0x14001de10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14001de71
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14001de30
mov ecx, dword [r9]
jmp 0x14001df58
cmp ecx, 0x4e0
jb 0x14001df58
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x14001de90
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x14001dee0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x1400282e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x14014b140]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov byte [rcx + 8], 0
xorps xmm0, xmm0
movups xmmword [rcx + 9], xmm0
xor eax, eax
mov rsi, r9
movups xmmword [rcx + 0x19], xmm0
mov r14, rcx
mov rdi, rdx
movups xmmword [rcx + 0x29], xmm0
movups xmmword [rcx + 0x39], xmm0
movups xmmword [rcx + 0x49], xmm0
movups xmmword [rcx + 0x59], xmm0
mov dword [rcx + 0x69], eax
movups xmmword [rcx + 0x6d], xmm0
movups xmmword [rcx + 0x7d], xmm0
movups xmmword [rcx + 0x8d], xmm0
movups xmmword [rcx + 0x9d], xmm0
movups xmmword [rcx + 0xad], xmm0
movups xmmword [rcx + 0xbd], xmm0
mov dword [rcx + 0xcd], eax
lea rax, [rsp + 0x30]
mov qword [rcx], r9
mov r9d, 0x40
mov qword [rcx + 0xd8], rdx
mov dword [rcx + 0xe0], 3
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea r8d, [r9 - 0x3d]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r9d, 3
mov qword [rsp + 0x20], 0
lea r8, [r14 + 0x6d]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov r8d, 3
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
movabs rax, 0x9090909090909090
mov word [r14 + 9], ax
mov byte [r14 + 0xb], al
mov rax, r14
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14007bff0
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret