joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140093000
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x14009373f
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x14009302d
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x1400932b1
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x1400932dd
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x140124660]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x1400da8e0]
lea rbx, [0x140123020]
call fcn.140067de0
inc rax
cmp rax, r8
jge 0x140093302
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x140093337
lea rdi, [0x1400da960]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x140093023
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x14009331b
jmp 0x1400932f0
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.14006d720
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.140093000

Function at 0x1400938e0
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x1400938f7
inc rax
cmp rax, 4
jge 0x14009390f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x1400938f4
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x140093920
inc rax
cmp rax, 4
jge 0x14009392e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x140093957
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x14009393b
jmp 0x14009391d

Function at 0x1400a02a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1400a034c
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.140003fe0
xorps xmm15, xmm15
mov r14, qword [0x140200790]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
je 0x1400a0313
lea rax, [rsp + 0x20]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.14004ff40
movzx edx, byte [rsp + 0x61]
movzx esi, byte [rsp + 0x60]
xor ecx, ecx
jmp 0x1400a0326
mov rax, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret
inc rcx
cmp rbx, rcx
jle 0x1400a0339
movzx edi, byte [rax + rcx]
cmp dil, sil
jne 0x1400a0323
mov byte [rax + rcx], dl
jmp 0x1400a0323
mov rcx, rbx
mov rbx, rax
xor eax, eax
call fcn.140069bc0
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.14006d720
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
movzx ecx, byte [rsp + 0x18]
movzx edi, byte [rsp + 0x19]
jmp fcn.1400a02a0
Function at 0x1400bd8d0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x140203fe8], rax
test rax, rax
je 0x1400bd905
lea rcx, [0x140204000]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x3d
mov edx, 1
lea rcx, str.runtime:_failed_to_create_runtime_initialization_wait_event._n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400be030
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.1400bf570
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400bed02
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140204108]
test eax, eax
je 0x1400bed9a
lea rax, [0x1402040e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140204110]
mov qword [rbp - 8], rax
jmp 0x1400bed7e
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 0x1400bed72
cmp qword [rbp - 0x10], 0
je 0x1400bed72
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 0x1400bed38
lea rax, [0x1402040e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400bed9b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400beea0
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 0x1400beec8
mov eax, 0
jmp 0x1400bef16
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 0x1400beef1
mov eax, 0
jmp 0x1400bef16
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 0x1400bef11
mov eax, 0
jmp 0x1400bef16
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400bef1c
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 0x1400bef9a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400bef91
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 0x1400bef91
mov rax, qword [rbp - 8]
jmp 0x1400befaf
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 0x1400bef64
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180013d80
Capabilities:
Get hostname

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x160
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x150], xmm0
movaps xmmword [rsp + 0x140], xmm0
movaps xmmword [rsp + 0x130], xmm0
movaps xmmword [rsp + 0x120], xmm0
movaps xmmword [rsp + 0x110], xmm0
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x34], 0x100
lea rdx, [rsp + 0x60]
lea r8, [rsp + 0x34]
mov ecx, 2
call sub.kernel32.dll_GetComputerNameExA
test eax, eax
je 0x180013e8d
lea rdi, [rsp + 0x60]
mov rcx, rdi
call fcn.180040d90
lea r8, [rax + 1]
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.1800367a0
cmp qword [rsp + 0x38], 0
jne 0x180013ec6
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x180013e96
js 0x180013ef9
movzx eax, byte [0x1800a7b01]
mov r15d, 1
mov edx, 1
mov rcx, rdi
call fcn.180001040
test rax, rax
je 0x180013efc
mov rbx, rax
jmp 0x180013e9b
mov ebx, 1
xor edi, edi
jmp 0x180013ea9
mov ebx, 1
mov rcx, rbx
mov rdx, r14
mov r8, rdi
call fcn.18004a480
mov qword [rsi], rdi
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rdi
mov rax, rsi
add rsp, 0x160
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x50], xmm0
lea rax, [0x18008cd20]
mov qword [rsp + 0x20], rax
lea rcx, [0x18004f5c0]
lea r9, [0x18004f5f0]
lea r8, [rsp + 0x50]
mov edx, 0x2b
call fcn.18004c070
xor r15d, r15d
mov rcx, r15
mov rdx, rdi
call fcn.18004bc10
int3
Function at 0x180022a00
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rax, rdx
mov qword [rsp + 0x10], rcx
mov edi, dword [rdx]
mov r11d, dword [rdx + 4]
mov ecx, dword [rdx + 8]
mov qword [rsp], rcx
mov ebp, dword [rdx + 0xc]
mov esi, dword [r8]
mov ecx, dword [r8 + 4]
mov qword [rsp + 8], rcx
mov ecx, dword [r8 + 8]
mov r13d, dword [r8 + 0xc]
mov r8d, dword [rdx + 0x10]
mov edx, dword [rdx + 0x14]
mov r9d, dword [rax + 0x18]
mov eax, dword [rax + 0x1c]
mov ebx, 0x79622d32
mov r14d, 0x3320646e
mov r12d, 0x61707865
mov r15d, 0x6b206574
mov r10d, 0xa
mov qword [rsp + 0x18], r10
mov r10, qword [rsp]
mov qword [rsp], r11
lea r11d, [rdx + r12]
rol r11d, 7
xor r11d, ebp
mov qword [rsp + 0x30], r11
lea ebp, [r11 + r12]
rol ebp, 9
xor ebp, ecx
mov qword [rsp + 0x40], rbp
lea ecx, [r11 + rbp]
rol ecx, 0xd
xor ecx, edx
mov qword [rsp + 0x48], rcx
add ecx, ebp
rol ecx, 0x12
xor ecx, r12d
lea edx, [rdi + r14]
rol edx, 7
xor edx, r13d
mov qword [rsp + 0x28], rdx
lea r12d, [rdx + r14]
rol r12d, 9
xor r12d, r9d
mov qword [rsp + 0x38], r12
add edx, r12d
rol edx, 0xd
xor edx, edi
lea r9d, [rdx + r12]
rol r9d, 0x12
xor r9d, r14d
lea r11d, [rsi + rbx]
rol r11d, 7
xor r11d, eax
mov qword [rsp + 0x20], r11
lea r12d, [r11 + rbx]
rol r12d, 9
xor r12d, dword [rsp]
lea r14d, [r12 + r11]
rol r14d, 0xd
xor r14d, esi
lea eax, [r14 + r12]
rol eax, 0x12
xor eax, ebx
lea esi, [r8 + r15]
rol esi, 7
xor esi, r10d
lea r13d, [rsi + r15]
rol r13d, 9
xor r13d, dword [rsp + 8]
lea ebx, [rsi + r13]
rol ebx, 0xd
xor ebx, r8d
lea r8d, [rbx + r13]
rol r8d, 0x12
xor r8d, r15d
mov qword [rsp], r8
lea edi, [rsi + rcx]
rol edi, 7
xor edi, edx
lea r11d, [rdi + rcx]
rol r11d, 9
xor r11d, r12d
lea r10d, [r11 + rdi]
rol r10d, 0xd
xor r10d, esi
lea r12d, [r10 + r11]
rol r12d, 0x12
xor r12d, ecx
mov rdx, qword [rsp + 0x30]
lea esi, [r9 + rdx]
rol esi, 7
xor esi, r14d
lea ecx, [rsi + r9]
rol ecx, 9
xor ecx, r13d
lea ebp, [rcx + rsi]
rol ebp, 0xd
xor ebp, edx
mov qword [rsp + 8], rcx
lea r14d, [rcx + rbp]
rol r14d, 0x12
xor r14d, r9d
mov rdx, qword [rsp + 0x28]
lea r8d, [rax + rdx]
rol r8d, 7
xor r8d, ebx
lea ecx, [r8 + rax]
rol ecx, 9
xor ecx, dword [rsp + 0x40]
lea r13d, [rcx + r8]
rol r13d, 0xd
xor r13d, edx
lea ebx, [rcx + r13]
rol ebx, 0x12
xor ebx, eax
mov r15, qword [rsp + 0x20]
mov rax, qword [rsp]
lea edx, [rax + r15]
rol edx, 7
xor edx, dword [rsp + 0x48]
lea r9d, [rdx + rax]
rol r9d, 9
xor r9d, dword [rsp + 0x38]
lea eax, [r9 + rdx]
rol eax, 0xd
xor eax, r15d
lea r15d, [rax + r9]
rol r15d, 0x12
xor r15d, dword [rsp]
dec qword [rsp + 0x18]
jne 0x180022a70
mov rax, qword [rsp + 0x10]
mov dword [rax], r12d
mov dword [rax + 4], r14d
mov dword [rax + 8], ebx
mov dword [rax + 0xc], r15d
mov dword [rax + 0x10], esi
mov rdx, qword [rsp + 8]
mov dword [rax + 0x14], edx
mov dword [rax + 0x18], ecx
mov dword [rax + 0x1c], r13d
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x180024640
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x1800246e0
jmp 0x1800246cf
jae 0x18002479f
cmp r8, 0x201
jae 0x1800246e0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x180024737
sub r8, rbx
sub rdi, rbx
cmp r8, rdi
jbe 0x18002470f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.18004b5d0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x180024760
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x18002480b
mov r8d, r13d
cmp r12, r8
jne 0x1800246c0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18002483f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1800246cf
jmp 0x1800246e0
cmp r14, r8
jb 0x180024859
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.180025cf0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x1800247f4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.180001050
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x1800247df
jmp 0x1800247f4
lea rcx, str.internal_error:_entered_unreachable_codeassertion_failed:_self.is_char_boundary_new_len__rustc_eeb90cda1969383f56a2637cbd3037bdf598841clibrary_alloc_src_string.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.18004bd80
jmp 0x18002486e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.18004c170
ud2
Function at 0x180029d30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x180092230]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x180029d68
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x180029dc6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x180029df3
test eax, eax
js 0x180029dd2
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x180029de9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.180025b30
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.180023520
mov ecx, 7
int 0x29
ud2
Function at 0x18003af50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x18003afda
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x18003afd0
cmp r10, r11
jb 0x18003b056
cmp r10, rdx
ja 0x18003b068
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x18003afd2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x18003afb0
jmp 0x18003b037
ja 0x18003afda
mov r11, r10
cmp rax, r8
jne 0x18003af77
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x18003b03b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x18003b010
mov r8, r10
sub ecx, r9d
jns 0x18003b02e
jmp 0x18003b03d
cmp r10, rdx
je 0x18003b04a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x18003b03d
xor al, 1
cmp r8, rdx
jne 0x18003aff0
jmp 0x18003b03d
xor eax, eax
jmp 0x18003b03d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.18004bcc0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.18004c1e0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.18004c170
int3
Function at 0x180044784
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 0x1800447b4
xor eax, eax
jmp 0x180044877
mov rbp, rbx
cmp word [rax], si
je 0x1800447d9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800447c0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800447bc
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.1800446a4
movsxd r14, eax
test eax, eax
jne 0x180044817
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x1800447ad
mov rcx, r14
call fcn.180045a14
mov rdi, rax
test rax, rax
jne 0x180044830
xor ecx, ecx
call fcn.180042cdc
jmp 0x18004480c
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.1800446a4
test eax, eax
jne 0x180044861
mov rcx, rdi
call fcn.180042cdc
jmp 0x18004486b
xor ecx, ecx
call fcn.180042cdc
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 0x18004a070
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18004a098
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18004a098
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140420770
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push rbp
push rax
push rcx
push rdx
lea rcx, section.UPX1
mov rdx, rcx
mov rsi, 0x10
mov al, byte [rdx]
xor al, 0x3c
mov byte [rdx], al
inc rdx
mov al, byte [rdx]
xor al, 0xe8
mov byte [rdx], al
inc rdx
dec rsi
jne 0x140420788
mov rsi, rcx
lea rdx, [rcx - 0x37d000]
mov rdi, rdx
pop rdx
pop rcx
pop rax
lea rax, [rdi + 0x401874]
push qword [rax]
mov dword [rax], 0xabff9215
push rax
push rdi
xor ebx, ebx
xor ecx, ecx
or rbp, 0xffffffffffffffff
call fcn.14042081d
add ebx, ebx
je 0x1404207d3
repz ret
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
repz ret
Function at 0x180001950
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x18004a010]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
call qword [sym.imp.USER32.dll_GetParent]
mov rdx, rax
mov rcx, rbx
call fcn.18001b874
mov edx, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetFocus]
mov edx, 0x3fc
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea r8, [rsp + 0x20]
mov edx, 0x104
lea rcx, [0x180174150]
call fcn.180029998
mov rdx, rbx
lea rcx, [0x180174140]
call fcn.180009454
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180021cb0
add rsp, 0x240
pop rbx
ret
Function at 0x180003168
Capabilities:
Get graphical window text
Write file on windows

Disassembly:
test r9d, r9d
jne 0x18000339a
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2d0
mov rax, qword [0x18004a010]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
xor r13d, r13d
mov rsi, rcx
sub edx, 1
je 0x1800031c9
cmp edx, 1
jne 0x18000336b
xor edx, edx
call qword [sym.imp.USER32.dll_EndDialog]
jmp 0x18000336b
mov rcx, qword [0x180176788]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x41b
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov r15, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov rcx, 0xffffffffffffffff
lea r14d, [rax + 1]
mov eax, 2
movsxd r12, r14d
mul r12
cmovo rax, rcx
mov rcx, rax
call fcn.180021c94
mov rdi, rax
test rax, rax
je 0x18000335d
mov r8d, r14d
mov rdx, rax
mov rcx, r15
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [rdi], r13w
je 0x180003347
lea r8, str.message.txt
lea rdx, [0x180176790]
lea rcx, [rbp - 0x50]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov qword [rsp + 0x30], r13
lea rcx, [rbp - 0x50]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x180003347
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r13
mov r8d, 3
lea rdx, [0x18003fd18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, r12
lea rcx, [rsp + 0x60]
call fcn.180003088
lea rax, [rsp + 0x60]
mov rdx, rdi
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
call fcn.18001cc98
mov r8d, dword [rbp - 0x80]
lea r9, [rsp + 0x40]
mov rdx, qword [rbp - 0x68]
mov rcx, r14
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [0x1800413a8]
mov qword [rsp + 0x60], rax
lea rax, [0x180041380]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea rax, [0x180041338]
mov qword [rsp + rcx + 0x68], rax
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0x40]
mov dword [rsp + rcx + 0x64], r8d
mov rcx, qword [rbp - 0x68]
call fcn.180021cd4
mov rcx, rdi
call fcn.180021cd4
mov edx, 1
mov rcx, rsi
call qword [sym.imp.USER32.dll_EndDialog]
test rbx, rbx
je 0x18000336b
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.180021cb0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret