joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011bef
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x1400254b0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rcx, [0x140045100]
call fcn.140011c58
mov rax, qword [rbp + 0x158]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0x158]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 8], rax
xor eax, eax
mov word [rbp + 0x24], ax
jmp 0x140025517
movzx eax, word [rbp + 0x24]
inc ax
mov word [rbp + 0x24], ax
mov rax, qword [rbp + 8]
add rax, 0x28
mov qword [rbp + 8], rax
movzx eax, word [rbp + 0x24]
mov rcx, qword [rbp + 0x158]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x140025620
mov rax, qword [rbp + 8]
cmp dword [rax + 0x10], 0
jne 0x14002553a
jmp 0x140025500
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x24]
and eax, 0x2000000
test eax, eax
je 0x1400255bb
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x10]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x10]
mov rcx, qword [rbp + 8]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rbp + 0x150]
add rdx, rcx
mov rcx, rdx
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x48]
mov r8, rcx
mov edx, dword [rbp + 0x148]
mov rcx, qword [0x14003d700]
call fcn.140011393
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rbp + 8]
lea rdx, str..text
mov rcx, rax
call fcn.140011d84
test eax, eax
jne 0x1400255e0
lea rcx, str.text_found_n
call fcn.1400115cd
jmp 0x14002561b
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0xc]
mov rcx, qword [rbp + 0x150]
add rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 8]
mov ecx, dword [rcx + 0x10]
mov dword [rsp + 0x20], 4
mov r9, rax
mov r8d, ecx
mov edx, dword [rbp + 0x148]
mov rcx, qword [0x14003d700]
call fcn.14001179e
jmp 0x140025500
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x140011c35
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400211f0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x14003d040]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x1400450fb]
call fcn.140011c58
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x140021256
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14002125d
mov al, 1
jmp 0x1400213cd
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.14001133e
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.14001133e
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.1400119ec
movzx eax, al
test eax, eax
je 0x1400212c0
xor al, al
jmp 0x1400213cd
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x140021333
cmp dword [rbp + 0x160], 1
je 0x14002133e
cmp dword [rbp + 0x160], 3
je 0x1400213bc
jmp 0x1400213cb
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14002138e
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14002138e
xor al, al
jmp 0x1400213cd
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400213a9
mov dword [rbp + 0x154], 1
jmp 0x1400213b3
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x1400213cd
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400213cd
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140036050]
call fcn.140011a6e
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.14001160e
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x140011cb2
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x140027aa0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140045100]
call fcn.140011c58
mov rax, qword [rbp + 0x130]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0x130]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x28], rax
jmp 0x140027aff
mov rax, qword [rbp + 0x28]
add rax, 0x28
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
cmp qword [rbp + 0x28], rax
jae 0x140027b79
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0xc]
cmp qword [rbp + 0x128], rax
jb 0x140027b74
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0xc]
mov rcx, qword [rbp + 0x28]
add eax, dword [rcx + 8]
mov eax, eax
cmp qword [rbp + 0x128], rax
jae 0x140027b74
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0x14]
mov rcx, qword [rbp + 0x138]
add rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 0x28]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rbp + 0x128]
sub rdx, rcx
mov rcx, rdx
add rax, rcx
jmp 0x140027b7b
jmp 0x140027af3
xor eax, eax
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140047ee0]
mov dword [rax], 1
mov rax, qword [0x140047ef0]
mov dword [rax], 1
mov rax, qword [0x140047f00]
mov dword [rax], 1
mov rax, qword [0x140047e90]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140006860
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rdx, rcx
mov rcx, qword [0x14004f350]
call qword [sym.imp.python311.dll_PyDict_GetItemString]
test rax, rax
je 0x140006882
add qword [rax], 1
add rsp, 0x28
ret
xor ecx, ecx
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
nop
nop word cs:[rax + rax]
Function at 0x140015d70
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.14002b3c0
sub rsp, rax
xor eax, eax
mov rdx, rcx
lea rbx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.140024b10
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140015dc9
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x14002a0a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14003b820
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14003b820
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14002ad72
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14004ffc8]
test eax, eax
je 0x14002ae0a
lea rax, [0x14004ffa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14004ffd0]
mov qword [rbp - 8], rax
jmp 0x14002adee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14002ade2
cmp qword [rbp - 0x10], 0
je 0x14002ade2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14002ada8
lea rax, [0x14004ffa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002ae0b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14002af10
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14002af38
mov eax, 0
jmp 0x14002af86
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14002af61
mov eax, 0
jmp 0x14002af86
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14002af81
mov eax, 0
jmp 0x14002af86
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14002af8c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14002b00a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14002b001
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14002b001
mov rax, qword [rbp - 8]
jmp 0x14002b01f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14002afd4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400013b0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000140f
lea r8, [rsp + 0x38]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x140001423
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400045a0
add rsp, 0x68
ret
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x44], rax
xor edx, edx
xor eax, eax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
lea r9d, [rax + 0x10]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400045a0
add rsp, 0x68
ret

Function at 0x140003310
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0xafc10]
mov eax, 0xafd10
call fcn.14000e1f0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xafc00], rax
xor ebx, ebx
mov dword [rsp + 0x68], 0x10001
mov dword [rsp + 0x28], ebx
lea r8, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
or edx, 0xffffffff
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x6c], 0x5dc0
mov dword [rsp + 0x70], 0x5dc0
mov dword [rsp + 0x74], 0x80001
mov word [rsp + 0x78], bx
call qword [sym.imp.WINMM.dll_waveOutOpen]
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0xafc80
call fcn.1400057c0
mov r8d, ebx
lea r9, [rbp - 0x80]
nop
mov ecx, r8d
lea r9, [r9 + 1]
shr ecx, 8
mov eax, r8d
shr eax, 5
xor ecx, r8d
or eax, r8d
imul ecx, eax
mov eax, r8d
shr eax, 7
or eax, r8d
add ecx, eax
mov eax, r8d
shl eax, 4
or eax, r8d
inc r8d
add ecx, eax
mov eax, 0x309e0185
mul ecx
shr edx, 7
mov byte [r9 - 1], dl
cmp r8d, 0xafc80
jb 0x1400033a0
mov rcx, qword [rsp + 0x30]
lea rax, [rbp - 0x80]
mov r8d, 0x30
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x40], 0xafc80
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.WINMM.dll_waveOutPrepareHeader]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutWrite]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WINMM.dll_waveOutClose]
mov rcx, qword [rbp + 0xafc00]
xor rcx, rsp
call fcn.1400045a0
mov rbx, qword [rsp + 0xafd20]
add rsp, 0xafd10
pop rbp
ret
Function at 0x140003600
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0xa1790]
mov eax, 0xa1890
call fcn.14000e1f0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xa1780], rax
xor ebx, ebx
mov dword [rsp + 0x68], 0x10001
mov dword [rsp + 0x28], ebx
lea r8, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
or edx, 0xffffffff
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x6c], 0x5622
mov dword [rsp + 0x70], 0x5622
mov dword [rsp + 0x74], 0x80001
mov word [rsp + 0x78], bx
call qword [sym.imp.WINMM.dll_waveOutOpen]
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0xa17fc
call fcn.1400057c0
mov r8d, ebx
lea r10, [rbp - 0x80]
mov r9d, ebx
nop dword [rax]
nop word [rax + rax]
mov ecx, r8d
lea r10, [r10 + 1]
shr ecx, 5
mov eax, r9d
shr eax, 8
or ecx, r8d
imul ecx, eax
add r9d, 2
mov eax, r8d
shr eax, 7
or eax, r8d
xor ecx, eax
mov eax, r8d
shl eax, 4
or eax, r8d
inc r8d
xor ecx, eax
mov eax, 0xf7fb5e57
mul ecx
shr edx, 0x10
mov byte [r10 - 1], dl
cmp r9d, 0x142ff8
jb 0x1400036a0
mov rcx, qword [rsp + 0x30]
lea rax, [rbp - 0x80]
mov r8d, 0x30
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x40], 0xa17fc
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.WINMM.dll_waveOutPrepareHeader]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutWrite]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WINMM.dll_waveOutClose]
mov rcx, qword [rbp + 0xa1780]
xor rcx, rsp
call fcn.1400045a0
mov rbx, qword [rsp + 0xa18a0]
add rsp, 0xa1890
pop rbp
ret
Function at 0x140003780
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0xa1790]
mov eax, 0xa1890
call fcn.14000e1f0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xa1780], rax
xor ebx, ebx
mov dword [rsp + 0x68], 0x10001
mov dword [rsp + 0x28], ebx
lea r8, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
or edx, 0xffffffff
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x6c], 0x5622
mov dword [rsp + 0x70], 0x5622
mov dword [rsp + 0x74], 0x80001
mov word [rsp + 0x78], bx
call qword [sym.imp.WINMM.dll_waveOutOpen]
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0xa17fc
call fcn.1400057c0
mov eax, ebx
lea r10, [rbp - 0x80]
mov r9d, ebx
movzx ecx, al
lea r10, [r10 + 1]
shl cl, 4
mov r8d, eax
shr r8d, 7
or cl, al
or r8b, al
mov edx, eax
add r8b, cl
shr edx, 5
or dl, al
mov ecx, r9d
shr ecx, 8
inc eax
and dl, cl
add r9d, 2
xor r8b, dl
and r8b, 0x6d
mov byte [r10 - 1], r8b
cmp r9d, 0x142ff8
jb 0x140003811
mov rcx, qword [rsp + 0x30]
lea rax, [rbp - 0x80]
mov r8d, 0x30
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x40], 0xa17fc
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
call qword [sym.imp.WINMM.dll_waveOutPrepareHeader]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutWrite]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
call qword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WINMM.dll_waveOutClose]
mov rcx, qword [rbp + 0xa1780]
xor rcx, rsp
call fcn.1400045a0
mov rbx, qword [rsp + 0xa18a0]
add rsp, 0xa1890
pop rbp
ret
Function at 0x140006de0
Capabilities:
Parse pe header

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, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140006bb4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006bb4
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006bb4
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006bb4
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006bb4
cmp dword [rcx + 0x84], 0xe
jbe 0x140006bb4
cmp dword [rcx + 0xf8], esi
je 0x140006bb4
mov ecx, r14d
call fcn.140006cfc
mov ecx, 2
call fcn.1400095dc
nop
cmp byte [0x140023248], 0
jne 0x140006c7e
mov r15d, 1
mov eax, r15d
xchg dword [0x14002323c], eax
test ebx, ebx
jne 0x140006c27
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140023240]
cmp rcx, rax
je 0x140006c1e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140004e84]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140023260]
jmp 0x140006c33
cmp ebx, r15d
jne 0x140006c39
lea rcx, [0x140023278]
call fcn.140007374
nop
test ebx, ebx
jne 0x140006c50
lea rdx, [0x140010408]
lea rcx, [0x1400103e8]
call fcn.140006a74
lea rdx, [0x140010418]
lea rcx, [0x140010410]
call fcn.140006a74
movzx eax, byte [0x140023248]
test esi, esi
cmove eax, r15d
mov byte [0x140023248], al
jmp 0x140006c7e
mov ecx, 2
call fcn.140009630
test esi, esi
jne 0x140006c95
mov ecx, r14d
call fcn.140006cb0
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140006b44
Function at 0x14064b058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14064b1df
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 0x14064b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14064b06f
add dl, dl
jne 0x14064b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14064b0f6
xor eax, eax
add dl, dl
jne 0x14064b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14064b1ad
add dl, dl
jne 0x14064b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14064b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14064b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14064b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14064b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14064b07e
mov eax, 1
add dl, dl
jne 0x14064b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14064b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14064b0fb
sub eax, ebx
mov ebx, 1
jne 0x14064b14c
mov ecx, 1
add dl, dl
jne 0x14064b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14064b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14064b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14064b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14064b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14064b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14064b15d
cmp eax, 0x7d00
jae 0x14064b19b
cmp eax, 0x500
jb 0x14064b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14064b07e
cmp eax, 0x7f
ja 0x14064b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14064b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14064b1d2
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 0x14064b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14010fd80
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.140114ae0
sub rsp, rax
mov rax, qword [0x140156cd8]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x14010fe42
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14010fded
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14010fde0
cmp rcx, 1
jb 0x14010fe9a
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14010fe10
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140123b04
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14010fdd0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14010fe73
lea rcx, [rsp + 0x80]
call fcn.14012680c
jmp 0x14010fe75
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140114810
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1401187d0
int3