joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140275c9c
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 0x140275ccc
xor eax, eax
jmp 0x140275d8f
mov rbp, rbx
cmp word [rax], si
je 0x140275cf1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140275cd8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140275cd4
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.140275bbc
movsxd r14, eax
test eax, eax
jne 0x140275d2f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140275cc5
mov rcx, r14
call fcn.14026cd18
mov rdi, rax
test rax, rax
jne 0x140275d48
xor ecx, ecx
call fcn.14026ccdc
jmp 0x140275d24
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.140275bbc
test eax, eax
jne 0x140275d79
mov rcx, rdi
call fcn.14026ccdc
jmp 0x140275d83
xor ecx, ecx
call fcn.14026ccdc
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 0x140275dac
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 0x140275e33
mov rsi, rbx
cmp word [rax], bp
je 0x140275df2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140275ddc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140275dd8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14026cd18
mov rdi, rax
test rax, rax
je 0x140275e20
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14027dfb0
mov rbp, rdi
xor ecx, ecx
call fcn.14026ccdc
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 0x140278b84
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14026e59c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140278c25
cmp ebx, dword [rsp + 0x30]
je 0x140278c1e
test esi, esi
je 0x140278c1e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140278bf9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140278c06
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140278be3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140278c0a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140278c27
mov eax, 1
jmp 0x140278c27
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14027c718
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1403e4f00]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14027c762
call fcn.14025c6bc
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14025c6dc
mov dword [rax], ntohs
call fcn.14025744c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140249860
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14027c76d
lea eax, [rbx + 1]
jmp 0x14027c74f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14027c74d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14027c74f
Function at 0x14027c7dc
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.14025a13c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14027c866
cmp byte [rbp - 0x21], r15b
je 0x14027c861
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14027c89c
call fcn.14026f148
test eax, eax
jne 0x14027c888
cmp byte [rbp - 0x21], r15b
je 0x14027c880
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14027c89c
cmp byte [rbp - 0x21], r15b
je 0x14027c899
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.140266428
test eax, eax
jne 0x14027c93c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14025a13c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14027c8db
cmp byte [rbp - 0x21], r15b
je 0x14027c910
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14027c910
call fcn.14026f148
test eax, eax
jne 0x14027c8fc
cmp byte [rbp - 0x21], r15b
je 0x14027c8f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14027c910
cmp byte [rbp - 0x21], r15b
je 0x14027c90d
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.140266428
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14027c93c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14027c93f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14027c94d
mov rcx, rdi
call fcn.14026ccdc
cmp byte [rbp + 0x3f], r15b
je 0x14027c95c
mov rcx, qword [rbp + 0x27]
call fcn.14026ccdc
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 0x14027d670
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.1402713f0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1402713f0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14027d7c0
cmp rax, 0xffffffffffffffff
je 0x14027d7c0
xor edi, edi
test rbp, rbp
jle 0x14027d76b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14026edb0
mov rbx, rax
test rax, rax
jne 0x14027d6f8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14027d761
mov edx, 0x8000
mov ecx, r14d
call fcn.140267758
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.14026bdc0
cmp eax, 0xffffffff
je 0x14027d741
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14027d708
mov edx, r15d
mov ecx, r14d
call fcn.140267758
jmp 0x14027d761
cmp byte [rsi + 0x38], dil
je 0x14027d758
cmp dword [rsi + 0x34], 5
jne 0x14027d758
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
cmp byte [rsi + 0x30], dil
je 0x14027d761
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14026ccdc
jmp 0x14027d7d4
jns 0x14027d7d4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1402713f0
cmp rax, 0xffffffffffffffff
jne 0x14027d78c
cmp byte [rsi + 0x30], dil
je 0x14027d7d4
mov edi, dword [rsi + 0x2c]
jmp 0x14027d7d4
mov ecx, r14d
call fcn.140274824
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14027d7d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, ntohs
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
jmp 0x14027d7d4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14027d7cd
mov eax, dword [rsi + 0x2c]
jmp 0x14027d7d2
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1402713f0
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 0x14027de10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14027de38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14027de38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001220
Capabilities:
Enumerate gui resources
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
mov qword [0x1400066c8], 0
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000136b
nop
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.140001a70
cmp qword [rdi + 0x18], 8
mov rcx, rdi
jb 0x14000129c
mov rcx, qword [rdi]
cmp qword [rax + 0x18], 8
mov r8, rax
jb 0x1400012a9
mov r8, qword [rax]
mov rdx, qword [rax + 0x10]
cmp rdx, qword [rdi + 0x10]
jne 0x1400012d8
test rdx, rdx
je 0x1400012d4
sub r8, rcx
nop dword [rax + rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x1400012d8
add rcx, 2
sub rdx, 1
jne 0x1400012c0
mov bl, 1
jmp 0x1400012da
xor bl, bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140001318
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001313
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001392
call fcn.140002338
test bl, bl
je 0x140001355
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [rsp + 0x48]
lea rcx, [0x1400011c0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [0x1400066c8]
test rcx, rcx
je 0x140001355
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x140001399
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001280
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140002040
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov eax, dword [rsp + 0x48]
jmp 0x14000136d
Function at 0x140005a10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140005aa0
cmp r11, r10
ja 0x140005b16
cmp r10, rdx
ja 0x140005b28
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140005aa2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140005a80
jmp 0x140005b04
ja 0x140005aaa
mov r11, r10
cmp rax, r8
jne 0x140005a44
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140005ae0
mov rdi, r8
sub ecx, edx
jns 0x140005afb
jmp 0x140005b06
cmp r8, rsi
je 0x140005b37
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140005b06
xor al, 1
cmp rdi, rsi
jne 0x140005ac0
jmp 0x140005b06
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140019100
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140018e90
lea rcx, str.called__Option::unwrap____on_a__None__value__
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140018f10
int3
Function at 0x14000a3a0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.1400034c0
cmp rax, rcx
je 0x14000a3c5
cmp rdx, 4
jae 0x14000a3c8
xor eax, eax
xor r8d, r8d
jmp 0x14000a460
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14001a3e0]
movdqa xmm3, xmmword [0x14001a3f0]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000a3f0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000a477
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000a460
ret
Function at 0x140011b70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
movzx r9d, byte [rdx + 0x38]
movzx eax, byte [rdx + 0x3a]
test al, al
setne r8b
cmp r9b, 1
ja 0x140011be4
test al, al
jne 0x140011bc9
movzx esi, byte [rdx + 0x10]
lea eax, [rsi - 5]
cmp al, 1
ja 0x140011bc9
mov r10, qword [rdx]
mov rax, qword [rdx + 8]
xor r11d, r11d
test r9b, r9b
jne 0x140011bc0
cmp sil, 6
je 0x140011bc0
mov r11d, 2
cmp rax, 2
jb 0x140011dcd
cmp r11, rax
jne 0x140011d17
xor eax, eax
xor r8d, r8d
xor eax, eax
xor r10d, r10d
add rax, r10
lea rsi, [r10 + r11]
inc rsi
cmp rsi, rax
sete al
movzx r10d, byte [r10 + r11]

Function at 0x140018880
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [section..rdata]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x14001f010]
mov dword [rax], 1
mov rax, qword [0x14001f020]
mov dword [rax], 1
mov rax, qword [0x14001f030]
mov dword [rax], 1
mov rax, qword [0x14001f040]
cmp word [rax], 0x5a4d
je 0x1400010b0
mov rax, qword [0x14001f050]
mov dword [0x1400270f8], edx
mov eax, dword [rax]
test eax, eax
je 0x1400010a0
mov ecx, 2
call sub.msvcrt.dll___set_app_type
call sym.__p__fmode
mov rdx, qword [0x14001f060]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14001f070]
cmp dword [rax], 1
je 0x1400010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sub.msvcrt.dll___set_app_type
jmp 0x140001075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x140001103
cmp cx, 0x20b
jne 0x140001058
cmp dword [rax + 0x84], 0xe
jbe 0x140001058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x140001058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x140001058
Function at 0x14000eed0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp - 0x28], rdx
mov r15, rcx
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
mov eax, dword [0x140027820]
cmp dword [0x140027824], 0xa
setl cl
lea edx, [rax + 1]
imul edx, eax
test dl, 1
sete al
or al, cl
mov byte [rbp + 7], al
mov cl, byte [rbp + 7]
mov cl, byte [rbp + 7]
mov byte [rbp + 6], al
mov al, byte [rbp + 7]
mov r14d, 0x1e27
mov r12d, dword [rbp - 0x20]
xor r12d, r14d
mov dword [rbp - 0x20], r12d
mov edi, dword [rbp - 0x18]
xor edi, r14d
mov dword [rbp - 0x18], edi
mov ebx, dword [rbp - 0x14]
xor ebx, r14d
mov dword [rbp - 0x14], ebx
mov dword [rbp - 0x10], 0x1e27
mov r13d, r8d
mov eax, 0x2e15
mov cl, 1
mov dword [rbp], ecx
mov dword [rbp - 4], 0
mov esi, r14d
xor esi, 0x601c
nop word [rax + rax]
cmp eax, 0x7793
jg 0x14000ef90
cmp eax, 0x28d2
je 0x14000f0a1
cmp eax, 0x2e15
jne 0x14000ef70
jmp 0x14000f060
cmp eax, 0x7794
je 0x14000f01b
cmp eax, 0x7e1d
jne 0x14000ef70
mov eax, 0x10
call fcn.14001cf30
sub rsp, rax
mov r9, rsp
sub rsp, 0x20
mov rcx, r15
mov rdx, r13
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, r15
mov rdx, qword [rbp - 0x28]
mov r8, r13
call sub.ntdll.dll_memcpy
add rsp, 0x20
mov eax, dword [0x140027828]
lea ecx, [rax + 1]
imul ecx, eax
mov eax, ebx
xor eax, 0x52f6
cmp byte [rbp - 4], 0
cmove ebx, eax
test cl, 1
mov eax, 0x6995
mov ecx, 0x36d3
cmove eax, ecx
cmp dword [0x14002782c], 0xa
cmovl eax, ecx
xor eax, edi
mov cl, 1
mov dword [rbp - 4], ecx
jmp 0x14000ef70
mov eax, 0x10
call fcn.14001cf30
sub rsp, rax
mov r9, rsp
sub rsp, 0x20
mov rcx, r15
mov rdx, r13
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, r15
mov rdx, qword [rbp - 0x28]
mov r8, r13
call sub.ntdll.dll_memcpy
add rsp, 0x20
mov eax, esi
jmp 0x14000ef70
mov eax, edi
xor eax, 0x26
mov ecx, ebx
xor ecx, 0x26
mov edx, r14d
xor edx, 0x26
test byte [rbp], 1
cmovne ebx, ecx
cmovne edi, eax
cmovne r14d, edx
mov al, byte [rbp + 7]
cmp byte [rbp + 6], 0
mov eax, 0x69b3
mov ecx, 0x603a
cmovne eax, ecx
xor eax, r12d
mov dword [rbp], 0
jmp 0x14000ef5e
mov dword [rbp - 0x10], r14d
mov dword [rbp - 0x18], edi
mov dword [rbp - 0x14], ebx
lea rsp, [rbp + 8]
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14000ff90
Capabilities:
Link many functions at runtime

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [0x1400278c0]
mov ecx, dword [0x1400278c4]
cmp ecx, 9
setg dl
cmp ecx, 0xa
setl cl
lea ebp, [rax + rax]
add ebp, eax
add ebp, 0xffffffff
imul ebp, eax
and ebp, 1
sete al
or cl, al
mov byte [rsp + 0x29], cl
mov cl, byte [rsp + 0x29]
mov byte [rsp + 0x2a], bpl
or dl, al
mov byte [rsp + 0x2b], dl
mov edi, 0x1e27
mov esi, dword [rsp + 0x30]
xor esi, edi
mov dword [rsp + 0x30], esi
mov r14d, dword [rsp + 0x38]
xor r14d, edi
mov dword [rsp + 0x38], r14d
mov r15d, dword [rsp + 0x3c]
xor r15d, edi
mov dword [rsp + 0x3c], r15d
mov dword [rsp + 0x40], 0x1e27
mov eax, 0x2e15
mov cl, 1
mov dword [rsp + 0x2c], ecx
xor r13d, r13d
mov r12, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, edi
xor ebp, 0x601c
nop word cs:[rax + rax]
nop
cmp eax, 0x7793
jg 0x140010060
cmp eax, 0x28d2
je 0x1400101aa
cmp eax, 0x2e15
jne 0x140010040
jmp 0x140010160
cmp eax, 0x7794
je 0x1400100fe
cmp eax, 0x7e1d
jne 0x140010040
lea rcx, str.d:_Projects_binary_loader_samples_lib_foo.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, rax
lea rdx, [0x14001f862]
call r12
call rax
lea rcx, str.d:_Projects_binary_loader_samples_hook_foo.dll
mov rdx, rbx
call sym.vlx_dlopen_file
mov rcx, rbx
lea rdx, str.foo2
call r12
call rax
mov rcx, rbx
lea rdx, str.foo3
call r12
call rax
mov eax, dword [0x1400278c8]
lea ecx, [rax + 1]
imul ecx, eax
mov eax, r15d
xor eax, 0x52f6
test r13b, r13b
cmove r15d, eax
test cl, 1
mov eax, 0x6995
mov ecx, 0x36d3
cmove eax, ecx
cmp dword [0x1400278cc], 0xa
cmovl eax, ecx
xor eax, r14d
mov r13b, 1
jmp 0x140010040
lea rcx, str.d:_Projects_binary_loader_samples_lib_foo.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, rax
lea rdx, [0x14001f862]
call r12
call rax
lea rcx, str.d:_Projects_binary_loader_samples_hook_foo.dll
mov rdx, rbx
call sym.vlx_dlopen_file
mov rcx, rbx
lea rdx, str.foo2
call r12
call rax
mov rcx, rbx
lea rdx, str.foo3
call r12
call rax
mov eax, ebp
jmp 0x140010040
mov al, byte [rsp + 0x2a]
mov eax, r14d
xor eax, 0x26
mov ecx, r15d
xor ecx, 0x26
mov edx, edi
xor edx, 0x26
test byte [rsp + 0x2c], 1
cmovne r15d, ecx
cmovne r14d, eax
cmovne edi, edx
mov al, byte [rsp + 0x2b]
cmp byte [rsp + 0x29], 0
mov eax, 0x69b3
mov ecx, 0x603a
cmovne eax, ecx
xor eax, esi
mov dword [rsp + 0x2c], 0
jmp 0x14001002c
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x3c], r15d
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140010e10
Capabilities:
Check for debugger via api

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
mov eax, dword [0x140027938]
mov ecx, dword [0x14002793c]
cmp ecx, 9
setg r8b
cmp ecx, 0xa
setl cl
lea ebx, [rax + 1]
imul ebx, eax
and ebx, 1
sete dl
mov r9d, ecx
or r9b, dl
mov eax, edx
and al, r8b
or bl, cl
xor al, bl
xor al, r9b
xor al, 1
mov byte [rbp + 7], al
and cl, dl
xor cl, bl
mov byte [rbp + 6], cl
or dl, r8b
mov byte [rbp + 5], dl
mov r12d, 0x1e27
mov r14d, dword [rbp - 0x20]
xor r14d, r12d
mov dword [rbp - 0x20], r14d
mov r15d, dword [rbp - 0x18]
xor r15d, r12d
mov dword [rbp - 0x18], r15d
mov ebx, dword [rbp - 0x14]
xor ebx, r12d
mov dword [rbp - 0x14], ebx
mov dword [rbp - 0x10], 0x1e27
mov eax, 0x2e15
mov cl, 1
mov dword [rbp], ecx
xor r13d, r13d
mov edi, r12d
xor edi, 0x601c
nop word [rax + rax]
cmp eax, 0x7793
jg 0x140010ee0
cmp eax, 0x28d2
je 0x140011006
cmp eax, 0x2e15
jne 0x140010ec0
jmp 0x140010fc0
cmp eax, 0x7794
je 0x140010f81
cmp eax, 0x7e1d
jne 0x140010ec0
mov eax, 0x10
call fcn.14001cf30
sub rsp, rax
mov rsi, rsp
mov dword [rsi], 0
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
add rsp, 0x20
mov eax, dword [rsi]
mov dword [rbp - 4], eax
mov eax, dword [0x140027940]
cmp dword [0x140027944], 0xa
setl cl
mov edx, eax
not edx
add edx, 0x65ac203c
imul edx, eax
and edx, 1
sete al
or dl, cl
xor dl, al
xor cl, al
mov eax, ebx
xor eax, 0x52f6
test r13b, r13b
cmove ebx, eax
test dl, dl
mov eax, 0x36d3
mov edx, 0x6995
cmovne eax, edx
test cl, cl
mov ecx, 0x36d3
cmovne eax, ecx
xor eax, r15d
mov r13b, 1
jmp 0x140010ec0
mov eax, 0x10
call fcn.14001cf30
sub rsp, rax
mov rsi, rsp
mov dword [rsi], 0
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
add rsp, 0x20
mov eax, dword [rsi]
mov dword [rbp - 4], eax
mov eax, edi
jmp 0x140010ec0
mov al, byte [rbp + 6]
mov eax, r15d
xor eax, 0x26
mov ecx, ebx
xor ecx, 0x26
mov edx, r12d
xor edx, 0x26
test byte [rbp], 1
cmovne ebx, ecx
cmovne r15d, eax
cmovne r12d, edx
mov al, byte [rbp + 5]
cmp byte [rbp + 7], 0
mov eax, 0x69b3
mov ecx, 0x603a
cmovne eax, ecx
xor eax, r14d
mov dword [rbp], 0
jmp 0x140010eae
mov dword [rbp - 0x10], r12d
mov dword [rbp - 0x18], r15d
mov dword [rbp - 0x14], ebx
mov eax, dword [rbp - 4]
lea rsp, [rbp + 8]
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret