joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140160950
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1401c3ba0
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x140160a15
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1401d4ab8
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1401609f6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1401609e8
test rsi, rsi
je 0x1401d4ab8
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1401609a8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140160a44
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140160a60
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x140160b1d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1401d4abe
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140160afe
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140160af0
test rsi, rsi
je 0x1401d4abe
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140160ab0
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140177820
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x14020c410]
mov rsi, rcx
test rbx, rbx
je 0x1401778a0
mov rax, qword [0x1401ec490]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x140177890
mov rdx, qword [0x14020c648]
test rdx, rdx
je 0x140177998
mov rcx, rbx
mov rbx, qword [sym.imp.python310.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python310.dll_PyNumber_InPlaceAdd]
jmp 0x140177871
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.140160950
test rax, rax
je 0x1401779b8
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1401d4b70
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x14017793e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140177930
test rbx, rbx
je 0x1401d4b70
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x1401778f0
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rax + 0x1f0]
call fcn.140177760
mov rbx, rax
mov qword [0x14020c410], rbx
jmp 0x140177842
lea rcx, [0x1401e8a90]
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov qword [0x14020c648], rax
mov rdx, rax
jmp 0x140177862
mov rbx, qword [0x14020c428]
test rbx, rbx
jne 0x140177986
cmp byte [0x14020c642], 0
je 0x1401779f6
mov rdx, 0xffffffffffffffff
lea rcx, [0x14020c440]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [0x14020c428], rax
mov rbx, rax
test rax, rax
je 0x140177a02
add qword [rax], 1
jmp 0x140177986
mov ecx, 1
call fcn.140161570
jmp 0x1401779cd
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop
call sub.msvcrt.dll_abort
nop
Function at 0x140179340
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.140160950
test rax, rax
je 0x1401794a0
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1401d4b8e
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x1401793f6
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1401793e8
test rbx, rbx
je 0x1401d4b8e
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x1401793a8
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [0x14020cd80]
mov rsi, qword [rax + 0x1f0]
mov rax, qword [0x1401ec490]
mov rbx, qword [rax + 0x1c0]
test rdx, rdx
je 0x1401794f0
mov r8, rbx
mov rcx, rsi
call fcn.1401639d0
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.140175050
sub qword [rbx], 1
jne 0x140179484
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x14020c420]
lea rsi, [0x14020c420]
test bl, bl
je 0x1401794c0
mov rax, qword [0x14020c428]
lea rsi, [0x14020c428]
test rax, rax
jne 0x140179484
cmp byte [0x14020c642], 0
je 0x14017951d
mov rdx, 0xffffffffffffffff
lea rcx, [0x14020c440]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x140179527
add qword [rax], 1
jmp 0x140179484
mov rdx, qword [0x14020ccf8]
mov rdi, qword [rax + 0x1b0]
test rdx, rdx
je 0x140179532
mov r8, rdi
mov rcx, rsi
call fcn.1401639d0
mov qword [0x14020cd80], rax
mov rdx, rax
jmp 0x14017944e
movzx ecx, bl
call fcn.140161570
jmp 0x1401794ce
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1401e449e]
call qword [sym.imp.python310.dll_PyImport_ImportModule]
mov qword [0x14020ccf8], rax
mov rdx, rax
test rax, rax
je 0x1401d4b8e
jmp 0x140179503
Function at 0x1401b9dc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x14020c409], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x1401b9e68
lea rdx, [0x1401e821a]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1401b9ed0
mov rbx, qword [0x14020c2a8]
jmp 0x1401b9e05
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1401b9e00
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x1401b9e57
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.1401a91f0
mov r8, rax
cmp rdi, rbx
jne 0x1401b9e40
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x14020c2a8], rax
mov ebx, dword [rax]
mov qword [0x14020c2a8], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x14020c2a8], rdx
call fcn.1401b8ef0
cmp eax, ebx
jne 0x1401b9f57
mov byte [0x14020c409], 1
jmp 0x1401b9de0
cmp byte [0x14020c408], 0
jne 0x1401b9df7
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x14020cf88], rax
call rbx
mov qword [0x14020cf80], rax
call rbx
mov qword [0x14020cf78], rax
call rbx
mov qword [0x14020cf70], rax
call rbx
mov qword [0x14020cf68], rax
call rbx
mov qword [0x14020cf60], rax
call rbx
mov qword [0x14020cf58], rax
call rbx
mov byte [0x14020c408], 1
mov qword [0x14020cf50], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x14020c2a0], rax
jmp 0x1401b9df7
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1401c2880
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1401d4010
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1401d4010
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1401c3552
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14020d448]
test eax, eax
je 0x1401c35ea
lea rax, [0x14020d420]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14020d450]
mov qword [rbp - 8], rax
jmp 0x1401c35ce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1401c35c2
cmp qword [rbp - 0x10], 0
je 0x1401c35c2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1401c3588
lea rax, [0x14020d420]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1401c35eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1401c36f0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1401c3718
mov eax, 0
jmp 0x1401c3766
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1401c3741
mov eax, 0
jmp 0x1401c3766
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1401c3761
mov eax, 0
jmp 0x1401c3766
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1401c376c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1401c37ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1401c37e1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1401c37e1
mov rax, qword [rbp - 8]
jmp 0x1401c37ff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1401c37b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001700
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x1400a3758]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edi, edi
mov rsi, rcx
test rcx, rcx
je 0x14000179d
lea eax, [rdx - 1]
test eax, eax
jne 0x14000179d
cmp edx, 1
jne 0x140001798
xor edx, edx
mov qword [rsp + 0x168], rbx
mov r8d, 0x110
lea rcx, [rsp + 0x24]
call fcn.14004e310
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14000177c
cmp dword [rsp + 0x24], 6
ja 0x140001777
jne 0x14000177c
cmp dword [rsp + 0x28], ebx
jbe 0x14000177c
mov ebx, 1
shl ebx, 0xb
xor edx, edx
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, qword [rsp + 0x168]
mov rdi, rax
mov rax, rdi
jmp 0x1400017aa
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14004bd30
mov rsi, qword [rsp + 0x170]
add rsp, 0x150
pop rdi
ret

Function at 0x140005220
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r15, r8
mov r12, rdx
mov rsi, rcx
xor bl, bl
xor eax, eax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor edx, edx
lea r8d, [rax + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140005301
lea rdx, [rsp + 0x88]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400052f8
mov rcx, rdi
cmp dword [rsp + 0x8c], 0
je 0x14000529b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140005304
mov r14d, dword [rsp + 0x88]
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400052f8
mov r9, r15
mov r8, r12
mov edx, r14d
mov rcx, rax
call fcn.140002340
movzx ebx, al
mov byte [rsp + 0x30], al
jmp 0x1400052ef
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop r12
ret
Function at 0x140006a80
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x1400a4658], 0
jne 0x140006bed
lea rcx, str.Wintrust.dll
mov byte [0x1400a4658], 1
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
jne 0x140006ab5
add rsp, 0x20
pop rbx
ret
lea rdx, str.WinVerifyTrust
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTHelperGetProvSignerFromChain
mov rcx, rbx
mov qword [0x1400a45f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTHelperProvDataFromStateData
mov rcx, rbx
mov qword [0x1400a45f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminReleaseContext
mov rcx, rbx
mov qword [0x1400a4600], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminReleaseCatalogContext
mov rcx, rbx
mov qword [0x1400a4608], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATCatalogInfoFromContext
mov rcx, rbx
mov qword [0x1400a4610], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminEnumCatalogFromHash
mov rcx, rbx
mov qword [0x1400a4618], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14007a650]
mov rcx, rbx
mov qword [0x1400a4620], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminAcquireContext
mov rcx, rbx
mov qword [0x1400a4628], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminAddCatalog
mov rcx, rbx
mov qword [0x1400a4630], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCATAdminRemoveCatalog
mov rcx, rbx
mov qword [0x1400a4640], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.IsCatalogFile
mov rcx, rbx
mov qword [0x1400a4648], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.crypt32.dll
mov qword [0x1400a4650], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.CertNameToStrW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a4638], rax
cmp qword [0x1400a4630], 0
setne al
add rsp, 0x20
pop rbx
ret
Function at 0x14000cbb0
Capabilities:
Initialize winhttp library

Disassembly:
push rbx
sub rsp, 0x30
movzx eax, byte [rsp + 0x68]
mov rbx, rcx
mov byte [rcx + 0x30], al
movzx eax, byte [rsp + 0x60]
mov qword [rsp + 0x28], 0
mov byte [rsp + 0x20], al
call fcn.140007620
test al, al
jne 0x14000cbe7
mov eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
lea rcx, str.VirusTotal
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbx], rax
test rax, rax
je 0x14000cc3e
mov r8d, 0x1bb
lea rdx, str.www.virustotal.com
xor r9d, r9d
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbx + 8], rax
test rax, rax
jne 0x14000cc4a
mov rcx, qword [rbx]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [rbx], 0
add rsp, 0x30
pop rbx
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x14000cc60
Capabilities:
Prepare http request
Receive http response

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rsi, r9
mov r15, r8
mov r12, rdx
mov r13, rcx
mov rax, qword [rdx]
xor edi, edi
test rax, rax
je 0x14000cca1
mov r8, qword [rax]
jmp 0x14000cca4
mov r8, rdi
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea rdx, str.POST
mov rcx, qword [rcx + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x5c], 3
mov dword [rsp + 0x74], 1
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x58]
lea rdx, str.https:__www.virustotal.com
mov rcx, qword [r13]
call qword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x14000cd1c
mov r9d, 0x18
lea r8, [rsp + 0x40]
lea edx, [r9 + 0xe]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov rbx, qword [rsi]
test rbx, rbx
je 0x14000cd75
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000cd39
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov ebp, eax
mov rbx, qword [rsi]
jmp 0x14000cd3b
mov ebp, edi
mov ecx, ebp
test rbx, rbx
je 0x14000cd77
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000cd55
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov edi, eax
mov rbx, qword [rsi]
mov ecx, ebp
test rbx, rbx
je 0x14000cd77
mov rax, qword [rbx + 8]
test rax, rax
jne 0x14000cd71
mov rcx, qword [rbx]
call fcn.14004ded0
mov qword [rbx + 8], rax
mov ecx, ebp
jmp 0x14000cd79
mov ecx, edi
xor eax, eax
mov rdx, qword [r15]
test rdx, rdx
je 0x14000cd84
mov rdx, qword [rdx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edi
mov r9, rax
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x14000cdcc
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x14000cdcc
mov r8, qword [rsp + 0xe0]
mov rdx, r14
mov rcx, r13
call fcn.14000c740
jmp 0x14000cdd2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, r12
call fcn.1400053c0
nop
mov rcx, r15
call fcn.1400053c0
nop
mov rcx, rsi
call fcn.1400053c0
mov eax, ebx
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400105e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x40
xor edi, edi
lea rax, [rsp + 0x30]
mov r9d, 0x101
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x60], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001066d
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, str.EulaAccepted
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x68], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x50]
jne 0x14001066d
cmp dword [rsp + 0x60], edi
setne dil
mov eax, edi
add rsp, 0x40
pop rdi
ret
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x140010680
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x268
mov rax, qword [0x1400a3758]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x20], rcx
lea r9, str.SoftwareSysinternals
lea rcx, [rsp + 0x40]
mov edx, 0x104
lea r8, str._s_s
call fcn.140005c50
lea rdx, str.SoftwareSysinternals
mov rcx, 0xffffffff80000002
call fcn.1400105e0
test eax, eax
jne 0x14001079b
lea rdx, str.SoftwareSysinternals
mov rcx, 0xffffffff80000001
call fcn.1400105e0
test eax, eax
jne 0x14001079b
xor eax, eax
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov r9d, 0x101
mov dword [rsp + 0x30], eax
xor r8d, r8d
lea rax, [rsp + 0x38]
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010781
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rdx, str.EulaAccepted
lea rax, [rsp + 0x30]
mov qword [rsp + 0x260], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x34], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x260]
jne 0x140010781
cmp dword [rsp + 0x30], 0
jne 0x14001079b
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14004bd30
add rsp, 0x268
ret
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14004bd30
add rsp, 0x268
ret