joyce8/EMBER2024-capa huggingface dataset:
Function at 0x38bec21a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x38bec95d0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x38bec21bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x38bec21c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x38bec21e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x38bec95d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x38bec2200
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x38bec2208
ret
cmp word [r8 + 0x18], 0x20b
jne 0x38bec2200
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x38bec2200
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x38bec2254
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x38bec2260
add rdx, 0x28
cmp rdx, r9
jne 0x38bec2240
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x38bec2270
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x38bec95d0]
xor r8d, r8d
cmp word [r11], 0x5a4d
mov r10d, ecx
jne 0x38bec2294
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
je 0x38bec22a0
mov rax, r8
ret
cmp word [rcx + 0x18], 0x20b
jne 0x38bec2294
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x38bec2294
movzx edx, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rdx, [rcx + rdx + 0x18]
test r9w, r9w
je 0x38bec2294
lea ecx, [r9 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rdx + 0xc]
mov rcx, r8
cmp rax, r8
jb 0x38bec22ec
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x38bec2300
add rdx, 0x28
cmp r9, rdx
jne 0x38bec22d8
xor r8d, r8d
mov rax, r8
ret
add rax, r11
jmp 0x38bec2310
sub r10d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x38bec231e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x38bec22f5
test r10d, r10d
jg 0x38bec2308
mov r8d, dword [rax + 0xc]
add r8, r11
mov rax, r8
ret
Function at 0x140054970
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov esi, dword [rcx + 0x28]
xor r10d, r10d
xor ebx, ebx
mov rdi, r8
mov r14, rdx
mov rbp, rcx
test esi, esi
jle 0x140054a68
mov qword [rsp + 0x48], r15
lea r15, [0x140110f00]
nop word [rax + rax]
mov eax, ebx
xor eax, 1
cmp ebx, 2
cmovge eax, ebx
movsxd r11, eax
test rdi, rdi
je 0x140054a12
mov rcx, qword [rbp + 0x20]
mov rdx, r11
movzx r8d, byte [rdi]
mov rax, rdi
shl rdx, 5
mov r9, qword [rdx + rcx]
movzx edx, byte [r8 + r15]
movzx ecx, byte [r9]
movzx ecx, byte [rcx + r15]
cmp edx, ecx
jne 0x140054a43
sub r9, rdi
nop
test r8b, r8b
je 0x140054a12
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 0x1400549f0
jmp 0x140054a43
mov rax, qword [rbp + 0x20]
lea r8, [rsp + 0x40]
shl r11, 5
mov rdx, r14
mov rcx, qword [r11 + rax + 0x18]
add rcx, 8
call fcn.14000b390
test rax, rax
je 0x140054a40
mov r10, qword [rax + 0x10]
test r10, r10
jne 0x140054a4d
jmp 0x140054a43
xor r10d, r10d
inc ebx
cmp ebx, esi
jl 0x1400549b0
mov r15, qword [rsp + 0x48]
mov rax, r10
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov rax, r10
jmp 0x140054a55

Function at 0x140054b90
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 0x140054c7a
mov qword [rsp + 0x48], r14
mov r14, qword [rcx + 0x20]
mov qword [rsp + 0x50], r15
lea r15, [0x140110f00]
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 0x140054c32
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 0x140054c56
sub r9, rdi
nop dword [rax]
test r8b, r8b
je 0x140054c32
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 0x140054c10
jmp 0x140054c56
lea rcx, [r11 + 0x20]
mov rdx, rbp
lea r8, [rsp + 0x40]
call fcn.14000b390
test rax, rax
je 0x140054c53
mov r10, qword [rax + 0x10]
test r10, r10
jne 0x140054c60
jmp 0x140054c56
xor r10d, r10d
inc ebx
cmp ebx, esi
jl 0x140054bd0
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 0x14008ae30
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 0x14008ae5e
cmp qword [rax], rdx
jne 0x14008ae58
cmp dword [rax + 0x18], r9d
je 0x14008ae63
mov rax, qword [rax + 8]
jmp 0x14008ae48
jmp fcn.14008a880
ret
Function at 0x1400c2610
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140132020]
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.1400bd510
mov dword [rsp + 0x30], 1
mov r9d, ebp
cmp qword [rbx + 0x10], r9
jbe 0x1400c26d7
mov r8d, ebp
mov ecx, ebp
movabs r11, 0x8888888888888889
nop word [rax + rax]
mov r10, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400c269d
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], 0x10
jb 0x1400c26c4
mov rax, qword [rdi]
mov byte [r8 + rax], dl
inc r9d
inc r8
movsxd rcx, r9d
cmp rcx, qword [rbx + 0x10]
jb 0x1400c2690
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400c26e4
mov rdx, qword [rdi]
mov r8d, dword [rdi + 0x10]
lea rcx, [rsp + 0x40]
call fcn.140002750
mov rsi, rax
cmp rdi, rax
je 0x1400c2760
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400c2734
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1400c272f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400c27ff
mov rcx, r8
call fcn.1400d6788
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 0xf
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], 0xf
mov byte [rsi], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400c279a
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c2794
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c27ff
call fcn.1400d6788
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400c27d0
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400c27cb
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400c2805
mov rcx, r8
call fcn.1400d6788
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400d6240
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
call fcn.1400dcf74
nop
call fcn.1400dcf74
int3
Function at 0x1400cca00
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 0x1400cca22
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 0x1400cca9c
mov rdi, r14
mov rcx, rbx
call fcn.1400cdca0
test rax, rax
jle 0x1400cca74
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.1400d83a0
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 0x1400cca8c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400cca94
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400cca36
sub r14, rdi
jmp 0x1400ccb7f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400ccab3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400ccab5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400ccae7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400d83a0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400ccb7c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400ccb22
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 rbp, 0xfff
jbe 0x1400ccb5d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400e2bc4
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400ccb7c
cmp rbp, rax
ja 0x1400ccb30
test rbp, rbp
je 0x1400ccb7c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400e2bc4
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

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

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400cec64
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400cec50
ret
Function at 0x1400d0f80
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 0x1400d104c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400d104c
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 0x1400d1065
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x1400d103c
cmp byte [rax], 0x5c
jne 0x1400d1036
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x1400d1036
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1400d1022
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x1400d1033
test r8b, 0x10
jne 0x1400d1036
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x1400d1036
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400cf990
test edi, edi
jne 0x1400d0fa0
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.1400cf980
int3

Function at 0x1400d3ea8
Capabilities:
Get geographical location

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

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

Function at 0x1400dd124
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 0x1400dd15b
call fcn.1400dda84
mov dword [rax], 0x16
call fcn.1400dcf54
xor eax, eax
jmp 0x1400dd1e9
mov rdx, r9
mov rcx, r8
call fcn.1400dd0c0
mov rbx, rax
test rax, rax
je 0x1400dd1e6
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400dcfec]
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 0x1400dd1d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400dd9f8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400dd1ba
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400dd1c9
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400e7a98
jmp 0x1400dd1e6
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400dd1e3
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 0x1400dd960
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 0x1400dd7cb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400dd7cb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400dd7cb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400dd7cb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400dd7cb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400dd7cb
cmp dword [rcx + 0xf8], 0
je 0x1400dd7cb
mov ecx, ebx
call fcn.1400dd87c
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.1400dd658
nop
cmp dword [rbp + 0x20], 0
je 0x1400dd819
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400dd824
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400dd75c
Function at 0x1400ded04
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.1400d6b50
sub rsp, rax
mov rax, qword [0x140132020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400e97ec
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400ded53
mov rax, rbp
jmp 0x1400dee5b
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 + 0x1368f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400e9c9c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1368f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400dee57
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 0x1400dee57
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400e9c9c
test rax, rax
js 0x1400dee57
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400dee57
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400dee49
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400dee49
cmp byte [rcx], 0xd
jne 0x1400dee2f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400dee3e
cmp byte [rcx + 1], 0xa
jne 0x1400dee3e
inc rcx
jmp 0x1400dee3e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x132590]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400dee11
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400dee5b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400d6240
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 0x1400e9d48
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, [0x1401368f0]
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 0x1400e9d9f
cmp word [rdx], r13w
jne 0x1400e9d9f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400e9da4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400e9ec9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400e9eea
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400e9ddd
mov rdx, r9
mov word [rbx], cx
jmp 0x1400e9e04
cmp r9, r8
jae 0x1400e9e14
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 0x1400e9dbe
jmp 0x1400e9ec9
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 0x1400e9ebe
cmp dword [rsp + 0x80], esi
je 0x1400e9ebe
lea r8, [0x1401368f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400e9e96
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400e9e66
mov word [rbx], r13w
jmp 0x1400e9ec6
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 0x1400e9e73
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400e9ec6
cmp word [rsp + 0x70], r13w
jne 0x1400e9ea3
cmp rbx, r14
je 0x1400e9e60
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400e9ca4
cmp word [rsp + 0x70], r13w
je 0x1400e9ec9
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, [0x1401368f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400e9ec3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400e9ec9
Function at 0x1400eaaac
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400eaac2
mov al, 1
jmp 0x1400eab22
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400eaad3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400eab20
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400f165c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400eab20
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400eab20
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400eab20
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400eab22
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400f08c0
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 0x1400f08f0
xor eax, eax
jmp 0x1400f09b3
mov rbp, rbx
cmp word [rax], si
je 0x1400f0915
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400f08fc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400f08f8
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.1400ef05c
movsxd r14, eax
test eax, eax
jne 0x1400f0953
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400f08e9
mov rcx, r14
call fcn.1400e96ec
mov rdi, rax
test rax, rax
jne 0x1400f096c
xor ecx, ecx
call fcn.1400e7a98
jmp 0x1400f0948
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.1400ef05c
test eax, eax
jne 0x1400f099d
mov rcx, rdi
call fcn.1400e7a98
jmp 0x1400f09a7
xor ecx, ecx
call fcn.1400e7a98
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 0x1400f09d0
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 0x1400f0a57
mov rsi, rbx
cmp word [rax], bp
je 0x1400f0a16
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400f0a00
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400f09fc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400e96ec
mov rdi, rax
test rax, rax
je 0x1400f0a44
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400d83a0
mov rbp, rdi
xor ecx, ecx
call fcn.1400e7a98
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