joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140035c00
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x4b0
mov rsi, rdx
mov rbx, rcx
mov r8d, 0x104
lea rdx, [rsp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x4d0]
lea rcx, [rsp + 0x90]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ecx, eax
call fcn.140145a74
mov rdi, rax
lea rdx, [rsp + 0x4d0]
lea rcx, [rsp + 0x90]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov r8d, eax
mov r9, rdi
xor edx, edx
lea rcx, [rsp + 0x90]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140035d2c
mov dword [rsp + 0x4d8], 0
lea r9, [rsp + 0x4d8]
lea r8, [rsp + 0x30]
lea rdx, [0x1401bf9b8]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
mov qword [rsp + 0x20], 0
mov rax, qword [rsp + 0x30]
movzx r9d, word [rax + 2]
movzx r8d, word [rax]
mov rdx, rsi
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x2a0]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
cmp qword [rsp + 0x20], 0
je 0x140035d2c
lea rcx, [rsp + 0x40]
call fcn.140022db0
nop
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x20]
call fcn.1400156a0
mov rcx, rdi
call fcn.140145620
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140023050
nop
lea rcx, [rsp + 0x40]
call fcn.140023130
jmp 0x140035d44
mov rcx, rdi
call fcn.140145620
call fcn.140023440
mov rdx, rax
mov rcx, rbx
call fcn.140022f70
mov rax, rbx
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14003fa40
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x70
mov rsi, r8
mov ebp, edx
mov rdi, rcx
call fcn.14003fe50
mov rdx, rax
mov rcx, rdi
call fcn.1400102e0
xor ebx, ebx
mov qword [rdi + 0x18], rbx
mov qword [rdi + 0x20], rbx
mov qword [rdi + 0x28], rbx
lea rax, vtable.VFoundation::VSemaphore.0
mov qword [rdi], rax
lea rdx, [0x1401c0cb8]
lea rcx, [rsp + 0xa8]
call fcn.1400231e0
mov r14, rax
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x14003faac
call fcn.140010440
mov rcx, qword [r14]
mov qword [rdi + 0x28], rcx
mov qword [r14], rbx
mov rax, qword [rsp + 0xa8]
test rax, rax
je 0x14003fad4
mov ecx, dword [rax + 0x10]
mov rcx, qword [rsp + 0xa8]
call fcn.140010440
nop
mov rdx, rsi
mov rcx, qword [rdi + 0x28]
call fcn.1400236e0
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14003faef
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
xchg dword [rdi + 0x20], eax
mov dword [rdi + 0x24], ebp
mov rcx, qword [rdi + 0x28]
test ebx, ebx
jne 0x14003fb09
mov rdx, rsi
call fcn.1400236e0
jmp 0x14003fb1f
add rcx, 0x18
mov r9d, ebx
mov r8, rsi
lea rdx, str._s__d
call fcn.140001540
mov rcx, qword [rdi + 0x28]
add rcx, 0x18
call fcn.140015800
mov r8, rax
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
test rax, rax
je 0x14003fb4c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14003fb57
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14003fb63
inc ebx
cmp ebx, 0x3e7
jl 0x14003faf7
jmp 0x14003fb9b
mov rdx, qword [rdi + 0x28]
lea rcx, [rsp + 0x20]
call fcn.140022f70
nop
lea rcx, [rsp + 0x38]
call fcn.140015800
mov r9, rax
mov r8d, ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [rdi + 0x18], rax
lea rcx, [rsp + 0x20]
call fcn.140023130
nop
mov rax, rdi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14003fc30
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rsi, r8
mov ebp, edx
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x28], rbx
jne 0x14003fc9f
lea rdx, [0x1401c0cb8]
lea rcx, [rsp + 0x90]
call fcn.1400231e0
mov r14, rax
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x14003fc77
call fcn.140010440
mov rcx, qword [r14]
mov qword [rdi + 0x28], rcx
mov qword [r14], rbx
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x14003fc9f
mov ecx, dword [rax + 0x10]
mov rcx, qword [rsp + 0x90]
call fcn.140010440
nop
mov rdx, rsi
mov rcx, qword [rdi + 0x28]
call fcn.1400236e0
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14003fcba
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
xchg dword [rdi + 0x20], eax
mov dword [rdi + 0x24], ebp
mov rcx, qword [rdi + 0x28]
test ebx, ebx
jne 0x14003fcd4
mov rdx, rsi
call fcn.1400236e0
jmp 0x14003fcea
add rcx, 0x18
mov r9d, ebx
mov r8, rsi
lea rdx, str._s__d
call fcn.140001540
mov rcx, qword [rdi + 0x28]
add rcx, 0x18
call fcn.140015800
mov r8, rax
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
test rax, rax
je 0x14003fd17
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14003fd22
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14003fd2e
inc ebx
cmp ebx, 0x3e7
jl 0x14003fcc2
jmp 0x14003fd65
mov rdx, qword [rdi + 0x28]
lea rcx, [rsp + 0x20]
call fcn.140022f70
nop
lea rcx, [rsp + 0x38]
call fcn.140015800
mov r9, rax
mov r8d, ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [rdi + 0x18], rax
lea rcx, [rsp + 0x20]
call fcn.140023130
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140040060
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r9, qword [rcx]
lea rax, [rsp + 0x58]
mov rdi, r8
mov qword [rsp + 0x28], rax
mov r8, rdx
mov rbx, rcx
xor esi, esi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], esi
mov dword [rsp + 0x58], esi
call fcn.14017e404
mov rcx, rax
test rax, rax
jne 0x1400400e8
xor edx, edx
lea rcx, str.Error_starting_thread:__i_n
call fcn.14003a610
mov rax, qword [rbx]
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x1400400c3
mov qword [rax + 0x28], rsi
call fcn.140010440
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400400d5
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx], rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rbx]
mov rdx, rdi
mov qword [rax + 0x30], rcx
mov rcx, qword [rbx]
mov eax, dword [rsp + 0x58]
mov dword [rcx + 0x38], eax
mov rcx, qword [rbx]
call fcn.140045ae0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140040260
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x180
mov ebp, edx
mov r14d, ecx
xor esi, esi
mov qword [rsp + 0x40], rsi
mov edi, esi
mov qword [rsp + 0x50], rsi
mov ebx, esi
mov qword [rsp + 0x48], rbx
xor edx, edx
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140040367
mov dword [rsp + 0x58], 0x1c
lea rdx, [rsp + 0x58]
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x1400403c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x100
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x400
mov r8d, ebx
xor edx, edx
mov ecx, 0x1200
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, [rsp + 0x80]
nop dword [rax]
movzx edx, byte [rcx]
cmp dl, 0x1f
jg 0x14004031d
cmp dl, 9
jne 0x140040322
inc rcx
jmp 0x140040310
mov byte [rcx], 0
dec rcx
lea rax, [rsp + 0x80]
cmp rcx, rax
jb 0x140040340
movzx eax, byte [rcx]
cmp al, 0x2e
je 0x140040322
cmp al, 0x21
jl 0x140040322
lea r9, [rsp + 0x80]
mov r8d, ebx
lea rdx, [0x1401c0d18]
lea rcx, str._n__WARNING:__s_failed_with_error__d___s_
call fcn.1400408b0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
test rsi, rsi
je 0x1400403a5
sub rdi, rsi
and rdi, 0xfffffffffffffffc
mov rax, rsi
cmp rdi, 0x1000
jb 0x14004039a
add rdi, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040442
mov rdx, rdi
mov rcx, rsi
call fcn.140145620
movzx eax, bl
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
cmp dword [rsp + 0x64], ebp
jne 0x1400403fd
cmp rbx, rdi
je 0x1400403e1
mov eax, dword [rsp + 0x60]
mov dword [rbx], eax
add rbx, 4
mov qword [rsp + 0x48], rbx
jmp 0x1400403fd
lea r8, [rsp + 0x60]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140040670
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
lea rdx, [rsp + 0x58]
mov rcx, r15
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1400403c5
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x40]
mov rax, rsi
cmp rsi, rbx
je 0x140040367
cmp dword [rax], r14d
je 0x14004043b
add rax, 4
cmp rax, rbx
jne 0x140040428
jmp 0x140040367
mov bl, 1
jmp 0x140040369
call fcn.14017261c
int3
Function at 0x140040ce0
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
lea rax, [rsp + 0x68]
mov dword [rsp + 0x60], 4
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x58], 4
lea rdx, str.HARDWAREDESCRIPTIONSystemCentralProcessor0
mov dword [rsp + 0x50], 0x104
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140040d7e
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x50]
movaps xmmword [rsp + 0x30], xmm6
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.MHz
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x50]
xorps xmm6, xmm6
mov rcx, qword [rsp + 0x68]
cvtsi2sd xmm6, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movaps xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
xorps xmm0, xmm0
add rsp, 0x48
ret

Function at 0x140040e50
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x68
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x20], 0x40
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x28]
add rsp, 0x68
ret

Function at 0x140040e90
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x68
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x20], 0x40
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x30]
add rsp, 0x68
ret

Function at 0x140040ed0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x208
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x24], 6
jg 0x140040f41
lea rcx, [rsp + 0xc0]
mov dword [rsp + 0xc0], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0xc4], 6
jne 0x140040f37
lea rcx, [rsp + 0x160]
mov dword [rsp + 0x160], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x168], 1
jge 0x140040f41
xor al, al
add rsp, 0x208
ret
lea rcx, [0x1401c0dd0]
mov dword [rsp + 0x210], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140040f99
lea rdx, str.IsWow64Process
mov qword [rsp + 0x200], rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140040f91
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x210]
call rbx
mov rbx, qword [rsp + 0x200]
cmp dword [rsp + 0x210], 0
setne al
add rsp, 0x208
ret
Function at 0x1400410b0
Capabilities:
Check os version

Disassembly:
sub rsp, 0xc8
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x24], 6
jg 0x14004110f
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x24], 6
jne 0x140041105
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x28], 1
jge 0x14004110f
xor al, al
add rsp, 0xc8
ret
mov al, 1
add rsp, 0xc8
ret

Function at 0x140041120
Capabilities:
Check os version

