joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400056c0
Capabilities:
Write file on windows

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

Function at 0x140005730
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400120b4]
mov rbx, rcx
test esi, esi
jle 0x140005860
mov rax, qword [0x1400120b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000577b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140005805
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140005760
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140005882
mov rax, qword [0x1400120b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400120b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140005867
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400057fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140005810
add dword [0x1400120b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400120b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400057fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140005788
mov rax, qword [0x1400120b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140005df0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140012120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140012100]
test rbx, rbx
je 0x140005e4c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140005e43
test rsi, rsi
je 0x140005e43
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140005e28
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140006060
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140006078
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140006080
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140006090
Capabilities:
Enumerate pe sections

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

Function at 0x1400060e0
Capabilities:
Parse pe header

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

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

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

Function at 0x140006200
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000e980]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000621f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140006228
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000621f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140006240
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000e980]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140006260
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140006268
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140006260
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400062b0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400062a7
test rcx, rcx
je 0x140006260
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140006298
xor eax, eax
ret

Function at 0x1400062c0
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x14000e980]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400063b2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400063c0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400063b2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400063b2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400063b2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140006415
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140006428
add rdx, 0x28
cmp rdx, r10
jne 0x140006400
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140006437
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140006447
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000641e
test ecx, ecx
jg 0x140006430
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000116c
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rdx
mov rax, rcx
cmp byte [rcx + 0x20], bl
je 0x1400011ac
mov qword [rdx], rbx
cmp dword [rcx + 0x30], ebx
jbe 0x1400011e1
mov r8, rbx
mov rcx, qword [rax + 0x28]
inc ebx
add r8, 0x10
mov rdx, qword [rcx + r8 - 8]
add qword [rdi], rdx
cmp ebx, dword [rax + 0x30]
jb 0x140001193
jmp 0x1400011e1
mov rcx, qword [rcx + 0x10]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x1400011d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x1400011d0
xor al, al
jmp 0x1400011e3
mov ecx, dword [rsp + 0x30]
mov rax, rsi
shl rcx, 0x20
add rcx, rsi
mov qword [rdi], rcx
mov al, 1
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400012f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rbx, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
mov r14d, r9d
mov r15d, r8d
repne scasw ax, word [rdi]
mov rbp, rdx
not rcx
dec rcx
mov r13, rcx
cmp rcx, 7
jbe 0x1400014f8
lea rcx, [rdx + rcx*2 - 0xe]
lea rdx, str..7z.001
call fcn.1400e9cd0
xor r12d, r12d
cmp eax, r12d
jne 0x1400014f8
mov dword [rbx + 0x30], r12d
lea esi, [r12 + 1]
lea rcx, [rsp + 0x40]
mov r8d, 0x800
mov rdx, rbp
call fcn.140065d00
or rcx, 0xffffffffffffffff
xor eax, eax
mov word [rsp + r13*2 + 0x3a], r12w
lea rdi, [rsp + 0x40]
lea rdx, [0x140109010]
repne scasw ax, word [rdi]
mov r8d, esi
not rcx
lea rcx, [rsp + rcx*2 + 0x3e]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400013c2
inc dword [rbx + 0x30]
inc esi
cmp esi, 0x3e8
jb 0x140001370
cmp dword [rbx + 0x30], 1
jbe 0x1400014f8
mov rcx, qword [rbx + 0x28]
call fcn.1400e9b08
mov edx, dword [rbx + 0x30]
mov eax, 0x10
mov rdi, 0xffffffffffffffff
mul rdx
cmovo rax, rdi
mov rcx, rax
call fcn.1400e9a7c
mov esi, r12d
mov qword [rbx + 0x28], rax
cmp dword [rbx + 0x30], r12d
jbe 0x1400014b5
lea rcx, [rsp + 0x40]
mov r8d, 0x800
mov rdx, rbp
call fcn.140065d00
xor eax, eax
lea edx, [rsi + 1]
mov rcx, rdi
mov word [rsp + r13*2 + 0x3a], ax
mov dword [rsp + 0x30], edx
mov r8d, edx
lea rdi, [rsp + 0x40]
lea rdx, [0x140109010]
repne scasw ax, word [rdi]
not rcx
lea rcx, [rsp + rcx*2 + 0x3e]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdi, qword [rbx + 0x28]
xor eax, eax
mov byte [rbx + 8], al
mov eax, dword [rsp + 0x10b0]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov r9d, r15d
mov r8d, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], r14d
call fcn.140001064
xor ecx, ecx
cmp al, cl
je 0x1400014c8
mov rax, qword [rbx + 0x10]
lea rdx, [r12 + rdi + 8]
mov rcx, rbx
mov qword [r12 + rdi], rax
call fcn.14000116c
mov esi, dword [rsp + 0x30]
add r12, 0x10
mov rdi, 0xffffffffffffffff
cmp esi, dword [rbx + 0x30]
jb 0x14000140e
mov rcx, qword [rbx + 0x28]
mov al, 1
mov rdx, qword [rcx]
mov byte [rbx + 0x20], 1
mov qword [rbx + 0x10], rdx
jmp 0x14000151c
cmp esi, ecx
jbe 0x1400014e7
mov rdi, rcx
mov rcx, qword [rbx + 0x28]
mov rcx, qword [rcx + rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 0x10
sub rsi, 1
jne 0x1400014cf
mov rcx, qword [rbx + 0x28]
call fcn.1400e9b08
xor eax, eax
mov qword [rbx + 0x28], rax
jmp 0x14000151c
mov eax, dword [rsp + 0x10b0]
mov r9d, r15d
mov r8d, 0x80000000
mov dword [rsp + 0x28], eax
mov rdx, rbp
mov rcx, rbx
mov dword [rsp + 0x20], r14d
call fcn.140001064
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400e9d80
mov rbx, qword [rsp + 0x10a8]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001abc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x48
cmp byte [rcx + 0x20], 0
mov rsi, r9
mov eax, r8d
mov r10, rdx
mov rbx, rcx
je 0x140001bca
xor edi, edi
cmp dword [rcx + 0x30], edi
jbe 0x140001b0f
mov rcx, qword [rcx + 0x10]
mov rax, qword [rbx + 0x28]
cmp rcx, qword [rax]
je 0x140001b08
inc edi
add rax, 0x10
cmp edi, dword [rbx + 0x30]
jb 0x140001af8
mov eax, dword [rsp + 0x80]
cmp edi, dword [rbx + 0x30]
jb 0x140001b1b
xor al, al
jmp 0x140001c25
mov edx, edi
movsxd rsi, edi
xor ebp, ebp
mov dword [rsp + 0x30], edx
shl rsi, 4
test eax, eax
je 0x140001bbc
mov rax, qword [rbx + 0x28]
mov rcx, qword [rsi + rax]
mov byte [rbx + 0x20], 0
mov qword [rbx + 0x10], rcx
cmp edx, edi
jbe 0x140001b5d
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1400011f4
mov r10, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x80]
and dword [rsp + 0x70], 0
lea r9, [rsp + 0x70]
mov rdx, r10
mov rcx, rbx
call fcn.140001abc
mov byte [rbx + 0x20], 1
test al, al
je 0x140001b14
mov ecx, dword [rsp + 0x70]
mov edx, dword [rsp + 0x30]
mov r10, qword [rsp + 0x78]
mov eax, dword [rsp + 0x80]
inc edx
add r10, rcx
sub eax, ecx
add ebp, ecx
add rsi, 0x10
mov qword [rsp + 0x78], r10
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x80], eax
cmp edx, dword [rbx + 0x30]
jb 0x140001b2a
mov rcx, qword [rsp + 0x88]
mov al, 1
mov dword [rcx], ebp
jmp 0x140001c25
mov rcx, qword [rcx + 0x10]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [0x140133be0]
setne dil
add eax, dword [rsi]
mov dword [0x140133be0], eax
cmp eax, 0x186a0
jbe 0x140001c22
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.1400010e8
mov r9, qword [rbx + 0x18]
mov r8, qword [rsp + 0x70]
mov r9, qword [r9 + 0x2020]
xor edx, edx
xor ecx, ecx
call fcn.1400679d8
and dword [0x140133be0], 0
mov al, dil
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140001c30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov esi, r8d
mov rbx, rcx
mov rbp, r9
add qword [rcx + 0x40], rsi
mov rcx, qword [rcx + 0x40]
mov r13, rdx
je 0x140001c72
mov rdx, qword [rbx + 0x48]
cmp rcx, rdx
jae 0x140001c72
xor r9d, r9d
xor r8d, r8d
call fcn.1400679d8
cmp byte [rbx + 9], 0
mov dil, 1
je 0x140001c80
mov dword [rbp], esi
jmp 0x140001c9f
mov rcx, qword [rbx + 0x10]
and qword [rsp + 0x20], 0
mov r9, rbp
mov r8d, esi
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dil
mov rcx, qword [rbx + 0x18]
mov r8, rsi
mov rdx, r13
mov rcx, qword [rcx + 8]
call fcn.14000d280
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov al, dil
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x140001cd0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call fcn.1400011f4
xor ebx, ebx
cmp al, bl
jne 0x140001cfc
xor al, al
jmp 0x140001d12
cmp qword [rsp + 0x40], rdi
jne 0x140001cf8
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, ebx
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140003bec
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 8]
xor esi, esi
lea r9, [rsp + 0x30]
lea r8, [rdx + 0x5030]
add rdx, 0xb43a
mov rbx, rcx
mov byte [rcx + 0x18], sil
mov word [rcx + 0x101a], si
call fcn.14000382c
cmp al, sil
jne 0x140003c4c
cmp byte [rsp + 0x30], sil
jne 0x140003c80
mov rdx, qword [rbx + 8]
lea rcx, [0x140149f20]
add rdx, 0xb43a
call fcn.14003c948
jmp 0x140003c80
mov rdx, qword [rbx + 0x10]
mov rcx, rbx
mov rdx, qword [rdx + 8]
call fcn.140002e4c
mov rcx, rbx
call fcn.1400027ec
cmp byte [rbx + 0x18], sil
je 0x140003c80
cmp word [rbx + 0x101a], si
je 0x140003c80
lea rcx, [rbx + 0x101a]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400049fc
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
lea rdx, [rsp + 0x20]
lea rcx, str.UnAceV2.Dll
mov r8d, 0x800
call fcn.14000d344
xor ebx, ebx
cmp al, bl
jne 0x140004a5b
lea rdx, str.UnAceV2.Dll
lea rcx, [0x140149f20]
call fcn.14003c948
xor al, al
jmp 0x140004b32
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rdi + 0x2848], rax
cmp rax, rbx
je 0x140004b28
lea rdx, str.ACEInitDll
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140133c08], rax
cmp rax, rbx
je 0x140004b16
mov rcx, qword [rdi + 0x2848]
lea rdx, str.ACEReadArchiveData
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140133c00], rax
cmp rax, rbx
je 0x140004b16
mov rcx, qword [rdi + 0x2848]
lea rdx, str.ACEList
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140133bf8], rax
cmp rax, rbx
je 0x140004b16
mov rcx, qword [rdi + 0x2848]
lea rdx, str.ACETest
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140133bf0], rax
cmp rax, rbx
je 0x140004b16
mov rcx, qword [rdi + 0x2848]
lea rdx, str.ACEExtract
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140133be8], rax
cmp rax, rbx
jne 0x140004b28
mov rcx, qword [rdi + 0x2848]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140004a54
cmp qword [rdi + 0x2848], rbx
setne al
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400e9d80
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret
Function at 0x140004b54
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0xe0
mov rbx, rdx
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.1400eada0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [0x140109750]
mov rdx, rbx
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor ecx, ecx
mov dword [rsp + 0x70], 0x68
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140004bd5
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0xe0
pop rbx
ret

Function at 0x140004be0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, r9d
mov ebx, r8d
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
test esi, esi
je 0x140004c15
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebp
cmp eax, esi
jae 0x140004c45
cmp byte [rsp + 0x50], 0
je 0x140004c37
cmp dword [rdi], ebx
jne 0x140004c3b
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
cmp dword [rdi], ebx
jne 0x140004c20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140004c05
xor al, al
jmp 0x140004c22

Function at 0x14000835c
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
xor r8d, r8d
lea r10, [0x140133cc0]
mov r9d, r8d
mov r11d, 8
shl r9d, 0x18
lea eax, [r9 + r9]
mov ecx, r9d
mov edx, eax
mov r9d, eax
xor edx, 0x4c11db7
bt ecx, 0x1f
cmovb r9d, edx
dec r11d
test r11d, r11d
jg 0x140008373
inc r8d
mov dword [r10], r9d
add r10, 4
cmp r8d, 0x100
jl 0x140008366
repz ret
Function at 0x14000bdac
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov edi, r9d
mov rbx, r8
mov rsi, rdx
jmp 0x14000bde0
cmp dword [rsp + 0x30], 1
jne 0x14000be03
mov al, byte [rsp + 0x60]
mov byte [rbx], al
test al, al
je 0x14000be03
dec edi
test edi, edi
jle 0x14000be03
inc rbx
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov r8d, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000bdc6
mov rsi, qword [rsp + 0x58]
mov byte [rbx], 0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14000c154
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx ecx, cx
call fcn.1400f55d0
xor edi, edi
mov ebx, eax
cmp word [0x1401350d0], di
je 0x14000c187
lea rcx, [0x1401350d0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov word [0x1401350d0], di
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000d344
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
xor ecx, ecx
mov rdi, r8
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, rbx
call fcn.140050ce8
xor ebp, ebp
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov word [rax], bp
call fcn.140065d80
mov rcx, rbx
call fcn.14004258c
cmp al, bpl
je 0x14000d398
mov al, 1
jmp 0x14000d41d
lea rax, [rsp + 0x38]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionApp_Pathswinrar.exe
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov word [rbx], bp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x14000d3fc
mov rcx, qword [rsp + 0x38]
lea eax, [rdi + rdi]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.140050ce8
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov word [rax], bp
call fcn.140065d80
mov rcx, rbx
call fcn.14004258c
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret