joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007599c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14007599c
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
mov r14, r8
xor ecx, ecx
mov rdi, rdx
movabs r9, 0xcbf29ce484222325
movzx eax, byte [rcx + rdi]
movabs rdx, 0x100000001b3
xor r9, rax
inc rcx
imul r9, rdx
cmp rcx, 4
jb 0x1400759c6
movsxd rcx, dword [rbx]
xor edx, edx
mov rax, r9
div rcx
mov rax, qword [rbx + 8]
movsxd rsi, edx
mov rcx, qword [rax + rsi*8]
test rcx, rcx
je 0x140075a0e
mov eax, dword [rdi]
cmp dword [rcx + 8], eax
je 0x140075a10
mov rcx, qword [rcx]
test rcx, rcx
jne 0x140075a01
xor ecx, ecx
test rcx, rcx
jne 0x140075a5d
mov ecx, 0x10
call fcn.140002c52
mov qword [rsp + 0x30], rax
mov r8, rax
test rax, rax
je 0x140075a3f
and qword [rax], 0
mov eax, dword [rdi]
mov dword [r8 + 8], eax
mov eax, dword [r14]
mov dword [r8 + 0xc], eax
jmp 0x140075a42
xor r8d, r8d
mov rcx, qword [rbx + 8]
mov rax, r8
mov rdx, qword [rcx + rsi*8]
mov qword [r8], rdx
mov rcx, qword [rbx + 8]
mov qword [rcx + rsi*8], r8
inc dword [rbx + 4]
jmp 0x140075a5f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14007a4dc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14007a4dc
push rbx
sub rsp, 0x20
mov rbx, rdx
mov r11, rcx
movabs r9, 0xcbf29ce484222325
xor r10d, r10d
movzx eax, byte [r10 + rdx]
movabs rcx, 0x100000001b3
xor r9, rax
inc r10
imul r9, rcx
cmp r10, 8
jb 0x14007a4f5
movsxd rcx, dword [r11]
xor edx, edx
mov r10, qword [r11 + 8]
mov rax, r9
div rcx
movsxd r9, edx
xor edx, edx
mov rcx, qword [r10 + r9*8]
test rcx, rcx
je 0x14007a545
mov rax, qword [rbx]
cmp qword [rcx + 8], rax
je 0x14007a566
mov rdx, rcx
mov rcx, qword [rcx]
test rcx, rcx
jne 0x14007a534
xor ecx, ecx
test rcx, rcx
je 0x14007a57d
test r8, r8
je 0x14007a558
mov rdx, qword [rcx + 0x10]
mov qword [r8], rdx
mov edx, 0x18
call fcn.14000728e
mov al, 1
jmp 0x14007a57f
mov rax, qword [rcx]
test rdx, rdx
jne 0x14007a574
mov qword [r10 + r9*8], rax
jmp 0x14007a577
mov qword [rdx], rax
dec dword [r11 + 4]
jmp 0x14007a547
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14007dd64
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14007dd64
mov qword [rsp + 8], rbx
mov r11, rdx
mov rbx, rcx
movabs r9, 0xcbf29ce484222325
xor r10d, r10d
movzx eax, byte [r10 + rdx]
movabs rcx, 0x100000001b3
xor r9, rax
inc r10
imul r9, rcx
cmp r10, 8
jb 0x14007dd7c
movsxd rcx, dword [rbx]
xor edx, edx
mov rax, r9
div rcx
mov rax, qword [rbx + 8]
movsxd rcx, edx
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x14007ddc7
mov rcx, qword [r11]
cmp qword [rax + 8], rcx
je 0x14007ddc9
mov rax, qword [rax]
test rax, rax
jne 0x14007ddb9
xor eax, eax
test rax, rax
je 0x14007ddda
test r8, r8
je 0x14007ddda
mov rcx, qword [rax + 0x10]
mov qword [r8], rcx
mov rbx, qword [rsp + 8]
ret
Function at 0x14007df38
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14007df38
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
mov r14, r8
xor ecx, ecx
mov rdi, rdx
movabs r9, 0xcbf29ce484222325
movzx eax, byte [rcx + rdi]
movabs rdx, 0x100000001b3
xor r9, rax
inc rcx
imul r9, rdx
cmp rcx, 8
jb 0x14007df62
movsxd rcx, dword [rbx]
xor edx, edx
mov rax, r9
div rcx
mov rax, qword [rbx + 8]
movsxd rsi, edx
mov rcx, qword [rax + rsi*8]
test rcx, rcx
je 0x14007dfac
mov rax, qword [rdi]
cmp qword [rcx + 8], rax
je 0x14007dfae
mov rcx, qword [rcx]
test rcx, rcx
jne 0x14007df9e
xor ecx, ecx
test rcx, rcx
jne 0x14007dffc
mov ecx, 0x18
call fcn.140002c52
mov qword [rsp + 0x30], rax
mov r8, rax
test rax, rax
je 0x14007dfde
and qword [rax], 0
mov rax, qword [rdi]
mov qword [r8 + 8], rax
mov rax, qword [r14]
mov qword [r8 + 0x10], rax
jmp 0x14007dfe1
xor r8d, r8d
mov rcx, qword [rbx + 8]
mov rax, r8
mov rdx, qword [rcx + rsi*8]
mov qword [r8], rdx
mov rcx, qword [rbx + 8]
mov qword [rcx + rsi*8], r8
inc dword [rbx + 4]
jmp 0x14007dffe
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140097024
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140097024
mov qword [rsp + 8], rbx
xor r8d, r8d
mov r11, rdx
mov r10d, r8d
mov rbx, rcx
movabs r9, 0xcbf29ce484222325
movzx eax, byte [r10 + rdx]
movabs rcx, 0x100000001b3
xor r9, rax
inc r10
imul r9, rcx
cmp r10, 4
jb 0x14009703f
movsxd rcx, dword [rbx]
xor edx, edx
mov rax, r9
div rcx
mov rax, qword [rbx + 8]
movsxd rcx, edx
mov rdx, qword [rax + rcx*8]
test rdx, rdx
je 0x140097089
mov eax, dword [r11]
cmp dword [rdx + 8], eax
je 0x14009708c
mov rdx, qword [rdx]
test rdx, rdx
jne 0x14009707c
mov rdx, r8
mov rbx, qword [rsp + 8]
test rdx, rdx
setne al
ret

Function at 0x1400a2ac0
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400a2ac0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, [0x140135b50]
xor ecx, ecx
lea r8, [0x140135b48]
lea rdx, str.FlsAlloc
call fcn.1400a2520
mov rbx, rax
test rax, rax
je 0x1400a2b00
mov rcx, rax
call fcn.140004ae3
mov rcx, rdi
call rbx
jmp 0x1400a2b06
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400a2b94
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400a2b94
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140135b70]
mov ecx, 2
lea r8, [0x140135b68]
lea rdx, str.FlsGetValue
call fcn.1400a2520
mov rdi, rax
test rax, rax
je 0x1400a2bd5
mov rcx, rax
call fcn.140004ae3
mov ecx, ebx
call rdi
jmp 0x1400a2bdd
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a2c00
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400a2c00
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140135b80]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x140135b78]
call fcn.1400a2520
mov rsi, rax
test rax, rax
je 0x1400a2c4c
mov rcx, rax
call fcn.140004ae3
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x1400a2c57
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400e31f4
Capabilities:
Create thread

Disassembly:
jmp 0x1400e31f4
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov edi, edx
mov rsi, rcx
test r8, r8
jne 0x1400e3224
call fcn.1400053e4
mov dword [rax], 0x16
call fcn.140007b26
xor eax, eax
jmp 0x1400e32a4
mov rdx, r9
mov rcx, r8
call fcn.1400e2fa8
mov rbx, rax
test rax, rax
je 0x1400e3274
lea rax, [rsp + 0x50]
mov rdx, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x1400e2d34]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x1400e32b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140006e6f
xor edi, edi
test rbx, rbx
je 0x1400e32a1
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400e328a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400e3299
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140008bf7
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400e32c4
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
xor ebx, ebx
jmp 0x1400e3276
Function at 0x140107714
Capabilities:
Print debug messages

Disassembly:
jmp 0x140107714
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, r8d
mov rbp, rdx
mov rbx, rcx
call fcn.140005943
cmp eax, 2
sete dil
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140107761
test rbx, rbx
je 0x140107755
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test dil, dil
je 0x140107798
mov eax, 4
jmp 0x1401077a7
test dil, dil
je 0x140107798
call fcn.140001c6c
test al, al
je 0x140107798
call fcn.140008297
test al, al
jne 0x14010778e
bts esi, 0x15
xor ecx, ecx
mov rdx, rbx
mov r8, rbp
mov r9d, esi
call fcn.1400069a1
jmp 0x1401077a7
call fcn.140003774
mov rcx, rax
jmp 0x14010777e
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb eax, eax
neg eax
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140114540
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
movsxd r13, ecx
lea r10, [0x1401723a0]
mov rdi, r13
mov r15, r13
sar r15, 6
and edi, 0x3f
shl rdi, 6
mov r14, rdx
mov r9d, 0xa
mov rax, qword [r10 + r15*8]
mov rcx, qword [rax + rdi + 0x28]
mov qword [rsp + 0x98], rcx
test r8, r8
je 0x140114598
cmp word [rdx], r9w
jne 0x140114598
or byte [rax + rdi + 0x38], 4
jmp 0x14011459d
and byte [rax + rdi + 0x38], 0xfb
lea r12, [rdx + r8*2]
mov rsi, rdx
mov rbx, rdx
cmp rdx, r12
jae 0x140114753
lea rbp, [rdx + 2]
mov edx, 0xd
movzx eax, word [rsi]
cmp ax, 0x1a
je 0x140114735
cmp ax, dx
je 0x1401145df
mov word [rbx], ax
add rbx, 2
add rsi, 2
add rbp, 2
jmp 0x140114680
cmp rbp, r12
jae 0x140114605
cmp word [rbp], r9w
jne 0x140114600
add rsi, 4
mov word [rbx], r9w
add rbp, 4
add rbx, 2
jmp 0x140114680
mov word [rbx], dx
jmp 0x1401145ce
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
mov r8d, 2
lea rdx, [rsp + 0x80]
add rsi, 2
add rbp, 2
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140114719
cmp dword [rsp + 0x90], 0
je 0x140114719
lea r10, [0x1401723a0]
mov r9d, 0xa
mov rax, qword [r10 + r15*8]
test byte [rax + rdi + 0x38], 0x48
je 0x1401146ca
movzx eax, word [rsp + 0x80]
cmp ax, r9w
jne 0x14011468e
mov word [rbx], r9w
add rbx, 2
mov edx, 0xd
mov rcx, qword [rsp + 0x98]
cmp rsi, r12
jb 0x1401145b9
jmp 0x140114753
mov ecx, 0xd
mov word [rsp + 0x88], ax
mov word [rbx], cx
add rbx, 2
xor edx, edx
mov rcx, qword [r10 + r15*8]
mov al, byte [rsp + rdx + 0x88]
add rcx, rdi
mov byte [rcx + rdx + 0x3a], al
inc rdx
cmp rdx, 2
jl 0x1401146a4
mov rax, qword [r10 + r15*8]
mov byte [rax + rdi + 0x3c], r9b
jmp 0x140114673
cmp word [rsp + 0x80], r9w
jne 0x1401146da
cmp rbx, r14
je 0x14011466b
mov rdx, 0xfffffffffffffffe
mov ecx, r13d
lea r8d, [rdx + 3]
call fcn.1400097fa
mov r9d, 0xa
lea r10, [0x1401723a0]
cmp word [rsp + 0x80], r9w
je 0x140114673
lea edx, [r9 + 3]
mov word [rbx], dx
add rbx, 2
jmp 0x140114678
mov edx, 0xd
lea r10, [0x1401723a0]
mov word [rbx], dx
add rbx, 2
lea r9d, [rdx - 3]
jmp 0x140114678
mov rcx, qword [r10 + r15*8]
mov al, byte [rcx + rdi + 0x38]
test al, 0x40
jne 0x140114749
or al, 2
mov byte [rcx + rdi + 0x38], al
jmp 0x140114753
movzx ecx, word [rsi]
mov word [rbx], cx
add rbx, 2
sub rbx, r14
sar rbx, 1
lea rax, [rbx + rbx]
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400bbac0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10088
call fcn.1400e6ed0
sub rsp, rax
mov rax, qword [0x140126188]
xor rax, rsp
mov qword [rsp + 0x10070], rax
xor eax, eax
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.1400e1890
mov r8d, 0x10000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1400bbb3d
lea rcx, [rsp + 0x70]
call fcn.1400f9000
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.1400e6ea0
add rsp, 0x10088
ret
xor eax, eax
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.1400e6ea0
add rsp, 0x10088
ret

Function at 0x1400bbc20
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140126188]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rcx, [0x140107a78]
call fcn.1400bbac0
xor edi, edi
mov qword [0x14012d978], rax
lea rdx, [0x140107a78]
mov word [rsp + 0x20], di
lea rcx, [rsp + 0x20]
lea r8d, [rdi + 0x28]
call fcn.1400e1890
lea rdx, [0x140107a80]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, str.PYTHONHOME
call fcn.1400bbac0
mov cl, 1
mov qword [0x14012d980], rax
call fcn.1400e2b30
lea r8d, [rdi + 0x28]
mov word [rsp + 0x20], di
lea rdx, str.PYTHONHOME
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.1400e1890
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov cl, 1
call fcn.1400e2b30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov rax, qword [sym.imp.python39.dll__Py_path_config]
mov dword [rax + 0x30], 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400e6ea0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x1400bc1c0
Capabilities:
Set environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x140126188]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rsi, rdx
mov rbp, rcx
call fcn.1400cda90
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python39.dll_PyObject_GetAttrString]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.python39.dll_PyUnicode_FromString]
mov rdx, rsi
lea rcx, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.1400e1890
lea rcx, [rsp + 0x20]
test r14, r14
je 0x1400bc283
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, r14
call sub.python39.dll_PyUnicode_FromWideChar
mov r8, rax
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.python39.dll_PyObject_SetItem]
test eax, eax
je 0x1400bc271
mov ecx, 1
call qword [sym.imp.python39.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python39.dll_Py_Exit]
int3
sub qword [rsi], 1
jne 0x1400bc2a3
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x1400bc2a3
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.python39.dll_PyObject_DelItem]
test eax, eax
je 0x1400bc2a3
mov rcx, rbp
call fcn.1400590b0
sub qword [rdi], 1
jne 0x1400bc2b3
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
sub qword [rbx], 1
jne 0x1400bc2c3
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400e6ea0
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400e1940
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
test edx, edx
je 0x1400e1a04
mov r9d, edx
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r8]
lea r8, [r8 + 1]
xor eax, edx
mov edx, eax
and dl, 1
neg dl
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
sub r9, 1
jne 0x1400e1960
not eax
ret
Function at 0x1400e7918
Capabilities:
Parse pe header

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

Function at 0x1400ec8f8
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 0x1400ec763
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ec763
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ec763
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ec763
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ec763
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ec763
cmp dword [rcx + 0xf8], 0
je 0x1400ec763
mov ecx, ebx
call fcn.1400ec814
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.1400ec5f0
nop
cmp dword [rbp + 0x20], 0
je 0x1400ec7b1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400ec7bc
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400ec6f4
Function at 0x1400fe180
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 0x1400fe207
mov rsi, rbx
cmp word [rax], bp
je 0x1400fe1c6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400fe1b0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400fe1ac
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400f97ec
mov rdi, rax
test rax, rax
je 0x1400fe1f4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400e7c40
mov rbp, rdi
xor ecx, ecx
call fcn.1400fa334
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 0x140101920
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140101936
mov al, 1
jmp 0x140101996
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140101947
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140101994
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400fe4c8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140101994
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140101994
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140101994
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140101996
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x6d7d31f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f45e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d3378
mov rax, qword [0x6d7f45e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d323c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d32c5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d3220
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d33ad
mov rax, qword [0x6d7f45e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7f45e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d3390
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d32be
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d3320
add dword [0x6d7f45e4], 1
cmp edi, 8
jae 0x6d7d32f3
test dil, 4
jne 0x6d7d3364
test edi, edi
je 0x6d7d32e8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d337f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7d32e8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7d330c
jmp 0x6d7d32e8
add rsi, qword [0x6d7f45e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7d32be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7d32e8
xor esi, esi
jmp 0x6d7d3247
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d32e8
mov rax, qword [0x6d7f45e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7d3b00
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f48c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f48a0]
test rbx, rbx
je 0x6d7d3b54
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7d3b4b
test rsi, rsi
je 0x6d7d3b4b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d3b30
lea rcx, [0x6d7f48c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]