joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003ba0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x13f0
call fcn.14000c500
sub rsp, rax
mov rax, qword [0x140048080]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov r14, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov r8d, 0x3e
lea rdx, [0x140041620]
lea rcx, [rsp + 0x30]
call fcn.140002d20
nop
call fcn.14000b6ac
mov edx, eax
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
mov ecx, 1
nop dword [rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x54], edx
inc rcx
cmp rcx, 0x270
jb 0x140003c30
mov dword [rsp + 0x50], 0x270
mov ebp, dword [rsp + 0x40]
dec ebp
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov dword [rsp + 0x20], 1
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x30]
test r14, r14
je 0x140003d59
mov r12d, 0x80000000
xor ebp, r12d
nop word [rax + rax]
lea rcx, [rsp + 0x50]
cmp ebp, 0x7fffffff
jne 0x140003cb6
call fcn.140008c70
mov ecx, eax
jmp 0x140003cf8
lea edi, [rbp - 0x7fffffff]
call fcn.140008c70
mov esi, edi
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jae 0x140003cf4
mov eax, edi
neg eax
xor edx, edx
div edi
mov edi, edx
cmp ecx, edx
jae 0x140003cf4
nop dword [rax + rax]
lea rcx, [rsp + 0x50]
call fcn.140008c70
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jb 0x140003ce0
shr rcx, 0x20
lea eax, [rcx + r12]
xor eax, r12d
lea rcx, [rsp + 0x30]
cmp r13, 0xf
cmova rcx, r15
cdqe
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140003d3f
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x140003d34
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140003d4f
xor r8d, r8d
mov edx, 1
mov rcx, rbx
call fcn.140008720
sub r14, 1
jne 0x140003ca0
cmp r13, 0xf
jbe 0x140003d8c
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x140003d84
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003dc0
mov rcx, r15
call fcn.14000bc6c
mov rax, rbx
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.14000bc10
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.140016014
int3
Function at 0x140006110
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 0x140006134
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 0x1400061c2
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 0x140006190
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140006190
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.140034160
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400061ad
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400061b5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140006151
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x1400062a0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x1400061d9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400061db
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000620d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140034160
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 0x14000629d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140006248
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 0x14000627e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1400192b0
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x14000629d
cmp rsi, rax
ja 0x140006251
test rsi, rsi
je 0x14000629d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400192b0
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 0x140008c70
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140008cd1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140008c90
mov ecx, dword [r9]
jmp 0x140008dbb
cmp ecx, 0x4e0
jb 0x140008dbb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140008cf0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140008d40
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x14000caa0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000caea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000caea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000caea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000caea
cmp dword [rcx + 0x84], 0xe
jbe 0x14000caea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000caec
xor al, al
add rsp, 0x28
ret
Function at 0x14001da84
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 0x14001daf3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001daf3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001daf3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001daf3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001daf3
cmp dword [rcx + 0x84], 0xe
jbe 0x14001daf3
cmp dword [rcx + 0xf8], 0
je 0x14001daf3
mov ecx, ebx
call fcn.14001dbb0
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.14001d980
nop
cmp dword [rbp + 0x20], 0
je 0x14001db41
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001db4c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001da84

Function at 0x14001dc94
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001da84
Function at 0x140024958
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14002498d
call fcn.140017dd4
mov dword [rax], 0x16
call fcn.140015ff4
jmp 0x140024ae9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
mov ebp, 1
test bpl, al
je 0x140024ae9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test bpl, al
jne 0x140024ae9
mov eax, dword [rcx + 0x14]
shr eax, 1
test bpl, al
je 0x1400249c4
lock or dword [rcx + 0x14], 0x10
jmp 0x140024ae9
lock or dword [rcx + 0x14], ebp
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400249d7
call fcn.140027018
mov r14d, dword [rbx + 0x10]
cmp r14d, ebp
jne 0x1400249e8
mov rax, qword [rbx]
mov r15b, byte [rax]
jmp 0x1400249eb
xor r15b, r15b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.14001ff18
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.140027968
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140024ad7
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140024a7e
mov rcx, rbx
call fcn.14001ff18
cmp eax, 0xffffffff
je 0x140024a69
mov rcx, rbx
call fcn.14001ff18
cmp eax, 0xfffffffe
je 0x140024a69
mov rcx, rbx
call fcn.14001ff18
movsxd rdi, eax
lea rsi, [0x14004a680]
mov rcx, rbx
sar rdi, 6
call fcn.14001ff18
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140024a70
lea rdx, [0x140048470]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140024a7e
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140024aa4
mov eax, dword [rbx + 0x14]
shr eax, 6
test bpl, al
je 0x140024aa4
mov eax, dword [rbx + 0x14]
shr eax, 8
test bpl, al
jne 0x140024aa4
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp r14d, ebp
jne 0x140024abf
movzx ecx, byte [rdx]
shl cx, 8
movzx eax, r15b
or cx, ax
dec dword [rbx + 0x10]
jmp 0x140024acb
movzx ecx, word [rdx]
mov ebp, 2
add dword [rbx + 0x10], 0xfffffffe
lea rax, [rdx + rbp]
mov qword [rbx], rax
movzx eax, cx
jmp 0x140024aee
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
jmp 0x140024958
Function at 0x140024b08
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 0x140024b3a
call fcn.140017dd4
mov dword [rax], 0x16
call fcn.140015ff4
jmp 0x140024c59
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140024c59
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140024c59
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140024b69
lock or dword [rcx + 0x14], 0x10
jmp 0x140024c59
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140024b7d
call fcn.140027018
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14001ff18
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140027968
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140024c47
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140024c12
mov rcx, rsi
call fcn.14001ff18
cmp eax, edi
je 0x140024bfd
mov rcx, rsi
call fcn.14001ff18
cmp eax, 0xfffffffe
je 0x140024bfd
mov rcx, rsi
call fcn.14001ff18
movsxd rbx, eax
lea r14, [0x14004a680]
mov rcx, rsi
sar rbx, 6
call fcn.14001ff18
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140024c04
lea rdx, [0x140048470]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140024c12
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140024c36
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140024c36
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140024c36
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 0x140024c5c
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 0x140024c74
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14002498d
call fcn.140017dd4
mov dword [rax], 0x16
call fcn.140015ff4
jmp 0x140024ae9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
mov ebp, 1
test bpl, al
je 0x140024ae9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test bpl, al
jne 0x140024ae9
mov eax, dword [rcx + 0x14]
shr eax, 1
test bpl, al
je 0x1400249c4
lock or dword [rcx + 0x14], 0x10
jmp 0x140024ae9
lock or dword [rcx + 0x14], ebp
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400249d7
call fcn.140027018
mov r14d, dword [rbx + 0x10]
cmp r14d, ebp
jne 0x1400249e8
mov rax, qword [rbx]
mov r15b, byte [rax]
jmp 0x1400249eb
xor r15b, r15b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.14001ff18
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.140027968
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140024ad7
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140024a7e
mov rcx, rbx
call fcn.14001ff18
cmp eax, 0xffffffff
je 0x140024a69
mov rcx, rbx
call fcn.14001ff18
cmp eax, 0xfffffffe
je 0x140024a69
mov rcx, rbx
call fcn.14001ff18
movsxd rdi, eax
lea rsi, [0x14004a680]
mov rcx, rbx
sar rdi, 6
call fcn.14001ff18
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140024a70
lea rdx, [0x140048470]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140024a7e
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140024aa4
mov eax, dword [rbx + 0x14]
shr eax, 6
test bpl, al
je 0x140024aa4
mov eax, dword [rbx + 0x14]
shr eax, 8
test bpl, al
jne 0x140024aa4
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp r14d, ebp
jne 0x140024abf
movzx ecx, byte [rdx]
shl cx, 8
movzx eax, r15b
or cx, ax
dec dword [rbx + 0x10]
jmp 0x140024acb
movzx ecx, word [rdx]
mov ebp, 2
add dword [rbx + 0x10], 0xfffffffe
lea rax, [rdx + rbp]
mov qword [rbx], rax
movzx eax, cx
jmp 0x140024aee
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
jmp 0x140024958
Function at 0x140025de0
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.14000c500
sub rsp, rax
mov rax, qword [0x140048080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001ff18
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140025e2f
mov rax, rbp
jmp 0x140025f37
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 + 0x4a680]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140028140
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4a680]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140025f33
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 0x140025f33
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140028140
test rax, rax
js 0x140025f33
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140025f33
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140025f25
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140025f25
cmp byte [rcx], 0xd
jne 0x140025f0b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140025f1a
cmp byte [rcx + 1], 0xa
jne 0x140025f1a
inc rcx
jmp 0x140025f1a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x48680]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140025eed
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140025f37
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000bc10
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 0x1400274bc
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, [0x14004a680]
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 0x14002751a
cmp word [rdx], r12w
jne 0x14002751a
or byte [rax + r8*8 + 0x38], cl
jmp 0x140027520
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14002767b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140027656
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140027559
mov rcx, r9
jmp 0x14002757c
cmp r9, rdx
jae 0x140027593
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 0x14002753d
jmp 0x14002767b
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 0x140027650
cmp dword [rsp + 0x80], edi
je 0x140027650
mov rdx, r14
lea r11, [0x14004a680]
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 0x140027629
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400275fc
mov word [rbx], r12w
jmp 0x140027677
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 0x140027605
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140027677
cmp word [rsp + 0x70], r12w
jne 0x140027636
cmp rbx, rsi
je 0x1400275f6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140028148
cmp word [rsp + 0x70], r12w
je 0x14002767b
mov word [rbx], r13w
jmp 0x140027677
lea r11, [0x14004a680]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140027673
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14002767b
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 0x14002adb4
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 0x14002ade4
xor eax, eax
jmp 0x14002aea7
mov rbp, rbx
cmp word [rax], si
je 0x14002ae09
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002adf0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002adec
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.1400239ac
movsxd r14, eax
test eax, eax
jne 0x14002ae47
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002addd
mov rcx, r14
call fcn.140020af4
mov rdi, rax
test rax, rax
jne 0x14002ae60
xor ecx, ecx
call fcn.14001fedc
jmp 0x14002ae3c
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.1400239ac
test eax, eax
jne 0x14002ae91
mov rcx, rdi
call fcn.14001fedc
jmp 0x14002ae9b
xor ecx, ecx
call fcn.14001fedc
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 0x14002aec4
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 0x14002af4b
mov rsi, rbx
cmp word [rax], bp
je 0x14002af0a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002aef4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002aef0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140020af4
mov rdi, rax
test rax, rax
je 0x14002af38
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140034160
mov rbp, rdi
xor ecx, ecx
call fcn.14001fedc
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