Disassembly:
sub rsp, 0x168
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x24], 6
jg 0x1400411ca
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x24], 6
jl 0x1400411c0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x28], 1
jl 0x1400411c0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x28], 1
jg 0x1400411ca
lea rcx, [rsp + 0xc0]
mov dword [rsp + 0xc0], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp word [rsp + 0x154], 1
setae al
add rsp, 0x168
ret
xor al, al
add rsp, 0x168
ret
mov al, 1
add rsp, 0x168
ret

Function at 0x1400411f0
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
sub rsp, 0x78
xor edx, edx
mov dword [rax + 8], 0
lea r9, [rax + 0x10]
mov dword [rax + 0x10], 0x44
lea r8, [rax - 0x58]
lea ecx, [rdx + 0x1a]
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x140041245
lea r8, [rsp + 0x80]
xor ecx, ecx
lea rdx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x140041245
cmp dword [rsp + 0x80], 0
setne al
add rsp, 0x78
ret
xor al, al
add rsp, 0x78
ret
Function at 0x140041260
Capabilities:
Get token membership

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x4f]
sub rsp, 0x98
xor ebx, ebx
mov dword [rbp + 0x67], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x19]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140041312
mov rcx, qword [rbp - 0x19]
lea rax, [rbp + 0x67]
lea r9d, [rbx + 4]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x77]
lea edx, [rbx + 0x12]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140041308
cmp dword [rbp + 0x77], 3
jne 0x140041342
mov rcx, qword [rbp - 0x19]
lea rax, [rbp + 0x67]
lea r9d, [rbx + 8]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x11]
lea edx, [rbx + 0x13]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140041308
lea r9, [rbp + 0x7f]
mov dword [rbp + 0x7f], 0x44
lea r8, [rbp - 9]
xor edx, edx
lea ecx, [rbx + 0x1a]
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
mov rcx, qword [rbp - 0x11]
test eax, eax
jne 0x14004131e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add rsp, 0x98
pop rbx
pop rbp
ret
lea r8, [rbp + 0x6f]
mov dword [rbp + 0x6f], ebx
lea rdx, [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rbp - 0x11]
test eax, eax
je 0x140041302
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbp + 0x6f], ebx
jmp 0x14004134a
call qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
mov rcx, qword [rbp - 0x19]
setne bl
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
add rsp, 0x98
pop rbx
pop rbp
ret

Function at 0x1400415d0
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x90
mov rbx, rcx
mov dword [rax + 0x10], 0x10
lea rdx, [rax + 0x10]
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x140041635
lea rcx, [rsp + 0x40]
call fcn.140022db0
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x20]
call fcn.1400156a0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140023050
nop
lea rcx, [rsp + 0x40]
call fcn.140023130
mov rax, rbx
add rsp, 0x90
pop rbx
ret
call fcn.140023440
mov rdx, rax
mov rcx, rbx
call fcn.140022f70
mov rax, rbx
add rsp, 0x90
pop rbx
ret

Function at 0x140041660
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
sub rsp, 0x240
mov rbx, rcx
mov dword [rsp + 0x20], 0
mov dword [rax + 0x10], 0x104
lea rdx, [rax + 0x10]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov rcx, rbx
call fcn.140022db0
mov dword [rsp + 0x20], 1
lea rdx, [rbx + 0x18]
lea rcx, [rsp + 0x30]
call fcn.1400156a0
mov rax, rbx
add rsp, 0x240
pop rbx
ret
Function at 0x1400420f0
Capabilities:
Create process memory minidump
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
jne 0x14004212e
lea rcx, str.raising_exception_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x80000003
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rcx, str.writing_minidump_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x44], rbx
mov dword [rsp + 0x4c], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, rdi
mov edx, ebx
call sub.dbghelp.dll_MiniDumpWriteDump
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1400421a0
Capabilities:
Get file size
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x530
mov r15d, r8d
mov rbx, rdx
mov r14, rcx
xor dil, dil
mov byte [rsp + 0x40], dil
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x120]
call fcn.1401666a0
nop
mov r8d, 0x40e
lea rdx, [rsp + 0x120]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140042338
mov eax, 0x5a4d
cmp ax, word [rbx]
je 0x14004220d
xor al, al
jmp 0x140042343
movsxd rdi, dword [rbx + 0x3c]
add rdi, rbx
cmp dword [rdi], 0x4550
je 0x140042223
xor al, al
jmp 0x140042343
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rsi + 1]
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov word [rsp + 0x50], si
cmp rax, 0xffffffffffffffff
je 0x1400422a4
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea r9, [rsp + 0x568]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x14004229b
mov rdx, qword [rsp + 0x568]
lea rcx, [rsp + 0x50]
call fcn.140042360
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, r15d
lea rdx, str.Module__d_r_n
mov rcx, r14
call fcn.140042410
lea r8, [rsp + 0x120]
lea rdx, str._s_r_n
mov rcx, r14
call fcn.140042410
mov r9d, dword [rdi + 0x50]
mov r8, qword [rdi + 0x30]
lea rdx, str.Image_Base:_0x_08x__Image_Size:_0x_08x_r_n
mov rcx, r14
call fcn.140042410
mov r9d, dword [rdi + 8]
mov r8d, dword [rdi + 0x58]
lea rdx, str.Checksum:___0x_08x__Time_Stamp:_0x_08x_r_n
mov rcx, r14
call fcn.140042410
lea r9, [rsp + 0x50]
mov r8d, esi
lea rdx, str.File_Size:____10d__File_Time:___s_r_n
mov rcx, r14
call fcn.140042410
lea rdx, str.Version_Information:_r_n
mov rcx, r14
call fcn.140042410
lea rdx, [0x1401c0f78]
mov rcx, r14
call fcn.140042410
mov dil, 1
mov byte [rsp + 0x40], dil
jmp 0x14004233f
movzx eax, dil
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140042410
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x40
movsxd rbx, dword [0x14024d900]
lea rsi, [0x140245900]
mov rdi, rcx
cmp rbx, 0x3800
jbe 0x140042470
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor ebx, ebx
lea r9, [rsp + 0x30]
mov rdx, rsi
mov qword [rsp + 0x20], rbx
mov rcx, rdi
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rsp + 0x68]
mov dword [0x14024d900], ebx
movsxd rax, ebx
lea r8, [rsp + 0x70]
lea rcx, [rsi + rax*2]
call qword [sym.imp.USER32.dll_wvsprintfW]
add dword [0x14024d900], eax
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x140045140
Capabilities:
Read file on windows

Disassembly:
mov r9, qword [rcx + 0x18]
mov rax, rdx
test r9, r9
jne 0x14004514f
xor eax, eax
ret
mov edx, 1
mov rcx, rax
jmp fcn.1401757ac

Function at 0x140045170
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov r9, qword [rcx + 0x18]
mov rax, r8
mov r10, rdx
test r9, r9
jne 0x14004518a
xor al, al
add rsp, 0x28
ret
mov r8d, 1
mov rdx, rax
mov rcx, r10
call fcn.1401757ac
cmp rax, 1
sete al
add rsp, 0x28
ret
Function at 0x14004b490
Capabilities:
Get disk information
Get disk size

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x780]
sub rsp, 0x880
xorps xmm0, xmm0
add rcx, 0x18
movups xmmword [rsp + 0x58], xmm0
mov rbx, rdx
movups xmmword [rsp + 0x68], xmm0
call fcn.140015800
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
test eax, eax
js case.0x14004b50d.0
mov edx, eax
lea rcx, [rsp + 0x58]
call qword [sym.imp.SHLWAPI.dll_PathBuildRootW]
lea rdx, [rbx + 0x40]
lea rcx, [rsp + 0x58]
call fcn.1400156a0
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor edi, edi
cmp eax, 5
ja case.default.0x14004b50d
lea rdx, [0x140000000]
mov eax, eax
mov ecx, dword [rdx + rax*4 + 0x4b67c]
add rcx, rdx
jmp rcx
mov dword [rbx + 0xc8], 2
jmp 0x14004b553
mov eax, 3
jmp 0x14004b527
mov eax, 4
mov dword [rbx + 0xc8], eax
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
jmp 0x14004b5e4
mov dword [rbx + 0xc8], 5
jmp 0x14004b553
mov dword [rbx + 0xc8], 1
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je case.0x14004b50d.0
mov rcx, qword [rsp + 0x50]
lea r9, [rbp + 0x7b8]
mov rax, qword [rsp + 0x48]
lea r8, [rbp + 0x7b0]
mov rdx, rcx
mov qword [rbx], rax
sub rdx, rax
mov qword [rbx + 0x10], rcx
mov qword [rbx + 8], rdx
lea rax, [rsp + 0x40]
lea rdx, [rbp + 0x7a0]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je case.0x14004b50d.0
mov eax, dword [rbp + 0x7a0]
mov dword [rbx + 0x18], eax
mov eax, dword [rbp + 0x7b0]
mov dword [rbx + 0x1c], eax
mov eax, dword [rbp + 0x7b8]
mov dword [rbx + 0x20], eax
mov eax, dword [rsp + 0x40]
mov dword [rbx + 0x24], eax
mov dword [rsp + 0x38], edi
lea r9, [rsp + 0x44]
mov qword [rsp + 0x30], rdi
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x28], rdi
lea rcx, [rsp + 0x58]
mov r8d, 0x400
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x14004b646
mov eax, dword [rbx + 0xc8]
sub eax, 3
cmp eax, 1
jbe case.0x14004b50d.0
lea rcx, [rbx + 0x78]
mov dword [rbx + 0xcc], edi
lea rdx, [0x1401c1b90]
call fcn.1400236e0
mov al, 1
add rsp, 0x880
pop rdi
pop rbx
pop rbp
ret
mov eax, dword [rsp + 0x44]
lea rdx, [rbx + 0x90]
lea rcx, [rbp - 0x80]
mov dword [rbx + 0xcc], eax
call fcn.1400156a0
mov al, 1
add rsp, 0x880
pop rdi
pop rbx
pop rbp
ret
xor al, al
add rsp, 0x880
pop rdi
pop rbx
pop rbp
ret