joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b820
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.0005e28c
nop
cmp dword [0x0006fc38], 1
je 0x5b7cc
mov dword [0x0006fc34], 1
mov byte [0x0006fc30], r12b
test ebx, ebx
jne 0x5b7b8
mov rcx, qword [0x000925e8]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x5b7a5
mov rcx, qword [0x000925e0]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x5b744
call fcn.0005d7a0
cmp qword [rdi], rax
jne 0x5b744
jmp 0x5b72a
cmp rdi, rsi
jb 0x5b7a5
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.0005d7a0
mov qword [rdi], rax
call rbx
mov rcx, qword [0x000925e8]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x000925e0]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x5b783
cmp r13, rax
je 0x5b7a3
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x5b72a
lea rdx, [0x0006a338]
lea rcx, [0x0006a320]
call fcn.0005b574
lea rdx, [0x0006a348]
lea rcx, [0x0006a340]
call fcn.0005b574
nop
test r12d, r12d
je 0x5b7db
mov ecx, 8
call fcn.0005e18c
test r12d, r12d
jne 0x5b806
mov dword [0x0006fc38], 1
lea ecx, [r12 + 8]
call fcn.0005e18c
mov ecx, r15d
call fcn.0005b508
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x5b694
Function at 0x6154c
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.0005d7a0
xor ebx, ebx
mov rdi, rax
cmp qword [0x000703a0], rbx
jne 0x61652
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x61727
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x61727
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x000703a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x000703a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x000703b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x000703c0], rax
test rax, rax
je 0x61649
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x000703b8], rax
jmp 0x61659
mov rax, qword [0x000703b8]
jmp 0x61660
mov rax, qword [0x000703b8]
mov r11, qword [0x000703c0]
cmp rax, rdi
je 0x616c8
cmp r11, rdi
je 0x616c8
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x000703c0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x616c8
test rax, rax
je 0x616c8
call rsi
test rax, rax
je 0x616c2
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x616c2
test byte [rsp + 0x38], 1
jne 0x616c8
bts ebp, 0x15
jmp 0x61706
mov rcx, qword [0x000703a8]
cmp rcx, rdi
je 0x61706
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x61706
call rax
mov rbx, rax
test rax, rax
je 0x61706
mov rcx, qword [0x000703b0]
cmp rcx, rdi
je 0x61706
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x61706
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x000703a0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x61727
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x61729
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x6451b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x0006e6d0]
jne 0x6143a
rol rcx, 0x10
test cx, 0xffff
jne 0x61436
repz ret
ror rcx, 0x10
jmp 0x64474
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x00070540]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x00070638]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x644f9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x00070540]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x6451b
mov rax, qword [rsp + 0x88]
mov qword [0x00070638], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x000705d8], rax
mov rax, qword [0x00070638]
mov qword [0x000704b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x000705c0], rax
mov dword [0x000704a0], 0xc0000409
mov dword [0x000704a4], 1
mov rax, qword [0x0006e6d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x0006e6d8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x00070538], eax
mov ecx, 1
call fcn.00061440
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0006b5b8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x00070538], 0
jne 0x645a2
mov ecx, 1
call fcn.00061440
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x141192058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1411921df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141192089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14119206f
add dl, dl
jne 0x141192096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411920f6
xor eax, eax
add dl, dl
jne 0x1411920a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411921ad
add dl, dl
jne 0x1411920b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411920c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411920d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411920dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1411920ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14119207e
mov eax, 1
add dl, dl
jne 0x141192106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141192113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411920fb
sub eax, ebx
mov ebx, 1
jne 0x14119214c
mov ecx, 1
add dl, dl
jne 0x14119212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14119213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141192123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14119207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141192168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141192175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14119215d
cmp eax, 0x7d00
jae 0x14119219b
cmp eax, 0x500
jb 0x141192196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14119207e
cmp eax, 0x7f
ja 0x14119219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14119207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1411921d2
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 0x14119207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001000
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov rax, qword gs:[0x30]
mov rdx, qword [rax + 0x60]
mov rax, qword [rdx + 0x18]
mov rax, qword [rax + 0x10]
mov rdx, qword [rax + 0x30]
nop dword [rax]
cmp rdx, rcx
je 0x180001034
mov rax, qword [rax]
mov rdx, qword [rax + 0x30]
test rdx, rdx
jne 0x180001020
xor eax, eax
ret
mov rdx, qword [rax + 8]
mov rcx, qword [rax]
mov qword [rdx], rcx
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov qword [rdx + 8], rcx
mov rdx, qword [rax + 0x18]
mov rcx, qword [rax + 0x10]
mov qword [rdx], rcx
mov rdx, qword [rax + 0x10]
mov rcx, qword [rax + 0x18]
mov qword [rdx + 8], rcx
mov rdx, qword [rax + 0x28]
mov rcx, qword [rax + 0x20]
mov qword [rdx], rcx
mov rdx, qword [rax + 0x20]
mov rcx, qword [rax + 0x28]
mov eax, 1
mov qword [rdx + 8], rcx
ret
Function at 0x180003d10
Capabilities:
Access peb ldr_data
Create thread
Enumerate threads
Get ntdll base address

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18001a028]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
sub edx, 1
je 0x180003d3c
sub edx, 1
je 0x180003d42
cmp edx, 1
je 0x180003d42
jmp 0x180003e78
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov qword [rsp + 0x78], rsi
mov rcx, rbx
mov qword [rsp + 0x80], rdi
call fcn.180001000
mov qword [0x18001ab78], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 4
mov esi, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
test rax, rax
je 0x180003dc2
xorps xmm0, xmm0
mov dword [rsp + 0x30], 0x1c
xor eax, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov qword [rsp + 0x44], rax
movups xmmword [rsp + 0x34], xmm0
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180003db9
cmp dword [rsp + 0x3c], esi
je 0x180003e03
lea rdx, [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180003da2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov dword [0x18001aadc], eax
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
mov rax, qword [rax + 0x10]
mov rcx, qword [rax + 0x30]
cmp rcx, rbx
je 0x180003e09
mov rax, qword [rax]
mov rcx, qword [rax + 0x30]
test rcx, rcx
jne 0x180003df0
jmp 0x180003e4c
mov eax, dword [rsp + 0x38]
jmp 0x180003dc4
mov rdx, qword [rax + 8]
mov rcx, qword [rax]
mov qword [rdx], rcx
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov qword [rdx + 8], rcx
mov rdx, qword [rax + 0x18]
mov rcx, qword [rax + 0x10]
mov qword [rdx], rcx
mov rdx, qword [rax + 0x10]
mov rcx, qword [rax + 0x18]
mov qword [rdx + 8], rcx
mov rdx, qword [rax + 0x28]
mov rcx, qword [rax + 0x20]
mov qword [rdx], rcx
mov rdx, qword [rax + 0x20]
mov rcx, qword [rax + 0x28]
mov qword [rdx + 8], rcx
mov qword [rsp + 0x28], 0
lea r8, [0x1800011e0]
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x18001ab28], rax
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800045a0
add rsp, 0x60
pop rbx
ret
Function at 0x14000594c
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 0x14000597a
xor eax, eax
jmp 0x140005a60
cmp qword [rcx + 0x68], 0
je 0x14000598b
call fcn.140006bec
jmp 0x140005a60
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400059a2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400059a4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400059d6
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140037340
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 0x140005a5a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140005a0d
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 0x140005a36
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14003e8c0
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140005a5a
cmp rsi, rbx
ja 0x140005a14
test rsi, rsi
je 0x140005a5a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14003e8c0
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 0x140010440
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400104c4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14006a980]
cmp byte [rcx + rax], 0
je 0x1400104c4
dec r8
sub rdx, 1
jne 0x1400104aa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400296f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14001328a
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14001326d
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140013258

Function at 0x140029704
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x1400132c2
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1400132a5
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140013290
Function at 0x140035ac4
Capabilities:
Parse pe header

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

Function at 0x14004ba80
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14004b870
Function at 0x140051b0c
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 0x140051b3e
call fcn.1400416f8
mov dword [rax], 0x16
call fcn.14003cf74
jmp 0x140051c5d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140051c5d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140051c5d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140051b6d
lock or dword [rcx + 0x14], 0x10
jmp 0x140051c5d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140051b81
call fcn.140052354
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14005069c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14005286c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140051c4b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140051c16
mov rcx, rsi
call fcn.14005069c
cmp eax, edi
je 0x140051c01
mov rcx, rsi
call fcn.14005069c
cmp eax, 0xfffffffe
je 0x140051c01
mov rcx, rsi
call fcn.14005069c
movsxd rbx, eax
lea r14, [0x1400e0410]
mov rcx, rsi
sar rbx, 6
call fcn.14005069c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140051c08
lea rdx, [0x140087420]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140051c16
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140051c3a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140051c3a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140051c3a
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 0x140051c60
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 0x1400520d4
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.140035770
sub rsp, rax
mov rax, qword [0x140087078]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14005069c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140052123
mov rax, rbp
jmp 0x14005222b
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 + 0xe0410]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140053044
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xe0410]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140052227
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 0x140052227
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140053044
test rax, rax
js 0x140052227
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140052227
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140052219
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140052219
cmp byte [rcx], 0xd
jne 0x1400521ff
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14005220e
cmp byte [rcx + 1], 0xa
jne 0x14005220e
inc rcx
jmp 0x14005220e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x87470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400521e1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14005222b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140035590
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 0x1400523c0
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, [0x1400e0410]
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 0x14005241e
cmp word [rdx], r12w
jne 0x14005241e
or byte [rax + r8*8 + 0x38], cl
jmp 0x140052424
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14005257f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14005255a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14005245d
mov rcx, r9
jmp 0x140052480
cmp r9, rdx
jae 0x140052497
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 0x140052441
jmp 0x14005257f
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 0x140052554
cmp dword [rsp + 0x80], edi
je 0x140052554
mov rdx, r14
lea r11, [0x1400e0410]
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 0x14005252d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140052500
mov word [rbx], r12w
jmp 0x14005257b
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 0x140052509
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14005257b
cmp word [rsp + 0x70], r12w
jne 0x14005253a
cmp rbx, rsi
je 0x1400524fa
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14005304c
cmp word [rsp + 0x70], r12w
je 0x14005257f
mov word [rbx], r13w
jmp 0x14005257b
lea r11, [0x1400e0410]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140052577
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14005257f
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 0x1400579b4
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 0x1400579e4
xor eax, eax
jmp 0x140057aa7
mov rbp, rbx
cmp word [rax], si
je 0x140057a09
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400579f0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400579ec
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.140055a04
movsxd r14, eax
test eax, eax
jne 0x140057a47
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400579dd
mov rcx, r14
call fcn.14004dd30
mov rdi, rax
test rax, rax
jne 0x140057a60
xor ecx, ecx
call fcn.14004dcf4
jmp 0x140057a3c
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.140055a04
test eax, eax
jne 0x140057a91
mov rcx, rdi
call fcn.14004dcf4
jmp 0x140057a9b
xor ecx, ecx
call fcn.14004dcf4
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 0x140057ac4
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 0x140057b4b
mov rsi, rbx
cmp word [rax], bp
je 0x140057b0a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140057af4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140057af0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004dd30
mov rdi, rax
test rax, rax
je 0x140057b38
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140037340
mov rbp, rdi
xor ecx, ecx
call fcn.14004dcf4
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