joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001e3f0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x14001e4d3
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001e4d3
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 0x14001e4f1
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14001e4c3
cmp word [rax], 0x5c
jne 0x14001e4bc
lea rdx, [rax + 2]
cmp rdx, rcx
je 0x14001e4bc
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14001e4a7
movzx ecx, word [rdx]
sub cx, 0x28
cmp cx, 1
jbe 0x14001e4b9
test r8b, 0x10
jne 0x14001e4bc
movzx ecx, word [rdx]
sub cx, 0x7b
test bp, cx
jne 0x14001e4bc
mov rax, rdx
add rax, 2
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400209f0
test edi, edi
jne 0x14001e420
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.14001f920
int3

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

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x140021044
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140021030
ret

Function at 0x140021410
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 7
jbe 0x14002141e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x28
ret
Function at 0x140039560
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14008dfc0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rdx
mov qword [rsp + 0x50], rdx
xor r15d, r15d
lea r14, [r15 - 1]
cmp qword [rdx + 0x10], r15
jne 0x1400395b6
lea r8, [rcx + 0x60]
cmp rdx, r8
je 0x1400395b6
mov rdx, r8
cmp qword [r8 + 0x18], 7
jbe 0x1400395aa
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
mov rcx, rbx
call fcn.140005d00
mov rcx, rbx
call fcn.140021410
test al, al
je 0x140039688
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400395d3
mov rcx, qword [rbx]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, r14
je 0x140039688
mov qword [rsp + 0x48], r15
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003967e
mov rbp, qword [rsp + 0x48]
mov rcx, rbp
call fcn.14003d7dc
mov rdi, rax
test rax, rax
je 0x140039641
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.1400632e0
jmp 0x140039644
mov rdi, r15
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x48]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140039671
movsxd rax, dword [rdi + 0x3c]
mov r14d, dword [rax + rdi + 8]
test rdi, rdi
je 0x14003967e
mov rcx, rdi
call fcn.14003d438
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rbx
call fcn.1400027e0
mov rax, r14
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003d550
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400396c0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x14008dfc0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r14, rdx
mov r13, rcx
mov qword [rsp + 0x78], rdx
xor r12d, r12d
mov rsi, qword [rcx + 0x90]
test rsi, rsi
jne 0x140039826
lea rcx, [rsp + 0x58]
call fcn.1400099a0
mov rbx, rax
mov qword [rsp + 0x50], rax
lea rsi, [r12 - 1]
cmp qword [rax + 0x10], r12
jne 0x140039746
lea r8, [r13 + 0x60]
cmp rax, r8
je 0x140039746
mov rdx, r8
cmp qword [r8 + 0x18], 7
jbe 0x14003973a
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
mov rcx, rbx
call fcn.140005d00
mov rcx, rbx
call fcn.140021410
test al, al
je 0x140039817
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140039763
mov rcx, qword [rbx]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, rsi
je 0x140039817
mov qword [rsp + 0x48], r12
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003980d
mov r15, qword [rsp + 0x48]
mov rcx, r15
call fcn.14003d7dc
mov rdi, rax
test rax, rax
je 0x1400397d1
mov r8, r15
xor edx, edx
mov rcx, rax
call fcn.1400632e0
jmp 0x1400397d4
mov rdi, r12
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x48]
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140039800
movsxd rax, dword [rdi + 0x3c]
mov esi, dword [rax + rdi + 8]
test rdi, rdi
je 0x14003980d
mov rcx, rdi
call fcn.14003d438
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rbx
call fcn.1400027e0
mov qword [r13 + 0x90], rsi
mov rcx, r14
call fcn.1400027e0
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14003d550
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003a330
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14008dfc0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x80]
call qword [0x14008f648]
mov rbx, rax
test rax, rax
jne 0x14003a465
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov byte [rsp + 0x20], 1
mov r9b, 1
lea r8d, [rdi + 0x10]
lea rcx, [rsp + 0x60]
call fcn.140022810
nop
mov r8, rax
lea rdx, [0x14008f930]
lea rcx, [rsp + 0x40]
call fcn.140021d80
nop
xor r9d, r9d
mov r8b, 1
lea rdx, [0x14008f710]
mov rcx, rax
call fcn.14001b840
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x14003a410
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a40b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003a4a0
call fcn.14003d438
movdqa xmm0, xmmword [0x1400678d0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], di
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x14003a461
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a45c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003a49a
call fcn.14003d438
xor al, al
jmp 0x14003a479
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14003d550
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.14004442c
nop
call fcn.14004442c
nop
int3
Function at 0x14003a4b0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14008dfc0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x80]
call qword [0x14008f648]
mov rbx, rax
test rax, rax
jne 0x14003a5e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov byte [rsp + 0x20], 1
mov r9b, 1
lea r8d, [rdi + 0x10]
lea rcx, [rsp + 0x60]
call fcn.140022810
nop
mov r8, rax
lea rdx, [0x14008f930]
lea rcx, [rsp + 0x40]
call fcn.140021d80
nop
xor r9d, r9d
mov r8b, 1
lea rdx, [0x14008f710]
mov rcx, rax
call fcn.14001b840
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x14003a590
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a58b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003a62e
call fcn.14003d438
movdqa xmm0, xmmword [0x1400678d0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], di
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x14003a5e1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a5dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003a628
call fcn.14003d438
xor al, al
jmp 0x14003a607
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14003d550
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.14004442c
nop
call fcn.14004442c
nop
int3
Function at 0x14003e20c
Capabilities:
Parse pe header

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

Function at 0x140049bd4
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140049a3f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140049a3f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140049a3f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140049a3f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140049a3f
cmp dword [rcx + 0x84], 0xe
jbe 0x140049a3f
cmp dword [rcx + 0xf8], 0
je 0x140049a3f
mov ecx, ebx
call fcn.140049af0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400498cc
nop
cmp dword [rbp + 0x20], 0
je 0x140049a8d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140049a98
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400499d0

Function at 0x14004a238
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14008dfc0]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1400791a8]
mov rbp, rcx
call fcn.1400579f4
xor edi, edi
test rax, rax
je 0x14004a31e
mov ebx, edi
call fcn.14004a998
mov r14d, dword [rax]
call fcn.14004a998
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140057940
mov rsi, rax
test rax, rax
je 0x14004a2af
call fcn.14004a998
mov dword [rax], r14d
jmp 0x14004a2d9
call fcn.14004a998
cmp dword [rax], 0x22
jne 0x14004a316
call fcn.14004a998
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140057940
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14004a316
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14004a2dd
cmp rax, 3
je 0x14004a2f8
mov rcx, rsi
call fcn.14004a194
test al, al
je 0x14004a309
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14004a309
mov dil, 1
mov rcx, rbx
call fcn.140044928
mov al, dil
jmp 0x14004a320
mov rcx, rbx
call fcn.140044928
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14003d550
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14004a4b4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14004a4eb
call fcn.14004a998
mov dword [rax], SafeArrayUnaccessData
call fcn.14004440c
xor eax, eax
jmp 0x14004a579
mov rdx, r9
mov rcx, r8
call fcn.14004a450
mov rbx, rax
test rax, rax
je 0x14004a576
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14004a37c]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14004a563
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004a90c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14004a54a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14004a559
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14005342c
jmp 0x14004a576
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14004a573
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14005b778
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 0x14005b7ff
mov rsi, rbx
cmp word [rax], bp
je 0x14005b7be
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14005b7a8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14005b7a4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140053468
mov rdi, rax
test rax, rax
je 0x14005b7ec
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140062c40
mov rbp, rdi
xor ecx, ecx
call fcn.14005342c
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 0x14005e390
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.140053054
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 0x14005e431
cmp ebx, dword [rsp + 0x30]
je 0x14005e42a
test esi, esi
je 0x14005e42a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14005e405
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14005e412
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14005e3ef
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14005e416
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14005e433
mov eax, 1
jmp 0x14005e433
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140060570
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14008dfc0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400605ba
call fcn.14004a978
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayDestroy
call fcn.14004a998
mov dword [rax], SafeArrayDestroy
call fcn.14004440c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14003d550
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400605c5
lea eax, [rbx + 1]
jmp 0x1400605a7
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 0x1400605a5
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400605a7

Function at 0x1400626f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140062718
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140062718
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14088ea26
Capabilities:
Execute anti-debugging instructions

Disassembly:
sub eax, 0xe2b70ce
not eax
ror eax, 3
test r12, 0x10e81569
jmp 0x1407f5eca
jmp rsi
push r9
not r9d
btc r9, 0x6e
sbb r9b, cl
xor dword [rsp], eax
movsxd r9, r10d
sar r9, 0x80
pop r9
cmc
clc
movsxd rax, eax
cmp rbx, 0x42697df7
add rsi, rax
jmp 0x1407c2323
push r8
bswap r8w
push rax
push r15
movsx rax, r15w
lahf
movzx eax, r9w
push rdx
push r14
movzx rdx, r10w
mov r8b, 0xed
movsx edx, r9w
push r13
push r10
movsxd r8, ebp
mov ah, 0x75
cbw
push r11
movsx r8, bp
cqo
push rbp
push rbx
pushfq
cwde
movzx r11d, r12w
bswap edx
push rsi
movzx r10, di
cdqe
rdtsc
push r9
movsx rsi, ax
cmovg rdx, rdx
rdtsc
push rdi
push r12
push rcx
cbw
movabs r11, 0
push r11
inc r10
dec r9b
cqo
mov r10, qword [rsp + 0x90]
movzx eax, si
bswap r10d
not r8b
movzx ax, r15b
inc r10d
cmovs rax, rsi
ror r10d, 3
bswap eax
add dil, spl
xor r10d, 0x69603910
and rdx, rbx
shr dh, 0x45
add r10, r11
not edx
sar dx, 0x7e
movabs r8, 0x100000000
add r10, r8
rcl dl, 0xb4
bsf rsi, r8
shl r9w, 0x1a
mov rdi, rsp
sub rsp, 0x180
btr r9, 0x46
cmp ebp, 0x1260366c
and rsp, 0xfffffffffffffff0
mov r9, r10
movabs rdx, 0
xor esi, r9d
stc
rol rax, cl
sub r9, rdx
setbe al
lea rsi, [0x14088eb1e]
sub r10, 4
cbw
mov eax, dword [r10]
stc
clc
xor eax, r9d
cmp rax, r13
not eax
jmp 0x1407c15df
Function at 0x1400ce03b
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x14013f510
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x14013f538
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x14013f582
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x14013f52d
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret

Function at 0x1400ce743
Capabilities:
Delete file

Disassembly:
jmp 0x140232190
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1402321bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400ceb3f
mov eax, 0xffffffff
jmp 0x1402321be
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400cf9a4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1401f7530
mov rax, rcx
neg rcx
test rax, 7
je 0x1401f754d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401f75a8
test al, 7
jne 0x1401f7540
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1401f7561
mov rdx, qword [rax - 8]
test dl, dl
je 0x1401f75d2
test dh, dh
je 0x1401f75cc
shr rdx, 0x10
test dl, dl
je 0x1401f75c6
test dh, dh
je 0x1401f75c0
shr rdx, 0x10
test dl, dl
je 0x1401f75ba
test dh, dh
je 0x1401f75b4
shr edx, 0x10
test dl, dl
je 0x1401f75ae
test dh, dh
jne 0x1401f7561
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400cf9e5
Capabilities:
Query environment variable

Disassembly:
jmp 0x140249730
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1402492b0
lea rcx, [rsp + 0x20]
call fcn.140249300
movzx eax, al
test eax, eax
jne 0x140249775
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1402492e0
mov rax, qword [rsp + 0x40]
jmp 0x14024986f
lea rcx, [rsp + 0x20]
call fcn.140249400
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1402493a0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1400cfdaa
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400cf2a6
lea rcx, [rsp + 0x28]
call fcn.1400d0309
movzx eax, al
test eax, eax
jne 0x14024980f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400d1993
lea rcx, [rsp + 0x20]
call fcn.1402492e0
mov rax, qword [rsp + 0x50]
jmp 0x14024986f
lea rcx, [rsp + 0x20]
call fcn.140249400
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400d2af0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400cfcd8
lea rcx, [rsp + 0x28]
call fcn.1400d35a4
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400d1993
lea rcx, [rsp + 0x20]
call fcn.1402492e0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400cff71
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401933e0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140192d60
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14019341f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402f6020]
jmp 0x140193429
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400d020f
Capabilities:
Query environment variable

Disassembly:
jmp 0x140249480
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1402492b0
lea rcx, [rsp + 0x40]
call fcn.140249430
movzx eax, al
test eax, eax
jne 0x1402494c8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1402492e0
mov rax, qword [rsp + 0x70]
jmp 0x140249699
lea rcx, [rsp + 0x40]
call fcn.140249400
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1402493a0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140249400
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400d156f
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14024956e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1402492e0
mov rax, qword [rsp + 0x80]
jmp 0x140249699
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400cfdaa
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400cfb7a
lea rcx, [rsp + 0x48]
call fcn.1400cf4fe
movzx eax, al
test eax, eax
jne 0x1402495d5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400cde6a
lea rcx, [rsp + 0x40]
call fcn.1402492e0
mov rax, qword [rsp + 0x88]
jmp 0x140249699
lea rcx, [rsp + 0x48]
call fcn.1400d0796
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140249400
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400d156f
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14024966b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400cde6a
lea rcx, [rsp + 0x40]
call fcn.1402492e0
mov rax, qword [rsp + 0xa0]
jmp 0x140249699
lea rcx, [rsp + 0x48]
call fcn.1400cfb2a
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400cde6a
lea rcx, [rsp + 0x40]
call fcn.1402492e0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret