joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180081b70
Capabilities:
Create directory

Disassembly:
mov r11, rsp
push r14
sub rsp, 0xb0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x180126050]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rdi, rcx
mov qword [r11 - 0x60], rcx
cmp qword [rcx + 0x10], 0
jne 0x180081bb6
jmp 0x180081d82
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x90], xmm0
movdqa xmm1, xmmword [0x1800e68b0]
movdqu xmmword [rsp + 0x90], xmm1
mov byte [rsp + 0x80], 0
mov r8, qword [rcx + 0x10]
test r8, r8
je 0x180081c51
cmp qword [rcx + 0x18], 0x10
jb 0x180081bf0
mov rcx, qword [rcx]
nop
mov rax, rdi
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x180081c00
mov rax, qword [rdi]
mov r8, qword [rdi + 0x10]
add rax, r8
cmp rcx, rax
je 0x180081c19
cmp byte [rcx], 0x5c
jne 0x180081c14
mov byte [rcx], 0x2f
inc rcx
jmp 0x180081bf0
lea rcx, [r8 - 1]
cmp r8, rcx
jbe 0x180081db3
mov rax, rdi
cmp rdx, 0x10
jb 0x180081c32
mov rax, qword [rdi]
cmp byte [rcx + rax], 0x2f
je 0x180081c51
mov r8d, 1
lea rdx, [0x1800e352c]
mov rcx, rdi
call fcn.18002d9c0
mov r8, qword [rdi + 0x10]
mov rbx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x180081c5e
mov rbx, qword [rdi]
test r8, r8
je 0x180081c7d
mov edx, 0x2f
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rsi, rax
test rax, rax
je 0x180081c7d
sub rsi, rbx
jmp 0x180081c84
mov rsi, 0xffffffffffffffff
cmp rsi, 0xffffffffffffffff
je 0x180081d71
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.180022800
nop
cmp qword [rsp + 0x70], 0
jbe 0x180081cff
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.1800053c0
mov r14, rax
mov qword [rsp + 0x28], rax
mov rcx, rax
cmp qword [rax + 0x18], 0x10
jb 0x180081cce
mov rcx, qword [rax]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
mov ebx, eax
mov rcx, r14
call fcn.180005490
test ebx, ebx
jne 0x180081cff
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x180081d4c
inc rsi
mov rbx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x180081d0f
mov rbx, qword [rdi]
mov r8, qword [rdi + 0x10]
cmp rsi, r8
jae 0x180081d36
sub r8, rsi
lea rcx, [rsi + rbx]
mov edx, 0x2f
call sub.VCRUNTIME140.dll_memchr
mov rsi, rax
test rax, rax
je 0x180081d36
sub rsi, rbx
jmp 0x180081d3d
mov rsi, 0xffffffffffffffff
lea rcx, [rsp + 0x60]
call fcn.180005490
jmp 0x180081c84
lea rcx, [rsp + 0x60]
call fcn.180005490
nop
lea rcx, [rsp + 0x80]
call fcn.180005490
nop
mov rcx, rdi
call fcn.180005490
xor al, al
jmp 0x180081d89
lea rcx, [rsp + 0x80]
call fcn.180005490
nop
mov rcx, rdi
call fcn.180005490
mov al, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1800bd270
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
call fcn.1800054f0
nop
int3
Function at 0x1800838c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
cmp byte [rcx + 8], 0
mov rbx, rcx
je 0x1800838f6
mov r8d, 6
lea rdx, str.log4z_already_start__r_n
add rcx, 0xfffffffffffffff0
call fcn.180082ff0
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
xor r9d, r9d
xor edx, edx
xor ecx, ecx
lea r8d, [r9 + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [rbx + 0x18], rax
lea r9, [rbx - 0x10]
lea r8, [0x180080560]
xor edx, edx
xor eax, eax
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x180083959
mov qword [rbx - 8], rax
mov edx, 0xbb8
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x180083965
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, str.log4z:_create_log4z_thread_error___r_n
call fcn.180080230
mov rbx, qword [rsp + 0x40]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x18008a740
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x100
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x180126050]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rdi, rdx
mov rbx, rcx
xor esi, esi
cmp qword [rcx + 0x10], rsi
je 0x18008a8fa
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.18001c930
nop
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x18008a8f0
mov r9, qword [rbx + 0x10]
sub r9, rax
xor r8d, r8d
lea rdx, [rsp + 0xd0]
mov rcx, rbx
call fcn.180005150
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xb0]
call fcn.18001c7e0
nop
lea r8, str..log
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x90]
call fcn.180003770
nop
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x70]
call fcn.18001dd60
nop
lea ecx, [rsi + 8]
call fcn.1800bd294
mov qword [rsp + 0x38], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 0x40000000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.1800231a0
mov rbx, qword [rsp + 0x30]
test al, al
je 0x18008a88e
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x18008a88e
mov dword [rsp + 0x38], esi
cmp qword [rdi + 0x18], 8
jb 0x18008a863
mov rdi, qword [rdi]
lea r8d, [rax + rax]
test rbx, rbx
je 0x18008a88e
test rdi, rdi
je 0x18008a88e
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x18008a88e
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x38]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
test rbx, rbx
je 0x18008a8bb
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18008a8a9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rsi
mov edx, 8
mov rcx, rbx
call fcn.1800bd2d0
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x70]
call fcn.180003440
nop
lea rcx, [rsp + 0x90]
call fcn.180003440
nop
lea rcx, [rsp + 0xb0]
call fcn.180003440
nop
lea rcx, [rsp + 0xd0]
call fcn.180003440
nop
lea rcx, [rsp + 0x50]
call fcn.180003440
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1800bd270
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18008b4f0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2c0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x180126050]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov dword [rsp + 0x30], 0
mov eax, 0x51
mov word [rsp + 0x80], ax
mov eax, 0x69
mov word [rsp + 0x82], ax
mov eax, 0x6e
mov word [rsp + 0x84], ax
mov eax, 0x67
mov word [rsp + 0x86], ax
mov eax, 0x6e
mov word [rsp + 0x88], ax
mov eax, 0x69
mov word [rsp + 0x8a], ax
mov eax, 0x61
mov word [rsp + 0x8c], ax
mov eax, 0x6f
mov word [rsp + 0x8e], ax
mov eax, 0x20
mov word [rsp + 0x90], ax
mov eax, 0x43
mov word [rsp + 0x92], ax
mov eax, 0x68
mov word [rsp + 0x94], ax
mov eax, 0x72
mov word [rsp + 0x96], ax
mov eax, 0x6f
mov word [rsp + 0x98], ax
mov eax, 0x6d
mov word [rsp + 0x9a], ax
mov eax, 0x65
mov word [rsp + 0x9c], ax
xor eax, eax
mov word [rsp + 0x9e], ax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.1800033f0
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.18008c450
nop
lea rcx, [rsp + 0x60]
call fcn.1800033d0
lea rcx, [rsp + 0x40]
call fcn.18000ac70
movzx eax, al
test eax, eax
je 0x18008b661
lea rdx, [0x1800dbdd4]
mov rcx, qword [rsp + 0x2d0]
call fcn.1800033f0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.1800033d0
mov rax, qword [rsp + 0x2d0]
jmp 0x18008b78c
lea rcx, [rsp + 0x40]
call fcn.18001bfb0
movzx eax, al
test eax, eax
jne 0x18008b6a8
lea rdx, [0x1800dbdd4]
mov rcx, qword [rsp + 0x2d0]
call fcn.1800033f0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.1800033d0
mov rax, qword [rsp + 0x2d0]
jmp 0x18008b78c
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
call fcn.180005240
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0xa0]
lea r8, [0x1800dbdd4]
lea rdx, str.Version
lea rcx, str.AppLoadInfo
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rax, [rsp + 0xa0]
lea rcx, [0x1800dbdd4]
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x18008b71e
add rax, 2
test dx, dx
jne 0x18008b708
xor eax, eax
jmp 0x18008b723
sbb eax, eax
or eax, 1
test eax, eax
jne 0x18008b75a
lea rdx, [0x1800dbdd4]
mov rcx, qword [rsp + 0x2d0]
call fcn.1800033f0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.1800033d0
mov rax, qword [rsp + 0x2d0]
jmp 0x18008b78c
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x2d0]
call fcn.1800033f0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.1800033d0
mov rax, qword [rsp + 0x2d0]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1800bd270
add rsp, 0x2c0
pop rdi
ret
Function at 0x18008c1b0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x280
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x180126050]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov dword [rsp + 0x30], 0
mov rdx, qword [rsp + 0x298]
lea rcx, [rsp + 0x40]
call fcn.18008c2d0
nop
lea rcx, [rsp + 0x40]
call fcn.18001bfb0
movzx eax, al
test eax, eax
jne 0x18008c23c
lea rdx, [0x1800dbdd4]
mov rcx, qword [rsp + 0x290]
call fcn.1800033f0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.1800033d0
mov rax, qword [rsp + 0x290]
jmp 0x18008c2b3
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
call fcn.180005240
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x60]
lea r8, [0x1800dbdd4]
lea rdx, str.Version
lea rcx, str.Upgrade
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x290]
call fcn.1800033f0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.1800033d0
mov rax, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1800bd270
add rsp, 0x280
pop rdi
ret
Function at 0x18009e5e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x460
mov rax, qword [0x180126050]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rdx
mov r14d, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], rdx
xor esi, esi
mov qword [rdx + 0x10], rsi
mov rax, rdx
cmp qword [rdx + 0x18], 8
jb 0x18009e624
mov rax, qword [rdx]
mov word [rax], si
call fcn.18009e6e0
movzx edi, al
mov byte [rsp + 0x20], al
jmp 0x18009e649
test dil, dil
jne 0x18009e6b0
cmp r14d, 0x1a
jne 0x18009e6b0
mov qword [rbx + 0x10], rsi
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x18009e665
mov rax, qword [rbx]
mov word [rax], si
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x207
lea rdx, [rsp + 0x40]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1800034c0
movzx edi, dil
mov eax, 1
cmp qword [rbx + 0x10], 0
cmovne edi, eax
movzx eax, dil
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1800bd270
mov rbx, qword [rsp + 0x490]
add rsp, 0x460
pop r14
pop rdi
pop rsi
ret

Function at 0x18009e8b0
Capabilities:
Query environment variable

Disassembly:
mov rdx, rcx
mov ecx, 0x1a
jmp fcn.18009e5e0

Function at 0x1800a4af0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x60
mov rax, qword [0x180126050]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x58], rsi
xor ebx, ebx
cmp qword [rcx + 0x20], 0xffffffffffffffff
mov r14, r9
mov qword [rsp + 0x50], rdi
mov rsi, rdx
mov qword [rsp + 0x40], r15
mov edi, r8d
mov r15, rcx
mov ebp, ebx
jne 0x1800a4b35
mov ebx, 1
jmp 0x1800a4b86
mov qword [rsp + 0x48], r12
mov r12d, 0x100000
mov rcx, qword [r15 + 0x20]
lea r9, [rsp + 0x30]
mov r8d, edi
mov dword [rsp + 0x30], ebx
cmp edi, r12d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
cmova r8d, r12d
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x30]
add ebp, ecx
test eax, eax
je 0x1800a4b7c
test ecx, ecx
je 0x1800a4b81
add rsi, rcx
sub edi, ecx
jne 0x1800a4b40
jmp 0x1800a4b81
mov ebx, 1
mov r12, qword [rsp + 0x48]
mov r15, qword [rsp + 0x40]
mov eax, ebx
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
test r14, r14
je 0x1800a4b9f
mov dword [r14], ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800bd270
add rsp, 0x60
pop r14
pop rbp
pop rbx
ret

Function at 0x1800a5510
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x1800a554b
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1800a554b
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x20]
call fcn.1800b1810
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x1800b1810
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x180126050]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rcx, qword [rcx]
mov rdi, rdx
cmp rcx, 0xffffffffffffffff
je 0x1800b186e
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1800b1859
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800b186e
mov ecx, dword [rsp + 0x20]
mov rax, rbx
shl rcx, 0x20
mov al, 1
add rcx, rbx
mov qword [rdi], rcx
jmp 0x1800b1870
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800bd270
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800b1a30
Capabilities:
Get file size
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x180126050]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r13, r9
mov r12d, r8d
mov r15, rdx
mov rsi, rcx
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x30], rax
xor edi, edi
test rax, rax
je 0x1800b1a7e
mov dword [rax], edi
mov dword [r9], edi
cmp qword [rcx], 0xffffffffffffffff
je 0x1800b1bdc
mov eax, 0x100000
mov ebp, r12d
cmp r12d, eax
cmova ebp, eax
mov dword [rsp + 0x68], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x68]
mov r8d, ebp
mov rdx, r15
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, 0x80004005
test eax, eax
cmovne edx, edi
cmp qword [rsi + 0x28], 0
je 0x1800b1ba9
test edx, edx
je 0x1800b1ba9
mov ecx, dword [rsp + 0x68]
cmp ecx, ebp
jae 0x1800b1bad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rbx, rdi
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
jne 0x1800b1af9
xor dil, dil
jmp 0x1800b1b2c
mov dword [rsp + 0x6c], edi
lea rdx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1800b1b1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1800b1b1e
xor dil, dil
jmp 0x1800b1b2c
mov ebx, dword [rsp + 0x6c]
shl rbx, 0x20
add rbx, rdi
mov dil, 1
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
lea rdx, [rsi + 8]
lea rcx, [rsp + 0x48]
call fcn.1800052b0
nop
mov rcx, qword [rsi + 0x28]
mov r10, qword [rcx]
mov r9, r14
xor r8d, r8d
test dil, dil
cmovne r8, rbx
mov rdx, rax
call qword [r10 + 0x30]
mov edx, eax
xor edi, edi
test eax, eax
jne 0x1800b1ba9
mov dword [rsp + 0x70], edi
mov edx, dword [rsp + 0x68]
add rdx, r15
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x70]
mov r8d, ebp
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, 0x80004005
test eax, eax
cmovne edx, edi
mov ecx, dword [rsp + 0x68]
add ecx, dword [rsp + 0x70]
mov dword [rsp + 0x68], ecx
test eax, eax
je 0x1800b1ad7
jmp 0x1800b1bad
mov ecx, dword [rsp + 0x68]
add dword [r13], ecx
test edx, edx
jne 0x1800b1bd0
test ecx, ecx
je 0x1800b1bcc
mov eax, ecx
add r15, rax
sub r12d, ecx
mov eax, 0x100000
jne 0x1800b1a90
mov al, 1
jmp 0x1800b1bde
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1800b1bdc
mov dword [rax], edx
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800bd270
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800b5b30
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x180126050]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor eax, eax
mov dword [rsp + 0x20], 0x114
mov qword [rcx + 8], rax
mov rbx, rcx
mov qword [rcx + 0x10], rax
xor edx, edx
mov qword [rcx + 0x18], rax
mov r8d, 0x110
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x48], rax
mov qword [rcx + 0x50], rax
mov byte [rcx], al
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x1800b5bb0
cmp dword [rsp + 0x24], 6
jb 0x1800b5bb0
mov byte [rbx], 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800bd270
add rsp, 0x150
pop rbx
ret
Function at 0x1800b5bd0
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rsi, rcx
xorps xmm0, xmm0
movdqu xmmword [rax - 0x40], xmm0
movdqa xmm1, xmmword [0x1800e68a0]
movdqu xmmword [rax - 0x40], xmm1
xor edi, edi
mov word [rax - 0x50], di
lea rdx, str.wintrust.dll
lea rcx, [rax - 0x50]
call fcn.1800034c0
nop
call fcn.180025300
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.1800253e0
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.180003440
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
movdqa xmm1, xmmword [0x1800e68a0]
movdqu xmmword [rsp + 0x58], xmm1
mov word [rsp + 0x48], di
lea rdx, str.crypt32.dll
lea rcx, [rsp + 0x48]
call fcn.1800034c0
nop
call fcn.180025300
mov rcx, rax
lea rdx, [rsp + 0x48]
call fcn.1800253e0
mov rdi, rax
lea rcx, [rsp + 0x48]
call fcn.180003440
test rbx, rbx
je 0x1800b5d5d
test rdi, rdi
je 0x1800b5d5d
lea rdx, str.CryptCATAdminCalcHashFromFileHandle
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 8], rax
lea rdx, str.CryptCATAdminAcquireContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x10], rax
lea rdx, str.CryptCATAdminEnumCatalogFromHash
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x18], rax
lea rdx, str.CryptCATCatalogInfoFromContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x20], rax
lea rdx, str.CryptCATAdminReleaseCatalogContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x28], rax
lea rdx, str.CryptCATAdminReleaseContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x30], rax
lea rdx, str.WTHelperProvDataFromStateData
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x38], rax
lea rdx, str.WTHelperGetProvSignerFromChain
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x40], rax
lea rdx, str.WinVerifyTrust
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x48], rax
lea rdx, str.CertNameToStrW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x50], rax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1800bbce0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x180126050]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, rdx
mov ebx, ecx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x410
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x20]
mov qword [rsp + 0x20], 0
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x1800bbd56
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x1800bbd79
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1800bbd56
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1800bd270
mov rbx, qword [rsp + 0x470]
add rsp, 0x450
pop rdi
ret
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1800bbd85
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.180003540
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1800bbdad
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
jmp 0x1800bbd58
Function at 0x1800bcdf0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x180126050]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor edi, edi
mov rbx, rcx
mov qword [rcx], rdi
cmp qword [0x180126010], rdi
jne 0x1800bce7b
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x20a
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rax, [rsp + 0x30]
mov word [rsp + 0x236], di
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], di
jne 0x1800bce60
lea rdx, [rsp + 0x30]
lea rcx, [section..data]
call fcn.180003540
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1800bd270
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret

Function at 0x1800bcf20
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x260
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x180126050]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov eax, dword [0x18012879c]
test eax, eax
jle 0x1800bcf6e
inc eax
mov dword [0x18012879c], eax
mov al, 1
jmp 0x1800bd08d
xor sil, sil
xor ebp, ebp
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
lea rcx, [rsp + 0x30]
call fcn.18001f4c0
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.180020360
movzx ebx, al
lea rcx, [rsp + 0x30]
call fcn.18001f540
test bl, bl
je 0x1800bd079
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1800bd079
lea rdx, str.ImpersonateLoggedOnUser
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x28]
call rax
test eax, eax
je 0x1800bd070
inc dword [0x18012879c]
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800bcffc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x28]
mov qword [rdi], rax
mov qword [rsp + 0x28], rbp
mov sil, 1
cmp qword [0x180126030], 0
jne 0x1800bd070
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0x104
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov word [rsp + 0x246], bp
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1800bd054
lea rdx, [rsp + 0x40]
lea rcx, [0x180126020]
call fcn.180003540
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1800bd089
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, sil
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800bd270
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret