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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140085180]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140085160]
test rbx, rbx
je 0x1400146cc
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 0x1400146c3
test rsi, rsi
je 0x1400146c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400146a8
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 0x1400148e0
Capabilities:
Parse pe header

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

Function at 0x1400148f0
Capabilities:
Parse pe header

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

Function at 0x140014900
Capabilities:
Parse pe header

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

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

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

Function at 0x140014aa0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14007d150]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140014abf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140014ac8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140014abf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140014b60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14007d150]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140014b7f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140014b88
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14001b400
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
mov qword [rsp + 0x20], rax
movabs rax, 0x7520676e696e6165
mov qword [rsp + 0x28], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x30], rax
movabs rax, 0x20726f6620737965
mov qword [rsp + 0x38], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x87], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14001b50a
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x14001b4e2
add rax, 1
cmp rax, 0x6b
je 0x14001b4ff
cmp byte [rcx + rax], 0
jne 0x14001b4d8
cmp eax, 0x6a
movsxd rdx, eax
je 0x14001b4ff
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea rcx, [rsp + 0x20]
mov eax, 0x28
mov edx, 0x27
jmp 0x14001b4f3

Function at 0x14001b880
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140085c70], 1
je 0x14001b8f8
lea rdi, [0x140085c70]
mov rcx, rdi
call fcn.14001b180
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14001ab00
mov esi, dword [0x140085c70]
test esi, esi
jne 0x14001b908
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x140079178], eax
je 0x14002d096
mov dword [0x140085c70], 1
mov rcx, rbp
call fcn.14001adf0
test rbx, rbx
je 0x14001b8f8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14001b520
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14001b8d8
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.14001a530
jmp 0x14001b8d8
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
Function at 0x14001b930
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14001b630
cmp qword [0x140088048], 0
mov rbx, rax
je 0x14001ba48
test rax, rax
je 0x14001ba48
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14001ebf0
cmp eax, 1
je 0x14001ba56
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
lea r9, [rbx + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.14002d09c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140079178]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14001ba5c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14001b400
nop
jmp fcn.14002d09c

Function at 0x14001ba70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001b880
mov ecx, dword [0x140079178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001ba90
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14001b930
Function at 0x14001c200
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
test rdx, rdx
mov rbx, rcx
mov rsi, rdx
je 0x14001c328
cmp eax, 1
je 0x14001c25b
call fcn.14001b180
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.14001ab00
mov r12d, dword [rbx]
test r12d, r12d
je 0x14001c270
cmp r12d, 1
jne 0x14001c300
mov rcx, rbp
call fcn.14001adf0
test rdi, rdi
je 0x14001c25b
mov rcx, rdi
call fcn.14001b520
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x14001b600]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14001b880
mov ecx, dword [0x140079178]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x14001c368
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.14001b880
mov ecx, dword [0x140079178]
call r12
test rax, rax
je 0x14001c350
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.14001b880
mov ecx, dword [0x140079178]
call r12
test rax, rax
je 0x14001c340
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x14001c246
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.14001a530
jmp 0x14001c246
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14001b930
test rax, rax
jne 0x14001c2e9
jmp 0x14002d0b5
call fcn.14001b930
test rax, rax
jne 0x14001c2c5
jmp 0x14002d0ce
call fcn.14001b930
test rax, rax
jne 0x14001c29f
jmp 0x14002d0c4
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x14001c5f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.14001b880
mov ecx, dword [0x140079178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c668
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.14001ec00
cmp esi, dword [rbx + 0x48]
jae 0x14001c643
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14001c643
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.14001ec40
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14001b930
mov rbx, rax
jmp 0x14001c61d
Function at 0x14001c680
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, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.14001b880
mov ecx, dword [0x140079178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c790
lea r14, [rbx + 0x68]
mov rcx, r14
call fcn.14001ec00
cmp esi, dword [rbx + 0x48]
jae 0x14001c710
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r14
mov byte [rax + rsi], 1
call fcn.14001ec40
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx + 0x50]
lea r15d, [rsi + 1]
movsxd r13, r15d
lea rdx, [r13*8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
test rax, rax
mov rdi, rax
je 0x14001c79d
mov rcx, qword [rbx + 0x58]
mov rdx, r13
movq xmm6, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
movq xmm0, rax
test rax, rax
mov r13, rax
punpcklqdq xmm6, xmm0
je 0x14001c79d
mov eax, dword [rbx + 0x48]
mov edx, r15d
lea rcx, [rdi + rax*8]
sub edx, eax
lea r8, [rdx*8]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov edx, dword [rbx + 0x48]
mov r8d, r15d
lea rcx, [r13 + rdx]
sub r8d, edx
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movaps xmmword [rbx + 0x50], xmm6
mov dword [rbx + 0x48], r15d
jmp 0x14001c6d4
call fcn.14001b930
mov rbx, rax
jmp 0x14001c6bf
mov rcx, r14
call fcn.14001ec40
mov eax, 0xc
jmp 0x14001c6f2

Function at 0x14001c820
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001b880
mov ecx, dword [0x140079178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c848
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14001b930
test rax, rax
jne 0x14001c83a
add rsp, 0x28
ret

Function at 0x14001c8b0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001b880
mov ecx, dword [0x140079178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c8d8
add rax, 0x18
add rsp, 0x28
ret
call fcn.14001b930
test rax, rax
jne 0x14001c8ca
jmp 0x14001c8ce

Function at 0x14001c9f0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140085c78]
test eax, eax
jne 0x14001ca08
xor eax, eax
add rsp, 0x28
ret
call fcn.14001b880
mov ecx, dword [0x140079178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001ca38
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001c9fe
test byte [rax + 0x40], 3
je 0x14001c9fe
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001ca00
call fcn.14001b930
test rax, rax
jne 0x14001ca1e
jmp 0x14001c9fe
Function at 0x14001ca50
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14001b880
mov ecx, dword [0x140079178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001ca90
test ebx, ebx
jle 0x14001ca80
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.14001b930
test rax, rax
jne 0x14001ca6d
add rsp, 0x20
pop rbx
ret

Function at 0x14001cb80
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001b880
mov ecx, dword [0x140079178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001cbf8
test byte [rbx + 0x40], 0xc
jne 0x14001cbaf
mov eax, dword [0x140085c78]
test eax, eax
jne 0x14001cbc0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001ab00
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001cbe3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001cbe3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001cc0c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001adf0
call fcn.14001b930
test rax, rax
mov rbx, rax
jne 0x14001cb9f
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001cc2a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001adf0
call fcn.14001caa0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001ccb0
call fcn.14001dd90
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001cce8
call fcn.14001b880
mov ecx, dword [0x140079178]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001cd40
test esi, esi
je 0x14001ccc6
call fcn.14001cb80
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001cd20
mov edx, edi
call fcn.14001de40
call fcn.14001cb80
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b880
mov ecx, dword [0x140079178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001cd30
call fcn.14001cb80
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001cb80
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b880
mov ecx, dword [0x140079178]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x14001cc85
call fcn.14001b930
mov rbx, rax
jmp 0x14001cc85
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001cc9e
call fcn.14001b930
jmp 0x14001ccc6
call fcn.14001b930
mov rbx, rax
jmp 0x14001cc81
Function at 0x14001cc40
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001b880
mov ecx, dword [0x140079178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001cbf8
test byte [rbx + 0x40], 0xc
jne 0x14001cbaf
mov eax, dword [0x140085c78]
test eax, eax
jne 0x14001cbc0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001ab00
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001cbe3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001cbe3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001cc0c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001adf0
call fcn.14001b930
test rax, rax
mov rbx, rax
jne 0x14001cb9f
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001cc2a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001adf0
call fcn.14001caa0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001ccb0
call fcn.14001dd90
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001cce8
call fcn.14001b880
mov ecx, dword [0x140079178]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001cd40
test esi, esi
je 0x14001ccc6
call fcn.14001cb80
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001cd20
mov edx, edi
call fcn.14001de40
call fcn.14001cb80
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b880
mov ecx, dword [0x140079178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001cd30
call fcn.14001cb80
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001cb80
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b880
mov ecx, dword [0x140079178]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x14001cc85
call fcn.14001b930
mov rbx, rax
jmp 0x14001cc85
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001cc9e
call fcn.14001b930
jmp 0x14001ccc6
call fcn.14001b930
mov rbx, rax
jmp 0x14001cc81

Function at 0x14001cd50
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14001b880
mov ecx, dword [0x140079178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001cdc0
test esi, esi
je 0x14001cda0
call fcn.14001cb80
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001cdd0
mov edx, esi
call fcn.14001de40
call fcn.14001cb80
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001cb80
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001cb80
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001b930
mov rbx, rax
jmp 0x14001cd71
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001cd8a
Function at 0x18000329c
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, r9
mov qword [rsp + 0x20], r9
mov r9, r8
mov rbx, r8
mov r8d, 1
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x1800032ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180003301
mov eax, dword [rdi]
xor ecx, ecx
test eax, eax
je 0x1800032fd
cmp byte [rbx], 0x3d
jne 0x1800032e2
mov byte [rbx], 0
dec eax
jmp 0x1800032f4
cmp byte [rbx], 0x2f
jne 0x1800032ec
mov byte [rbx], 0x5f
jmp 0x1800032f4
cmp byte [rbx], 0x2b
jne 0x1800032f4
mov byte [rbx], 0x2d
inc ecx
inc rbx
cmp ecx, dword [rdi]
jb 0x1800032d6
mov dword [rdi], eax
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x18000330c
Capabilities:
Decode data using base64 via winapi

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
test edx, edx
je 0x180003348
mov rax, rcx
mov r10d, edx
cmp byte [rax], 0x5f
jne 0x180003328
mov byte [rax], 0x2f
jmp 0x180003330
cmp byte [rax], 0x2d
jne 0x180003330
mov byte [rax], 0x2b
inc rax
sub r10, 1
jne 0x18000331e
jmp 0x180003348
cmp edx, r8d
ja 0x180003381
mov eax, edx
inc edx
mov byte [rax + rcx], 0x3d
test dl, 3
jne 0x18000333b
mov rax, qword [rsp + 0x70]
mov r8d, 1
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x180003379
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
add rsp, 0x40
pop rbx
ret
mov eax, 6
jmp 0x18000337b
Function at 0x180004580
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov r10, qword [0x181773768]
test r10, r10
je 0x1800045e6
cmp dword [rcx + 0x24], 0
jne 0x1800045e6
mov rax, qword [rcx + 0x18]
xor r9d, r9d
mov r8, qword [rcx]
xor edx, edx
mov qword [r11 - 0x18], rax
mov rax, qword [rcx + 0x10]
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
and qword [r11 - 0x30], 0
mov eax, dword [rcx + 0x20]
mov rcx, r10
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 1
and qword [r11 - 0x48], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x180004626
mov eax, 1
add rsp, 0x68
ret
mov rax, qword [rcx + 0x18]
xor r9d, r9d
mov rdx, qword [rcx]
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov eax, dword [rcx + 0x20]
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
jmp 0x1800045d8
xor eax, eax
jmp 0x1800045e1
Function at 0x180004954
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x180011008]
xor rax, rsp
mov qword [rsp + 0x440], rax
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x34]
mov rbp, rdx
mov rdi, rcx
mov rcx, qword [rcx + 0x18]
xor esi, esi
and qword [rsp + 0x28], rsi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x180004a8c
mov rax, qword [0x181773780]
cmp dword [rax + 0x10], 0x1c
jle 0x1800049cf
mov rax, qword [rax + 8]
add rax, 0x1c0
je 0x1800049cf
cmp word [rax], 2
jne 0x1800049cf
mov ecx, dword [rax + 8]
jmp 0x1800049d1
xor ecx, ecx
neg ecx
mov rcx, rbp
sbb ebx, ebx
and ebx, 0xfff81000
add ebx, 0x80000
mov edx, ebx
call fcn.180003068
xor edx, edx
mov dword [rbp + 0x18], 0x1e
mov r8d, 0x400
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll_memset
cmp dword [rsp + 0x34], esi
jbe 0x180004a71
cmp esi, ebx
jae 0x180004a71
mov rcx, qword [rdi + 0x18]
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, dword [rsp + 0x30]
lea rdx, [rsp + 0x40]
add esi, dword [rsp + 0x30]
mov rcx, rbp
call fcn.1800030bc
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x34]
mov rcx, qword [rdi + 0x18]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x180004a8c
cmp dword [rsp + 0x34], 0
ja 0x180004a0a
mov rcx, qword [rdi + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x180004a88
mov byte [rdi + 0xd], 1
mov eax, esi
jmp 0x180004a8f
or eax, 0xffffffff
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.18000bbb0
mov rbx, qword [rsp + 0x480]
add rsp, 0x450
pop rdi
pop rsi
pop rbp
ret