joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001480
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x88], rax
movups xmm0, xmmword [0x140006690]
mov rbp, r8
xor r9d, r9d
xor r8d, r8d
mov edi, edx
mov rsi, rcx
movups xmmword [rsp + 0x78], xmm0
test dl, 7
je 0x14000156e
lea rdx, [0x1400045c0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x14000162e
mov rcx, qword [rsp + 0x50]
lea r8, str.ChainingModeCFB
xor ebx, ebx
lea rdx, str.ChainingMode
mov r9d, 0x20
mov dword [rsp + 0x20], ebx
call qword [sym.imp.bcrypt.dll_BCryptSetProperty]
test eax, eax
js 0x14000162e
mov rcx, qword [rsp + 0x50]
lea rax, [0x140006680]
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x28], 0x10
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
test eax, eax
js 0x14000162e
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0x400
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x10
jmp 0x14000160b
lea rdx, str.3DES
lea rcx, [rsp + 0x58]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x14000162e
mov rcx, qword [rsp + 0x58]
lea r8, str.ChainingModeCBC
xor ebx, ebx
lea rdx, str.ChainingMode
mov r9d, 0x20
mov dword [rsp + 0x20], ebx
call qword [sym.imp.bcrypt.dll_BCryptSetProperty]
test eax, eax
js 0x14000162e
mov rcx, qword [rsp + 0x58]
lea rax, [0x1400066a0]
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0x68]
mov dword [rsp + 0x28], 0x18
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
test eax, eax
js 0x14000162e
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0x400
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x78]
xor r9d, r9d
mov r8d, edi
mov qword [rsp + 0x20], rax
mov rdx, rsi
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
jne 0x14000162e
mov eax, dword [rsp + 0x70]
jmp 0x140001630
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140002450
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret

Function at 0x140002d10
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002d5a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002d5a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002d5a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002d5a
cmp dword [rcx + 0x84], 0xe
jbe 0x140002d5a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002d5c
xor al, al
add rsp, 0x28
ret
Function at 0x140016fb4
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x140021118], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x140021128]
jne 0x140017001
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x140021150], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x140021118], 1
mov ecx, dword [0x140021150]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x1400170d6
mov rcx, qword [0x140020444]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140017101
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140021120]
test rax, rax
je 0x140017051
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x140021120], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x14001711c]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x140021150]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x140020444]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140017101
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x140f6d020
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f6d02a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f6d053
pop rbp
sub rbp, 0x33
sub rbp, 0xf6d020
sub rsp, 0x20
jmp 0x140f6d072
mov rax, 0xf6d020
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffb3bae957
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f6d091
jmp 0x140f6d0a8
invalid
Function at 0x140c03058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140c031df
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 0x140c03089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c0306f
add dl, dl
jne 0x140c03096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c030f6
xor eax, eax
add dl, dl
jne 0x140c030a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c031ad
add dl, dl
jne 0x140c030b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c030c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c030d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c030dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c030ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c0307e
mov eax, 1
add dl, dl
jne 0x140c03106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c03113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c030fb
sub eax, ebx
mov ebx, 1
jne 0x140c0314c
mov ecx, 1
add dl, dl
jne 0x140c0312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c0313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c03123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c0307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c03168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c03175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c0315d
cmp eax, 0x7d00
jae 0x140c0319b
cmp eax, 0x500
jb 0x140c03196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c0307e
cmp eax, 0x7f
ja 0x140c0319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c0307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c031d2
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 0x140c0307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001f90
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd rdi, ecx
mov r14, rdx
lea rcx, str.Starting_Cpu_thread_n
call fcn.140001160
mov ebx, 1
mov esi, 2
cmp rbx, rdi
jge 0x140002003
nop dword [rax]
mov rcx, qword [r14 + rbx*8]
movzx eax, byte [rcx]
cmp al, 0x74
jne 0x140001fe8
add rcx, 2
call fcn.140017b54
mov esi, eax
jmp 0x140001ffb
cmp al, 0x64
jne 0x140001ffb
add rcx, 2
call fcn.140017b54
mov dword [0x140049c20], eax
inc rbx
cmp rbx, rdi
jl 0x140001fd0
mov r8d, dword [0x140049c20]
lea rcx, str.Running__d_threads_for__ld_milliseconds_n
mov edx, esi
call fcn.140001160
lea ebp, [rsi - 1]
mov eax, 4
movsxd r13, ebp
mov rbx, 0xffffffffffffffff
mul r13
cmovo rax, rbx
mov rcx, rax
call fcn.14000d524
mov r12, rax
mov eax, 8
mul r13
cmovo rax, rbx
mov rcx, rax
call fcn.14000d524
mov r14, rax
mov qword [rsp + 0x70], rax
mov eax, 8
movsxd r15, esi
mul r15
cmovo rax, rbx
mov rcx, rax
call fcn.14000d524
xor edi, edi
mov rsi, rax
mov ecx, edi
test r15, r15
jle 0x140002090
add rax, 4
mov rdx, r15
mov dword [rax], ecx
lea rax, [rax + 8]
inc ecx
sub rdx, 1
jne 0x140002082
mov ebx, edi
test ebp, ebp
jle 0x14000212e
nop word [rax + rax]
movsxd rax, ebx
lea r8, [fcn.1400021c0]
mov edx, 0x100000
lea rcx, [r12 + rax*4]
mov qword [rsp + 0x28], rcx
lea r9, [rsi + rax*8]
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [r14], rax
test rax, rax
je 0x14000210f
inc ebx
add r14, 8
cmp ebx, ebp
jl 0x1400020a0
lea rcx, [rsi + r13*8]
call fcn.1400021c0
mov r14, qword [rsp + 0x70]
mov rbx, r14
nop dword [rax + rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140002103
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rbx, 8
sub rbp, 1
jne 0x1400020f0
jmp 0x140002137
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Unable_to_start_thread._Error_code__d
call fcn.140001160
mov ecx, 0xffffffff
call fcn.140013c38
int3
lea rcx, [rsi + r13*8]
call fcn.1400021c0
mov rdx, rdi
mov rbp, rdi
mov rcx, rdi
cmp r15, 2
jl 0x140002168
lea r8, [r15 - 1]
nop word [rax + rax]
movsxd rax, dword [rsi + rcx*8]
add rdi, rax
movsxd rax, dword [rsi + rcx*8 + 8]
add rdx, rax
add rcx, 2
cmp rcx, r8
jl 0x140002150
cmp rcx, r15
jge 0x140002171
movsxd rbp, dword [rsi + rcx*8]
lea rax, [rdx + rdi]
mov rcx, r12
add rbp, rax
call fcn.14000d4e0
mov rcx, r14
call fcn.14000d4e0
mov rcx, rsi
call fcn.14000d4e0
movsxd rcx, dword [0x140049c20]
mov r8, rbp
imul rax, rbp, 0x3e8
cqo
idiv rcx
lea rcx, str.The_result_is__ld__count_lld_
mov edx, eax
mov rbx, rax
call fcn.140001160
mov ecx, ebx
call fcn.140013c38
int3
Function at 0x1400021c0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140049018]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0x6400000
mov r9d, 4
mov r8d, 0x1000
mov edx, 0x6400000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140002254
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
lea rdx, str.Error_allocating_input_data_memory._Win32_Code:
lea rcx, [0x14004a380]
call fcn.140004b70
mov ecx, dword [rsp + 0x24]
mov edx, ecx
mov rcx, rax
call fcn.1400024d0
lea rdx, [fcn.140004e20]
mov rcx, rax
call fcn.1400028d0
xor eax, eax
jmp 0x140002339
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 4]
inc eax
cdqe
imul rax, qword [rsp + 0x50]
movsxd rcx, dword [0x140049c20]
imul rax, rcx
cqo
mov ecx, 0x3e8
idiv rcx
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x48], rax
jge 0x140002309
mov r8d, 0x400
mov edx, 0x6400000
mov rcx, qword [rsp + 0x28]
call fcn.140002350
movzx eax, al
test eax, eax
jne 0x1400022f2
mov rax, qword [rsp + 0x30]
mov dword [rax], 0xffffffff
jmp 0x140002309
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x1400022bd
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
lea rcx, str.Thread_result_of__ld_n
call fcn.140001160
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000d4c0
add rsp, 0x78
ret
Function at 0x14000c3fc
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000c42a
xor eax, eax
jmp 0x14000c510
cmp qword [rcx + 0x68], 0
je 0x14000c43b
call fcn.14000c52c
jmp 0x14000c510
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000c452
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000c454
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000c486
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14000f2a0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000c50a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000c4bd
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14000c4e6
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140018db0
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000c50a
cmp rsi, rbx
ja 0x14000c4c4
test rsi, rsi
je 0x14000c50a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140018db0
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000e230
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000e27a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000e27a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000e27a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000e27a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000e27a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000e27c
xor al, al
add rsp, 0x28
ret
Function at 0x140013c38
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 0x140013a97
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140013a97
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140013a97
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140013a97
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140013a97
cmp dword [rcx + 0x84], 0xe
jbe 0x140013a97
cmp dword [rcx + 0xf8], 0
je 0x140013a97
mov ecx, ebx
call fcn.140013b54
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.140013924
nop
cmp dword [rbp + 0x20], 0
je 0x140013ae5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140013af0
int3
xor r8d, r8d
xor edx, edx
jmp 0x140013a28
Function at 0x14002489c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400248ce
call fcn.14001a678
mov dword [rax], 0x16
call fcn.140018084
jmp 0x1400249ed
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400249ed
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400249ed
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400248fd
lock or dword [rcx + 0x14], 0x10
jmp 0x1400249ed
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140024911
call fcn.140025f00
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140022ae0
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14002567c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400249db
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400249a6
mov rcx, rsi
call fcn.140022ae0
cmp eax, edi
je 0x140024991
mov rcx, rsi
call fcn.140022ae0
cmp eax, 0xfffffffe
je 0x140024991
mov rcx, rsi
call fcn.140022ae0
movsxd rbx, eax
lea r14, [0x14004b440]
mov rcx, rsi
sar rbx, 6
call fcn.140022ae0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140024998
lea rdx, [0x140049250]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400249a6
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400249ca
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400249ca
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400249ca
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400249f0
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140024d18
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14000db30
sub rsp, rax
mov rax, qword [0x140049018]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140022ae0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140024d67
mov rax, rbp
jmp 0x140024e6f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x4b440]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140025e54
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4b440]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140024e6b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140024e6b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140025e54
test rax, rax
js 0x140024e6b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140024e6b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140024e5d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140024e5d
cmp byte [rcx], 0xd
jne 0x140024e43
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140024e52
cmp byte [rcx + 1], 0xa
jne 0x140024e52
inc rcx
jmp 0x140024e52
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x49420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140024e25
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140024e6f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000d4c0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400251d0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14004b440]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14002522e
cmp word [rdx], r12w
jne 0x14002522e
or byte [rax + r8*8 + 0x38], cl
jmp 0x140025234
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14002538f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14002536a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14002526d
mov rcx, r9
jmp 0x140025290
cmp r9, rdx
jae 0x1400252a7
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140025251
jmp 0x14002538f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140025364
cmp dword [rsp + 0x80], edi
je 0x140025364
mov rdx, r14
lea r11, [0x14004b440]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14002533d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140025310
mov word [rbx], r12w
jmp 0x14002538b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140025319
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14002538b
cmp word [rsp + 0x70], r12w
jne 0x14002534a
cmp rbx, rsi
je 0x14002530a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140025e5c
cmp word [rsp + 0x70], r12w
je 0x14002538f
mov word [rbx], r13w
jmp 0x14002538b
lea r11, [0x14004b440]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140025387
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14002538f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140029220
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 0x140029250
xor eax, eax
jmp 0x140029313
mov rbp, rbx
cmp word [rax], si
je 0x140029275
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002925c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140029258
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.14002784c
movsxd r14, eax
test eax, eax
jne 0x1400292b3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140029249
mov rcx, r14
call fcn.140021868
mov rdi, rax
test rax, rax
jne 0x1400292cc
xor ecx, ecx
call fcn.1400203a0
jmp 0x1400292a8
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.14002784c
test eax, eax
jne 0x1400292fd
mov rcx, rdi
call fcn.1400203a0
jmp 0x140029307
xor ecx, ecx
call fcn.1400203a0
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