joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49f0a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x49f14c
push rbp
mov rbp, rsp
sub rsp, 0x40
mov byte [rsp + 0x60], cl
mov byte [rsp + 0x61], dil
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], cl
call fcn.004035c0
xorps xmm15, xmm15
mov r14, qword [0x006156e0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
je 0x49f113
lea rax, [rsp + 0x20]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.0044de80
movzx edx, byte [rsp + 0x61]
movzx esi, byte [rsp + 0x60]
xor ecx, ecx
jmp 0x49f126
mov rax, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret
inc rcx
cmp rbx, rcx
jle 0x49f139
movzx edi, byte [rax + rcx]
cmp dil, sil
jne 0x49f123
mov byte [rax + rcx], dl
jmp 0x49f123
mov rcx, rbx
mov rbx, rax
xor eax, eax
call fcn.00467e40
add rsp, 0x40
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov byte [rsp + 0x18], cl
mov byte [rsp + 0x19], dil
nop
call fcn.0046bb60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
movzx ecx, byte [rsp + 0x18]
movzx edi, byte [rsp + 0x19]
jmp fcn.0049f0a0
Function at 0x16ac058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x16ac1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x16ac089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x16ac06f
add dl, dl
jne 0x16ac096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x16ac0f6
xor eax, eax
add dl, dl
jne 0x16ac0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x16ac1ad
add dl, dl
jne 0x16ac0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16ac0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16ac0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16ac0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x16ac0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x16ac07e
mov eax, 1
add dl, dl
jne 0x16ac106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16ac113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x16ac0fb
sub eax, ebx
mov ebx, 1
jne 0x16ac14c
mov ecx, 1
add dl, dl
jne 0x16ac12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x16ac13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x16ac123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x16ac07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x16ac168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x16ac175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x16ac15d
cmp eax, 0x7d00
jae 0x16ac19b
cmp eax, 0x500
jb 0x16ac196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x16ac07e
cmp eax, 0x7f
ja 0x16ac19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x16ac07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x16ac1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x16ac07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180007430
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov r10, r9
mov r11d, edx
mov rbx, rcx
test edx, edx
jne 0x18000744a
xor eax, eax
mov rbx, qword [rsp + 8]
ret
mov r9, qword [r8]
movzx eax, r9b
mov rdx, r9
xor eax, 0x811c9dc5
shr rdx, 8
movzx ecx, dl
shr rdx, 8
imul eax, eax, 0x1000193
xor ecx, eax
movzx eax, dl
shr rdx, 8
imul ecx, ecx, 0x1000193
xor eax, ecx
movzx ecx, dl
shr rdx, 8
imul eax, eax, 0x1000193
xor ecx, eax
movzx eax, dl
shr rdx, 8
imul ecx, ecx, 0x1000193
xor eax, ecx
movzx ecx, dl
shr rdx, 8
imul eax, eax, 0x1000193
xor ecx, eax
movzx eax, dl
shr rdx, 8
imul ecx, ecx, 0x1000193
xor eax, ecx
movzx ecx, dl
shr rdx, 8
movzx r8d, dl
xor edx, edx
imul eax, eax, 0x1000193
xor ecx, eax
imul ecx, ecx, 0x1000193
xor r8d, ecx
imul r8d, r8d, 0x1000193
mov eax, r8d
div r11d
mov rax, qword [rbx + rdx*8]
lea rdx, [rbx + rdx*8]
test rax, rax
je 0x180007501
nop
cmp qword [rax + 8], r9
je 0x180007501
mov rdx, rax
mov rax, qword [rax]
test rax, rax
jne 0x1800074f0
test r10, r10
je 0x180007509
mov dword [r10], r8d
mov rbx, qword [rsp + 8]
mov rax, rdx
ret
Function at 0x18000bbf0
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, 0x28
call fcn.18002da60
sub rsp, rax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x18000bc30
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.18002da60
sub rsp, rax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x18000bc50
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.18002da60
sub rsp, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
neg eax
sbb eax, eax
neg eax
dec eax
add rsp, 0x28
ret

Function at 0x18000d4f0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x40
call fcn.18002da60
sub rsp, rax
mov rdx, qword [rcx + 0x18]
mov eax, dword [rcx + 8]
xor ebx, ebx
lea r8, [rdx + rax*8]
mov rsi, rcx
cmp rdx, r8
je 0x18000d533
nop dword [rax]
cmp qword [rdx], rbx
jne 0x18000d530
add rdx, 8
cmp rdx, r8
jne 0x18000d520
jmp 0x18000d533
mov rbx, qword [rdx]
test rbx, rbx
je 0x18000d69f
mov rbx, qword [rbx + 8]
mov rax, qword [rsi]
mov rdx, rsi
mov rcx, qword [rbx]
call qword [rax + 8]
mov dl, 1
mov rcx, rbx
call fcn.18000a7b0
test eax, eax
jne 0x18000d6a1
mov rcx, rbx
call fcn.180009660
mov rcx, rbx
call fcn.18000be10
mov r11d, dword [rsi + 8]
mov r9, qword [rsi + 0x18]
test r11d, r11d
je 0x18000d65d
movzx ecx, bl
mov r8, rbx
xor ecx, 0x811c9dc5
shr r8, 8
movzx eax, r8b
shr r8, 8
imul ecx, ecx, 0x1000193
xor eax, ecx
movzx ecx, r8b
shr r8, 8
imul eax, eax, 0x1000193
xor ecx, eax
movzx eax, r8b
shr r8, 8
imul ecx, ecx, 0x1000193
xor eax, ecx
movzx ecx, r8b
shr r8, 8
imul eax, eax, 0x1000193
xor ecx, eax
movzx eax, r8b
shr r8, 8
imul ecx, ecx, 0x1000193
xor eax, ecx
movzx ecx, r8b
shr r8, 8
movzx edx, r8b
shr r8, 8
imul eax, eax, 0x1000193
xor ecx, eax
movzx eax, r8b
imul ecx, ecx, 0x1000193
xor edx, ecx
imul edx, edx, 0x1000193
xor eax, edx
xor edx, edx
imul eax, eax, 0x1000193
div r11d
mov rax, qword [r9 + rdx*8]
lea rdx, [r9 + rdx*8]
test rax, rax
je 0x18000d634
cmp qword [rax + 8], rbx
je 0x18000d634
mov rdx, rax
mov rax, qword [rax]
test rax, rax
jne 0x18000d623
test rdx, rdx
je 0x18000d65d
mov rcx, qword [rdx]
test rcx, rcx
je 0x18000d65d
mov rax, qword [rcx]
mov qword [rdx], rax
call fcn.18000be10
dec qword [rsi + 0x10]
mov rdx, qword [rsi + 0x10]
lea rcx, [rsi + 8]
call fcn.18000cdd0
mov rcx, qword [rsi + 0x18]
mov eax, dword [rsi + 8]
xor ebx, ebx
lea rdx, [rcx + rax*8]
cmp rcx, rdx
je 0x18000d690
nop
cmp qword [rcx], rbx
jne 0x18000d68d
add rcx, 8
cmp rcx, rdx
jne 0x18000d670
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x30], rdx
jmp 0x18000d533
mov rbx, qword [rcx]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x30], rdx
jmp 0x18000d533
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x18000df80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
mov eax, 0x20
call fcn.18002da60
sub rsp, rax
xor ebx, ebx
mov rsi, rcx
mov ebp, ebx
test rcx, rcx
je 0x18000e067
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov r12d, eax
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea rdx, [rcx - 1]
lea ecx, [r12 + 1]
add rdx, rcx
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x18000e06a
mov edx, r12d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [rax - 1]
cmp word [rbp + rcx*2], 0x5c
je 0x18000e014
mov ecx, eax
mov edx, 0x5c
inc eax
mov word [rbp + rcx*2], dx
or rcx, 0xffffffffffffffff
movsxd r8, eax
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x18000e067
add r8, r8
mov rdx, rsi
sub r8, rsi
add r8, rbp
nop word [rax + rax]
movzx eax, word [rdx]
or rcx, 0xffffffffffffffff
inc ebx
mov word [r8 + rdx], ax
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
mov eax, ebx
add rdx, 2
not rcx
dec rcx
cmp rax, rcx
jb 0x18000e040
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x18000edc0
Capabilities:
Hash data using sha256

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x1800ae050]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor eax, eax
mov dword [rsp + 0x20], 0x6a09e667
mov rbx, rcx
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x50], rax
lea r8, [r8*8]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x24], 0xbb67ae85
mov dword [rsp + 0x28], 0x3c6ef372
mov dword [rsp + 0x2c], 0xa54ff53a
mov dword [rsp + 0x30], 0x510e527f
mov dword [rsp + 0x34], 0x9b05688c
mov dword [rsp + 0x38], 0x1f83d9ab
mov qword [rsp + 0x3c], 0x5be0cd19
call fcn.18000ee80
mov r9b, 1
lea rcx, [rsp + 0x20]
mov r8b, 0x81
mov rdx, rbx
call fcn.18000eb70
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.18002ce90
add rsp, 0xb0
pop rbx
ret

