joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027760
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14002776d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14002777d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140027765
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140027795
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140027782
sub eax, 3
jb 0x1400277af
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400277e6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x1400277d6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400277d4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400277c3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140027722
jmp 0x14002776d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x7400
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140027832
cmp rsi, rcx
jae 0x14002783a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140027819
cmp al, 0x8f
ja 0x140027819
cmp byte [rsi - 2], 0xf
je 0x14002781f
sub al, 0xe8
cmp al, 1
ja 0x140027803
cmp rsi, rcx
jae 0x14002783a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140027809
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14002783a
lodsb al, byte [rsi]
jmp 0x140027819
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x25000]
mov eax, dword [rdi]
or eax, eax
je 0x140027897
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x272b4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140027847
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140027891
mov qword [rbx], rax
add rbx, 8
jmp 0x140027867
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400278d1
cmp al, 0xef
ja 0x1400278c3
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400278a3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400278b2
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140027925
sub rsp, 0xffffffffffffff80
jmp 0x140007630
Function at 0x18001b113
Capabilities:
Suspend thread

Disassembly:
jmp 0x180037400
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x1800637cc], 0
je 0x18003741d
mov eax, dword [0x1800637cc]
jmp 0x1800374e6
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp qword [rsp + 0x50], rax
jne 0x180037431
xor eax, eax
jmp 0x1800374e6
mov ecx, 0x10
call fcn.18001b091
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18003749f
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180037484
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.18001bbef
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1800637cc], eax
mov qword [0x1800637d0], 0
mov eax, dword [rsp + 0x20]
jmp 0x1800374e6
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1800374bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
jmp 0x18003745a
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x1800637d8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x1800637d8], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x18001b71c
Capabilities:
Create thread

Disassembly:
jmp 0x180033fd0
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x30]
lea rcx, [0x18006c12a]
call fcn.18001be60
mov eax, dword [rbp + 0xf8]
mov dword [rbp + 0xc0], eax
cmp dword [rbp + 0xc0], 1
je 0x18003400f
jmp 0x180034034
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x18001bba4]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
lea rsp, [rbp + 0xd8]
pop rdi
pop rbp
ret

Function at 0x18001b82f
Capabilities:
Terminate process

Disassembly:
jmp 0x18004ffa0
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 0x18001baf0
Capabilities:
Resume thread

Disassembly:
jmp 0x180036be0
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1800637c8], eax
je 0x180036bfc
mov eax, 0x10dd
jmp 0x180036d23
mov rax, qword [0x1800637e0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180036ca7
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180036c72
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x180036c72
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180034f50
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.18001bbef
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180036c08
mov qword [0x1800637e0], 0
call fcn.180035c40
mov rax, qword [0x1800637d8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180036d0c
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.18001bbef
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180036cc3
mov qword [0x1800637d8], 0
mov dword [0x1800637c8], 0
xor eax, eax
add rsp, 0x68
ret

Function at 0x180034360
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180034610
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180034467
mov rax, qword [0x180063008]
cmp qword [rsp + 0x20], rax
jb 0x1800343c4
mov rax, qword [0x180063010]
cmp qword [rsp + 0x20], rax
ja 0x1800343c4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180034386
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18001bb1d
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800343f3
jmp 0x180034467
cmp dword [rsp + 0x50], 0x10000
jne 0x18003444a
cmp qword [rsp + 0x48], 0x10000
jb 0x18003444a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180034438
mov rax, qword [rsp + 0x28]
jmp 0x180034469
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180034462
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180034610
mov qword [rsp + 0x20], rax
jmp 0x180034386
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800344c0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180034660
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x1800345c3
mov rax, qword [0x180063008]
cmp qword [rsp + 0x20], rax
jb 0x18003451b
mov rax, qword [0x180063010]
cmp qword [rsp + 0x20], rax
ja 0x18003451b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800344dd
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18001bb1d
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18003454a
jmp 0x1800345c3
cmp dword [rsp + 0x50], 0x10000
jne 0x1800345a1
cmp qword [rsp + 0x48], 0x10000
jb 0x1800345a1
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18003458f
mov rax, qword [rsp + 0x28]
jmp 0x1800345c5
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800345be
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180034660
mov qword [rsp + 0x20], rax
jmp 0x1800344dd
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800346c0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18001be4c
mov qword [rsp + 0x28], 0
cmp qword [0x1800637b8], 0
jne 0x180034708
cmp qword [0x1800637b0], 0
je 0x180034708
mov rax, qword [0x1800637b0]
mov qword [0x1800637b8], rax
cmp qword [0x1800637b8], 0
je 0x1800347ae
mov rax, qword [0x1800637b8]
cmp qword [rax + 0x10], 0
je 0x1800347ae
mov rax, qword [0x1800637b8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800347ae
mov rax, qword [0x1800637b8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800347ae
mov rax, qword [0x1800637b8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180034774
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18003477b
xor eax, eax
jmp 0x180034929
mov rax, qword [0x1800637b8]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.18001bb1d
mov rax, qword [rsp + 0x28]
jmp 0x180034929
mov rax, qword [0x1800637b0]
mov qword [0x1800637b8], rax
jmp 0x1800347d0
mov rax, qword [0x1800637b8]
mov rax, qword [rax + 8]
mov qword [0x1800637b8], rax
cmp qword [0x1800637b8], 0
je 0x18003481d
cmp qword [0x1800637b8], 0
je 0x18003481b
mov rax, qword [0x1800637b8]
cmp qword [rax + 0x10], 0
je 0x18003481b
mov rax, qword [0x1800637b8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18003481b
mov rax, qword [0x1800637b8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18003481b
jmp 0x18003474c
jmp 0x1800347be
mov rcx, qword [rsp + 0x60]
call fcn.18001b3e8
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800349d0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180034927
mov rax, qword [rsp + 0x48]
mov qword [0x1800637b8], rax
mov rax, qword [0x1800637b8]
mov dword [rax], 0x52727464
mov rax, qword [0x1800637b8]
mov qword [rax + 0x10], 0
mov rax, qword [0x1800637b8]
mov rcx, qword [0x1800637b0]
mov qword [rax + 8], rcx
mov rax, qword [0x1800637b8]
mov qword [0x1800637b0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1800637b8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1800348d8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180034912
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x1800348ce
mov rax, qword [0x1800637b8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18003474c
xor eax, eax
add rsp, 0x58
ret
Function at 0x140e88058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140e881df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140e88089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e8806f
add dl, dl
jne 0x140e88096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e880f6
xor eax, eax
add dl, dl
jne 0x140e880a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e881ad
add dl, dl
jne 0x140e880b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e880c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e880d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e880dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140e880ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140e8807e
mov eax, 1
add dl, dl
jne 0x140e88106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e88113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e880fb
sub eax, ebx
mov ebx, 1
jne 0x140e8814c
mov ecx, 1
add dl, dl
jne 0x140e8812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e8813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e88123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e8807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140e88168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e88175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e8815d
cmp eax, 0x7d00
jae 0x140e8819b
cmp eax, 0x500
jb 0x140e88196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e8807e
cmp eax, 0x7f
ja 0x140e8819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e8807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140e881d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140e8807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000aea0
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 fcn.140014d80
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.140014d80
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 0x14000af10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400e00a4]
test esi, esi
mov rbx, rcx
jle 0x14000b040
mov rax, qword [0x1400e00a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000af5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000afe5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000af40
mov rcx, rbx
call fcn.14000b960
test rax, rax
mov rdi, rax
je 0x14000b062
mov rax, qword [0x1400e00a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000baa0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400e00a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b047
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000afde
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000aff0
add dword [0x1400e00a4], 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 [0x1400e00a8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000afde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000aea0
nop dword [rax]
xor esi, esi
jmp 0x14000af68
mov rax, qword [0x1400e00a8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14000aea0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14000aea0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000b5d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400e0100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e00e0]
test rbx, rbx
je 0x14000b62c
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 0x14000b623
test rsi, rsi
je 0x14000b623
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000b608
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 0x14000b960
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000b9e0
Capabilities:
Parse pe header

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

Function at 0x14000baa0
Capabilities:
Parse pe header

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

Function at 0x1400172b0
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.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x1400173ba
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x140017392
add rax, 1
cmp rax, 0x6b
je 0x1400173af
cmp byte [rcx + rax], 0
jne 0x140017388
cmp eax, 0x6a
movsxd rdx, eax
je 0x1400173af
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
lea rcx, [rsp + 0x20]
mov eax, 0x28
mov edx, 0x27
jmp 0x1400173a3
Function at 0x140017730
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400e0d20], 1
je 0x1400177a8
lea rdi, [0x1400e0d20]
mov rcx, rdi
call fcn.140017030
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140016940
mov esi, dword [0x1400e0d20]
test esi, esi
jne 0x1400177b8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1400b2158], eax
je 0x1400b1586
mov dword [0x1400e0d20], 1
mov rcx, rbp
call fcn.140016c30
test rbx, rbx
je 0x1400177a8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400173d0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140017788
mov ecx, 2
call qword [fcn.140014d80]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140017788
call sub.msvcrt.dll_abort
nop

Function at 0x1400177e0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.1400174e0
cmp qword [0x1400e3048], 0
mov rbx, rax
je 0x1400178f8
test rax, rax
je 0x1400178f8
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.140016f30
cmp eax, 1
je 0x140017906
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.1400b158c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400b2158]
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 0x14001790c
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.1400172b0
nop
jmp fcn.1400b158c

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

Disassembly:
sub rsp, 0x28
call fcn.140017730
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140017940
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1400177e0