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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
test rcx, rcx
mov rsi, rcx
mov rbp, rdx
je 0x140010d40
lea rdi, [0x140016118]
mov rcx, rdi
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rcx, rdi
mov rbx, rax
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x140010d40
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x140010d40
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x140010d40
test byte [rbx + 0x44], 4
jne 0x140010d50
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x140016128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010d70
cmp rsi, qword [rax + 0x1d8]
je 0x140010d98
mov eax, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test eax, eax
je 0x140010ccb
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140010cda
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140010cee
call rsi
mov qword [rbx + 0x30], 0
lea rcx, [rbx + 0x38]
test rbp, rbp
je 0x140010d88
mov rax, qword [rbx + 8]
mov qword [rbp], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x140010d9f
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x140010d60
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 0x16
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbx
call sym.push_pthread_mem.part.0
xor eax, eax
jmp 0x140010d36
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x140010ca6
jmp 0x140010cb3
call sym.pthread_mutex_destroy
jmp 0x140010d10
mov eax, 0x24
jmp 0x140010d45
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
Function at 0x140010db0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [0x140016118]
mov rsi, rcx
mov rcx, rbp
mov rdi, rdx
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
test rax, rax
mov rbx, rax
je 0x140010ed0
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x140010ed0
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x140010ed0
test byte [rbx + 0x44], 4
jne 0x140010ef0
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x140016128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010f30
mov rdx, qword [rax + 0x1d8]
cmp rsi, rdx
je 0x140010f68
mov edx, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test edx, edx
jne 0x140010e57
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140010f10
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140010e6b
call rsi
mov qword [rbx + 0x30], 0
lea rcx, [rbx + 0x38]
test rdi, rdi
je 0x140010f48
mov rax, qword [rbx + 8]
mov qword [rdi], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x140010f7a
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x140010f58
mov rcx, rbp
call sym.pthread_mutex_unlock
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x16
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, dword [rbx + 0xbc]
test eax, eax
jne 0x140010e53
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x10
jmp 0x140010ebe
call sym.__pthread_self_lite.part.0
xor edx, edx
test rax, rax
jne 0x140010e25
jmp 0x140010e2c
call sym.pthread_mutex_destroy
jmp 0x140010e8c
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x140010eb4
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x24
jmp 0x140010ebe
call sym.replace_spin_keys.part.0
nop
Function at 0x140014c30
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1400161c0], 0
jne 0x140014d36
mov byte [0x1400161c0], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x140014d0c
mov rbx, qword [rax + 8]
lea r9, [rsp + 0x2c]
xor eax, eax
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
mov r8d, 0x30
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x140014cfd
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x140017251]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x140014cf8
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x140014cc7
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x140014dcb
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x140014d31
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x140014d31
Function at 0x140015c40
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rcx, [0x1400161a0]
xor edx, edx
movabs rdi, 0x2e78786362696c67
movabs r12, 0x6c6f6f705f68652e
call sym.pthread_mutex_init
lea rcx, str.GLIBCXX_TUNABLES
pxor xmm0, xmm0
mov qword [0x1400161b8], 0
movups xmmword [0x1400161a8], xmm0
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
mov dword [rsp + 0x58], 0x100
lea rax, str.obj_size
test rbx, rbx
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
jne 0x140015cf5
jmp 0x140015da2
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
test rax, rax
mov rbx, rax
je 0x140015d50
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rdi
jne 0x140015ce0
cmp qword [rbx + 7], r12
jne 0x140015ce0
cmp byte [rbx + 0xf], 0x2e
jne 0x140015ce0
lea rbp, [rsp + 0x30]
add rbx, 0x10
lea r13, [rsp + 0x60]
mov rsi, qword [rbp]
mov rcx, qword [rbp + 8]
test rsi, rsi
je 0x140015d3b
mov r8, rsi
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x140015d45
cmp byte [rbx + rsi], 0x3d
je 0x140015dd8
add rbp, 0x18
cmp rbp, r13
jne 0x140015d1f
jmp 0x140015ce0
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
test rbx, rbx
mov qword [0x1400161b8], rbx
jne 0x140015db2
lea rcx, [sym.__tcf_0]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.atexit
mov qword [0x1400161b8], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
test rax, rax
mov qword [0x1400161b0], rax
je 0x140015e0f
xor edx, edx
mov qword [0x1400161a8], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x140015d8a
lea rdx, [rsp + 0x28]
xor r8d, r8d
lea rcx, [rbx + rsi + 1]
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x140015dff
test dl, dl
jne 0x140015ce0
test eax, eax
js 0x140015ce0
mov dword [rbp + 0x10], eax
jmp 0x140015ce0
xor ecx, ecx
mov qword [0x1400161b8], rcx
jmp 0x140015d8a
Function at 0x1400bbe88
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x14010fd30
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x14010fd58
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x14010fda2
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x14010fd4d
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x1400bd535
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140170620
mov rax, rcx
neg rcx
test rax, 7
je 0x14017063d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140170698
test al, 7
jne 0x140170630
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140170651
mov rdx, qword [rax - 8]
test dl, dl
je 0x1401706c2
test dh, dh
je 0x1401706bc
shr rdx, 0x10
test dl, dl
je 0x1401706b6
test dh, dh
je 0x1401706b0
shr rdx, 0x10
test dl, dl
je 0x1401706aa
test dh, dh
je 0x1401706a4
shr edx, 0x10
test dl, dl
je 0x14017069e
test dh, dh
jne 0x140170651
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400bd56c
Capabilities:
Query environment variable

Disassembly:
jmp 0x140216c30
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1402167b0
lea rcx, [rsp + 0x20]
call fcn.140216800
movzx eax, al
test eax, eax
jne 0x140216c75
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1402167e0
mov rax, qword [rsp + 0x40]
jmp 0x140216d6f
lea rcx, [rsp + 0x20]
call fcn.140216900
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1402168a0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1400bd8f0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400bcec8
lea rcx, [rsp + 0x28]
call fcn.1400bddcd
movzx eax, al
test eax, eax
jne 0x140216d0f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400bf281
lea rcx, [rsp + 0x20]
call fcn.1402167e0
mov rax, qword [rsp + 0x50]
jmp 0x140216d6f
lea rcx, [rsp + 0x20]
call fcn.140216900
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400c0244
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400bd832
lea rcx, [rsp + 0x28]
call fcn.1400c0bae
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400bf281
lea rcx, [rsp + 0x20]
call fcn.1402167e0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400bda94
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140164a30
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401643b0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140164a6f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402af020]
jmp 0x140164a79
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400bdcf6
Capabilities:
Query environment variable

Disassembly:
jmp 0x140216980
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1402167b0
lea rcx, [rsp + 0x40]
call fcn.140216930
movzx eax, al
test eax, eax
jne 0x1402169c8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1402167e0
mov rax, qword [rsp + 0x70]
jmp 0x140216b99
lea rcx, [rsp + 0x40]
call fcn.140216900
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1402168a0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140216900
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400beea8
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140216a6e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1402167e0
mov rax, qword [rsp + 0x80]
jmp 0x140216b99
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400bd8f0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400bd6cf
lea rcx, [rsp + 0x48]
call fcn.1400bd0ee
movzx eax, al
test eax, eax
jne 0x140216ad5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400bbcfd
lea rcx, [rsp + 0x40]
call fcn.1402167e0
mov rax, qword [rsp + 0x88]
jmp 0x140216b99
lea rcx, [rsp + 0x48]
call fcn.1400be1e7
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140216900
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400beea8
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140216b6b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400bbcfd
lea rcx, [rsp + 0x40]
call fcn.1402167e0
mov rax, qword [rsp + 0xa0]
jmp 0x140216b99
lea rcx, [rsp + 0x48]
call fcn.1400bd689
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400bbcfd
lea rcx, [rsp + 0x40]
call fcn.1402167e0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400bdd0f
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140164960
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140164330
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401649a1
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402af020]
jmp 0x1401649a7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400bddd7
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401fe8e0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.1401fd810
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401fe947
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1402af030]
jmp 0x1401fe969
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400bd062
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400bddeb
Capabilities:
Terminate process

Disassembly:
jmp 0x140141550
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400be183
Capabilities:
Print debug messages

Disassembly:
jmp 0x1402242e0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140292040]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140224306
jmp 0x140224383
mov rcx, qword [rbp + 0x30]
call fcn.1400bd535
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14022431f
jmp 0x140224383
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14022433c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400bbf2d
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400bc531
test eax, eax
jne 0x140224383
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400bd80f
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400be5bb
Capabilities:
Set environment variable

Disassembly:
jmp 0x140218ae0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret

Function at 0x1400be8fe
Capabilities:
Parse pe header

Disassembly:
jmp 0x140142f30
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140142f50
xor al, al
jmp 0x140142fd1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140142f63
xor al, al
jmp 0x140142fd1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140142f8d
xor al, al
jmp 0x140142fd1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140142fa1
xor al, al
jmp 0x140142fd1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140142fb3
xor al, al
jmp 0x140142fd1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140142fcf
xor al, al
jmp 0x140142fd1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400bf169
Capabilities:
Terminate process

Disassembly:
jmp 0x140165d20
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140165d4e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400bfd3a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400bfdbc
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401f44c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400bff1f
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140164aa0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401643f0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140164ae9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402af020]
jmp 0x140164af8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400c0023
Capabilities:
Set environment variable

Disassembly:
jmp 0x14022ef40
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400bce78
lea rcx, [rsp + 0x48]
call fcn.1400bce78
call fcn.1400bdc74
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400bcb53
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14022efaf
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400bd3d7
lea rcx, [rsp + 0x78]
call fcn.1400bd3d7
mov eax, dword [rsp + 0x24]
jmp 0x14022f040
call fcn.1400bdc74
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400bcb53
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14022eff6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400bd3d7
lea rcx, [rsp + 0x78]
call fcn.1400bd3d7
mov eax, dword [rsp + 0x2c]
jmp 0x14022f040
lea rcx, [rsp + 0x48]
call fcn.1400bcd97
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400bcd97
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400bd3d7
lea rcx, [rsp + 0x78]
call fcn.1400bd3d7
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1400d5ad0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xaa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x468]
mov rax, qword [0x140292040]
xor rax, rbp
mov qword [rbp + 0x418], rax
lea rcx, [0x1402ae0f8]
call fcn.1400c032f
mov dword [rbp + 4], 0
xor edx, edx
mov ecx, 2
call fcn.1400bd75b
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0xffffffffffffffff
jne 0x1400d5b3f
mov eax, dword [rbp + 4]
jmp 0x1400d5bc1
lea rax, [rbp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov dword [rbp + 0x50], 0x238
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.1400be205
cmp eax, 1
jne 0x1400d5bb4
lea rdx, [rbp + 0x7c]
mov rcx, qword [rbp + 0x440]
call fcn.1400c016d
test eax, eax
jne 0x1400d5b84
mov eax, dword [rbp + 0x58]
mov dword [rbp + 4], eax
jmp 0x1400d5bb4
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.1400bf727
cmp eax, 1
jne 0x1400d5bb4
lea rdx, [rbp + 0x7c]
mov rcx, qword [rbp + 0x440]
call fcn.1400c016d
test eax, eax
jne 0x1400d5bb2
mov eax, dword [rbp + 0x58]
mov dword [rbp + 4], eax
jmp 0x1400d5bb4
jmp 0x1400d5b84
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140246ad0]
call fcn.1400bf4c0
mov rax, rdi
mov rcx, qword [rbp + 0x418]
xor rcx, rbp
call fcn.1400bd80f
lea rsp, [rbp + 0x428]
pop rdi
pop rbp
ret

Function at 0x1400d6ee0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x708
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x12a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x728]
mov rax, qword [0x140292040]
xor rax, rbp
mov qword [rbp + 0x6d8], rax
lea rcx, [0x1402ae0f8]
call fcn.1400c032f
mov qword [rbp + 8], 0
mov edx, dword [rbp + 0x700]
mov ecx, 0x18
call fcn.1400bd75b
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0xffffffffffffffff
jne 0x1400d6f57
mov eax, dword [rbp + 8]
jmp 0x1400d6fe5
lea rax, [rbp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x438
rep stosb byte [rdi], al
mov dword [rbp + 0x50], 0x438
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.1400c0bea
cmp eax, 1
jne 0x1400d6fd8
lea rdx, [rbp + 0x80]
mov rcx, qword [rbp + 0x708]
call fcn.1400c0be5
test rax, rax
je 0x1400d6fa2
mov rax, qword [rbp + 0x68]
mov qword [rbp + 8], rax
jmp 0x1400d6fd8
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.1400c0bdb
cmp eax, 1
jne 0x1400d6fd8
lea rdx, [rbp + 0x80]
mov rcx, qword [rbp + 0x708]
call fcn.1400c0be5
test rax, rax
je 0x1400d6fd6
mov rax, qword [rbp + 0x68]
mov qword [rbp + 8], rax
jmp 0x1400d6fd8
jmp 0x1400d6fa2
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 8]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140246b50]
call fcn.1400bf4c0
mov rax, rdi
mov rcx, qword [rbp + 0x6d8]
xor rcx, rbp
call fcn.1400bd80f
lea rsp, [rbp + 0x6e8]
pop rdi
pop rbp
ret