joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002060
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 0x1400020d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400080b4]
mov rbx, rcx
test esi, esi
jle 0x140002200
mov rax, qword [0x1400080b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000211b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400021a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002100
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140002222
mov rax, qword [0x1400080b8]
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 [0x1400080b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002207
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000219e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400021b0
add dword [0x1400080b4], 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 [0x1400080b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000219e
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 0x140002128
mov rax, qword [0x1400080b8]
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 0x140002790
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140008100]
test rbx, rbx
je 0x1400027ec
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 0x1400027e3
test rsi, rsi
je 0x1400027e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400027c8
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 0x140002a00
Capabilities:
Parse pe header

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

Function at 0x140002a30
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 0x140002a7d
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 0x140002a74
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140002a7f
add rax, 0x28
cmp rax, r9
jne 0x140002a60
xor eax, eax
ret

Function at 0x140002a80
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002b10
mov rdx, qword [0x140005490]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140002afe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002afe
cmp word [rax + 0x18], 0x20b
jne 0x140002afe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002b10
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002ae9
add rbx, 0x28
cmp rbx, rdi
je 0x140002b10
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002ae0
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 0x140002b20
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140005490]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002b40
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002b48
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002b40
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002b9d
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 0x140002b94
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002b40
add rax, 0x28
cmp rax, r9
jne 0x140002b80
xor eax, eax
ret

Function at 0x140002ba0
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x140005490]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002c00
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002c08
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002c00
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002c50
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002c47
test rcx, rcx
je 0x140002c00
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002c38
xor eax, eax
ret

Function at 0x140002c60
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140005490]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002cc0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002cc8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002cc0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002cc0
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 0x140002d14
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002d20
add rdx, 0x28
cmp r9, rdx
jne 0x140002d00
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140005490]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002d52
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002d60
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002d52
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002d52
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002d52
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 0x140002db5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002dc8
add rdx, 0x28
cmp rdx, r10
jne 0x140002da0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002dd7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002de7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002dbe
test ecx, ecx
jg 0x140002dd0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14001dd30]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14001dd40]
mov dword [rax], 1
mov rax, qword [0x14001dd50]
mov dword [rax], 1
mov rax, qword [0x14001dcc0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14001dd20]
mov dword [0x14002000c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14001de00]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14001dde0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14001dc70]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001eba
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.pause
mov rcx, rax
call sym.system
lea rax, [0x14001d539]
mov rcx, rax
call sym.system
nop
add rsp, 0x20
pop rbp
ret

Function at 0x1400021f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140002260
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400200a4]
test esi, esi
mov rbx, rcx
jle 0x140002390
mov rax, qword [0x1400200a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400022ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002335
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002290
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x1400023b2
mov rax, qword [0x1400200a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400200a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002397
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000232e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002340
add dword [0x1400200a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1400200a8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000232e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400022b8
mov rax, qword [0x1400200a8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002920
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140020100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400200e0]
test rbx, rbx
je 0x14000297c
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 0x140002973
test rsi, rsi
je 0x140002973
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002958
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 0x140002b90
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop

Function at 0x140002ba0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
Function at 0x140002bb0
Capabilities:
Parse pe header

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

Function at 0x140002be0
Capabilities:
Enumerate pe sections

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

Function at 0x140002c30
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002cc0
mov rdx, qword [0x14001dcc0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140002cae
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002cae
cmp word [rax + 0x18], 0x20b
jne 0x140002cae
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002cc0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002c99
add rbx, 0x28
cmp rbx, rdi
je 0x140002cc0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002c90
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 0x140002cd0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001dcc0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002cf0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002cf8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002cf0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002d4d
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]
cmp rcx, r8
mov rdx, r8
jb 0x140002d44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002cf0
add rax, 0x28
cmp rax, r9
jne 0x140002d30
xor eax, eax
ret

Function at 0x140002d50
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x14001dcc0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002db0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002db8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002db0
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002e00
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002df7
test rcx, rcx
je 0x140002db0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002de8
xor eax, eax
ret

Function at 0x140002e10
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x14001dcc0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002e70
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002e78
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002e70
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x140002e70
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]
cmp rcx, r8
mov rax, r8
jb 0x140002ec4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002ed0
add rdx, 0x28
cmp r9, rdx
jne 0x140002eb0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14001dcc0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002f02
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002f10
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002f02
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002f02
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002f02
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]
cmp rax, r9
mov r8, r9
jb 0x140002f65
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002f78
add rdx, 0x28
cmp rdx, r10
jne 0x140002f50
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002f87
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002f97
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002f6e
test ecx, ecx
jg 0x140002f80
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1800050f4
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x10a0
call fcn.18000f730
sub rsp, rax
mov rax, qword [0x18002f2c0]
xor rax, rsp
mov qword [rsp + 0x1090], rax
cmp dword [0x180030818], 0
mov rdi, rdx
mov rbx, rcx
je 0x180005198
call fcn.180011580
lea rcx, [rsp + 0x860]
mov dword [rsp + 0x28], 0x411
mov r8, rbx
mov qword [rsp + 0x20], rcx
mov ebx, 0xfde9
xor edx, edx
lea r9d, [rax + 1]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, rdi
call fcn.180011580
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x28], 0x411
mov qword [rsp + 0x20], rdx
mov r8, rdi
xor edx, edx
mov ecx, ebx
lea r9d, [rax + 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x860]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x18000519e
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov rcx, qword [rsp + 0x1090]
xor rcx, rsp
call fcn.18000f6f0
mov rbx, qword [rsp + 0x10c0]
add rsp, 0x10a0
pop rdi
ret

Function at 0x180005218
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xc90
mov rax, qword [0x18002f2c0]
xor rax, rsp
mov qword [rsp + 0xc80], rax
mov rbx, rcx
mov edi, 0x411
mov r8d, edi
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.180010720
cmp dword [0x180030818], 0
je 0x1800052b6
xor edx, edx
lea rcx, [rsp + 0x450]
mov r8d, 0x822
call fcn.180010720
mov rcx, rbx
call fcn.180011580
lea rcx, [rsp + 0x450]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rcx
mov r8, rbx
mov ecx, 0xfde9
xor edx, edx
lea r9d, [rax + 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rcx, [rsp + 0x450]
call fcn.18000535c
jmp 0x18000532a
mov rcx, rbx
call fcn.180011580
mov rsi, rax
cmp rax, 1
jb 0x180005328
mov al, byte [rbx]
mov ebp, 1
mov byte [rsp + 0x30], al
cmp esi, ebp
jle 0x180005328
lea r14, [rsp + 0x30]
mov r15, rbx
sub r14, rbx
lea rdi, [rbx + 1]
neg r15
cmp byte [rdi], 0x5c
jne 0x180005319
lea rax, [r15 + rdi]
cmp byte [rax + rbx - 1], 0x3a
je 0x180005319
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x180005319
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x180005357
mov al, byte [rdi]
inc ebp
mov byte [r14 + rdi], al
inc rdi
cmp ebp, esi
jl 0x1800052e8
xor eax, eax
mov rcx, qword [rsp + 0xc80]
xor rcx, rsp
call fcn.18000f6f0
lea r11, [rsp + 0xc90]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
or eax, 0xffffffff
jmp 0x18000532a
Function at 0x18000535c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x860
mov rax, qword [0x18002f2c0]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x822
call fcn.180010720
mov rcx, rdi
call fcn.180011628
mov rbp, rax
cmp rax, 1
jb 0x180005406
movzx eax, word [rdi]
mov esi, 1
mov word [rsp + 0x20], ax
cmp ebp, esi
jle 0x180005406
lea r14, [rsp + 0x20]
sub r14, rdi
lea rbx, [rdi + 2]
cmp word [rbx], 0x5c
jne 0x1800053f4
cmp word [rbx - 2], 0x3a
je 0x1800053f4
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1800053f4
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x180005430
movzx eax, word [rbx]
inc esi
mov word [r14 + rbx], ax
add rbx, 2
cmp esi, ebp
jl 0x1800053c6
xor eax, eax
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.18000f6f0
lea r11, [rsp + 0x860]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
or eax, 0xffffffff
jmp 0x180005408

Function at 0x18000a1a4
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
lea r11, [r8 + 0x10]
mov r9, rcx
mov ecx, edx
mov r10, r8
test edx, edx
je 0x18000a1fb
sub ecx, 1
je 0x18000a1ec
cmp ecx, 1
je 0x18000a1dd
movsxd r8, edx
xor ecx, ecx
lea rdx, str.E2015120612FS:Illegal_toc_type_for_criCpkAnalyzer_CheckTocCrc32_type:_d_
call fcn.18001db48
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov ecx, dword [r9 + 0x50]
mov edx, 0xbeef00
mov r8d, dword [r9 + 0x60]
jmp 0x18000a208
mov ecx, dword [r9 + 0x40]
mov edx, 0xbeefdead
mov r8d, dword [r9 + 0x5c]
jmp 0x18000a208
mov ecx, dword [r9 + 0x20]
mov edx, 0xdeadbeef
mov r8d, dword [r9 + 0x58]
test r8d, r8d
jne 0x18000a216
test ecx, ecx
je 0x18000a1d5
or eax, 0xffffffff
jmp 0x18000a1d7
add ecx, 0xfffffff0
mov ebx, 1
cmp byte [r10 + 4], 0
jne 0x18000a247
mov rax, r11
mov r9d, 0x655f
test ecx, ecx
je 0x18000a247
mov r10d, ecx
xor byte [rax], r9b
add rax, rbx
imul r9d, r9d, 0x4115
sub r10, rbx
jne 0x18000a235
cmp dword [0x180055948], 0
je 0x18000a1d5
test ecx, ecx
je 0x18000a268
movzx eax, byte [r11]
add r11, rbx
imul edx, edx, 0x301
add edx, eax
add ecx, 0xffffffff
jne 0x18000a254
test edx, edx
cmove edx, ebx
not edx
cmp r8d, edx
jmp 0x18000a20f