joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027ed0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400770b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
lea rcx, [rsp + 0x28]
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [rsp + 0x28]
mov ecx, 9
cmp cx, ax
je 0x140027f7b
mov ecx, 6
cmp cx, ax
je 0x140027f7b
lea rcx, [0x14005ec40]
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.IsWow64Process
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140027f5b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x20]
call rbx
cmp dword [rsp + 0x20], 0
mov rbx, qword [rsp + 0x60]
jne 0x140027f7b
xor al, al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140033040
add rsp, 0x68
ret
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140033040
add rsp, 0x68
ret
Function at 0x140038220
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 0x140037ff4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140037ff4
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140037ff4
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140037ff4
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140037ff4
cmp dword [rcx + 0x84], 0xe
jbe 0x140037ff4
cmp dword [rcx + 0xf8], esi
je 0x140037ff4
mov ecx, r14d
call fcn.14003813c
mov ecx, 2
call fcn.14003fb50
nop
cmp byte [0x1400796d8], 0
jne 0x1400380be
mov r15d, 1
mov eax, r15d
xchg dword [0x1400796c8], eax
test ebx, ebx
jne 0x140038067
mov rdi, qword [0x1400770b8]
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 [0x1400796d0]
cmp rcx, rax
je 0x14003805e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140033428]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140079b50]
jmp 0x140038073
cmp ebx, r15d
jne 0x140038079
lea rcx, [0x140079b68]
call fcn.140044388
nop
test ebx, ebx
jne 0x140038090
lea rdx, [0x14005b578]
lea rcx, [0x14005b558]
call fcn.1400446a0
lea rdx, [0x14005b588]
lea rcx, [0x14005b580]
call fcn.1400446a0
movzx eax, byte [0x1400796d8]
test esi, esi
cmove eax, r15d
mov byte [0x1400796d8], al
jmp 0x1400380be
mov ecx, 2
call fcn.14003fba4
test esi, esi
jne 0x1400380d5
mov ecx, r14d
call fcn.1400380f0
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 0x140037f84
Function at 0x1400476d8
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140047394
call fcn.140040668
mov dword [rax], 0x16
call fcn.140037b54
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14004737c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14004737c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1400473c6
lock or dword [rax + 0x14], 0x10
jmp 0x14004737c
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1400473e3
mov rcx, qword [rbp + 0x10]
call fcn.140047c7c
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140047324
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140049698
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14004743a
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x14004737c
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1400474a6
mov rcx, qword [rbp + 0x10]
call fcn.140047324
cmp eax, 0xffffffff
je 0x14004748d
mov rcx, qword [rbp + 0x10]
call fcn.140047324
cmp eax, 0xfffffffe
je 0x14004748d
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140047324
movsxd rdi, eax
lea rsi, [0x140079d60]
mov rcx, rbx
sar rdi, 6
call fcn.140047324
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x140047494
lea rax, [0x140077490]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400474a6
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1400474dc
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1400474d8
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1400474d8
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14004737f
jmp 0x14004734c
Function at 0x1400476e0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140047546
call fcn.140040668
mov dword [rax], 0x16
call fcn.140037b54
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140047528
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140047528
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x140047578
lock or dword [rax + 0x14], 0x10
jmp 0x140047528
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x140047595
mov rcx, qword [rbp + 0x20]
call fcn.140047c7c
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x1400475aa
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x1400475b0
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.140047324
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140049698
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x140047603
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x140047528
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14004766f
mov rcx, qword [rbp + 0x20]
call fcn.140047324
cmp eax, 0xffffffff
je 0x140047656
mov rcx, qword [rbp + 0x20]
call fcn.140047324
cmp eax, 0xfffffffe
je 0x140047656
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.140047324
movsxd rdi, eax
lea r15, [0x140079d60]
mov rcx, rbx
sar rdi, 6
call fcn.140047324
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x14004765d
lea rax, [0x140077490]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14004766f
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x1400476a5
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1400476a1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1400476a1
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x1400476c3
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x1400476ce
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x14004752d
jmp 0x1400474f4
Function at 0x14001b44c
Capabilities:
Enumerate processes

Disassembly:
push rdi
sub rsp, 0x280
mov rax, qword [0x140074060]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x2c], eax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x14001b495
jmp 0x14001b4ec
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x14001b4c4
jmp 0x14001b4ec
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x38], eax
jne 0x14001b4d8
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
jmp 0x14001b4ec
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14001b4c4
cmp qword [rsp + 0x20], 0xffffffffffffffff
je 0x14001b4ff
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140029d90
add rsp, 0x280
pop rdi
ret

Function at 0x14001b51c
Capabilities:
Get explorer pid

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140074060]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
call qword [sym.imp.USER32.dll_GetShellWindow]
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call fcn.14001b44c
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x20], eax
jne 0x14001b5c4
lea rdx, str.___Pausing_to_allow_for_debugging
lea rcx, [0x140075750]
call fcn.140011924
mov qword [rsp + 0x28], rax
lea rax, [0x140011e28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x28]
call qword [rsp + 0x30]
lea rdx, str.___Press_enter_to_close
lea rcx, [0x140075750]
call fcn.140011924
mov qword [rsp + 0x38], rax
lea rax, [0x140011e28]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x38]
call qword [rsp + 0x40]
lea rcx, [0x140075990]
call fcn.14001bed4
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140029d90
add rsp, 0x68
ret
Function at 0x1400210a8
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x20]
mov qword [rsp], rax
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400210cc
xor eax, eax
jmp 0x1400210fa
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x1400210f5
xor eax, eax
jmp 0x1400210fa
mov rax, qword [rsp + 8]
add rsp, 0x18
ret
Function at 0x140024d80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x280
mov rax, qword [0x140074060]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rdx, [rsp + 0x60]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x140024ddd
cmp dword [rsp + 0x24], 0x105
jbe 0x140024e36
lea rdx, str.____Failed_to_get_temp_path
lea rcx, [0x140075750]
call fcn.140011924
mov qword [rsp + 0x40], rax
lea rax, [0x140011e28]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x40]
call qword [rsp + 0x48]
lea rdx, [0x140061f34]
mov rcx, qword [rsp + 0x290]
call fcn.14000b20c
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x290]
jmp 0x140024ee9
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x28], 0xffffffffffffffff
inc qword [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
cmp word [rax + rcx*2], 0
jne 0x140024e49
mov rax, qword [rsp + 0x28]
movzx eax, word [rsp + rax*2 + 0x5e]
cmp eax, 0x5c
jne 0x140024ec4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x30], 0xffffffffffffffff
inc qword [rsp + 0x30]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
cmp word [rax + rcx*2], 0
jne 0x140024e81
mov rax, qword [rsp + 0x30]
lea rax, [rax + rax - 2]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0x20a
jae 0x140024eb3
jmp 0x140024eb8
call fcn.14002a1d0
xor eax, eax
mov rcx, qword [rsp + 0x38]
mov word [rsp + rcx + 0x60], ax
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x290]
call fcn.14000b20c
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140029d90
add rsp, 0x280
pop rdi
ret
Function at 0x1400252a8
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x140074060]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x70], 0
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x28]
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000004
jne 0x140025359
cmp qword [rsp + 0x28], 0
je 0x14002531a
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0x70]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x28]
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x30], eax
jmp 0x1400252f5
cmp dword [rsp + 0x30], 0
jge 0x140025382
cmp qword [rsp + 0x28], 0
je 0x14002537b
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x1400254b6
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14002539b
xor eax, eax
jmp 0x1400254b6
mov dword [rsp + 0x20], 0
jmp 0x1400253af
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jae 0x1400254a1
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 8]
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x128
mov rdx, qword [rsp + 0x38]
movzx ecx, word [rdx + rcx + 0x2e]
lea rax, [rax + rcx + 0x28]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000b4b8
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov rcx, rax
call fcn.14000bc9c
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x78]
mov rcx, rax
call fcn.14000bc9c
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.140033bac
test eax, eax
jne 0x140025492
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax + 0x18]
mov qword [rsp + 0x50], rax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x78]
call fcn.14000dac4
mov rax, qword [rsp + 0x58]
jmp 0x1400254b6
lea rcx, [rsp + 0x78]
call fcn.14000dac4
jmp 0x1400253a5
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140029d90
add rsp, 0xa8
ret
Function at 0x140025620
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], 0xffffffffffffffff
inc qword [rsp + 0x30]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
cmp byte [rax + rcx], 0
jne 0x140025649
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x88]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], 0
jmp 0x1400256b3
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x140025779
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x80]
mov rcx, rax
call fcn.14002cbd0
test eax, eax
jne 0x140025774
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x38], 0xffffffffffffffff
inc qword [rsp + 0x38]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
cmp byte [rax + rcx], 0
jne 0x14002570f
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x48], rax
jne 0x140025774
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0xc], 0
jne 0x14002573f
xor eax, eax
jmp 0x14002577b
cmp qword [rsp + 0x90], 0
je 0x14002575c
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 8]
mov dword [rax], ecx
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
jmp 0x14002577b
jmp 0x1400256a9
xor eax, eax
add rsp, 0x78
ret

Function at 0x140030aa4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140030ac4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140034c98
or eax, 0xffffffff
jmp 0x140030ac6
xor eax, eax
add rsp, 0x28
ret

Function at 0x140039e88
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140039c84

Function at 0x14003ca58
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003ca6e
mov al, 1
jmp 0x14003cace
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003ca7f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003cacc
mov ecx, dword [rcx + 0x18]
nop
call fcn.140046648
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003cacc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003cacc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003cacc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003cace
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140040e84
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.14002a940
sub rsp, rax
mov rax, qword [0x140074060]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14003c83c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140040ed3
mov rax, rbp
jmp 0x140040fdb
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 + 0x769b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400428e8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x769b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140040fd7
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 0x140040fd7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400428e8
test rax, rax
js 0x140040fd7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140040fd7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140040fc9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140040fc9
cmp byte [rcx], 0xd
jne 0x140040faf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140040fbe
cmp byte [rcx + 1], 0xa
jne 0x140040fbe
inc rcx
jmp 0x140040fbe
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x74450]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140040f91
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140040fdb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140029d90
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 0x140041c88
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, [0x1400769b0]
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 0x140041cdf
cmp word [rdx], r13w
jne 0x140041cdf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140041ce4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140041e09
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140041e2a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140041d1d
mov rdx, r9
mov word [rbx], cx
jmp 0x140041d44
cmp r9, r8
jae 0x140041d54
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 0x140041cfe
jmp 0x140041e09
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 0x140041dfe
cmp dword [rsp + 0x80], esi
je 0x140041dfe
lea r8, [0x1400769b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140041dd6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140041da6
mov word [rbx], r13w
jmp 0x140041e06
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 0x140041db3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140041e06
cmp word [rsp + 0x70], r13w
jne 0x140041de3
cmp rbx, r14
je 0x140041da0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400428f0
cmp word [rsp + 0x70], r13w
je 0x140041e09
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, [0x1400769b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140041e03
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140041e09
Function at 0x140045c40
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 0x140045cc7
mov rsi, rbx
cmp word [rax], bp
je 0x140045c86
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140045c70
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140045c6c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003e89c
mov rdi, rax
test rax, rax
je 0x140045cb4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002c300
mov rbp, rdi
xor ecx, ecx
call fcn.14003e418
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