joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004fe8
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x140
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor esi, esi
xor edi, edi
mov r14, rcx
mov rbx, rdx
sub r14, rdx
mov rbp, rcx
mov r9d, esi
lea r8, str.IXP_03d.TMP
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140003688
inc esi
mov edx, 0x104
mov rcx, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140005061
mov al, byte [r14 + rcx]
test al, al
je 0x140005061
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140005042
test rdx, rdx
lea rax, [rcx - 1]
lea r8, [rsp + 0x20]
mov edx, 0x104
cmovne rax, rcx
mov rcx, rbx
mov byte [rax], dil
call fcn.14000896c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140005120
cmp esi, 0x190
jl 0x14000501f
mov r9, rbx
lea rdx, [0x14000ba0c]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
nop dword [rax + rax]
test eax, eax
je 0x1400050f5
mov rcx, rbx
mov edi, 1
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [rax + rax]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140008f40
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
test eax, eax
je 0x1400050b0
mov dword [0x14000ed60], 1
mov edi, 1
jmp 0x1400050f5

Function at 0x140005150
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
mov rsi, rdx
mov ebp, r8d
mov rdx, rcx
mov rdi, rcx
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov ebx, eax
cmp eax, ebp
ja 0x140005209
test rsi, rsi
je 0x140005209
test eax, eax
je 0x140005221
mov r8d, 0xa
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140005221
mov r9d, ebx
mov edx, ebp
mov r8, rax
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_memcpy_s]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x14000520b
Function at 0x140005ee0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbp, rcx
or rdi, 0xffffffffffffffff
inc rdi
cmp byte [rdi + rcx], 0
jne 0x140005efb
add edi, 0x14
mov ecx, 0x40
mov edx, edi
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140005f65
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDICopy
mov edx, 0x4b5
xor ecx, ecx
call fcn.1400061d8
call fcn.140006580
mov dword [0x14000f5a4], eax
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
test edi, edi
je 0x140005fad
cmp rbx, 0x7fffffff
ja 0x140005faa
mov edx, 0x7ffffffe
mov r8, rbp
sub rdx, rbx
mov rcx, rsi
sub r8, rsi
lea rax, [rdx + rbx]
test rax, rax
je 0x140005f9f
mov al, byte [r8 + rcx]
test al, al
je 0x140005f9f
mov byte [rcx], al
inc rcx
sub rbx, 1
jne 0x140005f83
test rbx, rbx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
lea r8, str.TMP4351_.TMP
mov edx, edi
mov rcx, rsi
call fcn.14000896c
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x4000080
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
cmp rbx, 0xffffffffffffffff
je 0x140005f42
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140005f42
test al, 0x10
je 0x140005f42
and dword [0x14000f5a4], 0
mov eax, 1
jmp 0x140005f4f

Function at 0x1400064a0
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, 0x30
mov rbx, qword [0x14000fed0]
mov rbp, r8
mov rcx, rbx
mov r8d, 5
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
test rax, rax
je 0x14000653b
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000653b
mov rax, qword [rsp + 0x60]
mov r9, rsi
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
test rax, rax
jne 0x140006512
and qword [rsp + 0x20], rax
jmp 0x140006517
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
nop dword [rax + rax]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
cmp rbx, 0xffffffffffffffff
jne 0x14000655f
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDICopy
mov edx, 0x4fb
xor ecx, ecx
call fcn.1400061d8
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400065a8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
lea rcx, str.kernelbase.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140006604
lea rdx, str.GetTempPath2A
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x140006604
mov rdx, rdi
mov ecx, 0x104
call fcn.14000a010
mov edi, eax
jmp 0x14000661f
mov rdx, rdi
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
nop dword [rax + rax]
mov edi, eax
test rbx, rbx
je 0x14000662e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x140006644
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edx, 0x104
lea r9, [0x14000f670]
lea rax, [rsp + 0x20]
mov r8d, edx
sub r9, rax
lea rcx, [rsp + 0x20]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x140006698
mov al, byte [r9 + rcx]
test al, al
je 0x140006698
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x140006679
test r8, r8
lea rax, [rcx - 1]
lea r8, str.advpack.dll
cmovne rax, rcx
lea rcx, [rsp + 0x20]
mov byte [rax], 0
call fcn.14000896c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400066ea
test al, 0x10
jne 0x1400066ea
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
nop dword [rax + rax]
jmp 0x1400066fd
lea rcx, str.advpack.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140008f40
add rsp, 0x148
ret
Function at 0x140007090
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rbp + 0x170], rax
and dword [rsp + 0x50], 0
mov rbx, rcx
mov esi, 1
test rcx, rcx
jne 0x1400070d1
xor eax, eax
jmp 0x140007283
xor eax, eax
xorps xmm0, xmm0
mov qword [rsp + 0x68], rax
xor r9d, r9d
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rsp + 0x40], rdx
mov rdx, rbx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
and dword [rsp + 0x20], 0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
nop dword [rax + rax]
test eax, eax
je 0x140007216
mov rcx, qword [rsp + 0x58]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
nop dword [rax + rax]
cmp dword [0x14000ed68], 0
mov edi, dword [rsp + 0x50]
jne 0x140007181
mov eax, dword [0x14000febc]
test sil, al
je 0x140007181
test al, 2
jne 0x140007181
mov eax, edi
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x140007181
mov dword [0x14000febc], edi
test dword [0x14000fec4], 0x800
je 0x140007195
mov dword [0x14000f5a4], edi
jmp 0x1400071df
cmp dword [0x14000f5a0], 0
jne 0x1400071d5
movzx ecx, word [0x14000fed8]
mov ebx, dword [0x14000fedc]
call fcn.1400034f4
cmp ebx, eax
jne 0x1400071d5
mov eax, edi
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x1400071c7
test sil, dil
jne 0x1400071d5
test dword [0x14000fec4], 0x200
je 0x1400071df
jmp 0x14000718d
mov dword [0x14000f5a4], 0xbc2
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test dword [0x14000fec4], 0x400
je 0x140007281
cmp dword [rsp + 0x50], 0
jge 0x140007281
jmp 0x14000727f
call fcn.140006580
mov dword [0x14000f5a4], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
and qword [rsp + 0x30], 0
xor r9d, r9d
mov r8d, eax
mov dword [rsp + 0x28], 0x200
lea rax, [rsp + 0x70]
xor edx, edx
mov ecx, 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
nop dword [rax + rax]
and dword [rsp + 0x28], 0
lea r9, [rsp + 0x70]
mov r8, rbx
mov dword [rsp + 0x20], FDICopy
mov edx, 0x4c4
xor ecx, ecx
call fcn.1400061d8
xor esi, esi
mov eax, esi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140008f40
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007c68
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
mov rbp, rcx
xor r9d, r9d
mov edi, 1
jmp 0x140007d04
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140007d4e
lea r8, [rax + 8]
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x140007cce
mov edx, dword [rbx + 4]
lea r9, [rax + 1]
mov ecx, dword [rbx]
add r9, r8
mov rax, rbp
call fcn.14000a010
mov rcx, rbx
test eax, eax
je 0x140007d3e
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
add esi, edi
mov r9d, esi
lea r8, str.UPDFILE_lu
mov edx, reloc.Cabinet.dll_FDICreate
lea rcx, [rsp + 0x30]
call fcn.140003688
mov r8d, 0xa
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
test rax, rax
jne 0x140007c9a
jmp 0x140007d5a
xor edi, edi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
jmp 0x140007d5a
mov dword [0x14000f5a4], 0x80070714
xor edi, edi
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140008f40
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x1400080ac
Capabilities:
Check os version
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetVersion]
nop dword [rax + rax]
xor esi, esi
movzx edx, al
test eax, eax
mov r9d, esi
cmovns r9d, edx
cmp r9d, 6
jb 0x140008124
lea rcx, [0x14000b880]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
test rax, rax
je 0x140008124
lea rdx, str.HeapSetInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x140008124
xor r9d, r9d
lea edx, [rsi + 1]
xor r8d, r8d
xor ecx, ecx
call fcn.14000a010
mov rdx, rbx
mov dword [0x14000f5a4], esi
mov rcx, rdi
call fcn.140005810
test eax, eax
je 0x1400081e0
call fcn.140004714
mov ebx, eax
call fcn.1400043f4
test ebx, ebx
je 0x1400081e0
cmp byte [0x14000ed7a], sil
jne 0x1400081e0
mov edi, dword [0x14000febc]
test dil, 1
je 0x1400081e0
test dil, 2
jne 0x14000818e
cmp dword [0x14000f5a0], esi
jne 0x14000818e
movzx ecx, word [0x14000fed8]
mov ebx, dword [0x14000fedc]
call fcn.1400034f4
cmp ebx, eax
je 0x1400081e0
test dil, 4
jne 0x1400081bf
mov dword [rsp + 0x28], 4
lea r8, [0x14000b760]
xor r9d, r9d
mov dword [rsp + 0x20], 0x40
mov edx, 0x522
xor ecx, ecx
call fcn.1400061d8
cmp eax, 6
jne 0x1400081e0
cmp word [0x14000fed8], si
jne 0x1400081db
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
nop dword [rax + rax]
jmp 0x1400081e0
call fcn.1400033c8
mov rcx, qword [0x14000e890]
test rcx, rcx
je 0x1400081f8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, dword [0x14000f5a4]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400084f0
Capabilities:
Create directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
lea r13, [0x14000f0a0]
mov rsi, rcx
mov ebx, edx
mov rax, r13
lea rcx, [0x14000f5a0]
lea edi, [r15 + 1]
cmp dword [rax], edi
je 0x14000853a
add r15d, edi
add rax, 0x20
cmp rax, rcx
jl 0x14000852a
cmp r15d, 0x28
jne 0x14000856d
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [0x14000e888]
xor r8d, r8d
mov edx, 0x4bb
mov dword [rsp + 0x20], FDICopy
call fcn.1400061d8
or rax, 0xffffffffffffffff
jmp 0x140008726
lea rdx, str.MEMCAB
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
nop dword [rax + rax]
test eax, eax
jne 0x1400085c4
test ebx, 0x10b
jne 0x140008564
movsxd rdx, r15d
mov rcx, rdx
shl rcx, 5
and dword [rcx + r13], eax
mov rax, qword [0x14000f5c0]
and dword [rcx + r13 + 0x10], 0
mov qword [rcx + r13 + 8], rax
mov eax, dword [0x14000f5c8]
mov dword [rcx + r13 + 0x14], eax
mov dword [rcx + r13 + 4], edi
jmp 0x140008723
test bl, 8
je 0x1400085d2
or rcx, 0xffffffffffffffff
jmp 0x1400086fd
mov eax, ebx
and al, 3
neg al
sbb ebp, ebp
and ebp, 0xc0000000
add ebp, 0x80000000
bt ebx, 8
jae 0x140008608
bt ebx, 0xa
jae 0x1400085f6
mov ebx, edi
jmp 0x140008618
and ebx, 0x200
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 4
jmp 0x140008618
and ebx, 0x200
neg ebx
sbb ebx, ebx
and ebx, 2
add ebx, 3
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, ebp
mov dword [rsp + 0x20], ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400086fd
cmp ebx, 3
je 0x1400086fd
cmp byte [rsi], 0
je 0x1400086d1
mov al, byte [rsi + 1]
lea rdi, [rsi + 2]
xor r14d, r14d
cmp al, 0x3a
jne 0x140008675
cmp byte [rdi], 0x5c
jne 0x140008675
lea rdi, [rsi + 3]
jmp 0x140008684
cmp byte [rsi], 0x5c
jne 0x140008688
cmp al, 0x5c
jne 0x140008688
mov r14d, 2
mov al, byte [rdi]
jmp 0x1400086cd
lea rdi, [rsi + 1]
jmp 0x1400086cd
cmp al, 0x5c
jne 0x1400086b9
cmp byte [rdi - 1], 0x3a
je 0x1400086b9
test r14d, r14d
je 0x1400086a2
dec r14d
jmp 0x1400086b9
xor edx, edx
mov byte [rdi], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
mov byte [rdi], 0x5c
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov rdi, rax
mov al, byte [rax]
test al, al
jne 0x14000868e
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, ebp
mov dword [rsp + 0x20], ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov rcx, rax
movsxd rdx, r15d
mov rax, rdx
shl rax, 5
mov qword [rax + r13 + 0x18], rcx
cmp rcx, 0xffffffffffffffff
je 0x14000871f
and dword [rax + r13], 0
and dword [rax + r13 + 4], 0
jmp 0x140008723
or rdx, 0xffffffffffffffff
mov rax, rdx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret
Function at 0x140008cb0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edx, edx
lea rcx, [rbp - 0x65]
mov r8d, 0x90
call sub.msvcrt.dll_memset
mov esi, dword [0x14000e27c]
xor edi, edi
mov qword [rbp - 0x71], rdi
mov dword [rbp - 0x75], edi
mov dword [rbp - 0x79], InitCommonControls
cmp esi, 0xfffffffe
jne 0x140008e5a
lea rcx, [rbp - 0x69]
mov dword [0x14000e27c], edi
mov dword [rbp - 0x69], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
nop dword [rax + rax]
test eax, eax
je 0x140008e54
lea esi, [rdi + 1]
cmp dword [rbp - 0x59], esi
jne 0x140008e54
cmp dword [rbp - 0x65], 4
jne 0x140008e54
cmp dword [rbp - 0x61], 0xa
jae 0x140008e54
lea ecx, [rdi + 0x4a]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
nop dword [rax + rax]
test eax, eax
je 0x140008e54
lea rax, [rbp - 0x71]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Control_PanelDesktopResourceLocale
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x140008e54
mov rcx, qword [rbp - 0x71]
lea rax, [rbp - 0x79]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x75]
lea rax, [rbp + 0x37]
xor r8d, r8d
lea rdx, [0x14000b760]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x71]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x140008e54
lea r8, [rbp + 0x37]
mov al, byte [r8]
sub al, 0x30
cmp al, 9
ja 0x140008dfa
movsx eax, byte [r8]
add edi, 0xfffffffd
shl edi, 4
add edi, eax
jmp 0x140008e20
mov al, byte [r8]
sub al, 0x20
cmp byte [r8], 0x61
movzx edx, al
movzx eax, byte [r8]
cmovl edx, eax
movsx ecx, dl
lea eax, [rcx - 0x41]
cmp eax, 5
ja 0x140008e34
shl edi, 4
add edi, 0xffffffc9
add edi, ecx
mov rcx, r8
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov r8, rax
jmp 0x140008de3
lea rax, [rbp + 0x37]
cmp r8, rax
je 0x140008e54
and edi, 0x3ff
cmp edi, esi
je 0x140008e4c
cmp edi, 0xd
jne 0x140008e54
mov dword [0x14000e27c], esi
jmp 0x140008e5a
mov esi, dword [0x14000e27c]
mov eax, esi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140008f40
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140108400]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140108410]
mov dword [rax], 1
mov rax, qword [0x140108420]
mov dword [rax], 1
mov rax, qword [0x140108360]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1401083f0]
mov dword [0x14013700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1401084f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1401084d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1401077b0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x14000153b
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov r8, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
mov r9, r8
mov r8, rcx
mov rcx, rax
call sym.fwrite
add rsp, 0x20
pop rbp
ret

Function at 0x1400015bd
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov rax, qword [rbp + 0x20]
mov r8d, 0
lea rdx, str._USERNAME_
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.find_char_const__unsigned_long_long__const
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0xffffffffffffffff
je 0x140001657
lea rax, str.USERNAME
mov rcx, rax
call sym.getenv
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140001657
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x20]
mov r9, rcx
mov r8d, 0xa
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.replace_unsigned_long_long__unsigned_long_long__char_const_
jmp 0x140001657
nop
mov rax, qword [rbp + 0x20]
add rsp, 0x38
pop rbx
pop rbp
ret
Function at 0x140002b27
Capabilities:
Set file attributes

Disassembly:
push rbp
push rbx
sub rsp, 0xd8
lea rbp, [rsp + 0xd0]
lea rax, [rbp - 0x80]
mov r8d, 2
lea rdx, str.hidden_folder
mov rcx, rax
call method.std::filesystem::__cxx11::path::path_char__14___std::filesystem::__cxx11.path__char_const_____14___std::filesystem::__cxx11::path::format_
lea rax, [rbp - 0x50]
mov rcx, rax
call method.std::filesystem.temp_directory_path_abi:cxx11___
lea rax, [rbp - 0xb0]
lea rcx, [rbp - 0x80]
lea rdx, [rbp - 0x50]
mov r8, rcx
mov rcx, rax
call method.std::filesystem::__cxx11.operator__std::filesystem::__cxx11::path_const__std::filesystem::__cxx11::path_const_
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.1400a3ba0
lea rax, [rbp - 0x80]
mov rcx, rax
call fcn.1400a3ba0
lea rax, [rbp - 0xb0]
mov rcx, rax
call method.std::filesystem.exists_std::filesystem::__cxx11::path_const_
xor eax, 1
test al, al
je 0x140002bf0
lea rax, [rbp - 0xb0]
mov rcx, rax
call method.std::filesystem.create_directory_std::filesystem::__cxx11::path_const_
lea rax, [rbp - 0x20]
lea rdx, [rbp - 0xb0]
mov rcx, rax
call method.std::filesystem::__cxx11::path.string___const
lea rax, [rbp - 0x20]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call rax
lea rax, [rbp - 0x20]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp - 0xb0]
mov rcx, rax
call fcn.1400a3ba0
jmp 0x140002c5b
add rsp, 0xd8
pop rbx
pop rbp
ret