joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011ed0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov r9, rdx
xor r10d, r10d
sub r9, rcx
mov r8, rcx
mov eax, 0x51eb851f
mul r10d
shr edx, 4
movzx eax, dx
imul ecx, eax, 0x32
movzx eax, r10w
inc r10d
sub ax, cx
add ax, 0x33
xor ax, word [r9 + r8]
mov word [r8], ax
lea r8, [r8 + 2]
cmp r10d, 0x17
jl 0x140011edc
ret

Function at 0x140011f4c
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov r9, rdx
xor r10d, r10d
sub r9, rcx
mov r8, rcx
mov eax, 0x51eb851f
mul r10d
shr edx, 4
movzx eax, dx
imul ecx, eax, 0x32
movzx eax, r10w
inc r10d
sub ax, cx
add ax, 0x33
xor ax, word [r9 + r8]
mov word [r8], ax
lea r8, [r8 + 2]
cmp r10d, 6
jl 0x140011f58
ret

Function at 0x140012214
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov r9, rdx
xor r10d, r10d
sub r9, rcx
mov r8, rcx
mov eax, 0x51eb851f
mul r10d
shr edx, 4
movsx eax, dl
imul ecx, eax, 0x32
mov al, r10b
inc r10d
sub al, cl
add al, 0x33
xor al, byte [r9 + r8]
mov byte [r8], al
inc r8
cmp r10d, 0x3f
jl 0x140012220
ret
Function at 0x141bc7058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141bc71df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141bc7089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141bc706f
add dl, dl
jne 0x141bc7096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141bc70f6
xor eax, eax
add dl, dl
jne 0x141bc70a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141bc71ad
add dl, dl
jne 0x141bc70b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141bc70c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141bc70d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141bc70dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141bc70ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141bc707e
mov eax, 1
add dl, dl
jne 0x141bc7106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141bc7113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141bc70fb
sub eax, ebx
mov ebx, 1
jne 0x141bc714c
mov ecx, 1
add dl, dl
jne 0x141bc712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141bc713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141bc7123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141bc707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141bc7168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141bc7175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141bc715d
cmp eax, 0x7d00
jae 0x141bc719b
cmp eax, 0x500
jb 0x141bc7196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141bc707e
cmp eax, 0x7f
ja 0x141bc719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141bc707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141bc71d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141bc707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14003e3cf
Capabilities:
Parse pe header

Disassembly:
jmp 0x14008d098
xor r8d, r8d
xor edx, edx
jmp 0x14008cd88

Function at 0x14003ebb8
Capabilities:
Create thread
Get disk information

Disassembly:
jmp 0x140044a70
push rbp
push rdi
sub rsp, 0x2a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x6e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
lea rcx, [0x1400eb0f4]
call fcn.140041070
mov eax, dword [0x1400c4bf0]
mov dword [rbp + 4], eax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rbp + 0x24], eax
mov dword [rbp + 0x134], 0
mov dword [rbp + 0x154], 0
jmp 0x140044ad2
mov eax, dword [rbp + 0x154]
inc eax
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0x1a
jge 0x140044ba8
mov eax, dword [rbp + 0x154]
mov ecx, 1
mov dword [rbp + 0x264], ecx
movzx ecx, al
mov eax, dword [rbp + 0x264]
shl eax, cl
mov ecx, dword [rbp + 0x24]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x140044ba3
mov eax, dword [rbp + 0x154]
add eax, 0x41
mov ecx, 1
imul rcx, rcx, 0
mov byte [rbp + rcx + 4], al
lea rcx, [rbp + 4]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [rbp + 0x174], eax
cmp dword [rbp + 0x174], 3
je 0x140044b4b
cmp dword [rbp + 0x174], 2
je 0x140044b4b
cmp dword [rbp + 0x174], 4
jne 0x140044ba3
lea rdx, [rbp + 4]
lea rcx, [0x1400c4bf8]
call fcn.14003f716
lea rcx, [rbp + 4]
call fcn.140040f3f
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140040c74]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
movsxd rcx, dword [rbp + 0x134]
mov qword [rbp + rcx*8 + 0x50], rax
mov eax, dword [rbp + 0x134]
inc eax
mov dword [rbp + 0x134], eax
jmp 0x140044ac4
mov r9d, 0xffffffff
mov r8d, 1
lea rdx, [rbp + 0x50]
mov ecx, dword [rbp + 0x134]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [rbp + 0x194], 0
jmp 0x140044bde
mov eax, dword [rbp + 0x194]
inc eax
mov dword [rbp + 0x194], eax
mov eax, dword [rbp + 0x134]
cmp dword [rbp + 0x194], eax
jge 0x140044c00
movsxd rax, dword [rbp + 0x194]
mov rcx, qword [rbp + rax*8 + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140044bd0
lea rcx, [rbp - 0x30]
lea rdx, [0x1400c4b30]
call fcn.1400407d8
lea rsp, [rbp + 0x278]
pop rdi
pop rbp
ret
Function at 0x14003f2ac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400b75f4
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1400dd368]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x1400e0538]
xor r11d, r11d
lea rdi, [0x1400c6074]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x1400b7664
mov rax, 0xfffffffffffffffe
jmp 0x1400b77b1
cmp word [r10 + 6], r11w
jne 0x1400b76d3
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x1400b768e
test r14, r14
je 0x1400b767f
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x1400b77b1
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x1400b769c
mov r8b, 2
jmp 0x1400b76ba
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x1400b76aa
mov r8b, 3
jmp 0x1400b76ba
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x1400b77a6
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x1400b76fc
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x1400b77a6
cmp bl, bpl
jb 0x1400b77a6
cmp bl, r8b
jae 0x1400b77a6
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x1400b7729
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x1400b77a6
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x1400b770b
cmp r9, rbp
jae 0x1400b7755
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x1400b7658
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x1400b77a6
cmp edx, 0x110000
jae 0x1400b77a6
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x1400b77a6
test r14, r14
je 0x1400b7794
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.140040cfb
jmp 0x1400b77b1
mov rdx, rsi
mov rcx, r10
call fcn.1400413ae
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14003f798
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14003f301
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x140046b94
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140046c21
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140046c21
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140046c21
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140046c08
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140046c02
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140046c0a
add rdx, 0x28
jmp 0x140046be7
xor edx, edx
test rdx, rdx
jne 0x140046c13
xor al, al
jmp 0x140046c27
cmp dword [rdx + 0x24], 0
jge 0x140046c1d
xor al, al
jmp 0x140046c27
mov al, 1
jmp 0x140046c27
xor al, al
jmp 0x140046c27
add rsp, 0x18
ret
Function at 0x14003f8f1
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140055b5c
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1400c7038]
mov ecx, 2
lea r8, [0x1400c7030]
lea rdx, str.FlsGetValue
call fcn.14005562c
mov ecx, ebx
test rax, rax
je 0x140055b96
add rsp, 0x20
pop rbx
jmp qword [0x1400ec020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14003fa40
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400a5a58
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 0x1400a5a88
xor eax, eax
jmp 0x1400a5b4b
mov rbp, rbx
cmp word [rax], si
je 0x1400a5aad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a5a94
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a5a90
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.14004044f
movsxd r14, eax
test eax, eax
jne 0x1400a5aeb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400a5a81
mov rcx, r14
call fcn.14003e037
mov rdi, rax
test rax, rax
jne 0x1400a5b04
xor ecx, ecx
call fcn.14003e181
jmp 0x1400a5ae0
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.14004044f
test eax, eax
jne 0x1400a5b35
mov rcx, rdi
call fcn.14003e181
jmp 0x1400a5b3f
xor ecx, ecx
call fcn.14003e181
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 0x14003fa4f
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140055aac
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x1400c6ff8]
xor ecx, ecx
lea r8, [0x1400c6ff0]
lea rdx, str.FlsAlloc
call fcn.14005562c
test rax, rax
je 0x140055ae5
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1400ec020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x14003fac7
Capabilities:
Get geographical location

Disassembly:
jmp 0x140096f48
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x1400c8618]
mov rbp, rcx
lea r8, [0x1400c8610]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.140096468
test rax, rax
je 0x140096fa8
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1400ec030]
jmp 0x140096fc2
xor edx, edx
mov rcx, rbp
call fcn.14003f356
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14003fadb
Capabilities:
Terminate process

Disassembly:
jmp 0x140048430
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x14003fc20
Capabilities:
Parse pe header

Disassembly:
jmp 0x14008d02c
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14008cd88

Function at 0x1400400bc
Capabilities:
Clear file content

Disassembly:
jmp 0x1400b71f4
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.14003e7e4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14003e7e4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400b7344
cmp rax, 0xffffffffffffffff
je 0x1400b7344
xor edi, edi
test rbp, rbp
jle 0x1400b72ef
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140040bbb
mov rbx, rax
test rax, rax
jne 0x1400b727c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400b72e5
mov edx, 0x8000
mov ecx, r14d
call fcn.140040265
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.1400408b4
cmp eax, 0xffffffff
je 0x1400b72c5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400b728c
mov edx, r15d
mov ecx, r14d
call fcn.140040265
jmp 0x1400b72e5
cmp byte [rsi + 0x38], dil
je 0x1400b72dc
cmp dword [rsi + 0x34], 5
jne 0x1400b72dc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400b72e5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14003e181
jmp 0x1400b7358
jns 0x1400b7358
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14003e7e4
cmp rax, 0xffffffffffffffff
jne 0x1400b7310
cmp byte [rsi + 0x30], dil
je 0x1400b7358
mov edi, dword [rsi + 0x2c]
jmp 0x1400b7358
mov ecx, r14d
call fcn.14004122d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400b7358
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400b7358
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400b7351
mov eax, dword [rsi + 0x2c]
jmp 0x1400b7356
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14003e7e4
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 0x140040120
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140095754
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14009576e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.140040d05
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140040dfa
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140055bb4
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400c7058]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1400c7050]
call fcn.14005562c
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140055bf4
call qword [0x1400ec020]
jmp 0x140055bfa
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140040e90
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400b5974
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.14003f27f
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400b59fe
cmp byte [rbp - 0x21], r15b
je 0x1400b59f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400b5a34
call fcn.140041287
test eax, eax
jne 0x1400b5a20
cmp byte [rbp - 0x21], r15b
je 0x1400b5a18
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400b5a34
cmp byte [rbp - 0x21], r15b
je 0x1400b5a31
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.140041476
test eax, eax
jne 0x1400b5ad4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003f27f
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400b5a73
cmp byte [rbp - 0x21], r15b
je 0x1400b5aa8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400b5aa8
call fcn.140041287
test eax, eax
jne 0x1400b5a94
cmp byte [rbp - 0x21], r15b
je 0x1400b5a8d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400b5aa8
cmp byte [rbp - 0x21], r15b
je 0x1400b5aa5
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.140041476
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400b5ad4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400b5ad7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400b5ae5
mov rcx, rdi
call fcn.14003e181
cmp byte [rbp + 0x3f], r15b
je 0x1400b5af4
mov rcx, qword [rbp + 0x27]
call fcn.14003e181
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 0x140040f8f
Capabilities:
Parse pe header

Disassembly:
jmp 0x14008d01c
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 0x14008cdf7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14008cdf7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14008cdf7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14008cdf7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14008cdf7
cmp dword [rcx + 0x84], 0xe
jbe 0x14008cdf7
cmp dword [rcx + 0xf8], 0
je 0x14008cdf7
mov ecx, ebx
call fcn.14008cf60
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.14008cae0
nop
cmp dword [rbp + 0x20], 0
je 0x14008ce45
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14008ce80
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14008cd88

Function at 0x14005d818
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.14003e8b6
sub rsp, rax
mov rax, qword [0x1400dd368]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400410bb
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14005d867
mov rax, rbp
jmp 0x14005d96f
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 + 0xdfcc0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14003f12b
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xdfcc0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14005d96b
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 0x14005d96b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14003f12b
test rax, rax
js 0x14005d96b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14005d96b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14005d95d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14005d95d
cmp byte [rcx], 0xd
jne 0x14005d943
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14005d952
cmp byte [rcx + 1], 0xa
jne 0x14005d952
inc rcx
jmp 0x14005d952
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xdd740]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14005d925
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14005d96f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14003f798
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 0x14009aab8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400dfcc0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14009ab0f
cmp word [rdx], r13w
jne 0x14009ab0f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14009ab14
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14009ac39
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14009ac5a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14009ab4d
mov rdx, r9
mov word [rbx], cx
jmp 0x14009ab74
cmp r9, r8
jae 0x14009ab84
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14009ab2e
jmp 0x14009ac39
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14009ac2e
cmp dword [rsp + 0x80], esi
je 0x14009ac2e
lea r8, [0x1400dfcc0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14009ac06
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14009abd6
mov word [rbx], r13w
jmp 0x14009ac36
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14009abe3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14009ac36
cmp word [rsp + 0x70], r13w
jne 0x14009ac13
cmp rbx, r14
je 0x14009abd0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14003e7e4
cmp word [rsp + 0x70], r13w
je 0x14009ac39
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400dfcc0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14009ac33
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14009ac39