joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180008910
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x180008954
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x180008940
ret
Function at 0x18000e230
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x18000e313
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x18000e313
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x18000e331
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x18000e303
cmp word [rax], 0x5c
jne 0x18000e2fc
lea rdx, [rax + 2]
cmp rdx, rcx
je 0x18000e2fc
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x18000e2e7
movzx ecx, word [rdx]
sub cx, 0x28
cmp cx, 1
jbe 0x18000e2f9
test r8b, 0x10
jne 0x18000e2fc
movzx ecx, word [rdx]
sub cx, 0x7b
test bp, cx
jne 0x18000e2fc
mov rax, rdx
add rax, 2
mov qword [rbx], rax
mov rcx, rbx
call fcn.18000a700
test edi, edi
jne 0x18000e260
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.18000a6f0
int3
Function at 0x18001fc7c
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 0x18001fcac
xor eax, eax
jmp 0x18001fd6f
mov rbp, rbx
cmp word [rax], si
je 0x18001fcd1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001fcb8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001fcb4
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.18001fb9c
movsxd r14, eax
test eax, eax
jne 0x18001fd0f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001fca5
mov rcx, r14
call fcn.18001e010
mov rdi, rax
test rax, rax
jne 0x18001fd28
xor ecx, ecx
call fcn.18001ba8c
jmp 0x18001fd04
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.18001fb9c
test eax, eax
jne 0x18001fd59
mov rcx, rdi
call fcn.18001ba8c
jmp 0x18001fd63
xor ecx, ecx
call fcn.18001ba8c
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 0x180024c5c
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.18001be84
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 0x180024cfd
cmp ebx, dword [rsp + 0x30]
je 0x180024cf6
test esi, esi
je 0x180024cf6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180024cd1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180024cde
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180024cbb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180024ce2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180024cff
mov eax, 1
jmp 0x180024cff
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180028b10
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140465720
jmp 0x140479df3
lea rsp, [rsp + 0x18]
je 0x14044aeef
mov edx, 0xef9898b4
rol rdx, 0xb6
push r10
lea rdx, [0x140451920]
mov r10d, 0xd73b95a0
lea r10, [r10*8 - 0x326723cf]
movzx r10d, byte [rsi]
xor r10d, eax
and r10d, 0xff
push 0x6c85ef2e
mov r10d, dword [rdx + r10*4]
shr eax, 8
push 0x52a4c685
dec byte [rsp + 6]
xor eax, r10d
inc rsi
push 0xffffffffc4b5feb3
xor eax, 0x189b488
dec r11
lea rsp, [rsp + 0x18]
jne 0x140479e10
call fcn.14044aee5
movzx dx, byte [r8]
mov al, byte [r8 + 2]
call fcn.140481aee
Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62

Function at 0x1004010e0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call sub.cygwin1.dll___getreent
mov rcx, qword [rax + 0x18]
lea r9, str._______________Q_msgkey____M_shmkey____S_semkey__...
lea r8, str.usage:_ipcrm___q_msqid____m_shmid____s_semid_
lea rdx, str._s_n_s_n
call sub.cygwin1.dll_fprintf
mov ecx, 1
call sub.cygwin1.dll_exit
nop
nop word cs:[rax + rax]
Function at 0x14058fc60
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.1405944e0
sub rsp, rax
mov rax, qword [0x1405e39c0]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x14058fd22
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14058fccd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14058fcc0
cmp rcx, 1
jb 0x14058fd7a
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14058fcf0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1405a3aa4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14058fcb0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14058fd53
lea rcx, [rsp + 0x80]
call fcn.1405a68e4
jmp 0x14058fd55
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140594210
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140598870
int3
Function at 0x140593d90
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1405e39c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x140593e35
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x140593ded
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140593de0
cmp rcx, 1
jb 0x140593e66
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140593e03
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1405a3aa4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140593dd0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140594210
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.140598870
int3

Function at 0x1405940a0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1405e39c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x140594145
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1405940fd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1405940f0
cmp rcx, 1
jb 0x140594177
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140594113
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1405a3aa4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1405940e0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140594210
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140598870
int3

Function at 0x140594c44
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140594c8e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140594c8e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140594c8e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140594c8e
cmp dword [rcx + 0x84], 0xe
jbe 0x140594c8e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140594c90
xor al, al
add rsp, 0x28
ret
Function at 0x14059a0e8
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 0x140599f53
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140599f53
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140599f53
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140599f53
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140599f53
cmp dword [rcx + 0x84], 0xe
jbe 0x140599f53
cmp dword [rcx + 0xf8], 0
je 0x140599f53
mov ecx, ebx
call fcn.14059a004
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.140599de0
nop
cmp dword [rbp + 0x20], 0
je 0x140599fa1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140599fac
int3
xor r8d, r8d
xor edx, edx
jmp 0x140599ee4
Function at 0x1405abb50
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 0x1405abbd7
mov rsi, rbx
cmp word [rax], bp
je 0x1405abb96
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1405abb80
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1405abb7c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1405a70d0
mov rdi, rax
test rax, rax
je 0x1405abbc4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1405b1ed0
mov rbp, rdi
xor ecx, ecx
call fcn.1405a7c18
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 0x1405af74c
Capabilities:
Get file size

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

Function at 0x1405b1cb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1405b1cd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1405b1cd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001380
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x170
mov rax, qword [0x140030018]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
mov rax, qword gs:[0x60]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x28], rax
cmp dword [rsp + 0x180], 0
jne 0x1400013fb
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
jmp 0x14000151b
cmp qword [rsp + 0x28], 0
je 0x140001519
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x50], 0
je 0x140001507
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x48]
cmp eax, 0x104
jge 0x140001507
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x50]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x1400014ad
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x50]
movzx eax, byte [rcx + rax*2]
mov byte [rsp + 0x20], al
movsx eax, byte [rsp + 0x20]
cmp eax, 0x41
jl 0x140001494
movsx eax, byte [rsp + 0x20]
cmp eax, 0x5a
jg 0x140001494
movsx eax, byte [rsp + 0x20]
add eax, 0x20
mov ecx, dword [rsp + 0x24]
mov byte [rsp + rcx + 0x50], al
jmp 0x1400014a1
mov eax, dword [rsp + 0x24]
movzx ecx, byte [rsp + 0x20]
mov byte [rsp + rax + 0x50], cl
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
jmp 0x140001444
mov eax, dword [rsp + 0x24]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0x104
jae 0x1400014c3
jmp 0x1400014c8
call fcn.140006ac8
mov rax, qword [rsp + 0x40]
mov byte [rsp + rax + 0x50], 0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x50]
call fcn.140002120
cmp eax, dword [rsp + 0x180]
je 0x1400014fc
lea rcx, [rsp + 0x50]
call fcn.140002120
cmp eax, dword [rsp + 0x180]
jne 0x140001507
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
jmp 0x14000151b
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
jmp 0x1400013fb
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400069a0
add rsp, 0x170
pop rdi
ret
Function at 0x140001f90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
cmp qword [rsp + 0x20], 0
je 0x140001fba
cmp qword [rsp + 0x28], 0
je 0x140001fba
cmp dword [rsp + 0x30], 0
jne 0x140001fc1
xor eax, eax
jmp 0x140002118
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x30]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
cmp dword [rax], 0x4550
je 0x14000200f
xor eax, eax
jmp 0x140002118
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
movzx eax, word [rax + 0x16]
and eax, 0x2000
test eax, eax
je 0x14000202e
mov dword [rsp], 1
jmp 0x140002035
mov dword [rsp], 0
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp]
mov dword [rax + 0x48], ecx
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x10]
movzx ecx, word [rcx + 0x14]
lea rax, [rax + rcx + 0x18]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x18], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
mov ecx, 8
imul rcx, rcx, 1
lea rax, [rax + rcx + 0x88]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
mov ecx, 8
imul rcx, rcx, 5
lea rax, [rax + rcx + 0x88]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
mov ecx, 8
imul rcx, rcx, 9
lea rax, [rax + rcx + 0x88]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
mov ecx, 8
imul rcx, rcx, 3
lea rax, [rax + rcx + 0x88]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x38], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
mov ecx, 8
imul rcx, rcx, 0
lea rax, [rax + rcx + 0x88]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x40], rax
mov eax, 1
add rsp, 0x18
ret

Function at 0x140002120
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp + 0xc], 0
mov dword [rsp], 0xffffefff
mov dword [rsp + 4], 0
movsxd rax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x1400021b4
movsxd rax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
movsx eax, byte [rcx + rax]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov dword [rsp + 8], 0
jmp 0x14000217e
mov eax, dword [rsp + 8]
inc eax
mov dword [rsp + 8], eax
cmp dword [rsp + 8], 8
jge 0x1400021a8
mov eax, dword [rsp]
and eax, 1
imul eax, eax, 0xffffffff
mov dword [rsp + 0xc], eax
mov eax, dword [rsp]
shr eax, 1
mov ecx, dword [rsp + 0xc]
and ecx, 0xedb88320
xor eax, ecx
mov dword [rsp], eax
jmp 0x140002174
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
jmp 0x140002140
mov eax, dword [rsp]
not eax
add rsp, 0x18
ret
Function at 0x140003400
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1400021c0
xor edx, edx
mov ecx, 0x10
div ecx
mov eax, edx
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x28], 0
movzx eax, byte [0x140032168]
test eax, eax
jne 0x140003454
mov ecx, 0xd0af56f
call fcn.140001380
mov rdx, rax
lea rcx, [0x140032140]
call fcn.1400032d0
test eax, eax
jne 0x140003454
xor eax, eax
jmp 0x140003559
mov dword [rsp + 0x24], 0
jmp 0x140003468
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [0x140032158]
cmp dword [rsp + 0x24], eax
jae 0x140003557
mov eax, dword [rsp + 0x24]
mov rcx, qword [0x140032148]
mov eax, dword [rcx + rax*4]
mov rcx, qword [0x140032160]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x24]
mov rcx, qword [0x140032150]
movzx eax, word [rcx + rax*2]
mov rcx, qword [0x140032140]
mov eax, dword [rcx + rax*4]
mov rcx, qword [0x140032160]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 0
jmp 0x1400034d7
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x20
jae 0x140003540
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rax]
movzx ecx, word [0x140030a40]
movzx ecx, cx
xor ecx, 0x5f
cmp eax, ecx
jne 0x14000353e
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax + 2]
cmp eax, 0xc3
jne 0x14000353e
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x28], eax
jne 0x140003534
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rax
jmp 0x140003540
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
jmp 0x1400034cd
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
je 0x140003552
mov eax, 1
jmp 0x140003559
jmp 0x14000345e
xor eax, eax
add rsp, 0x48
ret
Function at 0x140004d30
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140030018]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x44], 0
lea rcx, [rsp + 0x44]
call fcn.140004cf0
cmp dword [rsp + 0x44], 0xffffff
jae 0x140004ee7
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140004ed9
mov dword [rsp + 0x40], 1
jmp 0x140004ee1
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
jmp 0x140004eec
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400069a0
add rsp, 0x58
ret

Function at 0x140004f00
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xe
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
add rsp, 0x38
ret

Function at 0x140004f30
Capabilities:
Get session user name

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140030018]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400069a0
add rsp, 0x38
ret