joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180010c60
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
sete al
add rsp, 0x28
ret

Function at 0x180010c80
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov r8, rdx
xor edx, edx
jmp 0x180010c90
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x40
mov rbp, rcx
mov dword [rsp + 0x88], 0x800
mov ecx, 0x800
mov r12, r8
mov rdi, rdx
xor bl, bl
call fcn.18002b3cc
mov r8d, dword [rsp + 0x88]
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.18001b350
test rsi, rsi
je 0x180010e7e
lea rax, [rsp + 0x88]
xor r14d, r14d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
mov dword [rsp + 0x30], r14d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
mov eax, dword [rsp + 0x30]
dec eax
cmp eax, 1
ja 0x180010e62
cmp ecx, 0xea
jne 0x180010d68
mov edx, dword [rsp + 0x88]
mov rcx, rsi
call fcn.18002b6f0
mov rsi, rax
test rax, rax
je 0x180010e7e
lea rax, [rsp + 0x88]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov rdx, rdi
mov qword [rsp + 0x20], rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
jne 0x180010e62
mov eax, dword [rsp + 0x88]
cmp eax, 2
jbe 0x180010e60
shr eax, 1
mov rbx, 0xffffffffffffffff
dec eax
mov r8, rbx
mov word [rsi + rax*2], r14w
inc r8
cmp word [rsi + r8*2], r14w
jne 0x180010d93
mov rdx, rsi
mov rcx, r12
call fcn.180001800
cmp dword [rsp + 0x30], 2
jne 0x180010e60
mov r14d, dword [rsp + 0x88]
shr r14d, 1
add r14d, r14d
lea eax, [r14 + r14]
mov ecx, eax
mov ebp, eax
call fcn.18002b3cc
mov rdi, rax
test rax, rax
je 0x180010e60
mov r8d, ebp
mov qword [rsp + 0x70], r15
xor edx, edx
mov rcx, rax
call fcn.18001b350
mov r8d, r14d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r15d, eax
cmp eax, r14d
jbe 0x180010e25
lea edx, [rax + rax]
mov rcx, rdi
call fcn.18002b6f0
mov rdi, rax
test rax, rax
je 0x180010e25
mov r8d, r15d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r15, qword [rsp + 0x70]
test eax, eax
je 0x180010e58
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x180010e40
mov r8, rbx
mov rdx, rdi
mov rcx, r12
call fcn.180001800
mov rcx, rdi
call fcn.18002b3b8
mov bl, 1
mov rcx, rsi
call fcn.18002b3b8
movzx eax, bl
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x78]
xor al, al
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180010c90
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov r8, rdx
xor edx, edx
jmp 0x180010c90
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x40
mov rbp, rcx
mov dword [rsp + 0x88], 0x800
mov ecx, 0x800
mov r12, r8
mov rdi, rdx
xor bl, bl
call fcn.18002b3cc
mov r8d, dword [rsp + 0x88]
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.18001b350
test rsi, rsi
je 0x180010e7e
lea rax, [rsp + 0x88]
xor r14d, r14d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
mov dword [rsp + 0x30], r14d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
mov eax, dword [rsp + 0x30]
dec eax
cmp eax, 1
ja 0x180010e62
cmp ecx, 0xea
jne 0x180010d68
mov edx, dword [rsp + 0x88]
mov rcx, rsi
call fcn.18002b6f0
mov rsi, rax
test rax, rax
je 0x180010e7e
lea rax, [rsp + 0x88]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov rdx, rdi
mov qword [rsp + 0x20], rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
jne 0x180010e62
mov eax, dword [rsp + 0x88]
cmp eax, 2
jbe 0x180010e60
shr eax, 1
mov rbx, 0xffffffffffffffff
dec eax
mov r8, rbx
mov word [rsi + rax*2], r14w
inc r8
cmp word [rsi + r8*2], r14w
jne 0x180010d93
mov rdx, rsi
mov rcx, r12
call fcn.180001800
cmp dword [rsp + 0x30], 2
jne 0x180010e60
mov r14d, dword [rsp + 0x88]
shr r14d, 1
add r14d, r14d
lea eax, [r14 + r14]
mov ecx, eax
mov ebp, eax
call fcn.18002b3cc
mov rdi, rax
test rax, rax
je 0x180010e60
mov r8d, ebp
mov qword [rsp + 0x70], r15
xor edx, edx
mov rcx, rax
call fcn.18001b350
mov r8d, r14d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r15d, eax
cmp eax, r14d
jbe 0x180010e25
lea edx, [rax + rax]
mov rcx, rdi
call fcn.18002b6f0
mov rdi, rax
test rax, rax
je 0x180010e25
mov r8d, r15d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r15, qword [rsp + 0x70]
test eax, eax
je 0x180010e58
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x180010e40
mov r8, rbx
mov rdx, rdi
mov rcx, r12
call fcn.180001800
mov rcx, rdi
call fcn.18002b3b8
mov bl, 1
mov rcx, rsi
call fcn.18002b3b8
movzx eax, bl
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x78]
xor al, al
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180010ee0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
cmp qword [rdx + 0x18], 8
mov r10, rcx
jb 0x180010ef1
mov rdx, qword [rdx]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rdx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x180010f00
lea ecx, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], ecx
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, r10
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
add rsp, 0x38
ret
Function at 0x180010f40
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r10, rcx
mov rax, 0xffffffffffffffff
nop
cmp word [r8 + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x180010f50
lea ecx, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], ecx
mov rcx, r10
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x1800177c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x40
mov edi, r9d
mov esi, r8d
mov r14, rdx
mov r15, rcx
mov rbx, qword [0x18005d9f0]
mov qword [rsp + 0x30], 0
cmp dword [0x18005d9dc], 0
jne 0x1800178ce
mov eax, dword [0x18005d9d8]
test eax, eax
jne 0x1800178ce
mov r10d, dword [0x18005d9e4]
test r10d, r10d
je 0x180017837
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x18005d9d8]
mov r10d, dword [0x18005d9e4]
test eax, eax
jne 0x1800178ce
test r10d, r10d
jne 0x18001784d
call fcn.1800179f0
test eax, eax
je 0x180017863
lea rdx, [rsp + 0x30]
mov rcx, qword [0x18005c148]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x1800178ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x7e]
cmp ecx, 1
jbe 0x1800178c4
cmp eax, 0x78
je 0x1800178c4
cmp eax, 1
je 0x1800178c4
cmp eax, 0x32
je 0x1800178c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x1800178b7
mov ebx, 0x54f
movzx ebx, bx
or ebx, 0x80070000
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret
jle 0x18001789a
movzx ebx, bx
or ebx, 0x80070000
jmp 0x18001789a
mov dword [0x18005d9d8], 1
test rbx, rbx
jne 0x180017917
lea rcx, str.LoadIconWithScaleDown
call fcn.1800176f0
mov rbx, rax
test rax, rax
jne 0x180017910
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x180017903
mov ebx, 0x54f
movzx ebx, bx
or ebx, 0x80070000
jmp 0x180017931
jle 0x180017931
movzx ebx, bx
or ebx, 0x80070000
jmp 0x180017931
mov qword [0x18005d9f0], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8d, esi
mov rdx, r14
mov rcx, r15
call rbx
mov ebx, eax
cmp dword [0x18005d9dc], 0
je 0x180017947
cmp dword [0x18005d9d8], 0
jne 0x18001789a
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
jmp 0x18001789a
Function at 0x180017960
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x18005d9e4]
mov rbx, rcx
test eax, eax
je 0x180017986
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x18005d9e4]
cmp dword [0x18005d9d8], 0
jne 0x1800179df
test eax, eax
jne 0x18001799c
call fcn.1800179f0
test eax, eax
je 0x1800179b0
mov rcx, qword [0x18005c148]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x1800179df
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x7e]
cmp ecx, 1
jbe 0x1800179d5
cmp eax, 0x78
je 0x1800179d5
cmp eax, 1
je 0x1800179d5
cmp eax, 0x32
je 0x1800179d5
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [0x18005d9d8], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x180025adc
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.180019010
sub rsp, rax
mov rax, qword [0x18005c188]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800339a0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180025b2b
mov rax, rbp
jmp 0x180025c33
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x5e990]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180035a5c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x5e990]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180025c2f
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 0x180025c2f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180035a5c
test rax, rax
js 0x180025c2f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180025c2f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180025c21
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180025c21
cmp byte [rcx], 0xd
jne 0x180025c07
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180025c16
cmp byte [rcx + 1], 0xa
jne 0x180025c16
inc rcx
jmp 0x180025c16
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5c570]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180025be9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180025c33
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180018fa0
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 0x180034d08
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x180034d3a
call fcn.18001f794
mov dword [rax], 0x16
call fcn.18001f628
jmp 0x180034e59
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x180034e59
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x180034e59
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x180034d69
lock or dword [rcx + 0x14], 0x10
jmp 0x180034e59
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x180034d7d
call fcn.18003f810
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1800339a0
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.180035320
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x180034e47
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x180034e12
mov rcx, rsi
call fcn.1800339a0
cmp eax, edi
je 0x180034dfd
mov rcx, rsi
call fcn.1800339a0
cmp eax, 0xfffffffe
je 0x180034dfd
mov rcx, rsi
call fcn.1800339a0
movsxd rbx, eax
lea r14, [0x18005e990]
mov rcx, rsi
sar rbx, 6
call fcn.1800339a0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x180034e04
lea rdx, [0x18005c520]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180034e12
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x180034e36
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x180034e36
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x180034e36
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x180034e5c
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x180034e74
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x18005e990]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x180034ed2
cmp word [rdx], r12w
jne 0x180034ed2
or byte [rax + r8*8 + 0x38], cl
jmp 0x180034ed8
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x180035033
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x18003500e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x180034f11
mov rcx, r9
jmp 0x180034f34
cmp r9, rdx
jae 0x180034f4b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x180034ef5
jmp 0x180035033
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180035008
cmp dword [rsp + 0x80], edi
je 0x180035008
mov rdx, r14
lea r11, [0x18005e990]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x180034fe1
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x180034fb4
mov word [rbx], r12w
jmp 0x18003502f
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x180034fbd
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x18003502f
cmp word [rsp + 0x70], r12w
jne 0x180034fee
cmp rbx, rsi
je 0x180034fae
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.180035a64
cmp word [rsp + 0x70], r12w
je 0x180035033
mov word [rbx], r13w
jmp 0x18003502f
lea r11, [0x18005e990]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18003502b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180035033
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18003a22c
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 0x18003a25c
xor eax, eax
jmp 0x18003a31f
mov rbp, rbx
cmp word [rax], si
je 0x18003a281
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18003a268
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18003a264
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.180038974
movsxd r14, eax
test eax, eax
jne 0x18003a2bf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18003a255
mov rcx, r14
call fcn.18003275c
mov rdi, rax
test rax, rax
jne 0x18003a2d8
xor ecx, ecx
call fcn.180032720
jmp 0x18003a2b4
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.180038974
test eax, eax
jne 0x18003a309
mov rcx, rdi
call fcn.180032720
jmp 0x18003a313
xor ecx, ecx
call fcn.180032720
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 0x180040b88
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.180035a64
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180035a64
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180040cd8
cmp rax, 0xffffffffffffffff
je 0x180040cd8
xor edi, edi
test rbp, rbp
jle 0x180040c83
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18003427c
mov rbx, rax
test rax, rax
jne 0x180040c10
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180040c79
mov edx, 0x8000
mov ecx, r14d
call fcn.180040a10
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.1800364e4
cmp eax, 0xffffffff
je 0x180040c59
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180040c20
mov edx, r15d
mov ecx, r14d
call fcn.180040a10
jmp 0x180040c79
cmp byte [rsi + 0x38], dil
je 0x180040c70
cmp dword [rsi + 0x34], 5
jne 0x180040c70
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180040c79
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180032720
jmp 0x180040cec
jns 0x180040cec
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180035a64
cmp rax, 0xffffffffffffffff
jne 0x180040ca4
cmp byte [rsi + 0x30], dil
je 0x180040cec
mov edi, dword [rsi + 0x2c]
jmp 0x180040cec
mov ecx, r14d
call fcn.18003f4e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180040cec
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 0x180040cec
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180040ce5
mov eax, dword [rsi + 0x2c]
jmp 0x180040cea
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180035a64
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 0x1800013c0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x18000141c
xor eax, eax
mov qword [rsp + 0x40], rdi
mov r9, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x180001250]
mov dword [rsp + 0x20], eax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x18000140c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rbx
ret
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x180003d00
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x180003d5d
lea rbx, [0x180046ab0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180003d44
cmp r10, 2
jb 0x180003d44
cmp byte [r9], r8b
jne 0x180003d44
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180003d20
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180003d9f
lea rbx, [0x180046ab0]
cmp r8b, 0x23
jne 0x180003d83
cmp byte [r9], r8b
jne 0x180003d83
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180003d70
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x180003f60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rsi, r8
test r8, r8
je 0x180003f7e
mov qword [r8], r14
lea rdx, [0x1800465e0]
call fcn.180003db0
mov rbx, rax
test rax, rax
jne 0x180003fa3
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x1800040cd
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1800040cd
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1800040cd
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1800040cd
cmp rdi, 0xffffffffffffffff
je 0x1800040cd
mov rcx, rdi
call fcn.180007220
mov rbp, rax
test rax, rax
je 0x1800040cd
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]
mov rcx, rbx
cmp rax, rdi
je 0x1800040ba
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x1801399c8]
test r8, r8
je 0x1800040af
movsx rdx, word [r8 + 0x60f0]
lea rcx, [r8 + 0x60f4]
mov r9d, dword [r8 + 0x3f58]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1800040a4
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60f0], cx
movsx rax, cx
lea rcx, [r8 + 0x60f4]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x60ec]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1800040d6
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x1800040c8
mov qword [rsi], rdi
mov rax, rbp
jmp 0x1800040d8
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180006b90
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x100]
lea r11, [0x180046ab0]
mov rax, qword [rcx + 0x108]
mov r9, rcx
movsxd r10, edx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, r10b
movzx r8d, bl
shr ebx, 8
xor r8, rax
mov eax, r10d
shr eax, 8
movzx edx, al
mov eax, r10d
xor ebx, dword [r11 + r8*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r10d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [r9]
xor ebx, dword [r11 + rdx*4]
not ebx
cmp dword [rcx + 0x404c], ebx
jne 0x180006c26
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.180019e00
mov eax, ebx
add rsp, 0x20
pop rbx
ret