joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c5a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x13f0
call fcn.140015750
sub rsp, rax
mov rax, qword [0x14038a340]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov esi, r8d
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rdx
call fcn.140013d60
mov r8d, eax
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
mov edx, 1
nop dword [rax]
mov eax, r8d
shr eax, 0x1e
xor eax, r8d
imul r8d, eax, 0x6c078965
add r8d, edx
mov dword [rsp + rdx*4 + 0x54], r8d
inc rdx
cmp rdx, 0x270
jb 0x14000c5f0
mov dword [rsp + 0x50], 0x270
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14000c800
nop
mov rdx, qword [rsp + 0x30]
sub rdx, qword [rsp + 0x28]
sar rdx, 2
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
test rdx, rdx
jne 0x14000c653
call fcn.140005860
jmp 0x14000c658
call fcn.140005a10
mov rcx, rax
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
sub rax, rdx
sar rax, 2
cmp rax, rcx
jbe 0x14000c6fc
mov ecx, dword [rdx + rcx*4]
mov qword [rbx], 0
mov byte [rbx + 8], 0
mov edx, esi
call fcn.14000cfc0
mov rcx, qword [rbx]
mov qword [rbx], rax
cmp rcx, 1
jl 0x14000c69c
call sub.KERNEL32.dll_CloseHandle
nop
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14000c6d8
mov rdx, qword [rsp + 0x38]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c6d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c6f6
call fcn.140015390
mov rax, rbx
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.140014f40
add rsp, 0x13f0
pop rdi
pop rsi
pop rbx
ret
call fcn.14001dfa8
nop
call fcn.14000c050
nop
int3

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

Disassembly:
push rbx
mov rdx, qword [rcx + 8]
movabs rbx, 0x512377557d034be0
mov r9, qword [rcx]
mov rax, rdx
imul rax, rbx
movabs r11, 0x60744aef1b0e4400
lea r10, [r9 + rdx]
xor rax, r11
cmp r9, r10
je 0x14000cada
mov qword [rsp + 0x10], rdi
movabs rdi, 0x4e683dbb67ee7020
nop
movsx rdx, byte [r9]
inc r9
mov rcx, rdx
imul rcx, rdx
imul rdx, rcx
mov r8, rdx
imul r8, rdx
add r8, rax
xor r8, r11
imul r8, rbx
xor r8, rdx
sub r8, rdi
imul rax, r8
xor rax, r8
cmp r9, r10
jne 0x14000caa0
mov rdi, qword [rsp + 0x10]
pop rbx
ret

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

Disassembly:
push rbx
mov rdx, qword [rcx + 8]
movabs rbx, 0x20d89f5e34ba4a00
mov r9, qword [rcx]
mov rax, rdx
imul rax, rbx
movabs r11, 0x7b2947fa29658000
lea r10, [r9 + rdx]
xor rax, r11
cmp r9, r10
je 0x14000cb5a
mov qword [rsp + 0x10], rdi
movabs rdi, 0x63fe18a7a1e03600
nop
movsx rdx, byte [r9]
inc r9
mov rcx, rdx
imul rcx, rdx
imul rdx, rcx
mov r8, rdx
imul r8, rdx
add r8, rax
xor r8, r11
imul r8, rbx
xor r8, rdx
sub r8, rdi
imul rax, r8
xor rax, r8
cmp r9, r10
jne 0x14000cb20
mov rdi, qword [rsp + 0x10]
pop rbx
ret
Function at 0x14000d220
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x14038a340]
xor rax, rsp
mov qword [rbp + 0x37], rax
movdqa xmm0, xmmword [str.j_bJ]
xor eax, eax
xor ebx, ebx
mov byte [rbp + 0x2f], 0x15
mov r8, rcx
mov qword [rbp - 0x19], rax
mov ecx, ebx
mov word [rbp - 0x11], ax
movdqu xmmword [rbp + 0x1f], xmm0
mov byte [rbp - 0xf], al
movabs r9, 0xaaaaaaaaaaaaaaab
nop dword [rax]
mov rax, r9
mul rcx
shr rdx, 2
lea rax, [rdx + rdx*2]
mov rdx, rcx
add rax, rax
sub rdx, rax
movzx eax, byte [rbp + rdx + 0x1f]
lea rdx, [rbp + 0x30]
xor al, byte [rbp + rcx + 0x25]
mov byte [rbp + rcx - 0x19], al
inc rcx
lea rax, [rbp + 0x25]
add rax, rcx
cmp rax, rdx
jne 0x14000d280
movzx edx, byte [rbp - 0xf]
mov rcx, r8
movzx eax, word [rbp - 0x11]
test dl, dl
movsd xmm0, qword [rbp - 0x19]
mov word [rbp - 0x31], ax
lea rax, [rbp - 0x39]
mov qword [rbp - 0x19], rax
mov rax, rbx
setne al
movsd qword [rbp - 0x39], xmm0
add rax, 0xa
mov byte [rbp - 0x2f], dl
mov qword [rbp - 0x11], rax
lea rdx, [rbp - 0x19]
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x19], xmm0
call fcn.140010850
mov qword [0x14038b400], rax
mov ecx, 0xb70d
xor eax, eax
mov dword [rbp - 9], 0xcc44b70d
xorps xmm0, xmm0
mov dword [rbp - 5], 0x7b092c9e
mov dword [rbp - 1], 0x8c7b7d27
mov r8, rbx
mov dword [rbp + 3], 0xd244e29c
movabs r10, 0xe38e38e38e38e38f
lea r9d, [rax + 0xa]
mov dword [rbp + 7], 0xb763c869
mov dword [rbp + 0xb], 0x2cfacc30
mov dword [rbp + 0xf], 0x7d4b7b65
mov dword [rbp + 0x13], 0xe2f88c55
mov dword [rbp + 0x17], 0xc805d228
mov word [rbp + 0x1b], cx
movups xmmword [rbp - 0x39], xmm0
mov dword [rbp - 0x29], eax
nop dword [rax]
mov rcx, r8
mov rax, r10
mul r8
shr rdx, 3
lea rax, [rdx + rdx*8]
sub rcx, rax
movzx eax, word [rbp + rcx*2 - 9]
xor ax, word [rbp + r8*2 + 9]
mov word [rbp + r8*2 - 0x39], ax
inc r8
sub r9, 1
jne 0x14000d370
movups xmm0, xmmword [rbp - 0x39]
mov eax, dword [rbp - 0x29]
lea rcx, [rbp - 9]
mov qword [rbp - 0x39], rcx
lea rcx, [rbp - 0x39]
mov dword [rbp + 7], eax
shr eax, 0x10
test ax, ax
movups xmmword [rbp - 9], xmm0
setne bl
xor edx, edx
add rbx, 9
mov qword [rbp - 0x31], rbx
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 0x39], xmm0
call fcn.140011480
mov rdi, rax
lea rbx, [0x14037a250]
lea rax, [rbp - 0x19]
mov qword [rbp - 0x39], rax
lea rsi, str.j_bJ
lea rax, [0x14000c980]
mov qword [rbp - 0x31], rax
movaps xmm6, xmmword [rbp - 0x39]
nop dword [rax]
nop word [rax + rax]
lea rdx, [rbp - 0x39]
mov qword [rbp - 0x19], rbx
mov rcx, rdi
movdqa xmmword [rbp - 0x39], xmm6
call fcn.140011130
mov rcx, qword [rbx]
add rbx, 0x30
mov qword [rcx], rax
cmp rbx, rsi
jne 0x14000d410
mov rax, rdi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140014f40
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret
Function at 0x14000e390
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x14038a340]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rcx
mov qword [rbp - 0x39], rcx
mov qword [rcx + 8], rcx
lea rax, vtable.ntapi_category_t.0
mov qword [rcx], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
xor r11d, r11d
mov qword [rcx + 0x28], r11
mov qword [rcx + 0x30], 0xf
mov byte [rcx + 0x18], r11b
mov dword [rbp - 0x31], 0xa0d24c45
mov dword [rbp - 0x2d], 0x4b8de331
mov edx, 0x14b0
mov dword [rbp - 0x29], 0x4c2b14b0
mov dword [rbp - 0x25], 0xe355a0a6
mov dword [rbp - 0x21], 0x14dc4be1
mov dword [rbp - 0x1d], 0xa0b64c6b
mov dword [rbp - 0x19], 0x4be1e35d
mov word [rbp - 0x15], dx
xor eax, eax
movups xmmword [rbp - 9], xmm0
mov dword [rbp + 7], eax
mov r8d, r11d
lea r9d, [r11 + 0xa]
movabs r10, 0xcccccccccccccccd
nop dword [rax]
mov rax, r10
mul r8
shr rdx, 2
lea rax, [rdx + rdx*4]
mov rcx, r8
sub rcx, rax
movzx eax, word [rbp + r8*2 - 0x27]
xor ax, word [rbp + rcx*2 - 0x31]
mov word [rbp + r8*2 - 9], ax
inc r8
sub r9, 1
jne 0x14000e440
movups xmm0, xmmword [rbp - 9]
movups xmmword [rbp - 0x31], xmm0
mov ecx, dword [rbp + 7]
mov dword [rbp - 0x21], ecx
lea rax, [rbp - 0x31]
mov qword [rbp - 0x69], rax
shr ecx, 0x10
mov rax, r11
test cx, cx
setne al
add rax, 9
mov qword [rbp - 0x61], rax
movaps xmm6, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 9], xmm6
mov qword [rbp - 0x69], r11
lea rax, [rbp - 9]
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x69]
mov qword [rbp - 0x41], rax
mov rax, qword gs:[0x60]
mov rbx, qword [rax + 0x18]
mov rbx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x30]
test rdx, rdx
je 0x14000e503
nop
movzx ecx, word [rbx + 0x58]
shr rcx, 1
mov rax, qword [rbx + 0x60]
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rcx
mov r8, rdx
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x49]
call fcn.14000d4f0
test al, al
jne 0x14000e503
mov rbx, qword [rbx]
mov rdx, qword [rbx + 0x30]
test rdx, rdx
jne 0x14000e4d0
mov rax, qword [rbp - 0x69]
test rax, rax
je 0x14000e539
mov qword [rdi + 0x10], rax
mov rax, rdi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140014f40
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret
movdqa xmmword [rbp - 0x59], xmm6
lea rdx, [rbp - 0x59]
lea rcx, [rbp + 0x17]
call fcn.140001c80
nop
mov rcx, rax
call fcn.140011e20
int3
Function at 0x140011350
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov rdi, rdx
test cl, cl
jne 0x140011404
lea r14, [0x14038b440]
mov qword [rsp + 0x30], r14
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
lea rax, [0x14038b428]
mov qword [rsp + 0x38], rax
mov rsi, qword [0x14038b430]
mov rbx, qword [0x14038b428]
cmp rbx, rsi
je 0x1400113f9
mov rbp, qword [rdi + 8]
mov rdi, qword [rdi]
add rbx, 8
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400113c1
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x40], xmm0
mov r8, qword [rbx - 8]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call rbp
test al, al
jne 0x1400113f9
add rbx, 0x48
lea rax, [rbx - 8]
cmp rax, rsi
jne 0x1400113b4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x140011462
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rbx, qword [rcx + 0x10]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140011462
mov rsi, qword [rdx]
mov rdi, qword [rdx + 8]
nop word [rax + rax]
mov rax, qword [rbx + 0x60]
mov qword [rsp + 0x20], rax
movzx eax, word [rbx + 0x58]
shr rax, 1
mov qword [rsp + 0x28], rax
mov r8, rcx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call rdi
test al, al
jne 0x140011462
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
jne 0x140011430
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret

Function at 0x140011c80
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14038a340]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x28], 0
jne 0x140011d49
mov dword [rsp + 0x20], 0x447056a
mov dword [rsp + 0x24], 0x6c1a2671
mov byte [rsp + 0x28], 0x47
xor eax, eax
mov dword [rsp + 0x30], eax
mov word [rsp + 0x34], ax
xor r8d, r8d
mov r9d, r8d
movabs r10, 0xaaaaaaaaaaaaaaab
nop dword [rax]
nop word [rax + rax]
mov rax, r10
mul r9
shr rdx, 1
lea rax, [rdx + rdx*2]
mov rcx, r9
sub rcx, rax
movzx eax, byte [rsp + rcx + 0x20]
xor al, byte [rsp + r9 + 0x23]
mov byte [rsp + r9 + 0x30], al
inc r9
lea rax, [rsp + 0x23]
add rax, r9
lea rcx, [rsp + 0x29]
cmp rax, rcx
jne 0x140011ce0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
movzx eax, word [rsp + 0x34]
mov word [rsp + 0x3c], ax
cmp byte [rsp + 0x35], r8b
setne r8b
add r8, 5
add rbx, 0x18
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14000f150
jmp 0x140011d4d
add rbx, 0x18
cmp qword [rbx + 0x18], 0xf
jbe 0x140011d6a
mov rax, qword [rbx]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140014f40
add rsp, 0x50
pop rbx
ret
mov rax, rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140014f40
add rsp, 0x50
pop rbx
ret
Function at 0x140012980
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x38
mov r9, qword [rcx + 8]
mov r10, rdx
cmp r9, 0x40
jb 0x140012a38
mov r8, qword [rcx]
mov eax, 0x5a4d
cmp word [r8], ax
je 0x1400129ad
mov eax, 0xc000012f
add rsp, 0x38
ret
movsxd rdx, dword [r8 + 0x3c]
lea rax, [rdx + 0x108]
cmp r9, rax
jb 0x140012a38
add rdx, r8
mov eax, 0x4550
cmp word [rdx], ax
jne 0x140012a38
movzx eax, byte [rdx + 0x16]
shr al, 1
test al, 1
je 0x140012a38
movzx eax, word [rdx + 0x18]
mov r8d, 0x10b
cmp ax, r8w
je 0x140012a10
mov r8d, 0x20b
cmp ax, r8w
jne 0x140012a38
movups xmm0, xmmword [rcx]
mov r8, r10
lea rcx, [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
call fcn.140012480
test al, al
je 0x140012a38
xor eax, eax
add rsp, 0x38
ret
movups xmm0, xmmword [rcx]
mov r8, r10
lea rcx, [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
call fcn.1400121a0
xor ecx, ecx
mov edx, 0xc000007b
test al, al
cmove ecx, edx
mov eax, ecx
add rsp, 0x38
ret
mov eax, 0xc000007b
add rsp, 0x38
ret
Function at 0x140014944
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14001497e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140014983
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400149cc
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14037ba40]
cmp byte [rcx + rax], 0
je 0x1400149cc
dec r8
sub rdx, 1
jne 0x1400149b2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140015bfc
Capabilities:
Parse pe header

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

Function at 0x14001e61c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001e418
Function at 0x140024778
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 0x1400247a8
xor eax, eax
jmp 0x14002486b
mov rbp, rbx
cmp word [rax], si
je 0x1400247cd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400247b4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400247b0
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.140024698
movsxd r14, eax
test eax, eax
jne 0x14002480b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400247a1
mov rcx, r14
call fcn.1400211b8
mov rdi, rax
test rax, rax
jne 0x140024824
xor ecx, ecx
call fcn.14001f968
jmp 0x140024800
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.140024698
test eax, eax
jne 0x140024855
mov rcx, rdi
call fcn.14001f968
jmp 0x14002485f
xor ecx, ecx
call fcn.14001f968
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 0x14002859c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400285b2
mov al, 1
jmp 0x140028612
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400285c3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140028610
mov ecx, dword [rcx + 0x18]
nop
call fcn.140025118
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140028610
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140028610
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140028610
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140028612
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140029284
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.14001b938
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002930e
cmp byte [rbp - 0x21], r15b
je 0x140029309
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140029344
call fcn.14001fbb8
test eax, eax
jne 0x140029330
cmp byte [rbp - 0x21], r15b
je 0x140029328
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140029344
cmp byte [rbp - 0x21], r15b
je 0x140029341
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.140022de4
test eax, eax
jne 0x1400293e4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001b938
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140029383
cmp byte [rbp - 0x21], r15b
je 0x1400293b8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400293b8
call fcn.14001fbb8
test eax, eax
jne 0x1400293a4
cmp byte [rbp - 0x21], r15b
je 0x14002939d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400293b8
cmp byte [rbp - 0x21], r15b
je 0x1400293b5
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.140022de4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400293e4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400293e7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400293f5
mov rcx, rdi
call fcn.14001f968
cmp byte [rbp + 0x3f], r15b
je 0x140029404
mov rcx, qword [rbp + 0x27]
call fcn.14001f968
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 0x14002b930
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rcx, qword [rcx]
lea r9, [rsp + 0x50]
xor eax, eax
mov rbx, r8
mov r8d, dword [rdx + 8]
mov rdx, qword [rdx]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002b967
mov eax, dword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
call fcn.140009870
mov qword [rsp + 0x38], rax
xor eax, eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
add rsp, 0x40
pop rbx
ret
Function at 0x14002b990
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbx, rdx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002b9bf
mov rax, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
call fcn.140009870
mov qword [rsp + 0x28], rax
xor eax, eax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
add rsp, 0x30
pop rbx
ret

Function at 0x14002ba90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002bab8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002bab8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001140
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, dword [section..data]
call fcn.180051860
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x18000effc
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18000effc
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 0x18000f06b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000f06b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000f06b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18000f06b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000f06b
cmp dword [rcx + 0x84], 0xe
jbe 0x18000f06b
cmp dword [rcx + 0xf8], 0
je 0x18000f06b
mov ecx, ebx
call fcn.18000ef34
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.18000f190
nop
cmp dword [rbp + 0x20], 0
je 0x18000f0b9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18000efc8
int3
Function at 0x180012614
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.180006770
sub rsp, rax
mov rax, qword [0x18003f040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18001e52c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180012663
mov rax, rbp
jmp 0x18001276b
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x424f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18001f520
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x424f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180012767
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 0x180012767
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18001f520
test rax, rax
js 0x180012767
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180012767
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180012759
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180012759
cmp byte [rcx], 0xd
jne 0x18001273f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18001274e
cmp byte [rcx + 1], 0xa
jne 0x18001274e
inc rcx
jmp 0x18001274e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3fb30]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180012721
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18001276b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180006400
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 0x1800153b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800153d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800153d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret