joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008b8d4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14008b8ea
mov al, 1
jmp 0x14008b94a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14008b8fb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14008b948
mov ecx, dword [rcx + 0x18]
nop
call fcn.14008d8d8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14008b948
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14008b948
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14008b948
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14008b94a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14008d9e8
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.140080d0c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140080d0c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14008db38
cmp rax, 0xffffffffffffffff
je 0x14008db38
xor edi, edi
test rbp, rbp
jle 0x14008dae3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14008a268
mov rbx, rax
test rax, rax
jne 0x14008da70
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14008dad9
mov edx, 0x8000
mov ecx, r14d
call fcn.1400856ec
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.140088bfc
cmp eax, 0xffffffff
je 0x14008dab9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14008da80
mov edx, r15d
mov ecx, r14d
call fcn.1400856ec
jmp 0x14008dad9
cmp byte [rsi + 0x38], dil
je 0x14008dad0
cmp dword [rsi + 0x34], 5
jne 0x14008dad0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14008dad9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140089f6c
jmp 0x14008db4c
jns 0x14008db4c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140080d0c
cmp rax, 0xffffffffffffffff
jne 0x14008db04
cmp byte [rsi + 0x30], dil
je 0x14008db4c
mov edi, dword [rsi + 0x2c]
jmp 0x14008db4c
mov ecx, r14d
call fcn.14008d8d8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14008db4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x14008db4c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14008db45
mov eax, dword [rsi + 0x2c]
jmp 0x14008db4a
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140080d0c
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 0x140091e38
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 0x140091e68
xor eax, eax
jmp 0x140091f2b
mov rbp, rbx
cmp word [rax], si
je 0x140091e8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140091e74
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140091e70
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.14008e384
movsxd r14, eax
test eax, eax
jne 0x140091ecb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140091e61
mov rcx, r14
call fcn.14008a2e0
mov rdi, rax
test rax, rax
jne 0x140091ee4
xor ecx, ecx
call fcn.140089f6c
jmp 0x140091ec0
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.14008e384
test eax, eax
jne 0x140091f15
mov rcx, rdi
call fcn.140089f6c
jmp 0x140091f1f
xor ecx, ecx
call fcn.140089f6c
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 0x140091f48
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140091fcf
mov rsi, rbx
cmp word [rax], bp
je 0x140091f8e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140091f78
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140091f74
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14008a2e0
mov rdi, rax
test rax, rax
je 0x140091fbc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140099630
mov rbp, rdi
xor ecx, ecx
call fcn.140089f6c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140094d64
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140089b34
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140094e05
cmp ebx, dword [rsp + 0x30]
je 0x140094dfe
test esi, esi
je 0x140094dfe
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140094dd9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140094de6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140094dc3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140094dea
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140094e07
mov eax, 1
jmp 0x140094e07
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400952b4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400952d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007221c
or eax, 0xffffffff
jmp 0x1400952d6
xor eax, eax
add rsp, 0x28
ret

Function at 0x14009786c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400c3700]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400978b6
call fcn.140072288
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1400722a8
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.140070408
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140069090
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400978c1
lea eax, [rbx + 1]
jmp 0x1400978a3
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400978a1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400978a3
Function at 0x140097cb4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14007a374
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140097d3e
cmp byte [rbp - 0x21], r15b
je 0x140097d39
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140097d74
call fcn.14008a6dc
test eax, eax
jne 0x140097d60
cmp byte [rbp - 0x21], r15b
je 0x140097d58
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140097d74
cmp byte [rbp - 0x21], r15b
je 0x140097d71
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14007e5e8
test eax, eax
jne 0x140097e14
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14007a374
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140097db3
cmp byte [rbp - 0x21], r15b
je 0x140097de8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140097de8
call fcn.14008a6dc
test eax, eax
jne 0x140097dd4
cmp byte [rbp - 0x21], r15b
je 0x140097dcd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140097de8
cmp byte [rbp - 0x21], r15b
je 0x140097de5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14007e5e8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140097e14
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140097e17
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140097e25
mov rcx, rdi
call fcn.140089f6c
cmp byte [rbp + 0x3f], r15b
je 0x140097e34
mov rcx, qword [rbp + 0x27]
call fcn.140089f6c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400992e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140099308
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140099308
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14170a058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14170a1df
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 0x14170a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14170a06f
add dl, dl
jne 0x14170a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14170a0f6
xor eax, eax
add dl, dl
jne 0x14170a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14170a1ad
add dl, dl
jne 0x14170a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14170a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14170a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14170a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14170a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14170a07e
mov eax, 1
add dl, dl
jne 0x14170a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14170a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14170a0fb
sub eax, ebx
mov ebx, 1
jne 0x14170a14c
mov ecx, 1
add dl, dl
jne 0x14170a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14170a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14170a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14170a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14170a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14170a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14170a15d
cmp eax, 0x7d00
jae 0x14170a19b
cmp eax, 0x500
jb 0x14170a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14170a07e
cmp eax, 0x7f
ja 0x14170a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14170a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14170a1d2
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 0x14170a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0xc4e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xc4e1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xc4e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xc4e06f
add dl, dl
jne 0xc4e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xc4e0f6
xor eax, eax
add dl, dl
jne 0xc4e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xc4e1ad
add dl, dl
jne 0xc4e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc4e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc4e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc4e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xc4e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xc4e07e
mov eax, 1
add dl, dl
jne 0xc4e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc4e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xc4e0fb
sub eax, ebx
mov ebx, 1
jne 0xc4e14c
mov ecx, 1
add dl, dl
jne 0xc4e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc4e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xc4e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xc4e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc4e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc4e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xc4e15d
cmp eax, 0x7d00
jae 0xc4e19b
cmp eax, 0x500
jb 0xc4e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xc4e07e
cmp eax, 0x7f
ja 0xc4e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xc4e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xc4e1d2
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 0xc4e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x100002134
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x10000d950]
test rcx, rcx
jne 0x10000201e
call fcn.1000020ac
test eax, eax
je 0x100002045
mov rcx, qword [0x10000d950]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x100002099
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x100002049
xor eax, eax
jmp 0x100002099
mov eax, dword [rax]
mov rcx, qword [0x10000d950]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x100002076
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x100002099
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x10000d950]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x10000207d
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
jmp 0x100001ff8

Function at 0x100002710
Capabilities:
Set registry value

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
sub rsp, 0x30
xor edi, edi
mov rbx, r8
mov rbp, rdx
mov r12, rcx
cmp r8, rdi
jne 0x100002744
mov ecx, 0x80004005
call fcn.10000216c
int3
mov rsi, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea rsi, [rsi + rax*2]
lea edi, [rdi + rax*2]
cmp eax, 1
jne 0x100002747
mov rcx, qword [r12]
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x100002ca4
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x10000d130]
xor rax, rsp
mov qword [rsp + 0x270], rax
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
mov rdi, rcx
mov rcx, qword [rcx]
lea rax, [rsp + 0x60]
mov r9d, 0x2001f
xor r8d, r8d
mov rsi, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x100002da8
test rcx, rcx
je 0x100002d1e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
test ebx, ebx
mov qword [rsp + 0x48], rcx
jmp 0x100002d44
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.100002ca4
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x100002da8
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x100002d2c
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x100002d96
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.1000025bc
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test rcx, rcx
je 0x100002db3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.100007260
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x100004970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x10000d130]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor ebp, ebp
mov rax, rdx
mov rbx, r8
mov qword [rsp + 0x38], rcx
lea r8d, [rbp + 2]
xor edx, edx
mov rcx, rax
mov rsi, r9
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x40], rbp
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
cmp rax, rbp
jne 0x1000049ce
call fcn.100002454
mov ebx, eax
jmp 0x100004adb
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
cmp rax, rbp
jne 0x1000049ef
call fcn.100002454
jmp 0x100004ad0
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
cmp rax, rbp
je 0x1000049e5
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
inc eax
cmp eax, ebx
jae 0x100004a37
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x40], rax
je 0x100004a2d
lea rcx, [rsp + 0x40]
call fcn.100002c60
mov eax, 0x8007000e
jmp 0x100004af3
mov ecx, eax
cmp rcx, rbp
je 0x100004a76
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x100004a6b
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x100004a76
lea rcx, [rsp + 0x40]
call fcn.100002c70
mov r11, qword [rsp + 0x40]
jmp 0x100004a80
mov ecx, 0x80070057
call fcn.10000216c
int3
lea r11, [rsp + 0x48]
mov qword [rsp + 0x40], r11
cmp r11, rbp
jne 0x100004a8c
mov ebx, 0x8007000e
jmp 0x100004ad2
xor edx, edx
mov r9d, ebx
mov r8, rsi
lea ecx, [rdx + 3]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r11
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebp
je 0x1000049e5
mov r8d, dword [rsp + 0x4a0]
mov ecx, eax
mov rax, qword [rsp + 0x40]
mov word [rax + rcx*2], bp
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.1000043c4
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x40], rax
je 0x100004af1
lea rcx, [rsp + 0x40]
call fcn.100002c60
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.100007260
mov rbx, qword [rsp + 0x480]
add rsp, 0x460
pop rdi
pop rsi
pop rbp
ret

Function at 0x100007528
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100007575
cmp rcx, 0xffffffffffffffff
je 0x100007575
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000756d
cmp dword [rcx + 0x3c], edx
jl 0x10000756d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000756d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100007575
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1000077c0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x10000782b
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x10000784b
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x100001ec8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret

Function at 0x1000078d0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov dword [rsp + 0x60], 0
mov al, byte [0x10000d154]
cmp al, 2
jne 0x10000791c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x40], 1
ja 0x10000790f
mov rcx, qword [rsp + 0x38]
lea rax, [rcx - 1]
test rcx, rax
jne 0x10000790f
mov byte [0x10000d154], 0xff
jmp 0x100007916
mov byte [0x10000d154], 1
lock add dword [rsp + 0x60], 1
add rsp, 0x58
ret