joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140040300
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x80
mov rax, qword [0x1400e8180]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x30], rsp
mov rbx, rcx
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edi, eax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140040541
cmp qword [rbx + 0x18], 8
jb 0x140040362
mov rbx, qword [rbx]
mov r8d, 0x2c
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140040538
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1400403ba
lea rdx, [0x140040541]
mov rcx, qword [rsp + 0x30]
call fcn.140095098
mov eax, dword [rsp + 0x54]
cmp eax, 1
jne 0x1400403d4
lea rdx, [0x140040541]
mov rcx, qword [rsp + 0x30]
call fcn.140095098
mov r14d, 0x2710
nop word [rax + rax]
cmp eax, 3
jne 0x140040489
mov eax, 0xcccccccd
mul dword [rsp + 0x68]
shr edx, 3
cmp edx, 0x3e8
jae 0x140040404
mov edx, 0x3e8
jmp 0x14004040b
cmp edx, r14d
cmova edx, r14d
mov ecx, edx
call qword [sym.imp.KERNEL32.DLL_Sleep]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140040448
lea rdx, [0x140040541]
mov rcx, qword [rsp + 0x30]
call fcn.140095098
cmp dword [rsp + 0x54], 1
jne 0x140040460
lea rdx, [0x140040541]
mov rcx, qword [rsp + 0x30]
call fcn.140095098
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, edi
cmp eax, 0x7530
jbe 0x140040480
lea rdx, [0x140040541]
mov rcx, qword [rsp + 0x30]
call fcn.140095098
mov eax, dword [rsp + 0x54]
jmp 0x1400403e0
mov rcx, rbx
call fcn.1400400b0
lea r8, [rsp + 0x50]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1400404c0
lea rdx, [0x140040541]
mov rcx, qword [rsp + 0x30]
call fcn.140095098
nop dword [rax]
cmp dword [rsp + 0x54], 1
je 0x14004052f
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.KERNEL32.DLL_Sleep]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140040506
lea rdx, [0x140040541]
mov rcx, qword [rsp + 0x30]
call fcn.140095098
cmp dword [rsp + 0x54], 1
je 0x14004052f
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, edi
cmp eax, 0x7530
jbe 0x14004052d
lea rdx, [0x140040541]
mov rcx, qword [rsp + 0x30]
call fcn.140095098
jmp 0x1400404c0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140061220
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140059ef0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x14005a094
cmp r9, 4
jb 0x140059f3a
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x140059f20
xor r11d, r11d
test r9, r9
je 0x14005a094
cmp r9, 8
jb 0x14005a06e
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x140059f6c
cmp rdx, r8
jae 0x14005a06e
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x140059f81
cmp rdx, r10
jae 0x14005a06e
mov rdx, r10
mov qword [rsp + 0x10], rbx
sub rdx, r8
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x14005a02b
mov rdi, r9
mov qword [rsp + 0x18], rsi
and edi, 0x3f
mov rsi, r9
sub rsi, rdi
mov rbx, rcx
lea rax, [r8 + 0x10]
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
pxor xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
pxor xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rsi
jb 0x140059fc0
mov rsi, qword [rsp + 0x18]
cmp rdi, 8
jb 0x14005a060
mov rbx, r9
and rbx, 0xfffffffffffffff8
mov rdi, rcx
lea rax, [r11 + r8]
sub rdi, r8
nop dword [rax]
movq xmm1, qword [rax + rdx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
pxor xmm1, xmm0
movq qword [rax + rdi - 8], xmm1
cmp r11, rbx
jb 0x14005a040
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x14005a094
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
nop dword [rax + rax]
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x14005a080
add rsp, 8
ret

Function at 0x1400621c4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x14006220e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006220e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006220e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006220e
cmp dword [rcx + 0x84], 0xe
jbe 0x14006220e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140062210
xor al, al
add rsp, 0x28
ret
Function at 0x14009aae0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14009ab17
call fcn.14009ad38
mov dword [rax], 0x16
call fcn.1400954b0
xor eax, eax
jmp 0x14009aba9
mov rdx, r9
mov rcx, r8
call fcn.14009aa7c
mov rbx, rax
test rax, rax
je 0x14009aba6
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x28], rax
lea r8, [0x14009a9b0]
mov eax, dword [rsp + 0x60]
mov rdx, rsi
mov r9, rbx
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14009ab93
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.14009acc8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14009ab7a
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14009ab89
call qword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov rcx, rbx
call fcn.1400a9d50
jmp 0x14009aba6
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14009aba3
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14009dd28
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14009db40

Function at 0x1400acda0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140107050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x1400ace05
test rax, rax
jne 0x1400acdf3
lea r9, [0x1400cdd90]
lea r8, [0x1400cdd88]
lea rdx, [0x1400cdd90]
lea ecx, [rax + 0xa]
call fcn.1400ac88c
test rax, rax
je 0x1400ace05
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.1400b9d50
jmp 0x1400ace1f
xor edx, edx
mov rcx, rbp
call fcn.1400ad148
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400afafc
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 0x1400afb2c
xor eax, eax
jmp 0x1400afbef
mov rbp, rbx
cmp word [rax], si
je 0x1400afb51
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400afb38
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400afb34
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.1400ad768
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x1400afb92
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
jmp 0x1400afb25
call fcn.1400a9db0
mov rdi, rax
test rax, rax
jne 0x1400afba8
xor ecx, ecx
call fcn.1400a9d50
jmp 0x1400afb87
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.1400ad768
test eax, eax
jne 0x1400afbd9
mov rcx, rdi
call fcn.1400a9d50
jmp 0x1400afbe3
xor ecx, ecx
call fcn.1400a9d50
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 0x1400afc0c
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 0x1400afc93
mov rsi, rbx
cmp word [rax], bp
je 0x1400afc52
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400afc3c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400afc38
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400a9db0
mov rdi, rax
test rax, rax
je 0x1400afc80
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140088d30
mov rbp, rdi
xor ecx, ecx
call fcn.1400a9d50
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 0x1400b33c8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x1400b343b
cmp word [rcx], si
je 0x1400b343b
lea rdx, [0x1400d2818]
call fcn.1400b821c
test eax, eax
je 0x1400b343b
lea rdx, [0x1400d2830]
mov rcx, rbx
call fcn.1400b821c
test eax, eax
jne 0x1400b3431
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x1400b3458
mov eax, dword [rsp + 0x30]
jmp 0x1400b346a
mov rcx, rbx
call fcn.1400a9554
jmp 0x1400b346a
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
jne 0x1400b345c
xor eax, eax
jmp 0x1400b346a
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x1400b346a
call qword [sym.imp.KERNEL32.DLL_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400b347c
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.1400a9b10
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x1400b351f
cmp edi, dword [rsp + 0x30]
je 0x1400b3518
test ebp, ebp
je 0x1400b3518
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x1400b34f4
sub dx, 0x61
cmp dx, 0x19
ja 0x1400b3500
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x1400b34e1
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x1400b3504
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x1400b3521
mov eax, 1
jmp 0x1400b3521
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b99b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400b99d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400b99d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x100008da0
Capabilities:
Extract resource via kernel32 functions

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
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetSysColor]
movzx ecx, ax
shr cx, 8
movzx ebp, cl
mov ecx, eax
movzx eax, al
shr ecx, 0x10
shl ebp, 8
shl eax, 0x10
movzx edx, cl
mov ecx, 5
or ebp, edx
or ebp, eax
call qword [sym.imp.USER32.dll_GetSysColor]
movzx ecx, ax
shr cx, 8
movzx r12d, cl
mov ecx, eax
movzx eax, al
shr ecx, 0x10
shl r12d, 8
shl eax, 0x10
movzx edx, cl
mov rcx, qword [0x100013170]
or r12d, edx
mov edx, 0x6e
lea r8d, [rdx - 0x6c]
or r12d, eax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x100008e36
xor eax, eax
jmp 0x100008f0c
mov rcx, qword [0x100013170]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x100008e2f
mov rcx, qword [0x100013170]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x100008e2f
mov ecx, eax
mov ebx, eax
call qword [sym.imp.msvcrt.dll_malloc]
mov rsi, rax
test rax, rax
je 0x100008e2f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r8, rbx
mov rcx, rsi
mov rdx, rax
call sub.msvcrt.dll_memcpy
mov r11d, dword [rsi]
mov eax, 0x10
add r11, rsi
lea edx, [rax - 0xf]
sub eax, edx
cmp dword [r11], 0xff
jne 0x100008ea9
mov dword [r11], r12d
jmp 0x100008eb5
cmp dword [r11], 0xff00ff
jne 0x100008eb5
mov dword [r11], ebp
add r11, 4
test eax, eax
jg 0x100008e99
mov cl, byte [rsi + 0xe]
shl rdx, cl
xor ecx, ecx
lea rbx, [rsi + rdx*4 + 0x28]
call qword [sym.imp.USER32.dll_GetDC]
and dword [rsp + 0x28], 0
mov rcx, rax
mov r9, rbx
mov r8d, 4
mov rdx, rsi
mov rdi, rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.GDI32.dll_CreateDIBitmap]
mov rdx, rdi
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rax, rbx
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 0x100009330
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push r12
push r13
sub rsp, 0x150
mov rax, qword [0x100012110]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, qword [rsp + 0x1a0]
mov rbp, rcx
mov r12d, edx
lea rcx, [rsp + 0x42]
xor r13d, r13d
xor edx, edx
mov r8d, 0xfe
mov rsi, r9
mov word [rsp + 0x40], r13w
call sub.msvcrt.dll_memset
cmp qword [0x100033b60], r13
je 0x100009415
mov rcx, qword [0x100033b60]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x30], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r13d
jne 0x100009415
lea r8, [rsp + 0x40]
mov edx, 0x80
mov rcx, rbx
sub r8, rbx
mov r9d, r13d
lea rax, [rdx + 0x7fffff7e]
cmp rax, r13
je 0x1000093f8
movzx eax, word [r8 + rcx]
cmp ax, r13w
je 0x1000093f8
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1000093d4
cmp rdx, r13
jne 0x100009407
sub rcx, 2
mov r9d, 0x8007007a
cmp r9d, r13d
mov word [rcx], r13w
jge 0x100009415
or eax, 0xffffffff
jmp 0x10000944f
or r9, 0xffffffffffffffff
mov r8d, 0x14d
mov edx, r12d
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
jne 0x10000944f
xor r9d, r9d
mov r8d, 0x14e
mov edx, r12d
mov rcx, rbp
mov qword [rsp + 0x20], r13
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.10000f2c0
add rsp, 0x150
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret

Function at 0x100009474
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x140
mov rax, qword [0x100012110]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbp, qword [0x100033b60]
mov rdi, rcx
mov esi, edx
lea rcx, [rsp + 0x32]
xor ebx, ebx
xor edx, edx
mov r8d, 0xfe
mov r12, r9
mov word [rsp + 0x30], bx
call sub.msvcrt.dll_memset
cmp rbp, rbx
jne 0x1000094c5
xor eax, eax
jmp 0x100009534
xor r9d, r9d
mov r8d, 0x147
mov edx, esi
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
je 0x1000094c1
movsxd r9, eax
lea rax, [rsp + 0x30]
mov r8d, 0x148
mov edx, esi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
je 0x1000094c1
lea rax, [rsp + 0x30]
mov r9d, 1
xor r8d, r8d
mov rdx, r12
mov rcx, rbp
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
setge bl
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.10000f2c0
add rsp, 0x140
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x10000bd88
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x6c0
mov rax, qword [0x100012110]
xor rax, rsp
mov qword [rsp + 0x6b0], rax
mov ebp, 0x104
lea rcx, [r11 - 0x228]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor esi, esi
cmp eax, esi
jne 0x10000bdd2
xor eax, eax
jmp 0x10000bf64
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, esi
je 0x10000be0d
cmp eax, 0x103
jge 0x10000be0d
movsxd rcx, eax
mov eax, 0x5c
cmp word [rsp + rcx*2 + 0x49e], ax
je 0x10000be0d
mov word [rsp + rcx*2 + 0x4a0], ax
mov word [rsp + rcx*2 + 0x4a2], si
lea rdi, [rsp + 0x4a0]
lea rax, [rsp + 0x290]
mov rdx, rbp
lea rcx, [rsp + 0x290]
mov r8d, esi
sub rdi, rax
lea rax, [rdx + 0x7ffffefa]
cmp rax, rsi
je 0x10000be50
movzx eax, word [rdi + rcx]
cmp ax, si
je 0x10000be50
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x10000be2e
cmp rdx, rsi
jne 0x10000be5f
sub rcx, 2
mov r8d, 0x8007007a
cmp r8d, esi
mov word [rcx], si
jl 0x10000bdcb
lea r8, [0x100001ac0]
lea rcx, [rsp + 0x290]
mov rdx, rbp
call fcn.100009ed8
cmp eax, esi
jl 0x10000bdcb
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x10000bf5c
test byte [rsp + 0x40], 0x10
jne 0x10000bf3d
mov rdx, rbp
lea rcx, [rsp + 0x290]
mov r8d, esi
lea rax, [rdx + 0x7ffffefa]
cmp rax, rsi
je 0x10000bee5
movzx eax, word [rdi + rcx]
cmp ax, si
je 0x10000bee5
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x10000bec3
cmp rdx, rsi
jne 0x10000bef4
sub rcx, 2
mov r8d, 0x8007007a
cmp r8d, esi
mov word [rcx], si
jl 0x10000bdcb
lea r8, [rsp + 0x6c]
lea rcx, [rsp + 0x290]
mov rdx, rbp
call fcn.100009ed8
cmp eax, esi
jl 0x10000bdcb
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x290]
call fcn.10000b748
cmp eax, esi
je 0x10000bf3d
lea rcx, [rsp + 0x20]
call fcn.10000ba7c
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, esi
jne 0x10000beaa
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x100033ba4]
inc eax
mov rcx, qword [rsp + 0x6b0]
xor rcx, rsp
call fcn.10000f2c0
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x10000bf94
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r13
sub rsp, 0x40
and qword [rax - 0x28], 0
and qword [rax + 0x20], 0
xor ebx, ebx
mov rdi, r8
mov esi, edx
mov rbp, rcx
mov dword [rax + 0x18], 0x14
test r8, r8
jne 0x10000bfce
xor eax, eax
jmp 0x10000c090
xor eax, eax
lea rcx, [rsp + 0x30]
xor edx, edx
mov qword [r8], rax
mov qword [r8 + 8], rax
lea r13d, [rax + 1]
mov dword [r8 + 0x10], eax
lea r8, [0x100001ad0]
mov r9d, r13d
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x10000c066
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10000c066
mov rcx, qword [rsp + 0x78]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x10000c066
mov rcx, qword [rsp + 0x78]
and dword [rsp + 0x20], ebx
lea r9, [rsp + 0x70]
lea edx, [r13 + 1]
mov r8, rdi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x10000c066
cmp dword [rsp + 0x70], 0x14
cmove ebx, r13d
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x10000c07c
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
and qword [rsp + 0x78], 0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x10000c08e
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r13
pop rdi
pop rsi
ret
Function at 0x10000f2c0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100012110]
jne 0x10000f2db
rol rcx, 0x10
test cx, 0xffff
jne 0x10000f2d7
ret 0
ror rcx, 0x10
jmp 0x10000f5fc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100012600]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1000126f8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x10000f681
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x100012600]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x10000f6a3
mov rax, qword [rsp + 0x88]
mov qword [0x1000126f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x100012698], rax
mov rax, qword [0x1000126f8]
mov qword [0x100012570], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100012680], rax
mov dword [0x100012560], 0xc0000409
mov dword [0x100012564], 1
mov rax, qword [0x100012110]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100012118]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001760]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x10000f498
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10000f4e5
cmp rcx, 0xffffffffffffffff
je 0x10000f4e5
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000f4dd
cmp dword [rcx + 0x3c], edx
jl 0x10000f4dd
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000f4dd
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 0x10000f4e5
mov rax, rdx
add rsp, 0x18
ret