joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002f30
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180003180
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18000304a
mov rax, qword [0x18002e020]
cmp qword [rsp + 0x20], rax
jb 0x180002f94
mov rax, qword [0x18002e028]
cmp qword [rsp + 0x20], rax
ja 0x180002f94
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180002f56
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18001f630
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180002fc5
jmp 0x18000304a
cmp dword [rsp + 0x50], 0x10000
jne 0x18000302d
cmp qword [rsp + 0x48], 0x10000
jb 0x18000302d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000300b
mov rax, qword [rsp + 0x28]
jmp 0x18000304c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x18000301b
xor eax, eax
jmp 0x18000304c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180003045
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180003180
mov qword [rsp + 0x20], rax
jmp 0x180002f56
xor eax, eax
add rsp, 0x68
ret

Function at 0x180003060
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.1800031c0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180003176
mov rax, qword [0x18002e020]
cmp qword [rsp + 0x20], rax
jb 0x1800030bb
mov rax, qword [0x18002e028]
cmp qword [rsp + 0x20], rax
ja 0x1800030bb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18000307d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18001f630
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1800030ec
jmp 0x180003176
cmp dword [rsp + 0x50], 0x10000
jne 0x180003154
cmp qword [rsp + 0x48], 0x10000
jb 0x180003154
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180003132
mov rax, qword [rsp + 0x28]
jmp 0x180003178
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180003142
xor eax, eax
jmp 0x180003178
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180003171
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1800031c0
mov qword [rsp + 0x20], rax
jmp 0x18000307d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180003210
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800037a0
mov qword [rsp + 0x28], 0
cmp qword [0x18002ee68], 0
jne 0x180003258
cmp qword [0x18002ee60], 0
je 0x180003258
mov rax, qword [0x18002ee60]
mov qword [0x18002ee68], rax
cmp qword [0x18002ee68], 0
je 0x1800032fe
mov rax, qword [0x18002ee68]
cmp qword [rax + 0x10], 0
je 0x1800032fe
mov rax, qword [0x18002ee68]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800032fe
mov rax, qword [0x18002ee68]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800032fe
mov rax, qword [0x18002ee68]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800032c4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800032cb
xor eax, eax
jmp 0x180003479
mov rax, qword [0x18002ee68]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.18001f630
mov rax, qword [rsp + 0x28]
jmp 0x180003479
mov rax, qword [0x18002ee60]
mov qword [0x18002ee68], rax
jmp 0x180003320
mov rax, qword [0x18002ee68]
mov rax, qword [rax + 8]
mov qword [0x18002ee68], rax
cmp qword [0x18002ee68], 0
je 0x18000336d
cmp qword [0x18002ee68], 0
je 0x18000336b
mov rax, qword [0x18002ee68]
cmp qword [rax + 0x10], 0
je 0x18000336b
mov rax, qword [0x18002ee68]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000336b
mov rax, qword [0x18002ee68]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000336b
jmp 0x18000329c
jmp 0x18000330e
mov rcx, qword [rsp + 0x60]
call fcn.1800053f0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180003480
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180003477
mov rax, qword [rsp + 0x48]
mov qword [0x18002ee68], rax
mov rax, qword [0x18002ee68]
mov dword [rax], 0x52727464
mov rax, qword [0x18002ee68]
mov qword [rax + 0x10], 0
mov rax, qword [0x18002ee68]
mov rcx, qword [0x18002ee60]
mov qword [rax + 8], rcx
mov rax, qword [0x18002ee68]
mov qword [0x18002ee60], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18002ee68]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180003428
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180003462
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18000341e
mov rax, qword [0x18002ee68]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18000329c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180004190
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1800041d7
xor al, al
jmp 0x180004279
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x180004201
xor al, al
jmp 0x180004279
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x180004271
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x180004271
mov al, 1
jmp 0x180004279
jmp 0x180004277
xor al, al
add rsp, 0x78
ret

Function at 0x180004580
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18002ee60]
mov qword [rsp + 0x28], rax
jmp 0x1800045a0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800045cf
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1800045cd
call sub.KERNEL32.dll_GetLastError
jmp 0x1800045d1
jmp 0x180004592
xor eax, eax
add rsp, 0x38
ret
Function at 0x180004c90
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x18002ee78], eax
je 0x180004cab
mov eax, 0x10dd
jmp 0x180004dd0
mov rax, qword [0x18002ee90]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180004d55
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180004d20
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x180004d20
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.1800038e0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.180006a4c
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180004cb7
mov qword [0x18002ee90], 0
call fcn.180004340
mov rax, qword [0x18002ee88]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180004db9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.180006a4c
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180004d71
mov qword [0x18002ee88], 0
mov dword [0x18002ee78], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x180005300
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x18002ee7c], 0
je 0x18000531d
mov eax, dword [0x18002ee7c]
jmp 0x1800053e3
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x180005330
xor eax, eax
jmp 0x1800053e3
mov ecx, 0x10
call fcn.180006a54
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18000539e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180005383
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.180006a4c
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x18002ee7c], eax
mov qword [0x18002ee80], 0
mov eax, dword [rsp + 0x20]
jmp 0x1800053e3
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1800053b8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180005359
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x18002ee88]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x18002ee88], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x180013498
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800134ae
mov al, 1
jmp 0x18001350e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800134bf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18001350c
mov ecx, dword [rcx + 0x18]
nop
call fcn.18001a370
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18001350c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18001350c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18001350c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18001350e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800161b0
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, [0x18002fdc0]
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 0x180016207
cmp word [rdx], r13w
jne 0x180016207
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18001620c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180016331
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180016352
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180016245
mov rdx, r9
mov word [rbx], cx
jmp 0x18001626c
cmp r9, r8
jae 0x18001627c
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 0x180016226
jmp 0x180016331
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 0x180016326
cmp dword [rsp + 0x80], esi
je 0x180016326
lea r8, [0x18002fdc0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800162fe
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800162ce
mov word [rbx], r13w
jmp 0x18001632e
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 0x1800162db
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18001632e
cmp word [rsp + 0x70], r13w
jne 0x18001630b
cmp rbx, r14
je 0x1800162c8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18001610c
cmp word [rsp + 0x70], r13w
je 0x180016331
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, [0x18002fdc0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18001632b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180016331
Function at 0x1800194f4
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 0x180019524
xor eax, eax
jmp 0x1800195e7
mov rbp, rbx
cmp word [rax], si
je 0x180019549
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180019530
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001952c
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.180017d98
movsxd r14, eax
test eax, eax
jne 0x180019587
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001951d
mov rcx, r14
call fcn.1800137fc
mov rdi, rax
test rax, rax
jne 0x1800195a0
xor ecx, ecx
call fcn.180012f50
jmp 0x18001957c
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.180017d98
test eax, eax
jne 0x1800195d1
mov rcx, rdi
call fcn.180012f50
jmp 0x1800195db
xor ecx, ecx
call fcn.180012f50
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 0x18001e228
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.18001610c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18001610c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18001e378
cmp rax, 0xffffffffffffffff
je 0x18001e378
xor edi, edi
test rbp, rbp
jle 0x18001e323
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180015e2c
mov rbx, rax
test rax, rax
jne 0x18001e2b0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18001e319
mov edx, 0x8000
mov ecx, r14d
call fcn.18001e0ac
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.18001571c
cmp eax, 0xffffffff
je 0x18001e2f9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18001e2c0
mov edx, r15d
mov ecx, r14d
call fcn.18001e0ac
jmp 0x18001e319
cmp byte [rsi + 0x38], dil
je 0x18001e310
cmp dword [rsi + 0x34], 5
jne 0x18001e310
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18001e319
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180012f50
jmp 0x18001e38c
jns 0x18001e38c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18001610c
cmp rax, 0xffffffffffffffff
jne 0x18001e344
cmp byte [rsi + 0x30], dil
je 0x18001e38c
mov edi, dword [rsi + 0x2c]
jmp 0x18001e38c
mov ecx, r14d
call fcn.18001a370
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18001e38c
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 0x18001e38c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18001e385
mov eax, dword [rsi + 0x2c]
jmp 0x18001e38a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18001610c
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 0x18001ec60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18001ec88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18001ec88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400059b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1400059d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140005a4c
mov rdi, r14
mov rcx, rbx
call fcn.140006ff0
test rax, rax
jle 0x140005a24
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.14004d1f0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140005a3c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140005a44
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400059e6
sub r14, rdi
jmp 0x140005b39
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140005a63
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005a65
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005a9a
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14004d1f0
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140005b36
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x140005ad5
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140005b11
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140057a20
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x140005b4f
cmp rbp, rax
ja 0x140005ae1
mov r8, rdi
test rdi, rdi
je 0x140005b36
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140057a20
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x140005b39
Function at 0x140009ba0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
mov r9, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x140009bc6
mov r8, qword [r8]
movabs rcx, 0xcbf29ce484222325
xor edx, edx
add r9, r9
je 0x140009bf5
movabs r10, 0x100000001b3
movzx eax, byte [rdx + r8]
xor rcx, rax
imul rcx, r10
inc rdx
cmp rdx, r9
jb 0x140009be1
movsxd r14, dword [rsi + 0x20]
xor r14, rcx
mov r9, r14
mov r8, rsi
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.14000a680
mov r10, qword [rsp + 0x28]
test r10, r10
je 0x140009c25
mov qword [rdi], r10
mov byte [rdi + 8], 0
jmp 0x140009d8a
movabs rax, 0x38e38e38e38e38e
cmp qword [rbp + 0x10], rax
je 0x140009d9c
lea r12, [rbp + 8]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], 0
mov ecx, 0x48
call fcn.14004b270
mov rbx, rax
mov qword [rsp + 0x38], rax
lea r15, [rax + 0x10]
mov rdx, rsi
mov rcx, r15
call fcn.140006730
mov ecx, dword [rsi + 0x20]
mov dword [r15 + 0x20], ecx
mov qword [r15 + 0x28], 0
mov qword [r15 + 0x30], 0
mov rax, qword [rsi + 0x30]
test rax, rax
je 0x140009c95
lock inc dword [rax + 8]
mov rbx, qword [rsp + 0x38]
mov rax, qword [rsi + 0x28]
mov qword [r15 + 0x28], rax
mov rax, qword [rsi + 0x30]
mov qword [r15 + 0x30], rax
mov r9, qword [rbp + 0x10]
lea rcx, [r9 + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x140009cbc
cvtsi2ss xmm0, rcx
jmp 0x140009cd1
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [rbp + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x140009ce4
cvtsi2ss xmm1, rcx
jmp 0x140009cf9
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [rbp]
seta al
test al, al
je 0x140009d2f
mov rcx, rbp
call fcn.14000a230
mov r9, r14
mov r8, r15
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.14000a680
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
mov r9, qword [rbp + 0x10]
mov rdx, qword [rsp + 0x20]
mov r8, qword [rdx + 8]
lea rax, [r9 + 1]
mov qword [rbp + 0x10], rax
mov qword [rbx], rdx
mov qword [rbx + 8], r8
mov qword [r8], rbx
mov qword [rdx + 8], rbx
mov rcx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x30]
and rax, r14
add rax, rax
mov r9, qword [rcx + rax*8]
cmp r9, qword [r12]
jne 0x140009d6c
mov qword [rcx + rax*8], rbx
jmp 0x140009d7e
cmp r9, rdx
jne 0x140009d77
mov qword [rcx + rax*8], rbx
jmp 0x140009d83
cmp qword [rcx + rax*8 + 8], r8
jne 0x140009d83
mov qword [rcx + rax*8 + 8], rbx
mov qword [rdi], rbx
mov byte [rdi + 8], 1
mov rax, rdi
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rcx, str.unordered_map_set_too_long
call fcn.1400494f4
int3
Function at 0x14000a7f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x13d0
call fcn.14004bca0
sub rsp, rax
mov rax, qword [0x1400bc060]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rcx], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 0xf
mov byte [rcx], al
mov ebx, 1
mov dword [rsp + 0x20], ebx
call fcn.14004a28c
mov ecx, eax
mov dword [rsp + 0x13b4], 0xffffffff
mov dword [rsp + 0x34], eax
nop dword [rax + rax]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, ebx
mov dword [rsp + rbx*4 + 0x34], ecx
inc rbx
cmp rbx, 0x270
jb 0x14000a860
mov dword [rsp + 0x30], 0x270
mov ebx, 8
lea esi, [rbx + 0x2f]
nop
lea rcx, [rsp + 0x30]
call fcn.14000b040
mov ecx, eax
mov eax, 0x38e38e39
mul ecx
shr edx, 3
lea eax, [rdx + rdx*8]
shl eax, 2
sub ecx, eax
mov edx, 0x30
cmp cl, 0xa
cmovge edx, esi
add dl, cl
mov rcx, qword [rdi + 0x10]
mov r8, qword [rdi + 0x18]
cmp rcx, r8
jae 0x14000a8e6
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp r8, 0x10
jb 0x14000a8dc
mov rax, qword [rdi]
mov byte [rax + rcx], dl
mov byte [rax + rcx + 1], 0
jmp 0x14000a8f2
movzx r9d, dl
mov rcx, rdi
call fcn.140008160
sub rbx, 1
jne 0x14000a890
mov rax, rdi
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.14004afb0
lea r11, [rsp + 0x13d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret