joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b8e0
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400f9140
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x60
test rdx, rdx
je 0x1400f917a
test r8, r8
je 0x1400f917a
test r9, r9
jne 0x1400f9182
call fcn.14000a780
mov dword [rax], 0x16
call fcn.14000ff10
xor eax, eax
add rsp, 0x60
pop rbp
ret
lea rax, [rbp + 0x28]
mov qword [rbp - 0x38], r9
mov qword [rbp - 0x28], rax
lea r8, [rbp - 0x28]
lea rax, [rbp + 0x10]
mov qword [rbp - 0x30], r9
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x38]
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x30]
lea rax, [rbp + 0x20]
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x10], rax
call fcn.140009530
jmp 0x1400f917c

Function at 0x14000ba20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140081cf0
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1401c70a0]
xor rax, rsp
mov qword [rsp + 0x68], rax
movsd xmm0, qword [str.KMGTPEZY]
xor ebx, ebx
movzx eax, byte [0x14017d458]
mov rdi, rcx
movsd qword [rsp + 0x38], xmm0
or ecx, 0xffffffff
mov dword [rsp + 0x34], ebx
xorps xmm0, xmm0
mov byte [rsp + 0x40], al
cvtsi2sd xmm0, rdx
test rdx, rdx
jns 0x140081d43
addsd xmm0, qword [0x14017e9c8]
movsd xmm1, qword [0x14017e9a8]
comisd xmm0, xmm1
jbe 0x140081d71
movsd xmm2, qword [0x14017e998]
nop dword [rax]
cmp ecx, 7
jge 0x140081d71
mulsd xmm0, xmm2
inc ecx
comisd xmm0, xmm1
ja 0x140081d60
movzx eax, word [0x14017d45c]
mov word [rsp + 0x30], ax
movzx eax, byte [0x14017d45e]
mov byte [rsp + 0x32], al
test ecx, ecx
js 0x140081d98
movsxd rax, ecx
movzx ecx, byte [rsp + rax + 0x38]
mov byte [rsp + 0x30], cl
lea rax, [rsp + 0x30]
mov edx, 0x20
mov qword [rsp + 0x28], rax
lea r9, str._.2f__sB
mov r8d, edx
movsd qword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x48]
call fcn.14000b950
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], rbx
mov byte [rdi], bl
cmp byte [rsp + 0x48], bl
je 0x140081de9
lea rax, [rsp + 0x48]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x140081de0
mov r8, rbx
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.140001fc0
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140011080
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x14000c2c0
Capabilities:
Terminate process

Disassembly:
jmp 0x1400e5ac8
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 0x14000c6e0
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400ea750
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, [0x1401884d8]
mov ecx, 4
lea r8, [0x1401884d0]
lea rdx, str.FlsAlloc
call fcn.1400ea008
mov rbx, rax
test rax, rax
je 0x1400ea793
mov rcx, rax
call fcn.1400093b0
mov rcx, rdi
call rbx
jmp 0x1400ea799
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000d230
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140033120
mov rax, rsp
mov byte [rax + 0x18], r8b
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rsi, r9
movzx eax, r8b
mov r13, rdx
mov r14, rcx
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rcx
mov rbx, qword [rcx + 8]
mov r12, rcx
mov dil, 1
cmp byte [rbx + 0x19], 0
jne 0x140033254
mov r15, qword [r9 + 0x10]
mov r12, rbx
test al, al
je 0x1400331d6
lea rcx, [rbx + 0x20]
cmp qword [rsi + 0x18], 0x10
jb 0x14003318c
mov rdx, qword [rsi]
jmp 0x14003318f
mov rdx, rsi
lea r14, [rcx + 0x10]
cmp qword [rcx + 0x18], 0x10
jb 0x14003319d
mov rcx, qword [rcx]
mov r14, qword [r14]
mov r8, r15
cmp r14, r15
cmovb r8, r14
test r8, r8
je 0x1400331ba
call fcn.14000bd30
mov edi, eax
test eax, eax
jne 0x1400331cd
cmp r14, r15
jae 0x1400331c4
or edi, 0xffffffff
jmp 0x1400331cd
xor edi, edi
cmp r14, r15
seta dil
shr edi, 0x1f
xor dil, 1
jmp 0x14003322a
lea rdx, [rbx + 0x20]
lea rdi, [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1400331e8
mov rdx, qword [rdx]
cmp qword [rsi + 0x18], 0x10
jb 0x1400331f4
mov rcx, qword [rsi]
jmp 0x1400331f7
mov rcx, rsi
mov rdi, qword [rdi]
mov r8, rdi
cmp r15, rdi
cmovb r8, r15
test r8, r8
je 0x140033212
call fcn.14000bd30
test eax, eax
jne 0x140033224
cmp r15, rdi
jae 0x14003321c
or eax, 0xffffffff
jmp 0x140033224
xor eax, eax
cmp r15, rdi
seta al
shr eax, 0x1f
movzx edi, al
test dil, dil
je 0x140033234
mov rbx, qword [rbx]
jmp 0x140033238
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x19], 0
movzx eax, byte [rsp + 0x80]
je 0x140033175
mov rcx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x70]
mov rbx, r12
test dil, dil
je 0x1400332fa
cmp r12, qword [rcx]
jne 0x14003329d
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rsi
mov r9, r12
mov r8b, 1
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.14000d350
mov rax, qword [rax]
mov qword [r13], rax
mov byte [r13 + 8], 1
mov rax, r13
jmp 0x14003334c
cmp byte [r12 + 0x19], 0
je 0x1400332ac
mov rbx, qword [r12 + 0x10]
jmp 0x1400332fa
mov rax, qword [r12]
cmp byte [rax + 0x19], 0
jne 0x1400332d2
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1400332fa
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x1400332c3
jmp 0x1400332fa
mov rax, qword [r12 + 8]
cmp byte [rax + 0x19], 0
jne 0x1400332f2
nop dword [rax]
cmp rbx, qword [rax]
jne 0x1400332f2
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400332e0
cmp byte [rbx + 0x19], 0
cmove rbx, rax
lea rcx, [rbx + 0x20]
mov rdx, rsi
call fcn.1400122a0
test al, al
je 0x140033340
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rsi
mov r9, r12
movzx r8d, dil
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.14000d350
mov rax, qword [rax]
mov qword [r13], rax
mov byte [r13 + 8], 1
mov rax, r13
jmp 0x14003334c
mov qword [r13], rbx
mov byte [r13 + 8], 0
mov rax, r13
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000df70
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140134264
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x14018ea80]
mov ecx, 5
lea r8, [0x14018ea78]
lea rdx, str.FlsGetValue
call fcn.14013385c
mov ecx, ebx
test rax, rax
je 0x14013429e
add rsp, 0x20
pop rbx
jmp qword [0x1401df010]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14000ebf0
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1401342bc
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x14018ea90]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 6
lea r8, [0x14018ea88]
call fcn.14013385c
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x1401342fc
call qword [0x1401df010]
jmp 0x140134302
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000ed00
Capabilities:
Read file on windows

Disassembly:
jmp 0x1401472e4
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15d, r8d
mov r13, rdx
movsxd rsi, ecx
cmp esi, 0xfffffffe
jne 0x140147320
call fcn.1400115d0
and dword [rax], 0
call fcn.14000a780
mov dword [rax], 9
jmp 0x1401473e5
test ecx, ecx
js 0x1401473cd
cmp esi, dword [0x1401cc47c]
jae 0x1401473cd
mov r14, rsi
mov r12, rsi
sar r12, 6
lea rax, [0x1401cbfb0]
and r14d, 0x3f
shl r14, 6
mov rax, qword [rax + r12*8]
movzx ecx, byte [rax + r14 + 0x38]
and ecx, 1
je 0x1401473cd
xor eax, eax
cmp r8d, 0x7fffffff
setbe al
test eax, eax
jne 0x140147381
call fcn.1400115d0
and dword [rax], 0
call fcn.14000a780
mov dword [rax], 0x16
jmp 0x1401473e0
mov ecx, esi
call fcn.14000d510
or ebx, 0xffffffff
lea rax, [0x1401cbfb0]
mov rax, qword [rax + r12*8]
test byte [rax + r14 + 0x38], 1
jne 0x1401473b3
call fcn.14000a780
mov dword [rax], 9
call fcn.1400115d0
and dword [rax], 0
jmp 0x1401473c2
mov r8d, r15d
mov rdx, r13
mov ecx, esi
call fcn.1400067f0
mov ebx, eax
mov ecx, esi
call fcn.140003100
mov eax, ebx
jmp 0x1401473e8
call fcn.1400115d0
and dword [rax], 0
call fcn.14000a780
mov dword [rax], 9
call fcn.14000ff10
or eax, 0xffffffff
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret

Function at 0x14000f290
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1401341b0
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x14018ea60]
mov ecx, 3
lea r8, [0x14018ea58]
lea rdx, str.FlsAlloc
call fcn.14013385c
test rax, rax
je 0x1401341ec
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1401df010]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1400107f0
Capabilities:
Parse pe header

Disassembly:
jmp 0x14012aac0
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14012a814
Function at 0x1400116f0
Capabilities:
Print debug messages

Disassembly:
jmp 0x140141f4c
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.14000b3e0
cmp eax, 2
sete dil
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140141f99
test rbx, rbx
je 0x140141f8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test dil, dil
je 0x140141fd0
mov eax, 4
jmp 0x140141fdf
test dil, dil
je 0x140141fd0
call fcn.140002c90
test al, al
je 0x140141fd0
call fcn.1400110a0
test al, al
jne 0x140141fc6
bts esi, 0x15
xor ecx, ecx
mov rdx, rbx
mov r8, rbp
mov r9d, esi
call fcn.14000d770
jmp 0x140141fdf
call fcn.1400067b0
mov rcx, rax
jmp 0x140141fb6
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 0x140014360
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x140043190
movzx eax, byte [rdx + 1]
mov r8, rdx
movzx r9d, byte [rdx]
movabs r11, 0x100000001b3
movabs r10, 0xcbf29ce484222325
xor r9, r10
movzx ecx, byte [r8 + 8]
imul r9, r11
xor rcx, r10
xor r9, rax
movzx eax, byte [rdx + 2]
imul rcx, r11
imul r9, r11
xor r9, rax
movzx eax, byte [rdx + 3]
movzx edx, byte [rdx + 4]
xor rdx, r10
imul rdx, r11
imul r9, r11
xor r9, rax
movzx eax, byte [r8 + 5]
xor rdx, rax
movzx eax, byte [r8 + 6]
imul rdx, r11
imul r9, r11
xor rdx, rax
movzx eax, byte [r8 + 7]
imul rdx, r11
shr r9, 1
xor rdx, rax
movzx eax, byte [r8 + 9]
xor rcx, rax
movzx eax, byte [r8 + 0xa]
imul rcx, r11
imul rdx, r11
xor rcx, rax
movzx eax, byte [r8 + 0xb]
imul rcx, r11
xor rcx, rax
imul rcx, r11
lea rax, [rcx + rcx]
movabs rcx, 0x7fffffffffffffff
and rdx, rcx
xor rax, rdx
xor rax, r9
ret
Function at 0x140033120
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140033120
mov rax, rsp
mov byte [rax + 0x18], r8b
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rsi, r9
movzx eax, r8b
mov r13, rdx
mov r14, rcx
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rcx
mov rbx, qword [rcx + 8]
mov r12, rcx
mov dil, 1
cmp byte [rbx + 0x19], 0
jne 0x140033254
mov r15, qword [r9 + 0x10]
mov r12, rbx
test al, al
je 0x1400331d6
lea rcx, [rbx + 0x20]
cmp qword [rsi + 0x18], 0x10
jb 0x14003318c
mov rdx, qword [rsi]
jmp 0x14003318f
mov rdx, rsi
lea r14, [rcx + 0x10]
cmp qword [rcx + 0x18], 0x10
jb 0x14003319d
mov rcx, qword [rcx]
mov r14, qword [r14]
mov r8, r15
cmp r14, r15
cmovb r8, r14
test r8, r8
je 0x1400331ba
call fcn.14000bd30
mov edi, eax
test eax, eax
jne 0x1400331cd
cmp r14, r15
jae 0x1400331c4
or edi, 0xffffffff
jmp 0x1400331cd
xor edi, edi
cmp r14, r15
seta dil
shr edi, 0x1f
xor dil, 1
jmp 0x14003322a
lea rdx, [rbx + 0x20]
lea rdi, [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1400331e8
mov rdx, qword [rdx]
cmp qword [rsi + 0x18], 0x10
jb 0x1400331f4
mov rcx, qword [rsi]
jmp 0x1400331f7
mov rcx, rsi
mov rdi, qword [rdi]
mov r8, rdi
cmp r15, rdi
cmovb r8, r15
test r8, r8
je 0x140033212
call fcn.14000bd30
test eax, eax
jne 0x140033224
cmp r15, rdi
jae 0x14003321c
or eax, 0xffffffff
jmp 0x140033224
xor eax, eax
cmp r15, rdi
seta al
shr eax, 0x1f
movzx edi, al
test dil, dil
je 0x140033234
mov rbx, qword [rbx]
jmp 0x140033238
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x19], 0
movzx eax, byte [rsp + 0x80]
je 0x140033175
mov rcx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x70]
mov rbx, r12
test dil, dil
je 0x1400332fa
cmp r12, qword [rcx]
jne 0x14003329d
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rsi
mov r9, r12
mov r8b, 1
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.14000d350
mov rax, qword [rax]
mov qword [r13], rax
mov byte [r13 + 8], 1
mov rax, r13
jmp 0x14003334c
cmp byte [r12 + 0x19], 0
je 0x1400332ac
mov rbx, qword [r12 + 0x10]
jmp 0x1400332fa
mov rax, qword [r12]
cmp byte [rax + 0x19], 0
jne 0x1400332d2
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1400332fa
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x1400332c3
jmp 0x1400332fa
mov rax, qword [r12 + 8]
cmp byte [rax + 0x19], 0
jne 0x1400332f2
nop dword [rax]
cmp rbx, qword [rax]
jne 0x1400332f2
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400332e0
cmp byte [rbx + 0x19], 0
cmove rbx, rax
lea rcx, [rbx + 0x20]
mov rdx, rsi
call fcn.1400122a0
test al, al
je 0x140033340
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rsi
mov r9, r12
movzx r8d, dil
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.14000d350
mov rax, qword [rax]
mov qword [r13], rax
mov byte [r13 + 8], 1
mov rax, r13
jmp 0x14003334c
mov qword [r13], rbx
mov byte [r13 + 8], 0
mov rax, r13
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140045710
Capabilities:
Set console window title

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401c70a0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x14004576a
movzx ecx, word [rsp + 0x30]
mov eax, 0x4e20
add cx, 0x1e
mov word [rsp + 0x22], ax
mov word [rsp + 0x20], cx
mov rcx, rbx
mov edx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
xor eax, eax
lea r8, [rsp + 0x28]
mov dword [rsp + 0x28], eax
mov rcx, rbx
movzx eax, word [rsp + 0x30]
add ax, 0x1d
mov word [rsp + 0x2c], ax
mov eax, 0x32
mov word [rsp + 0x2e], ax
lea edx, [rax - 0x31]
call qword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140011080
add rsp, 0x50
pop rbx
ret
Function at 0x140141f4c
Capabilities:
Print debug messages

Disassembly:
jmp 0x140141f4c
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.14000b3e0
cmp eax, 2
sete dil
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140141f99
test rbx, rbx
je 0x140141f8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test dil, dil
je 0x140141fd0
mov eax, 4
jmp 0x140141fdf
test dil, dil
je 0x140141fd0
call fcn.140002c90
test al, al
je 0x140141fd0
call fcn.1400110a0
test al, al
jne 0x140141fc6
bts esi, 0x15
xor ecx, ecx
mov rdx, rbx
mov r8, rbp
mov r9d, esi
call fcn.14000d770
jmp 0x140141fdf
call fcn.1400067b0
mov rcx, rax
jmp 0x140141fb6
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 0x140146b34
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, [0x1401cbfb0]
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 0x140146b8c
cmp word [rdx], r9w
jne 0x140146b8c
or byte [rax + rdi + 0x38], 4
jmp 0x140146b91
and byte [rax + rdi + 0x38], 0xfb
lea r12, [rdx + r8*2]
mov rsi, rdx
mov rbx, rdx
cmp rdx, r12
jae 0x140146d47
lea rbp, [rdx + 2]
mov edx, 0xd
movzx eax, word [rsi]
cmp ax, 0x1a
je 0x140146d29
cmp ax, dx
je 0x140146bd3
mov word [rbx], ax
add rbx, 2
add rsi, 2
add rbp, 2
jmp 0x140146c74
cmp rbp, r12
jae 0x140146bf9
cmp word [rbp], r9w
jne 0x140146bf4
add rsi, 4
mov word [rbx], r9w
add rbp, 4
add rbx, 2
jmp 0x140146c74
mov word [rbx], dx
jmp 0x140146bc2
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 0x140146d0d
cmp dword [rsp + 0x90], 0
je 0x140146d0d
lea r10, [0x1401cbfb0]
mov r9d, 0xa
mov rax, qword [r10 + r15*8]
test byte [rax + rdi + 0x38], 0x48
je 0x140146cbe
movzx eax, word [rsp + 0x80]
cmp ax, r9w
jne 0x140146c82
mov word [rbx], r9w
add rbx, 2
mov edx, 0xd
mov rcx, qword [rsp + 0x98]
cmp rsi, r12
jb 0x140146bad
jmp 0x140146d47
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 0x140146c98
mov rax, qword [r10 + r15*8]
mov byte [rax + rdi + 0x3c], r9b
jmp 0x140146c67
cmp word [rsp + 0x80], r9w
jne 0x140146cce
cmp rbx, r14
je 0x140146c5f
mov rdx, 0xfffffffffffffffe
mov ecx, r13d
lea r8d, [rdx + 3]
call fcn.1400140a0
mov r9d, 0xa
lea r10, [0x1401cbfb0]
cmp word [rsp + 0x80], r9w
je 0x140146c67
lea edx, [r9 + 3]
mov word [rbx], dx
add rbx, 2
jmp 0x140146c6c
mov edx, 0xd
lea r10, [0x1401cbfb0]
mov word [rbx], dx
add rbx, 2
lea r9d, [rdx - 3]
jmp 0x140146c6c
mov rcx, qword [r10 + r15*8]
mov al, byte [rcx + rdi + 0x38]
test al, 0x40
jne 0x140146d3d
or al, 2
mov byte [rcx + rdi + 0x38], al
jmp 0x140146d47
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 0x14000caff
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140021410]
jne 0x140007dea
rol rcx, 0x10
test cx, 0xffff
jne 0x140007de6
repz ret
ror rcx, 0x10
jmp 0x14000ca58
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140023110]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140023208]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000cadd
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140023110]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000caff
mov rax, qword [rsp + 0x88]
mov qword [0x140023208], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400231a8], rax
mov rax, qword [0x140023208]
mov qword [0x140023080], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140023190], rax
mov dword [0x140023070], 0xc0000409
mov dword [0x140023074], 1
mov rax, qword [0x140021410]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140021418]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140023108], eax
mov ecx, 1
call fcn.1400143bc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400191a0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140023108], 0
jne 0x14000cb86
mov ecx, 1
call fcn.1400143bc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x14000e18c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14000dffc
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14034c380]
mov dword [rax], 1
mov rax, qword [0x14034c390]
mov dword [rax], 1
mov rax, qword [0x14034c3a0]
mov dword [rax], 1
mov rax, qword [0x14034c300]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1402bb690
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140326b60
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x1402bb739
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x1402bb6fe
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1402bb6f0
test rax, rax
je 0x140337a6e
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x1402bb6d8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x1402bb768
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x1402bb780
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x1402bb821
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x1402bb7e6
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1402bb7d8
test rax, rax
je 0x140337a74
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x1402bb7c0
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret