joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002350
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002370
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002378
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002370
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400023cd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400023c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002370
add rax, 0x28
cmp rax, r9
jne 0x1400023b0
xor eax, eax
ret

Function at 0x1400023d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004390]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400023ef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400023f8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400023ef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002490
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004390]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400024af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400024b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400073c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140007450
cmp r10, r11
jb 0x1400074c6
cmp r10, rdx
ja 0x1400074da
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140007452
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140007430
jmp 0x1400074b4
ja 0x14000745a
mov r11, r10
cmp rax, r8
jne 0x1400073f4
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140007490
mov rdi, r8
sub ecx, edx
jns 0x1400074ab
jmp 0x1400074b6
cmp r8, rsi
je 0x1400074eb
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x1400074b6
xor al, 1
cmp rdi, rsi
jne 0x140007470
jmp 0x1400074b6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14003a230
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140039fc0
ud2
lea rcx, [0x140045603]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14003a040
ud2

Function at 0x140009542
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140009575
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14000957a
call fcn.14001caf0
mov ecx, dword [0x140053c44]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov qword [rcx + 0xa8], 1
mov qword [rcx + 0xb0], rax
mov qword [rcx + 0xb8], rdx
add rsp, 0x38
ret
Function at 0x140012070
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x1400120cb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x1400120cb
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x1400120e6
cmp eax, 0x42
jne 0x1400120cb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140012196
cmp byte [r9 + r11], 0x5f
jne 0x140012196
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1400121fe
mov rcx, rsi
xor edx, edx
call fcn.14000d7b0
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.14000d7b0
test al, al
jne 0x140012291
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140012122
lea rdx, [0x14004258b]
mov r8d, 1
call fcn.140005150
test al, al
jne 0x140012291
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1400120da
xor r14d, r14d
lea rbx, [0x140042940]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140012154
cmp byte [rax + rcx], 0x45
je 0x1400122b3
sub r14, 1
jb 0x140012179
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140012179
mov r8d, 2
mov rdx, rbx
call fcn.140005150
test al, al
jne 0x140012291
mov rcx, rsi
call fcn.14000f080
test al, al
jne 0x140012291
mov rax, qword [rsi]
test rax, rax
jne 0x140012140
jmp 0x1400120da
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140012258
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x1400121f2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1400121dc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1400121cb
add dl, 0xa9
jmp 0x1400121da
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140012258
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140012258
movzx edx, bl
add rax, rdx
jae 0x1400121a0
jmp 0x140012258
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140012258
cmp rax, rcx
jae 0x140012255
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1400122ab
cmp qword [rsi + 0x20], 0
je 0x1400122a4
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.140012070
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1400120dc
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140012299
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x140042900]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.140005150
test al, al
je 0x140012299
mov dil, 2
jmp 0x1400120da
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x1400120da
mov dil, 1
xor r8d, r8d
jmp 0x14001225a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1400120da
Function at 0x140019cb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140019ce0
test ecx, ecx
jne 0x140019d30
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140019cec
test ecx, ecx
jne 0x140019d30
mov rcx, rdi
call fcn.140019b90
movzx eax, al
test bpl, bpl
jne 0x140019d37
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140019d23.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140019ea8]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140019d23.2
xor eax, eax
test bpl, bpl
je 0x140019cfc
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140019e89
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x140019d6a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140019de9
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140019db0
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x140019dcb
inc rax
dec rdi
cmp rax, 1
jne 0x140019d90
jmp 0x140019de9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x140019dcb
cmp ebx, 0x5c
je 0x140019dcb
inc rax
dec rdi
cmp rax, 1
jne 0x140019db0
jmp 0x140019de9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140019e97
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140019e13
mov al, 9
cmp rdx, 2
je 0x140019e17
cmp rdx, 1
jne 0x140019e27
cmp byte [r8], 0x2e
jne 0x140019e27
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140019e27
mov al, 0xa
jmp 0x140019e27
cmp byte [r8], 0x2e
jne 0x140019e27
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x140019d23.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x140019d23.2
mov ecx, 2
jmp case.0x140019d23.2
lea r8, str.library_std_srcpath.rs
call fcn.140039f40
ud2
lea r8, str.library_std_srcpath.rs
call fcn.140039f40
ud2
Function at 0x14001caf0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x14001cb33
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14001b100]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140039e80
ud2
Function at 0x140024d9d
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x2c]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x140024e36
mov rdi, rax
movsxd r12, dword [rsp + 0x2c]
lea rbx, [rsp + 0x30]
mov qword [rbx], 8
xorps xmm0, xmm0
movups xmmword [rbx + 8], xmm0
shl r12, 3
xor r13d, r13d
lea r14, [rsp + 0x48]
cmp r12, r13
je 0x140024e1b
mov r15, qword [rdi + r13]
mov rcx, r15
call fcn.14002f3f8
mov rcx, r14
mov rdx, r15
mov r8, rax
call fcn.1400224b4
mov rcx, rbx
mov rdx, r14
call fcn.1400250b3
add r13, 8
jmp 0x140024deb
mov rcx, rdi
call sub.kernel32.dll_LocalFree
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x10], rax
jmp 0x140024e44
mov qword [rsi], 8
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002a27a
Capabilities:
Reference wmi statements

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
and qword [rsp + 0x38], 0
mov rsi, rdx
mov rdi, rcx
cmp qword [rdx + 0x10], 0
je 0x14002a33e
lea rcx, [0x14004593a]
call sub.oleaut32.dll_SysAllocString
mov rbx, rax
lea rcx, str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.oleaut32.dll_SysAllocString
mov r14, rax
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
and qword [rsp + 0x20], 0
mov rdx, rbx
mov r8, r14
mov r9d, 0x30
call qword [rax + 0xa0]
mov ebp, eax
mov rcx, rbx
call sub.oleaut32.dll_SysFreeString
mov rcx, r14
call sub.oleaut32.dll_SysFreeString
test ebp, ebp
js 0x14002a33e
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsi + 0x20]
mov rdx, qword [rsi + 0x28]
call fcn.140025fd6
mov qword [rsi + 0x20], 1
mov qword [rsi + 0x28], rbx
mov rax, qword [rsi + 0x30]
mov qword [rdi + 0x30], rax
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov rax, qword [rsi + 0x20]
mov qword [rdi + 0x20], rax
mov rax, qword [rsi + 0x28]
mov qword [rdi + 0x28], rax
jmp 0x14002a34d
mov qword [rdi], 2
mov rcx, rsi
call fcn.140025f5a
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x14002be24
Capabilities:
Parse pe header

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

Function at 0x14003025c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140030058
Function at 0x14003336c
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 0x14003339c
xor eax, eax
jmp 0x14003345f
mov rbp, rbx
cmp word [rax], si
je 0x1400333c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400333a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400333a4
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.14003328c
movsxd r14, eax
test eax, eax
jne 0x1400333ff
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x140033395
mov rcx, r14
call fcn.140030c5c
mov rdi, rax
test rax, rax
jne 0x140033418
xor ecx, ecx
call fcn.140030cbc
jmp 0x1400333f4
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.14003328c
test eax, eax
jne 0x140033449
mov rcx, rdi
call fcn.140030cbc
jmp 0x140033453
xor ecx, ecx
call fcn.140030cbc
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 0x1400368f0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14003235c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14003697a
cmp byte [rbp - 0x21], r15b
je 0x140036975
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400369b0
call fcn.1400349f8
test eax, eax
jne 0x14003699c
cmp byte [rbp - 0x21], r15b
je 0x140036994
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400369b0
cmp byte [rbp - 0x21], r15b
je 0x1400369ad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14003193c
test eax, eax
jne 0x140036a50
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003235c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400369ef
cmp byte [rbp - 0x21], r15b
je 0x140036a24
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140036a24
call fcn.1400349f8
test eax, eax
jne 0x140036a10
cmp byte [rbp - 0x21], r15b
je 0x140036a09
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140036a24
cmp byte [rbp - 0x21], r15b
je 0x140036a21
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14003193c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140036a50
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140036a53
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140036a61
mov rcx, rdi
call fcn.140030cbc
cmp byte [rbp + 0x3f], r15b
je 0x140036a70
mov rcx, qword [rbp + 0x27]
call fcn.140030cbc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400282c8
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 0x1400282fa
call fcn.14001b288
mov dword [rax], 0x16
call fcn.140017278
jmp 0x140028419
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140028419
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140028419
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140028329
lock or dword [rcx + 0x14], 0x10
jmp 0x140028419
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14002833d
call fcn.14002992c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140025204
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400290a8
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140028407
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400283d2
mov rcx, rsi
call fcn.140025204
cmp eax, edi
je 0x1400283bd
mov rcx, rsi
call fcn.140025204
cmp eax, 0xfffffffe
je 0x1400283bd
mov rcx, rsi
call fcn.140025204
movsxd rbx, eax
lea r14, [0x14004c460]
mov rcx, rsi
sar rbx, 6
call fcn.140025204
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400283c4
lea rdx, [0x14004a400]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400283d2
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400283f6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400283f6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400283f6
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 0x14002841c
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 0x140028744
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.140010f90
sub rsp, rax
mov rax, qword [0x14004a048]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140025204
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140028793
mov rax, rbp
jmp 0x14002889b
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 + 0x4c460]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140029880
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4c460]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140028897
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 0x140028897
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140029880
test rax, rax
js 0x140028897
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140028897
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140028889
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140028889
cmp byte [rcx], 0xd
jne 0x14002886f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002887e
cmp byte [rcx + 1], 0xa
jne 0x14002887e
inc rcx
jmp 0x14002887e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4a450]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140028851
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002889b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140011390
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 0x140028bfc
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, [0x14004c460]
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 0x140028c5a
cmp word [rdx], r12w
jne 0x140028c5a
or byte [rax + r8*8 + 0x38], cl
jmp 0x140028c60
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140028dbb
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140028d96
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140028c99
mov rcx, r9
jmp 0x140028cbc
cmp r9, rdx
jae 0x140028cd3
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 0x140028c7d
jmp 0x140028dbb
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 0x140028d90
cmp dword [rsp + 0x80], edi
je 0x140028d90
mov rdx, r14
lea r11, [0x14004c460]
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 0x140028d69
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140028d3c
mov word [rbx], r12w
jmp 0x140028db7
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 0x140028d45
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140028db7
cmp word [rsp + 0x70], r12w
jne 0x140028d76
cmp rbx, rsi
je 0x140028d36
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140029888
cmp word [rsp + 0x70], r12w
je 0x140028dbb
mov word [rbx], r13w
jmp 0x140028db7
lea r11, [0x14004c460]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140028db3
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140028dbb
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 0x14002b924
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 0x14002b954
xor eax, eax
jmp 0x14002ba17
mov rbp, rbx
cmp word [rax], si
je 0x14002b979
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002b960
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002b95c
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.14002a094
movsxd r14, eax
test eax, eax
jne 0x14002b9b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002b94d
mov rcx, r14
call fcn.140024064
mov rdi, rax
test rax, rax
jne 0x14002b9d0
xor ecx, ecx
call fcn.140023ddc
jmp 0x14002b9ac
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.14002a094
test eax, eax
jne 0x14002ba01
mov rcx, rdi
call fcn.140023ddc
jmp 0x14002ba0b
xor ecx, ecx
call fcn.140023ddc
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