joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140062dd0
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
sub rsp, 0xa0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
mov rax, qword [0x1400884f8]
cmp byte [rax + 0x45], 0
je 0x140062fe0
cmp byte [rax + 0x4c], 0
mov ebp, 2
je 0x140062e1b
mov ecx, ebp
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
je 0x140062fe0
mov rdx, qword [0x1400884e0]
lea rcx, [rsp + 0x20]
xorps xmm0, xmm0
mov qword [rsp + 0x28], 0
xorps xmm1, xmm1
movaps xmmword [rsp + 0x30], xmm0
xorps xmm8, xmm8
movaps xmmword [rsp + 0x40], xmm1
mov rdx, qword [rdx + 0xc8]
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 0
call fcn.14005b800
test al, al
jne 0x140062e77
mov rax, qword [0x1400884e0]
xor ebx, ebx
mov qword [rax + 0xc8], rbx
jmp 0x140062fe0
movss xmm7, dword [rsp + 0x58]
ucomiss xmm7, xmm8
movss xmm6, dword [rsp + 0x5c]
jp 0x140062e97
jne 0x140062e97
ucomiss xmm6, xmm8
jp 0x140062e97
je 0x140062fe0
mov rax, qword [0x1400884e0]
movd xmm0, dword [rax + 0xb8]
cvtdq2ps xmm0, xmm0
subss xmm7, xmm0
movd xmm0, dword [rax + 0xbc]
cvtdq2ps xmm0, xmm0
comiss xmm8, xmm7
subss xmm6, xmm0
ja 0x140062fe0
comiss xmm8, xmm6
ja 0x140062fe0
movaps xmm1, xmm6
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll__hypotf
mov rbx, qword [0x1400884f8]
movd xmm2, dword [rbx + 0x1c]
cvtdq2ps xmm2, xmm2
comiss xmm0, xmm2
ja 0x140062fe0
movaps xmm1, xmm6
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll__hypotf
movd xmm1, dword [rbx + 0x50]
cvtdq2ps xmm1, xmm1
comiss xmm0, xmm1
ja 0x140062fe0
mov ecx, dword [rbx + 0x48]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
mov rax, qword [0x1400884f8]
je 0x140062fc6
cmp byte [rax + 0x4d], 0
je 0x140062f50
mov rbx, qword [0x1400884e0]
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
sub rax, qword [rbx + 0xd0]
cmp rax, 0xd59f80
jl 0x140062fe0
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], rdi
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, qword [0x1400884e0]
xor ebx, ebx
mov qword [rcx + 0xd0], rax
mov rsi, qword [0x1400884f0]
mov dword [rsi + 0xc], 1
lea r8, [rsi + 0xc]
mov qword [rsi + 0x14], rbx
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
call fcn.14005d840
cmp eax, 1
jne 0x140062fb2
mov dword [rsi + 0xc], ebp
lea r8, [rsi + 0xc]
mov qword [rsi + 0x14], rbx
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
call fcn.14005d840
mov rdi, qword [rsp + 0xb8]
mov al, 1
mov rsi, qword [rsp + 0xb0]
jmp 0x140062fe2
cmp byte [rax + 0x4d], 0
je 0x140062fe0
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, qword [0x1400884e0]
mov qword [rcx + 0xd0], rax
xor al, al
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop rbp
ret

Function at 0x140063160
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x28
ret
Function at 0x140066550
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140087010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor esi, esi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
lea ecx, [rsi + 0x20]
call fcn.1400683a0
mov dword [rax], 1
mov dword [rax + 4], 2
xor ecx, ecx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rsi
mov dword [rax + 0x18], esi
mov qword [rdi + 0x10], rax
lea ecx, [rsi + 0x10]
call fcn.1400683a0
mov r9, rax
mov rax, qword [0x1400884f0]
mov qword [r9], rax
mov rax, qword [rbx]
mov qword [r9 + 8], rax
mov qword [rsp + 0x38], r9
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], esi
lea r8, [0x1400668b0]
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 0x14006660e
mov rax, rdi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140068380
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov dword [rbx], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x140066620
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140087010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor esi, esi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
lea ecx, [rsi + 0x20]
call fcn.1400683a0
mov dword [rax], 1
mov dword [rax + 4], 2
xor ecx, ecx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rsi
mov dword [rax + 0x18], esi
mov qword [rdi + 0x10], rax
lea ecx, [rsi + 0x10]
call fcn.1400683a0
mov r9, rax
mov rax, qword [0x140088500]
mov qword [r9], rax
mov rax, qword [rbx]
mov qword [r9 + 8], rax
mov qword [rsp + 0x38], r9
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], esi
lea r8, [0x1400668b0]
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 0x1400666de
mov rax, rdi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140068380
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov dword [rbx], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1400666f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140087010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor esi, esi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
lea ecx, [rsi + 0x20]
call fcn.1400683a0
mov dword [rax], 1
mov dword [rax + 4], 2
xor ecx, ecx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rsi
mov dword [rax + 0x18], esi
mov qword [rdi + 0x10], rax
lea ecx, [rsi + 0x10]
call fcn.1400683a0
mov r9, rax
mov rax, qword [0x1400884e8]
mov qword [r9], rax
mov rax, qword [rbx]
mov qword [r9 + 8], rax
mov qword [rsp + 0x38], r9
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], esi
lea r8, [0x1400668b0]
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 0x1400667ae
mov rax, rdi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140068380
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov dword [rbx], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x1400667c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140087010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor esi, esi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
lea ecx, [rsi + 0x20]
call fcn.1400683a0
mov dword [rax], 1
mov dword [rax + 4], 2
xor ecx, ecx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rsi
mov dword [rax + 0x18], esi
mov qword [rdi + 0x10], rax
lea ecx, [rsi + 0x10]
call fcn.1400683a0
mov r9, rax
mov rax, qword [0x1400884d0]
mov qword [r9], rax
mov rax, qword [rbx]
mov qword [r9 + 8], rax
mov qword [rsp + 0x38], r9
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], esi
lea r8, [0x1400668b0]
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 0x14006687e
mov rax, rdi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140068380
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov dword [rbx], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140067b08
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 0x140067b8c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140071ce0]
cmp byte [rcx + rax], 0
je 0x140067b8c
dec r8
sub rdx, 1
jne 0x140067b72
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140069224
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140002ab0
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
xor eax, eax
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x44], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x1f4
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Beep]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Waiting_for_exe_to_start...
call fcn.140002b90
mov rcx, rax
lea rdx, [0x140002d70]
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]
call fcn.140002450
mov edx, 0x1f4
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Beep]
mov ecx, 0x3d090
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140002fa0
add rsp, 0x58
ret

Function at 0x140003afc
Capabilities:
Parse pe header

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

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x14003e0e0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x14003e0f0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x14003e0f0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x14003e0f0]
mov dword [rax], 1
mov rax, qword [0x14003e130]
mov rdx, rax
mov rax, qword [0x14003e120]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x140043024], 1
mov rax, qword [0x14003e0f0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x14003e110]
mov rdx, rax
mov rax, qword [0x14003e100]
mov rcx, rax
call sym._initterm
mov rax, qword [0x14003e0f0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x14003e0e0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x14003e030]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x14003e030]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call sym._pei386_runtime_relocator
mov rax, qword [sym._gnu_exception_handler]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x14003e0d0]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x140043004]
lea rdx, [0x140043008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x14003e060]
mov rax, qword [rax]
mov rdx, qword [0x140043010]
mov qword [rax], rdx
mov rcx, qword [0x140043010]
mov rdx, qword [0x140043008]
mov eax, dword [0x140043004]
mov r8, rcx
mov ecx, eax
call sym.wmain
mov dword [0x14004301c], eax
mov eax, dword [0x140043020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14004301c]
mov ecx, eax
call sym.exit
mov eax, dword [0x140043024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x14004301c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14003e090]
mov dword [rax], 1
mov rax, qword [0x14003e0a0]
mov dword [rax], 1
mov rax, qword [0x14003e0b0]
mov dword [rax], 1
mov rax, qword [0x14003e050]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001b10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [0x140043ef8]
test rax, rax
je 0x140001bf8
cmp qword [0x140043ef8], 0
je 0x140001bf8
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [0x140043160]
mov edx, eax
shr edx, 8
xor edx, eax
movzx edx, dl
mov rbx, qword [rcx + rdx*8]
test rbx, rbx
jne 0x140001b6c
jmp sym.GC_notify_or_invoke_finalizers.cold
mov rbx, qword [rbx]
test rbx, rbx
je sym.GC_notify_or_invoke_finalizers.cold
cmp eax, dword [rbx + 8]
jne 0x140001b60
movzx ecx, byte [rbx + 0x3a]
test cl, cl
jne 0x140001c08
add ecx, 1
xor ebp, ebp
xor edi, edi
mov byte [rbx + 0x3a], cl
jmp 0x140001bb8
mov rax, qword [rsi + 8]
add edi, 1
mov qword [0x140043ef8], rax
mov qword [rsi + 8], 0
mov rdx, qword [rsi + 0x18]
mov rcx, qword [rsi]
call qword [rsi + 0x10]
mov qword [rsi + 0x18], 0
mov rax, qword [0x140043ef8]
test rax, rax
je 0x140001bda
mov rsi, qword [0x140043ef8]
test edi, edi
cmove rbp, qword [0x140043e18]
test rsi, rsi
jne 0x140001b90
test edi, edi
je 0x140001bf4
mov rax, qword [0x140043e18]
cmp rax, rbp
je 0x140001bf4
sub rax, rbp
add qword [0x140043e20], rax
mov byte [rbx + 0x3a], 0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
movzx eax, word [rbx + 0x38]
add eax, 1
movzx edx, ax
shr edx, cl
test edx, edx
je 0x140001c23
xor eax, eax
mov word [rbx + 0x38], ax
jmp 0x140001b7d
mov word [rbx + 0x38], ax
jmp 0x140001bf8
Function at 0x140001d00
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x170
mov r8d, 0x105
lea rcx, str.GC_LOG_FILE
lea rbx, [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
sub eax, 1
cmp eax, 0x103
ja 0x140001dc0
cmp dword [0x140043d94], 2
mov edx, 0x80000080
mov eax, pe_nt_image_headers64
mov rcx, rbx
cmovne eax, edx
mov r8d, 1
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 4
mov edx, 0x40000000
mov dword [rsp + 0x28], eax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001d90
mov rax, rbx
add rsp, 0x170
pop rbx
ret
mov r9d, 2
lea r8, [rsp + 0x4c]
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x4c], 0
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, rbx
add rsp, 0x170
pop rbx
ret
xor ecx, ecx
mov r8d, 0x105
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, 4
jle 0x140001de4
lea edx, [rax - 4]
movsxd rcx, edx
cmp byte [rsp + rcx + 0x50], 0x2e
cmove eax, edx
cdqe
mov edx, 0x80000080
movabs rcx, 0x676f6c2e63672e
mov qword [rbx + rax], rcx
cmp dword [0x140043d94], 2
mov eax, pe_nt_image_headers64
mov rcx, rbx
cmovne eax, edx
mov r8d, 1
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
mov dword [rsp + 0x28], eax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov rax, rbx
add rsp, 0x170
pop rbx
ret

Function at 0x140001e50
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0xc0
mov eax, dword [0x14006e2c8]
test eax, eax
je 0x140001e70
add rsp, 0xc0
pop rbx
ret
lea rcx, str.GC_USE_GETWRITEWATCH
call sub.ucrtbase.dll_getenv
test rax, rax
je 0x140001e8a
cmp byte [rax], 0x30
je 0x140001f50
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140001f39
lea rdx, str.GetWriteWatch
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140043d88], rax
test rax, rax
je 0x140001f39
mov rdx, qword [0x14006e4b0]
mov r9d, 4
mov r8d, 0x202000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x140001f70
lea rax, [rsp + 0x34]
mov r8, qword [0x14006e4b0]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], 0x10
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov rdx, rbx
mov ecx, 1
mov qword [rsp + 0x20], rax
call qword [0x140043d88]
test eax, eax
jne 0x140001f60
mov dword [0x140043d90], 0x200000
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x14006e2c8], 1
add rsp, 0xc0
pop rbx
ret
cmp byte [rax + 1], 0
jne 0x140001e8a
jmp 0x140001f39
mov qword [0x140043d88], 0
jmp 0x140001f28
mov qword [0x140043d88], 0
jmp 0x140001f39
Function at 0x140001f80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov rbx, rcx
mov rcx, qword [0x14006e198]
mov rsi, rdx
test rcx, rcx
je 0x140001fd0
cmp rcx, 0xffffffffffffffff
je 0x140001fe8
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov r8d, esi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140001fe8
mov eax, dword [rsp + 0x3c]
add rsp, 0x48
pop rbx
pop rsi
ret
call sym.GC_CreateLogFile
mov qword [0x14006e198], rax
mov rcx, rax
jmp 0x140001f98
mov eax, 0xffffffff
jmp 0x140001fc0

Function at 0x140001ff0
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov dword [0x14006e2d0], 1
mov rbx, rcx
test rcx, rcx
je 0x14000204c
mov rdx, rcx
mov r9d, 0x10
lea r8, str.Fatal_error_in_GC
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rbx
call sym.strlen
mov rdx, rax
test rax, rax
je 0x14000203b
mov rcx, rbx
call sym.GC_write.part.0
test eax, eax
js 0x14000204c
mov edx, 1
lea rcx, [0x1400380de]
call sym.GC_write.part.0
lea rcx, str.GC_LOOP_ON_ABORT
call sub.ucrtbase.dll_getenv
test rax, rax
je 0x140002060
jmp 0x14000205d
add rsp, 0x20
pop rbx
ret

Function at 0x140002230
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140035264], 1
sbb eax, eax
xor edx, edx
and eax, 0xffffffc4
cmp qword [0x140043d88], 0
sete dl
lea r9d, [rax + 0x40]
mov r8, rdx
not r8
add rdx, rcx
cmp rcx, r8
mov r8d, dword [0x140043d90]
mov rcx, 0xffffffffffffffff
cmovae rdx, rcx
xor ecx, ecx
or r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test eax, 0xfff
je 0x1400022f0
lea rcx, [0x1400380f1]
call sym.GC_default_on_abort.lto_priv.0
mov rsi, qword [sym.imp.KERNEL32.dll_DebugBreak]
call rsi
mov rax, qword [0x140043eb0]
cmp rax, 0x3ff
ja 0x1400022d8
lea rdx, [rax + 1]
mov qword [0x140043eb0], rdx
lea rdx, [0x140043dc0]
mov qword [rdx + rax*8 + 0x163d0], rbx
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
lea rcx, [0x140038109]
call sym.GC_default_on_abort.lto_priv.0
call rsi
mov rax, qword [0x140043eb0]
jmp 0x1400022ae
cmp qword [0x140043eb0], 0x3ff
jbe 0x14000230f
lea rcx, [0x140038109]
call sym.GC_default_on_abort.lto_priv.0
call qword [sym.imp.KERNEL32.dll_DebugBreak]
test rbx, rbx
je 0x1400022c8
mov rax, qword [0x140043eb0]
jmp 0x1400022ae