joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400af2fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialogEx.virtual_720
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov qword [rcx + 0xf0], rdx
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
cmp rdx, 0x10000
jae 0x1400af33b
cmp dword [rcx + 0xe8], 0
jne 0x1400af33b
movzx eax, di
mov dword [rcx + 0xe8], eax
call fcn.1400aee68
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.1400af6c0
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400af398
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, r8
mov rbx, rdx
mov r15, rcx
xor edi, edi
call fcn.1400aee68
lea r8d, [rdi + 5]
mov rdx, rbx
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x1400af3f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov r9, rbp
mov r8, r14
mov rdx, rdi
mov rcx, r15
call fcn.1400af42c
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400b16e8
Capabilities:
Connect to http server

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
movzx ebp, r9w
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov rax, qword [rsp + 0xa0]
mov qword [r11 - 0x48], rax
call fcn.1400b18b4
nop
lea rax, vtable.CHttpConnection.0
mov qword [rdi], rax
call fcn.14008ac10
mov rcx, rax
test rax, rax
je 0x1400b181e
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400dd35a.0]
add rax, 0x18
mov qword [rdi + 0x30], rax
test rbx, rbx
jne 0x1400b175f
xor eax, eax
jmp 0x1400b1767
mov rcx, rbx
call fcn.14023bc58
mov r8d, eax
mov rdx, rbx
lea rcx, [rdi + 0x30]
call fcn.1400029fc
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x90]
movzx r8d, bp
mov rdx, rbx
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.WININET.dll_InternetConnectW]
mov rsi, rax
mov qword [rdi + 8], rax
test rax, rax
je 0x1400b1812
mov rbx, qword [rdi + 0x18]
lea rcx, [0x140366808]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, rsi
lea rcx, [0x1403667c0]
call fcn.14014abc8
mov qword [rax], rbx
mov rax, qword [0x1403667f8]
lea rcx, [0x1403667f8]
mov rax, qword [rax + 0x28]
call qword [case.0x1400dd35a.0]
nop
mov rax, rdi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
xor edx, edx
mov rcx, qword [rdi + 0x10]
call fcn.1400b2268
nop
mov ecx, 0x80004005
call fcn.140002cbc
int3

Function at 0x1400b1aa8
Capabilities:
Create http request

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and dword [rcx + 0x20], 0
lea rax, vtable.CInternetSession.0
and qword [rcx + 0x18], 0
mov edi, r9d
mov qword [rcx], rax
mov r10, rdx
mov qword [rcx + 8], r8
mov rbx, rcx
test rdx, rdx
jne 0x1400b1ae0
call fcn.1400aee68
mov r10, qword [rax + 0x20]
mov eax, dword [rsp + 0x70]
mov edx, edi
mov r9, qword [rsp + 0x68]
mov rcx, r10
mov r8, qword [rsp + 0x60]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbx + 0x10], rax
mov rdi, rax
test rax, rax
je 0x1400b1b4e
lea rcx, [0x140366808]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, rdi
lea rcx, [0x1403667c0]
call fcn.14014abc8
lea rcx, [0x1403667f8]
mov qword [rax], rbx
mov rax, qword [0x1403667f8]
mov rax, qword [rax + 0x28]
call qword [case.0x1400dd35a.0]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx + 8]
xor edx, edx
call fcn.1400b2268
int3

Function at 0x1400b9368
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rdx]
cmp dword [rcx - 0x10], 0
je 0x1400b939a
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400b939a
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.14015a0b0
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x1400b93ac
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400b93d2
mov r8, rdx
mov rdx, qword [rbx]
call fcn.1400a1984
jmp 0x1400b943d
cmp byte [0x1403669e8], 0
jne 0x1400b9416
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b9406
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1403669e0], rax
jmp 0x1400b940d
mov rax, qword [0x1403669e0]
mov byte [0x1403669e8], 1
jmp 0x1400b941d
mov rax, qword [0x1403669e0]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x1400b9437
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [case.0x1400dd35a.0]
jmp 0x1400b943d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400cf50c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r15, rcx
test r8, r8
jne 0x1400cf53d
call fcn.1400aee68
mov rdi, qword [rax + 0x18]
lea r8, [0x140289f30]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x1400cf5a6
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x1400cf5a6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x1400cf599
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r14
mov rcx, r15
mov r8d, eax
call fcn.1400cf5c4
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
jmp 0x1400cf5a8
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14014dd20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, qword [rdx + 0x10]
mov rdi, rdx
mov rbp, rcx
jne 0x14014dd97
mov rcx, qword [rdi + 8]
mov r8d, 5
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14014dd67
call fcn.1400ad874
mov rcx, qword [rdi + 8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
jne 0x14014dd81
call fcn.1400ad874
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
jne 0x14014dd97
call fcn.1400ad874
call fcn.1400aee68
cmp qword [rax + 0x68], 0
je 0x14014ddb1
mov rdx, rbx
mov rcx, rbp
call fcn.14014d1e4
mov rbx, rax
mov edx, esi
mov rcx, rbx
call fcn.14014e00c
mov rcx, qword [rbp + 0xf8]
mov rsi, rax
test rcx, rcx
je 0x14014ddd8
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xf8], 0
test rsi, rsi
je 0x14014dde7
mov rbx, rsi
mov qword [rbp + 0xf8], rsi
or dword [rdi + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rdi + 0x10], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140191844
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x140191980
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
test eax, eax
jne 0x1401919c2
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret
Function at 0x140191dfc
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x140191ece
test rbx, rbx
je 0x140191ece
test r9, r9
je 0x140191ece
and qword [r8], 0
xor r8d, r8d
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rax - 0x10], r9
lea r9, [rax + 0x10]
and qword [rax - 0x18], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140191eca
cmp dword [rsp + 0x48], 3
jne 0x140191eca
test eax, eax
jne 0x140191eca
cmp dword [rdi], eax
je 0x140191eca
mov ecx, dword [rdi]
call fcn.14008a740
mov qword [rbx], rax
lea r9, [rsp + 0x48]
mov rcx, qword [rbp + 8]
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140191ebe
cmp dword [rsp + 0x48], 3
jne 0x140191ebe
test eax, eax
jne 0x140191ebe
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx]
call fcn.14008a738
and qword [rbx], 0
xor eax, eax
jmp 0x140191ea9
call fcn.14008b82c
int3

Function at 0x1401921a4
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1401921b5
xor eax, eax
jmp 0x1401921e3
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1401921ec
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1401921fd
xor eax, eax
jmp 0x140192221
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov r9d, 3
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1401f65c0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.140243d58
test eax, eax
jne 0x1401f6624
mov eax, dword [rsp + 0x30]
lea r8, str._s_s_X.tmp
mov dword [rsp + 0x28], eax
mov r9, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.1400a1700
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401f6636
jmp 0x1401f65e4
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14024530c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140245070
Function at 0x14024fe74
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14024fe51
call fcn.140230c94
mov dword [rax], 0x16
call fcn.140230b44
or eax, 0xffffffff
jmp 0x14024fe6e
sub dword [rcx + 0x10], 1
jns 0x14024fe60
add rsp, 0x28
jmp fcn.140250f48
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14024fe30

Function at 0x140250f48
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140250c04
call fcn.140230c94
mov dword [rax], 0x16
call fcn.140230b44
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140250bec
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140250bec
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x140250c36
lock or dword [rax + 0x14], 0x10
jmp 0x140250bec
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x140250c53
mov rcx, qword [rbp + 0x10]
call fcn.1402578b4
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1402429c0
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14025063c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x140250caa
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140250bec
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x140250d16
mov rcx, qword [rbp + 0x10]
call fcn.1402429c0
cmp eax, 0xffffffff
je 0x140250cfd
mov rcx, qword [rbp + 0x10]
call fcn.1402429c0
cmp eax, 0xfffffffe
je 0x140250cfd
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1402429c0
movsxd rdi, eax
lea rsi, [0x14036a500]
mov rcx, rbx
sar rdi, 6
call fcn.1402429c0
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x140250d04
lea rax, [0x14035bd30]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140250d16
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x140250d4c
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140250d48
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140250d48
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x140250bef
jmp 0x140250bbc
Function at 0x140250f50
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140250db6
call fcn.140230c94
mov dword [rax], 0x16
call fcn.140230b44
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140250d98
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140250d98
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x140250de8
lock or dword [rax + 0x14], 0x10
jmp 0x140250d98
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x140250e05
mov rcx, qword [rbp + 0x20]
call fcn.1402578b4
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x140250e1a
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x140250e20
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.1402429c0
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14025063c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x140250e73
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x140250d98
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x140250edf
mov rcx, qword [rbp + 0x20]
call fcn.1402429c0
cmp eax, 0xffffffff
je 0x140250ec6
mov rcx, qword [rbp + 0x20]
call fcn.1402429c0
cmp eax, 0xfffffffe
je 0x140250ec6
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.1402429c0
movsxd rdi, eax
lea r15, [0x14036a500]
mov rcx, rbx
sar rdi, 6
call fcn.1402429c0
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x140250ecd
lea rax, [0x14035bd30]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140250edf
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x140250f15
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140250f11
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140250f11
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x140250f33
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x140250f3e
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x140250d9d
jmp 0x140250d64
Function at 0x1400020d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov r11, rsp
push r14
sub rsp, 0xd0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x140133088]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r14, rcx
xor edi, edi
mov dword [rsp + 0x30], edi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x1400fe370]
movdqu xmmword [rsp + 0x70], xmm1
mov word [rsp + 0x60], di
lea r8d, [rdi + 0xc]
lea rdx, [0x1400f54e0]
lea rcx, [r11 - 0x78]
call fcn.1400025d0
nop
lea rcx, [rsp + 0xa0]
call fcn.140020150
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1400fe370]
movdqu xmmword [rsp + 0x50], xmm1
mov word [rsp + 0x40], di
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xa0]
call fcn.140020da0
lea edx, [rdi + 0x10]
lea rcx, [rsp + 0x40]
call fcn.14001e5c0
nop
lea rcx, [rsp + 0xa0]
call fcn.140002550
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x80]
call fcn.14001eb30
nop
lea rcx, [rsp + 0x40]
call fcn.140002550
nop
lea rcx, [rsp + 0x60]
call fcn.140002550
nop
call fcn.140017484
mov rbx, rax
cmp qword [rax], rdi
jne 0x1400021e3
call fcn.140024650
mov rcx, rax
call fcn.140024810
test al, al
je 0x1400021e3
mov qword [rbx], rdi
lea rsi, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
jb 0x140002203
mov rsi, qword [rsp + 0x80]
test rsi, rsi
je 0x140002252
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140002252
test al, 0x10
jne 0x140002252
call fcn.140024650
mov rdx, rsi
mov rcx, rax
call fcn.140024880
test al, al
jne 0x140002246
call fcn.140024650
mov rbx, rax
mov rcx, rax
call fcn.140024ef0
mov rdx, rsi
mov rcx, rbx
call fcn.140024b90
jmp 0x140002252
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
mov qword [r14], rdi
test rdi, rdi
setne bl
lea rcx, [rsp + 0x80]
call fcn.140002550
nop
movzx eax, bl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400a6810
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140004080
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xd0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x140133088]
xor rax, rsp
mov qword [rsp + 0xc8], rax
movzx ebx, dl
mov rdi, rcx
mov qword [r11 - 0x38], rcx
lea rcx, [r11 - 0x30]
call fcn.140020150
nop
mov r8d, 4
lea rdx, str.__am
mov rcx, rdi
call fcn.140009140
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rsp + 0x30]
call fcn.1400a8b60
mov dword [rsp + 0x30], 0x70
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x34], 0x540
lea rcx, str.runas
lea rax, str.open
test bl, bl
cmovne rax, rcx
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 8
cmovae rax, qword [rsp + 0xa8]
mov qword [rsp + 0x48], rax
lea rax, [0x1400f4030]
mov qword [rsp + 0x58], rax
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x14000414d
mov rax, qword [rdi]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x140004183
lea rcx, [rsp + 0xa8]
call fcn.140002550
nop
mov rcx, rdi
call fcn.140002550
xor al, al
jmp 0x1400041af
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x140004197
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0xa8]
call fcn.140002550
nop
mov rcx, rdi
call fcn.140002550
mov al, 1
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1400a6810
mov rbx, qword [rsp + 0xf0]
add rsp, 0xd0
pop rdi
ret
Function at 0x140004670
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x40
mov r15, r8
mov rdi, rdx
mov r14, rcx
test rcx, rcx
jne 0x140004694
xor al, al
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x38], rbp
mov ebp, 0x100
mov ecx, ebp
mov qword [rsp + 0x30], rsi
mov esi, 0x80
call fcn.1400ab6bc
cmp qword [rdi + 0x18], 8
mov rbx, rax
mov dword [rsp + 0x60], 0xfe
mov rdx, rdi
mov dword [rsp + 0x78], 1
jb 0x1400046d4
mov rdx, qword [rdi]
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x78]
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x140004750
nop dword [rax + rax]
mov edx, ebp
mov rcx, rbx
add rdx, rdx
mov esi, ebp
call fcn.1400ab624
cmp qword [rdi + 0x18], 8
lea ebp, [rsi + rsi]
mov rbx, rax
mov rdx, rdi
lea eax, [rbp - 2]
mov dword [rsp + 0x60], eax
jb 0x140004729
mov rdx, qword [rdi]
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x78]
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x140004700
mov rbp, qword [rsp + 0x38]
xor dil, dil
test eax, eax
jne 0x14000478d
mov eax, dword [rsp + 0x60]
xor edx, edx
cmp eax, esi
jb 0x140004769
lea eax, [rsi - 1]
mov word [rbx + rax*2], dx
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x140004774
mov rdx, rbx
mov rcx, r15
call fcn.1400025d0
mov dil, 1
mov rcx, rbx
call fcn.1400ab378
mov rsi, qword [rsp + 0x30]
movzx eax, dil
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret