joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400698e0
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 r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.140068a60
mov ecx, dword [0x140121258]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400699e0
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140068250
cmp esi, dword [rbx + 0x48]
jae 0x140069960
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.140068290
mov ecx, ebp
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.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov rdi, rax
test rax, rax
je 0x1400699ed
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov r14, rax
test rax, rax
je 0x1400699ed
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x14006992f
call fcn.140068b10
mov rbx, rax
jmp 0x14006991a
mov rcx, r13
call fcn.140068290
mov eax, 0xc
jmp 0x14006994d

Function at 0x140069a70
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140068a60
mov ecx, dword [0x140121258]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140069a98
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140068b10
test rax, rax
jne 0x140069a8a
add rsp, 0x28
ret

Function at 0x140069b00
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140068a60
mov ecx, dword [0x140121258]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140069b28
add rax, 0x18
add rsp, 0x28
ret
call fcn.140068b10
test rax, rax
jne 0x140069b1a
jmp 0x140069b1e

Function at 0x140069c40
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140165c28]
test eax, eax
jne 0x140069c58
xor eax, eax
add rsp, 0x28
ret
call fcn.140068a60
mov ecx, dword [0x140121258]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140069c88
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x140069c4e
test byte [rax + 0x40], 3
je 0x140069c4e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140069c50
call fcn.140068b10
test rax, rax
jne 0x140069c6e
jmp 0x140069c4e
Function at 0x140069ca0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140068a60
mov ecx, dword [0x140121258]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140069ce0
test ebx, ebx
jle 0x140069cd0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.140068b10
test rax, rax
jne 0x140069cbd
add rsp, 0x20
pop rbx
ret

Function at 0x140069dd0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140068a60
mov ecx, dword [0x140121258]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140069e48
test byte [rbx + 0x40], 0xc
jne 0x140069dff
mov eax, dword [0x140165c28]
test eax, eax
jne 0x140069e10
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140067c70
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140069e33
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140069e33
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140069e5c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140067f40
call fcn.140068b10
mov rbx, rax
test rax, rax
jne 0x140069def
add rsp, 0x28
pop rbx
pop rsi
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 0x140069e7a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140067f40
call fcn.140069cf0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140069f00
call fcn.140067a00
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140069f38
call fcn.140068a60
mov ecx, dword [0x140121258]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140069f90
test esi, esi
je 0x140069f16
call fcn.140069dd0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140069f70
mov edx, edi
call fcn.140067ad0
call fcn.140069dd0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140068a60
mov ecx, dword [0x140121258]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140069f80
call fcn.140069dd0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140069dd0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140068a60
mov ecx, dword [0x140121258]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140069ed5
call fcn.140068b10
mov rbx, rax
jmp 0x140069ed5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140069eee
call fcn.140068b10
jmp 0x140069f16
call fcn.140068b10
mov rbx, rax
jmp 0x140069ed1
Function at 0x140069e90
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140068a60
mov ecx, dword [0x140121258]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140069e48
test byte [rbx + 0x40], 0xc
jne 0x140069dff
mov eax, dword [0x140165c28]
test eax, eax
jne 0x140069e10
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140067c70
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140069e33
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140069e33
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140069e5c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140067f40
call fcn.140068b10
mov rbx, rax
test rax, rax
jne 0x140069def
add rsp, 0x28
pop rbx
pop rsi
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 0x140069e7a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140067f40
call fcn.140069cf0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140069f00
call fcn.140067a00
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140069f38
call fcn.140068a60
mov ecx, dword [0x140121258]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140069f90
test esi, esi
je 0x140069f16
call fcn.140069dd0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140069f70
mov edx, edi
call fcn.140067ad0
call fcn.140069dd0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140068a60
mov ecx, dword [0x140121258]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140069f80
call fcn.140069dd0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140069dd0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140068a60
mov ecx, dword [0x140121258]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140069ed5
call fcn.140068b10
mov rbx, rax
jmp 0x140069ed5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140069eee
call fcn.140068b10
jmp 0x140069f16
call fcn.140068b10
mov rbx, rax
jmp 0x140069ed1

