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

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14009d038]
cmp ecx, 0xffffffff
je 0x140034d82
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
jmp 0x140034d84
xor eax, eax
add rsp, 0x28
ret

Function at 0x140034d90
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r14, rdx
mov r15, rcx
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, dword [0x14009d038]
cmp ecx, 0xffffffff
je 0x140034dc5
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140034dca
call fcn.140034fe0
mov eax, dword [0x14009ff88]
mov ecx, dword [0x1400a06a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140034f8d
mov rbx, qword [0x14009ff80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140034f80
mov rcx, qword [0x14009e770]
inc rcx
mov edx, 0x100
lea rax, [0x14009e780]
nop dword [rax]
movzx edi, cl
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x140034e4a
lea edi, [rcx + 1]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x140034e4a
add rcx, 2
add rdx, 0xfffffffffffffffe
jne 0x140034e20
jmp 0x140034e6f
lea rcx, [rax + rsi*8]
mov dword [rcx], 1
lea rcx, [rdi + rdi*2]
mov qword [rax + rcx*8 + 8], r14
mov qword [0x14009e770], rdi
mov dword [r15], edi
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [r15 + 4], eax
movabs r14, 0xaaaaaaaaaaaaaaaa
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsp + 0x30], r14
mov edi, dword [r15]
cmp edi, 0xffffffff
jne 0x140034ef7
mov ecx, 0xffffffff
call fcn.1400137e0
mov rdi, rax
mov ecx, 0xffffffff
call fcn.1400137e0
lea rdx, str.slot____kInvalidSlotValue
lea rcx, [rsp + 0x30]
mov r8, rax
mov r9, rdi
call fcn.140013c70
cmp qword [rsp + 0x30], 0
je 0x140034ef4
lea rdx, str....._base_threading_thread_local_storage.cc
lea rdi, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x1c7
call fcn.140008190
mov rcx, rdi
call fcn.140008160
mov rcx, rdi
call fcn.140008170
mov edi, dword [r15]
mov qword [rsp + 0x30], r14
cmp edi, 0x100
jl 0x140034f66
mov ecx, 0x100
call fcn.1400137e0
mov rsi, rax
mov ecx, edi
call fcn.1400137e0
lea rdx, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x30]
mov r8, rax
mov r9, rsi
call fcn.140013c70
cmp qword [rsp + 0x30], 0
je 0x140034f66
lea rdx, str....._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x1c8
call fcn.140008190
mov rcx, rsi
call fcn.140008160
mov rcx, rsi
call fcn.140008170
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14005cd90
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rbx
call fcn.14001b190
jmp 0x140034e07
lea rcx, [0x14009ff88]
call fcn.14005d444
cmp dword [0x14009ff88], 0xffffffff
jne 0x140034def
mov ecx, 8
call fcn.14005cdb8
mov rbx, rax
mov rcx, rax
call fcn.14001b180
mov qword [0x14009ff80], rbx
lea rcx, [0x14009ff88]
call fcn.14005d3e4
jmp 0x140034def
Function at 0x140034fe0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.14005d570
sub rsp, rax
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov ecx, dword [0x14009d038]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x1400350d2
lea rcx, [rsp + 0x2c]
call fcn.140046db0
test al, al
jne 0x140035053
lea rdx, str....._base_threading_thread_local_storage.cc
lea r9, str.PlatformThreadLocalStorage::AllocTLS_key_
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x101
call fcn.1400080e0
mov rcx, rsi
call fcn.140008160
mov rcx, rsi
call fcn.140008170
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
jne 0x1400350b0
lea rcx, [rsp + 0x2c]
call fcn.140046db0
test al, al
je 0x140035071
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x1400350a2
lea rdx, str....._base_threading_thread_local_storage.cc
lea r9, str.PlatformThreadLocalStorage::AllocTLS_key___key___PlatformThreadLocalStorage::TLS_KEY_OUT_OF_INDEXES
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x10b
call fcn.1400080e0
mov rcx, rsi
call fcn.140008160
mov rcx, rsi
call fcn.140008170
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
mov eax, 0xffffffff
lock cmpxchg dword [0x14009d038], ecx
mov ecx, dword [rsp + 0x2c]
je 0x1400350d2
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14009d038]
mov dword [rsp + 0x2c], ecx
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
and esi, 3
je 0x14003514e
xor ecx, ecx
call fcn.1400137e0
mov rdi, rax
mov ecx, esi
call fcn.1400137e0
lea rdx, str.GetTlsVectorStateAndValue_key___TlsVectorState::kUninitialized
lea rcx, [rsp + 0x30]
mov r8, rax
mov r9, rdi
call fcn.140013c70
cmp qword [rsp + 0x30], 0
je 0x14003514e
lea rdx, str....._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x20]
lea r9, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x11d
call fcn.140008190
mov rcx, rsi
call fcn.140008160
mov rcx, rsi
call fcn.140008170
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.14005ee60
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14005cdf4
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.14005f230
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14005cd90
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret

Function at 0x1400351c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x14009d038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400351f0
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x1400351f0
mov rax, qword [rax + rcx]
jmp 0x1400351f2
xor eax, eax
add rsp, 0x20
pop rsi
ret
Function at 0x140035200
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14009d038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14003523e
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x140035237
call fcn.140034fe0
jmp 0x14003521e

Function at 0x140037750
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400a0000]
mov ecx, dword [0x1400a06a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140037785
lea rcx, [0x14009fff8]
add rsp, 0x28
jmp fcn.1400351c0
lea rcx, [0x1400a0000]
call fcn.14005d444
cmp dword [0x1400a0000], 0xffffffff
jne 0x140037775
mov qword [0x14009fff8], 0
lea rcx, [0x14009fff8]
xor edx, edx
call fcn.140035250
lea rcx, [0x1400a0000]
call fcn.14005d3e4
jmp 0x140037775

Function at 0x14003add4
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
mov edx, 4
call sub.ADVAPI32.dll_SystemFunction036
test al, al
setne al
add rsp, 0x28
ret
Function at 0x14003e470
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r12, rcx
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, qword [rdx]
mov qword [rsp + 0x30], 0
movaps xmm0, xmmword [0x140081c20]
movups xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rcx, rdi
call fcn.140067560
mov rbx, rax
cmp rax, 0xf
jbe 0x14003e4d2
lea rcx, [rsp + 0x30]
mov rdx, rbx
mov r9, rdi
call fcn.140007a10
jmp 0x14003e4ec
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x30]
mov rdx, rdi
mov r8, rbx
call fcn.14005f230
mov byte [rsp + rbx + 0x30], 0
movabs rbp, 0xcbf29ce484222325
mov rax, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
cmp r15, 0x10
lea rbx, [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmovae rbx, rax
test r14, r14
je 0x14003e53a
movabs rax, 0x100000001b3
lea rdx, [r14 - 1]
mov ecx, r14d
and ecx, 3
cmp rdx, 3
jae 0x14003e53f
xor esi, esi
jmp 0x14003e588
mov rdx, rbp
jmp 0x14003e5b6
mov rdi, r14
and rdi, 0xfffffffffffffffc
xor esi, esi
nop dword [rax + rax]
movzx edx, byte [rbx + rsi]
xor rdx, rbp
imul rdx, rax
movzx ebp, byte [rbx + rsi + 1]
xor rbp, rdx
imul rbp, rax
movzx edx, byte [rbx + rsi + 2]
xor rdx, rbp
imul rdx, rax
movzx ebp, byte [rbx + rsi + 3]
xor rbp, rdx
imul rbp, rax
add rsi, 4
cmp rdi, rsi
jne 0x14003e550
mov rdx, rbp
test rcx, rcx
je 0x14003e5b6
add rsi, rbx
xor edi, edi
nop word cs:[rax + rax]
movzx edx, byte [rsi + rdi]
xor rdx, rbp
imul rdx, rax
inc rdi
mov rbp, rdx
cmp rcx, rdi
jne 0x14003e5a0
and rdx, qword [r12 + 0x30]
mov r13, qword [r12 + 8]
mov rax, qword [r12 + 0x18]
mov rcx, rdx
shl rcx, 4
mov rsi, qword [rax + rcx + 8]
cmp rsi, r13
je 0x14003e631
add rdx, rdx
mov rdi, qword [rax + rdx*8]
cmp r14, qword [rsi + 0x20]
jne 0x14003e613
nop word cs:[rax + rax]
cmp qword [rsi + 0x28], 0x10
jb 0x14003e600
mov rdx, qword [rsi + 0x10]
jmp 0x14003e604
lea rdx, [rsi + 0x10]
mov rcx, rbx
mov r8, r14
call fcn.14005f8c0
test eax, eax
je 0x14003e624
cmp rsi, rdi
je 0x14003e631
mov rsi, qword [rsi + 8]
cmp r14, qword [rsi + 0x20]
je 0x14003e5f0
jmp 0x14003e613
test rsi, rsi
je 0x14003e631
cmp r15, 0x10
jae 0x14003e63a
jmp 0x14003e673
mov rsi, r13
cmp r15, 0x10
jb 0x14003e673
lea rdx, [r15 + 1]
cmp rdx, 0x1000
jb 0x14003e669
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x14003e699
add r15, 0x28
mov rdx, r15
mov rcx, rax
jmp 0x14003e66e
mov rcx, qword [rsp + 0x28]
call fcn.14005cdb0
cmp rsi, r13
setne bl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14005cd90
mov eax, ebx
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400674bc
int3
Function at 0x140043b50
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp edx, 0xffffffff
je 0x140043ca7
mov esi, edx
mov rdi, rcx
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140043bad
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
test ecx, ecx
jle 0x140043bad
dec ecx
mov dword [rax], ecx
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
lea rdx, [rcx + 1]
mov qword [rax], rdx
mov byte [rcx], sil
jmp 0x140043cea
cmp qword [rdi + 0x80], 0
je 0x140043cab
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x70]
cmp qword [rax], rcx
jne 0x140043be7
mov ecx, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rax], rdx
mov rax, qword [rdi + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x140043cb2
movaps xmm0, xmmword [0x1400818c0]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x5f], sil
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
lea rbp, [rsp + 0x80]
lea r9, [rsp + 0x60]
lea rdx, [rdi + 0x74]
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
lea rbx, [rsp + 0x48]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbp
lea r15, [rsp + 0x60]
mov qword [rsp + 0x28], r15
lea rbp, [rsp + 0x50]
mov qword [rsp + 0x20], rbp
lea r14, [rsp + 0x5f]
mov r8, r14
call qword [0x140081790]
mov ebp, 0xffffffff
cmp eax, 2
jae 0x140043cca
mov rbx, qword [rsp + 0x48]
sub rbx, r15
je 0x140043c97
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r15
mov r8, rbx
call fcn.14006b634
cmp rbx, rax
jne 0x140043ce8
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], r14
mov eax, 0xffffffff
jmp 0x140043ce3
xor esi, esi
jmp 0x140043cea
mov esi, 0xffffffff
jmp 0x140043cea
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call fcn.14006b6d0
cmp eax, 0xffffffff
cmove esi, eax
jmp 0x140043cea
cmp eax, 3
jne 0x140043ce8
mov rdx, qword [rdi + 0x80]
movsx ecx, byte [rsp + 0x5f]
call fcn.14006b6d0
cmp eax, 0xffffffff
cmove esi, eax
mov ebp, esi
mov esi, ebp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14005cd90
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140044190
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
jle 0x14004422f
mov r14, r8
mov rdi, rdx
mov r12, rcx
cmp qword [rcx + 0x68], 0
je 0x140044237
mov rbx, r14
jmp 0x1400441ec
cmp rbx, rsi
cmovb rsi, rbx
mov rcx, rdi
mov r8, rsi
call fcn.14005f230
add rdi, rsi
sub rbx, rsi
mov rax, qword [r12 + 0x50]
sub dword [rax], esi
mov rax, qword [r12 + 0x38]
add qword [rax], rsi
test rbx, rbx
jle 0x140044227
mov rax, qword [r12 + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140044204
mov rax, qword [r12 + 0x50]
mov esi, dword [rax]
test esi, esi
jg 0x1400441c0
mov rax, qword [r12]
mov rax, qword [rax + 0x38]
mov rcx, r12
call qword [0x140081790]
cmp eax, 0xffffffff
je 0x140044227
mov byte [rdi], al
inc rdi
dec rbx
test rbx, rbx
jg 0x1400441ec
sub r14, rbx
jmp 0x14004433b
xor r14d, r14d
jmp 0x14004433b
mov rax, qword [r12 + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x14004428f
mov rax, qword [r12 + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x14004428f
cmp r15, r14
cmovae r15, r14
mov rcx, rdi
mov r8, r15
call fcn.14005f230
add rdi, r15
mov rsi, r14
sub rsi, r15
mov rax, qword [r12 + 0x50]
sub dword [rax], r15d
mov rax, qword [r12 + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [r12 + 0x80], 0
jne 0x1400442a1
jmp 0x140044338
mov rsi, r14
cmp qword [r12 + 0x80], 0
je 0x140044338
mov rax, qword [r12 + 0x18]
lea rcx, [r12 + 0x70]
cmp qword [rax], rcx
jne 0x1400442e0
mov ecx, dword [r12 + 0x90]
mov rdx, qword [r12 + 0x88]
mov qword [rax], rdx
mov rax, qword [r12 + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [r12 + 0x50]
mov dword [rax], ecx
nop word cs:[rax + rax]
cmp rsi, 0x1000
jb 0x140044314
mov r9, qword [r12 + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call fcn.14006ace4
add rdi, rax
sub rsi, rax
cmp rax, 0xfff
je 0x1400442e0
jmp 0x140044338
test rsi, rsi
je 0x140044336
mov r9, qword [r12 + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rsi
call fcn.14006ace4
sub rsi, rax
jmp 0x140044338
xor esi, esi
sub r14, rsi
mov rax, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140044350
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, r8
mov r15, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x1400443ea
mov rsi, r14
test r14, r14
jle 0x14004445b
mov rsi, r14
jmp 0x1400443ae
cmp rsi, rdi
cmovb rdi, rsi
mov rdx, r15
mov r8, rdi
call fcn.14005f230
add r15, rdi
sub rsi, rdi
mov rax, qword [rbx + 0x58]
sub dword [rax], edi
mov rax, qword [rbx + 0x40]
add qword [rax], rdi
test rsi, rsi
jle 0x14004445b
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400443c4
mov rax, qword [rbx + 0x58]
mov edi, dword [rax]
test edi, edi
jg 0x140044380
movzx edx, byte [r15]
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
call qword [0x140081790]
cmp eax, 0xffffffff
je 0x14004445b
inc r15
dec rsi
test rsi, rsi
jg 0x1400443ae
jmp 0x14004445b
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140044434
test r14, r14
jle 0x140044434
mov rax, qword [rbx + 0x58]
mov edi, dword [rax]
test edi, edi
jle 0x140044434
cmp rdi, r14
cmovae rdi, r14
mov rdx, r15
mov r8, rdi
call fcn.14005f230
add r15, rdi
mov rsi, r14
sub rsi, rdi
mov rax, qword [rbx + 0x58]
sub dword [rax], edi
mov rax, qword [rbx + 0x40]
add qword [rax], rdi
test rsi, rsi
jg 0x14004443c
jmp 0x14004445b
mov rsi, r14
test rsi, rsi
jle 0x14004445b
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x14004445b
mov edx, 1
mov rcx, r15
mov r8, rsi
call fcn.14006b634
sub rsi, rax
sub r14, rsi
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140044850
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dil, 1
cmp qword [rcx + 0x68], 0
je 0x14004492f
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x14004492f
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
mov rcx, rsi
mov edx, 0xffffffff
call qword [0x140081790]
cmp eax, 0xffffffff
je 0x14004492d
movaps xmm0, xmmword [0x1400818c0]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x28], rax
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
lea rbx, [rsp + 0x28]
mov qword [rsp + 0x20], rbx
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [0x140081790]
cmp eax, 3
je 0x140044946
cmp eax, 1
je 0x1400448fd
test eax, eax
jne 0x14004492d
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x140044923
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call fcn.14006b634
cmp rbx, rax
jne 0x14004492d
cmp byte [rsi + 0x71], 0
sete dil
jmp 0x14004492f
xor edi, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005cd90
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 0x71], 0
mov dil, 1
jmp 0x14004492f

Function at 0x140046db0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140046dc5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x140048c14
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, r8
mov r8, rdx
mov rdi, rcx
mov rsi, qword [rsp + 0x90]
mov edx, dword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
mov qword [rsi], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r9
xor r14d, r14d
xor edx, edx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x140048cac
mov rbx, rax
mov rdi, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0x30], 3
mov rcx, rax
mov rdx, rbx
mov r8, rdi
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [rcx + rcx*4]
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x14004d400
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
mov eax, ecx
test r8, r8
je 0x14004d47c
cmp r8, 1
jne 0x14004d412
xor ecx, ecx
jmp 0x14004d45e
mov r9, r8
and r9, 0xfffffffffffffffe
xor ecx, ecx
lea r10, [0x140085110]
nop word cs:[rax + rax]
movzx r11d, al
movzx esi, byte [rdx + rcx]
xor esi, r11d
shr eax, 8
xor eax, dword [r10 + rsi*4]
movzx r11d, al
movzx esi, byte [rdx + rcx + 1]
xor esi, r11d
shr eax, 8
xor eax, dword [r10 + rsi*4]
add rcx, 2
cmp r9, rcx
jne 0x14004d430
test r8b, 1
je 0x14004d47c
movzx r8d, al
movzx ecx, byte [rdx + rcx]
xor ecx, r8d
lea rdx, [0x140085110]
shr eax, 8
xor eax, dword [rdx + rcx*4]
pop rsi
ret
Function at 0x14004fea0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
mov r8d, 0x103
lea rdx, [rsp + 0x40]
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x14004ff92
lea rcx, [rsp + 0x40]
call fcn.14004fdc0
test al, al
je 0x14004ff03
call fcn.14004fb70
test al, al
je 0x14004ff92
mov byte [rbx], 1
mov al, 1
jmp 0x14004ff94
lea r9, [rsp + 0x40]
mov r8, rdi
lea rdx, str.The_environment_variable__s__with_the_value_of__s__does_not_point_to_a_valid_JVM_installation.
lea rcx, [rsp + 0x150]
call fcn.140059720
mov edx, 0x72
lea rcx, [rsp + 0x20]
call fcn.14004f630
cmp qword [rsp + 0x38], 0x10
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x150]
cmovae r8, qword [rsp + 0x20]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rdx, qword [rsp + 0x38]
mov byte [rbx], 0
cmp rdx, 0x10
jb 0x14004ff8e
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004ff89
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004ffb5
call fcn.14005cdb0
mov al, 1
jmp 0x14004ff94
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14005cd90
mov rbx, qword [rsp + 0x290]
add rsp, 0x270
pop rdi
ret
call fcn.1400674bc
int3
Function at 0x140051290
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x490
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rbx, rdx
mov r9d, 0x104
lea r8, [rsp + 0x270]
mov edx, ecx
mov rcx, qword [0x1400a1a30]
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x14005140f
mov r8d, 0x104
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor edi, edi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], di
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x140051316
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.140058b80
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14004f500
nop
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x140051379
mov qword [rdx], rdi
mov qword [rdx + 0x10], rdi
mov qword [rdx + 0x18], rdi
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
add qword [rbx + 8], 0x20
jmp 0x140051385
mov r8, rax
mov rcx, rbx
call fcn.140059c80
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400513be
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400513b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140051436
call fcn.14005cdb0
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14005140f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005140a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140051430
call fcn.14005cdb0
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14005cd90
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop rdi
ret
call fcn.1400674bc
nop
call fcn.1400674bc
nop
int3