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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140064010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000ada3
cmp byte [rcx + 0x71], 0
je 0x14000ada3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000ad9f
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 0x14000ad64
sub eax, 1
je 0x14000ad68
cmp eax, 2
jne 0x14000ad9f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140048f00
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000ad96
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 0x14000ad9f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000ad4c
xor al, al
jmp 0x14000ad4c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140048f00
add rsp, 0x60
pop rbx
ret
Function at 0x140012da0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140012e6c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140012e6c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140012e85
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x140012e5c
cmp byte [rax], 0x5c
jne 0x140012e56
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140012e56
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140012e42
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140012e53
test r8b, 0x10
jne 0x140012e56
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140012e56
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14000ee80
test edi, edi
jne 0x140012dc0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.14000ee70
int3
Function at 0x1400466c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140064010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
mov rdi, rdx
mov ecx, 0x38
call fcn.1400491bc
movups xmm0, xmmword [rbx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rax + 0x20], xmm0
movsd xmm1, qword [rbx + 0x30]
movsd qword [rax + 0x30], xmm1
mov qword [rsp + 0x30], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140046790]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x140046753
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140048f00
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1400472e0
Capabilities:
Get system information on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x128
mov rax, qword [0x140064010]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rdi, r9
mov r15, r8
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x80], r9
mov rbp, qword [rcx]
test rbp, rbp
jne 0x140047362
lea rdx, str.Failed_to_open_the_process._Error_code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400021d0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x14000b8f0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
xor ebx, ebx
jmp 0x14004743b
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
xor ebx, ebx
mov qword [rsp + 0x70], rbx
mov rcx, qword [r9 + 0x38]
test rcx, rcx
je 0x14004738b
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
call qword [rax]
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x38]
mov rdx, r15
mov rcx, qword [r14]
call fcn.140046d50
mov r8d, 0x48
lea rdx, [rsp + 0xc0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_K32GetProcessMemoryInfo]
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x70], rbx
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x1400473e7
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
call qword [rax]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0xf8], rbx
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14004741d
mov rax, qword [rcx]
lea rdx, [rsp + 0xc0]
call qword [rax]
mov qword [rsp + 0xf8], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9, r15
lea r8, [rsp + 0xc0]
mov rcx, rbp
call fcn.1400467c0
nop
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140047457
cmp rcx, rsi
sete dl
mov rax, qword [rcx]
xor dl, 1
call qword [rax + 0x20]
mov qword [rsi + 0x38], rbx
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140047470
cmp rcx, rdi
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], rbx
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140048f00
add rsp, 0x128
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140047c90
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x140064010]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor r14d, r14d
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
mov dword [rsp + 0x20], 1
movups xmmword [rsp + 0x70], xmm0
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
mov rcx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rax
test rax, rax
jne 0x140047d1b
jmp 0x140047ebd
mov dword [rbp - 0x80], 0x238
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdi + r8*2], 0
jne 0x140047d40
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14000beb0
nop
lea rdx, [rbp - 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140047e55
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
lea rax, [rbp - 0x54]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140047d90
lea rdx, [rbp - 0x54]
lea rcx, [rsp + 0x50]
call fcn.14000beb0
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140047dfe
mov eax, dword [rbp - 0x78]
mov dword [rsp + 0x24], eax
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x140047df0
mov dword [rdx], eax
add qword [rbx + 8], 4
jmp 0x140047dfe
lea r8, [rsp + 0x24]
mov rcx, rbx
call fcn.140047f10
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140047e3c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047e37
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140047e4e
call fcn.140049448
lea rdx, [rbp - 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x140047d66
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov dword [rsp + 0x20], r14d
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140047e9f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047e9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140047e9a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140049448
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, rbx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140048f00
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400485b4
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 0x140048638
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140050b40]
cmp byte [rcx + rax], 0
je 0x140048638
dec r8
sub rdx, 1
jne 0x14004861e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140049c84
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140049cce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140049cce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140049cce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140049cce
cmp dword [rcx + 0x84], 0xe
jbe 0x140049cce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140049cd0
xor al, al
add rsp, 0x28
ret
Function at 0x140002008
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400530c0], 0
je 0x14000202b
mov edx, 1
jmp 0x1400021f3
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
xor edx, edx
mov rcx, qword [rax + 0x10]
xor eax, eax
mov rbx, qword [rcx + 0x30]
test rbx, rbx
je 0x14000208e
movsxd rdx, dword [rbx + 0x3c]
mov edx, dword [rbx + rdx + 0x88]
test edx, edx
je 0x140002086
lea rax, [rdx + rbx]
mov edx, dword [rax + 0xc]
add rdx, rbx
mov r8d, dword [rdx]
or r8d, 0x20202020
cmp r8d, 0x6c64746e
jne 0x140002086
mov edx, dword [rdx + 4]
or edx, 0x20202020
cmp edx, 0x6c642e6c
je 0x140002091
mov rcx, qword [rcx]
mov rdx, rbx
jmp 0x140002040
mov rbx, rdx
xor edx, edx
test rax, rax
je 0x1400021f3
mov ebp, dword [rax + 0x1c]
lea r13, [0x1400530c8]
xor esi, esi
mov edi, dword [rax + 0x24]
mov edx, dword [rax + 0x18]
mov eax, dword [rax + 0x20]
add rbp, rbx
add rdi, rbx
lea r10d, [rdx - 1]
add rax, rbx
lea r12, [rax + r10*4]
add r10, r10
add r10, rdi
mov ecx, dword [r12]
add rcx, rbx
cmp word [rcx], 0x775a
jne 0x140002104
call fcn.140001f50
mov r11d, esi
inc esi
shl r11, 4
add r11, r13
mov dword [r11], eax
movzx eax, word [r10]
mov eax, dword [rbp + rax*4]
mov dword [r11 + 4], eax
xor eax, eax
cmp esi, 0x1f4
mov qword [r11 + 8], rax
je 0x140002116
lea rax, [r10 - 2]
sub r12, 4
cmp rdi, r10
je 0x140002116
mov r10, rax
jmp 0x1400020c8
mov dword [0x1400530c0], esi
lea ebp, [rsi - 1]
lea r10, [0x1400530c8]
test ebp, ebp
je 0x14000217d
lea rdx, [0x1400530c0]
xor ecx, ecx
lea eax, [rcx + 1]
mov r8d, dword [rdx + 0xc]
mov rcx, rax
shl rax, 4
add rax, r10
mov r9d, dword [rax + 4]
cmp r9d, r8d
jae 0x140002171
mov edi, dword [rdx + 8]
mov r11, qword [rdx + 0x10]
mov r12d, dword [rax]
mov dword [rdx + 0xc], r9d
mov r9, qword [rax + 8]
mov dword [rdx + 8], r12d
mov qword [rdx + 0x10], r9
mov dword [rax], edi
mov dword [rax + 4], r8d
mov qword [rax + 8], r11
add rdx, 0x10
cmp ecx, ebp
jb 0x140002133
dec ebp
jmp 0x140002126
mov eax, dword [0x1400530cc]
lea r15, [0x14004fc20]
xor edi, edi
mov r13d, dword [0x1400530dc]
lea r12, [rbx + rax]
sub r13d, eax
cmp edi, r13d
mov r14d, edi
jae 0x140002021
lea rdx, [r12 + rdi]
mov r8d, 3
mov rcx, r15
call sub.msvcrt.dll_memcmp
inc rdi
test eax, eax
jne 0x14000219a
lea rdi, [0x1400530c0]
test r14d, r14d
je 0x140002021
add rdi, 0x10
cmp esi, ebp
je 0x140002021
mov ecx, dword [rdi - 4]
mov r8d, r13d
mov edx, r14d
inc ebp
add rcx, rbx
call fcn.140001f78
mov qword [rdi], rax
jmp 0x1400021cf
mov eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400028e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, 0x2a
mov r8d, 0x17
mov edx, 0x402
mov ecx, eax
call qword [sym.imp.USER32.dll_PostThreadMessageA]
xor eax, eax
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x1400029b5
cmp dword [rsp + 0x38], 0x402
jne 0x1400029b5
cmp qword [rsp + 0x40], 0x17
jne 0x1400029b5
cmp qword [rsp + 0x48], 0x2a
jne 0x1400029b5
mov rsi, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rsi
mov ecx, 0x28a
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
call rsi
sub eax, 0x258
sub eax, ebx
cmp eax, 0x12b
ja 0x1400029b5
mov r12, qword [str.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA]
movsxd rbp, dword [r12 + 4]
lea rsi, [r12 + 0x18]
mov rcx, rbp
call sub.msvcrt.dll_malloc
lea r8, [r12 + 8]
mov rcx, rbp
mov edx, ebp
mov rdi, rax
mov rbx, rax
rep movsb byte [rdi], byte [rsi]
mov rcx, rax
call fcn.1400016ca
mov rcx, rbx
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_free
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x140002c90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.140003b00
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.140003b00
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 0x140002d00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140055084]
test esi, esi
mov rbx, rcx
jle 0x140002e30
mov rax, qword [0x140055088]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002d4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002dd5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002d30
mov rcx, rbx
call fcn.140003770
test rax, rax
mov rdi, rax
je 0x140002e52
mov rax, qword [0x140055088]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400038b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140055088]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002e37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002dce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002de0
add dword [0x140055084], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140055088]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002dce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002c90
nop dword [rax]
xor esi, esi
jmp 0x140002d58
mov rax, qword [0x140055088]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140002c90
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140002c90
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400033c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400550e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400550c0]
test rbx, rbx
je 0x14000341c
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 0x140003413
test rsi, rsi
je 0x140003413
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400033f8
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 0x140003630
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140003668
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140003670
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140003640
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140003668
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140003670
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140003650
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140003668
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140003670
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140003770
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400503b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003790
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003798
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003790
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400037ed
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]
cmp rcx, r8
mov rdx, r8
jb 0x1400037e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003790
add rax, 0x28
cmp rax, r9
jne 0x1400037d0
xor eax, eax
ret

Function at 0x1400037f0
Capabilities:
Parse pe header

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

Function at 0x1400038b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400503b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400038cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400038d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
mov ecx, dword [rax + 0x18]
push rax
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
add rax, rdx
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140002340
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ecx, ecx
mov rdi, rdx
mov dword [rsp + 0x5c], ecx
mov word [rsp + 0x60], cx
mov word [r11 - 0x20], r8w
sar r8d, 0x10
mov word [r11 - 0x1e], r8w
test rdx, rdx
je 0x14000241f
mov qword [r11 - 0x38], rcx
lea rax, [r11 - 0x28]
mov qword [r11 - 0x40], rax
lea rdx, str.SOFTWAREAMDDVR
mov qword [r11 - 0x48], rcx
xor r9d, r9d
mov qword [r11 - 0x28], rcx
xor r8d, r8d
mov qword [r11 + 8], rbx
xor bl, bl
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140002401
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 1
movzx ebx, bl
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140005ef0
add rsp, 0x70
pop rdi
ret
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140005ef0
add rsp, 0x70
pop rdi
ret