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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x10
call fcn.1400767bc
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1400c1c00]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.140085ca4
mov qword [rbx], rax
test rax, rax
je 0x1400c1be7
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x1400c22a0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x140105038]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x140117440], 0
je 0x1400c22e6
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140077cf0
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x140117418]
test rdi, rdi
je 0x1400c2387
test byte [0x140106f58], 1
je 0x1400c22c9
cmp byte [rdi + 0x17], 0
jns 0x1400c2308
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140117440], rax
inc rax
cmp rax, 1
ja 0x1400c22c9
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140079e10
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1400c2452
xor esi, esi
jmp 0x1400c22c9
mov ecx, 0x18
call fcn.1400767bc
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140079e10
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1400ed0e0]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.1400aa980
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x1400c23ee
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
jmp 0x1400c23f4
and eax, 0x7f
mov rcx, rdi
test rax, rax
jne 0x1400c241a
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.140032cb0
mov qword [0x140117418], rdi
jmp 0x1400c22f6
lea r8, [rax + rax]
test r8, r8
je 0x1400c23f9
lea rdx, [r8 - 2]
cmp word [rcx + r8 - 2], 0x5c
mov r8, rdx
jne 0x1400c241e
cmp rdx, 0xfffffffffffffffe
je 0x1400c23f9
sar rdx, 1
inc rdx
cmp rax, rdx
jb 0x1400c2519
mov rcx, rdi
call fcn.1400aaa90
jmp 0x1400c23f9
mov rdi, qword [0x140117418]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.140095fd0
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.140032990
mov rcx, qword [0x140117418]
call fcn.140030db0
cmp word [rax], 0x5c
je 0x1400c249f
mov rcx, qword [0x140117418]
lea rdx, [0x1400edd38]
mov r8d, 1
call fcn.140032cb0
mov rcx, qword [0x140117418]
lea rdx, str.debug.log
mov r8d, 9
call fcn.140032cb0
mov rcx, qword [0x140117418]
cmp byte [rcx + 0x17], 0
jns 0x1400c24c8
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140117440], rax
inc rax
cmp rax, 1
ja 0x1400c22c9
mov qword [0x140117440], 0
jmp 0x1400c2380
call fcn.14008b5d0
int3
Function at 0x1400c3fc0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x140105038]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x1400c403f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1400c4044
test bl, bl
je 0x1400c401b
cmp byte [rdi + 8], 0
je 0x1400c40a0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
mov edx, esi
call fcn.14003b650
mov sil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140077cf0
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rdi]
jmp 0x1400c3fed
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x1400c406c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400c4071
xor esi, esi
jmp 0x1400c4028
mov rcx, qword [rdi]
jmp 0x1400c4059
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rdi + 8], 0
je 0x1400c40a8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1400c401b
mov esi, dword [rsp + 0x24]
jmp 0x1400c401b
mov rcx, qword [rdi]
jmp 0x1400c4010
mov rcx, qword [rdi]
jmp 0x1400c4088
Function at 0x1400d5bf0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r14, rdx
mov rsi, rcx
mov rax, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
je 0x1400d5c2e
test rax, rax
je 0x1400d5ceb
mov rcx, qword [r14]
mov qword [rax], rcx
add rax, 8
mov qword [rsi + 8], rax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
sub rax, qword [rsi]
mov rbx, rax
sar rbx, 3
lea rcx, [rbx + 1]
mov rdx, rcx
shr rdx, 0x3d
jne 0x1400d5d17
movabs rdx, 0x1fffffffffffffff
lea rdi, [rsi + 0x18]
mov r15, rax
sar r15, 2
cmp r15, rcx
cmovbe r15, rcx
movabs rcx, 0x7ffffffffffffff8
cmp rax, rcx
cmovae r15, rdx
test r15, r15
jne 0x1400d5cde
xor eax, eax
shl rbx, 3
add rbx, rax
je 0x1400d5ceb
lea r15, [rax + r15*8]
mov rax, qword [r14]
mov qword [rbx], rax
lea r14, [rbx + 8]
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rdx
sub rbx, r8
mov rcx, rbx
call fcn.140079760
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
mov qword [rsi], rbx
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r15
test rdx, rdx
je 0x1400d5c22
sub r8, rdx
sar r8, 3
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1400d6250
mov rcx, rdi
mov rdx, r15
call fcn.1400d67d0
jmp 0x1400d5c7d
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1400a9eb0
call fcn.14008b5d0
int3