Function at 0x140069fa0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140068a60
mov ecx, dword [0x140121258]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14006a010
test esi, esi
je 0x140069ff0
call fcn.140069dd0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14006a020
mov edx, esi
call fcn.140067ad0
call fcn.140069dd0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140069dd0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140069dd0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140068b10
mov rbx, rax
jmp 0x140069fc1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140069fda
Function at 0x14006b490
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rdi, [0x140121268]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call fcn.140068250
mov rax, qword [rbx]
cmp dword [rax], 0xbab1f0ed
jne 0x14006b4d9
mov rax, qword [rbx]
mov eax, dword [rax + 4]
test eax, eax
jle 0x14006b4d9
mov rax, qword [rbx]
mov rcx, rdi
sub dword [rax + 4], 1
call fcn.140068290
mov eax, esi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x20], 0x28
lea r9, str..._mingw_w64_mingw_w64_libraries_winpthreads_src_rwlock.c
lea r8, str.___rwlock_t__rwl___valid__LIFE_RWLOCK______rwlock_t__rwl___busy___0_
mov rcx, rax
lea rdx, str.Assertion_failed:___s___file__s__line__d_n
call fcn.140066220
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
nop word cs:[rax + rax]
nop
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x10]
neg eax
mov dword [rcx + 0xc], eax
mov rbx, rcx
lea rcx, [rcx + 0x20]
mov dword [rcx - 0x10], 0
call fcn.140067f40
lea rcx, [rbx + 0x18]
add rsp, 0x20
pop rbx
jmp fcn.140067f40

Function at 0x14006b920
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.14006b760
test eax, eax
je 0x14006b948
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [rbx]
lea rdi, [rsi + 0x18]
mov rcx, rdi
call fcn.140067c70
test eax, eax
jne 0x14006b971
lock add dword [rsi + 0xc], 1
cmp dword [rsi + 0xc], 0x7fffffff
je 0x14006b988
mov rcx, rdi
call fcn.140067f40
mov edx, eax
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14006b490
lea r12, [rsi + 0x20]
mov rcx, r12
call fcn.140067c70
mov ebp, eax
test eax, eax
je 0x14006b9b0
mov rcx, rdi
call fcn.140067f40
mov edx, ebp
jmp 0x14006b973
mov eax, dword [rsi + 0x10]
sub dword [rsi + 0xc], eax
mov rcx, r12
mov dword [rsi + 0x10], 0
call fcn.140067f40
mov rcx, rdi
mov esi, eax
call fcn.140067f40
test esi, esi
mov edx, esi
cmove edx, eax
jmp 0x14006b973

Function at 0x14006bc50
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.14006b420
test eax, eax
jne 0x14006bcd0
mov rsi, qword [rbx]
mov edx, dword [rsi + 8]
test edx, edx
je 0x14006bca0
lock sub dword [rsi + 8], 1
lea rcx, [rsi + 0x20]
call fcn.140067f40
lea rcx, [rsi + 0x18]
mov edi, eax
call fcn.140067f40
test edi, edi
cmove edi, eax
mov edx, edi
mov rcx, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp fcn.14006b490
lea rdi, [rsi + 0x20]
mov rcx, rdi
call fcn.140067c70
mov edx, eax
test eax, eax
jne 0x14006bc8d
lock add dword [rsi + 0x10], 1
mov eax, dword [rsi + 0x10]
test eax, eax
je 0x14006bce0
mov rcx, rdi
call fcn.140067f40
mov edx, eax
jmp 0x14006bc8d
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rcx, [rsi + 0x28]
call fcn.1400670e0
mov rcx, rdi
mov dword [rsp + 0x2c], eax
call fcn.140067f40
mov edx, dword [rsp + 0x2c]
test edx, edx
cmove edx, eax
jmp 0x14006bc8d
Function at 0x14006dfc0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov edx, 0xffffffff
test rax, rax
jle 0x14006dfec
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x14006ec10
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x140124090], 0
jne 0x14006ed16
mov byte [0x140124090], 1
call fcn.140108220
test rax, rax
je 0x14006ecec
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call fcn.14005bae0
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
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call fcn.1400665f0
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x14006ecdd
call rsi
mov rcx, rbx
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x14012ed21]
mov r9, rax
call fcn.1400665f0
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x14006ecd8
mov rcx, rdi
call fcn.140066750
call sym._67
call rsi
mov rcx, rdi
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputs
jmp 0x14006eca7
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 fcn.1400665f0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_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 fcn.1400665f0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
sub rdx, 1
mov rcx, rax
jne 0x14006edab
call fcn.140108070
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 fcn.1400665f0
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
call fcn.140108250
jmp 0x14006ed11
call fcn.140108070
call fcn.140108250
jmp 0x14006ed11

Function at 0x1400cdb00
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x1400cdb48
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x1400cdb1a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1401088f0
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor edx, edx
lea rcx, [0x140121880]
movabs rdi, 0x2e78786362696c67
movabs r12, 0x6c6f6f705f68652e
call fcn.140068080
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x140121898], 0
movups xmmword [0x140121888], xmm0
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
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
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x1401089a5
jmp 0x140108a4f
mov rcx, rbx
mov edx, 0x3a
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
mov rbx, rax
test rax, rax
je 0x140108a00
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rdi
jne 0x140108990
cmp qword [rbx + 7], r12
jne 0x140108990
cmp byte [rbx + 0xf], 0x2e
jne 0x140108990
add rbx, 0x10
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x60]
mov rsi, qword [rbp]
mov rcx, qword [rbp + 8]
test rsi, rsi
je 0x1401089eb
mov r8, rsi
mov rdx, rbx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
jne 0x1401089f5
cmp byte [rbx + rsi], 0x3d
je 0x140108a85
add rbp, 0x18
cmp rbp, r13
jne 0x1401089cf
jmp 0x140108990
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
mov qword [0x140121898], rbx
jne 0x140108a5f
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 [0x140121898], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [0x140121890], rax
test rax, rax
je 0x140108abc
xor edx, edx
mov qword [0x140121888], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x140108a37
lea rdx, [rsp + 0x28]
lea rcx, [rbx + rsi + 1]
xor r8d, r8d
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x140108aac
test dl, dl
jne 0x140108990
test eax, eax
js 0x140108990
mov dword [rbp + 0x10], eax
jmp 0x140108990
xor ecx, ecx
mov qword [0x140121898], rcx
jmp 0x140108a37
Function at 0x1401094b0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
xor esi, esi
call fcn.14005bd30
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p__acmdln
mov rbx, qword [rax]
test rbx, rbx
jne 0x1401094fb
jmp 0x140109571
test cl, cl
je 0x140109528
and esi, 1
je 0x140109510
mov esi, 1
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__ismbblead
test eax, eax
je 0x1401094f7
cmp byte [rbx + 1], 1
sbb rbx, 0xffffffffffffffff
add rbx, 1
movsx ecx, byte [rbx]
cmp cl, 0x20
jle 0x1401094d8
mov eax, esi
xor eax, 1
cmp cl, 0x22
cmove esi, eax
jmp 0x1401094e6
test cl, cl
je 0x140109528
nop dword [rax]
movzx eax, byte [rbx + 1]
add rbx, 1
test al, al
je 0x140109528
cmp al, 0x20
jle 0x140109518
lea rdx, [rsp + 0x20]
xor eax, eax
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov r9d, 0xa
test byte [rsp + 0x5c], 1
je 0x140109556
movzx r9d, word [rsp + 0x60]
mov rcx, qword [0x140134fb0]
mov r8, rbx
xor edx, edx
add rsp, 0x90
pop rbx
pop rsi
pop rdi
jmp sym.WinMain
lea rbx, [0x140133790]
jmp 0x140109528
Function at 0x140001613
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x1a0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x130], rcx
mov qword [rbp + 0x110], 0
mov dword [rbp - 0x20], 0x130
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x118], rax
lea rax, [rbp - 0x20]
mov rcx, qword [rbp + 0x118]
mov rdx, rax
call sub.KERNEL32.dll_Process32First
cmp eax, 1
sete al
test al, al
je 0x140001779
jmp 0x140001758
mov rdx, qword [rbp + 0x130]
lea rax, [rbp - 0x20]
add rax, 0x2c
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll__stricmp
test eax, eax
sete al
test al, al
je 0x140001758
mov qword [rbp - 0x28], 0
mov eax, dword [rbp - 0x18]
mov ecx, eax
call fcn.1400014a4
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x60], 0x30
mov qword [rbp - 0x58], 0
mov dword [rbp - 0x48], 0
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov r10, qword [0x140085080]
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0x110]
mov r9, rcx
mov r8, rdx
mov edx, 0x1fffff
mov rcx, rax
call r10
mov rax, qword [rbp + 0x110]
test rax, rax
je 0x14000173c
mov rax, qword [rbp + 0x110]
cmp rax, 0xffffffffffffffff
je 0x14000173c
mov rdx, qword [0x140085078]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call rdx
mov rax, qword [rbp + 0x110]
jmp 0x140001793
mov rdx, qword [0x140085078]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call rdx
mov rax, 0xffffffffffffffff
jmp 0x140001793
lea rax, [rbp - 0x20]
mov rcx, qword [rbp + 0x118]
mov rdx, rax
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
sete al
test al, al
jne 0x140001678
mov rdx, qword [0x140085078]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call rdx
mov rax, 0xffffffffffffffff
add rsp, 0x1a0
pop rbp
ret
Function at 0x140013f40
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.14001a4c0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140013fb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140085124]
test esi, esi
mov rbx, rcx
jle 0x1400140e0
mov rax, qword [0x140085128]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140013ffb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140014085
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140013fe0
mov rcx, rbx
call fcn.140014a20
test rax, rax
mov rdi, rax
je 0x140014102
mov rax, qword [0x140085128]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140014b60
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140085128]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400140e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001407e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140014090
add dword [0x140085124], 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 [0x140085128]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001407e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140013f40
nop dword [rax]
xor esi, esi
jmp 0x140014008
mov rax, qword [0x140085128]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140013f40
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140013f40
nop
nop word cs:[rax + rax]
nop dword [rax]