joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001823
Capabilities:
Enumerate processes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x158
mov rsi, rcx
mov dword [rsp + 0x28], 0x7f6b9c
imul eax, dword [rsp + 0x28], 0xaaaaaaab
add eax, 0x2aaaaaaa
cmp eax, 0x55555555
jb 0x140001872
mov eax, dword [rsp + 0x28]
add eax, esi
add eax, 2
mov dword [rsp + 0x28], eax
test dword [rsp + 0x28], 3
jne 0x140001982
inc dword [rsp + 0x28]
jmp 0x14000185e
test dword [rsp + 0x28], 1
mov eax, dword [rsp + 0x28]
jne 0x1400018d8
mov ecx, dword [rsp + 0x28]
test al, 3
je 0x140001913
add ecx, 2
lea eax, [rsi + 3]
imul eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
test al, 1
jne 0x140001982
imul ecx, dword [rsp + 0x28], 0xcccccccd
add ecx, 0x19999999
mov eax, dword [rsp + 0x28]
cmp ecx, 0x33333333
jb 0x1400018c3
dec eax
jmp 0x1400018c5
inc eax
mov dword [rsp + 0x28], eax
test dword [rsp + 0x28], 1
je 0x1400018a5
jmp 0x140001982
sub eax, esi
add eax, 2
mov dword [rsp + 0x28], eax
imul eax, dword [rsp + 0x28], 0xaaaaaaab
add eax, 0x2aaaaaaa
cmp eax, 0x55555554
ja 0x140001982
inc dword [rsp + 0x28]
imul eax, dword [rsp + 0x28], 0xaaaaaaab
add eax, 0x2aaaaaaa
cmp eax, 0x55555555
jb 0x1400018f9
jmp 0x140001982
imul eax, ecx, 0xcccccccd
add eax, 0x19999999
cmp eax, 0x33333333
jb 0x140001982
mov eax, dword [rsp + 0x28]
add eax, 0xb
lea ecx, [rsi + 0x17]
cdq
idiv ecx
mov dword [rsp + 0x28], eax
imul eax, dword [rsp + 0x28], 0xaaaaaaab
add eax, 0x2aaaaaaa
cmp eax, 0x55555554
ja 0x140001982
imul ecx, dword [rsp + 0x28], 0xcccccccd
add ecx, 0x19999999
mov eax, dword [rsp + 0x28]
cmp ecx, 0x33333333
jb 0x140001968
inc eax
jmp 0x14000196a
dec eax
mov dword [rsp + 0x28], eax
imul eax, dword [rsp + 0x28], 0xaaaaaaab
add eax, 0x2aaaaaaa
cmp eax, 0x55555555
jb 0x14000194a
mov dword [rsp + 0x28], 0x7f6b9c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
xor ebp, ebp
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
je 0x140001a0f
mov rbx, rax
lea rdx, [rsp + 0x28]
mov dword [rdx], 0x130
mov dword [rsp + 0x24], 0x7f6b9c
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1400019f6
lea r14, [rsp + 0x54]
lea r15, [rsp + 0x28]
mov rcx, r14
mov rdx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400019e7
cmp dword [rsp + 0x30], edi
je 0x140001a03
mov rcx, rbx
mov rdx, r15
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1400019d2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
jmp 0x140001a0f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bpl, 1
mov eax, ebp
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14000e190
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
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 + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14000e292
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14000e26a
add rax, 1
cmp rax, 0x6b
je 0x14000e287
cmp byte [rcx + rax], 0
jne 0x14000e260
movsxd rdx, eax
cmp eax, 0x6a
je 0x14000e287
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.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14000e27b

Function at 0x14000e630
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400eb110], 1
je 0x14000e6a8
lea rdi, [0x1400eb110]
mov rcx, rdi
call fcn.14000df10
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14000d820
mov esi, dword [0x1400eb110]
test esi, esi
jne 0x14000e6b8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400b9038], eax
cmp eax, 0xffffffff
je 0x1400b8e46
mov dword [0x1400eb110], 1
mov rcx, rbp
call fcn.14000db10
test rbx, rbx
je 0x14000e6a8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14000e2b0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14000e688
mov ecx, 2
call qword [fcn.14001bd90]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14000e688
call sub.msvcrt.dll_abort
nop
Function at 0x14000e6e0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14000e3c0
cmp qword [0x1400ee048], 0
mov rbx, rax
je 0x14000e7f8
test rax, rax
je 0x14000e7f8
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14000de10
cmp eax, 1
je 0x14000e806
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
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.1400b8e4c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400b9038]
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 0x14000e80c
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.14000e190
nop
jmp fcn.1400b8e4c

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

Disassembly:
sub rsp, 0x28
call fcn.14000e630
mov ecx, dword [0x1400b9038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14000e840
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14000e6e0
Function at 0x14000efb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x14000f0d8
cmp eax, 1
je 0x14000f00b
call fcn.14000df10
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.14000d820
mov r12d, dword [rbx]
test r12d, r12d
je 0x14000f020
cmp r12d, 1
jne 0x14000f0b0
mov rcx, rbp
call fcn.14000db10
test rdi, rdi
je 0x14000f00b
mov rcx, rdi
call fcn.14000e2b0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x14000e390]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14000e630
mov ecx, dword [0x1400b9038]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x14000f118
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.14000e630
mov ecx, dword [0x1400b9038]
call r12
test rax, rax
je 0x14000f100
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.14000e630
mov ecx, dword [0x1400b9038]
call r12
test rax, rax
je 0x14000f0f0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x14000eff6
mov ecx, 2
call qword [fcn.14001bd90]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14000eff6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14000e6e0
test rax, rax
jne 0x14000f099
jmp 0x1400b8e65
call fcn.14000e6e0
test rax, rax
jne 0x14000f075
jmp 0x1400b8e7e
call fcn.14000e6e0
test rax, rax
jne 0x14000f04f
jmp 0x1400b8e74
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 0x14000f3a0
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.14000e630
mov ecx, dword [0x1400b9038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14000f418
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.14000de20
cmp esi, dword [rbx + 0x48]
jae 0x14000f3f3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14000f3f3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.14000de60
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.14000e6e0
mov rbx, rax
jmp 0x14000f3cd
Function at 0x14000f430
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.14000e630
mov ecx, dword [0x1400b9038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14000f530
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.14000de20
cmp esi, dword [rbx + 0x48]
jae 0x14000f4b0
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.14000de60
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.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x14000f53d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14000f53d
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.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x14000f47f
call fcn.14000e6e0
mov rbx, rax
jmp 0x14000f46a
mov rcx, r13
call fcn.14000de60
mov eax, 0xc
jmp 0x14000f49d

Function at 0x14000f5c0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14000e630
mov ecx, dword [0x1400b9038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14000f5e8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14000e6e0
test rax, rax
jne 0x14000f5da
add rsp, 0x28
ret

Function at 0x14000f650
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14000e630
mov ecx, dword [0x1400b9038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14000f678
add rax, 0x18
add rsp, 0x28
ret
call fcn.14000e6e0
test rax, rax
jne 0x14000f66a
jmp 0x14000f66e

Function at 0x14000f790
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400eb118]
test eax, eax
jne 0x14000f7a8
xor eax, eax
add rsp, 0x28
ret
call fcn.14000e630
mov ecx, dword [0x1400b9038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14000f7d8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14000f79e
test byte [rax + 0x40], 3
je 0x14000f79e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14000f7a0
call fcn.14000e6e0
test rax, rax
jne 0x14000f7be
jmp 0x14000f79e

Function at 0x14000f7f0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14000e630
mov ecx, dword [0x1400b9038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14000f830
test ebx, ebx
jle 0x14000f820
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.14000e6e0
test rax, rax
jne 0x14000f80d
add rsp, 0x20
pop rbx
ret
Function at 0x14000f920
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14000e630
mov ecx, dword [0x1400b9038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14000f998
test byte [rbx + 0x40], 0xc
jne 0x14000f94f
mov eax, dword [0x1400eb118]
test eax, eax
jne 0x14000f960
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14000d820
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14000f983
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14000f983
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14000f9ac
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14000db10
call fcn.14000e6e0
mov rbx, rax
test rax, rax
jne 0x14000f93f
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 0x14000f9ca
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14000db10
call fcn.14000f840
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14000fa50
call fcn.14000d5d0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14000fa88
call fcn.14000e630
mov ecx, dword [0x1400b9038]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14000fae0
test esi, esi
je 0x14000fa66
call fcn.14000f920
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14000fac0
mov edx, edi
call fcn.14000d680
call fcn.14000f920
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14000e630
mov ecx, dword [0x1400b9038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14000fad0
call fcn.14000f920
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14000f920
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14000e630
mov ecx, dword [0x1400b9038]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14000fa25
call fcn.14000e6e0
mov rbx, rax
jmp 0x14000fa25
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000fa3e
call fcn.14000e6e0
jmp 0x14000fa66
call fcn.14000e6e0
mov rbx, rax
jmp 0x14000fa21
Function at 0x14000f9e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14000e630
mov ecx, dword [0x1400b9038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14000f998
test byte [rbx + 0x40], 0xc
jne 0x14000f94f
mov eax, dword [0x1400eb118]
test eax, eax
jne 0x14000f960
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14000d820
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14000f983
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14000f983
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14000f9ac
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14000db10
call fcn.14000e6e0
mov rbx, rax
test rax, rax
jne 0x14000f93f
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 0x14000f9ca
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14000db10
call fcn.14000f840
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14000fa50
call fcn.14000d5d0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14000fa88
call fcn.14000e630
mov ecx, dword [0x1400b9038]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14000fae0
test esi, esi
je 0x14000fa66
call fcn.14000f920
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14000fac0
mov edx, edi
call fcn.14000d680
call fcn.14000f920
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14000e630
mov ecx, dword [0x1400b9038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14000fad0
call fcn.14000f920
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14000f920
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14000e630
mov ecx, dword [0x1400b9038]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14000fa25
call fcn.14000e6e0
mov rbx, rax
jmp 0x14000fa25
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000fa3e
call fcn.14000e6e0
jmp 0x14000fa66
call fcn.14000e6e0
mov rbx, rax
jmp 0x14000fa21

Function at 0x14000faf0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14000e630
mov ecx, dword [0x1400b9038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14000fb60
test esi, esi
je 0x14000fb40
call fcn.14000f920
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14000fb70
mov edx, esi
call fcn.14000d680
call fcn.14000f920
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14000f920
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14000f920
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14000e6e0
mov rbx, rax
jmp 0x14000fb11
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000fb2a
Function at 0x140011d60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14001bd90
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14001bd90
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140011dd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400eb194]
mov rbx, rcx
test esi, esi
jle 0x140011f00
mov rax, qword [0x1400eb198]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140011e1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140011ea5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140011e00
mov rcx, rbx
call fcn.140012820
mov rdi, rax
test rax, rax
je 0x140011f22
mov rax, qword [0x1400eb198]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140012960
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400eb198]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140011f07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140011e9e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140011eb0
add dword [0x1400eb194], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400eb198]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140011e9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140011d60
nop dword [rax]
xor esi, esi
jmp 0x140011e28
mov rax, qword [0x1400eb198]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140011d60
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140011d60
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140012490
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400eb200]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400eb1e0]
test rbx, rbx
je 0x1400124ec
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 0x1400124e3
test rsi, rsi
je 0x1400124e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400124c8
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 0x140012820
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400128a0
Capabilities:
Parse pe header

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

Function at 0x140012960
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c26d0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14001297f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140012988
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14007db90
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14007dbd8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007dbaa
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001100
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
lea r15, [rsp + 0x48]
mov r14, qword [r15]
mov rsi, rcx
mov qword [r15], rbx
cmp qword [0x140004080], rbx
mov dword [rax + 0x10], ebx
je 0x14000114a
test rcx, rcx
je 0x14000122c
mov eax, dword [0x140004088]
mov dword [rcx], eax
jmp 0x14000122c
lea rdx, [0x1400029b0]
lea rcx, [rsp + 0x20]
call fcn.140001814
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rbp, rax
test rax, rax
je 0x140001233
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x58]
xor edx, edx
lea ecx, [rdx + 0xb]
call fcn.1400022f7
cmp dword [rsp + 0x58], ebx
je 0x140001233
mov edx, dword [rsp + 0x58]
xor ecx, ecx
mov r8d, 0x454e4f45
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.140002500
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x58]
mov rdx, rdi
mov ecx, 0xb
call fcn.1400022f7
test eax, eax
js 0x140001219
mov r9d, dword [rdi]
mov ecx, ebx
test r9d, r9d
je 0x140001219
mov eax, ecx
imul rdx, rax, 0x128
mov r8, qword [rdx + rdi + 0x18]
cmp rbp, r8
jb 0x1400011f8
mov eax, dword [rdx + rdi + 0x20]
add rax, r8
cmp rbp, rax
jb 0x140001201
inc ecx
cmp ecx, r9d
jb 0x1400011d9
jmp 0x140001219
mov qword [0x140004080], r8
mov eax, dword [rdx + rdi + 0x20]
mov dword [0x140004088], eax
test rsi, rsi
je 0x140001219
mov dword [rsi], eax
test rdi, rdi
je 0x14000122c
mov edx, 0x454e4f45
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rbx, qword [0x140004080]
mov rbp, qword [rsp + 0x60]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
mov qword [r15], r14
add rsp, 0x30
pop r15
pop r14
pop rdi
ret