Function at 0x1400dd3f0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140105038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, rsi
jae 0x1400dd478
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x1400dd471
mov rdx, rcx
add rdi, rdx
cmp al, 1
jne 0x1400dd432
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140077cf0
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14000197c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400019c6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400019c6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400019c6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400019c6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400019c6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400019c8
xor al, al
add rsp, 0x28
ret
Function at 0x140001190
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov r8d, dword [rcx + 0x18]
mov edi, edx
and edi, 0xffffff
mov esi, edx
mov rbx, rcx
lea eax, [r8 + 1]
mov dword [rcx + 0x18], eax
mov eax, edx
shr eax, 0x1a
xor eax, r8d
test al, 7
je 0x1400011d4
lea rcx, [0x14003a198]
call fcn.140001020
xor ebp, ebp
bt esi, 0x19
jae 0x140001210
bt edi, 0xf
jb 0x1400011fc
mov eax, edi
and eax, 0xffff0000
cmp eax, 0x470000
je 0x1400011fc
lea rcx, [0x14003a1b8]
call fcn.140001020
cmp dword [rbx + 0x20], ebp
je 0x14000120d
lea rcx, str.MRn0
call fcn.140001020
mov dword [rbx + 0x20], ebp
mov ecx, dword [rbx + 0x20]
cmp ecx, 0xbc
jae 0x140001280
imul eax, dword [rbx + 0x1c], 0xbc
mov edx, edi
shr edx, 0x10
add ecx, eax
mov rax, qword [rbx + 8]
mov byte [rcx + rax], dl
inc dword [rbx + 0x20]
mov ecx, dword [rbx + 0x20]
cmp ecx, 0xbc
jae 0x140001280
imul eax, dword [rbx + 0x1c], 0xbc
mov edx, edi
shr edx, 8
add ecx, eax
mov rax, qword [rbx + 8]
mov byte [rcx + rax], dl
inc dword [rbx + 0x20]
mov ecx, dword [rbx + 0x20]
cmp ecx, 0xbc
jae 0x140001280
imul eax, dword [rbx + 0x1c], 0xbc
add ecx, eax
mov rax, qword [rbx + 8]
mov byte [rcx + rax], dil
inc dword [rbx + 0x20]
mov ecx, dword [rbx + 0x20]
cmp ecx, 0xbc
jb 0x1400012bd
inc dword [rbx + 0x1c]
cmp dword [rbx + 0x1c], 0x400
mov dword [rbx + 0x20], ebp
jb 0x1400012bd
mov rcx, qword [rbx + 0x10]
lea r9, [rsp + 0x48]
mov rdx, qword [rbx + 8]
mov r8d, 0x2f000
mov dword [rbx + 0x1c], ebp
mov qword [rsp + 0x20], rbp
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400012bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140004a60
Capabilities:
Parse pe header

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

Function at 0x14000a494
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 0x14000a2f3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a2f3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a2f3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a2f3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a2f3
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a2f3
cmp dword [rcx + 0xf8], 0
je 0x14000a2f3
mov ecx, ebx
call fcn.14000a3b0
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.14000a180
nop
cmp dword [rbp + 0x20], 0
je 0x14000a341
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000a34c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000a284
Function at 0x14001e7c8
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14001e7a5
call fcn.14001c5bc
mov dword [rax], 0x16
call fcn.14001a968
or eax, 0xffffffff
jmp 0x14001e7c2
sub dword [rcx + 0x10], 1
jns 0x14001e7b4
add rsp, 0x28
jmp 0x140027ffc
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14001e784
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 0x14002802e
call fcn.14001c5bc
mov dword [rax], 0x16
call fcn.14001a968
jmp 0x14002814d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002814d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14002814d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14002805d
lock or dword [rcx + 0x14], 0x10
jmp 0x14002814d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140028071
call fcn.140028170
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14001dc54
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14002d4b8
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14002813b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140028106
mov rcx, rsi
call fcn.14001dc54
cmp eax, edi
je 0x1400280f1
mov rcx, rsi
call fcn.14001dc54
cmp eax, 0xfffffffe
je 0x1400280f1
mov rcx, rsi
call fcn.14001dc54
movsxd rbx, eax
lea r14, [0x140040850]
mov rcx, rsi
sar rbx, 6
call fcn.14001dc54
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400280f8
lea rdx, [0x14003f2e0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140028106
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14002812a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14002812a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14002812a
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 0x140028150
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 0x1400220e0
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 0x140022110
xor eax, eax
jmp 0x1400221d3
mov rbp, rbx
cmp word [rax], si
je 0x140022135
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002211c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140022118
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.140022030
movsxd r14, eax
test eax, eax
jne 0x140022173
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140022109
mov rcx, r14
call fcn.14001aa84
mov rdi, rax
test rax, rax
jne 0x14002218c
xor ecx, ecx
call fcn.14001aa48
jmp 0x140022168
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.140022030
test eax, eax
jne 0x1400221bd
mov rcx, rdi
call fcn.14001aa48
jmp 0x1400221c7
xor ecx, ecx
call fcn.14001aa48
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 0x140028168
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x140027e8a
call fcn.14001c5bc
mov dword [rax], 0x16
call fcn.14001a968
jmp 0x140027fda
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140027fda
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140027fda
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140027eb9
lock or dword [rcx + 0x14], 0x10
jmp 0x140027fda
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140027ecd
call fcn.140028170
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x140027edd
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x140027ee0
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.14001dc54
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.14002d4b8
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140027fc8
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140027f73
mov rcx, rbx
call fcn.14001dc54
cmp eax, 0xffffffff
je 0x140027f5e
mov rcx, rbx
call fcn.14001dc54
cmp eax, 0xfffffffe
je 0x140027f5e
mov rcx, rbx
call fcn.14001dc54
movsxd rdi, eax
lea rsi, [0x140040850]
mov rcx, rbx
sar rdi, 6
call fcn.14001dc54
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140027f65
lea rdx, [0x14003f2e0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140027f73
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140027f97
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140027f97
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140027f97
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x140027fb5
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x140027fc0
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x140027fdf
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 + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x140027e54
Function at 0x14002b9d4
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.1400123d8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002ba5e
cmp byte [rbp - 0x21], r15b
je 0x14002ba59
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002ba94
call fcn.14001bd64
test eax, eax
jne 0x14002ba80
cmp byte [rbp - 0x21], r15b
je 0x14002ba78
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002ba94
cmp byte [rbp - 0x21], r15b
je 0x14002ba91
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.14001fe8c
test eax, eax
jne 0x14002bb34
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400123d8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002bad3
cmp byte [rbp - 0x21], r15b
je 0x14002bb08
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002bb08
call fcn.14001bd64
test eax, eax
jne 0x14002baf4
cmp byte [rbp - 0x21], r15b
je 0x14002baed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14002bb08
cmp byte [rbp - 0x21], r15b
je 0x14002bb05
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.14001fe8c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002bb34
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002bb37
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002bb45
mov rcx, rdi
call fcn.14001aa48
cmp byte [rbp + 0x3f], r15b
je 0x14002bb54
mov rcx, qword [rbp + 0x27]
call fcn.14001aa48
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 0x14002d00c
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, [0x140040850]
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 0x14002d06a
cmp word [rdx], r12w
jne 0x14002d06a
or byte [rax + r8*8 + 0x38], cl
jmp 0x14002d070
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14002d1cb
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14002d1a6
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14002d0a9
mov rcx, r9
jmp 0x14002d0cc
cmp r9, rdx
jae 0x14002d0e3
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 0x14002d08d
jmp 0x14002d1cb
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 0x14002d1a0
cmp dword [rsp + 0x80], edi
je 0x14002d1a0
mov rdx, r14
lea r11, [0x140040850]
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 0x14002d179
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14002d14c
mov word [rbx], r12w
jmp 0x14002d1c7
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 0x14002d155
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14002d1c7
cmp word [rsp + 0x70], r12w
jne 0x14002d186
cmp rbx, rsi
je 0x14002d146
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14002cf68
cmp word [rsp + 0x70], r12w
je 0x14002d1cb
mov word [rbx], r13w
jmp 0x14002d1c7
lea r11, [0x140040850]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14002d1c3
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14002d1cb
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