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

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000248c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x140002483
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x14000248e
add rax, 0x28
cmp rax, r9
jne 0x140002470
xor eax, eax
ret

Function at 0x140002490
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140002520
mov rdx, qword [0x14001be40]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000250e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000250e
cmp word [rax + 0x18], 0x20b
jne 0x14000250e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140002520
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x1400024f9
add r12, 0x28
cmp r12, rsi
je 0x140002520
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x1400024f0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x140002530
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001be40]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002550
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002558
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002550
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1400025a5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000259c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002550
add rax, 0x28
cmp rax, r9
jne 0x140002588
xor eax, eax
ret

Function at 0x1400025b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001be40]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400025d0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400025d8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400025d0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1400025f0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14001be40]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002610
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002618
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002610
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002658
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000264f
test rcx, rcx
je 0x140002610
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002640
xor eax, eax
ret
Function at 0x140002660
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001be40]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002680
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002688
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x1400026a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14001be40]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400026c0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400026c8
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400026c0
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400026c0
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002704
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002718
add rax, 0x28
cmp r9, rax
jne 0x1400026f0
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x140002730
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14001be40]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002752
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002760
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002752
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002752
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002752
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400027ad
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400027c0
add rdx, 0x28
cmp r10, rdx
jne 0x140002798
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400027cf
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400027df
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400027b6
test ecx, ecx
jg 0x1400027c8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140003e50
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14001bec0]
mov rax, qword [rsi]
test rax, rax
je 0x140003ee0
cmp qword [rax + 0x30], 0
jne 0x140003f00
lea rbx, [0x14001a078]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140003eb0
cmp qword [rax + 0x30], 0
jne 0x140003ed0
lea rdx, [0x14001a078]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140003e92
test rax, rax
jne 0x140003ed0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140003ea0
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140003e70
test rax, rax
jne 0x140003f00
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140003e7b
Function at 0x140003f10
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140004022
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140003ffa
add rax, 1
cmp rax, 0x6b
je 0x140004017
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140003ff0
cmp edx, 0x6a
je 0x140004017
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14000400b
Function at 0x140007ad0
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x14001bec0]
mov rax, qword [rbx]
mov r12, rcx
mov esi, edx
test rax, rax
je 0x140007ba0
cmp qword [rax + 0x60], 0
jne 0x140007bc0
lea rcx, [0x14001a068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_lock
mov rcx, r12
call sym.__pthread_get_pointer
test rax, rax
je 0x140007bd0
cmp qword [rax + 0x1d8], r12
jne 0x140007bd0
test byte [rax + 0x40], 0xc
jne 0x140007bd0
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140007bd0
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140007bd0
mov rax, qword [rbx]
test rax, rax
je 0x140007c30
cmp qword [rax + 0x60], 0
jne 0x140007c50
lea rcx, [0x14001a068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
test esi, esi
je 0x140007c60
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x140007c68
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp sym.pthread_cancel
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x140007afb
test rax, rax
jne 0x140007bc0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007b06
mov rax, qword [rbx]
test rax, rax
je 0x140007c00
cmp qword [rax + 0x60], 0
jne 0x140007c20
lea rcx, [0x14001a068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rbx]
cmp qword [r8 + 0x60], 0
je 0x140007bdf
test rax, rax
jne 0x140007c20
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007bea
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x140007b6a
test rax, rax
jne 0x140007c50
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007b75
xor eax, eax
jmp 0x140007bf4
mov eax, 0x16
jmp 0x140007bf4
Function at 0x140007ee0
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
mov rbp, r9
call sym.pop_pthread_mem
mov r12, rax
test rax, rax
je 0x140008149
test rdi, rdi
je 0x140007f1a
mov rax, qword [rax + 0x1d8]
mov qword [rdi], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [r12 + 8], rbp
mov dword [r12 + 0x44], 1
mov rbp, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [r12 + 0xbc], 0
mov r14, r13
mov qword [r12 + 0x28], 0xffffffffffffffff
mov qword [r12 + 0x10], rbx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call rbp
mov qword [r12 + 0x30], rax
test rax, rax
jne 0x140007f87
add ebx, 1
cmp ebx, 1
je 0x140008090
mov ecx, 0x14
call r14
cmp ebx, 5
jne 0x140007f55
mov qword [r12 + 0x38], 0xffffffffffffffff
lea r14, [r12 + 0x68]
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14000818f
cmp qword [r12 + 0x30], 0
mov qword [r12 + 0x68], 0xffffffffffffffff
mov dword [r12], 0xbab1f00d
mov dword [r12 + 0xc0], 0
mov dword [r12 + 0xb8], 0
je 0x140008132
xor edx, edx
test rsi, rsi
je 0x140007fff
mov eax, dword [rsi]
mov edx, dword [rsi + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
jne 0x140008160
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [sym.pthread_create_wrapper]
mov r9, r12
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov r13, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400080f0
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x1400080c0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [r12 + 0x44], 4
jne 0x1400080a0
mov qword [r12 + 0x28], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor ecx, ecx
call r13
jmp 0x140007f55
mov qword [r12 + 0x28], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000806f
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x140008045
mov edx, 0xf
cmp eax, 0xe
jg 0x140008045
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x140008045
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x140008100
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call sym.pthread_mutex_destroy
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14000818f
mov qword [r12 + 0x68], 0xffffffffffffffff
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
test rdi, rdi
je 0x14000813e
mov qword [rdi], 0
cmp qword [r12 + 0x1d0], 0
je 0x140008180
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov dword [rsp + 0x3c], edx
call sym.__pthread_self_lite
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [r12 + 0xc0], eax
jmp 0x140007fff
mov rcx, r12
call sym.push_pthread_mem.part.0
mov eax, 0xb
jmp 0x14000814e
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
Function at 0x140008bd0
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140008bf0
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140008c38
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140008be4
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140008c25

Function at 0x140008c60
Capabilities:
Check mutex on windows

Disassembly:
push r12
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
lea r8, [0x14001f2c0]
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140008d18
mov rdx, qword [0x14001f200]
lea rcx, [0x14001f200]
mov rax, qword [rdx + 8]
test rax, rax
je 0x140008ce8
cmp rdx, rcx
jne 0x140008cca
mov qword [rdx], rax
cmp rax, rcx
je 0x140008ccf
nop dword [rax]
test rax, rax
je 0x140008cfa
mov rdx, qword [rdx]
mov qword [rax], rdx
mov rdx, rax
mov rax, qword [rdx + 8]
cmp rax, rcx
jne 0x140008cb8
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
test rax, rax
je 0x140008cfa
mov rdx, rax
jmp 0x140008cc6
lea rcx, [0x14001f300]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140008d36
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
lea rcx, str.failed_to_to_lock_cleanup_mutex_n
call sym.__shmem_get_error
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_DeleteAtom]
jmp 0x140008cfa
Function at 0x1408a8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1408a81df
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 0x1408a8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408a806f
add dl, dl
jne 0x1408a8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408a80f6
xor eax, eax
add dl, dl
jne 0x1408a80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408a81ad
add dl, dl
jne 0x1408a80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408a80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408a80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408a80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408a80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1408a807e
mov eax, 1
add dl, dl
jne 0x1408a8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408a8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408a80fb
sub eax, ebx
mov ebx, 1
jne 0x1408a814c
mov ecx, 1
add dl, dl
jne 0x1408a812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408a813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408a8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408a807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1408a8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408a8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408a815d
cmp eax, 0x7d00
jae 0x1408a819b
cmp eax, 0x500
jb 0x1408a8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408a807e
cmp eax, 0x7f
ja 0x1408a819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408a807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408a81d2
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 0x1408a807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180004580
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm6
mov rax, qword [0x1800cc040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx ebp, r8b
movaps xmm6, xmm1
mov rdi, rcx
mov qword [rsp + 0x68], rcx
mov r10, qword [rcx + 0x10]
mov rdx, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x1800045cc
mov rdx, qword [rcx]
movabs rsi, 0xcbf29ce484222325
mov r9, rsi
xor ecx, ecx
movabs r14, 0x100000001b3
test r10, r10
je 0x180004603
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, r14
inc rcx
cmp rcx, r10
jb 0x1800045f0
mov r8, rdi
lea rdx, [rsp + 0x20]
call fcn.180053f50
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180004622
cmp rcx, qword [0x1800cc478]
jne 0x180004694
lea rcx, [rsp + 0x20]
call fcn.180003a00
mov rbx, rax
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.180040640
mov rax, qword [rbx]
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
call fcn.18004a680
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x180004694
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000468f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000468f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180096e88
mov r8, qword [rdi + 0x10]
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x1800046a5
mov rdx, qword [rdi]
xor ecx, ecx
test r8, r8
je 0x1800046c3
nop dword [rax]
movzx eax, byte [rdx + rcx]
xor rsi, rax
imul rsi, r14
inc rcx
cmp rcx, r8
jb 0x1800046b0
mov r9, rsi
mov r8, rdi
lea rdx, [rsp + 0x30]
call fcn.180053f50
mov rcx, qword [rax + 8]
mov rbx, qword [0x1800cc478]
test rcx, rcx
cmovne rbx, rcx
lea rcx, [rsp + 0x20]
call fcn.180003a00
mov rax, qword [rax]
sub rax, qword [rbx + 0x30]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
divss xmm0, dword [0x1800b67f8]
comiss xmm0, xmm6
jb 0x18000475f
test bpl, bpl
je 0x180004721
lea rcx, [rsp + 0x20]
call fcn.180003a00
mov rax, qword [rax]
mov qword [rbx + 0x30], rax
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x18000475b
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x180004756
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800047d4
mov rcx, r8
call fcn.180096e88
mov al, 1
jmp 0x180004797
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x180004795
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x180004790
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800047d4
mov rcx, r8
call fcn.180096e88
xor al, al
mov byte [rdi], 0
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], 0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180096600
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x180009dc0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x90
mov rbx, rcx
mov qword [rsp + 0x68], rcx
xor edi, edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov r8d, 0x45
lea rdx, str...LocalPackagesMicrosoft.MinecraftUWP_8wekyb3d8bbweRoamingState_
lea rcx, [rsp + 0x48]
call fcn.18004aac0
nop
lea rcx, str.AppData
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea r8, [rsp + 0x48]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.180047050
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x180009e61
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180009e5b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180009e5b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180096e88
nop
lea rdx, [0x1800cf638]
cmp qword [0x1800cf650], 0xf
cmova rdx, qword [0x1800cf638]
mov r8, qword [0x1800cf648]
lea rcx, [rsp + 0x70]
call fcn.180042cc0
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x30], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8d, 1
lea rdx, [0x1800a2470]
lea rcx, [rsp + 0x20]
call fcn.180042cc0
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x180009f3c
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180009f37
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180009f37
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180096e88
movdqa xmm0, xmmword [0x1800b68b0]
movdqu xmmword [rsp + 0x30], xmm0
mov byte [rsp + 0x20], 0
mov rdx, qword [rsp + 0x88]
cmp rdx, 0xf
jbe 0x180009f92
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180009f8d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180009f8d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180096e88
mov rax, rbx
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret
Function at 0x18001aed0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1800cc040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, qword [rcx + 0xc8]
test rbx, rbx
je 0x18001af38
movaps xmmword [rsp + 0x30], xmm6
lea r9, [rsp + 0x20]
movss xmm6, dword [rcx + 0xc0]
mov edx, 4
mov rcx, rbx
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov edx, 4
movss dword [rbx], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movaps xmm6, xmmword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180096600
add rsp, 0x40
pop rbx
ret

Function at 0x18001af50
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1800cc040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, qword [rcx + 0xc8]
test rbx, rbx
je 0x18001afa8
lea r9, [rsp + 0x20]
mov edx, 4
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov edx, 4
mov dword [rbx], 0x40400000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180096600
add rsp, 0x30
pop rbx
ret