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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140062860]
xor rax, rsp
mov qword [rbp - 8], rax
xor eax, eax
mov r15d, edx
xorps xmm0, xmm0
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x28]
mov dword [rbp - 0x10], eax
movups xmmword [rbp - 0x28], xmm0
mov r14, rcx
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14002bd77
mov rcx, r14
call fcn.14003138c
mov edi, eax
jmp 0x14002bd79
xor edi, edi
test edi, edi
js 0x14002bec2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, eax
mov r12d, dword [rbp - 0x14]
cmp dword [rbp - 0x24], r15d
je 0x14002bede
mov ecx, 0x2710
mov eax, 0xcccccccd
mul dword [rbp - 0x10]
mov ebx, edx
shr ebx, 3
cmp ebx, 0x7d0
jae 0x14002bdb9
mov ebx, 0x7d0
jmp 0x14002bdbe
cmp ebx, ecx
cmova ebx, ecx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp - 0x28]
mov rcx, r14
add esi, ebx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14002bde5
mov rcx, r14
call fcn.14003138c
mov edi, eax
jmp 0x14002bde7
xor edi, edi
mov dword [rbp - 0x2c], edi
test edi, edi
js 0x14002bec2
cmp dword [rbp - 0x24], r15d
je 0x14002bede
cmp dword [rbp - 0x14], r12d
jbe 0x14002be11
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r12d, dword [rbp - 0x14]
mov r13d, eax
jmp 0x14002be62
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r13d
cmp eax, dword [rbp - 0x10]
jbe 0x14002be62
mov rcx, qword [0x140060048]
lea rdx, [0x140060048]
cmp rcx, rdx
je 0x14002be62
test byte [rcx + 0x1c], 4
je 0x14002be62
lfence
mov rcx, qword [0x140060048]
lea r8, [0x140052530]
mov r9d, dword [rbp - 0x10]
mov edx, 0xb
mov dword [rsp + 0x20], eax
mov rcx, qword [rcx + 0x10]
call fcn.140004298
mov edi, dword [rbp - 0x2c]
and dword [rbp - 0x30], 0
call qword [sym.imp.mpclient.dll_MpClientUtilExportFunctions]
lea rcx, [rbp - 0x30]
mov rax, qword [rax + 0x98]
call qword [0x14003b4b0]
cmp dword [rbp - 0x30], 0
je 0x14002be91
cmp esi, 0x1b7740
jbe 0x14002be91
call qword [sym.imp.KERNEL32.dll_DebugBreak]
mov ecx, 0x2710
cmp dword [rbp - 0x24], r15d
jne 0x14002bd9d
test esi, esi
je 0x14002bede
mov eax, dword [rbp - 0x1c]
test eax, eax
je 0x14002bebb
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14002bee0
mov ebx, 0x800705b4
jmp 0x14002bee0
mov r9d, edi
lea r8, str.HrQueryServiceStatus
lea rdx, str._S_failed__code_0x_x
xor ecx, ecx
call fcn.14002c248
mov ebx, edi
jmp 0x14002bee0
xor ebx, ebx
test edi, edi
jns 0x14002befc
mov r9d, edi
lea r8, str.UtilWaitForServiceOp
lea rdx, str._S_failed__code_0x_x
xor ecx, ecx
call fcn.14002c248
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140034650
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002d87c
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, edx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, edi
mov rcx, rbp
mov ebx, eax
call fcn.14002d800
test al, al
je 0x14002d8e3
lea esi, [rdi + 0x3a98]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp esi, edi
jb 0x14002d8cd
mov ecx, eax
sub ecx, ebx
cmp esi, ecx
ja 0x14002d8fa
sub ebx, eax
cmp ebx, 0x3e8
jb 0x14002d8fa
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, edi
mov rcx, rbp
mov ebx, eax
call fcn.14002d800
test al, al
jne 0x14002d8b1
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov al, 1
jmp 0x14002d8e5

Function at 0x14002ddf8
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edx, edx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14002de15
xor eax, eax
jmp 0x14002de72
call fcn.14002e738
mov ebx, eax
cmp eax, 0x800700b7
je 0x14002de5c
mov rcx, qword [0x140060048]
lea rax, [0x140060048]
cmp rcx, rax
je 0x14002de58
test byte [rcx + 0x1c], 1
je 0x14002de58
mov rcx, qword [rcx + 0x10]
lea r8, [0x140052780]
mov edx, 0x1e
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.14000319c
mov eax, ebx
jmp 0x14002de72
mov rcx, rdi
call fcn.14002df80
test eax, eax
jns 0x14002de6d
lfence
jmp 0x14002de72
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14002dff8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, dword [rdx]
mov rdi, r8
mov rsi, rdx
mov r8d, ebx
mov rdx, rdi
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor edx, edx
mov r9d, eax
test eax, eax
jne 0x14002e06c
call fcn.14002e738
mov ebx, eax
mov rcx, qword [0x140060048]
lea rax, [0x140060048]
cmp rcx, rax
je 0x14002e068
test byte [rcx + 0x1c], 1
je 0x14002e068
mov rcx, qword [rcx + 0x10]
lea r8, [0x140052780]
mov edx, 0x29
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.14000319c
mov eax, ebx
jmp 0x14002e08e
cmp r9d, ebx
ja 0x14002e082
lea eax, [r9 - 1]
cmp word [rdi + rax*2], dx
je 0x14002e089
mov eax, 0x8000ffff
jmp 0x14002e08e
test ebx, ebx
je 0x14002e089
mov word [rdi], dx
mov qword [rsi], r9
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14002e36c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14002e3d5
call fcn.14002e738
mov ebx, eax
lea ecx, [rax + 0x7ff8fffe]
cmp ecx, 1
jbe 0x14002e3d1
mov rcx, qword [0x140060048]
lea rax, [0x140060048]
cmp rcx, rax
je 0x14002e3d1
test byte [rcx + 0x1c], 1
je 0x14002e3d1
mov rcx, qword [rcx + 0x10]
lea r8, [0x140052780]
mov edx, 0x2e
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.14000319c
mov eax, ebx
jmp 0x14002e3d9
mov dword [rbx], eax
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14002e3e4
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov edx, 0x80
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x14002e448
call fcn.14002e738
mov ebx, eax
mov rcx, qword [0x140060048]
lea rax, [0x140060048]
cmp rcx, rax
je 0x14002e444
test byte [rcx + 0x1c], 1
je 0x14002e444
mov rcx, qword [rcx + 0x10]
lea r8, [0x140052780]
mov edx, 0x2f
mov dword [rsp + 0x28], ebx
mov r9, rdi
mov dword [rsp + 0x20], 0x80
call fcn.14002d638
mov eax, ebx
jmp 0x14002e44a
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14002e458
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14002e473
xor eax, eax
jmp 0x14002e4bc
call fcn.14002e738
mov ebx, eax
lea ecx, [rax + 0x7ff8fffe]
cmp ecx, 1
jbe 0x14002e4ba
mov rcx, qword [0x140060048]
lea rax, [0x140060048]
cmp rcx, rax
je 0x14002e4ba
test byte [rcx + 0x1c], 1
je 0x14002e4ba
mov rcx, qword [rcx + 0x10]
lea r8, [0x140052780]
mov edx, 0x30
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.14000319c
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
call 0x14002e458
lea edx, [rax + 0x7ff8fffe]
cmp edx, 1
jbe 0x14002e504
cmp eax, 0x80070005
jne 0x14002e509
mov rcx, rbx
call fcn.14002e3e4
lfence
test eax, eax
js 0x14002e509
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x14002e458
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x14002e4c8
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14002e473
xor eax, eax
jmp 0x14002e4bc
call fcn.14002e738
mov ebx, eax
lea ecx, [rax + 0x7ff8fffe]
cmp ecx, 1
jbe 0x14002e4ba
mov rcx, qword [0x140060048]
lea rax, [0x140060048]
cmp rcx, rax
je 0x14002e4ba
test byte [rcx + 0x1c], 1
je 0x14002e4ba
mov rcx, qword [rcx + 0x10]
lea r8, [0x140052780]
mov edx, 0x30
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.14000319c
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
call 0x14002e458
lea edx, [rax + 0x7ff8fffe]
cmp edx, 1
jbe 0x14002e504
cmp eax, 0x80070005
jne 0x14002e509
mov rcx, rbx
call fcn.14002e3e4
lfence
test eax, eax
js 0x14002e509
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x14002e458
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x14003035c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov eax, edx
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
cmp rax, rdx
je 0x140030385
mov eax, 0x80070057
jmp 0x14003040e
mov r8d, edx
jmp 0x1400303a5
mov eax, dword [rsp + 0x48]
cmp eax, ebx
je 0x14003040c
test eax, eax
je 0x140030405
cmp eax, ebx
ja 0x140030405
sub ebx, eax
mov rcx, rsi
add rdi, rax
mov r8d, ebx
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
and dword [rsp + 0x48], 0
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14003038a
call fcn.14002e738
mov ebx, eax
test ebx, ebx
jns 0x14003040c
lfence
mov rcx, qword [0x140060048]
lea rax, [0x140060048]
cmp rcx, rax
je 0x140030401
test byte [rcx + 0x1c], 1
je 0x140030401
mov rcx, qword [rcx + 0x10]
lea r8, [0x140052a20]
mov edx, 0xf
mov r9d, ebx
call fcn.1400012f0
mov eax, ebx
jmp 0x14003040e
mov ebx, 0x8000ffff
jmp 0x1400303c9
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400308a0
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
sub rsp, 0x20
and dword [rsp + 0x38], 0
mov rdx, r8
mov rbx, rcx
mov byte [rcx], 0
lea r8, [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140030905
call fcn.14002e738
mov ebx, eax
mov rcx, qword [0x140060048]
lea rax, [0x140060048]
cmp rcx, rax
je 0x140030901
test byte [rcx + 0x1c], 1
je 0x140030901
mov rcx, qword [rcx + 0x10]
lea r8, [0x140052a68]
mov edx, 0x1a
mov r9d, ebx
call fcn.1400012f0
mov eax, ebx
jmp 0x140030911
cmp dword [rsp + 0x38], 0
setne al
mov byte [rbx], al
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400314f4
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rsi, rcx
mov dword [rsp + 0x58], edi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140031590
call fcn.14002e738
mov ebx, eax
cmp eax, 0x80070420
jne 0x140031529
lea eax, [rdi + 1]
jmp 0x140031592
mov rax, qword [0x140060048]
lea rcx, [0x140060048]
cmp rax, rcx
je 0x140031577
test byte [rax + 0x1c], 1
je 0x140031577
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.140031304
mov rcx, qword [0x140060048]
lea r8, [0x140052a90]
mov edx, 0x10
mov dword [rsp + 0x20], ebx
mov r9, qword [rax]
mov rcx, qword [rcx + 0x10]
call fcn.14000319c
mov edi, 1
test dil, 1
je 0x14003158c
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14003158c
call fcn.140034674
mov eax, ebx
jmp 0x140031592
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400315a4
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, qword [rsp + 0x98]
xor ebx, ebx
mov rsi, rcx
mov dword [rsp + 0x88], ebx
or ecx, 0xffffffff
cmp edx, ecx
jne 0x1400315d7
test rax, rax
je 0x140031682
and qword [rsp + 0x50], rbx
mov r8d, edx
and qword [rsp + 0x48], rbx
mov r9d, ecx
and qword [rsp + 0x40], rbx
mov edx, ecx
and qword [rsp + 0x38], rbx
mov rcx, rsi
and qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x140031682
call fcn.14002e738
mov edi, eax
mov rcx, qword [0x140060048]
lea rax, [0x140060048]
cmp rcx, rax
je 0x140031667
test byte [rcx + 0x1c], 1
je 0x140031667
mov rdx, rsi
lea rcx, [rsp + 0x90]
call fcn.140031304
mov rcx, qword [0x140060048]
lea r8, [0x140052a90]
mov edx, 0x15
mov dword [rsp + 0x20], edi
mov r9, qword [rax]
mov rcx, qword [rcx + 0x10]
call fcn.14000319c
mov ebx, 1
test bl, 1
je 0x14003167e
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x14003167e
call fcn.140034674
mov eax, edi
jmp 0x140031684
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140031de8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r15, qword [r9]
mov rdi, r9
mov eax, r15d
mov r12, r8
mov dword [rsp + 0x78], eax
mov rbp, rdx
cmp rax, r15
je 0x140031e20
mov ebx, 0x80070057
jmp 0x140031f5d
mov r14, qword [rsp + 0x80]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov r9, r12
xor r8d, r8d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x140031ea8
test r14, r14
je 0x140031e70
mov eax, dword [rsp + 0x78]
cmp rax, qword [rdi]
jbe 0x140031e70
mov qword [rdi], rax
mov ebx, 0x800700ea
jmp 0x140031f5d
mov eax, dword [rsp + 0x78]
mov qword [rdi], rax
lfence
mov r8d, dword [r12]
mov r9, rdi
mov rdx, r15
mov qword [rsp + 0x20], r14
mov rcx, rbp
call fcn.140031d14
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov ebx, 0x80070002
cmp esi, ebx
jne 0x140031ef6
mov rcx, qword [0x140060048]
lea rax, [0x140060048]
cmp rcx, rax
je 0x140031f5d
test byte [rcx + 0x1c], 4
je 0x140031f5d
lfence
mov rcx, qword [0x140060048]
lea r8, [0x140052ab0]
mov edx, 0x15
mov r9, rbp
mov rcx, qword [rcx + 0x10]
call fcn.140008ba4
jmp 0x140031f5d
mov ebx, 0x800700ea
cmp esi, ebx
je 0x140031f42
mov rcx, qword [0x140060048]
lea rax, [0x140060048]
cmp rcx, rax
je 0x140031f3e
test byte [rcx + 0x1c], 1
je 0x140031f3e
lfence
mov rcx, qword [0x140060048]
lea r8, [0x140052ab0]
mov edx, 0x16
mov dword [rsp + 0x20], esi
mov r9, rbp
mov rcx, qword [rcx + 0x10]
call fcn.14000319c
mov ebx, esi
jmp 0x140031f55
mov eax, dword [rsp + 0x78]
cmp qword [rdi], rax
jb 0x140031f52
mov ebx, 0x8000ffff
jmp 0x140031f5d
mov qword [rdi], rax
test ebx, ebx
jns 0x140031e77
lfence
mov eax, ebx
jmp 0x140031e91

Function at 0x14003224c
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rsp + 0x60]
lea rdx, str.DssCounter
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x1400322cc
mov rcx, qword [0x140060048]
lea rax, [0x140060048]
cmp rcx, rax
je 0x1400322b6
test byte [rcx + 0x1c], 1
je 0x1400322b6
mov rcx, qword [rcx + 0x10]
lea r9, str.DssCounter
mov edx, 0x18
mov dword [rsp + 0x20], ebx
lea r8, [0x140052ab0]
call fcn.14000319c
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
test eax, eax
jns 0x1400322cc
lfence
jmp 0x1400322ce
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x1400323a0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
cmp qword [rcx + 0x20], 0
mov r12, rdx
mov rdi, rcx
jne 0x1400323d3
mov eax, 0x80070057
jmp 0x1400325b6
mov rsi, qword [rdi + 0x28]
mov r15, qword [rdi + 0x20]
mov r13, rsi
mov r14, qword [rdi + 0x18]
mov eax, esi
mov qword [rbp + 0x58], rsi
mov dword [rbp + 0x40], esi
cmp rax, rsi
je 0x1400323fa
mov ebx, 0x80070057
jmp 0x14003250a
mov eax, r14d
cmp rax, r14
jne 0x1400323f0
mov rcx, qword [rdi + 0x10]
lea r9, [rbp + 0x40]
mov qword [rsp + 0x38], r8
mov edx, r14d
and qword [rsp + 0x30], 0
mov r8, r15
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140032466
mov ecx, dword [rbp + 0x40]
inc ecx
mov dword [rbp + 0x40], ecx
test r15, r15
je 0x140032459
mov eax, ecx
cmp rax, rsi
mov eax, 0x800700ea
cmova ebx, eax
mov esi, ecx
mov qword [rbp + 0x58], rsi
mov edx, 0x800700ea
jmp 0x1400324df
cmp ebx, 0x80070103
je 0x14003250a
mov edx, 0x800700ea
cmp ebx, edx
je 0x1400324c0
mov rax, qword [0x140060048]
lea rcx, [0x140060048]
cmp rax, rcx
je 0x1400324df
test byte [rax + 0x1c], 1
je 0x1400324df
lfence
mov rcx, qword [0x140060048]
lea r8, [0x140052ab0]
mov edx, 0x1a
mov dword [rsp + 0x20], ebx
mov r9d, r14d
mov rcx, qword [rcx + 0x10]
call fcn.140004298
mov rsi, qword [rbp + 0x58]
jmp 0x14003245f
mov eax, dword [rbp + 0x40]
inc eax
mov ecx, eax
mov dword [rbp + 0x40], eax
cmp rsi, rcx
jb 0x1400324d6
mov ebx, 0x8000ffff
jmp 0x14003250a
mov rsi, rcx
mov qword [rbp + 0x58], rcx
mov ebx, edx
cmp ebx, edx
je 0x14003250a
cmp ebx, 0x80070103
je 0x14003250a
test ebx, ebx
js 0x140032512
lfence
mov r9, r15
lea r8, [rbp + 0x58]
mov rdx, r13
mov rcx, r14
call fcn.1400322d4
mov rsi, qword [rbp + 0x58]
mov ebx, eax
test ebx, ebx
jns 0x1400325a8
cmp ebx, 0x80070103
je 0x1400325a1
xor eax, eax
mov ecx, 0x800700ea
cmp ebx, ecx
cmovne eax, ebx
cmp eax, 0x8007139f
jne 0x14003253e
inc qword [rdi + 0x18]
mov r8, qword [rbp + 0x50]
jmp 0x1400323d3
test eax, eax
js 0x14003259c
and qword [rbp - 0x10], 0
lea rcx, [rbp - 0x10]
mov rdx, rsi
call fcn.140025dd0
mov ebx, eax
test eax, eax
jns 0x140032569
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140032589
call fcn.140034674
jmp 0x140032589
mov rcx, qword [rdi + 0x20]
mov rax, qword [rbp - 0x10]
mov qword [rdi + 0x20], rax
mov qword [rbp - 0x10], rcx
mov qword [rdi + 0x28], rsi
test rcx, rcx
je 0x140032587
call fcn.140034674
xor ebx, ebx
mov r8, qword [rbp + 0x50]
test ebx, ebx
jns 0x1400323d3
lfence
mov eax, ebx
jmp 0x1400325b6
lfence
jmp 0x1400325b6
and qword [r12], 0
jmp 0x1400325b4
mov rax, qword [rdi + 0x20]
inc qword [rdi + 0x18]
mov qword [r12], rax
xor eax, eax
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140032618
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], r8
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rdi, qword [rsp + 0xa8]
mov rbp, rdx
mov rdx, qword [r9]
mov r14, r9
mov eax, edx
mov qword [rsp + 0x40], rdx
mov r12, qword [rdi]
mov dword [r11 + 0x20], eax
cmp rax, rdx
je 0x140032661
mov ebx, 0x80070057
jmp 0x140032803
mov eax, r12d
mov dword [rsp + 0xa8], eax
cmp rax, r12
jne 0x140032657
mov eax, ebp
cmp rax, rbp
jne 0x140032657
mov r13, qword [rsp + 0xb0]
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x98]
mov qword [rsp + 0x30], r13
mov edx, ebp
mov qword [rsp + 0x28], r8
mov r8, qword [rsp + 0xa0]
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
movzx ebx, ax
mov edx, 0x80070103
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140032706
mov ecx, dword [rsp + 0x98]
lea esi, [rdx - 0x19]
inc ecx
cmp qword [rsp + 0xa0], 0
je 0x1400326ea
mov eax, ecx
cmp rax, qword [r14]
cmova ebx, esi
test r13, r13
je 0x1400326fc
mov eax, dword [rsp + 0xa8]
cmp rax, qword [rdi]
cmova ebx, esi
mov eax, ecx
mov qword [r14], rax
jmp 0x14003279a
cmp ebx, edx
jne 0x140032727
mov ebx, edx
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov esi, 0x800700ea
cmp ebx, esi
je 0x140032774
mov rax, qword [0x140060048]
lea rcx, [0x140060048]
cmp rax, rcx
je 0x1400327a4
test byte [rax + 0x1c], 1
je 0x1400327a4
lfence
mov rcx, qword [0x140060048]
lea r8, [0x140052ab0]
mov edx, 0x1c
mov dword [rsp + 0x20], ebx
mov r9d, ebp
mov rcx, qword [rcx + 0x10]
call fcn.140004298
lea edx, [rsi + 0x19]
jmp 0x1400327a4
mov ecx, dword [rsp + 0x98]
inc ecx
cmp qword [r14], rcx
jb 0x140032795
mov eax, dword [rsp + 0xa8]
cmp qword [rdi], rax
jb 0x140032795
mov ebx, 0x8000ffff
jmp 0x140032803
mov qword [r14], rcx
mov ebx, esi
mov eax, dword [rsp + 0xa8]
mov qword [rdi], rax
cmp ebx, esi
je 0x14003270c
cmp ebx, edx
je 0x14003270c
test ebx, ebx
js 0x140032803
lfence
mov r9, qword [rsp + 0xa0]
mov r8, r14
mov rdx, qword [rsp + 0x40]
mov rcx, rbp
call fcn.1400322d4
test eax, eax
js 0x140032801
lfence
mov rax, qword [rsp + 0x90]
mov r9, rdi
mov rcx, qword [rsp + 0xa0]
mov rdx, r12
mov qword [rsp + 0x20], r13
mov r8d, dword [rax]
call fcn.140031d14
test eax, eax
jns 0x14003280b
mov ebx, eax
lfence
jmp 0x14003270c
xor eax, eax
jmp 0x14003270e
Function at 0x1400338c0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movsxd r8, dword [0x14000003c]
lea rdi, [0x140000000]
add r8, rdi
mov rsi, rdx
mov ebp, ecx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400339a8
mov r9d, dword [r8 + 0xf0]
test r9d, r9d
je 0x1400339a8
movzx eax, word [r8 + 0x14]
lea rcx, [r8 + 0x18]
mov r10d, dword [r9 + rdi + 0xc]
add rcx, rax
movzx r11d, word [r8 + 6]
xor r9d, r9d
test r11d, r11d
je 0x140033947
mov r8d, dword [rcx + 0xc]
cmp r10d, r8d
jb 0x14003393b
mov edx, dword [rcx + 8]
lea eax, [rdx + r8]
cmp r10d, eax
jb 0x140033980
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140033926
mov eax, dword [rsp + 0x40]
xor ebx, ebx
mov edx, dword [rsp + 0x40]
test rbx, rbx
je 0x1400339a8
cmp dword [0x140063340], 0
jne 0x140033989
mov dword [0x140063340], 1
test eax, eax
js 0x140033974
mov ecx, 0x19
int 0x29
mov rcx, rbx
mov edi, edx
call fcn.140033828
jmp 0x14003398b
mov eax, dword [rcx + 0x24]
lea rbx, [rdi + r8]
jmp 0x140033951
mov edi, edx
mov r9, rsi
mov r8d, ebp
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400339ae
lea ecx, [rax + 0x19]
int 0x29
jmp 0x1400339ae
mov dword [rsi], 4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x005c8070]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x005c8080]
mov dword [rax], 1
mov rax, qword [0x005c8090]
mov dword [rax], 1
mov rax, qword [0x005c8060]
mov dword [rax], 1
mov rax, qword [0x005c7ef0]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x005c8050]
mov dword [0x005d600c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x005c7fc0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x005c7ea0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067