joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c65c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140014cb8], rbx
je 0x14000c6c3
cmp rax, rbx
jne 0x14000c6b6
mov ebx, 1
mov esi, ebx
jmp 0x14000c6c8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000c69b
mov ebx, 1
mov eax, dword [0x140014cc0]
cmp eax, ebx
jne 0x14000c6e0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000c74c
mov eax, dword [0x140014cc0]
test eax, eax
jne 0x14000c741
mov dword [0x140014cc0], ebx
lea r15, [0x14000eb70]
lea rdi, [0x14000eb58]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000c733
test eax, eax
jne 0x14000c737
cmp qword [rdi], r14
je 0x14000c728
mov rax, qword [rdi]
mov rcx, qword [0x14000eb00]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000c70a
test eax, eax
je 0x14000c747
mov eax, 0xff
jmp 0x14000c8a0
mov dword [0x140014400], ebx
mov edi, 0x1f
mov eax, dword [0x140014cc0]
cmp eax, ebx
jne 0x14000c773
lea rdx, [0x14000eb50]
lea rcx, [0x14000eb18]
call sub.msvcrt.dll__initterm
mov dword [0x140014cc0], 2
test esi, esi
jne 0x14000c781
mov rax, r14
xchg qword [0x140014cb8], rax
cmp qword [0x140014cd8], r14
je 0x14000c7b4
lea rcx, [0x140014cd8]
call fcn.14000cc80
test eax, eax
je 0x14000c7b4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140014cd8]
mov r9, qword [0x14000eb00]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000c7cd
mov eax, 0xff
jmp 0x14000c8a0
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14000c851
cmp word [rcx], r14w
je 0x14000c7e6
test edx, edx
jne 0x14000c851
movzx eax, word [rcx]
sub ax, bx
cmp ax, di
ja 0x14000c7fc
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c7e6
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400018e8
mov dword [0x1400143fc], eax
cmp dword [0x140014420], r14d
jne 0x14000c83a
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140014400], r14d
jne 0x14000c84f
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400143fc]
jmp 0x14000c8a0
cmp word [rcx], 0x22
jne 0x14000c865
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c7d6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14019b000
add rsp, 0x28
jmp 0x14000c65c
Function at 0x1400341c8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x14004c350], eax
call fcn.140034c70
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x14004c350], 0
jne case.default.0x14003421e
mov ecx, 1
call fcn.140034c70
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
ret 0xebf4
Function at 0x14001126c
Capabilities:
Terminate process

Disassembly:
jmp 0x1400140d0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011311
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015420
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015440
xor al, al
jmp 0x1400154c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015453
xor al, al
jmp 0x1400154c1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001547d
xor al, al
jmp 0x1400154c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015491
xor al, al
jmp 0x1400154c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400154a3
xor al, al
jmp 0x1400154c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400154bf
xor al, al
jmp 0x1400154c1
mov al, 1
add rsp, 0x38
ret
Function at 0x140001940
Capabilities:
Encode data using xor

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, 0x20
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890987543210ZYXWVUTSRQPONMLKJIHGFEDCBAabcdefghijklmnopqrstuvwxyza
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [r8 + rbp], 0
jne 0x140001970
lea r14, [0x14003bc10]
mov r11d, 1
mov ebx, 2
mov edi, 3
sub r11, r14
sub rbx, r14
sub rdi, r14
xor r10d, r10d
mov esi, 4
sub rsi, r14
nop word [rax + rax]
xor edx, edx
lea r9, [r10 + r14]
mov rax, r10
add r10, 5
div r8
movzx eax, byte [rdx + rbp]
xor edx, edx
xor byte [r9], al
lea rax, [r11 + r9]
div r8
movzx eax, byte [rdx + rbp]
xor edx, edx
xor byte [r9 + 1], al
lea rax, [rbx + r9]
div r8
movzx eax, byte [rdx + rbp]
xor edx, edx
xor byte [r9 + 2], al
lea rax, [rdi + r9]
div r8
movzx eax, byte [rdx + rbp]
xor edx, edx
xor byte [r9 + 3], al
lea rax, [rsi + r9]
div r8
movzx eax, byte [rdx + rbp]
xor byte [r9 + 4], al
cmp r10, 0x1d1
jb 0x1400019b0
lea rcx, str.NOLIB
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x140001a44
lea ecx, [rax + 2]
call fcn.14000b318
mov rcx, rax
lea rdx, str.Error_loading_kernel32.dll_n
call fcn.140001120
mov eax, 1
jmp 0x140001a64
lea rdx, str.Hello_World__n
lea rcx, [0x14003c330]
call fcn.140001cc0
mov rdx, r14
mov rcx, rax
call fcn.140001cc0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140013d9c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013b98
Function at 0x14001a398
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.1400056d0
sub rsp, rax
mov rax, qword [0x14003b020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140018734
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001a3e7
mov rax, rbp
jmp 0x14001a4ef
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3d570]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001b4b8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3d570]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001a4eb
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 0x14001a4eb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001b4b8
test rax, rax
js 0x14001a4eb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001a4eb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001a4dd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001a4dd
cmp byte [rcx], 0xd
jne 0x14001a4c3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001a4d2
cmp byte [rcx + 1], 0xa
jne 0x14001a4d2
inc rcx
jmp 0x14001a4d2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3b410]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001a4a5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001a4ef
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140005070
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 0x14001a710
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001a726
mov al, 1
jmp 0x14001a786
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001a737
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001a784
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001f738
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001a784
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001a784
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001a784
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001a786
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001a858
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14003d570]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001a8af
cmp word [rdx], r13w
jne 0x14001a8af
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001a8b4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001a9d9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001a9fa
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001a8ed
mov rdx, r9
mov word [rbx], cx
jmp 0x14001a914
cmp r9, r8
jae 0x14001a924
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001a8ce
jmp 0x14001a9d9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001a9ce
cmp dword [rsp + 0x80], esi
je 0x14001a9ce
lea r8, [0x14003d570]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001a9a6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001a976
mov word [rbx], r13w
jmp 0x14001a9d6
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001a983
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001a9d6
cmp word [rsp + 0x70], r13w
jne 0x14001a9b3
cmp rbx, r14
je 0x14001a970
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001b4c0
cmp word [rsp + 0x70], r13w
je 0x14001a9d9
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14003d570]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001a9d3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001a9d9
Function at 0x14001eed0
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 0x14001ef00
xor eax, eax
jmp 0x14001efc3
mov rbp, rbx
cmp word [rax], si
je 0x14001ef25
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001ef0c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001ef08
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.14001d4d0
movsxd r14, eax
test eax, eax
jne 0x14001ef63
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001eef9
mov rcx, r14
call fcn.1400174d8
mov rdi, rax
test rax, rax
jne 0x14001ef7c
xor ecx, ecx
call fcn.1400166e4
jmp 0x14001ef58
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.14001d4d0
test eax, eax
jne 0x14001efad
mov rcx, rdi
call fcn.1400166e4
jmp 0x14001efb7
xor ecx, ecx
call fcn.1400166e4
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 0x140021c8c
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.140018c40
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 0x140021d2d
cmp ebx, dword [rsp + 0x30]
je 0x140021d26
test esi, esi
je 0x140021d26
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140021d01
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140021d0e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140021ceb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140021d12
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140021d2f
mov eax, 1
jmp 0x140021d2f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140024f94
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.14000fee8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002501e
cmp byte [rbp - 0x21], r15b
je 0x140025019
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140025054
call fcn.1400169e8
test eax, eax
jne 0x140025040
cmp byte [rbp - 0x21], r15b
je 0x140025038
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140025054
cmp byte [rbp - 0x21], r15b
je 0x140025051
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.140012a40
test eax, eax
jne 0x1400250f4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000fee8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140025093
cmp byte [rbp - 0x21], r15b
je 0x1400250c8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400250c8
call fcn.1400169e8
test eax, eax
jne 0x1400250b4
cmp byte [rbp - 0x21], r15b
je 0x1400250ad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400250c8
cmp byte [rbp - 0x21], r15b
je 0x1400250c5
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.140012a40
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400250f4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400250f7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140025105
mov rcx, rdi
call fcn.1400166e4
cmp byte [rbp + 0x3f], r15b
je 0x140025114
mov rcx, qword [rbp + 0x27]
call fcn.1400166e4
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 0x140008080
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x14002d0a0]
test rcx, rcx
je 0x1400080bb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400080e0
mov rcx, qword [0x14002d0a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002e0c0], 0
jne 0x1400080f8
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x14002d0a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1400080ae
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14001d3f2]
mov qword [rsp + 0x20], 0
lea rdi, [0x14002e0e0]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400081c4
test al, 0x10
je 0x1400080c4
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x1400080c4
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140008170
jmp 0x1400080c4

Function at 0x14000efb0
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140015390
sub rsp, rax
mov eax, dword [0x1400320e0]
mov rsi, rcx
test eax, eax
je 0x14000f050
xor ebx, ebx
lea rdi, [0x1400300e0]
test eax, eax
jg 0x14000efec
jmp 0x14000f000
add rbx, 1
cmp dword [0x1400320e0], ebx
jle 0x14000f000
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000efe0
jmp 0x14000f037
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000f015
cmp word [rsi + 2], 0x3a
je 0x14000f037
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000f0a0
movsxd rbx, dword [0x1400320e0]
cmp ebx, 0x3ff
jle 0x14000f0b8
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str._HOME_
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140007870
test al, al
je 0x14000f0da
movsxd rbx, dword [0x1400320e0]
mov rcx, rdi
lea rdi, [0x1400300e0]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x1400320e0]
add eax, 1
mov dword [0x1400320e0], eax
jmp 0x14000efd1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000f024
xor eax, eax
jmp 0x14000f03c
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x1400320e0], 1
mov rdx, rax
lea rax, [0x1400300e0]
mov qword [rax + rbx*8], rdx
jmp 0x14000f037
mov rcx, rbx
call fcn.140007fc0
nop
nop word cs:[rax + rax]
nop
Function at 0x140001450
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx], 0
je 0x140001485
mov edx, 0xaf2610e1
mov r8d, 0
mov eax, 0
add r8d, 1
movzx eax, word [rcx + rax]
mov r9d, edx
ror r9d, 8
add eax, r9d
xor edx, eax
mov eax, r8d
cmp byte [rcx + rax], 0
jne 0x140001465
mov eax, edx
ret
mov edx, 0xaf2610e1
jmp 0x140001482

Function at 0x140001492
Capabilities:
Access peb ldr_data
Get ntdll base address
Populate syswhispers2 syscall list
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r14d, dword [0x140007040]
mov eax, 1
test r14d, r14d
jne 0x140001659
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x14000166a
mov r8d, 0
jmp 0x1400014e9
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x140001529
mov rdi, rax
movsxd rdx, dword [rax + 0x3c]
mov edx, dword [rax + rdx + 0x88]
test edx, edx
je 0x1400014dd
mov edx, edx
lea r8, [rax + rdx]
mov edx, dword [r8 + 0xc]
add rax, rdx
mov edx, dword [rax]
or edx, 0x20202020
cmp edx, 0x6c64746e
jne 0x1400014dd
mov eax, dword [rax + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
jne 0x1400014dd
jmp 0x140001532
test r8, r8
je 0x140001671
mov r15d, dword [r8 + 0x1c]
add r15, rdi
mov r12d, dword [r8 + 0x24]
add r12, rdi
mov eax, dword [r8 + 0x18]
lea edx, [rax - 1]
mov eax, dword [r8 + 0x20]
add rax, rdi
lea rsi, [rax + rdx*4]
lea rbx, [r12 + rdx*2]
mov r13d, r14d
jmp 0x14000156b
sub rsi, 4
lea rax, [rbx - 2]
cmp r12, rbx
je 0x1400015bb
mov rbx, rax
mov ecx, dword [rsi]
add rcx, rdi
cmp word [rcx], 0x775a
jne 0x14000155b
mov ebp, r13d
shl rbp, 4
lea rax, [0x140007048]
add rbp, rax
call fcn.140001450
mov dword [rbp], eax
movzx eax, word [rbx]
mov eax, dword [r15 + rax*4]
mov dword [rbp + 4], eax
mov qword [rbp + 8], 0
add r13d, 1
cmp r13d, 0x1f4
jne 0x14000155b
mov dword [0x140007040], 0x1f4
jmp 0x1400015d1
mov dword [0x140007040], r13d
mov eax, 1
cmp r13d, 1
je 0x140001659
mov r10d, r14d
lea r9, [0x140007048]
jmp 0x140001641
mov eax, r10d
not eax
add eax, dword [0x140007040]
cmp ecx, eax
jae 0x14000162f
mov edx, ecx
shl rdx, 4
add rdx, r9
mov r8d, dword [rdx + 4]
add ecx, 1
mov eax, ecx
shl rax, 4
add rax, r9
cmp dword [rax + 4], r8d
jae 0x1400015dd
mov ebx, dword [rdx]
mov r11, qword [rdx + 8]
mov esi, dword [rax]
mov dword [rdx], esi
mov esi, dword [rax + 4]
mov dword [rdx + 4], esi
mov rsi, qword [rax + 8]
mov qword [rdx + 8], rsi
mov dword [rax], ebx
mov dword [rax + 4], r8d
mov qword [rax + 8], r11
jmp 0x1400015dd
add r10d, 1
mov eax, dword [0x140007040]
sub eax, 1
cmp r10d, eax
jae 0x140001654
mov eax, dword [0x140007040]
sub eax, r10d
mov ecx, r14d
cmp eax, 1
jne 0x1400015ec
jmp 0x14000162f
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, 0
jmp 0x140001659
mov eax, 0
jmp 0x140001659
Function at 0x140001797
Capabilities:
Execute syscall

Disassembly:
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, 0xb942107
call fcn.140001678
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 0x1400017d9
Capabilities:
Execute syscall

Disassembly:
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, 0x9d95891e
call fcn.140001678
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 0x14000181b
Capabilities:
Execute syscall

Disassembly:
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, 0xc8270771
call fcn.140001678
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 0x14000185d
Capabilities:
Execute syscall

Disassembly:
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, 0xd42ea52
call fcn.140001678
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