joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401c2140
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x14034e010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x58]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1401c219f
mov rax, qword [rsp + 0x80]
movsx eax, word [rax + 0x3c]
test eax, eax
jne 0x1401c21b4
mov rax, qword [rsp + 0x80]
movzx eax, byte [rax + 0x46]
test eax, eax
jne 0x1401c21b4
mov rax, qword [rsp + 0x90]
mov dword [rax], 0
xor eax, eax
jmp 0x1401c22fe
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x78]
call fcn.1401bf6a0
mov dword [rsp + 0x40], eax
mov ecx, dword [rsp + 0x28]
call fcn.1401bf6a0
mov dword [rsp + 0x20], eax
jmp 0x1401c21e1
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x20], eax
jl 0x1401c22ee
lea r8, [rsp + 0x48]
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call fcn.1401bf5d0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1401c2219
mov eax, dword [rsp + 0x38]
jmp 0x1401c22fe
mov dword [rsp + 0x30], 0x2000
mov ecx, dword [rsp + 0x88]
call fcn.1401bf5a0
mov dword [rsp + 0x24], eax
jmp 0x1401c2240
mov ecx, dword [rsp + 0x24]
call fcn.1401bf5c0
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax*2]
movzx eax, ax
test eax, eax
je 0x1401c22e0
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax*2]
movzx eax, ax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x3c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x2c], eax
ja 0x1401c22b6
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x78]
cmp dword [rsp + 0x2c], eax
jb 0x1401c22b6
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax*4]
cmp eax, dword [rsp + 0x88]
jne 0x1401c22b6
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x30]
dec eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x44], 0
jne 0x1401c22db
mov ecx, 0xf282
call fcn.140268400
jmp 0x1401c22fe
jmp 0x1401c2233
cmp dword [rsp + 0x34], 0
je 0x1401c22e9
jmp 0x1401c22ee
jmp 0x1401c21d7
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0x34]
mov dword [rax], ecx
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140269770
add rsp, 0x78
ret
Function at 0x140204aa0
Capabilities:
Reference sql statements

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [0x140356b60]
mov r8, qword [rsp + 0x48]
lea rdx, str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
mov rcx, qword [rsp + 0x40]
call fcn.14020bd00
cmp dword [rsp + 0x50], 0
jne 0x140204b06
mov r9, qword [rsp + 0x48]
lea r8, [0x140356ab0]
lea rdx, str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
mov rcx, qword [rsp + 0x40]
call fcn.14020bd00
add rsp, 0x38
ret
Function at 0x14026de00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0
jmp 0x14026de30
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 8], rax
jae 0x14026de95
mov rax, qword [rsp + 8]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov byte [rsp], al
mov rax, qword [rsp + 8]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
movzx ecx, byte [rsp]
xor eax, ecx
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x28]
add rdx, rcx
mov rcx, rdx
mov byte [rcx], al
mov rax, qword [rsp + 8]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
movzx ecx, byte [rsp]
mov byte [rax], cl
jmp 0x14026de23
add rsp, 0x18
ret

Function at 0x140273bf0
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
lea rax, [0x140315348]
mov rdi, qword [rsp + 0x18]
mov rsi, rax
mov ecx, 0x20
rep movsb byte [rdi], byte [rsi]
pop rdi
pop rsi
ret

Function at 0x140273c10
Capabilities:
Hash data using sha512

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x14034e010]
xor rax, rsp
mov qword [rsp + 0x40], rax
movabs rax, 0x6a09e667f3bcc908
mov qword [rsp], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rsp + 8], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rsp + 0x10], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rsp + 0x18], rax
movabs rax, 0x510e527fade682d1
mov qword [rsp + 0x20], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rsp + 0x28], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rsp + 0x30], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rsp + 0x38], rax
lea rax, [rsp]
mov rdi, qword [rsp + 0x70]
mov rsi, rax
mov ecx, 0x40
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140269770
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x1402c00b0
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x10325476
ret
Function at 0x1402c87f0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov eax, dword [rsp + 0x88]
shl eax, 2
mov eax, eax
mov rcx, qword [rsp + 0x80]
lea rax, [rcx + rax*4]
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call fcn.1402c7e40
mov dword [rsp + 0x20], 4
mov eax, dword [rsp + 0x88]
lea eax, [rax*4 - 4]
mov dword [rsp + 0x24], eax
jmp 0x1402c8857
mov eax, dword [rsp + 0x20]
add eax, 4
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
sub eax, 4
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jae 0x1402c88d8
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
movdqu xmm0, xmmword [rcx + rax*4]
aesimc xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x80]
movdqu xmm0, xmmword [rcx + rax*4]
aesimc xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
movdqa xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rcx + rax*4], xmm0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x80]
movdqa xmm0, xmmword [rsp + 0x50]
movdqu xmmword [rcx + rax*4], xmm0
jmp 0x1402c8841
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
movdqu xmm0, xmmword [rcx + rax*4]
aesimc xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
movdqa xmm0, xmmword [rsp + 0x60]
movdqu xmmword [rcx + rax*4], xmm0
add rsp, 0x78
ret
Function at 0x1402dda5c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1402dd888
Function at 0x140001ddc
Capabilities:
Parse pe header

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

Function at 0x1400064f8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400062e8
Function at 0x1400096d4
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 0x140009704
xor eax, eax
jmp 0x1400097c7
mov rbp, rbx
cmp word [rax], si
je 0x140009729
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140009710
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000970c
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.140009624
movsxd r14, eax
test eax, eax
jne 0x140009767
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400096fd
mov rcx, r14
call fcn.14000a588
mov rdi, rax
test rax, rax
jne 0x140009780
xor ecx, ecx
call fcn.140007d50
jmp 0x14000975c
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.140009624
test eax, eax
jne 0x1400097b1
mov rcx, rdi
call fcn.140007d50
jmp 0x1400097bb
xor ecx, ecx
call fcn.140007d50
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 0x14000cd9c
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.140005558
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000ce26
cmp byte [rbp - 0x21], r15b
je 0x14000ce21
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000ce5c
call fcn.14000af80
test eax, eax
jne 0x14000ce48
cmp byte [rbp - 0x21], r15b
je 0x14000ce40
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000ce5c
cmp byte [rbp - 0x21], r15b
je 0x14000ce59
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.140007da0
test eax, eax
jne 0x14000cefc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140005558
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000ce9b
cmp byte [rbp - 0x21], r15b
je 0x14000ced0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000ced0
call fcn.14000af80
test eax, eax
jne 0x14000cebc
cmp byte [rbp - 0x21], r15b
je 0x14000ceb5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000ced0
cmp byte [rbp - 0x21], r15b
je 0x14000cecd
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.140007da0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000cefc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000ceff
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000cf0d
mov rcx, rdi
call fcn.140007d50
cmp byte [rbp + 0x3f], r15b
je 0x14000cf1c
mov rcx, qword [rbp + 0x27]
call fcn.140007d50
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 0x14000fd70
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push rsi
push rdi
push r12
sub rsp, 0x28
mov rdi, qword [rcx + 8]
mov rbp, rcx
mov esi, 8
lea r12, [rsp + 0x58]
mov qword [rsp + 0x60], rbx
cmp qword [rdi], 0
jne 0x14000eeef
mov rdx, qword [rdi + 0x18]
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x50]
call qword [rdi + 0x10]
test rax, rax
je 0x14000ef3a
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000ef3a
lea rdx, [rcx - 1]
mov qword [rdi + 8], rax
lea r8, [rax + 1]
mov qword [rdi], rdx
movzx ecx, byte [rax]
mov qword [rdi + 8], r8
cmp ecx, 0xffffffff
je 0x14000ef3a
lea rax, [rdx + 1]
mov qword [rdi], rax
lea rax, [r8 - 1]
mov qword [rdi + 8], rax
mov rdx, qword [rdi + 8]
movzx eax, byte [rdx]
cmp eax, 0xffffffff
je 0x14000ef3a
mov rbx, qword [rdi]
mov rcx, r12
cmp rsi, rbx
cmovbe rbx, rsi
mov r8, rbx
call fcn.14004a400
sub qword [rdi], rbx
add qword [rdi + 8], rbx
add r12, rbx
sub rsi, rbx
jne 0x14000eea0
mov rdi, qword [rsp + 0x58]
test rdi, rdi
jne 0x14000ef69
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x28
pop r12
pop rdi
pop rsi
pop rbp
ret
test rsi, rsi
je 0x14000ef1f
mov r8, qword [rbp + 0x18]
mov rcx, qword [rbp]
lea r9, str.unexpected_end
lea rdx, str._s:__s_in_precompiled_chunk
call fcn.14000cec0
mov rcx, qword [rbp]
mov edx, 3
call fcn.14000dda0
int3
mov rsi, qword [rbp + 0x10]
mov r12, qword [rbp]
mov qword [rsp + 0x68], r13
mov r13, qword [rsi + 0x10]
mov qword [rsp + 0x20], r14
cmp rdi, r13
jbe 0x14000eff1
mov eax, 0x20
mov rbx, rdi
cmp rdi, rax
cmovb rbx, rax
lea rax, [rbx + 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000efd8
mov r14, qword [r12 + 0x20]
mov rdx, qword [rsi]
mov r9, rbx
mov rcx, qword [r14 + 0x18]
mov r8, r13
call qword [r14 + 0x10]
test rax, rax
mov r11, rax
jne 0x14000efcc
test rbx, rbx
je 0x14000efcc
lea edx, [rax + 4]
mov rcx, r12
call fcn.14000dda0
int3
mov rax, rbx
sub rax, r13
add qword [r14 + 0x78], rax
jmp 0x14000efea
lea rdx, str.memory_allocation_error:_block_too_big
mov rcx, r12
call fcn.14000d3e0
xor r11d, r11d
mov qword [rsi], r11
mov qword [rsi + 0x10], rbx
mov rbx, qword [rsi]
mov r8, rdi
mov rcx, rbp
mov rdx, rbx
call fcn.14000eb80
mov rcx, qword [rbp]
lea r8, [rdi - 1]
mov rdx, rbx
mov r13, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x60]
add rsp, 0x28
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.14000d420
Function at 0x140026a50
Capabilities:
Query environment variable

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x158
mov rax, qword [0x1400840b0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rsi, rcx
mov rcx, r8
mov rbx, r9
mov r12, rdx
call fcn.140052eb0
test rax, rax
jne 0x140026af6
test rbx, rbx
jne 0x140026a9b
mov rax, qword [rsi + 0x10]
mov dword [rax + 8], ebx
add qword [rsi + 0x10], 0x10
jmp 0x140026b4d
mov rdx, qword [rsi + 0x20]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
mov qword [rsp + 0x150], rbp
repne scasb al, byte [rdi]
mov rax, qword [rdx + 0x70]
cmp qword [rdx + 0x78], rax
not rcx
lea rbp, [rcx - 1]
jb 0x140026acb
mov rcx, rsi
call fcn.140009110
mov rdi, qword [rsi + 0x10]
mov r8, rbp
mov rdx, rbx
mov rcx, rsi
call fcn.14000d420
mov rbp, qword [rsp + 0x150]
mov dword [rdi + 8], 4
mov qword [rdi], rax
add qword [rsi + 0x10], 0x10
jmp 0x140026b4d
lea r9, [0x140073ff8]
lea r8, [0x140073ff4]
mov rdx, rax
mov rcx, rsi
call fcn.140019220
lea r8, [0x140073ff0]
mov r9, rbx
mov rdx, rax
mov rcx, rsi
call fcn.140019220
mov rax, qword [rsi + 0x10]
lea rcx, [rax - 0x10]
cmp rcx, rax
jae 0x140026b48
mov rax, qword [rcx]
add rcx, 0x10
mov qword [rcx - 0x20], rax
mov eax, dword [rcx - 8]
mov dword [rcx - 0x18], eax
cmp rcx, qword [rsi + 0x10]
jb 0x140026b31
add qword [rsi + 0x10], 0xfffffffffffffff0
lea rdx, [rsp + 0x30]
mov r8d, 0x105
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140026bde
cmp eax, 0x105
je 0x140026bde
lea rcx, [rsp + 0x30]
mov edx, 0x5c
call fcn.14004d770
test rax, rax
je 0x140026bde
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rsi
mov byte [rax], 0
call fcn.140009780
lea r9, [rsp + 0x30]
lea r8, [0x140073e78]
mov rcx, rsi
mov rdx, rax
call fcn.140019220
mov rdx, qword [rsi + 0x10]
lea rcx, [rdx - 0x10]
cmp rcx, rdx
jae 0x140026bd7
nop
nop
nop
mov rax, qword [rcx]
add rcx, 0x10
mov qword [rcx - 0x20], rax
mov eax, dword [rcx - 8]
mov dword [rcx - 0x18], eax
cmp rcx, qword [rsi + 0x10]
jb 0x140026bc0
add qword [rsi + 0x10], 0xfffffffffffffff0
jmp 0x140026bed
lea rdx, [0x140073e58]
mov rcx, rsi
call fcn.14000fef0
mov rbx, qword [rsi + 0x10]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
mov rdx, r12
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rsi
call fcn.14000d420
mov r9, qword [rsi + 0x10]
lea r8, [rsp + 0x20]
lea rdx, [rbx - 0x20]
sub r9, 0x10
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
call fcn.140007d00
add qword [rsi + 0x10], 0xfffffffffffffff0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140048c00
add rsp, 0x158
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140035320
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x28]
mov rbx, rcx
mov rax, qword [rdi]
mov qword [rcx + 0x28], rax
mov rax, qword [rcx + 0x18]
movzx r9d, byte [rdi + 0xc]
mov r8, qword [rax + 0x30]
movzx eax, byte [r8 + 0x4a]
cmp eax, r9d
jle 0x14003537f
nop
add byte [r8 + 0x4a], 0xff
movzx eax, byte [r8 + 0x4a]
movzx edx, word [r8 + rax*2 + 0xc4]
mov rax, qword [r8]
mov rcx, qword [rax + 0x30]
mov eax, dword [r8 + 0x30]
add rdx, rdx
mov dword [rcx + rdx*8 + 0xc], eax
movzx eax, byte [r8 + 0x4a]
cmp eax, r9d
jg 0x140035350
cmp byte [rdi + 0xd], 0
je 0x14003539f
mov rax, qword [rbx + 0x18]
movzx edx, byte [rdi + 0xc]
mov rcx, rbx
mov r8d, dword [rax + 8]
shl edx, 6
or edx, 0x23
call fcn.140030290
movzx eax, byte [rbx + 0x4a]
mov dword [rbx + 0x3c], eax
mov r9d, dword [rdi + 8]
mov eax, dword [rbx + 0x30]
cmp r9d, 0xffffffff
mov dword [rbx + 0x34], eax
je 0x140035448
mov edx, dword [rbx + 0x38]
cmp edx, 0xffffffff
jne 0x1400353d1
mov dword [rbx + 0x38], r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx]
mov r8, qword [rax + 0x18]
nop
nop
movsxd rax, edx
mov ecx, dword [r8 + rax*4]
shr ecx, 0xe
sub ecx, 0x1ffff
cmp ecx, 0xffffffff
je 0x140035402
lea eax, [rcx + rdx + 1]
cmp eax, 0xffffffff
je 0x140035402
mov edx, eax
jmp 0x1400353e0
sub r9d, edx
movsxd rcx, edx
lea eax, [r9 - 1]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x1ffff
jle 0x14003542d
mov rcx, qword [rbx + 0x18]
lea rdx, str.control_structure_too_long
mov r8d, dword [rcx + 0x10]
call fcn.140015b20
int3
and dword [r8 + rcx*4], 0x3fff
lea eax, [r9 + 0x1fffe]
shl eax, 0xe
and eax, 0xffffc000
or dword [r8 + rcx*4], eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140040e40
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
push rdi
sub rsp, 0x38
xor edi, edi
cmp ecx, 0x101d0
mov rbx, rdx
mov dword [rsp + 0x50], edi
ja 0x140040f4a
cmp ecx, 0x101d0
je 0x140040f1f
sub ecx, 0xa
je 0x140040f07
sub ecx, 1
je 0x140040f74
cmp ecx, 0x401b
jne 0x140040f74
lea rax, [rsp + 0x68]
lea r9d, [rdi + 1]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersion
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x68], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov esi, eax
jne 0x140040ef3
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
lea rdx, str.ProgramFilesDir
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x68]
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov rsi, qword [rsp + 0x30]
sete dil
mov eax, edi
add rsp, 0x38
pop rdi
pop rbx
ret
mov edx, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, 1
add rsp, 0x38
pop rdi
pop rbx
ret
lea rax, [rsp + 0x50]
mov r9, rdx
xor edx, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
lea r8d, [rdx + 1]
xor ecx, ecx
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryA
mov eax, 1
add rsp, 0x38
pop rdi
pop rbx
ret
sub ecx, 0x101d1
je 0x140040f8c
sub ecx, 1
je 0x140040f74
cmp ecx, 1
jne 0x140040f74
lea r8, [rsp + 0x60]
xor ecx, ecx
call sub.mscms.dll_GetColorDirectoryA
mov eax, 1
add rsp, 0x38
pop rdi
pop rbx
ret
mov edx, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, 1
add rsp, 0x38
pop rdi
pop rbx
ret
lea rax, [rsp + 0x50]
mov r9, rdx
xor edx, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
lea r8d, [rdx + 1]
xor ecx, ecx
call sub.WINSPOOL.DRV_GetPrintProcessorDirectoryA
mov eax, 1
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x1400456a0
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
xor ecx, ecx
mov r8d, 0xf003f
xor edx, edx
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov rbx, rax
je 0x140045759
mov r8d, 0x10000
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
mov rdi, rax
je 0x140045718
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x1400456fe
mov esi, 1
jmp 0x140045730
lea rcx, str.ntsvcDeleteService
call fcn.140041bd0
lea rcx, str.ntsvcDeleteService:_DeleteService_call_failed
call fcn.14003e3d0
jmp 0x140045730
lea rcx, str.ntsvcDeleteService
call fcn.140041bd0
lea rcx, str.ntsvcDeleteService:_OpenService_call_failed
call fcn.14003e3d0
test rdi, rdi
je 0x14004573e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x50], rbp
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rcx
mov ecx, 0x1100
mov r9d, 0x400
mov r8d, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rdx, qword [rsp + 0x60]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
movzx eax, byte [rdx + rcx - 1]
cmp al, 0xa
je 0x1400457b1
cmp al, 0xd
jne 0x1400457b7
sub rcx, 1
jmp 0x1400457a4
mov byte [rcx + rdx], sil
mov rbp, qword [rsp + 0x60]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasb al, byte [rdi]
not rcx
lea rbx, [rcx - 1]
call fcn.140056200
test rax, rax
mov rdi, rax
je 0x1400457ee
lea r8, [rbx + 1]
mov rdx, rbp
mov rcx, rax
call fcn.14004a400
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.ntsvcDeleteService
lea rcx, str._s:_Error_0x_x_____s.
mov r8d, eax
mov r9, rdi
call fcn.14003e3d0
mov rcx, rdi
call fcn.14004ad40
lea rcx, str.ntsvcDeleteService:_OpenSCManager_call_failed
call fcn.14003e3d0
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov eax, esi
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400460d0
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push rdi
sub rsp, 0x20
mov edx, 0x80
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140046150
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14004615f
cmp eax, 3
je 0x14004615f
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x30], rbx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
mov ebx, eax
je 0x140046137
lea rcx, str.Delete_file_after_reboot:__s
mov rdx, rdi
call fcn.14003e300
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, str.MoveFileEx
call fcn.140041bd0
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, str.Deleted_file:__s
mov rdx, rdi
call fcn.14003e300
mov eax, 1
add rsp, 0x20
pop rdi
ret