joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b608
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x150
mov rax, qword [0x14004d298]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor ebx, ebx
mov r12, rdx
mov r14, rcx
mov ebp, ebx
mov edi, ebx
lea r15d, [rbx + 1]
test rdx, rdx
je 0x14000b7c8
lea esi, [rbx + 4]
mov r13d, 0x400
mov r9d, esi
lea r8, [rsp + 0x30]
mov ecx, r13d
lea edx, [rbx + 0xe]
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
nop dword [rax + rax]
test eax, eax
jne 0x14000b68b
lea r8, [0x140046168]
mov edx, esi
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
mov rsi, r14
cmp r14, r13
jb 0x14000b6e0
cmp edi, 4
jae 0x14000b6ac
mov ebp, esi
add edi, r15d
and ebp, 0x3ff
shr rsi, 0xa
cmp rsi, r13
jae 0x14000b693
test edi, edi
je 0x14000b6e0
sub edi, r15d
je 0x14000b6d9
sub edi, r15d
je 0x14000b6d2
sub edi, r15d
je 0x14000b6cb
cmp edi, r15d
jne 0x14000b6e0
mov edx, 0x324
jmp 0x14000b6ed
mov edx, 0x323
jmp 0x14000b6ed
mov edx, 0x322
jmp 0x14000b6ed
mov edx, 0x321
jmp 0x14000b6ed
mov rsi, r14
mov ebp, ebx
mov r15d, ebx
mov edx, 0x325
mov rcx, qword [0x14004d978]
lea r8, [rsp + 0xc0]
mov edi, 0x40
mov r9d, edi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadStringW]
nop dword [rax + rax]
test eax, eax
jne 0x14000b736
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jg 0x14000b72b
mov ebx, eax
jmp 0x14000b7af
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14000b7af
lea rcx, [rsp + 0x40]
mov r9, rsi
mov rdx, rdi
test r15d, r15d
je 0x14000b7b3
imul eax, ebp, 0x64
lea r8, str._I64u_s_02d
shr eax, 0xa
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.msvcrt.dll_swprintf_s]
nop dword [rax + rax]
test eax, eax
jle 0x14000b7aa
lea r8, [rsp + 0x40]
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
test eax, eax
jne 0x14000b7aa
lea r8, [rsp + 0xc0]
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
test eax, eax
je 0x14000b7af
mov ebx, 0x80004005
mov eax, ebx
jmp 0x14000b7cd
lea r8, str._I64u
call qword [sym.imp.msvcrt.dll_swprintf_s]
nop dword [rax + rax]
jmp 0x14000b76d
mov eax, 0x80070057
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140001e80
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140013700
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbp
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword gs:[0x58]
mov rbp, rcx
mov ecx, 8
mov r14, r8
mov r15, rdx
mov r9, qword [rax]
lea rax, str.CTieredVolume::QueryDesiredStorageClass
mov qword [rcx + r9], rax
lea rcx, [rsp + 0x48]
call fcn.140005468
and qword [rsp + 0xa8], 0
lea r8, [rsp + 0xa8]
mov rdx, r15
mov rcx, rbp
call fcn.1400131ec
mov dword [rsp + 0x50], eax
mov esi, eax
test eax, eax
jns 0x1400137ce
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x1400137b8
test byte [rcx + 0x1c], 1
je 0x1400137b8
cmp byte [rcx + 0x19], 2
jb 0x1400137b8
mov r9, qword [r15 + 8]
lea rax, [rbp + 0x2a0]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400467c0]
mov dword [rsp + 0x30], esi
mov edx, 0x14f
mov qword [rsp + 0x28], rax
mov rax, qword [r15]
mov qword [rsp + 0x20], rax
call fcn.140019ddc
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x1400138a1
jmp 0x140013895
mov rcx, qword [rsp + 0xa8]
lea r8, [rsp + 0x40]
mov r9d, 8
mov dword [rsp + 0x20], 0x43
lea rdx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x140013809
mov eax, dword [rsp + 0x40]
mov dword [r14], eax
jmp 0x140013882
cmp edi, 0xc000050c
jne 0x140013817
and dword [r14], 0
jmp 0x140013882
mov ecx, edi
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ecx, eax
call fcn.140002f2c
mov esi, eax
mov dword [rsp + 0x50], eax
mov rcx, qword [0x14004d128]
lea rax, [0x14004d128]
cmp rcx, rax
je 0x140013882
test byte [rcx + 0x1c], 1
je 0x140013882
cmp byte [rcx + 0x19], 2
jb 0x140013882
mov r9, qword [r15 + 8]
lea rax, [rbp + 0x2a0]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400467c0]
mov dword [rsp + 0x30], edi
mov edx, 0x150
mov qword [rsp + 0x28], rax
mov rax, qword [r15]
mov qword [rsp + 0x20], rax
call fcn.140019ddc
cmp qword [rsp + 0xa8], 0
je 0x1400138a1
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
lea rcx, [rsp + 0x48]
call fcn.1400059dc
lea r11, [rsp + 0x70]
mov eax, esi
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14001ba04
Capabilities:
Access peb ldr_data

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword gs:[0x58]
mov rdi, rcx
mov ecx, 8
mov esi, r9d
mov rbp, r8
mov rbx, rdx
mov r10, qword [rax]
lea rax, str.TieringJetDatabase::Initialize
mov qword [rcx + r10], rax
lea rcx, [r11 - 0x18]
call fcn.140005468
mov rax, qword [rsp + 0x70]
mov qword [rdi + 0x68], rax
mov qword [rdi], rbx
mov dword [rdi + 0x60], esi
mov qword [rdi + 0x70], rbp
cmp esi, 1
jne 0x14001ba6a
lea rax, str.TieringEngineHeat
jmp 0x14001ba88
cmp esi, 2
jne 0x14001ba78
lea rax, str.TieringPinnedFiles
jmp 0x14001ba88
cmp esi, 3
jne 0x14001bb39
lea rax, str.TieringPinnedCacheFiles
mov qword [rdi + 0x58], rax
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x14001baa3
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
nop dword [rax + rax]
jmp 0x14001bb1f
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14001bb1b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14001badb
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x38], eax
mov rcx, qword [0x14004d128]
lea rdx, [0x14004d128]
cmp rcx, rdx
je 0x14001bb1b
test byte [rcx + 0x1c], 1
je 0x14001bb1b
cmp byte [rcx + 0x19], 2
jb 0x14001bb1b
mov r9, qword [rdi + 0x70]
lea r8, [0x140046ab8]
mov rcx, qword [rcx + 0x10]
mov edx, 0x3d
mov dword [rsp + 0x20], eax
call fcn.14000a620
mov qword [rdi + 0x50], rbx
and word [rdi + 0x4c], 0
lea rcx, [rsp + 0x30]
mov byte [rdi + 0x9c], 1
call fcn.1400059dc
xor eax, eax
jmp 0x14001bb8e
mov ebx, 0x8009300f
mov dword [rsp + 0x38], ebx
mov rcx, qword [0x14004d128]
lea rdx, [0x14004d128]
cmp rcx, rdx
je 0x14001bb82
test byte [rcx + 0x1c], 1
je 0x14001bb82
cmp byte [rcx + 0x19], 2
jb 0x14001bb82
mov rcx, qword [rcx + 0x10]
lea r8, [0x140046ab8]
mov edx, 0x3c
mov dword [rsp + 0x28], ebx
mov r9d, esi
mov qword [rsp + 0x20], rbp
call fcn.14001e968
lea rcx, [rsp + 0x30]
call fcn.1400059dc
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x401bd0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x0040d624]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x401cf0
mov rax, qword [0x0040d628]
xor ebx, ebx
add rax, 0x18
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x401c1c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x401cd6
add ebx, 1
add rax, 0x28
cmp ebx, ecx
jne 0x401c00
mov rcx, rsi
call fcn.00402810
test rax, rax
mov r12, rax
je 0x401d28
movsxd rbx, ebx
lea rbx, [rbx + rbx*4]
shl rbx, 3
mov r13, rbx
add r13, qword [0x0040d628]
mov qword [r13 + 0x20], rax
mov dword [r13], 0
call fcn.00402960
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 0x18], rax
mov rax, qword [0x0040d628]
mov rcx, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401d0b
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401ccf
sub eax, 0x40
and eax, 0xffffffbf
je 0x401ccf
add rbx, qword [0x0040d628]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401cf7
add dword [0x0040d624], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebx, ebx
jmp 0x401c27
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00401b60
mov rax, qword [0x0040d628]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.00401b60
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.00401b60
nop
nop dword [rax + rax]

Function at 0x402480
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040d900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040d8e0]
test rbx, rbx
je 0x4024d4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4024cb
test rsi, rsi
je 0x4024cb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4024b0
lea rcx, [0x0040d900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402810
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x0040a7c0]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x402830
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.004026f0
test eax, eax
je 0x402828
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40288d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x402884
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x402828
add rdx, 0x28
cmp rdx, r9
jne 0x402870
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x403840
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12d, 1
sub r8d, 1
mov edi, ecx
mov ecx, 0x66666667
mov eax, r8d
mov rbp, rdx
movsxd rsi, r8d
imul ecx
sar r8d, 0x1f
mov rbx, r9
mov ecx, edx
sar ecx, 2
sub ecx, r8d
je 0x403895
mov r8d, 0x66666667
nop dword [rax]
mov eax, ecx
sar ecx, 0x1f
add r12d, 1
imul r8d
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x403880
mov edx, dword [rbx + 0x2c]
cmp edx, 0xffffffff
je 0x403910
mov ecx, dword [rbx + 0xc]
cmp r12d, edx
mov r9, rbx
cmovl r12d, edx
mov r8d, 1
lea edx, [r12 + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, edi
mov rdx, rbp
mov dword [rbx + 0xc], eax
add r12d, 1
call fcn.00403100
mov ecx, dword [rbx + 8]
mov eax, dword [rbx + 0x2c]
mov rdx, rbx
mov dword [rbx + 0x10], eax
mov eax, ecx
and ecx, 0x20
or eax, 0x1c0
or ecx, 0x45
mov dword [rbx + 8], eax
call fcn.00402cb0
add dword [rbx + 0xc], r12d
mov rdx, rbx
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.00403570
mov eax, dword [0x00409060]
cmp eax, 0xffffffff
je 0x40393c
test eax, eax
je 0x40392c
mov edx, 2
mov dword [rbx + 0x2c], edx
jmp 0x40389d
call fcn.00407ac0
test al, 1
mov edx, 3
jne 0x40391f
jmp 0x403924
lea rcx, str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test rax, rax
je 0x403964
movsx eax, byte [rax]
sub eax, 0x30
cmp eax, 2
setbe al
movzx eax, al
mov dword [0x00409060], eax
jmp 0x40391b
xor eax, eax
jmp 0x403959
Function at 0x140065290
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10088
call fcn.14008ced0
sub rsp, rax
mov rax, qword [0x1400c9e98]
xor rax, rsp
mov qword [rsp + 0x10070], rax
xor eax, eax
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.140087940
mov r8d, 0x10000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14006530d
lea rcx, [rsp + 0x70]
call fcn.14009f0c4
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.14008cea0
add rsp, 0x10088
ret
xor eax, eax
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.14008cea0
add rsp, 0x10088
ret

Function at 0x1400653c0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400c9e98]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rcx, [0x1400ad730]
call fcn.140065290
xor edi, edi
mov qword [0x1400ce670], rax
lea rdx, [0x1400ad730]
mov word [rsp + 0x20], di
lea rcx, [rsp + 0x20]
lea r8d, [rdi + 0x28]
call fcn.140087940
lea rdx, [0x1400ad738]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, str.PYTHONHOME
call fcn.140065290
mov cl, 1
mov qword [0x1400ce678], rax
call fcn.140088af0
lea r8d, [rdi + 0x28]
mov word [rsp + 0x20], di
lea rdx, str.PYTHONHOME
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.140087940
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov cl, 1
call fcn.140088af0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14008cea0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x140065950
Capabilities:
Set environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x1400c9e98]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rsi, rdx
mov rbp, rcx
call fcn.140075f90
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov rdx, rsi
lea rcx, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.140087940
lea rcx, [rsp + 0x20]
test r14, r14
je 0x140065a13
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, r14
call sub.python311.dll_PyUnicode_FromWideChar
mov r8, rax
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
je 0x140065a01
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
int3
sub qword [rsi], 1
jne 0x140065a33
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x140065a33
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x140065a33
mov rcx, rbp
call fcn.1400014e0
sub qword [rdi], 1
jne 0x140065a43
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
sub qword [rbx], 1
jne 0x140065a53
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14008cea0
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400879f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
test edx, edx
je 0x140087ab4
mov r9d, edx
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r8]
lea r8, [r8 + 1]
xor eax, edx
mov edx, eax
and dl, 1
neg dl
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
sub r9, 1
jne 0x140087a10
not eax
ret
Function at 0x14008d8e4
Capabilities:
Parse pe header

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

Function at 0x1400928c8
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 0x140092733
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140092733
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140092733
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140092733
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140092733
cmp dword [rcx + 0x84], 0xe
jbe 0x140092733
cmp dword [rcx + 0xf8], 0
je 0x140092733
mov ecx, ebx
call fcn.1400927e4
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.1400925c0
nop
cmp dword [rbp + 0x20], 0
je 0x140092781
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14009278c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400926c4
Function at 0x1400a4330
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 0x1400a43b7
mov rsi, rbx
cmp word [rax], bp
je 0x1400a4376
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a4360
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a435c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14009f8b0
mov rdi, rax
test rax, rax
je 0x1400a43a4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14008dc10
mov rbp, rdi
xor ecx, ecx
call fcn.1400a03f8
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 0x1400a7f2c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400a7f42
mov al, 1
jmp 0x1400a7fa2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400a7f53
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400a7fa0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400a4ad4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400a7fa0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400a7fa0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400a7fa0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400a7fa2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14000c65c
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_2.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140014cb8], rbx
je 0x14000c6c3
cmp rax, rbx
jne 0x14000c6b6
mov ebx, 1
mov esi, ebx
jmp 0x14000c6c8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000c69b
mov ebx, 1
mov eax, dword [0x140014cc0]
cmp eax, ebx
jne 0x14000c6e0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000c74c
mov eax, dword [0x140014cc0]
test eax, eax
jne 0x14000c741
mov dword [0x140014cc0], ebx
lea r15, [0x14000eb70]
lea rdi, [0x14000eb58]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000c733
test eax, eax
jne 0x14000c737
cmp qword [rdi], r14
je 0x14000c728
mov rax, qword [rdi]
mov rcx, qword [0x14000eb00]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000c70a
test eax, eax
je 0x14000c747
mov eax, 0xff
jmp 0x14000c8a0
mov dword [0x140014400], ebx
mov edi, 0x1f
mov eax, dword [0x140014cc0]
cmp eax, ebx
jne 0x14000c773
lea rdx, [0x14000eb50]
lea rcx, [0x14000eb18]
call sub.msvcrt.dll__initterm
mov dword [0x140014cc0], 2
test esi, esi
jne 0x14000c781
mov rax, r14
xchg qword [0x140014cb8], rax
cmp qword [0x140014cd8], r14
je 0x14000c7b4
lea rcx, [0x140014cd8]
call fcn.14000cc80
test eax, eax
je 0x14000c7b4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140014cd8]
mov r9, qword [0x14000eb00]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000c7cd
mov eax, 0xff
jmp 0x14000c8a0
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14000c851
cmp word [rcx], r14w
je 0x14000c7e6
test edx, edx
jne 0x14000c851
movzx eax, word [rcx]
sub ax, bx
cmp ax, di
ja 0x14000c7fc
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c7e6
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.1400018e8
mov dword [0x1400143fc], eax
cmp dword [0x140014420], r14d
jne 0x14000c83a
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140014400], r14d
jne 0x14000c84f
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400143fc]
jmp 0x14000c8a0
cmp word [rcx], 0x22
jne 0x14000c865
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 0x14000c7d6
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 fcn.140191000
add rsp, 0x28
jmp 0x14000c65c
Function at 0x140001140
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov al, byte [rsp + 0x7f]
mov byte [rsp + 0x7e], 0xe0
mov qword [rsp + 0x60], 0x26407b7d
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x38], 0
mov r9w, word [rsp + 0x6e]
mov qword [rsp + 0x20], rdx
mov dword [rsp + 0x1c], r8d
mov qword [rsp + 0x10], rcx
mov byte [rsp + 0xf], al
mov word [rsp + 0xc], r9w

Function at 0x14004e820
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x30
lea rax, [fcn.14004e820]
mov qword [rsp + 0x28], 0x4f1db680
mov qword [rsp + 8], rax
jmp 0x14004e89f

Function at 0x14004eb90
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov word [rsp + 0x9a], 0xfd9e
mov ax, word [rsp + 0x96]
mov r8w, ax
imul r8w, r8w
mov qword [rsp + 0x88], rdx
mov qword [rsp + 0x80], rcx
mov word [rsp + 0x7e], ax
mov word [rsp + 0x7c], r8w
call fcn.140001040
xor r9d, r9d
mov ecx, r9d
mov rax, qword [rax + 0x18]
mov rdx, rax
add rdx, 0x20
mov rax, qword [rax + 0x20]
mov r9d, dword [rsp + 0x9c]
mov r8w, word [rsp + 0x7c]
mov word [rsp + 0x96], r8w
test byte [rsi + rdx*4], ah
add byte [rax], al
add byte [rax + 0x39], cl
rol byte [rcx + rcx*4 + 0x4c], 1
and al, 0x78