joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18039e420
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1805770f0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov edx, 8
lea rcx, [rsp + 0x50]
call fcn.180410250
mov rcx, qword [rsp + 0x78]
call fcn.180396680
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.18039ecd0
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.18039ed70
nop
lea rcx, [rsp + 0x38]
call fcn.1804101c0
lea rax, [0x18039edc0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
add rax, 8
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x50]
call fcn.180410200
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x48]
xor edx, edx
xor ecx, ecx
call fcn.1803d71dc
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
je 0x18039e4e8
lea rcx, [rsp + 0x50]
call fcn.180410220
jmp 0x18039e4ff
mov rax, qword [rsp + 0x70]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1803ceac0
nop
lea rcx, [rsp + 0x50]
call fcn.1804101c0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1803d0210
add rsp, 0x68
ret
Function at 0x1803a1720
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1805770f0]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x80], 0
jg 0x1803a1754
xor eax, eax
jmp 0x1803a1900
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x1803a177c
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.180397280
jmp 0x1803a1900
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x70]
call fcn.1803985f0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x1803a1818
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.18039a710
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x70]
call fcn.1803987c0
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.180399430
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
call fcn.180398720
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x1803a18f0
mov rcx, qword [rsp + 0x70]
call fcn.1803a3080
mov qword [rsp + 0x38], 0xfff
cmp qword [rsp + 0x40], 0xfff
jbe 0x1803a18b8
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.1803d8b2c
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x28], 0xfff
je 0x1803a18b6
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x1803a1900
jmp 0x1803a183e
cmp qword [rsp + 0x40], 0
jbe 0x1803a18f0
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.1803d8b2c
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1803d0210
add rsp, 0x68
ret
Function at 0x1803ad890
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1805770f0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov edx, 8
lea rcx, [rsp + 0x50]
call fcn.180413d70
mov rcx, qword [rsp + 0x78]
call fcn.180396680
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1803ae5c0
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1803ae660
nop
lea rcx, [rsp + 0x38]
call fcn.180413ce0
lea rax, [0x1803ae6b0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
add rax, 8
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x50]
call fcn.180413d20
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x48]
xor edx, edx
xor ecx, ecx
call fcn.1803d71dc
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
je 0x1803ad958
lea rcx, [rsp + 0x50]
call fcn.180413d40
jmp 0x1803ad96f
mov rax, qword [rsp + 0x70]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1803ceac0
nop
lea rcx, [rsp + 0x50]
call fcn.180413ce0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1803d0210
add rsp, 0x68
ret

Function at 0x1803b1520
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1805770f0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov edx, 8
lea rcx, [rsp + 0x50]
call fcn.1803965d0
mov rcx, qword [rsp + 0x78]
call fcn.180396680
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1803b1920
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1803b19c0
nop
lea rcx, [rsp + 0x38]
call fcn.1803b17d0
lea rax, [0x1803b1a10]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
add rax, 8
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x50]
call fcn.1803998e0
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x48]
xor edx, edx
xor ecx, ecx
call fcn.1803d71dc
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
je 0x1803b15e8
lea rcx, [rsp + 0x50]
call fcn.18039ad80
jmp 0x1803b15ff
mov rax, qword [rsp + 0x70]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1803ceac0
nop
lea rcx, [rsp + 0x50]
call fcn.1803b17d0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1803d0210
add rsp, 0x68
ret
Function at 0x1803c0050
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rbx, r9
mov r15, rdx
mov r13, rcx
mov r12, qword [r8 + 0x10]
mov r10, qword [r8 + 0x18]
cmp r10, 0x10
jb 0x1803c0093
mov r9, qword [r8]
jmp 0x1803c0096
mov r9, r8
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
test r12, r12
je 0x1803c00c5
movabs r11, 0x100000001b3
movzx eax, byte [r9 + rcx]
xor rdx, rax
imul rdx, r11
inc rcx
cmp rcx, r12
jb 0x1803c00b1
mov r9, qword [r13 + 0x30]
and r9, rdx
shl r9, 4
mov qword [rsp + 0x20], r9
mov rax, qword [r13 + 0x18]
mov rsi, qword [r9 + rax]
cmp rsi, qword [r13 + 8]
jne 0x1803c00e9
mov rdi, qword [r13 + 8]
jmp 0x1803c00f1
mov rdi, qword [r9 + rax + 8]
mov rdi, qword [rdi]
cmp rdi, rsi
je 0x1803c01d1
nop word [rax + rax]
mov rdi, qword [rdi + 8]
lea rdx, [rdi + 0x10]
lea r14, [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1803c0116
mov rdx, qword [rdx]
cmp r10, 0x10
jb 0x1803c0121
mov rcx, qword [r8]
jmp 0x1803c0124
mov rcx, r8
mov r14, qword [r14]
mov r8, r14
cmp r12, r14
cmovb r8, r12
test r8, r8
je 0x1803c013f
call fcn.1803d2c30
test eax, eax
jne 0x1803c01b7
cmp r12, r14
jb 0x1803c01b7
ja 0x1803c01b7
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r13 + 0x10]
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x1803c0196
or r14d, 0xffffffff
mov eax, r14d
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1803c0196
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
lock xadd dword [rsi + 0xc], r14d
cmp r14d, 1
jne 0x1803c0196
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
lea rcx, [rbx + 0x10]
call fcn.180397c10
mov rcx, rbx
call fcn.1803d0f94
mov qword [r15], rdi
mov byte [r15 + 8], 0
mov rax, r15
jmp 0x1803c026c
cmp rdi, rsi
mov r8, qword [rsp + 0x80]
mov r10, qword [r8 + 0x18]
jne 0x1803c0100
mov r9, qword [rsp + 0x20]
mov qword [rsp + 0x80], rbx
mov rax, qword [rbx]
cmp rdi, rax
je 0x1803c020e
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rbx
mov rdx, qword [rdi + 8]
mov rcx, qword [rax + 8]
mov qword [rdi + 8], rcx
mov rcx, qword [rbx + 8]
mov qword [rax + 8], rcx
mov qword [rbx + 8], rdx
mov rdx, qword [r13 + 0x18]
add rdx, r9
mov rax, qword [rdx]
cmp rax, qword [r13 + 8]
jne 0x1803c022c
mov qword [rdx], rbx
mov rax, qword [r13 + 0x18]
mov qword [r9 + rax + 8], rbx
jmp 0x1803c0258
cmp rax, rdi
jne 0x1803c0236
mov qword [rdx], rbx
jmp 0x1803c0258
mov rax, qword [rdx + 8]
mov rcx, qword [rax]
mov qword [rdx + 8], rcx
cmp rcx, rbx
je 0x1803c0258
mov rdx, qword [r13 + 0x18]
mov rax, qword [rdx + r9 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r9 + 8], rcx
mov rcx, r13
call fcn.1803c59c0
nop
mov qword [r15], rbx
mov byte [r15 + 8], 1
mov rax, r15
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1803c7a10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x20
mov r10, qword [r8 + 0x20]
mov r9, r8
add r8, 0x10
mov rdi, rdx
mov r11, rcx
cmp qword [r8 + 0x18], 0x10
jb 0x1803c7a3a
mov r8, qword [r8]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
test r10, r10
je 0x1803c7a74
movabs rbx, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
inc rcx
xor rdx, rax
imul rdx, rbx
cmp rcx, r10
jb 0x1803c7a60
mov r8, qword [r11 + 0x30]
mov rcx, qword [r11 + 0x18]
and r8, rdx
shl r8, 4
add rcx, r8
cmp qword [rcx + 8], r9
jne 0x1803c7ab1
cmp qword [rcx], r9
jne 0x1803c7aa7
mov rax, qword [r11 + 8]
mov qword [rcx], rax
mov rcx, qword [r11 + 0x18]
mov rax, qword [r11 + 8]
mov qword [rcx + r8 + 8], rax
jmp 0x1803c7abc
mov rax, qword [r9 + 8]
mov qword [rcx + 8], rax
jmp 0x1803c7abc
cmp qword [rcx], r9
jne 0x1803c7ac1
mov rax, qword [r9]
mov qword [rcx], rax
mov r9, qword [rsp + 0x40]
mov rax, qword [r9 + 8]
lea rcx, [r11 + 8]
mov rbx, qword [r9]
mov rdx, r9
mov qword [rax], rbx
mov r8, qword [r9]
mov rax, qword [r9 + 8]
mov qword [r8 + 8], rax
dec qword [rcx + 8]
call fcn.1803c5cb0
mov qword [rdi], rbx
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1803cbe40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15, qword [r8 + 0x18]
mov r14, r8
mov rdi, qword [r8 + 0x10]
mov r12, rdx
mov rbp, rcx
cmp r15, 0x10
jb 0x1803cbe71
mov r8, qword [r8]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
test rdi, rdi
je 0x1803cbea4
movabs r9, 0x100000001b3
nop dword [rax]
movzx eax, byte [r8 + rcx]
inc rcx
xor rdx, rax
imul rdx, r9
cmp rcx, rdi
jb 0x1803cbe90
mov rcx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x30]
mov rbp, qword [rbp + 8]
and rax, rdx
mov rbx, rax
mov qword [rsp + 0x58], rsi
add rax, rax
add rbx, rbx
mov r13, qword [rcx + rax*8]
inc rax
mov rbx, qword [rcx + rbx*8]
lea rax, [rcx + rax*8]
mov qword [rsp + 0x50], rax
cmp r13, rbp
jne 0x1803cbedf
mov rax, rbp
jmp 0x1803cbee5
mov rax, qword [rax]
mov rax, qword [rax]
cmp rbx, rax
je 0x1803cbf83
lea rcx, [rbx + 0x10]
cmp r15, 0x10
jb 0x1803cbefd
mov rdx, qword [r14]
jmp 0x1803cbf00
mov rdx, r14
cmp qword [rcx + 0x18], 0x10
lea rsi, [rcx + 0x10]
jb 0x1803cbf0e
mov rcx, qword [rcx]
mov rsi, qword [rsi]
mov r8, rdi
cmp rsi, rdi
cmovb r8, rsi
test r8, r8
je 0x1803cbf29
call fcn.1803d2c30
test eax, eax
jne 0x1803cbf30
cmp rsi, rdi
jb 0x1803cbf30
jbe 0x1803cbf3a
mov rbx, qword [rbx]
mov rax, qword [rsp + 0x50]
jmp 0x1803cbed5
cmp qword [rbx + 0x28], 0x10
lea rdx, [rbx + 0x10]
lea rsi, [rdx + 0x10]
jb 0x1803cbf4c
mov rdx, qword [rdx]
cmp r15, 0x10
jb 0x1803cbf55
mov r14, qword [r14]
mov rsi, qword [rsi]
cmp rdi, rsi
mov r8, rsi
cmovb r8, rdi
test r8, r8
je 0x1803cbf73
mov rcx, r14
call fcn.1803d2c30
test eax, eax
jne 0x1803cbf7a
cmp rdi, rsi
jb 0x1803cbf7a
jbe 0x1803cbf7d
mov rbx, rbp
mov qword [r12], rbx
jmp 0x1803cbf87
mov qword [r12], rbp
mov rsi, qword [rsp + 0x58]
mov rax, r12
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1803de844
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x1803de863
call fcn.1803f1c98
jmp 0x1803de918
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.1803d95e4
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x1803de8ae
cmp byte [rbp - 0x38], 0
je 0x1803de8e3
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1803de8e3
call fcn.1803eb010
test eax, eax
jne 0x1803de8cf
cmp byte [rbp - 0x38], al
je 0x1803de8c7
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1803de8e3
cmp byte [rbp - 0x38], 0
je 0x1803de8e0
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.1803d934c
test eax, eax
je 0x1803de8fc
or ebx, 0xffffffff
jmp 0x1803de907
mov rcx, qword [rbp - 0x20]
call fcn.1803f1c98
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x1803de916
mov rcx, qword [rbp - 0x20]
call fcn.1803e8c90
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x1803ed468
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 0x1803ed49a
call fcn.1803e2688
mov dword [rax], 0x16
call fcn.1803d700c
jmp 0x1803ed5b9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1803ed5b9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1803ed5b9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1803ed4c9
lock or dword [rcx + 0x14], 0x10
jmp 0x1803ed5b9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1803ed4dd
call fcn.1803edd64
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1803ebd44
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1803ee27c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1803ed5a7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1803ed572
mov rcx, rsi
call fcn.1803ebd44
cmp eax, edi
je 0x1803ed55d
mov rcx, rsi
call fcn.1803ebd44
cmp eax, 0xfffffffe
je 0x1803ed55d
mov rcx, rsi
call fcn.1803ebd44
movsxd rbx, eax
lea r14, [0x1805bda20]
mov rcx, rsi
sar rbx, 6
call fcn.1803ebd44
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1803ed564
lea rdx, [0x180577490]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1803ed572
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1803ed596
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1803ed596
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1803ed596
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 0x1803ed5bc
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 0x1803edae4
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.1803d11a0
sub rsp, rax
mov rax, qword [0x1805770f0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1803ebd44
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1803edb33
mov rax, rbp
jmp 0x1803edc3b
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x5bda20]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1803eea54
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x5bda20]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1803edc37
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 0x1803edc37
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1803eea54
test rax, rax
js 0x1803edc37
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1803edc37
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1803edc29
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1803edc29
cmp byte [rcx], 0xd
jne 0x1803edc0f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1803edc1e
cmp byte [rcx + 1], 0xa
jne 0x1803edc1e
inc rcx
jmp 0x1803edc1e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5774e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1803edbf1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1803edc3b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1803d0210
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 0x1803eddd0
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, [0x1805bda20]
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 0x1803ede2e
cmp word [rdx], r12w
jne 0x1803ede2e
or byte [rax + r8*8 + 0x38], cl
jmp 0x1803ede34
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1803edf8f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1803edf6a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1803ede6d
mov rcx, r9
jmp 0x1803ede90
cmp r9, rdx
jae 0x1803edea7
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 0x1803ede51
jmp 0x1803edf8f
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 0x1803edf64
cmp dword [rsp + 0x80], edi
je 0x1803edf64
mov rdx, r14
lea r11, [0x1805bda20]
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 0x1803edf3d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1803edf10
mov word [rbx], r12w
jmp 0x1803edf8b
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 0x1803edf19
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1803edf8b
cmp word [rsp + 0x70], r12w
jne 0x1803edf4a
cmp rbx, rsi
je 0x1803edf0a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1803eea5c
cmp word [rsp + 0x70], r12w
je 0x1803edf8f
mov word [rbx], r13w
jmp 0x1803edf8b
lea r11, [0x1805bda20]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1803edf87
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1803edf8f
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 0x1803f516c
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 0x1803f519c
xor eax, eax
jmp 0x1803f525f
mov rbp, rbx
cmp word [rax], si
je 0x1803f51c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1803f51a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1803f51a4
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.1803efb98
movsxd r14, eax
test eax, eax
jne 0x1803f51ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1803f5195
mov rcx, r14
call fcn.1803ebce4
mov rdi, rax
test rax, rax
jne 0x1803f5218
xor ecx, ecx
call fcn.1803e8c90
jmp 0x1803f51f4
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.1803efb98
test eax, eax
jne 0x1803f5249
mov rcx, rdi
call fcn.1803e8c90
jmp 0x1803f5253
xor ecx, ecx
call fcn.1803e8c90
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 0x1803f527c
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 0x1803f5303
mov rsi, rbx
cmp word [rax], bp
je 0x1803f52c2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1803f52ac
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1803f52a8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1803ebce4
mov rdi, rax
test rax, rax
je 0x1803f52f0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1803d2410
mov rbp, rdi
xor ecx, ecx
call fcn.1803e8c90
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