joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011190
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
jmp 0x140011cc0
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a8]
mov rax, qword [0x14001f180]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x1400250a3]
call fcn.1400113ed
nop
mov dword [rbp + 4], 0
mov eax, dword [rbp + 0x190]
mov dword [rbp + 0x28], eax
mov eax, dword [rbp + 0x190]
mov dword [rbp + 0x2c], eax
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x30], rax
mov eax, dword [rbp + 0x198]
mov dword [rbp + 0x58], eax
mov eax, dword [rbp + 0x198]
mov dword [rbp + 0x5c], eax
mov rax, qword [rbp + 0x188]
mov qword [rbp + 0x60], rax
lea rcx, str.Advapi32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.SystemFunction032
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x88], rax
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x58]
call qword [rbp + 0x88]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140011da9
mov edx, dword [rbp + 4]
lea rcx, str.____SystemFunction032_FAILED_With_Error_:_0x_0.8X_n
call fcn.1400111d1
nop
xor eax, eax
jmp 0x140011dae
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001bd40]
call fcn.140011370
mov rax, rdi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.1400111f4
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x14001123f
Capabilities:
Terminate process

Disassembly:
jmp 0x1400127f0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x1400112cb
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014fb0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014fd0
xor al, al
jmp 0x140015051
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014fe3
xor al, al
jmp 0x140015051
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001500d
xor al, al
jmp 0x140015051
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015021
xor al, al
jmp 0x140015051
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015033
xor al, al
jmp 0x140015051
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001504f
xor al, al
jmp 0x140015051
mov al, 1
add rsp, 0x38
ret
Function at 0x1400133b0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011415
movzx eax, al
test eax, eax
jne 0x1400133d0
mov ecx, 7
call fcn.14001137a
nop
mov byte [rsp + 0x20], 0
call fcn.140011393
mov byte [rsp + 0x21], al
cmp dword [0x14001f9e0], 1
jne 0x1400133f4
mov ecx, 7
call fcn.14001137a
nop
jmp 0x14001344c
cmp dword [0x14001f9e0], 0
jne 0x140013447
mov dword [0x14001f9e0], 1
lea rdx, [0x14001b660]
lea rcx, [0x14001b330]
call fcn.1400111d6
test eax, eax
je 0x140013428
mov eax, 0xff
jmp 0x140013551
lea rdx, [0x14001b220]
lea rcx, [section..rdata]
call fcn.140011389
mov dword [0x14001f9e0], 2
jmp 0x14001344c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011366
call fcn.1400112f8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400134a9
mov rcx, qword [rsp + 0x30]
call fcn.14001117c
movzx eax, al
test eax, eax
je 0x1400134a9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140026020]
nop
call fcn.14001132a
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400134dd
mov rcx, qword [rsp + 0x38]
call fcn.14001117c
movzx eax, al
test eax, eax
je 0x1400134dd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400113d4
nop
call fcn.140013600
mov dword [rsp + 0x28], eax
call fcn.1400112cb
movzx eax, al
test eax, eax
jne 0x1400134fc
mov ecx, dword [rsp + 0x28]
call fcn.140011064
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001350b
call fcn.1400113de
nop
xor edx, edx
mov cl, 1
call fcn.14001116d
mov eax, dword [rsp + 0x28]
jmp 0x140013551
add rsp, 0x68
ret

Function at 0x140001000
Capabilities:
Check mutex on windows

Disassembly:
sub rsp, 0x28
lea r8, str.TotSamiyProektMutexIsRun
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
test rax, rax
je 0x14000103d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000103d
nop word [rax + rax]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001030
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001928
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001972
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001972
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001972
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001972
cmp dword [rcx + 0x84], 0xe
jbe 0x140001972
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001974
xor al, al
add rsp, 0x28
ret
Function at 0x7ff9148d1c94
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x7ff9148d1c94
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 0x7ff9148d1d03
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x7ff9148d1d03
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x7ff9148d1d03
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x7ff9148d1d03
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x7ff9148d1d03
cmp dword [rcx + 0x84], 0xe
jbe 0x7ff9148d1d03
cmp dword [rcx + 0xf8], 0
je 0x7ff9148d1d03
mov ecx, ebx
call fcn.7ff9148d1bcc
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.7ff9148d1e28
nop
cmp dword [rbp + 0x20], 0
je 0x7ff9148d1d51
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.7ff9148d1c60
int3

Function at 0x7ff9148d5530
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.7ff9148cf6a0
sub rsp, rax
mov rax, qword [0x7ff914900a40]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.7ff9148dd744
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x7ff9148de733
mov rax, rbp
jmp 0x7ff9148de83b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x7ff9148b0000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x52ac0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.7ff9148de414
mov r13, rax
lea rax, [0x7ff9148b0000]
mov rcx, qword [rax + rbx*8 + 0x52ac0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x7ff9148de837
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x7ff9148de837
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.7ff9148de414
test rax, rax
js 0x7ff9148de837
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x7ff9148de837
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x7ff9148de829
lea r8, [0x7ff9148b0000]
cmp rcx, rdx
jae 0x7ff9148de829
cmp byte [rcx], 0xd
jne 0x7ff9148de80f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x7ff9148de81e
cmp byte [rcx + 1], 0xa
jne 0x7ff9148de81e
inc rcx
jmp 0x7ff9148de81e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x515b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x7ff9148de7f1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x7ff9148de83b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.7ff9148cd3f0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x7ff9148df184
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 0x7ff9148df1b4
xor eax, eax
jmp 0x7ff9148df277
mov rbp, rbx
cmp word [rax], si
je 0x7ff9148df1d9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x7ff9148df1c0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x7ff9148df1bc
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.7ff9148d8be4
movsxd r14, eax
test eax, eax
jne 0x7ff9148df217
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x7ff9148df1ad
mov rcx, r14
call fcn.7ff9148d8af4
mov rdi, rax
test rax, rax
jne 0x7ff9148df230
xor ecx, ecx
call fcn.7ff9148d8ab8
jmp 0x7ff9148df20c
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.7ff9148d8be4
test eax, eax
jne 0x7ff9148df261
mov rcx, rdi
call fcn.7ff9148d8ab8
jmp 0x7ff9148df26b
xor ecx, ecx
call fcn.7ff9148d8ab8
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 0x7ff9148e0580
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x7ff9148e0596
mov al, 1
jmp 0x7ff9148e05f6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x7ff9148e05a7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x7ff9148e05f4
mov ecx, dword [rcx + 0x18]
nop
call fcn.7ff9148e6904
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x7ff9148e05f4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x7ff9148e05f4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x7ff9148e05f4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x7ff9148e05f6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x7ff9148e0f2c
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, [0x7ff914902ac0]
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 0x7ff9148e0f83
cmp word [rdx], r13w
jne 0x7ff9148e0f83
or byte [rax + rdi*8 + 0x38], cl
jmp 0x7ff9148e0f88
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x7ff9148e10ad
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x7ff9148e10ce
lea r9, [rdx + 2]
cmp cx, r11w
je 0x7ff9148e0fc1
mov rdx, r9
mov word [rbx], cx
jmp 0x7ff9148e0fe8
cmp r9, r8
jae 0x7ff9148e0ff8
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 0x7ff9148e0fa2
jmp 0x7ff9148e10ad
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 0x7ff9148e10a2
cmp dword [rsp + 0x80], esi
je 0x7ff9148e10a2
lea r8, [0x7ff914902ac0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x7ff9148e107a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x7ff9148e104a
mov word [rbx], r13w
jmp 0x7ff9148e10aa
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 0x7ff9148e1057
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x7ff9148e10aa
cmp word [rsp + 0x70], r13w
jne 0x7ff9148e1087
cmp rbx, r14
je 0x7ff9148e1044
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.7ff9148de370
cmp word [rsp + 0x70], r13w
je 0x7ff9148e10ad
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, [0x7ff914902ac0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x7ff9148e10a7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x7ff9148e10ad
Function at 0x7ff9148e6490
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.7ff9148d8d24
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x7ff9148e6531
cmp ebx, dword [rsp + 0x30]
je 0x7ff9148e652a
test esi, esi
je 0x7ff9148e652a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x7ff9148e6505
sub r8w, 0x61
cmp r8w, 0x19
ja 0x7ff9148e6512
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x7ff9148e64ef
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x7ff9148e6516
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x7ff9148e6533
mov eax, 1
jmp 0x7ff9148e6533
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x7ff9148e99b0
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.7ff9148de370
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.7ff9148de370
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x7ff9148e9b00
cmp rax, 0xffffffffffffffff
je 0x7ff9148e9b00
xor edi, edi
test rbp, rbp
jle 0x7ff9148e9aab
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.7ff9148db910
mov rbx, rax
test rax, rax
jne 0x7ff9148e9a38
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x7ff9148e9aa1
mov edx, 0x8000
mov ecx, r14d
call fcn.7ff9148e9834
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.7ff9148df6f0
cmp eax, 0xffffffff
je 0x7ff9148e9a81
cdqe
sub rbp, rax
test rbp, rbp
jg 0x7ff9148e9a48
mov edx, r15d
mov ecx, r14d
call fcn.7ff9148e9834
jmp 0x7ff9148e9aa1
cmp byte [rsi + 0x38], dil
je 0x7ff9148e9a98
cmp dword [rsi + 0x34], 5
jne 0x7ff9148e9a98
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x7ff9148e9aa1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.7ff9148d8ab8
jmp 0x7ff9148e9b14
jns 0x7ff9148e9b14
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.7ff9148de370
cmp rax, 0xffffffffffffffff
jne 0x7ff9148e9acc
cmp byte [rsi + 0x30], dil
je 0x7ff9148e9b14
mov edi, dword [rsi + 0x2c]
jmp 0x7ff9148e9b14
mov ecx, r14d
call fcn.7ff9148e6904
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x7ff9148e9b14
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 0x7ff9148e9b14
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x7ff9148e9b0d
mov eax, dword [rsi + 0x2c]
jmp 0x7ff9148e9b12
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.7ff9148de370
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 0x1800016c8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rdx, 0xcbf29ce484222325
xor r8d, r8d
movzx eax, byte [rcx + r8]
movabs r9, 0x100000001b3
xor rdx, rax
inc r8
imul rdx, r9
cmp r8, 4
jb 0x1800016d5
mov rax, rdx
ret
Function at 0x18000e10c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x18000e133
and qword [r8], 0
call fcn.18000e218
mov rbx, rax
test rax, rax
je 0x18000e1fb
mov rcx, rax
call fcn.18000e094
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000e1f2
mov rax, qword [0x1800d2ad8]
test rax, rax
je 0x18000e16b
inc dword [rax + 0xec]
mov rdx, qword [0x1800d2ae8]
lea rcx, [rdi + rbp]
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x18000e1f2
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rdi
je 0x18000e1ca
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1800d2ad8]
test rax, rax
je 0x18000e1b8
dec dword [rax + 0xec]
mov rdx, qword [0x1800d2ae8]
mov rcx, rsi
call qword [0x1800d1008]
jmp 0x18000e1fb
test ebp, ebp
jle 0x18000e1dc
lea rcx, [rsi + rdi]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18000e1ed
mov qword [r14], rdi
mov rax, rsi
jmp 0x18000e1fd
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x18000e570
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rcx
not r8d
test rdx, rdx
je 0x18000e59e
movzx eax, byte [r9]
inc r9
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
lea rax, [0x18005bb40]
xor r8d, dword [rax + rcx*4]
sub rdx, 1
jne 0x18000e57b
not r8d
mov eax, r8d
ret

Function at 0x18000e5a8
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x18000e602
mov r11b, 0x23
lea rbx, [0x18005bb40]
movzx edi, byte [r10]
dec rdx
inc r10
cmp dil, r11b
jne 0x18000e5ec
cmp rdx, 2
jb 0x18000e5ec
cmp byte [r10], r11b
jne 0x18000e5ec
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rdi
shr r9d, 8
xor r9d, dword [rbx + rcx*4]
test rdx, rdx
jne 0x18000e5ca
jmp 0x18000e643
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x18000e643
mov r11b, 0x23
lea rbx, [0x18005bb40]
cmp dl, r11b
jne 0x18000e627
cmp byte [r10], r11b
jne 0x18000e627
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rbx + rcx*4]
test dl, dl
jne 0x18000e615
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret
Function at 0x18001061c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5ca0], 0
lea rbx, [rcx + 0x5ca8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1800106b5
mov r9d, dword [rbx + 4]
test r9d, r9d
jns 0x18001066d
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.18001cfdc
and dword [rbx], 0
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.18001c6d8
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5ca0]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x1800d2ae0]
movsxd r8, eax
mov rax, qword [rdi + 0x5cb0]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x1800106bd
mov rcx, rbx
call fcn.18001c6d8
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180017a7c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1800d2ad8]
mov rbx, rcx
and dword [rax + 0x5bfc], 0
test rcx, rcx
je 0x180017ae5
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.180017af0
lea rdx, [0x18005d54c]
mov rcx, rbx
mov rdi, rax
call fcn.18000e218
mov rbx, rax
test rax, rax
je 0x180017ae5
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180047590
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x1800d2580]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x1800d3f30]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x1800475d5
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x20]
test cl, cl
mov r8d, 0x40
cmove rdi, rdx
lea r14, [rax*2 + 5]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18004760b
mov eax, 0xa
jmp 0x18004769a
test esi, esi
je 0x18004762d
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18004764e
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18004764e
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180047648
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18004764e
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, sil
shl sil, 2
add al, al
xor al, byte [rbx + 0x20]
and al, 2
xor al, byte [rbx + 0x20]
xor sil, al
and sil, 4
xor sil, al
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180058830
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret