joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [str._blU_]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x140551e60]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140005f10
jmp 0x14000123c
mov rax, qword [0x140551e60]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x140551e60]
mov dword [rax], 1
mov rax, qword [0x140551ea0]
mov rdx, rax
mov rax, qword [0x140551e90]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140556024], 1
mov rax, qword [0x140551e60]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140551e80]
mov rdx, rax
mov rax, qword [0x140551e70]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x140551e60]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [str._blU_]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x140551da0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140551da0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.140005198
mov rax, qword [0x140551ee0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [str._kU_]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140004990
mov eax, dword [0x140556004]
lea rdx, [0x140556008]
mov ecx, eax
call fcn.14000147c
call fcn.140004727
mov rax, qword [0x140551dd0]
mov rax, qword [rax]
mov rdx, qword [0x140556010]
mov qword [rax], rdx
mov rcx, qword [0x140556010]
mov rdx, qword [0x140556008]
mov eax, dword [0x140556004]
mov r8, rcx
mov ecx, eax
call fcn.140006220
mov dword [0x14055601c], eax
mov eax, dword [0x140556020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14055601c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140556024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14055601c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140551e00]
mov dword [rax], 1
mov rax, qword [str._bkU_]
mov dword [rax], 1
mov rax, qword [str._fkU_]
mov dword [rax], 1
mov rax, qword [0x140551dc0]
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 0x1400017b0
Capabilities:
Get file size
Terminate process

Disassembly:
push rbx
sub rsp, 0x160
xor ecx, ecx
mov r8d, 0x104
lea rbx, [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140001851
mov rcx, rbx
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov r8d, 1
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001851
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140001860
pxor xmm0, xmm0
movsd xmm1, qword [0x140551568]
mov rcx, rbx
cvtsi2sd xmm0, qword [rsp + 0x48]
mulsd xmm0, qword [0x140551560]
comisd xmm1, xmm0
ja 0x14000184b
comisd xmm0, xmmword [0x140551570]
jbe 0x140001870
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x160
pop rbx
ret
Function at 0x140003d80
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003db4
cmp word [rcx], 0x5a4d
jne 0x140003db4
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003db4
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003db4
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003cc0
test eax, eax
jne 0x140003dd0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003d30
test rax, rax
je 0x140003dc5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000457f
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004480
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004420
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400049a0
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.140005d00
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x140005672
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140556ba8]
test eax, eax
je 0x14000570a
lea rax, [0x140556b80]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140556bb0]
mov qword [rbp - 8], rax
jmp 0x1400056ee
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 0x1400056e2
cmp qword [rbp - 0x10], 0
je 0x1400056e2
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 0x1400056a8
lea rax, [0x140556b80]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000570b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140005810
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 0x140005838
mov eax, 0
jmp 0x140005886
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 0x140005861
mov eax, 0
jmp 0x140005886
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 0x140005881
mov eax, 0
jmp 0x140005886
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14000588c
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 0x14000590a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140005901
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 0x140005901
mov rax, qword [rbp - 8]
jmp 0x14000591f
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 0x1400058d4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002a58
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x288]
sub rsp, 0x360
mov rax, qword gs:[0x60]
mov r15, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
mov r14, qword [rax + 0x18]
add r14, 0x20
mov rbx, qword [r14]
call fcn.140067930
movsd xmm0, qword [str.ntdll.dll]
movzx eax, word [0x1400e9d40]
movsd qword [rsp + 0x20], xmm0
mov word [rsp + 0x28], ax
cmp rbx, r14
je 0x140002b89
mov sil, byte [rsp + 0x20]
xor r12d, r12d
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x140002b7d
movzx r9d, word [rbx + 0x38]
mov edx, r12d
shr r9, 1
mov r8, r12
je 0x140002b0f
cmp edx, 0x103
jge 0x140002b0f
mov al, byte [rcx]
inc edx
mov byte [rsp + r8 + 0x30], al
add rcx, 2
inc r8
movsxd rax, edx
cmp rax, r9
jb 0x140002aef
mov byte [rsp + r8 + 0x30], r12b
mov rdi, r12
test sil, sil
je 0x140002b36
mov al, sil
movzx ecx, al
call fcn.140045278
mov byte [rbp + rdi + 0x40], al
inc rdi
mov al, byte [rsp + rdi + 0x20]
test al, al
jne 0x140002b1f
mov byte [rbp + rdi + 0x40], r12b
mov rdi, r12
cmp byte [rsp + 0x30], r12b
je 0x140002b60
movzx ecx, byte [rsp + rdi + 0x30]
call fcn.140045278
mov byte [rbp + rdi + 0x150], al
inc rdi
cmp byte [rsp + rdi + 0x30], r12b
jne 0x140002b45
lea rdx, [rbp + 0x40]
mov byte [rbp + rdi + 0x150], r12b
lea rcx, [rbp + 0x150]
call fcn.140040d94
test rax, rax
jne 0x140002bac
mov rbx, qword [rbx]
cmp rbx, r14
jne 0x140002ad2
xor eax, eax
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140002b89
mov rcx, r15
call fcn.1400452e0
mov r8, rax
lea rcx, [rsp + 0x20]
mov rdx, r15
call fcn.140002c9c
mov r12d, dword [rax]
movsxd rax, dword [rdi + 0x3c]
mov r15d, dword [rax + rdi + 0x88]
xor eax, eax
add r15, rdi
mov esi, eax
mov r13d, dword [r15 + 0x20]
add r13, rdi
cmp dword [r15 + 0x18], eax
jbe 0x140002b89
mov r14d, esi
mov ebx, dword [r13 + r14*4]
add rbx, rdi
mov rcx, rbx
call fcn.1400452e0
mov r8, rax
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140002c9c
cmp dword [rax], r12d
jne 0x140002c59
mov ecx, dword [r15 + 0x24]
add rcx, rdi
movzx edx, word [rcx + r14*2]
mov ecx, dword [r15 + 0x1c]
add rcx, rdi
mov ebx, dword [rcx + rdx*4]
add rbx, rdi
xor ecx, ecx
mov eax, ecx
cmp byte [rax + rbx], 0xf
jne 0x140002c42
cmp byte [rax + rbx + 1], 5
je 0x140002c4d
inc rax
cmp rax, 0x20
jl 0x140002c35
jmp 0x140002c59
movzx r14d, word [rax + rbx - 2]
test r14w, r14w
jne 0x140002c66
inc esi
cmp esi, dword [r15 + 0x18]
jb 0x140002bf0
jmp 0x140002b89
mov ecx, 0x10
call fcn.14003ecf4
xor ecx, ecx
mov word [rax + 0xe], cx
mov qword [rax], rbx
mov dword [rax + 8], r12d
mov word [rax + 0xc], r14w
jmp 0x140002b8b
Function at 0x140002c9c
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
lea rbx, [r8 + 0x48]
mov byte [rbp + 0x77], 0
lea rax, [r8*8]
mov rsi, r8
mov rdi, rdx
mov qword [rbp + 0x7f], rax
mov r14, rcx
lea r8, [rbp + 0x77]
and rbx, 0xffffffffffffffc0
lea rcx, [rbp - 0x39]
mov rdx, rbx
mov r13d, 0xefcdab89
mov r12d, 0x98badcfe
mov r15d, 0x10325476
call fcn.140003180
mov rcx, qword [rbp - 0x39]
mov r8, rsi
mov rdx, rdi
call fcn.140067290
mov rax, qword [rbp - 0x39]
lea rdx, [rbp + 0x7f]
mov r8d, 8
mov byte [rax + rsi], 0x80
mov rcx, qword [rbp - 0x39]
add rcx, 0xfffffffffffffff8
add rcx, rbx
call fcn.140067290
mov rax, qword [rbp - 0x31]
mov edi, 0x67452301
mov rcx, qword [rbp - 0x39]
sub rax, rcx
shr rax, 6
mov qword [rbp - 0x41], rax
test rax, rax
je 0x140002e54
xor r14d, r14d
mov qword [rbp - 0x49], r14
lea rdx, [r14 + rcx]
mov dword [rbp + 0x77], r12d
lea rcx, [rbp - 0x19]
mov r8d, 0x40
mov ebx, r13d
mov esi, r15d
call fcn.140067290
xor r8d, r8d
lea r14, [0x140000000]
xor r10d, r10d
mov r11d, edi
mov r9d, dword [rbp + 0x77]
cmp r8d, 0x10
jae 0x140002da2
mov eax, r9d
mov edx, ebx
not edx
and eax, ebx
and edx, esi
or edx, eax
mov eax, r8d
jmp 0x140002df0
mov edx, esi
cmp r8d, 0x20
jae 0x140002dc2
not edx
mov eax, esi
and eax, ebx
and edx, r9d
or edx, eax
lea eax, [r8*4 + 1]
add eax, r8d
jmp 0x140002de2
cmp r8d, 0x30
jae 0x140002dd7
xor edx, r9d
lea eax, [r8*2 + 5]
xor edx, ebx
jmp 0x140002dbd
not edx
or edx, ebx
xor edx, r9d
imul eax, r8d, 7
and eax, 0x8000000f
jge 0x140002df0
dec eax
or eax, 0xfffffff0
inc eax
mov eax, dword [rbp + rax*4 - 0x19]
inc r8d
add eax, dword [r10 + r14 + 0xe9d60]
mov cl, byte [r10 + r14 + 0xe9e60]
add eax, edx
add eax, r11d
mov dword [rbp + 0x77], ebx
rol eax, cl
mov edx, ebx
add ebx, eax
add r10, 4
mov r11d, esi
mov esi, r9d
cmp r8d, 0x40
jl 0x140002d86
mov r14, qword [rbp - 0x49]
add edi, r11d
mov rcx, qword [rbp - 0x39]
add r14, 0x40
add r13d, ebx
mov qword [rbp - 0x49], r14
add r12d, edx
add r15d, r9d
sub qword [rbp - 0x41], 1
jne 0x140002d59
mov r14, qword [rbp + 0x67]
mov dword [r14], edi
mov dword [r14 + 4], r13d
mov dword [r14 + 8], r12d
mov dword [r14 + 0xc], r15d
test rcx, rcx
je 0x140002e95
mov rdx, qword [rbp - 0x29]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140002e90
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002eb3
call fcn.14003ef78
mov rbx, qword [rsp + 0xd8]
mov rax, r14
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140046484
int3
Function at 0x140003310
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Resolve function by parsing pe exports

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 r13
push r14
cmp dword [0x14022ecd0], 0
jne 0x1400034a0
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x18]
mov r9, qword [rcx + 0x10]
mov rax, qword [r9 + 0x30]
test rax, rax
je 0x1400034be
mov r10d, 0x20202020
mov r8, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + r8 + 0x88]
test ecx, ecx
je 0x140003391
lea rdx, [r8 + rcx]
mov ecx, dword [rdx + 0xc]
mov eax, dword [rcx + r8]
or eax, r10d
cmp eax, 0x6c64746e
jne 0x140003391
mov eax, dword [rcx + r8 + 4]
or eax, r10d
cmp eax, 0x6c642e6c
je 0x14000339d
mov r9, qword [r9]
mov rax, qword [r9 + 0x30]
test rax, rax
jne 0x14000335a
test rdx, rdx
je 0x1400034be
mov ebx, dword [rdx + 0x1c]
lea r13, [0x14022ecd0]
mov r10d, dword [rdx + 0x20]
add rbx, r8
mov edi, dword [rdx + 0x24]
add r10, r8
mov r11d, dword [rdx + 0x18]
add rdi, r8
xor edx, edx
mov qword [0x140232468], r8
lea eax, [r11 - 1]
mov r9d, dword [r10 + rax*4]
mov r11d, eax
add r9, r8
mov r14d, eax
mov eax, 0x775a
cmp word [r9], ax
jne 0x14000342c
xor ebp, ebp
mov esi, 0xfca959d3
cmp byte [r9], bpl
je 0x140003410
mov rax, r9
movzx eax, word [rax]
mov ecx, esi
ror ecx, 8
inc ebp
add ecx, eax
mov eax, ebp
add rax, r9
xor esi, ecx
cmp byte [rax], 0
jne 0x1400033f8
mov dword [r13 + rdx*8 + 4], esi
movzx eax, word [rdi + r14*2]
mov eax, dword [rbx + rax*4]
mov dword [r13 + rdx*8 + 8], eax
inc edx
cmp edx, 0x1f4
je 0x140003431
test r11d, r11d
jne 0x1400033cd
xor r8d, r8d
mov dword [0x14022ecd0], edx
lea eax, [rdx - 1]
test eax, eax
je 0x1400034a0
mov eax, edx
xor ecx, ecx
sub eax, r8d
cmp eax, 1
je 0x140003495
mov r9d, ecx
lea r11d, [rcx + 1]
mov ebx, dword [r13 + r11*8 + 8]
mov edi, dword [r13 + r9*8 + 8]
cmp edi, ebx
jbe 0x140003486
mov ecx, dword [r13 + r9*8 + 4]
mov eax, dword [r13 + r11*8 + 4]
mov dword [r13 + r9*8 + 4], eax
mov dword [r13 + r11*8 + 4], ecx
mov dword [r13 + r9*8 + 8], ebx
mov dword [r13 + r11*8 + 8], edi
mov edx, dword [0x14022ecd0]
mov eax, edx
mov ecx, r11d
sub eax, r8d
dec eax
cmp r11d, eax
jb 0x14000344d
inc r8d
lea eax, [rdx - 1]
cmp r8d, eax
jb 0x140003441
mov eax, 1
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r14
pop r13
ret
xor eax, eax
jmp 0x1400034a5
Function at 0x140004a60
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
ret

Function at 0x140017f40
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0xa0
xorps xmm0, xmm0
mov qword [rax - 0x68], 0
mov rbx, rcx
mov rsi, r8
lea rcx, [rax - 0x40]
mov rdi, rdx
movups xmmword [rax - 0x40], xmm0
movups xmmword [rax - 0x30], xmm0
movups xmmword [rax - 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp rbx, qword [rsp + 0x70]
lea rcx, [rdi - 1]
mov rax, qword [rsp + 0x40]
cmovb rbx, qword [rsp + 0x70]
cmp rcx, qword [rsp + 0x78]
mov qword [rsp + 0x60], 0
cmova rcx, qword [rsp + 0x78]
and rax, 0xffffffffffffff01
or rax, 1
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x40], rax
lea rcx, str.kernelbase.dll
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14001801d
lea rdx, str.VirtualAlloc2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 1
mov r9d, 0x3000
mov rcx, rax
mov r8, rsi
lea rax, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call rbx
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140018050
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x80
xorps xmm0, xmm0
mov rbx, rcx
lea rcx, [rax - 0x38]
mov rsi, r8
movups xmmword [rax - 0x38], xmm0
mov rbp, rdx
movups xmmword [rax - 0x28], xmm0
movups xmmword [rax - 0x18], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp rbx, rbp
jae 0x140018125
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140018125
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x140018114
cmp rcx, rsi
jb 0x140018114
mov rdi, qword [rsp + 0x20]
xor edx, edx
mov ecx, dword [rsp + 0x78]
mov rax, rdi
div rcx
test rdx, rdx
je 0x1400180db
sub rdi, rdx
add rdi, rcx
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x140018127
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
jne 0x14001810a
add rbx, rsi
jmp 0x14001811c
mov rbx, qword [rsp + 0x38]
add rbx, rdi
jmp 0x14001811c
mov rbx, qword [rsp + 0x20]
add rbx, rcx
cmp rbx, rbp
jb 0x140018092
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140019480
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x14001965f
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140019340
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140019624
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x14]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x15]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x16]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x17]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14001959c
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140019613
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x1400195d9
mov r10, qword [rdx]
cmp r10, rax
je 0x1400195d3
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140019613
cmp r9, rdx
je 0x1400195ef
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x140019639
cmp r9, rdx
jne 0x1400195e0
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x140019520
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140019613
lea rcx, str.invalid_hash_bucket_count
call fcn.14003c57c
int3