joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004fd0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x14000c418], eax
je 0x140004fec
mov eax, 0x10dd
jmp 0x140005117
mov rax, qword [0x14000c430]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140005099
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]
nop
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x140005063
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x140005063
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.140003c50
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.140006940
nop
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x140004ff8
mov qword [0x14000c430], 0
call fcn.1400046b0
nop
mov rax, qword [0x14000c428]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140005100
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.140006940
nop
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x1400050b6
mov qword [0x14000c428], 0
mov dword [0x14000c418], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x140005660
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x14000c41c], 0
je 0x14000567d
mov eax, dword [0x14000c41c]
jmp 0x140005747
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp qword [rsp + 0x50], rax
jne 0x140005691
xor eax, eax
jmp 0x140005747
mov ecx, 0x10
call fcn.140006948
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140005700
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x1400056e5
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.140006940
nop
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x14000c41c], eax
mov qword [0x14000c420], 0
mov eax, dword [rsp + 0x20]
jmp 0x140005747
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x14000571c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
jmp 0x1400056ba
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x14000c428]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x14000c428], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x140007324
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000736e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000736e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000736e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000736e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000736e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140007370
xor al, al
add rsp, 0x28
ret
Function at 0x140008240
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1410443b8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x1400083ea
cmp byte [rcx + 0x71], 0
je 0x1400083ea
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x14000829a
xor al, al
jmp 0x1400083ec
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], 0
mov byte [rbp - 0x30], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.140007a80
nop
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
nop word [rax + rax]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, rcx
lea r8, [rbp - 0x30]
cmovae r8, rcx
mov rcx, qword [rdi + 0x68]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
call qword [r10 + 0x40]
test eax, eax
je 0x14000830e
sub eax, 1
jne 0x140008382
jmp 0x140008312
mov byte [rdi + 0x71], 0
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, rcx
mov rbx, qword [rbp - 0x38]
sub rbx, rax
je 0x14000835f
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, rcx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.1401262bc
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x14000838f
cmp byte [rdi + 0x71], 0
je 0x140008393
test rbx, rbx
jne 0x1400082d0
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.140007dd0
jmp 0x1400082bf
sub eax, 2
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
je 0x140008393
xor bl, bl
jmp 0x140008395
mov bl, 1
cmp r9, 0x10
jb 0x1400083e5
lea rax, [r9 + 1]
cmp rax, 0x1000
jb 0x1400083e0
test byte [rbp - 0x30], 0x1f
je 0x1400083b3
call fcn.140125e18
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400083c2
call fcn.140125e18
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400083d1
call fcn.140125e18
int3
cmp rcx, 0x27
jbe 0x1400083dd
call fcn.140125e18
int3
mov rcx, rax
call fcn.140103190
movzx eax, bl
jmp 0x1400083ec
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140102b40
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14000a090
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1a8]
sub rsp, 0x2a0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1410443b8]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x40], ebx
mov edx, 0x104
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x14000a1eb
xor eax, eax
mov qword [rsp + 0x78], rax
or edi, 0xffffffff
mov r8d, edi
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x30]
call fcn.1400091a0
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.140031050
movzx r8d, word [rax]
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140009290
nop
lea r8, [0x1402c50d4]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140009350
nop
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x14000a15b
cmp eax, edi
je 0x14000a16a
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14000a16a
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
nop
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14000a18a
cmp eax, 0xffffffff
je 0x14000a198
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14000a198
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
mov rax, qword [rsp + 0x78]
mov qword [rsi], rax
lea rax, [0x1401885d8]
mov qword [rsp + 0x78], rax
mov ecx, dword [0x1401885d8]
test ecx, ecx
je 0x14000a1d5
cmp ecx, 0xffffffff
je 0x14000a28f
lock xadd dword [0x1401885d8], edi
cmp edi, 1
jne 0x14000a28f
mov rax, qword [rsp + 0x78]
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, rax
call fcn.140035d80
jmp 0x14000a28f
mov qword [rsp + 0x50], 2
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
lea rax, [0x1402c4b50]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.14001bce0
mov rbx, rax
or edi, 0xffffffff
mov r8d, edi
lea rdx, [0x1402c50b0]
lea rcx, [rsp + 0x38]
call fcn.140004100
nop
mov rdx, rax
mov rcx, qword [rbx]
call fcn.140033980
nop
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x14000a25c
cmp eax, edi
je 0x14000a26a
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x14000a26a
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
mov rcx, qword [rbx]
cmp byte [rcx + 0x20], 0
je 0x14000a27b
mov dl, 0x20
call fcn.140033a00
nop
lea rcx, [rsp + 0x48]
call fcn.14002cec0
lea rax, [0x1401885d8]
mov qword [rsi], rax
mov rax, rsi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140102b40
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14000a690
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x2d0
mov qword [rax - 0x260], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rax, qword [0x1410443b8]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov r14, rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
movsd xmm6, qword [0x141009768]
mov ebx, ebp
lea r15, [0x1402c4b50]
or esi, 0xffffffff
movsd xmm7, qword [0x141009760]
nop word [rax + rax]
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm7
subsd xmm6, xmm0
mov qword [rsp + 0x48], 2
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.14001bce0
mov rdi, rax
mov r8d, esi
lea rdx, [0x1402c5248]
lea rcx, [rsp + 0x20]
call fcn.140004100
nop
mov rdx, rax
mov rcx, qword [rdi]
call fcn.140033980
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14000a77a
cmp eax, 0xffffffff
je 0x14000a788
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14000a788
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
mov rcx, qword [rdi]
cmp byte [rcx + 0x20], 0
je 0x14000a798
mov dl, 0x20
call fcn.140033a00
movaps xmm1, xmm6
mov rcx, qword [rdi]
call fcn.140033c60
mov rcx, qword [rdi]
cmp byte [rcx + 0x20], 0
je 0x14000a7b4
mov dl, 0x20
call fcn.140033a00
nop
lea rcx, [rsp + 0x38]
call fcn.14002cec0
inc ebx
cmp ebx, 0x1e
jl 0x14000a700
mov edx, 0x104
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x14000a884
mov qword [rsp + 0x68], 2
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], r15
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.14001bce0
mov rbx, rax
mov r8d, esi
lea rdx, [0x1402c5270]
lea rcx, [rsp + 0x28]
call fcn.140004100
nop
mov rdx, rax
mov rcx, qword [rbx]
call fcn.140033980
nop
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x14000a84f
cmp eax, 0xffffffff
je 0x14000a85d
lock xadd dword [rcx], esi
cmp esi, 1
jne 0x14000a85d
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
mov rcx, qword [rbx]
cmp byte [rcx + 0x20], 0
je 0x14000a86e
mov dl, 0x20
call fcn.140033a00
nop
lea rcx, [rsp + 0x40]
call fcn.14002cec0
lea rax, [0x1401885d8]
mov qword [r14], rax
jmp 0x14000a897
mov r8d, esi
lea rdx, [rsp + 0x90]
mov rcx, r14
call fcn.1400091a0
mov rax, r14
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140102b40
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14000db20
Capabilities:
Enumerate process modules

Disassembly:
push rsi
mov eax, 0x1250
call fcn.140103550
sub rsp, rax
mov rax, qword [0x1410443b8]
xor rax, rsp
mov qword [rsp + 0x1240], rax
mov rsi, rcx
lea r8, [rsp + 0x28]
lea rcx, [rsp + 0x30]
mov edx, 0x1000
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x14000dcbb
mov qword [rsp + 0x1260], rbx
xor ebx, ebx
mov qword [rsp + 0x1268], rbp
mov ebp, dword [rsp + 0x28]
shr ebp, 2
mov qword [rsp + 0x1270], rdi
mov qword [rsp + 0x1278], r14
test ebp, ebp
je 0x14000dc99
or r14, 0xffffffffffffffff
nop word [rax + rax]
mov r8d, dword [rsp + rbx*4 + 0x30]
mov eax, ebx
test r8d, r8d
je 0x14000dc8f
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14000dc8f
lea r9, [rsp + 0x2c]
mov r8d, 8
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x14000dc86
mov rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x1030]
mov r9d, 0x104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
test eax, eax
je 0x14000dc86
cmp word [rsp + 0x1030], 0
jne 0x14000dc19
xor eax, eax
jmp 0x14000dc2e
lea rcx, [rsp + 0x1030]
mov rax, r14
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000dc24
cmp qword [rsi + 0x18], 8
jb 0x14000dc3a
mov rdx, qword [rsi]
jmp 0x14000dc3d
mov rdx, rsi
mov r10, qword [rsi + 0x10]
mov r9, rax
cmp r10, rax
cmovb r9, r10
test r9, r9
je 0x14000dc77
lea r8, [rsp + 0x1030]
nop dword [rax + rax]
movzx ecx, word [r8]
cmp word [rdx], cx
jne 0x14000dcd4
add rdx, 2
add r8, 2
sub r9, 1
jne 0x14000dc60
xor r9d, r9d
test r9d, r9d
jne 0x14000dc86
cmp r10, rax
jb 0x14000dc86
jbe 0x14000dce3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, ebp
jb 0x14000dba0
xor al, al
mov rdi, qword [rsp + 0x1270]
mov rbp, qword [rsp + 0x1268]
mov rbx, qword [rsp + 0x1260]
mov r14, qword [rsp + 0x1278]
mov rcx, qword [rsp + 0x1240]
xor rcx, rsp
call fcn.140102b40
add rsp, 0x1250
pop rsi
ret
cmp word [rdx], cx
mov r9d, 1
cmovb r9d, r14d
jmp 0x14000dc7a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14000dc9b
Function at 0x14000dde0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x1410443b8]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000de73
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000de6a
lea rax, [rsp + 0x4c]
mov r8, rdi
sub r8, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000de54
add rax, 2
test ecx, ecx
jne 0x14000de40
mov rcx, rbx
test edx, edx
je 0x14000de96
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14000de30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140102b40
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x14000de75
Function at 0x14001b430
Capabilities:
Print debug messages

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov r9, r8
mov r8, rdx
mov edx, ecx
lea rcx, [rsp + 0x20]
call fcn.14001caa0
nop
lea rax, [0x1401885d8]
or edi, 0xffffffff
mov rcx, qword [rsp + 0x20]
cmp rcx, rax
je 0x14001b519
call fcn.14001d5e0
lea rcx, [rsp + 0x20]
test al, al
jne 0x14001b4a4
mov eax, 0xa
mov word [rsp + 0x68], ax
movzx edx, ax
call fcn.1400232a0
lea rcx, [rsp + 0x20]
call fcn.14002b720
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14001b514
lea rdx, [rsp + 0x28]
call fcn.140020590
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x10]
add rbx, rcx
mov ecx, 2
call fcn.140125fb0
mov rcx, rax
mov r8, rbx
lea rdx, [0x14015734c]
call fcn.14001ec50
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x14001b4f4
cmp eax, 0xffffffff
je 0x14001b502
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14001b502
mov rcx, qword [rsp + 0x28]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.140035d80
mov ecx, 2
call fcn.140125fb0
mov rcx, rax
call fcn.14012594c
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14001b532
cmp eax, 0xffffffff
je 0x14001b540
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x14001b540
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140072f10
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
movzx edi, cl
mov eax, dword [0x141041058]
cmp eax, 0xffffffff
jne 0x140072f65
lea rbx, [0x1410487b0]
mov rcx, rbx
call fcn.140051f70
or rbx, 1
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x141041058], eax
test bl, 1
je 0x140072f65
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.140052420
mov eax, dword [0x141041058]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x14007306a
test dil, dil
je 0x14007306a
lea ecx, [rax + 0x78]
call fcn.140102b64
mov qword [rsp + 0x78], rax
lea edx, [rsi + 1]
mov rcx, rax
call fcn.140074660
mov rsi, rax
mov qword [rsp + 0x88], rax
mov rdx, rax
mov ecx, dword [0x141041058]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov ecx, 0x10
call fcn.140102b64
mov qword [rsp + 0x78], rax
mov rdx, rsi
mov rcx, rax
call fcn.1400744e0
nop
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsi + 0x38], rax
mov rcx, rsi
call fcn.140074bd0
mov byte [rsi + 0x72], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [rsi + 0x40], rax
mov rax, qword [0x141048120]
test rax, rax
jne 0x140073015
mov rax, qword [rsi + 0x38]
mov qword [0x141048120], rax
jmp 0x14007306a
mov qword [rsp + 0x78], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x30], 2
xor eax, eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x78]
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rsi + 0x38]
mov rcx, qword [rsp + 0x78]
call fcn.140073870
mov rax, rsi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140073870
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rsi, rdx
mov rdi, rcx
lea rbx, [0x1410487a8]
mov rcx, rbx
call fcn.140051f70
or rbx, 1
mov qword [rsp + 0x60], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x141048790]
jne 0x1400738c3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140073a03
mov rax, qword [0x141041060]
mov r8d, dword [rax + 8]
btr r8d, 0x1f
movsxd rdx, dword [rax + 4]
lea ecx, [rdx + 1]
cmp dword [rax], 1
ja 0x1400738e6
cmp r8d, ecx
jb 0x1400738e9
jmp 0x14007390e
cmp r8d, ecx
sbb r9d, r9d
and r9d, 8
cmp ecx, r8d
cmova r8d, ecx
lea rcx, [0x141041060]
call fcn.140073bc0
mov rax, qword [0x141041060]
movsxd rdx, dword [rax + 4]
mov rcx, qword [rax + 0x10]
lea rdx, [rcx + rdx*8]
mov qword [rdx + rax], rdi
mov rax, qword [0x141041060]
inc dword [rax + 4]
mov rax, qword [0x141041068]
mov r8d, dword [rax + 8]
btr r8d, 0x1f
movsxd rdx, dword [rax + 4]
lea ecx, [rdx + 1]
cmp dword [rax], 1
ja 0x140073947
cmp r8d, ecx
jb 0x14007394a
jmp 0x14007396f
cmp r8d, ecx
sbb r9d, r9d
and r9d, 8
cmp ecx, r8d
cmova r8d, ecx
lea rcx, [0x141041068]
call fcn.140073a30
mov rax, qword [0x141041068]
movsxd rdx, dword [rax + 4]
mov rcx, qword [rax + 0x10]
lea rdx, [rcx + rdx*8]
mov qword [rdx + rax], rsi
mov rax, qword [0x141041068]
inc dword [rax + 4]
cmp dword [0x141048790], 0
jne 0x1400739f5
cmp qword [0x141048798], 0
jne 0x1400739c2
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x141048798], rax
lea rdx, [0x141048798]
lea rcx, [0x141041060]
call fcn.140073280
lea rax, [0x141048790]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140073370]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140073a03
mov rcx, qword [0x141048798]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
test bl, 1
je 0x140073a14
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.140052420
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140074360
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov rsi, rcx
mov rdi, qword [rcx + 8]
lea rbx, [rdi + 0x70]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x14007418f
mov rcx, rbx
call fcn.140051f70
or rbx, 1
mov qword [rsp + 0x40], rbx
cmp byte [rdi + 0x7c], 0
je 0x1400741c1
cmp byte [rdi + 0xa0], 0
jne 0x1400741a7
mov byte [rdi + 0xa1], 1
jmp 0x1400741c1
xor edx, edx
mov rcx, qword [rdi + 0x90]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
xor edx, edx
mov rcx, rsi
call fcn.1400730a0
nop
test bl, 1
je 0x1400741d2
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.140052420
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test edx, edx
jne 0x1400743ba
cmp r8d, 5
ja case.default.0x140074383
movsxd rax, r8d
lea r8, [0x140000000]
mov edx, dword [r8 + rax*4 + 0x743f0]
add rdx, r8
jmp rdx
movzx edx, byte [rsp + 0x10]
jmp fcn.140074fd0
movzx edx, byte [rsp + 0x10]
jmp fcn.140074e00
mov rax, qword [r9 + 8]
mov edx, dword [rax]
jmp fcn.140073e00
mov edx, 7
jmp fcn.140073e00
jmp 0x140074150
xor edx, edx
jmp fcn.140074d30
cmp edx, 0xa
jne case.default.0x140074383
mov rax, qword [r9 + 8]
mov rcx, qword [r9]
mov rdx, qword [rax]
lea rax, [fcn.140074fd0]
cmp rdx, rax
jne 0x1400743dc
mov dword [rcx], 0
ret
lea rax, [fcn.140074e00]
cmp rdx, rax
jne case.default.0x140074383
mov dword [rcx], 1
ret
Function at 0x14007ccd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, r8
mov rsi, rdx
cmp dword [rbx + 0x9c], 1
je 0x14007cd02
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0x9c], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14009c0c0
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x18]
mov rax, qword [rcx + 0x70]
test rax, rax
jne 0x14009c1f1
cmp dword [rcx + 0x98], 0xffffffff
jne 0x14009c1ec
cmp qword [rcx + 0x78], 0xffffffffffffffff
je 0x14009c255
mov rdi, r8
mov qword [r11 + 0x20], r8
xor r12d, r12d
mov ebx, r12d
lea r13, [0x1401eed10]
nop dword [rax]
nop dword [rax + rax]
lea rax, [rsp + 0xa8]
cmp rdi, 0x2000000
cmovge rax, r13
lea rdx, [rbx + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x90]
mov r8d, dword [rax]
mov rcx, qword [rsi + 0x78]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14009c185
mov eax, dword [rsp + 0x90]
test eax, eax
je 0x14009c1e7
add rbx, rax
sub rdi, rax
mov qword [rsp + 0xa8], rdi
cmp rbx, rbp
jge 0x14009c1e7
jmp 0x14009c130
test rbx, rbx
jne 0x14009c1e7
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.140079d10
nop
mov r8, rax
lea edx, [rbx + 1]
mov rcx, r15
call fcn.14007b2c0
nop
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14009c1d0
cmp eax, 0xffffffff
je 0x14009c255
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14009c255
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
or rax, 0xffffffffffffffff
jmp 0x14009c269
mov rax, rbx
jmp 0x14009c269
test rax, rax
je 0x14009c25b
call fcn.14009be40
test al, al
je 0x14009c25b
mov rcx, qword [rsi + 0x70]
call fcn.14012ea74
test eax, eax
je 0x14009c25b
or edx, 0xffffffff
lea rcx, [rsp + 0x38]
call fcn.140079eb0
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.14007b2c0
nop
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x14009c247
cmp eax, 0xffffffff
je 0x14009c255
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14009c255
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
or rax, 0xffffffffffffffff
jmp 0x14009c269
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.14007cd20
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret