joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a470
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
push r12
push r14
push r15
sub rsp, 0x10
mov qword [rsp + 0x30], rbx
xor r10d, r10d
mov qword [rsp + 0x48], rsi
movzx ebx, r9b
mov qword [rsp + 8], rdi
mov r14, rcx
movsxd rdi, r8d
mov esi, r10d
mov qword [rsp], r13
mov r11, rdi
mov r13d, r10d
mov r12d, r10d
cmp r9b, 1
jne 0x14000a4b9
mov r8d, 1
jmp 0x14000a4fa
mov edx, 3
movzx eax, bl
mov r9d, edx
mov r8d, 2
sub r9d, eax
sub rdx, rax
cmp rdx, rdi
jge 0x14000a4e6
cmp byte [rdx + rcx], sil
jne 0x14000a4e6
add r9d, r8d
add rdx, r8
cmp rdx, rdi
jl 0x14000a4d5
cmp r9d, edi
movsxd r11, r9d
setl r12b
and ebx, 1
add rcx, rbx
xor r11, 1
lea r9, [r14 + r11]
cmp rcx, r9
jae 0x14000a524
lea rdx, [0x14010b2f0]
nop word [rax + rax]
movzx eax, byte [rcx]
test byte [rax + rdx], 1
je 0x14000a524
mov eax, r8d
add rcx, rax
cmp rcx, r9
jb 0x14000a510
mov r14d, 1
cmp rcx, r9
jae 0x14000a548
movzx eax, byte [rcx]
cmp al, 0x2d
jne 0x14000a53e
mov r13d, r14d
mov r14d, r10d
jmp 0x14000a542
cmp al, 0x2b
jne 0x14000a548
mov eax, r8d
add rcx, rax
mov r15, rcx
cmp rcx, r9
jae 0x14000a560
cmp byte [rcx], 0x30
jne 0x14000a560
mov eax, r8d
add rcx, rax
cmp rcx, r9
jb 0x14000a550
mov r11d, r10d
cmp rcx, r9
jae 0x14000a5b7
mov qword [rsp + 0x40], rbp
mov rdi, rcx
mov ebp, r8d
movsx rbx, byte [rdi]
lea eax, [rbx - 0x30]
cmp al, 9
ja 0x14000a59b
add r11d, r8d
lea rsi, [rsi + rsi*4]
movsxd rax, r11d
lea rsi, [rsi - 0x18]
add rax, rcx
lea rsi, [rbx + rsi*2]
add rdi, rbp
cmp rax, r9
jb 0x14000a573
mov rbp, qword [rsp + 0x40]
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
jbe 0x14000a5b7
mov esi, r13d
add rsi, rax
jmp 0x14000a5bf
test r13d, r13d
je 0x14000a5bf
neg rsi
mov rax, qword [rsp + 0x38]
mov qword [rax], rsi
mov r13, qword [rsp]
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x30]
movsxd rax, r11d
add rax, rcx
cmp rax, r9
jb 0x14000a664
test r11d, r11d
jne 0x14000a5ef
cmp r15, rcx
je 0x14000a664
imul eax, r8d, 0x13
cmp r11d, eax
jg 0x14000a664
test r12d, r12d
jne 0x14000a664
cmp r11d, eax
jl 0x14000a657
lea r9, str.922337203685477580
mov r11d, r10d
nop dword [rax]
cmp r10d, 0x12
jge 0x14000a635
movsxd rax, r11d
inc r10d
add r11d, r8d
movsx edx, byte [rax + rcx]
movsx eax, byte [r9]
inc r9
sub edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
je 0x14000a610
jmp 0x14000a642
lea eax, [r8 + r8*8]
add eax, eax
movsx eax, byte [rax + rcx]
sub eax, 0x38
test eax, eax
js 0x14000a657
jg 0x14000a664
lea eax, [r14 + r14]
add rsp, 0x10
pop r15
pop r14
pop r12
ret
xor eax, eax
add rsp, 0x10
pop r15
pop r14
pop r12
ret
mov eax, 1
add rsp, 0x10
pop r15
pop r14
pop r12
ret
Function at 0x140053cf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14d, dword [rcx + 0x28]
xor edi, edi
xor ebx, ebx
mov rsi, r8
mov r15, rdx
mov rbp, rcx
test r14d, r14d
jle 0x140053dec
mov qword [rsp + 0x58], r12
lea r12, [0x14010c000]
nop word [rax + rax]
mov eax, ebx
xor eax, 1
cmp ebx, 2
cmovge eax, ebx
movsxd r10, eax
test rsi, rsi
je 0x140053d98
mov rcx, qword [rbp + 0x20]
mov rdx, r10
movzx r8d, byte [rsi]
mov rax, rsi
shl rdx, 5
movzx r9d, byte [r8 + r12]
mov r11, qword [rdx + rcx]
movzx ecx, byte [r11]
movzx ecx, byte [rcx + r12]
sub r9d, ecx
jne 0x140053dc8
sub r11, rsi
nop
test r8b, r8b
je 0x140053d93
movzx r8d, byte [rax + 1]
inc rax
movzx ecx, byte [r11 + rax]
movzx r9d, byte [r8 + r12]
movzx edx, byte [rcx + r12]
sub r9d, edx
je 0x140053d70
jmp 0x140053dc8
test r9d, r9d
jne 0x140053dc8
mov rax, qword [rbp + 0x20]
lea r8, [rsp + 0x50]
shl r10, 5
mov rdx, r15
mov rcx, qword [r10 + rax + 0x18]
add rcx, 8
call fcn.14000b280
test rax, rax
je 0x140053dc6
mov rdi, qword [rax + 0x10]
test rdi, rdi
jne 0x140053dd3
jmp 0x140053dc8
xor edi, edi
inc ebx
cmp ebx, r14d
jl 0x140053d30
mov r12, qword [rsp + 0x58]
mov rax, rdi
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x60]
mov rax, rdi
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140053f20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov esi, dword [rcx + 0x28]
xor r10d, r10d
xor ebx, ebx
mov rdi, r8
mov rbp, rdx
test esi, esi
jle 0x14005400a
mov qword [rsp + 0x48], r14
mov r14, qword [rcx + 0x20]
mov qword [rsp + 0x50], r15
lea r15, [0x14010c000]
nop word [rax + rax]
mov eax, ebx
xor eax, 1
cmp ebx, 2
cmovge eax, ebx
movsxd r9, eax
shl r9, 5
mov r11, qword [r9 + r14 + 0x18]
test rdi, rdi
je 0x140053fc2
mov r9, qword [r9 + r14]
mov rax, rdi
movzx r8d, byte [rdi]
movzx ecx, byte [r9]
movzx edx, byte [rcx + r15]
movzx ecx, byte [r8 + r15]
cmp ecx, edx
jne 0x140053fe6
sub r9, rdi
nop dword [rax]
test r8b, r8b
je 0x140053fc2
movzx ecx, byte [r9 + rax + 1]
inc rax
movzx edx, byte [rcx + r15]
movzx r8d, byte [rax]
movzx ecx, byte [r8 + r15]
cmp ecx, edx
je 0x140053fa0
jmp 0x140053fe6
lea rcx, [r11 + 0x20]
mov rdx, rbp
lea r8, [rsp + 0x40]
call fcn.14000b280
test rax, rax
je 0x140053fe3
mov r10, qword [rax + 0x10]
test r10, r10
jne 0x140053ff0
jmp 0x140053fe6
xor r10d, r10d
inc ebx
cmp ebx, esi
jl 0x140053f60
mov r14, qword [rsp + 0x48]
mov rax, r10
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x58]
mov rax, r10
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400899c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, qword [rcx + 0xa0]
mov r10, rcx
test rax, rax
cmovne r10, rax
mov rax, qword [r10 + 0x240]
test rax, rax
je 0x1400899f4
nop dword [rax]
cmp qword [rax], rdx
jne 0x1400899eb
cmp dword [rax + 0x18], r9d
je 0x1400899f9
mov rax, qword [rax + 8]
test rax, rax
jne 0x1400899e0
jmp fcn.140089410
ret
Function at 0x1400b7c40
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x1400b7c64
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x1400b7cf2
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400b7cc0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x1400b7cc0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.1400f3b10
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400b7cdd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400b7ce5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x1400b7c81
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x1400b7dd0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x1400b7d09
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400b7d0b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400b7d3d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.1400f3b10
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400b7dcd
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400b7d78
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x1400b7dae
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1400da1e8
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x1400b7dcd
cmp rsi, rax
ja 0x1400b7d81
test rsi, rsi
je 0x1400b7dcd
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400da1e8
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x1400bed20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140125080]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x60], rdx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x20], 0x6b373839
mov dword [rsp + 0x24], 0x73696f6a
mov dword [rsp + 0x28], 0x38686975
mov word [rsp + 0x2c], 0x3239
mov byte [rsp + 0x2e], 0x68
call fcn.1400b8d00
mov dword [rsp + 0x30], 1
mov r9d, ebp
cmp qword [rbx + 0x10], r9
jbe 0x1400bede7
mov r8d, ebp
mov ecx, ebp
movabs r11, 0x8888888888888889
nop word [rax + rax]
mov r10, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400bedad
mov r10, qword [rbx]
mov rax, r11
mul rcx
shr rdx, 3
imul rax, rdx, 0xf
sub rcx, rax
movzx edx, byte [rsp + rcx + 0x20]
xor dl, byte [r8 + r10]
mov rax, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x1400bedd4
mov rax, qword [rdi]
mov byte [r8 + rax], dl
inc r9d
inc r8
movsxd rcx, r9d
cmp rcx, qword [rbx + 0x10]
jb 0x1400beda0
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x1400bedf4
mov rdx, qword [rdi]
mov r8d, dword [rdi + 0x10]
lea rcx, [rsp + 0x40]
call fcn.140002610
mov rsi, rax
cmp rdi, rax
je 0x1400bee70
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x1400bee44
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1400bee3f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400bef0f
mov rcx, r8
call fcn.1400d16cc
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], send
mov byte [rdi], 0
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rsi + 0x10], rbp
mov qword [rsi + 0x18], send
mov byte [rsi], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x1400beeaa
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400beea4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400bef0f
call fcn.1400d16cc
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x1400beee0
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400beedb
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400bef15
mov rcx, r8
call fcn.1400d16cc
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], send
mov byte [rbx], 0
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400d1190
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
call fcn.1400d7494
nop
call fcn.1400d7494
int3
Function at 0x1400c9430
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400c9464
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400c9450
ret
Function at 0x1400cb840
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400cb905
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400cb905
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x1400cb91e
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x1400cb8f5
cmp byte [rcx], 0x5c
jne 0x1400cb8ee
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x1400cb8ee
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1400cb8dc
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x1400cb8eb
test r8b, 0x10
jne 0x1400cb8ee
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x1400cb8ee
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400ca160
test edi, edi
jne 0x1400cb860
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.1400ca150
int3

Function at 0x1400ced20
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400ced5a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400ced5f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400ceda8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400f9ef0]
cmp byte [rcx + rax], 0
je 0x1400ceda8
dec r8
sub rdx, 1
jne 0x1400ced8e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400d1f4c
Capabilities:
Parse pe header

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

Function at 0x1400d7644
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400d767b
call fcn.1400d8c4c
mov dword [rax], socket
call fcn.1400d7474
xor eax, eax
jmp 0x1400d7709
mov rdx, r9
mov rcx, r8
call fcn.1400d75e0
mov rbx, rax
test rax, rax
je 0x1400d7706
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400d750c]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400d76f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400d8bc0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400d76da
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400d76e9
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400e1fd0
jmp 0x1400d7706
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400d7703
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400da9fc
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.1400d1a90
sub rsp, rax
mov rax, qword [0x140125080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400e3c84
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400daa4b
mov rax, rbp
jmp 0x1400dab53
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 + 0x129a00]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400e6a24
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x129a00]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400dab4f
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 0x1400dab4f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400e6a24
test rax, rax
js 0x1400dab4f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400dab4f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400dab41
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400dab41
cmp byte [rcx], 0xd
jne 0x1400dab27
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400dab36
cmp byte [rcx + 1], 0xa
jne 0x1400dab36
inc rcx
jmp 0x1400dab36
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x125680]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400dab09
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400dab53
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400d1190
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 0x1400de9c0
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 0x1400dea2f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400dea2f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400dea2f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400dea2f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400dea2f
cmp dword [rcx + 0x84], 0xe
jbe 0x1400dea2f
cmp dword [rcx + 0xf8], 0
je 0x1400dea2f
mov ecx, ebx
call fcn.1400deae0
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.1400de8bc
nop
cmp dword [rbp + 0x20], 0
je 0x1400dea7d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400dea88
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400de9c0
Function at 0x1400debc4
Capabilities:
Parse pe header

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

Function at 0x1400e3da4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400e3dba
mov al, 1
jmp 0x1400e3e1a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400e3dcb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400e3e18
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400ebb94
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400e3e18
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400e3e18
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400e3e18
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400e3e1a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400e5ba4
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, [0x140129a00]
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 0x1400e5bfb
cmp word [rdx], r13w
jne 0x1400e5bfb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400e5c00
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400e5d25
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400e5d46
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400e5c39
mov rdx, r9
mov word [rbx], cx
jmp 0x1400e5c60
cmp r9, r8
jae 0x1400e5c70
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 0x1400e5c1a
jmp 0x1400e5d25
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 0x1400e5d1a
cmp dword [rsp + 0x80], esi
je 0x1400e5d1a
lea r8, [0x140129a00]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400e5cf2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400e5cc2
mov word [rbx], r13w
jmp 0x1400e5d22
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 0x1400e5ccf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400e5d22
cmp word [rsp + 0x70], r13w
jne 0x1400e5cff
cmp rbx, r14
je 0x1400e5cbc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400e6a2c
cmp word [rsp + 0x70], r13w
je 0x1400e5d25
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, [0x140129a00]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400e5d1f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400e5d25
Function at 0x1400eadf8
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 0x1400eae28
xor eax, eax
jmp 0x1400eaeeb
mov rbp, rbx
cmp word [rax], si
je 0x1400eae4d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400eae34
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400eae30
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.1400e9560
movsxd r14, eax
test eax, eax
jne 0x1400eae8b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400eae21
mov rcx, r14
call fcn.1400e3c24
mov rdi, rax
test rax, rax
jne 0x1400eaea4
xor ecx, ecx
call fcn.1400e1fd0
jmp 0x1400eae80
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.1400e9560
test eax, eax
jne 0x1400eaed5
mov rcx, rdi
call fcn.1400e1fd0
jmp 0x1400eaedf
xor ecx, ecx
call fcn.1400e1fd0
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 0x1400eaf08
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 0x1400eaf8f
mov rsi, rbx
cmp word [rax], bp
je 0x1400eaf4e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400eaf38
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400eaf34
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400e3c24
mov rdi, rax
test rax, rax
je 0x1400eaf7c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400f3b10
mov rbp, rdi
xor ecx, ecx
call fcn.1400e1fd0
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