joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d340
Capabilities:
Hash data using murmur3

Disassembly:
cmp rsp, qword [r14 + 0x18]
jbe 0x42d5e6
sub rsp, 0x40
mov qword [rsp + 0x38], rbp
lea rbp, [rsp + 0x38]
test byte [rax], al
lea rsi, [rax + 0x1270]
mov rcx, qword [rax + 0x1260]
sub rcx, rsi
shr rcx, 3
cmp rcx, 0x200
ja 0x42d5da
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], rcx
mov qword [rax + 0x1260], 0
cmp byte [0x005dac10], 0
jne 0x42d3a2
xor edx, edx
xor ebx, ebx
nop
jmp 0x42d3ea
xor edx, edx
jmp 0x42d3cd
mov qword [rsp + 0x28], rdx
mov rcx, qword [rax + rdx*8 + 0x1270]
mov rax, rcx
call fcn.0041ccc0
mov rdx, qword [rsp + 0x28]
inc rdx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
cmp rdx, rcx
jl 0x42d3a6
add rax, 0x1260
call fcn.0042d200
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
inc rdx
cmp rdx, rcx
jge 0x42d574
mov rsi, qword [rax + rdx*8 + 0x1270]
nop dword [rax + rax]
cmp rsi, 0x1000
jb 0x42d3e7
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbx
mov rax, rsi
xor ebx, ebx
mov rcx, rbx
nop dword [rax + rax]
call fcn.00411d60
test rax, rax
jne 0x42d442
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
nop
jmp 0x42d3e7
mov rsi, qword [rbx + 0x50]
test byte [rsi], al
nop
mov r8, rcx
shr rcx, 3
movzx r9d, byte [rsi + rcx]
and r8d, 7
mov rdx, rcx
mov rcx, r8
mov r10d, 1
shl r10d, cl
add rsi, rdx
test r10b, r9b
je 0x42d489
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x42d3e7
nop
lock or byte [rsi], r10b
nop
nop
mov rcx, qword [rbx + 0x18]
nop
movabs rsi, 0x800000000000
lea r8, [rsi + rcx]
mov r9, r8
shr r8, 0x2a
cmp r8, 0x40
jae 0x42d5cd
lea r10, [0x005ad050]
mov r8, qword [r10 + r8*8]
shr r9, 0x16
and r9d, 0xfffff
mov r9, qword [r8 + r9*8]
test byte [r9], al
test byte [r8], al
mov r8, rcx
shr rcx, 0x10
and ecx, 0x3f
movzx r10d, byte [r9 + rcx + 0x11440]
lea r11, [rcx + 0x11440]
add r9, r11
shr r8, 0xd
and r8d, 7
mov rcx, r8
mov r8d, 1
shl r8d, cl
test r8b, r10b
jne 0x42d50e
lock or byte [r9], r8b
movzx r8d, byte [rbx + 0x62]
test r8b, 1
je 0x42d545
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 0x1248]
add r8, qword [rbx + 0x68]
mov qword [rax + 0x1248], r8
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
nop
jmp 0x42d3e7
mov r8, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
cmp r8, rcx
jae 0x42d5c5
mov rbx, qword [rsp + 0x48]
mov qword [rbx + r8*8 + 0x1270], rax
inc r8
mov rax, rbx
mov rdx, qword [rsp + 0x28]
mov rbx, r8
jmp 0x42d3e7
cmp rbx, 0x200
ja 0x42d5b8
lea rdx, [rax + 0x1270]
lea rsi, [rax + 0x1238]
mov rcx, rbx
mov edi, 0x200
mov rbx, rdx
mov rax, rsi
call fcn.00422e00
mov rax, qword [rsp + 0x48]
add rax, 0x1260
call fcn.0042d200
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
mov rcx, rbx
mov edx, 0x200
call fcn.0045f2a0
mov rax, r8
call fcn.0045f220
mov rax, r8
mov ecx, 0x40
call fcn.0045f240
mov edx, 0x200
nop
call fcn.0045f280
nop
mov qword [rsp + 8], rax
call fcn.00461600
mov rax, qword [rsp + 8]
jmp fcn.0042d340
Function at 0x4421a0
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x44230a
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x4421b8
cmp edx, ecx
jne 0x4422f8
nop dword [rax]
test rsi, rsi
jne 0x4422f8
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x442214
nop
call fcn.00460bc0
xorps xmm15, xmm15
mov r14, qword [0x005dae00]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.004420a0
mov rcx, qword [0x00587e28]
mov rdx, qword [0x00587e20]
mov rbx, qword [rsp + 0x28]
mov esi, dword [rbx]
mov edi, esi
sar esi, 0x1f
shr esi, 0x1b
add esi, edi
mov r8d, esi
and esi, 0xffffffe0
sub edi, esi
test edi, edi
jl 0x4422f3
cmp edi, 0x20
sbb esi, esi
sar r8d, 5
mov rax, rcx
mov ecx, edi
mov r9d, 1
shl r9d, cl
and r9d, esi
movsxd rsi, r8d
cmp rax, rsi
jbe 0x4422e8
lea rcx, [rdx + rsi*4]
lock or dword [rcx], r9d
mov rcx, qword [0x00588910]
mov qword [rbx + 8], rcx
nop
mov rcx, rbx
mov qword [0x00588910], rbx
nop
mov edx, 1
lea rsi, [0x00588918]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1220]
shr rdx, 0x3d
test dl, dl
jne 0x4422d7
nop
nop
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
xchg qword [rcx + 0x1220], rdx
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
lea rax, [0x004c8ccf]
mov ebx, 0x28
call fcn.00433ac0
mov rcx, rax
mov rax, rsi
call fcn.0045f220
call fcn.004320e0
lea rax, [0x004c7fb1]
mov ebx, 0x23
call fcn.00433ac0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045cbc0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004421a0
Function at 0x44d580
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x44d6f8
movzx edx, byte [rax]
nop
test edx, edx
jne 0x44d5bc
test r8b, r8b
jne 0x44d5bc
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
bt edx, 7
jae 0x44d5cf
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x44d6b8
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
cmp rbx, r8
jb 0x44d6a6
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rcx
sar rcx, 0x3f
and r8, rcx
lea rsi, [rax + r8]
test rbx, rbx
jbe 0x44d69c
movzx r8d, byte [rax + r8]
bt r8d, 7
jae 0x44d623
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x44d666
mov eax, 1
cmp rax, rbx
ja 0x44d655
add qword [rdi], r8
sub rdx, rax
sub rbx, rax
mov rcx, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, rsi
mov edi, 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rbx
call fcn.0045f2e0
lea r8d, [rcx + 7]
mov ecx, eax
mov eax, r10d
cmp rax, rbx
jae 0x44d694
movzx r9d, byte [rax + rsi]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov eax, ecx
mov ecx, r8d
shl r9d, cl
or eax, r9d
test r11b, 0x80
jne 0x44d65d
mov r8d, eax
mov eax, r10d
jmp 0x44d628
mov rcx, rbx
call fcn.0045f220
xor eax, eax
mov rcx, rax
call fcn.0045f220
mov eax, r8d
mov rcx, rbx
call fcn.0045f2e0
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x44d6ee
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x44d6b1
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x44d5d5
mov eax, edx
mov rcx, rbx
call fcn.0045f220
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0045f220
nop
int3
Function at 0x454dc0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x454e79
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rdx, [0x00454ec0]
mov qword [rsp + 0x10], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x18], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x28], rdx
mov rdx, r14
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0045ca80
xorps xmm15, xmm15
mov r14, qword [0x005dae00]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0045cbc0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00454dc0
Function at 0x45ec60
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4028af
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
nop
call fcn.00408f40
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045cbc0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x402880
cmp byte [0x005dac0f], 0
je 0x45ec75
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45bcc0
jmp 0x402880

Function at 0x45ec80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005daee0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005dac0f], 0
je 0x45ecb5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005db220]
aesenc xmm0, xmmword [0x005db230]
aesenc xmm0, xmmword [0x005db240]
movq rax, xmm0
ret
jmp 0x409140

Function at 0x45ecc0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005daee0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005dac0f], 0
je 0x45ecf6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005db220]
aesenc xmm0, xmmword [0x005db230]
aesenc xmm0, xmmword [0x005db240]
movq rax, xmm0
ret
jmp 0x4091a0

Function at 0x4606e0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x005db1a0]
mov qword [rsp + 8], rdx
lea r8d, [0x005dac24]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.0045eba0
add rsp, 0x30
ret

Function at 0x460c20
Capabilities:
Allocate thread local storage

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x460c4c
call fcn.0045eba0
shl rcx, 3
add rcx, 0x1480
mov qword [0x005dae00], rcx
ret
Function at 0x141089058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1410891df
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 0x141089089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14108906f
add dl, dl
jne 0x141089096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410890f6
xor eax, eax
add dl, dl
jne 0x1410890a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410891ad
add dl, dl
jne 0x1410890b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410890c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410890d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410890dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1410890ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14108907e
mov eax, 1
add dl, dl
jne 0x141089106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141089113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410890fb
sub eax, ebx
mov ebx, 1
jne 0x14108914c
mov ecx, 1
add dl, dl
jne 0x14108912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14108913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141089123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14108907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141089168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141089175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14108915d
cmp eax, 0x7d00
jae 0x14108919b
cmp eax, 0x500
jb 0x141089196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14108907e
cmp eax, 0x7f
ja 0x14108919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14108907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1410891d2
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 0x14108907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001600
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xa0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov r14, rdx
mov rbp, rcx
mov edx, 1
mov ecx, 0x100000
call fcn.140007ef4
mov rdi, rax
test rax, rax
je 0x140001693
xor r9d, r9d
mov r8d, 0x100000
mov rdx, rax
lea ecx, [r9 + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x140001693
xor ebx, ebx
cmp dword [rdi], ebx
jbe 0x140001693
mov eax, ebx
mov rdx, rbp
imul rcx, rax, 0x128
movzx eax, word [rcx + rdi + 0x2e]
add rax, 0x30
lea rsi, [rcx + rdi]
add rcx, rax
add rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400016c9
inc ebx
cmp ebx, dword [rdi]
jb 0x140001664
lea rcx, str.ntoskrnl.exe_base_address_not_found._n
call fcn.140001010
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140003620
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x140001693
lea rdx, str.FLTMGR.sys
mov rcx, rbp
call fcn.140017800
test eax, eax
jne 0x140001761
mov eax, dword [0x140021d80]
lea rcx, [rsp + 0x20]
movups xmm0, xmmword [str.C:windows_system32drivers_]
mov dword [rsp + 0x38], eax
mov rdx, rbp
movzx eax, byte [0x140021d84]
movaps xmmword [rsp + 0x20], xmm0
movsd xmm0, qword [0x140021d78]
movsd qword [rsp + 0x30], xmm0
xorps xmm0, xmm0
mov byte [rsp + 0x3c], al
xor eax, eax
movups xmmword [rsp + 0x3d], xmm0
mov dword [rsp + 0x7d], eax
movups xmmword [rsp + 0x4d], xmm0
mov word [rsp + 0x81], ax
movups xmmword [rsp + 0x5d], xmm0
mov byte [rsp + 0x83], al
movups xmmword [rsp + 0x6d], xmm0
call qword [sym.imp.KERNEL32.dll_lstrcatA]
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x14000176a
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x14000169f
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
sub rbx, rdi
add rax, rbx
jmp 0x1400016a1
Function at 0x140004034
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000407e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000407e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000407e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000407e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000407e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004080
xor al, al
add rsp, 0x28
ret

Function at 0x140007ee8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140007d53
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007d53
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007d53
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007d53
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007d53
cmp dword [rcx + 0x84], 0xe
jbe 0x140007d53
cmp dword [rcx + 0xf8], 0
je 0x140007d53
mov ecx, ebx
call fcn.140007e04
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140007be0
nop
cmp dword [rbp + 0x20], 0
je 0x140007da1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140007dac
int3
xor r8d, r8d
xor edx, edx
jmp 0x140007ce4
Function at 0x1400106e8
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 0x140010718
xor eax, eax
jmp 0x1400107db
mov rbp, rbx
cmp word [rax], si
je 0x14001073d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140010724
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140010720
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.14000edd0
movsxd r14, eax
test eax, eax
jne 0x14001077b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140010711
mov rcx, r14
call fcn.14000d564
mov rdi, rax
test rax, rax
jne 0x140010794
xor ecx, ecx
call fcn.14000c9d8
jmp 0x140010770
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.14000edd0
test eax, eax
jne 0x1400107c5
mov rcx, rdi
call fcn.14000c9d8
jmp 0x1400107cf
xor ecx, ecx
call fcn.14000c9d8
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 0x14001459c
Capabilities:
Get file size

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

Function at 0x1400175d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400175f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400175f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140018180
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rbp + 0x20], rax
movabs rax, 0x8070a725c61e8594
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
movabs rcx, 0x3c7ed1975247d072
mov qword [rbp - 0x68], rcx
movabs rax, 0x75cbd0f31bd37a5d
mov qword [rsp + 0x48], rax
movabs rdi, 0xc32cea60924ddcc7
movdqa xmm0, xmmword [rsp + 0x40]
movabs rax, 0xb89c876e4cbb4a1f
mov qword [rsp + 0x50], rax
movabs rbx, 0x1a88a49d7ea10828
movabs rax, 0xcdb7b32b799b5d16
mov qword [rbp + 0x18], rcx
mov qword [rsp + 0x58], rax
mov r9d, 2
movdqa xmm1, xmmword [rsp + 0x50]
movabs rax, 0x74c5e39575195d97
mov qword [rsp + 0x60], rax
xor r8d, r8d
movabs rax, 0x188d925597f597c9
mov qword [rbp - 0x40], rdi
mov qword [rsp + 0x68], rax
mov rcx, 0xffffffff80000002
movabs rax, 0x6f8f6ab1089d860b
mov qword [rbp - 0x38], rbx
xorps xmm0, xmmword [rbp - 0x40]
mov qword [rsp + 0x70], rax
movabs rax, 0xb9a545cd2b00b1d7
mov qword [rsp + 0x78], rax
movabs rax, 0x636f60d79c533cdd
mov qword [rbp - 0x80], rax
movabs rax, 0x63b98502c1e3554
mov qword [rbp - 0x78], rax
movabs rax, 0xf43caa6eb0ca4e9c
mov qword [rbp - 0x70], rax
movabs rax, 0xccf9d40223c93e71
mov qword [rbp - 0x30], rax
movabs rax, 0xa1d8c15f17f41e4a
mov qword [rbp - 0x28], rax
movabs rax, 0x33a080fc037c19cb
xorps xmm1, xmmword [rbp - 0x30]
mov qword [rbp - 0x20], rax
movabs rax, 0x7deec109f387f6bc
mov qword [rbp - 0x18], rax
movabs rax, 0x27d319de61efe765
mov qword [rbp - 0x10], rax
movabs rax, 0xd6d62cbb5965c1ae
mov qword [rbp - 8], rax
movabs rax, 0x60c12b8fa3d79af
mov qword [rbp], rax
movabs rax, 0x7255d13548717630
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmm0, xmmword [rsp + 0x60]
xorps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rsp + 0x50], xmm1
movdqa xmm1, xmmword [rsp + 0x70]
xorps xmm1, xmmword [rbp - 0x10]
mov qword [rbp + 8], rax
movabs rax, 0xf43cd31ad9b829f9
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm0, xmmword [rbp - 0x80]
xorps xmm0, xmmword [rbp]
movdqa xmmword [rsp + 0x70], xmm1
movdqa xmm1, xmmword [rbp - 0x70]
mov qword [rbp + 0x10], rax
lea rax, [rbp - 0x60]
xorps xmm1, xmmword [rbp + 0x10]
movdqa xmmword [rbp - 0x70], xmm1
movdqa xmmword [rbp - 0x80], xmm0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400183d9
mov rcx, qword [rbp - 0x60]
lea rdx, [rsp + 0x30]
mov dword [rbp - 0x58], eax
mov r9d, 4
mov qword [rsp + 0x38], rbx
movabs rax, 0xc3488f0cf02cb282
mov qword [rsp + 0x30], rax
xor r8d, r8d
movdqa xmm0, xmmword [rsp + 0x30]
lea rax, [rbp - 0x58]
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rbx
xorps xmm0, xmmword [rbp - 0x50]
mov dword [rsp + 0x28], 4
movdqa xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.14002b880
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret