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

Disassembly:
jmp 0x140021640
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x3e8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x8a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x408]
mov rax, qword [0x14003d018]
xor rax, rbp
mov qword [rbp + 0x398], rax
lea rcx, [0x1400440ef]
call fcn.140011c71
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 1
mov edx, 0xc0000000
lea rcx, str.fps_config.ini
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x140021734
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x24], eax
mov edx, dword [rbp + 0x24]
lea rcx, [rbp + 0x228]
call fcn.140011b7c
mov qword [rbp + 0x378], rax
mov rcx, qword [rbp + 0x378]
call fcn.140011113
mov r8, rax
mov edx, dword [rbp + 0x24]
lea rcx, str.CreateFileA_failed___d_:__s_n
call fcn.1400115e6
lea rcx, [rbp + 0x228]
call fcn.14001124e
mov byte [rbp + 0x264], 0
mov rcx, qword [rbp + 0x3c0]
call fcn.14001124e
movzx eax, byte [rbp + 0x264]
jmp 0x1400218c8
lea rcx, [rbp + 0x48]
call fcn.140011c62
nop
lea rdx, str._Setting__n
lea rcx, [rbp + 0x48]
call fcn.14001105f
mov r8, qword [rbp + 0x3c0]
lea rdx, [0x140036638]
lea rcx, [rbp + 0x288]
call fcn.14001106e
mov qword [rbp + 0x378], rax
mov rax, qword [rbp + 0x378]
mov qword [rbp + 0x380], rax
lea r8, [0x1400365e0]
mov rdx, qword [rbp + 0x380]
lea rcx, [rbp + 0x2c8]
call fcn.140011b8b
mov qword [rbp + 0x388], rax
mov rax, qword [rbp + 0x388]
mov qword [rbp + 0x390], rax
mov rdx, qword [rbp + 0x390]
lea rcx, [rbp + 0x48]
call fcn.1400112f3
nop
lea rcx, [rbp + 0x2c8]
call fcn.14001124e
nop
lea rcx, [rbp + 0x288]
call fcn.14001124e
mov edx, dword [rbp + 0x3c8]
lea rcx, [rbp + 0x308]
call fcn.140011177
mov qword [rbp + 0x378], rax
mov rax, qword [rbp + 0x378]
mov qword [rbp + 0x380], rax
mov r8, qword [rbp + 0x380]
lea rdx, str.FPS
lea rcx, [rbp + 0x348]
call fcn.140011cda
mov qword [rbp + 0x388], rax
mov rax, qword [rbp + 0x388]
mov qword [rbp + 0x390], rax
mov rdx, qword [rbp + 0x390]
lea rcx, [rbp + 0x48]
call fcn.1400112f3
nop
lea rcx, [rbp + 0x348]
call fcn.14001124e
nop
lea rcx, [rbp + 0x308]
call fcn.14001124e
mov dword [rbp + 0x84], 0
lea rcx, [rbp + 0x48]
call fcn.140011906
mov dword [rbp + 0x374], eax
lea rcx, [rbp + 0x48]
call fcn.1400114e7
mov qword [rbp + 0x378], rax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x84]
mov r8d, dword [rbp + 0x374]
mov rdx, qword [rbp + 0x378]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 0x48]
call fcn.14001124e
nop
mov rcx, qword [rbp + 0x3c0]
call fcn.14001124e
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x140034fd0]
call fcn.140011a78
mov rax, rdi
mov rcx, qword [rbp + 0x398]
xor rcx, rbp
call fcn.140011613
lea rsp, [rbp + 0x3a8]
pop rdi
pop rbp
ret
Function at 0x140011ca3
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140020340
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x298
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x6e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2b8]
mov rax, qword [0x14003d018]
xor rax, rbp
mov qword [rbp + 0x268], rax
lea rcx, [0x1400440ef]
call fcn.140011c71
mov dword [rbp + 4], 0
lea rax, [rbp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x130
rep stosb byte [rdi], al
mov dword [rbp + 0x30], 0x130
xor edx, edx
mov ecx, 2
call fcn.1400115f5
mov qword [rbp + 0x178], rax
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 0x178]
call fcn.140011a5f
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 0x178]
call fcn.140011c8a
test eax, eax
je 0x1400203ff
mov rdx, qword [rbp + 0x290]
lea rcx, [rbp + 0x5c]
call fcn.140011460
movzx eax, al
test eax, eax
je 0x1400203fd
mov eax, dword [rbp + 0x38]
mov dword [rbp + 4], eax
jmp 0x1400203ff
jmp 0x1400203ca
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 4]
mov dword [rbp + 0x254], eax
mov rcx, qword [rbp + 0x290]
call fcn.14001124e
mov eax, dword [rbp + 0x254]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x140034f10]
call fcn.140011a78
mov eax, edi
mov rcx, qword [rbp + 0x268]
xor rcx, rbp
call fcn.140011613
lea rsp, [rbp + 0x278]
pop rdi
pop rbp
ret
Function at 0x140011d4d
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x140020150
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
sub rsp, 0x460
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xb0
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x488]
mov rax, qword [0x14003d018]
xor rax, rbp
mov qword [rbp + 0x438], rax
lea rcx, [0x1400440ef]
call fcn.140011c71
cmp qword [rbp + 0x470], 0
jne 0x1400201cb
mov byte [rbp + 0x404], 0
mov rcx, qword [rbp + 0x468]
call fcn.14001124e
movzx eax, byte [rbp + 0x404]
jmp 0x1400202a5
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov dword [rbp + 0x10], 0x238
mov edx, dword [rbp + 0x460]
mov ecx, 8
call fcn.1400115f5
mov qword [rbp + 0x268], rax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x268]
call fcn.1400110d2
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x268]
call fcn.1400113a7
test eax, eax
je 0x14002025a
mov eax, dword [rbp + 0x460]
cmp dword [rbp + 0x18], eax
je 0x14002022a
jmp 0x140020209
mov rdx, qword [rbp + 0x468]
lea rcx, [rbp + 0x40]
call fcn.140011460
movzx eax, al
test eax, eax
je 0x140020258
lea rax, [rbp + 0x10]
mov rdi, qword [rbp + 0x470]
mov rsi, rax
mov ecx, 0x238
rep movsb byte [rdi], byte [rsi]
jmp 0x14002025a
jmp 0x140020209
mov rcx, qword [rbp + 0x268]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x470]
cmp qword [rax + 0x18], 0
je 0x14002027e
mov byte [rbp + 0x434], 1
jmp 0x140020285
mov byte [rbp + 0x434], 0
movzx eax, byte [rbp + 0x434]
mov byte [rbp + 0x424], al
mov rcx, qword [rbp + 0x468]
call fcn.14001124e
movzx eax, byte [rbp + 0x424]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140034e90]
call fcn.140011a78
mov rax, rdi
mov rcx, qword [rbp + 0x438]
xor rcx, rbp
call fcn.140011613
lea rsp, [rbp + 0x440]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002e50
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 fcn.140004ae0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004ae0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002ec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002ff0
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002f0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002f95
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002ef0
mov rcx, rbx
call fcn.140003910
mov rdi, rax
test rax, rax
je 0x140003012
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003a50
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002ff7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002f8e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002fa0
add dword [0x14000a0a4], 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 [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002f8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002e50
nop dword [rax]
xor esi, esi
jmp 0x140002f18
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002e50
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002e50
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003580
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x1400035dc
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 0x1400035d3
test rsi, rsi
je 0x1400035d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400035b8
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 0x140003910
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003990
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006ad0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400039af
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400039b8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400039af
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003a50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006ad0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003a6f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003a78
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400112a8
Capabilities:
Terminate process

Disassembly:
jmp 0x140015540
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]
add rsp, 0x28
ret
Function at 0x140011357
Capabilities:
Parse pe header

Disassembly:
jmp 0x140016890
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400168b0
xor al, al
jmp 0x140016931
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400168c3
xor al, al
jmp 0x140016931
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 0x1400168ed
xor al, al
jmp 0x140016931
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140016901
xor al, al
jmp 0x140016931
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140016913
xor al, al
jmp 0x140016931
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001692f
xor al, al
jmp 0x140016931
mov al, 1
add rsp, 0x38
ret
Function at 0x1400114ba
Capabilities:
Parse pe header

Disassembly:
jmp 0x140013510
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x3b0
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x84
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3d8]
mov rax, qword [0x1400200a8]
xor rax, rbp
mov qword [rbp + 0x388], rax
lea rcx, [0x14002621e]
call fcn.140011479
mov qword [rbp + 8], 0
mov rax, qword [rbp + 0x3b0]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140013587
xor eax, eax
jmp 0x1400136f9
mov rax, qword [rbp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x3b0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
cmp dword [rax], 0x4550
je 0x1400135b5
mov rax, qword [rbp + 8]
jmp 0x1400136f9
lea rax, [rbp + 0x70]
mov rcx, qword [rbp + 0x48]
mov rdi, rax
lea rsi, [rcx + 0x18]
mov ecx, 0xf0
rep movsb byte [rdi], byte [rsi]
mov eax, 8
imul rax, rax, 0
cmp dword [rbp + rax + 0xe0], 0
jne 0x1400135e7
mov rax, qword [rbp + 8]
jmp 0x1400136f9
mov eax, 8
imul rax, rax, 0
mov eax, dword [rbp + rax + 0xe0]
mov rcx, qword [rbp + 0x3b0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x178], rax
mov rax, qword [rbp + 0x178]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp + 0x3b0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x198], rax
mov rax, qword [rbp + 0x178]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp + 0x3b0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x1b8], rax
mov rax, qword [rbp + 0x178]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp + 0x3b0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x1d8], rax
mov dword [rbp + 0x1f4], 0
jmp 0x14001367f
mov eax, dword [rbp + 0x1f4]
inc eax
mov dword [rbp + 0x1f4], eax
mov rax, qword [rbp + 0x178]
mov eax, dword [rax + 0x18]
cmp dword [rbp + 0x1f4], eax
jae 0x1400136f5
mov eax, dword [rbp + 0x1f4]
mov rcx, qword [rbp + 0x1d8]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp + 0x3b0]
add rcx, rax
mov rax, rcx
mov rdx, qword [rbp + 0x3b8]
mov rcx, rax
call qword [sym.imp.ucrtbased.dll__stricmp]
test eax, eax
jne 0x1400136f0
mov eax, dword [rbp + 0x1f4]
mov rcx, qword [rbp + 0x1b8]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rbp + 0x198]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp + 0x3b0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
jmp 0x1400136f5
jmp 0x140013671
mov rax, qword [rbp + 8]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001d260]
call fcn.140011401
mov rax, rdi
mov rcx, qword [rbp + 0x388]
xor rcx, rbp
call fcn.14001124e
lea rsp, [rbp + 0x390]
pop rdi
pop rsi
pop rbp
ret
Function at 0x14062d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14062d1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14062d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14062d06f
add dl, dl
jne 0x14062d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14062d0f6
xor eax, eax
add dl, dl
jne 0x14062d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14062d1ad
add dl, dl
jne 0x14062d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14062d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14062d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14062d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14062d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14062d07e
mov eax, 1
add dl, dl
jne 0x14062d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14062d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14062d0fb
sub eax, ebx
mov ebx, 1
jne 0x14062d14c
mov ecx, 1
add dl, dl
jne 0x14062d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14062d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14062d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14062d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14062d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14062d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14062d15d
cmp eax, 0x7d00
jae 0x14062d19b
cmp eax, 0x500
jb 0x14062d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14062d07e
cmp eax, 0x7f
ja 0x14062d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14062d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14062d1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14062d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003110
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x14000311e
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x10], 0
je 0x140003150
mov r8, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x10]
call fcn.1400047b0
jmp 0x1400031d3
movzx eax, byte [0x140020ce0]
test eax, eax
jne 0x140003195
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14000318e
lea rdx, str.RegDeleteKeyExW
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140020cd8], rax
mov byte [0x140020ce0], 1
cmp qword [0x140020cd8], 0
je 0x1400031c0
xor r9d, r9d
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 8]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [0x140020cd8]
jmp 0x1400031d3
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add rsp, 0x38
ret

Function at 0x1400044b0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [0x140020010]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x2a0]
mov eax, dword [rax + 8]
or eax, 0x2001f
mov r9d, eax
mov r8, qword [rsp + 0x2a8]
mov rax, qword [rsp + 0x2a0]
mov rdx, qword [rax]
lea rcx, [rsp + 0x48]
call fcn.140003c70
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140004543
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0x48]
call fcn.140001720
mov eax, dword [rsp + 0x60]
jmp 0x140004627
mov dword [rsp + 0x44], 0x100
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400045d0
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x48]
call fcn.1400044b0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1400045c3
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x64], eax
lea rcx, [rsp + 0x48]
call fcn.140001720
mov eax, dword [rsp + 0x64]
jmp 0x140004627
mov dword [rsp + 0x44], 0x100
jmp 0x14000454b
mov dword [rsp + 0x68], 0
cmp qword [rsp + 0x48], 0
je 0x1400045f8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x50], 0
mov rdx, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x2a0]
call fcn.140003110
mov dword [rsp + 0x6c], eax
lea rcx, [rsp + 0x48]
call fcn.140001720
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400086c0
add rsp, 0x298
ret
Function at 0x1400047b0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
je 0x14000483c
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400047ef
mov eax, 1
jmp 0x14000485e
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14000483a
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x38]
jmp 0x14000485e
jmp 0x140004859
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0
je 0x140004859
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x14000485e
mov eax, 1
add rsp, 0x48
ret
Function at 0x140005f20
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
xor eax, eax
test eax, eax
jne 0x140005f33
cmp qword [rsp + 0x80], 0
je 0x140005f4e
mov dword [rsp + 0x38], 1
jmp 0x140005f56
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x140005f6f
mov eax, 0xd
jmp 0x140006018
xor eax, eax
test eax, eax
jne 0x140005f39
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], 0xffffffffffffffff
inc qword [rsp + 0x40]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
cmp word [rax + rcx*2], 0
jne 0x140005f9d
mov rax, qword [rsp + 0x40]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
lea rax, [rcx + rax*2]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x30], 1
jne 0x140005f8a
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x68
ret

Function at 0x140006020
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
xor eax, eax
test eax, eax
jne 0x140006038
cmp qword [rsp + 0x70], 0
je 0x140006050
mov dword [rsp + 0x30], 1
jmp 0x140006058
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x14000606e
mov eax, 0xd
jmp 0x1400060d2
xor eax, eax
test eax, eax
jne 0x14000603e
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0xffffffffffffffff
inc qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
cmp word [rax + rcx*2], 0
jne 0x140006087
mov rax, qword [rsp + 0x38]
inc eax
mov eax, eax
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x78]
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x58
ret
Function at 0x140007e2c
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140007ebd
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140007ebd
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007ebd
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140007ea1
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140007e9b
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140007ea3
add rdx, 0x28
jmp 0x140007e80
xor edx, edx
test rdx, rdx
jne 0x140007eac
xor al, al
jmp 0x140007ec3
test dword [rdx + 0x24], 0x80000000
je 0x140007eb9
xor al, al
jmp 0x140007ec3
mov al, 1
jmp 0x140007ec3
xor al, al
jmp 0x140007ec3
add rsp, 0x18
ret