Function at 0x18002c670
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
test ecx, ecx
jle 0x18002c74d
push rbx
sub rsp, 0x40
movsxd rbx, ecx
cmp ebx, 0x64
jle 0x18002c6da
imul rcx, rbx, 0xfffffffffffffff6
xor r8d, r8d
mov qword [rsp + 0x58], rcx
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
xor r9d, r9d
lea rdx, [rsp + 0x58]
mov rbx, rax
xor r8d, r8d
xor eax, eax
mov rcx, rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_SetWaitableTimer]
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x40
pop rbx
ret
lea rcx, [rsp + 0x68]
movaps xmmword [rsp + 0x30], xmm6
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movss xmm6, dword [0x18008072c]
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x58]
xorps xmm1, xmm1
sub rax, qword [rsp + 0x60]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [rsp + 0x68]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
mulss xmm1, xmm6
mulss xmm1, xmm6
cvttss2si rax, xmm1
cmp rax, rbx
jl 0x18002c700
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
ret
Function at 0x18003a2a0
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 0x18003a30f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18003a30f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18003a30f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18003a30f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18003a30f
cmp dword [rcx + 0x84], 0xe
jbe 0x18003a30f
cmp dword [rcx + 0xf8], 0
je 0x18003a30f
mov ecx, ebx
call fcn.18003a3c0
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.18003a19c
nop
cmp dword [rbp + 0x20], 0
je 0x18003a35d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18003a368
int3
xor r8d, r8d
xor edx, edx
jmp 0x18003a2a0

Function at 0x18003a45c
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 0x18003a30f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18003a30f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18003a30f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18003a30f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18003a30f
cmp dword [rcx + 0x84], 0xe
jbe 0x18003a30f
cmp dword [rcx + 0xf8], 0
je 0x18003a30f
mov ecx, ebx
call fcn.18003a3c0
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.18003a19c
nop
cmp dword [rbp + 0x20], 0
je 0x18003a35d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18003a368
int3
xor r8d, r8d
xor edx, edx
jmp 0x18003a2a0
Function at 0x18003f030
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 0x18003f067
call fcn.180040e68
mov dword [rax], 0x16
call fcn.1800343a4
xor eax, eax
jmp 0x18003f0f5
mov rdx, r9
mov rcx, r8
call fcn.18003efcc
mov rbx, rax
test rax, rax
je 0x18003f0f2
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x18003eef8]
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 0x18003f0df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180040ddc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18003f0c6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18003f0d5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1800404c8
jmp 0x18003f0f2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18003f0ef
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 0x180049fc4
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 0x180049ff4
xor eax, eax
jmp 0x18004a0b7
mov rbp, rbx
cmp word [rax], si
je 0x18004a019
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18004a000
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180049ffc
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.180049ee4
movsxd r14, eax
test eax, eax
jne 0x18004a057
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180049fed
mov rcx, r14
call fcn.1800412c0
mov rdi, rax
test rax, rax
jne 0x18004a070
xor ecx, ecx
call fcn.1800404c8
jmp 0x18004a04c
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.180049ee4
test eax, eax
jne 0x18004a0a1
mov rcx, rdi
call fcn.1800404c8
jmp 0x18004a0ab
xor ecx, ecx
call fcn.1800404c8
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 0x18004b858
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18004b86e
mov al, 1
jmp 0x18004b8ce
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18004b87f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18004b8cc
mov ecx, dword [rcx + 0x18]
nop
call fcn.18003eca8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18004b8cc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18004b8cc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18004b8cc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18004b8ce
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18004e278
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.180042b54
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 0x18004e319
cmp ebx, dword [rsp + 0x30]
je 0x18004e312
test esi, esi
je 0x18004e312
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18004e2ed
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18004e2fa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18004e2d7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18004e2fe
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18004e31b
mov eax, 1
jmp 0x18004e31b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180055d80
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x180055d93
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.1800563f8
lea rdx, [0x1800ab9a8]
lea rcx, [rsp + 0x20]
call fcn.180032784
int3

Function at 0x180060994
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1800b7098]
xor edx, edx
jmp fcn.180055d80

Function at 0x18006137c
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1800b7098]
jmp fcn.180055d80
Function at 0x14000d910
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140016c60], rbx
je 0x14000d977
cmp rax, rbx
jne 0x14000d96a
mov ebx, 1
mov esi, ebx
jmp 0x14000d97c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000d94f
mov ebx, 1
mov eax, dword [0x140016c68]
cmp eax, ebx
jne 0x14000d994
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000da00
mov eax, dword [0x140016c68]
test eax, eax
jne 0x14000d9f5
mov dword [0x140016c68], ebx
lea r15, [0x140010bb8]
lea rdi, [0x140010ba0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000d9e7
test eax, eax
jne 0x14000d9eb
cmp qword [rdi], r14
je 0x14000d9dc
mov rax, qword [rdi]
mov rcx, qword [0x140010b58]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000d9be
test eax, eax
je 0x14000d9fb
mov eax, 0xff
jmp 0x14000db56
mov dword [0x1400163e4], ebx
mov edi, 0x1f
mov eax, dword [0x140016c68]
cmp eax, ebx
jne 0x14000da27
lea rdx, [0x140010b98]
lea rcx, [0x140010b60]
call sub.msvcrt.dll__initterm
mov dword [0x140016c68], 2
test esi, esi
jne 0x14000da35
mov rax, r14
xchg qword [0x140016c60], rax
cmp qword [0x140016c80], r14
je 0x14000da68
lea rcx, [0x140016c80]
call fcn.14000dfd0
test eax, eax
je 0x14000da68
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140016c80]
mov r9, qword [0x140010b58]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000da81
mov eax, 0xff
jmp 0x14000db56
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000db07
test ax, ax
je 0x14000da9c
test edx, edx
jne 0x14000db07
sub ax, bx
cmp ax, di
ja 0x14000dab2
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000da9c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400019fc
mov dword [0x1400163e0], eax
cmp dword [0x140016400], r14d
jne 0x14000daf0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400163e4], r14d
jne 0x14000db05
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400163e0]
jmp 0x14000db56
cmp ax, 0x22
jne 0x14000db1b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000da8a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call 0x14018f000
add rsp, 0x28
jmp 0x14000d910
Function at 0x14000debc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000df08
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000df00
cmp dword [rcx + 0x3c], edx
jl 0x14000df00
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000df00
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000df08
mov rax, rdx
add rsp, 0x18
ret

Function at 0x180724d59
Capabilities:
Check for software breakpoints

Disassembly:
push qword [rsp + 0x18]
popfq
lea rsp, [rsp + 0x48]
call fcn.180de5f2b
push rdi
jne 0x180724dd9
jge 0x180724dbd
cmp dword [rbx - 0x4e640e4f], ecx
test eax, 0x55c530d1
pop rsp
pop rax
insb byte [rdi], dx
imul ecx, dword [rcx + 6], 0xffffff81
stosb byte [rdi], al
mul byte [rcx + 0x3bd7a791]
shl dword [rcx], 0xf4
invalid
invalid
invalid
Function at 0x1400028e0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x1400b72e0], 0
je 0x14001a858
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call sym.spoolsv.exe_PrvRevertToPrinterSelf
xor edx, edx
lea r8, str.RouterPreInitEvent
mov rdi, rax
lea ecx, [rdx + 2]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenEventW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14001a8ee
mov rax, qword [str._S_v_]
lea rcx, str._S_v_
cmp rax, rcx
je 0x14001a8c2
test byte [rax + 0x44], 0x20
je 0x14001a8c2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._S_v_]
lea edx, [rbx + 0x15]
mov r9d, eax
lea r8, [0x14009b320]
mov rcx, qword [rcx + 0x38]
call fcn.14002def8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x14009a278]
mov edx, eax
call fcn.140051478
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test rdi, rdi
je 0x14001a935
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
test eax, eax
jne 0x14001a935
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, eax
mov ecx, 0x69
call fcn.140051070
or edx, 0xffffffff
call fcn.14004c8f0
nop
jmp 0x1400028f7