joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140225d40
Capabilities:
Check for software breakpoints

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1c0
mov ebp, r9d
mov r15d, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
test r8d, r8d
jle 0x140225daf
mov rbx, qword [rdi + 0x28]
test rbx, rbx
je 0x140225dea
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.140265fe0
mov rcx, rbx
mov rdx, rsi
mov r8d, r15d
mov r9d, ebp
add rsp, 0x1c0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.1401e6820
xor ebx, ebx
test r15d, r15d
js 0x140225dda
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.140265fe0
mov eax, ebx
add rsp, 0x1c0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rsi
call fcn.1402774d0
mov r15, rax
test r15d, r15d
je 0x140225db6
mov rbx, qword [rdi + 0x58]
test rbx, rbx
je 0x140225e25
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.140265fe0
mov rcx, rbx
mov rdx, rsi
mov r8d, r15d
mov r9d, ebp
add rsp, 0x1c0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.14022a1d0
mov r8, qword [rdi + 0x50]
test r8, r8
je 0x140225e88
cmp dword [r8 + 8], 0
je 0x140225e88
cmp ebp, 1
mov r9d, reloc.WS2_32.dll_shutdown
sbb r9d, 0
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.140227c10
cmp dword [rsp + 0x130], 0
je 0x140225e7e
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r8d, r15d
mov r9d, ebp
call fcn.14022a1d0
mov ebx, eax
mov rcx, rdi
call fcn.140228480
jmp 0x140225db6
lea rcx, [rsp + 0x38]
call fcn.140228480
xor r12d, r12d
test ebp, ebp
setne r12b
lea r14, [rsp + 0x34]
mov ebx, r15d
nop dword [rax]
movsxd rax, ebx
lea rcx, [rax - 1]
mov dword [rsp + 0x34], ecx
movzx r9d, byte [rsi + rax - 1]
test r9b, r9b
jns 0x140225ecb
mov byte [rsp + 0x20], 0xfd
mov rcx, rsi
xor edx, edx
mov r8, r14
call fcn.140239000
mov r9d, eax
mov rax, rdi
nop
mov rcx, qword [rax + 0x28]
test rcx, rcx
jne 0x140225f10
mov rdx, rax
mov rax, qword [rax + 0x58]
test rax, rax
jne 0x140225ed0
xor eax, eax
cmp r9d, 0x10ffff
jg 0x140225f19
mov rcx, qword [rdx + 0x10]
cmp dword [rcx], r9d
jg 0x140225f04
mov edx, dword [rdx + 0x1c]
lea eax, [rdx - 1]
cmp edx, 2
jge 0x140225f36
and al, 1
jmp 0x140225f19
mov rax, qword [rcx]
mov edx, r9d
call qword [rax + ioctlsocket]
movsx eax, al
cmp r12d, eax
jne 0x140225db6
mov ebx, dword [rsp + 0x34]
test ebx, ebx
jg 0x140225ea0
jmp 0x140225db6
lea r8d, [rdx - 2]
cmp dword [rcx + r8*4], r9d
jle 0x140225f04
cmp edx, 2
je 0x140225f04
mov r8d, eax
shr r8d, 1
xor edx, edx
jmp 0x140225f5f
mov edx, r8d
lea r8d, [rax + rdx]
sar r8d, 1
cmp r8d, edx
je 0x140225f04
movsxd r10, r8d
cmp dword [rcx + r10*4], r9d
jle 0x140225f50
mov eax, r8d
jmp 0x140225f53
Function at 0x140231c10
Capabilities:
Inspect section memory permissions

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rax, qword [rsp + 0x50]
mov qword [rcx + 8], r8
mov ecx, dword [r8]
mov dword [rsi + 0x20], ecx
lea r10, [0x1403800a8]
mov qword [rsi + 0x10], r10
test r9d, r9d
js 0x140231c64
mov r10d, r9d
shr r10d, 2
mov r11d, 6
cmp byte [rdx], 1
jne 0x140231c5b
xor r11d, r11d
cmp byte [rdx + 1], 0
setne r11b
lea r11d, [r11 + r11*4]
inc r11d
cmp r10d, r11d
jb 0x140231d86
mov r10d, ecx
and r10d, 0xf0000000
cmp r10d, 0x20000000
je 0x140231c89
and ecx, 0xe0000000
cmp ecx, 0x40000000
jne 0x140231d86
movzx r10d, byte [rdx]
cmp r10b, 1
jne 0x140231c9d
cmp byte [rdx + 1], 0
je 0x140231d41
movzx ecx, byte [r8 + 4]
cmp ecx, 4
jbe 0x140231d86
test r9d, r9d
js 0x140231cd2
lea r11d, [rcx*4 + 4]
cmp r11d, r9d
ja 0x140231d86
mov r11d, dword [r8 + 0x10]
shl r11d, 2
cmp r11d, r9d
jg 0x140231d86
mov r9d, dword [r8 + 8]
lea r11d, [rcx + 1]
cmp r9d, r11d
jg 0x140231d4e
cmp r10b, 3
jae 0x140231d60
cmp ecx, 6
jb 0x140231d73
mov r9d, dword [r8 + 0x18]
mov edx, r9d
and dl, 1
mov byte [rsi + 0x38], dl
mov r10d, r9d
shr r10b, 1
mov edx, r9d
shr dl, 2
and dl, 1
mov r11d, r9d
shl r11d, 0xc
and r11d, 0xf000000
or dword [rsi + 0x30], r11d
shr r9d, 0x10
and r10b, 1
mov byte [rsi + 0x39], r10b
mov byte [rsi + 0x3a], dl
mov dword [rsi + 0x34], r9d
jne 0x140231d81
test dl, dl
je 0x140231d3a
cmp ecx, 8
jb 0x140231d86
cmp ecx, 7
jb 0x140231d48
jmp 0x140231da6
mov dword [rsi + 0x24], 0x10000
mov byte [rsi + 0x3b], 1
jmp 0x140231da0
shl r9d, 2
mov dword [rsi + 0x24], r9d
movzx r10d, byte [rdx]
cmp r10b, 3
jb 0x140231ce5
mov edx, dword [r8 + 4]
shr edx, 8
mov dword [rsi + 0x30], edx
cmp ecx, 6
jae 0x140231cee
cmp byte [rsi + 0x39], 0
jne 0x140231d86
cmp byte [rsi + 0x3a], 0
jne 0x140231d86
jmp 0x140231d48
cmp ecx, 7
ja 0x140231da6
mov dword [rax], 3
mov rcx, qword [rsi]
test rcx, rcx
je 0x140231da0
call fcn.140211c90
mov qword [rsi], 0
add rsp, 0x20
pop rsi
ret
movsxd rax, dword [r8 + 8]
cmp dword [r8 + 0x1c], eax
jle 0x140231d48
lea rax, [r8 + rax*4]
mov qword [rsi + 0x10], rax
jmp 0x140231d48
Function at 0x140248340
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14039ddc0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140248368
cmp byte [rax + 8], 0
jne 0x140248372
mov rcx, rax
call fcn.14006e790
test rax, rax
jne 0x140248372
call fcn.140195d30
test rax, rax
je 0x14024837e
mov rcx, rax
add rsp, 0x28
jmp fcn.140195b60
nop
add rsp, 0x28
ret

Function at 0x140248390
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14039ddc0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1402483b8
cmp byte [rax + 8], 0
jne 0x1402483c2
mov rcx, rax
call fcn.14006e790
test rax, rax
jne 0x1402483c2
call fcn.140195d30
test rax, rax
je 0x1402483ce
mov rcx, rax
add rsp, 0x28
jmp fcn.140195b70
nop
add rsp, 0x28
ret

Function at 0x14024ab80
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [0x1403a6ee0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 8]
test rax, rax
je 0x14024abc5
mov ecx, 0x230
add rcx, qword [rax + 0x728]
jmp 0x14024abd9
mov ecx, dword [0x14039fd78]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
test rax, rax
je 0x14024ac19
movabs rax, 0x7ffffffffffffff8
cmp rsi, rax
jge 0x14024ac32
add rsi, 7
and rsi, 0xfffffffffffffff8
mov rdi, qword [rcx]
mov rax, qword [rcx + 8]
sub rax, rdi
cmp rax, rsi
jge 0x14024ac0c
mov rdx, rsi
call fcn.1401d09d0
mov rdi, rax
jmp 0x14024ac1b
lea rax, [rdi + rsi]
mov qword [rcx], rax
add qword [rcx + 0x10], rsi
jmp 0x14024ac1b
xor edi, edi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140265fe0
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rax, str..._.._runtime_vm_zone.h
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0x107
lea rdx, str.Zone::Alloc:_size_is_too_large:_size_lld
lea rcx, [rsp + 0x20]
mov r8, rsi
call fcn.1400235e0
int3

Function at 0x1402642b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x14039ddc0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1402642dc
cmp byte [rax + 8], 0
jne 0x1402642e6
mov rcx, rax
call fcn.14006e790
test rax, rax
jne 0x1402642e6
call fcn.140195d30
test rax, rax
je 0x1402642f6
mov rcx, rax
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140195ae0
nop
add rsp, 0x20
pop rsi
ret
Function at 0x1402774d0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x1402774ed
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140277548
test al, 7
jne 0x1402774e0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140277501
mov rdx, qword [rax - 8]
test dl, dl
je 0x140277572
test dh, dh
je 0x14027756c
shr rdx, 0x10
test dl, dl
je 0x140277566
test dh, dh
je 0x140277560
shr rdx, 0x10
test dl, dl
je 0x14027755a
test dh, dh
je 0x140277554
shr edx, 0x10
test dl, dl
je 0x14027754e
test dh, dh
jne 0x140277501
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret
Function at 0x14027ab70
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, [0x1403a7a90]
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 0x14027abce
cmp word [rdx], r12w
jne 0x14027abce
or byte [rax + r8*8 + 0x38], cl
jmp 0x14027abd4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14027ad2f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14027ad0a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14027ac0d
mov rcx, r9
jmp 0x14027ac30
cmp r9, rdx
jae 0x14027ac47
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 0x14027abf1
jmp 0x14027ad2f
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 0x14027ad04
cmp dword [rsp + 0x80], edi
je 0x14027ad04
mov rdx, r14
lea r11, [0x1403a7a90]
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 0x14027acdd
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14027acb0
mov word [rbx], r12w
jmp 0x14027ad2b
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 0x14027acb9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14027ad2b
cmp word [rsp + 0x70], r12w
jne 0x14027acea
cmp rbx, rsi
je 0x14027acaa
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1402787e0
cmp word [rsp + 0x70], r12w
je 0x14027ad2f
mov word [rbx], r13w
jmp 0x14027ad2b
lea r11, [0x1403a7a90]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14027ad27
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14027ad2f
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 0x14027ea0c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x140387c40]
mov rbp, rcx
call fcn.14029161c
xor edi, edi
test rax, rax
je 0x14027eaf2
mov ebx, edi
call fcn.140278958
mov r14d, dword [rax]
call fcn.140278958
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.140291568
mov rsi, rax
test rax, rax
je 0x14027ea83
call fcn.140278958
mov dword [rax], r14d
jmp 0x14027eaad
call fcn.140278958
cmp dword [rax], 0x22
jne 0x14027eaea
call fcn.140278958
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140291568
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14027eaea
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14027eab1
cmp rax, 3
je 0x14027eacc
mov rcx, rsi
call fcn.14027e968
test al, al
je 0x14027eadd
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14027eadd
mov dil, 1
mov rcx, rbx
call fcn.14026e508
mov al, dil
jmp 0x14027eaf4
mov rcx, rbx
call fcn.14026e508
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140265fe0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140285058
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140285078
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1402788cc
or eax, 0xffffffff
jmp 0x14028507a
xor eax, eax
add rsp, 0x28
ret

Function at 0x14028b700
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14028b4f0
Function at 0x14028f90c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1402787e0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1402787e0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14028fa5c
cmp rax, 0xffffffffffffffff
je 0x14028fa5c
xor edi, edi
test rbp, rbp
jle 0x14028fa07
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14028ecec
mov rbx, rax
test rax, rax
jne 0x14028f994
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14028f9fd
mov edx, 0x8000
mov ecx, r14d
call fcn.140284cd4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14027c8cc
cmp eax, 0xffffffff
je 0x14028f9dd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14028f9a4
mov edx, r15d
mov ecx, r14d
call fcn.140284cd4
jmp 0x14028f9fd
cmp byte [rsi + 0x38], dil
je 0x14028f9f4
cmp dword [rsi + 0x34], 5
jne 0x14028f9f4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14028f9fd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14028ca28
jmp 0x14028fa70
jns 0x14028fa70
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1402787e0
cmp rax, 0xffffffffffffffff
jne 0x14028fa28
cmp byte [rsi + 0x30], dil
je 0x14028fa70
mov edi, dword [rsi + 0x2c]
jmp 0x14028fa70
mov ecx, r14d
call fcn.140284ae8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14028fa70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x14028fa70
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14028fa69
mov eax, dword [rsi + 0x2c]
jmp 0x14028fa6e
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1402787e0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140290f6c
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 0x140290f9e
call fcn.140278958
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140278e0c
jmp 0x1402910bd
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1402910bd
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1402910bd
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140290fcd
lock or dword [rcx + 0x14], 0x10
jmp 0x1402910bd
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140290fe1
call fcn.1402964dc
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1402843b4
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14027b01c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1402910ab
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140291076
mov rcx, rsi
call fcn.1402843b4
cmp eax, edi
je 0x140291061
mov rcx, rsi
call fcn.1402843b4
cmp eax, 0xfffffffe
je 0x140291061
mov rcx, rsi
call fcn.1402843b4
movsxd rbx, eax
lea r14, [0x1403a7a90]
mov rcx, rsi
sar rbx, 6
call fcn.1402843b4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140291068
lea rdx, [0x1403a0380]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140291076
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14029109a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14029109a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14029109a
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 0x1402910c0
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 0x14029111c
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1402910f9
call fcn.140278958
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140278e0c
or eax, 0xffffffff
jmp 0x140291116
sub dword [rcx + 0x10], 1
jns 0x140291108
add rsp, 0x28
jmp fcn.140290f6c
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1402910d8
Function at 0x140293b7c
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 0x140293bac
xor eax, eax
jmp 0x140293c6f
mov rbp, rbx
cmp word [rax], si
je 0x140293bd1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140293bb8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140293bb4
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.14028f768
movsxd r14, eax
test eax, eax
jne 0x140293c0f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140293ba5
mov rcx, r14
call fcn.14028ca64
mov rdi, rax
test rax, rax
jne 0x140293c28
xor ecx, ecx
call fcn.14028ca28
jmp 0x140293c04
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.14028f768
test eax, eax
jne 0x140293c59
mov rcx, rdi
call fcn.14028ca28
jmp 0x140293c63
xor ecx, ecx
call fcn.14028ca28
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 0x140293c8c
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 0x140293d13
mov rsi, rbx
cmp word [rax], bp
je 0x140293cd2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140293cbc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140293cb8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14028ca64
mov rdi, rax
test rax, rax
je 0x140293d00
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1402689f0
mov rbp, rdi
xor ecx, ecx
call fcn.14028ca28
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
Function at 0x140297e9c
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.140277a00
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140297f26
cmp byte [rbp - 0x21], r15b
je 0x140297f21
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140297f5c
call fcn.14028efd4
test eax, eax
jne 0x140297f48
cmp byte [rbp - 0x21], r15b
je 0x140297f40
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140297f5c
cmp byte [rbp - 0x21], r15b
je 0x140297f59
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.1402776fc
test eax, eax
jne 0x140297ffc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140277a00
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140297f9b
cmp byte [rbp - 0x21], r15b
je 0x140297fd0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140297fd0
call fcn.14028efd4
test eax, eax
jne 0x140297fbc
cmp byte [rbp - 0x21], r15b
je 0x140297fb5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140297fd0
cmp byte [rbp - 0x21], r15b
je 0x140297fcd
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.1402776fc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140297ffc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140297fff
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14029800d
mov rcx, rdi
call fcn.14028ca28
cmp byte [rbp + 0x3f], r15b
je 0x14029801c
mov rcx, qword [rbp + 0x27]
call fcn.14028ca28
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 0x140002511
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
push rax
push rax
sub rsp, 0x28
push 0x400
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140005ec0
add rsp, 0x20
mov qword [rsp + 0x28], rax
push qword [0x14000eb60]
add rsp, 0xfffffffffffffff8
push qword [0x14000eb60]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140008b08
add rsp, 0x28
lea rcx, [rsp + 0x38]
pop rdx
call fcn.14000a890
push qword [rsp + 0x28]
push 0
movabs rax, 0x14000d00d
push rax
push qword [rsp + 0x48]
pop rcx
pop rdx
pop r8
pop r9
add rsp, 0xffffffffffffffe0
call sub.KERNEL32.dll_GetTempFileNameA
add rsp, 0x20
push qword [0x14000eb60]
add rsp, 0xfffffffffffffff8
push qword [0x14000eb60]
push qword [rsp + 0x40]
pop rcx
pop rdx
add rsp, 0xffffffffffffffe0
call fcn.140005ee0
add rsp, 0x28
lea rcx, [0x14000e620]
pop rdx
call fcn.14000a890
push qword [rsp + 0x28]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140005f60
add rsp, 0x20
push qword [0x14000e620]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140008a44
add rsp, 0x20
push qword [0x14000e620]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140008ba0
add rsp, 0x20
push qword [0x14000eb60]
add rsp, 0xfffffffffffffff8
push qword [0x14000eb60]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140008930
add rsp, 0x28
lea rcx, [0x14000e618]
pop rdx
call fcn.14000a890
push qword [rsp + 0x50]
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140005f80
add rsp, 0x20
mov rax, rax
push rax
xor r15, r15
cmp r15, qword [rsp]
jne 0x14000267c
mov rcx, qword [0x14000e620]
push qword [0x14000eb60]
add rsp, 0xffffffffffffffe0
call fcn.14000a9b0
add rsp, 0x20
lea rcx, [0x14000e618]
pop rdx
add rsp, 0xffffffffffffffd8
call fcn.14000a890
add rsp, 0x28
mov qword [rsp + 0x40], 2
jmp 0x140002692
mov r15, 1
cmp r15, qword [rsp]
jne 0x140002692
mov qword [rsp + 0x40], 1
pop rax
mov r15, qword [rsp + 0x50]
add r15, qword [rsp + 0x38]
mov rax, r15
push rax
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140005f80
add rsp, 0x20
mov qword [0x14000e608], rax
mov r15, qword [rsp + 0x50]
add r15, qword [rsp + 0x38]
inc r15
mov rax, r15
push rax
pop rcx
add rsp, 0xffffffffffffffe0
call fcn.140005f80
add rsp, 0x20
mov qword [0x14000e610], rax
mov rax, 1
jmp 0x1400026e8
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x20
call fcn.14000aa20
add rsp, 0x20
pop rax
add rsp, 0x40
pop r15
ret