joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140032bbc
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x140032bf3
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140032bf3
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x140032bf3
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
ret

Function at 0x140033960
Capabilities:
Get thread local storage value

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

Function at 0x140033990
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140091088]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ecx, dword [0x140091048]
cmp ecx, 0xffffffff
je 0x1400339c1
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1400339c6
call fcn.140033b60
mov eax, dword [0x140093f98]
mov ecx, dword [0x140094580]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140033b15
mov rbx, qword [0x140093f90]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140033acc
mov rcx, qword [0x140092788]
inc rcx
mov edx, 0x100
lea rax, [0x140092790]
nop dword [rax]
movzx r8d, cl
lea r9, [r8 + r8*2]
cmp dword [rax + r9*8], 0
je 0x140033a4e
lea r8d, [rcx + 1]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rax + r9*8], 0
je 0x140033a4e
add rcx, 2
add rdx, 0xfffffffffffffffe
jne 0x140033a20
jmp 0x140033a72
lea rcx, [rax + r9*8]
mov dword [rcx], 1
lea rcx, [r8 + r8*2]
mov qword [rax + rcx*8 + 8], rdi
mov qword [0x140092788], r8
mov qword [rsi], r8
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
mov rsi, qword [rsi]
cmp rsi, 0x100
jae 0x140033ad9
xor eax, eax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140033ab6
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x38]
call fcn.140001220
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140052800
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
call fcn.14001f1e0
jmp 0x140033a03
mov ecx, 0x100
call fcn.140016ee0
mov rdi, rax
mov rcx, rsi
call fcn.140016ee0
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
lea rdx, str....._base_threading_thread_local_storage.cc
lea r9, str.slot____kThreadLocalStorageSize
xor ecx, ecx
mov r8d, 0x1c7
call fcn.140017230
jmp 0x140033a98
lea rcx, [0x140093f98]
call fcn.140052eb4
cmp dword [0x140093f98], 0xffffffff
jne 0x1400339eb
mov ecx, 8
call fcn.140052828
mov rbx, rax
mov rcx, rax
call fcn.14001f1d0
mov qword [0x140093f90], rbx
lea rcx, [0x140093f98]
call fcn.140052e54
jmp 0x1400339eb
Function at 0x140033b60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1058
call fcn.140052fe0
sub rsp, rax
mov rax, qword [0x140091088]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov ecx, dword [0x140091048]
mov dword [rsp + 0x4c], ecx
cmp ecx, 0xffffffff
jne 0x140033bf8
lea rcx, [rsp + 0x4c]
call fcn.14003bcf0
test al, al
je 0x140033ce2
mov ecx, dword [rsp + 0x4c]
cmp ecx, 0xffffffff
jne 0x140033bd6
lea rcx, [rsp + 0x4c]
call fcn.14003bcf0
test al, al
je 0x140033d10
cmp dword [rsp + 0x4c], 0xffffffff
je 0x140033d10
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x4c]
mov eax, 0xffffffff
lock cmpxchg dword [0x140091048], ecx
mov ecx, dword [rsp + 0x4c]
je 0x140033bf8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140091048]
mov dword [rsp + 0x4c], ecx
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
and esi, 3
jne 0x140033ca7
xor eax, eax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140033c39
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.140001220
lea rsi, [rsp + 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1400548d0
mov ecx, dword [rsp + 0x4c]
lea rdx, [rsp + 0x53]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.140052864
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140054a90
mov ecx, dword [rsp + 0x4c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140052800
mov rax, rdi
add rsp, 0x1058
pop rdi
pop rsi
ret
xor ecx, ecx
call fcn.140016e70
mov rdi, rax
mov ecx, esi
call fcn.140016e70
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
lea rdx, str....._base_threading_thread_local_storage.cc
lea r9, str.GetTlsVectorStateAndValue_key___TlsVectorState::kUninitialized
xor ecx, ecx
mov r8d, 0x11d
call fcn.140017230
jmp 0x140033c1b
lea rdx, str....._base_threading_thread_local_storage.cc
lea r9, str.PlatformThreadLocalStorage::AllocTLS_key_
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov r8d, 0x101
call fcn.140001100
mov rcx, rsi
call fcn.140001220
jmp 0x140033ba2
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 + 0x38]
mov rcx, rsi
mov r8d, 0x10b
call fcn.140001100
mov rcx, rsi
call fcn.140001220
jmp 0x140033bc8

Function at 0x140033d40
Capabilities:
Get thread local storage value

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140091048]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140033dbe
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x140033db7
call fcn.140033b60
jmp 0x140033d9e
Function at 0x14003834c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
sub rsp, 0x90
mov al, byte [rsp + 0xc0]
mov r10, qword [0x140091088]
xor r10, rsp
mov qword [rsp + 0x88], r10
mov dword [rsp + 0x3c], r9d
lea r9, [rsp + 0x58]
mov qword [r9 - 8], 3
lea r10, [rsp + 0x88]
lea r11, [rsp + 0x60]
mov dword [r11 - 8], 0
mov qword [r11], 0
lea rsi, [r11 + 0x10]
add r11, 8
cmp r11, r10
mov r11, rsi
jne 0x14003838c
cmp qword [r8 + 0x18], 8
jb 0x1400383b5
mov r8, qword [r8]
lea r10, [rsp + 0x30]
mov qword [r10], r8
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x48], r10
mov r8d, dword [rsp + 0x40]
mov dword [r9], r8d
mov r8d, dword [rsp + 0x44]
mov dword [r9 + 4], r8d
mov r8, qword [rsp + 0x48]
mov qword [r9 + 8], r8
mov r9d, 2
mov dword [rsp + 0x40], r9d
lea r8, [rsp + 0x3c]
mov qword [rsp + 0x48], r8
mov r10d, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x44]
mov rsi, qword [rsp + 0x48]
lea r8, [rsp + 0x50]
mov dword [r8 + 0x18], r10d
mov dword [r8 + 0x1c], r11d
mov qword [r8 + 0x20], rsi
movzx eax, al
lea r10, [rsp + 0x2c]
mov dword [r10], eax
mov dword [rsp + 0x40], r9d
mov qword [rsp + 0x48], r10
mov eax, dword [rsp + 0x40]
mov dword [r8 + 0x28], eax
mov eax, dword [rsp + 0x44]
mov dword [r8 + 0x2c], eax
mov rax, qword [rsp + 0x48]
mov qword [r8 + 0x30], rax
mov rcx, qword [rcx + 0x20]
call fcn.140011594
mov esi, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140052800
mov eax, esi
add rsp, 0x90
pop rsi
ret

Function at 0x14003ad50
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 0x14003bcf0
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 0x14003bd05
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x14003e996
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 r10, qword [rsp + 0x88]
mov qword [rsi], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x30], r10
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 0x14003ea2e
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 0x140042b50
sub rsp, 0x28
mov eax, dword [0x140093fe8]
mov ecx, dword [0x140094580]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg case.default.0x140042b80
mov rax, qword [0x140093fe0]
add rsp, 0x28
jmp qword [str.0I_a_]
lea rcx, [0x140093fe8]
call fcn.140052eb4
cmp dword [0x140093fe8], 0xffffffff
jne 0x140042b75
lea rcx, [0x140079830]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlGetLastNtStatus
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140093fe0], rax
lea rcx, [0x140093fe8]
call fcn.140052e54
jmp 0x140042b75
jmp rax
jmp qword [str.0I_a_]
Function at 0x14003f361
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x140091088]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x3c], r9d
mov rax, qword [rdx]
mov qword [rsp + 0x30], rax
cmp r8, 4
jb 0x14003f3b0
cmp word [rax], 0x5c
jne 0x14003f3b5
cmp word [rax + 2], 0x3f
jne 0x14003f3b5
cmp word [rax + 4], 0x3f
jne 0x14003f3b5
mov bl, 1
cmp word [rax + 6], 0x5c
jne 0x14003f3b5
jmp 0x14003f4a2
test r8, r8
je 0x14003f3ca
xor edx, edx
cmp word [rax + rdx*2], 0x7e
je 0x14003f4a0
inc rdx
cmp r8, rdx
jne 0x14003f3b7
mov al, byte [rsp + 0xc0]
lea rdx, [rsp + 0x58]
mov qword [rdx - 8], 3
lea r8, [rsp + 0x88]
lea r9, [rsp + 0x60]
mov dword [r9 - 8], 0
mov qword [r9], 0
lea r10, [r9 + 0x10]
add r9, 8
cmp r9, r8
mov r9, r10
jne 0x14003f3eb
mov dword [rsp + 0x40], 1
lea r8, [rsp + 0x30]
mov qword [rsp + 0x48], r8
mov r8d, dword [rsp + 0x40]
mov dword [rdx], r8d
mov r8d, dword [rsp + 0x44]
mov dword [rdx + 4], r8d
mov r8, qword [rsp + 0x48]
mov qword [rdx + 8], r8
mov r8d, 2
mov dword [rsp + 0x40], r8d
lea rdx, [rsp + 0x3c]
mov qword [rsp + 0x48], rdx
mov r9d, dword [rsp + 0x40]
mov r10d, dword [rsp + 0x44]
mov r11, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov dword [rdx + 0x18], r9d
mov dword [rdx + 0x1c], r10d
mov qword [rdx + 0x20], r11
movzx eax, al
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x40], r8d
mov qword [rsp + 0x48], r9
mov eax, dword [rsp + 0x40]
mov dword [rdx + 0x28], eax
mov eax, dword [rsp + 0x44]
mov dword [rdx + 0x2c], eax
mov rax, qword [rsp + 0x48]
mov qword [rdx + 0x30], rax
call fcn.14003ee94
mov ebx, eax
jmp 0x14003f4a2
mov bl, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140052800
mov eax, ebx
add rsp, 0x90
pop rbx
ret
Function at 0x140042da0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rax, qword [0x140091088]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp edx, 0xffffffff
je 0x140042ef7
mov esi, edx
mov rdi, rcx
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140042dfd
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
test ecx, ecx
jle 0x140042dfd
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 0x140042f3a
cmp qword [rdi + 0x80], 0
je 0x140042efb
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x70]
cmp qword [rax], rcx
jne 0x140042e37
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 0x140042f02
movaps xmm0, xmmword [0x140076960]
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 r8, [rsp + 0x80]
lea r9, [rsp + 0x60]
lea rdx, [rdi + 0x74]
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
lea r10, [rsp + 0x48]
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x30], r8
lea r14, [rsp + 0x60]
mov qword [rsp + 0x28], r14
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], r8
lea rbx, [rsp + 0x5f]
mov r8, rbx
call qword [str.0I_a_]
mov ebp, 0xffffffff
cmp eax, 2
jae 0x140042f1a
mov r15, qword [rsp + 0x48]
sub r15, r14
je 0x140042ee7
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r14
mov r8, r15
call fcn.140060f0c
cmp r15, rax
jne 0x140042f38
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rbx
mov eax, 0xffffffff
jmp 0x140042f33
xor esi, esi
jmp 0x140042f3a
mov esi, 0xffffffff
jmp 0x140042f3a
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call fcn.140060fa8
cmp eax, 0xffffffff
cmove esi, eax
jmp 0x140042f3a
cmp eax, 3
jne 0x140042f38
mov rdx, qword [rdi + 0x80]
movsx ecx, byte [rsp + 0x5f]
call fcn.140060fa8
cmp eax, 0xffffffff
cmove esi, eax
mov ebp, esi
mov esi, ebp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140052800
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400433c0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x14004345d
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x140043464
mov r15, rsi
jmp 0x14004341b
cmp r15, r14
cmovb r14, r15
mov rcx, rdi
mov r8, r14
call fcn.140054a90
add rdi, r14
sub r15, r14
mov rax, qword [rbx + 0x50]
sub dword [rax], r14d
mov rax, qword [rbx + 0x38]
add qword [rax], r14
test r15, r15
jle 0x140043455
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140043433
mov rax, qword [rbx + 0x50]
mov r14d, dword [rax]
test r14d, r14d
jg 0x1400433f0
mov rax, qword [rbx]
mov rax, qword [rax + 0x38]
mov rcx, rbx
call qword [str.0I_a_]
cmp eax, 0xffffffff
je 0x140043455
mov byte [rdi], al
inc rdi
dec r15
test r15, r15
jg 0x14004341b
sub rsi, r15
jmp 0x14004355a
xor esi, esi
jmp 0x14004355a
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400434b7
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x1400434b7
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call fcn.140054a90
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x1400434c8
jmp 0x140043557
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x140043557
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x140043500
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
nop word cs:[rax + rax]
cmp r14, 0x1000
jb 0x140043533
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call fcn.1400605bc
add rdi, rax
sub r14, rax
cmp rax, 0xfff
je 0x140043500
jmp 0x140043557
test r14, r14
je 0x140043554
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call fcn.1400605bc
sub r14, rax
jmp 0x140043557
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140043570
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x140043610
mov r14, rsi
test rsi, rsi
jle 0x140043684
mov r14, rsi
jmp 0x1400435cf
cmp r14, r15
cmovb r15, r14
mov rdx, rdi
mov r8, r15
call fcn.140054a90
add rdi, r15
sub r14, r15
mov rax, qword [rbx + 0x58]
sub dword [rax], r15d
mov rax, qword [rbx + 0x40]
add qword [rax], r15
test r14, r14
jle 0x140043684
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400435e7
mov rax, qword [rbx + 0x58]
mov r15d, dword [rax]
test r15d, r15d
jg 0x1400435a0
movzx edx, byte [rdi]
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
call qword [str.0I_a_]
cmp eax, 0xffffffff
je 0x140043684
inc rdi
dec r14
test r14, r14
jg 0x1400435cf
jmp 0x140043684
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x14004365d
test rsi, rsi
jle 0x14004365d
mov rax, qword [rbx + 0x58]
mov r15d, dword [rax]
test r15d, r15d
jle 0x14004365d
cmp r15, rsi
cmovae r15, rsi
mov rdx, rdi
mov r8, r15
call fcn.140054a90
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x58]
sub dword [rax], r15d
mov rax, qword [rbx + 0x40]
add qword [rax], r15
test r14, r14
jg 0x140043665
jmp 0x140043684
mov r14, rsi
test r14, r14
jle 0x140043684
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x140043684
mov edx, 1
mov rcx, rdi
mov r8, r14
call fcn.140060f0c
sub r14, rax
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140043a80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x140091088]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dil, 1
cmp qword [rcx + 0x68], 0
je 0x140043b5f
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x140043b5f
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
mov rcx, rsi
mov edx, 0xffffffff
call qword [str.0I_a_]
cmp eax, 0xffffffff
je 0x140043b5d
movaps xmm0, xmmword [0x140076960]
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 r8, [rsp + 0x28]
mov qword [rsp + 0x20], r8
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [str.0I_a_]
cmp eax, 3
je 0x140043b76
cmp eax, 1
je 0x140043b2d
test eax, eax
jne 0x140043b5d
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x140043b53
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call fcn.140060f0c
cmp rbx, rax
jne 0x140043b5d
cmp byte [rsi + 0x71], 0
sete dil
jmp 0x140043b5f
xor edi, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140052800
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 0x71], 0
mov dil, 1
jmp 0x140043b5f
Function at 0x1400457f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140091088]
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 0x1400458e2
lea rcx, [rsp + 0x40]
call fcn.140045710
test al, al
je 0x140045853
call fcn.1400454c0
test al, al
je 0x1400458e2
mov byte [rbx], 1
mov al, 1
jmp 0x1400458e4
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.14004f220
mov edx, 0x72
lea rcx, [rsp + 0x20]
call fcn.140044f80
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 0x1400458de
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400458d9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140045905
call fcn.140052820
mov al, 1
jmp 0x1400458e4
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140052800
mov rbx, qword [rsp + 0x290]
add rsp, 0x270
pop rdi
ret
call fcn.14005cf1c
int3
Function at 0x140046be0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x490
mov rax, qword [0x140091088]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rbx, rdx
mov r9d, 0x104
lea r8, [rsp + 0x270]
mov edx, ecx
mov rcx, qword [0x140095900]
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x140046d5f
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 0x140046c66
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.14004e600
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140044e50
nop
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x140046cc9
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 0x140046cd5
mov r8, rax
mov rcx, rbx
call fcn.14004f780
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140046d0e
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046d09
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140046d86
call fcn.140052820
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140046d5f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046d5a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140046d80
call fcn.140052820
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140052800
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop rdi
ret
call fcn.14005cf1c
nop
call fcn.14005cf1c
nop
int3