joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140164250
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
test r8, r8
je 0x140164347
mov rcx, qword [rcx + 8]
movsxd r9, dword [rcx + 0x3c]
cmp dword [rcx + r9 + 0x84], 0
je 0x140164347
add r9, rcx
xor eax, eax
cmp word [r9 + 0x14], 0x78
jb 0x14016436c
add r9, 0x88
je 0x14016436c
mov eax, dword [r9]
test rax, rax
je 0x140164347
add rax, rcx
je 0x140164347
cmp rdx, 0xffff
jbe 0x140164366
mov r10d, dword [rax + 0x18]
mov r11d, dword [rax + 0x20]
lea r9, [rcx + r11]
test r11, r11
cmove r9, r11
test r10, r10
je 0x140164347
lea r10, [r9 + r10*4]
mov r11b, byte [rdx]
inc rdx
mov rsi, r9
mov rdi, r10
sub rdi, rsi
mov rbx, rdi
sar rbx, 2
shr rdi, 0x3f
add rdi, rbx
and rdi, 0xfffffffffffffffe
mov r14d, dword [rsi + rdi*2]
lea rbx, [rcx + r14]
test r14, r14
cmove rbx, r14
test r11b, r11b
je 0x140164320
mov r14, rdx
mov ebp, r11d
cmp bpl, byte [rbx]
jne 0x140164322
inc rbx
mov bpl, byte [r14]
inc r14
test bpl, bpl
jne 0x14016430d
xor ebp, ebp
lea rdi, [rsi + rdi*2]
movzx ebx, byte [rbx]
cmp bpl, bl
je 0x14016434b
movzx ebp, bpl
sub ebp, ebx
cmovs r10, rdi
add rdi, 4
test ebp, ebp
cmovg rsi, rdi
cmp rsi, r10
jne 0x1401642db
xor eax, eax
jmp 0x14016436c
mov edx, dword [rax + 0x24]
add rcx, rdx
test rdx, rdx
cmove rcx, rdx
sub rdi, r9
sar rdi, 1
movzx edx, word [rcx + rdi]
add dx, word [rax + 0x10]
mov word [r8], dx
mov al, 1
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x14016bf40
Capabilities:
Hash data using sha256

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
mov rsi, r8
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x98], rax
xorps xmm0, xmm0
lea rdi, [rsp + 0x48]
movups xmmword [rdi + 0x34], xmm0
movups xmmword [rdi + 0x28], xmm0
movups xmmword [rdi + 0x18], xmm0
movups xmmword [rdi + 8], xmm0
movups xmmword [rdi - 8], xmm0
movaps xmm0, xmmword [0x140281640]
movups xmmword [rdi - 0x28], xmm0
movaps xmm0, xmmword [0x140281650]
movups xmmword [rdi - 0x18], xmm0
mov dword [rdi + 0x44], 0x20
test rdx, rdx
je 0x14016bfe7
mov r14, rdx
mov rbx, rcx
lea eax, [rdx*8]
mov rcx, rdx
shr rcx, 0x1d
mov dword [rsp + 0x44], ecx
mov dword [rsp + 0x40], eax
mov r8, rdx
cmp rdx, 0x40
jb 0x14016c0d2
shr r8, 6
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140087d80
mov r8, r14
and r8, 0x3f
jne 0x14016c0c8
mov eax, dword [rsp + 0x88]
lea rcx, [rax + 1]
mov ebx, dword [rsp + 0x8c]
mov ebp, dword [rsp + 0x40]
mov r14d, dword [rsp + 0x44]
mov byte [rsp + rax + 0x48], 0x80
cmp rax, 0x38
jae 0x14016c0ea
cmp rcx, 0x38
je 0x14016c02a
mov r8d, 0x38
sub r8, rcx
add rcx, rdi
xor edx, edx
call fcn.140189600
bswap r14d
lea rcx, [rsp + 0x20]
mov dword [rcx + 0x60], r14d
bswap ebp
mov dword [rcx + 0x64], ebp
mov r8d, 1
mov rdx, rdi
call fcn.140087d80
xorps xmm0, xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi], xmm0
mov dword [rdi + 0x40], 0
lea eax, [rbx - 0x21]
cmp eax, 0xffffffe3
jb 0x14016c081
shr rbx, 2
xor eax, eax
mov ecx, dword [rsp + rax*4 + 0x20]
bswap ecx
mov dword [rsi + rax*4], ecx
inc rax
cmp rbx, rax
jne 0x14016c070
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1401874c0
mov rax, rsi
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
and r14, 0xffffffffffffffc0
add rbx, r14
mov r14d, r8d
mov dword [rsp + 0x88], r14d
mov rcx, rdi
mov rdx, rbx
call fcn.140188f50
jmp 0x14016bfe7
cmp eax, 0x3f
je 0x14016c102
mov r8d, 0x3f
sub r8, rax
add rcx, rdi
xor edx, edx
call fcn.140189600
lea rcx, [rsp + 0x20]
mov r8d, 1
mov rdx, rdi
call fcn.140087d80
xor ecx, ecx
jmp 0x14016c017
Function at 0x140175920
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov ebx, ecx
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [0x1402b0a88]
mov ecx, dword [0x1402ab7ac]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140175b0c
mov rsi, qword [0x1402b0a80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140175b4e
movzx ebx, bl
dec ebx
or ebx, 1
cmp byte [0x1402b0a30], 0
mov eax, 8
mov ecx, 1
cmove ecx, eax
xor ebp, ebp
add ebx, dword [0x1402b0a34]
mov dword [0x1402b0a34], ebx
cmovne ebp, ecx
mov eax, dword [0x1402b0a38]
cmp ebp, eax
je 0x140175aeb
test eax, eax
je 0x140175a7c
mov rax, qword [0x14029ee18]
lea rcx, [0x140182e50]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x140175bac
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x140175bbd
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b0aa0]
mov qword [rsp + 0x28], rax
mov rcx, qword [0x1402b0a90]
xor edx, edx
cmp rax, rcx
setns dl
movabs r8, 0x7fffffffffffffff
add r8, rdx
sub rax, rcx
cmovo rax, r8
movabs rdx, 0x8000000000000001
lea r8, [rax + rdx]
mov rcx, qword [0x1402b0a40]
cmp r8, 2
jb 0x140175b93
lea rdx, [rcx + rax]
sar rdx, 0x3f
btc rdx, 0x3f
add rcx, rax
cmovo rcx, rdx
mov rax, rcx
mov qword [0x1402b0a40], rax
mov ecx, dword [0x1402b0a38]
call qword [sym.imp.WINMM.dll_timeEndPeriod]
mov dword [0x1402b0a38], ebp
test ebx, ebx
je 0x140175aeb
mov rax, qword [0x14029ee18]
lea rcx, [0x140182e50]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x140175b5b
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x140175b6c
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b0aa0]
mov qword [0x1402b0a90], rax
mov ecx, dword [0x1402b0a38]
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401874c0
mov al, 1
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x1402b0a88]
call fcn.140184b80
cmp dword [0x1402b0a88], 0xffffffff
jne 0x14017595e
mov ecx, 8
call fcn.140184834
mov qword [rax], 0
mov qword [0x1402b0a80], rax
lea rcx, [0x1402b0a88]
call fcn.140184be8
jmp 0x14017595e
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140175976
mov rcx, rdi
call qword [case.0x1401eda70.0]
mov rax, qword [rdi]
jmp 0x140175ad8
mov rcx, qword [0x1402b0aa0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140175ad8
add rdx, rcx
cmp rdx, 1
ja 0x140175a69
cmp rcx, rax
je 0x140175a69
int3
mov rcx, rdi
call qword [case.0x1401eda70.0]
mov rax, qword [rdi]
jmp 0x140175a10
mov rcx, qword [0x1402b0aa0]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140175a0b
Function at 0x140176920
Capabilities:
Move file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a0
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x498], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x450]
mov qword [r14 + 0x40], rax
movaps xmm0, xmmword [0x1402724c0]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, [0x14027a363]
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x240]
mov rcx, r15
mov r9d, 0x1d6
call fcn.1400ed710
xor r12d, r12d
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14011a620
lea rcx, [rsp + 0x240]
mov r8d, 0x208
mov dl, 0xaa
call fcn.140189600
cmp byte [rbx + 0x17], 0
mov rax, rbx
jns 0x1401769d2
mov rax, qword [rbx]
movzx ecx, word [rax + r12*2]
mov word [rsp + r12*2 + 0x240], cx
test cx, cx
je 0x1401769fb
inc r12
cmp r12, 0x104
jne 0x1401769d2
mov word [rsp + 0x446], 0
lea rcx, [rsp + 0x240]
call fcn.1400da320
lea rcx, [rsp + 0x30]
mov r8d, 0x208
mov dl, 0xaa
call fcn.140189600
cmp byte [rdi + 0x17], 0
mov rax, rdi
jns 0x140176a26
mov rax, qword [rdi]
xor ecx, ecx
movzx edx, word [rax + rcx*2]
mov word [rsp + rcx*2 + 0x30], dx
test dx, dx
je 0x140176a4c
inc rcx
cmp rcx, 0x104
jne 0x140176a28
mov word [rsp + 0x236], 0
lea rcx, [rsp + 0x30]
call fcn.1400da320
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x140176a62
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140176a6e
mov rcx, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x140176af6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140012290
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x140176aa1
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x140176aaa
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dil
test rsi, rsi
je 0x140176ac5
test eax, eax
je 0x140176afb
lea rcx, [rsp + 0x450]
call fcn.14011a160
mov rcx, qword [rsp + 0x498]
xor rcx, rsp
call fcn.1401874c0
mov eax, edi
add rsp, 0x4a0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov dil, 1
jmp 0x140176ac5
cmp ebp, 0xfffffffc
jne 0x140176b07
call fcn.1401ee6c0
mov ebp, eax
mov dword [rsi], ebp
xor edi, edi
jmp 0x140176ac5
Function at 0x140183700
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
push rdi
mov rdx, qword [rcx]
mov r9, qword [rcx + 8]
mov r8, r9
sub r8, rdx
je 0x140183792
mov rax, r8
shr rax, 2
mov r10, rdx
not r10
add r10, r9
jne 0x14018372c
xor r9d, r9d
jmp 0x14018376c
mov r10, r8
and r10, 0xfffffffffffffffe
xor r9d, r9d
lea r11, [0x14027c090]
nop dword [rax]
movzx esi, al
movzx edi, byte [rdx + r9]
xor edi, esi
shr eax, 8
xor eax, dword [r11 + rdi*4]
movzx esi, al
movzx edi, byte [rdx + r9 + 1]
xor edi, esi
shr eax, 8
xor eax, dword [r11 + rdi*4]
add r9, 2
cmp r10, r9
jne 0x140183740
test r8b, 1
je 0x14018378c
movzx r8d, al
movzx edx, byte [rdx + r9]
xor edx, r8d
lea r8, [0x14027c090]
shr eax, 8
xor eax, dword [r8 + rdx*4]
mov dword [rcx + 0x18], eax
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x14018378c

Function at 0x140186708
Capabilities:
Parse pe header

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

Function at 0x140186b8c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140186c04
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140186c04
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140186c04
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140186bf8
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140186c16
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140186be6
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140186c06
Function at 0x140199018
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 0x14019904f
call fcn.1401848e8
mov dword [rax], 0x16
call fcn.1401b3384
xor eax, eax
jmp 0x1401990dd
mov rdx, r9
mov rcx, r8
call fcn.140199100
mov rbx, rax
test rax, rax
je 0x1401990da
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140199170]
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 0x1401990c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14019c0c4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401990ae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401990bd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140183010
jmp 0x1401990da
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401990d7
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 0x14019c404
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 [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x14025f8e8]
mov rbp, rcx
call fcn.1401b5c20
xor edi, edi
test rax, rax
je 0x14019c4ea
mov ebx, edi
call fcn.1401848e8
mov r14d, dword [rax]
call fcn.1401848e8
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140185f14
mov rsi, rax
test rax, rax
je 0x14019c47b
call fcn.1401848e8
mov dword [rax], r14d
jmp 0x14019c4a5
call fcn.1401848e8
cmp dword [rax], 0x22
jne 0x14019c4e2
call fcn.1401848e8
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140185f14
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14019c4e2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14019c4a9
cmp rax, 3
je 0x14019c4c4
mov rcx, rsi
call fcn.14019c360
test al, al
je 0x14019c4d5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14019c4d5
mov dil, 1
mov rcx, rbx
call fcn.140183010
mov al, dil
jmp 0x14019c4ec
mov rcx, rbx
call fcn.140183010
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401874c0
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 0x1401ad440
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401ad468
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401ad468
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1401b73d8
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.1401b0fe4
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 0x1401b7479
cmp ebx, dword [rsp + 0x30]
je 0x1401b7472
test esi, esi
je 0x1401b7472
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1401b744d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1401b745a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1401b7437
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1401b745e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401b747b
mov eax, 1
jmp 0x1401b747b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401b89e4
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 0x1401b8a14
xor eax, eax
jmp 0x1401b8ad7
mov rbp, rbx
cmp word [rax], si
je 0x1401b8a39
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401b8a20
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401b8a1c
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.1401b8904
movsxd r14, eax
test eax, eax
jne 0x1401b8a77
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401b8a0d
mov rcx, r14
call fcn.1400b5a20
mov rdi, rax
test rax, rax
jne 0x1401b8a90
xor ecx, ecx
call fcn.140183010
jmp 0x1401b8a6c
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.1401b8904
test eax, eax
jne 0x1401b8ac1
mov rcx, rdi
call fcn.140183010
jmp 0x1401b8acb
xor ecx, ecx
call fcn.140183010
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 0x1401b8af4
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 0x1401b8b7b
mov rsi, rbx
cmp word [rax], bp
je 0x1401b8b3a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401b8b24
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401b8b20
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400b5a20
mov rdi, rax
test rax, rax
je 0x1401b8b68
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140188f50
mov rbp, rdi
xor ecx, ecx
call fcn.140183010
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 0x1401bb134
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.1401939b4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401bb1be
cmp byte [rbp - 0x21], r15b
je 0x1401bb1b9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401bb1f4
call fcn.1401b17b4
test eax, eax
jne 0x1401bb1e0
cmp byte [rbp - 0x21], r15b
je 0x1401bb1d8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401bb1f4
cmp byte [rbp - 0x21], r15b
je 0x1401bb1f1
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.140198e9c
test eax, eax
jne 0x1401bb294
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1401939b4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401bb233
cmp byte [rbp - 0x21], r15b
je 0x1401bb268
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401bb268
call fcn.1401b17b4
test eax, eax
jne 0x1401bb254
cmp byte [rbp - 0x21], r15b
je 0x1401bb24d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1401bb268
cmp byte [rbp - 0x21], r15b
je 0x1401bb265
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.140198e9c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1401bb294
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1401bb297
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1401bb2a5
mov rcx, rdi
call fcn.140183010
cmp byte [rbp + 0x3f], r15b
je 0x1401bb2b4
mov rcx, qword [rbp + 0x27]
call fcn.140183010
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 0x1401bb3bc
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1401bb406
call fcn.14019c0a4
mov dword [rax], 0xf
call fcn.1401848e8
mov dword [rax], 0xd
call fcn.1401b3384
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401874c0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1401bb411
lea eax, [rbx + 1]
jmp 0x1401bb3f3
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 0x1401bb3f1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1401bb3f3
Function at 0x1401bd4b8
Capabilities:
Get file size

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

Function at 0x1401c8c50
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rsi
rdtsc
mov r11, qword [0x14029be00]
mov rcx, qword [0x14029be10]
mov r9, qword [0x14029be18]
mov r8, qword [0x14029be20]
mov r10, qword [0x14029be28]
mov rsi, qword [0x14029be00]
test r11b, 1
jne 0x1401c8ca7
cmp r11, rsi
jne 0x1401c8ca7
shl rdx, 0x20
or rdx, rax
sub rdx, r9
cmp rdx, r10
jae 0x1401c8ca7
imul rdx, r8
shr rdx, 0x1e
add rdx, rcx
mov rax, rdx
pop rsi
ret
pop rsi
jmp fcn.1401c8cad
Function at 0x1401edee0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x1401edf55
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1401edf5a
mov dil, 1
test bl, bl
je 0x1401edf3e
cmp byte [rsi + 8], 0
je 0x1401edfae
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401874c0
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
jmp 0x1401edf0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 0
je 0x1401edf82
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1401edf87
xor edi, edi
jmp 0x1401edf3e
mov rcx, qword [rsi]
jmp 0x1401edf6f
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 0
je 0x1401edfb3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x1401edf3e
mov rcx, qword [rsi]
jmp 0x1401edf33
mov rcx, qword [rsi]
jmp 0x1401edf9e