joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140314168
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, [0x14065bb90]
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 0x1403141bf
cmp word [rdx], r13w
jne 0x1403141bf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1403141c4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1403142e9
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14031430a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1403141fd
mov rdx, r9
mov word [rbx], cx
jmp 0x140314224
cmp r9, r8
jae 0x140314234
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 0x1403141de
jmp 0x1403142e9
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 0x1403142de
cmp dword [rsp + 0x80], esi
je 0x1403142de
lea r8, [0x14065bb90]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1403142b6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140314286
mov word [rbx], r13w
jmp 0x1403142e6
mov ecx, reloc.WS2_32.dll_listen
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 0x140314293
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1403142e6
cmp word [rsp + 0x70], r13w
jne 0x1403142c3
cmp rbx, r14
je 0x140314280
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14030a93c
cmp word [rsp + 0x70], r13w
je 0x1403142e9
mov ecx, reloc.WS2_32.dll_listen
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, [0x14065bb90]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1403142e3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1403142e9
Function at 0x140318870
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140318886
mov al, 1
jmp 0x1403188e6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140318897
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1403188e4
mov ecx, dword [rcx + 0x18]
nop
call fcn.14031f168
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1403188e4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1403188e4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1403188e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1403188e6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14031f41c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14031f43c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140302dd8
or eax, 0xffffffff
jmp 0x14031f43e
xor eax, eax
add rsp, 0x28
ret
Function at 0x140321488
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 0x1403214b8
xor eax, eax
jmp 0x14032157b
mov rbp, rbx
cmp word [rax], si
je 0x1403214dd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1403214c4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1403214c0
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.14031bd08
movsxd r14, eax
test eax, eax
jne 0x14032151b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1403214b1
mov rcx, r14
call fcn.1403168e8
mov rdi, rax
test rax, rax
jne 0x140321534
xor ecx, ecx
call fcn.1403168ac
jmp 0x140321510
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.14031bd08
test eax, eax
jne 0x140321565
mov rcx, rdi
call fcn.1403168ac
jmp 0x14032156f
xor ecx, ecx
call fcn.1403168ac
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 0x140321598
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 0x14032161f
mov rsi, rbx
cmp word [rax], bp
je 0x1403215de
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1403215c8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1403215c4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1403168e8
mov rdi, rax
test rax, rax
je 0x14032160c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14032f1a0
mov rbp, rdi
xor ecx, ecx
call fcn.1403168ac
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 0x14032446c
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.1403180a8
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 0x14032450d
cmp ebx, dword [rsp + 0x30]
je 0x140324506
test esi, esi
je 0x140324506
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1403244e1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1403244ee
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1403244cb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1403244f2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14032450f
mov eax, 1
jmp 0x14032450f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140324954
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.14030a93c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14030a93c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140324aa4
cmp rax, 0xffffffffffffffff
je 0x140324aa4
xor edi, edi
test rbp, rbp
jle 0x140324a4f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140318a84
mov rbx, rax
test rax, rax
jne 0x1403249dc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140324a45
mov edx, 0x8000
mov ecx, r14d
call fcn.14030d720
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.140315520
cmp eax, 0xffffffff
je 0x140324a25
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1403249ec
mov edx, r15d
mov ecx, r14d
call fcn.14030d720
jmp 0x140324a45
cmp byte [rsi + 0x38], dil
je 0x140324a3c
cmp dword [rsi + 0x34], 5
jne 0x140324a3c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140324a45
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1403168ac
jmp 0x140324ab8
jns 0x140324ab8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14030a93c
cmp rax, 0xffffffffffffffff
jne 0x140324a70
cmp byte [rsi + 0x30], dil
je 0x140324ab8
mov edi, dword [rsi + 0x2c]
jmp 0x140324ab8
mov ecx, r14d
call fcn.14031f168
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140324ab8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x140324ab8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140324ab1
mov eax, dword [rsi + 0x2c]
jmp 0x140324ab6
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14030a93c
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 0x140326ca0
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14059b5c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140326cea
call fcn.140302e44
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.140302e64
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1402fb50c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1402e5a90
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140326cf5
lea eax, [rbx + 1]
jmp 0x140326cd7
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140326cd5
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140326cd7
Function at 0x1403278fc
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.1402ff974
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140327986
cmp byte [rbp - 0x21], r15b
je 0x140327981
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1403279bc
call fcn.1403192f8
test eax, eax
jne 0x1403279a8
cmp byte [rbp - 0x21], r15b
je 0x1403279a0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1403279bc
cmp byte [rbp - 0x21], r15b
je 0x1403279b9
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.14030857c
test eax, eax
jne 0x140327a5c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1402ff974
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1403279fb
cmp byte [rbp - 0x21], r15b
je 0x140327a30
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140327a30
call fcn.1403192f8
test eax, eax
jne 0x140327a1c
cmp byte [rbp - 0x21], r15b
je 0x140327a15
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140327a30
cmp byte [rbp - 0x21], r15b
je 0x140327a2d
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.14030857c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140327a5c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140327a5f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140327a6d
mov rcx, rdi
call fcn.1403168ac
cmp byte [rbp + 0x3f], r15b
je 0x140327a7c
mov rcx, qword [rbp + 0x27]
call fcn.1403168ac
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 0x14032a9e0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov word [rbx + 0x2e], ss
dec dword [rax - 0x7800dab4]
and al, 0x98
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
xchg edi, eax
push rsp
sub dword [rcx - 0x1d7ac6a], ebx
xchg edi, eax
push rsp
sub edi, edi
xchg esi, eax
push rbx
sub dh, bh
xchg edi, eax
push rsp
sub edi, edi
xchg edi, eax
push rsp
sub edi, edi
xchg esi, eax
push rbx
sub dh, bh
xchg edi, eax
push rsp
sub edi, edi
xchg esi, eax
push rbx
sub dh, bh
xchg edi, eax
push rsp
sub edi, edi
xchg esi, eax
push rbx
sub dh, bh
xchg edi, eax
push rsp
sub edi, edi
xchg esi, eax
push rbx
sub dh, bh
xchg edi, eax
push rsp
sub edi, edi
xchg edi, eax
push rsp
sub edi, edi
xchg esi, eax
push rbx
sub dh, bh
xchg edi, eax
push rsp
sub edi, edi
xchg esi, eax
push rbx
sub dh, bh
xchg edi, eax
push rsp
sub edi, edi
xchg esi, eax
push rbx
sub dh, bh
xchg edi, eax
push rsp
sub edi, edi
xchg esi, eax
push rbx
sub dh, bh
xchg edi, eax
push rsp
sub edi, edi
xchg edi, eax
push rsp
sub edi, edi
xchg esi, eax
push rbx
sub dh, bh
xchg edi, eax
push rsp
sub edi, edi
xchg esi, eax
push rbx
sub dh, bh
xchg edi, eax
push rsp
sub edi, edi
xchg esi, eax
push rbx
sub dh, bh
xchg edi, eax
push rsp
sub edi, edi
xchg esi, eax
push rbx
sub dh, bh
xchg edi, eax
push rsp
sub edi, edi
xchg edi, eax
push rsp
sub edi, edi
xchg esi, eax
push rbx
sub dh, bh
xchg edi, eax
push rsp
sub edi, edi
xchg esi, eax
push rbx
sub dh, bh
xchg esi, eax
push rbx
sub bh, bh
stosb byte [rdi], al
xchg ebx, eax
test dh, bh
mov eax, 0xb7ffb8b8
mov bh, 0xb7
invalid
Function at 0x140001780
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov r8d, 0xb
lea rdx, str.C:Windows_
lea rcx, [rsp + 0x30]
call fcn.140002d30
nop
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rsi + rdi], 0
jne 0x1400017d4
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x140001821
lea rax, [rcx + rdi]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x30]
cmp rdx, 0xf
cmova rbx, qword [rsp + 0x30]
add rbx, rcx
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x140001836
mov qword [rsp + 0x20], rdi
mov r9, rsi
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140002fa0
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140001875
lea rdx, str.could_not_delete_files.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400029f0
lea rdx, [0x140002bc0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400018b5
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400018b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400018b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003774
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400034d0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140001b10
Capabilities:
Execute command

Disassembly:
sub rsp, 0x68
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, 0x39
lea rdx, str.https:__download.technitium.com_tmac_TMACv6.0.7_Setup.zip
lea rcx, [rsp + 0x20]
call fcn.140002d30
nop
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140002c00
cmp qword [rax + 0x18], 0xf
jbe 0x140001b56
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140001b9f
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b9a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003774
movdqa xmm0, xmmword [0x140005ca0]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140001bf2
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003774
add rsp, 0x68
ret
Function at 0x140004074
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400040be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400040be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400040be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400040be
cmp dword [rcx + 0x84], 0xe
jbe 0x1400040be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400040c0
xor al, al
add rsp, 0x28
ret
Function at 0x1400142e0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400143a5
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400143a5
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x1400143be
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x140014395
cmp byte [rcx], 0x5c
jne 0x14001438e
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x14001438e
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14001437c
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x14001438b
test r8b, 0x10
jne 0x14001438e
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x14001438e
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.140016dd0
test edi, edi
jne 0x140014300
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.140015850
int3

Function at 0x140017590
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400175c4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400175b0
ret
Function at 0x140018410
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x40
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
lea r14, [rsp + 0x48]
movabs rbp, 0xff00ff00ff00ff00
mov qword [r11 - 0x20], rbp
mov qword [r11 - 0x18], r14
mov rbx, qword [r14]
xor rbx, rbp
mov qword [r11 - 0x28], rbx
mov qword [r14], rax
xor ecx, ecx
lea rsi, [0x140001950]
lea rdi, [0x140000000]
mov rax, qword [0x140086990]
test rax, rax
je 0x14001849e
xor edx, edx
cmp rax, rsi
je 0x14001848d
inc ecx
mov edx, ecx
mov rax, qword [rdi + rcx*8 + 0x86990]
test rax, rax
jne 0x140018475
jmp 0x14001849e
mov r8, qword [rdi + rdx*8 + 0x86cb0]
test r8, r8
jne 0x14001857f
mov edx, 0x1f4
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rax
test rax, rax
je 0x14001855e
mov rax, rsi
mov rcx, r8
mov edx, 3
nop
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x1400184d0
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
mov eax, dword [rax + 0x70]
mov dword [rcx + 0x70], eax
mov rax, qword [0x140086980]
mov qword [rdi + rax*8 + 0x86990], rsi
mov qword [rdi + rax*8 + 0x86cb0], r8
inc rax
mov qword [0x140086980], rax
lea rcx, [0x14000ee20]
call r8
nop
xor rbx, rbp
mov qword [r14], rbx
xor eax, eax
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