joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400abe58
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r15, rcx
test r8, r8
jne 0x1400abe89
call fcn.14003c9e8
mov rdi, qword [rax + 0x18]
lea r8, [0x1402324b0]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbp, rax
test rax, rax
jne 0x1400abea8
xor eax, eax
jmp 0x1400abef4
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x1400abea4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x1400abee9
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r14
mov rcx, r15
mov r8d, eax
call fcn.1400abf10
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x1400aeb2c
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x140486ac8]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1404822b4]
test eax, eax
je 0x1400aeb77
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1404822b4]
test eax, eax
jne 0x1400aeb80
call fcn.1400289d8
test eax, eax
je 0x1400aeb9c
lea rdx, [rsp + 0x48]
mov rcx, qword [0x14047a428]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1400aeba4
xor eax, eax
jmp 0x1400aec09
test rbx, rbx
jne 0x1400aebc4
lea rcx, str.ImageList_GetImageCount
call fcn.1400283bc
mov rbx, rax
test rax, rax
je 0x1400aebd7
mov qword [0x140486ac8], rax
mov rcx, rbx
call fcn.1401e2d3c
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x1400aebec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1400aebee
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1400aec07
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140134948
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x140134b18
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor edx, edx
test eax, eax
jne 0x140134b5a
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret

Function at 0x140134fc4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x140135096
test rbx, rbx
je 0x14013509c
test r9, r9
je 0x1401350a2
and qword [r8], 0
xor r8d, r8d
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rax - 0x10], r9
lea r9, [rax + 0x10]
and qword [rax - 0x18], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14013507f
cmp dword [rsp + 0x48], 3
jne 0x14013507f
test eax, eax
jne 0x14013507f
cmp dword [rdi], eax
je 0x14013507f
mov ecx, dword [rdi]
call fcn.14001b7c0
mov qword [rbx], rax
lea r9, [rsp + 0x48]
mov rcx, qword [rbp + 8]
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140135073
cmp dword [rsp + 0x48], 3
jne 0x140135073
test eax, eax
jne 0x140135073
mov eax, 1
jmp 0x140135081
mov rcx, qword [rbx]
call fcn.14001b7b8
and qword [rbx], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.14001b824
int3
call fcn.14001b824
int3
call fcn.14001b824
int3

Function at 0x1401353c8
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1401353d9
xor eax, eax
jmp 0x140135407
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140135410
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140135421
xor eax, eax
jmp 0x140135445
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov r9d, 3
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140192514
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x14048a7d0]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1404822b4]
test eax, eax
je 0x14019255f
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1404822b4]
test eax, eax
jne 0x140192568
call fcn.1400289d8
test eax, eax
je 0x140192584
lea rdx, [rsp + 0x48]
mov rcx, qword [0x14047a428]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14019258c
xor eax, eax
jmp 0x1401925f1
test rbx, rbx
jne 0x1401925ac
lea rcx, str.ChooseColorA
call fcn.140039f10
mov rbx, rax
test rax, rax
je 0x1401925bf
mov qword [0x14048a7d0], rax
mov rcx, rbx
call fcn.1401e2d3c
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x1401925d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1401925d6
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1401925ef
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1401f5740
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1401f5514
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401f5514
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401f5514
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401f5514
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401f5514
cmp dword [rcx + 0x84], 0xe
jbe 0x1401f5514
cmp dword [rcx + 0xf8], esi
je 0x1401f5514
mov ecx, r14d
call fcn.1401f565c
mov ecx, 2
call fcn.1401fb9c8
nop
cmp byte [0x14048c788], 0
jne 0x1401f55de
mov r15d, 1
mov eax, r15d
xchg dword [0x14048c778], eax
test ebx, ebx
jne 0x1401f5587
mov rdi, qword [0x14047b950]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14048c780]
cmp rcx, rax
je 0x1401f557e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1401c8f54]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14048c8b8]
jmp 0x1401f5593
cmp ebx, r15d
jne 0x1401f5599
lea rcx, [0x14048c8d0]
call fcn.1401f61f4
nop
test ebx, ebx
jne 0x1401f55b0
lea rdx, [0x140210b58]
lea rcx, [0x140210b38]
call fcn.1401f6530
lea rdx, [0x140210b68]
lea rcx, [0x140210b60]
call fcn.1401f6530
movzx eax, byte [0x14048c788]
test esi, esi
cmove eax, r15d
mov byte [0x14048c788], al
jmp 0x1401f55de
mov ecx, 2
call fcn.1401fba1c
test esi, esi
jne 0x1401f55f5
mov ecx, r14d
call fcn.1401f5610
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1401f54a4
Function at 0x14000c530
Capabilities:
Find taskbar

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140092060]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
cmp byte [rcx + 0x10], 0
je 0x14000c583
mov dword [rsp + 0x20], 0x30
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x48], 1
lea rdx, [rsp + 0x20]
mov ecx, 0xa
call qword [sym.imp.SHELL32.dll_SHAppBarMessage]
mov rcx, rbx
call fcn.1400105e0
mov rcx, rbx
call fcn.140010c10
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140096810], eax
jle 0x14000c5f6
lea rcx, [0x140096810]
call fcn.140042808
cmp dword [0x140096810], 0xffffffff
jne 0x14000c5f6
xor edx, edx
mov r8d, 0x130
lea rcx, [0x1400966d0]
call fcn.140045200
call fcn.140004cb0
lea rcx, [0x140073790]
call fcn.140042b8c
nop
lea rcx, [0x140096810]
call fcn.1400427a8
lea rcx, [0x1400966d0]
call fcn.140005450
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140042660
add rsp, 0x60
pop rbx
ret
Function at 0x140011d20
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140011d42
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140011dbc
mov rdi, r14
mov rcx, rbx
call fcn.140007ef0
test rax, rax
jle 0x140011d94
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140044b50
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140011dac
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140011db4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140011d56
sub r14, rdi
jmp 0x140011ea9
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140011dd3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140011dd5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140011e0a
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140044b50
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140011ea6
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x140011e45
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140011e81
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140050a38
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x140011ebf
cmp rbp, rax
ja 0x140011e51
mov r8, rdi
test rdi, rdi
je 0x140011ea6
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140050a38
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x140011ea9
Function at 0x140019aa0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x2c0
mov rax, qword [0x140092060]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov rdi, r8
mov rbx, rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], r8
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx], rbp
mov qword [rdx + 8], rbp
mov qword [rdx + 0x10], rbp
mov dword [rsp + 0x20], 1
lea r8, str._.
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.140008480
nop
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140019bff
nop
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x140019bd2
lea rax, [rsp + 0x60]
mov ecx, 4
nop dword [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rdx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rdx + 0x60], xmm0
lea rdx, [rdx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rdx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rcx, 1
jne 0x140019b50
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdx + 0x40], xmm0
add qword [rbx + 8], 0x250
jmp 0x140019bdf
lea r8, [rsp + 0x60]
mov rcx, rbx
call fcn.140019d60
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140019b30
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140019c41
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019c3c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019cc4
call fcn.140042ba4
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], bp
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140019c8f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140019c8a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140019cca
mov rcx, r8
call fcn.140042ba4
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 7
mov word [rdi], bp
mov rax, rbx
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140042660
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2c0
pop rdi
pop rsi
pop rbp
ret
call fcn.1400494f8
nop
call fcn.1400494f8
int3
Function at 0x1400490e0
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 0x140048f4b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140048f4b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140048f4b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140048f4b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140048f4b
cmp dword [rcx + 0x84], 0xe
jbe 0x140048f4b
cmp dword [rcx + 0xf8], 0
je 0x140048f4b
mov ecx, ebx
call fcn.140048ffc
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.140048dd8
nop
cmp dword [rbp + 0x20], 0
je 0x140048f99
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140048fa4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140048edc
Function at 0x1400626bc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400626d2
mov al, 1
jmp 0x140062732
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400626e3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140062730
mov ecx, dword [rcx + 0x18]
nop
call fcn.140069500
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140062730
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140062730
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140062730
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140062732
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140063c54
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.140043030
sub rsp, rax
mov rax, qword [0x140092060]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14005ff18
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140063ca3
mov rax, rbp
jmp 0x140063dab
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 + 0x95470]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14006413c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x95470]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140063da7
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 0x140063da7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14006413c
test rax, rax
js 0x140063da7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140063da7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140063d99
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140063d99
cmp byte [rcx], 0xd
jne 0x140063d7f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140063d8e
cmp byte [rcx + 1], 0xa
jne 0x140063d8e
inc rcx
jmp 0x140063d8e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x92610]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140063d61
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140063dab
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140042660
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 0x1400641e8
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, [0x140095470]
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 0x14006423f
cmp word [rdx], r13w
jne 0x14006423f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140064244
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140064369
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14006438a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14006427d
mov rdx, r9
mov word [rbx], cx
jmp 0x1400642a4
cmp r9, r8
jae 0x1400642b4
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 0x14006425e
jmp 0x140064369
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 0x14006435e
cmp dword [rsp + 0x80], esi
je 0x14006435e
lea r8, [0x140095470]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140064336
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140064306
mov word [rbx], r13w
jmp 0x140064366
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 0x140064313
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140064366
cmp word [rsp + 0x70], r13w
jne 0x140064343
cmp rbx, r14
je 0x140064300
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140064144
cmp word [rsp + 0x70], r13w
je 0x140064369
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, [0x140095470]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140064363
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140064369
Function at 0x1400689e0
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 0x140068a67
mov rsi, rbx
cmp word [rax], bp
je 0x140068a26
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140068a10
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140068a0c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14005eb84
mov rdi, rax
test rax, rax
je 0x140068a54
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140044b50
mov rbp, rdi
xor ecx, ecx
call fcn.14005eb48
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