joyce8/EMBER2024-capa huggingface dataset:
Function at 0x32ad21500
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
pxor xmm0, xmm0
mov qword [rcx + 0x10], 0
mov rsi, rcx
movups xmmword [rcx], xmm0
mov ecx, 0x108e00
call fcn.32ad41c20
lea rdi, [rax + 0x108e00]
mov qword [rsi], rax
mov rcx, rax
mov rbx, rax
mov qword [rsi + 0x10], rdi
mov rdx, qword [sym.payload.dll_globalByteArray]
mov r8d, 0x108e00
call sub.msvcrt.dll_memcpy
mov qword [rsi + 8], rdi
mov rbp, qword [sym.payload.dll_encryptionKey]
lea rdi, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
mov rcx, rbp
call sub.msvcrt.dll_strlen
cmp rax, 1
je 0x32ad21610
test rax, rax
jne 0x32ad215e0
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov byte [rsp + rax + 0x30], 0
mov r8, qword [rsp + 0x28]
nop word [rax + rax]
mov rax, rcx
xor edx, edx
div r8
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + rdx]
xor byte [rbx + rcx], al
add rcx, 1
mov rbx, qword [rsi]
mov rax, qword [rsi + 8]
sub rax, rbx
cmp rcx, rax
jb 0x32ad21590
mov rcx, qword [rsp + 0x20]
cmp rcx, rdi
je 0x32ad215cf
mov rax, qword [rsp + 0x30]
lea rdx, [rax + 1]
call fcn.32ad41c10
mov rax, rsi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r8, rdi
mov rdx, rbp
cmp eax, 8
jae 0x32ad21620
xor ecx, ecx
test al, 4
jne 0x32ad21660
test al, 2
jne 0x32ad21648
test al, 1
je 0x32ad21576
movzx edx, byte [rdx + rcx]
mov byte [r8 + rcx], dl
jmp 0x32ad21576
movzx edx, byte [rbp]
mov byte [rsp + 0x30], dl
jmp 0x32ad21576
mov r8d, eax
xor edx, edx
and r8d, 0xfffffff8
mov ecx, edx
add edx, 8
mov r9, qword [rbp + rcx]
mov qword [rdi + rcx], r9
cmp edx, r8d
jb 0x32ad21629
lea r8, [rdi + rdx]
add rdx, rbp
jmp 0x32ad215eb
movzx r9d, word [rdx + rcx]
mov word [r8 + rcx], r9w
add rcx, 2
test al, 1
je 0x32ad21576
jmp 0x32ad215fd
mov ecx, dword [rdx]
mov dword [r8], ecx
mov ecx, 4
test al, 2
je 0x32ad215f5
jmp 0x32ad21648
Function at 0x32ad375e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.32ad3f4c0
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.32ad3f4c0
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 0x32ad37650
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x32ae51064]
mov rbx, rcx
test esi, esi
jle 0x32ad37780
mov rax, qword [0x32ae51068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x32ad3769b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x32ad37725
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x32ad37680
mov rcx, rbx
call fcn.32ad37f70
mov rdi, rax
test rax, rax
je 0x32ad377a2
mov rax, qword [0x32ae51068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.32ad380b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x32ae51068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x32ad37787
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x32ad3771e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x32ad37730
add dword [0x32ae51064], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x32ae51068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x32ad3771e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.32ad375e0
nop dword [rax]
xor esi, esi
jmp 0x32ad376a8
mov rax, qword [0x32ae51068]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.32ad375e0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.32ad375e0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x32ad37c60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 2
je 0x32ad37d90
ja 0x32ad37ca8
test edx, edx
je 0x32ad37d28
mov eax, dword [0x32ae51088]
test eax, eax
je 0x32ad37e10
mov dword [0x32ae51088], 1
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 3
jne 0x32ad37c95
mov eax, dword [0x32ae51088]
test eax, eax
je 0x32ad37c95
lea r12, [0x32ae510a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x32ae51080]
test rbx, rbx
je 0x32ad37d14
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 rsi, rsi
je 0x32ad37e38
test eax, eax
jne 0x32ad37e38
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x32ad37ce8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x32ad37c95
mov eax, dword [0x32ae51088]
test eax, eax
jne 0x32ad37da8
mov eax, dword [0x32ae51088]
cmp eax, 1
jne 0x32ad37c95
mov rbx, qword [0x32ae51080]
test rbx, rbx
je 0x32ad37d61
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
call fcn.32ad40000
test rbx, rbx
jne 0x32ad37d50
lea rcx, [0x32ae510a0]
mov qword [0x32ae51080], 0
mov dword [0x32ae51088], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x32ad37c95
call fcn.32ad38240
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r12, [0x32ae510a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x32ae51080]
test rbx, rbx
je 0x32ad37dfc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x32ad37e28
test rsi, rsi
je 0x32ad37e28
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x32ad37dd8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x32ad37d32
lea rcx, [0x32ae510a0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x32ad37c8b
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x32ad37dd8
jmp 0x32ad37dfc
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x32ad37ce8
jmp 0x32ad37d14

Function at 0x32ad37f70
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r8, qword [0x32ae4e220]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x32ad37f90
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x32ad37f98
ret
cmp word [rdx + 0x18], 0x20b
jne 0x32ad37f90
movzx eax, word [rdx + 0x14]
sub rcx, r8
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x32ad37fe5
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x32ad37fdc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x32ad37f90
add rax, 0x28
cmp rax, r9
jne 0x32ad37fc8
xor eax, eax
ret
Function at 0x32ad37ff0
Capabilities:
Parse pe header

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

Function at 0x32ad380b0
Capabilities:
Parse pe header

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

Function at 0x32ad38360
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x32ad38390
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp 0x32ad401b0
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x32ad401c0
xor eax, eax
ret
jmp fcn.32ad37b60

Function at 0x32ad383d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x32ad38400
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x32ad38418
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x14001e12c
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x1400c181c]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x14001fa34
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001fa7e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001fa7e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001fa7e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001fa7e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001fa7e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001fa80
xor al, al
add rsp, 0x28
ret

Function at 0x14002439c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14002440b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002440b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002440b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002440b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002440b
cmp dword [rcx + 0x84], 0xe
jbe 0x14002440b
cmp dword [rcx + 0xf8], 0
je 0x14002440b
mov ecx, ebx
call fcn.140024510
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400241d0
nop
cmp dword [rbp + 0x20], 0
je 0x140024459
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140024464
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14002439c

Function at 0x1400245fc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002439c
Function at 0x140030034
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140026380
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400300d5
cmp ebx, dword [rsp + 0x30]
je 0x1400300ce
test esi, esi
je 0x1400300ce
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400300a9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400300b6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140030093
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400300ba
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400300d7
mov eax, 1
jmp 0x1400300d7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14003136c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14003139c
xor eax, eax
jmp 0x14003145f
mov rbp, rbx
cmp word [rax], si
je 0x1400313c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400313a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400313a4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140031664
movsxd r14, eax
test eax, eax
jne 0x1400313ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140031395
mov rcx, r14
call fcn.140026e04
mov rdi, rax
test rax, rax
jne 0x140031418
xor ecx, ecx
call fcn.140025134
jmp 0x1400313f4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140031664
test eax, eax
jne 0x140031449
mov rcx, rdi
call fcn.140025134
jmp 0x140031453
xor ecx, ecx
call fcn.140025134
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14003147c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140031503
mov rsi, rbx
cmp word [rax], bp
je 0x1400314c2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400314ac
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400314a8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140026e04
mov rdi, rax
test rax, rax
je 0x1400314f0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003f750
mov rbp, rdi
xor ecx, ecx
call fcn.140025134
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400396a8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14002a328
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140039732
cmp byte [rbp - 0x21], r15b
je 0x14003972d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140039768
call fcn.1400280a4
test eax, eax
jne 0x140039754
cmp byte [rbp - 0x21], r15b
je 0x14003974c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140039768
cmp byte [rbp - 0x21], r15b
je 0x140039765
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14002b32c
test eax, eax
jne 0x140039808
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14002a328
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400397a7
cmp byte [rbp - 0x21], r15b
je 0x1400397dc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400397dc
call fcn.1400280a4
test eax, eax
jne 0x1400397c8
cmp byte [rbp - 0x21], r15b
je 0x1400397c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400397dc
cmp byte [rbp - 0x21], r15b
je 0x1400397d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14002b32c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140039808
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003980b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140039819
mov rcx, rdi
call fcn.140025134
cmp byte [rbp + 0x3f], r15b
je 0x140039828
mov rcx, qword [rbp + 0x27]
call fcn.140025134
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14003bdc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400c4210]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14003be17
cmp word [rdx], r13w
jne 0x14003be17
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14003be1c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14003bf41
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14003bf62
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14003be55
mov rdx, r9
mov word [rbx], cx
jmp 0x14003be7c
cmp r9, r8
jae 0x14003be8c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14003be36
jmp 0x14003bf41
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003bf36
cmp dword [rsp + 0x80], esi
je 0x14003bf36
lea r8, [0x1400c4210]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14003bf0e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14003bede
mov word [rbx], r13w
jmp 0x14003bf3e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14003beeb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14003bf3e
cmp word [rsp + 0x70], r13w
jne 0x14003bf1b
cmp rbx, r14
je 0x14003bed8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14003d354
cmp word [rsp + 0x70], r13w
je 0x14003bf41
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400c4210]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14003bf3b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14003bf41
Function at 0x14004cda8
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x14004ce6c
lea rcx, [0x1400c5060]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400c4870]
jmp 0x14004ce32
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14004ce2f
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1400c4870]
mov rdx, rsi
call fcn.140053d58
jmp 0x14004ce32
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14004cdff
mov rdi, qword [0x1400c17f0]
lea rcx, [0x1400c4870]
lea rdx, [rdi + 1]
mov qword [0x1400c17f0], rdx
lea edx, [rbx + 0x20]
call fcn.140053da0
lea rcx, [0x1400c5060]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14004cefc
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
cmp qword [0x1400c4880], 0
jne 0x14004cf62
lea rcx, [0x1400c4880]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14004cf4e
movabs rax, 0x20c49ba5e353f7cf
lea rcx, [0x1400c4888]
imul qword [0x1400c4880]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [0x1400c4880], rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp qword [0x1400c4880], 0
jne 0x14004cf62
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
jmp 0x14004cf88
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
sub rax, qword [0x1400c4888]
cqo
idiv qword [0x1400c4880]
add rsp, 0x28
ret