joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003364
Capabilities:
Check mutex on windows

Disassembly:
jmp 0x140012cc0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140012ce4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x10]
xor esi, esi
test rcx, rcx
je 0x140012d08
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rsi
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x10000080
mov edx, 0xc0000000
mov rcx, rdi
mov qword [rbx + 8], rsi
mov dword [rsp + 0x20], 1
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x140012d46
mov qword [rbx + 8], rsi
jmp 0x140012d79
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140012d68
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rsi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rbx + 0x10], rax
cmp qword [rbx + 8], rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
setne al
add rsp, 0x40
pop rdi
ret
Function at 0x140003805
Capabilities:
Get disk information

Disassembly:
jmp 0x14003c780
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x14015dda8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rsi, r9
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
lea rcx, [rsp + 0x20]
call fcn.140005a15
nop
cmp byte [rbx + 8], 0
je 0x14003c7cc
cmp dword [rbx + 0x20], 0
jne 0x14003c7cc
mov rcx, qword [rbx]
call fcn.1400020a9
mov byte [rbx + 8], 0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rsi
test rdi, rdi
je 0x14003c8bb
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140006cd5
lea rcx, [rsp + 0x20]
call fcn.14000452a
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call fcn.140006078
test eax, eax
jne 0x14003c847
test rdi, rdi
je 0x14003c8bb
mov dword [rbx + 0x20], eax
lea rdx, [rsp + 0x30]
lea rcx, [rbx + 0x158]
call fcn.140006cd5
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call fcn.140004e99
test eax, eax
je 0x14003c84e
xor bl, bl
jmp 0x14003c8db
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14003c860
lea rcx, [0x14011e210]
lea r8, [rsp + 0x30]
test rax, rax
cmove r8, rcx
lea rdx, [rbx + 0x158]
lea rcx, [rsp + 0x28]
call fcn.14000525e
lea rdx, [rbx + 0x28]
mov rcx, qword [rsp + 0x28]
call fcn.140001d1b
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x14003c8af
mov byte [rbx + 0x150], 1
mov byte [rbx + 8], 1
lea rcx, [rsp + 0x28]
call fcn.140003080
jmp 0x14003c8d7
mov rax, 0xffffffffffffffff
mov dword [rbx + 0x24], eax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rbx + 0x20], eax
cmp eax, 0
setne al
mov byte [rbx + 8], al
movzx ebx, byte [rbx + 8]
lea rcx, [rsp + 0x20]
call fcn.140003080
movzx eax, bl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140003b70
mov rbx, qword [rsp + 0x180]
add rsp, 0x150
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400038a5
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400f51a8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400f522f
mov rsi, rbx
cmp word [rax], bp
je 0x1400f51ee
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400f51d8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400f51d4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140001073
mov rdi, rax
test rax, rax
je 0x1400f521c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140003ba7
mov rbp, rdi
xor ecx, ecx
call fcn.1400012c1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400038b9
Capabilities:
Check mutex on windows
Read file on windows

Disassembly:
jmp 0x1400133f0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rax, rdx
xorps xmm0, xmm0
mov qword [rsp + 0x30], rbp
mov rdi, rcx
mov dword [rsp + 0x28], 0x10000080
movups xmmword [rcx], xmm0
lea r8d, [rbp + 3]
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rax
mov esi, ebp
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14001348f
mov ebx, ebp
xor dil, dil
test rbx, rbx
je 0x14001345a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x140013476
mov edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
movzx eax, dil
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rsi, rax
test rbx, rbx
je 0x140013449
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rcx, rbx
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1400134c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140013449
lea r9, [rsp + 0x60]
mov dword [rsp + 0x60], ebp
mov r8d, 4
mov qword [rsp + 0x20], rbp
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140013449
cmp dword [rsp + 0x60], 4
jne 0x140013449
lea rdx, [rdi + 4]
mov dword [rsp + 0x60], ebp
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rbp
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140013449
cmp dword [rsp + 0x60], 4
jne 0x140013449
lea rdx, [rdi + 8]
mov dword [rsp + 0x60], ebp
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rbp
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140013449
cmp dword [rsp + 0x60], 4
jne 0x140013449
lea rdx, [rdi + 0xc]
mov dword [rsp + 0x60], ebp
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rbp
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140013449
cmp dword [rsp + 0x60], 4
jne 0x140013449
mov dil, 1
jmp 0x14001344c
Function at 0x140003a58
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x14003b130
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov esi, r8d
mov rdi, rdx
mov rdx, rcx
movzx ecx, r9b
xor rcx, 1
sub rcx, 0x7fffffff
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test eax, eax
jne 0x14003b2c5
mov rbp, qword [rsp + 0x40]
mov qword [rsp + 0x38], rbp
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x88], ebx
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
cmp eax, 2
je 0x14003b21d
test eax, eax
jne 0x14003b240
mov eax, dword [rsp + 0x30]
cmp eax, 4
je 0x14003b216
cmp eax, 5
jne 0x14003b28f
mov edx, dword [rsp + 0x88]
mov byte [rsp + 0x8b], dl
mov eax, edx
shr eax, 8
mov byte [rsp + 0x8a], al
mov eax, edx
shr eax, 0x10
mov byte [rsp + 0x89], al
shr edx, 0x18
mov byte [rsp + 0x88], dl
mov esi, dword [rsp + 0x88]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov ecx, 4
call fcn.1400013de
mov qword [rsp + 0x50], rax
cmp edi, 0xea
jne 0x14003b266
test rax, rax
je 0x14003b278
mov rcx, rax
call fcn.140006519
jmp 0x14003b275
test rax, rax
je 0x14003b278
mov edx, edi
mov rcx, rax
call fcn.14000148d
mov rbx, rax
mov qword [rsp + 0x48], rbx
lea rdx, [0x14014f6b8]
lea rcx, [rsp + 0x48]
call fcn.1400071e9
int3
mov ecx, 4
call fcn.1400013de
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14003b2ae
mov rcx, rax
call fcn.140006519
mov rbx, rax
mov qword [rsp + 0x50], rbx
lea rdx, [0x14014f740]
lea rcx, [rsp + 0x50]
call fcn.1400071e9
nop
mov ecx, 4
call fcn.1400013de
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14003b2e8
mov edx, ebx
mov rcx, rax
call fcn.14000148d
mov rbx, rax
jmp 0x14003b2ea
xor ebx, ebx
mov qword [rsp + 0x38], rbx
lea rdx, [0x14014f6b8]
lea rcx, [rsp + 0x38]
call fcn.1400071e9
int3
Function at 0x140003b75
Capabilities:
Check mutex on windows

Disassembly:
jmp 0x140013670
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
movzx edi, r8b
mov rcx, qword [rcx + 8]
mov rsi, rdx
test rcx, rcx
je 0x14001369d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x10]
xor ebp, ebp
test rcx, rcx
je 0x1400136c1
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rbp
mov edx, 0xc0000000
mov qword [rsp + 0x30], rbp
mov eax, 0x80000000
mov dword [rsp + 0x28], 0x10000080
test dil, dil
mov qword [rbx + 8], rbp
mov rcx, rsi
mov dword [rsp + 0x20], 3
cmove edx, eax
xor r9d, r9d
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x14001370a
mov qword [rbx + 8], rbp
jmp 0x14001373d
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14001372c
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rbp
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rbx + 0x10], rax
cmp qword [rbx + 8], rbp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
setne al
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140003d82
Capabilities:
Create directory

Disassembly:
jmp 0x140012980
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x14015dda8]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor r9d, r9d
mov qword [rsp + 0x30], 0
movzx esi, dl
mov dword [rsp + 0x28], 0x2000080
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rbx, rcx
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
setne dil
je 0x1400129ea
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140012a65
test sil, sil
je 0x140012a65
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, eax
test al, al
jne 0x140012a69
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x140012a65
lea rcx, [rsp + 0x40]
sub rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140012a20
mov edx, 0x2f
lea rcx, [rsp + 0x40]
call fcn.1400072d4
test rax, rax
jne 0x140012a54
lea edx, [rax + 0x5c]
lea rcx, [rsp + 0x40]
call fcn.1400072d4
test rax, rax
je 0x140012a65
movzx edx, sil
mov byte [rax], 0
lea rcx, [rsp + 0x40]
call fcn.140003d82
movzx eax, dil
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140003b70
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140003ddc
Capabilities:
Get common file path

Disassembly:
jmp 0x14002ff20
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
movsxd rsi, edx
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x30], edi
call fcn.140005a15
mov dword [rsp + 0x30], 1
cmp esi, 7
ja case.default.0x14002ff67
lea rdx, [0x140000000]
mov ecx, dword [rdx + rsi*4 + 0x3016c]
add rcx, rdx
jmp rcx
lea rcx, [rsp + 0x60]
call fcn.14000512d
nop
mov rdx, rax
mov rcx, rbx
call fcn.140003d73
nop
lea rcx, [rsp + 0x60]
call fcn.140003080
jmp case.default.0x14002ff67
test rbx, rbx
je 0x14002ffa4
mov edx, 0x104
mov rcx, rbx
call fcn.140004df9
mov rdi, rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test rbx, rbx
mov edi, eax
je 0x14002ffcf
mov edx, 0xffffffff
mov rcx, rbx
call fcn.140004a5c
test edi, edi
je case.default.0x14002ff67
mov rcx, rbx
call fcn.1400035ad
jmp case.default.0x14002ff67
test rbx, rbx
je 0x14002fff8
mov edx, 0x104
mov rcx, rbx
call fcn.140004df9
jmp 0x14002fffb
mov rax, rdi
mov edx, 0x1c
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test rbx, rbx
mov esi, eax
je 0x140030027
mov edx, 0xffffffff
mov rcx, rbx
call fcn.140004a5c
test esi, esi
je case.default.0x14002ff67
jmp case.0x14002ff67.1
test rbx, rbx
je 0x14003004d
mov edx, 0x104
mov rcx, rbx
call fcn.140004df9
mov edx, 0x23
jmp 0x140030000
mov rax, rdi
mov edx, 0x23
jmp 0x140030000
lea rdx, [0x14011fd18]
lea rcx, [rsp + 0x60]
call fcn.140002ed7
nop
mov rdx, rax
mov rcx, rbx
call fcn.140003d73
nop
lea rcx, [rsp + 0x60]
call fcn.140003080
jmp case.default.0x14002ff67
lea rdx, [0x14011f580]
lea rcx, [rsp + 0x60]
call fcn.140002ed7
nop
mov rdx, rax
mov rcx, rbx
call fcn.140003d73
nop
lea rcx, [rsp + 0x60]
call fcn.140003080
mov rax, qword [rbx]
cmp qword [rax - 0x10], 0
je case.default.0x14002ff67
lea rdx, str.VST3_
mov rcx, rbx
call fcn.140002455
jmp case.default.0x14002ff67
lea rdx, [0x14011f598]
lea rcx, [rsp + 0x60]
call fcn.140002ed7
nop
mov rdx, rax
mov rcx, rbx
call fcn.140003d73
nop
jmp 0x1400300a2
lea rcx, [rsp + 0x60]
call fcn.14000512d
nop
mov rdx, rax
mov rcx, rbx
call fcn.140003d73
nop
lea rcx, [rsp + 0x60]
call fcn.140003080
lea rdx, str.VST3
mov rcx, rbx
call fcn.140002455
mov dl, 0x2f
mov rcx, rbx
call fcn.1400070a9
mov r8b, 0x2f
mov dl, 0x5c
mov rcx, rbx
call fcn.140004412
mov rax, qword [rbx]
cmp qword [rax - 0x10], 0
je 0x140030158
mov rcx, rbx
call fcn.14000452a
mov rcx, qword [rbx]
movsxd rax, dword [rcx - 0x10]
cmp byte [rax + rcx - 1], 0x2f
je 0x140030158
mov dl, 0x2f
mov rcx, rbx
call fcn.1400070a9
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140003de1
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14009736c
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1401256d8]
mov ecx, 2
lea r8, [0x1401256d0]
lea rdx, str.FlsGetValue
call fcn.140096e3c
mov ecx, ebx
test rax, rax
je 0x1400973a6
add rsp, 0x20
pop rbx
jmp qword [0x140186020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14000400c
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x14003afd0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x40
mov rsi, r9
mov r14, r8
mov r15, rdx
mov rdx, rcx
movzx ecx, byte [rsp + 0x70]
xor rcx, 1
sub rcx, 0x7fffffff
mov r8d, 0xf003f
call fcn.140003927
mov rbx, rax
xor dil, dil
xor ecx, ecx
mov dword [rsp + 0x70], ecx
mov dword [rsp + 0x30], ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14003b091
cmp dword [rsp + 0x30], 3
jne 0x14003b091
test r14, r14
je 0x14003b088
mov ecx, dword [rsp + 0x70]
test ecx, ecx
je 0x14003b08c
cmp qword [rsi], rcx
jb 0x14003b095
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14003b091
mov ecx, dword [rsp + 0x70]
mov dil, 1
jmp 0x14003b095
mov ecx, dword [rsp + 0x70]
mov qword [rsi], rcx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
movzx eax, dil
jmp 0x14003b0ad
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret
Function at 0x140004075
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400f5054
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400f5084
xor eax, eax
jmp 0x1400f5147
mov rbp, rbx
cmp word [rax], si
je 0x1400f50a9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400f5090
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400f508c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140005344
movsxd r14, eax
test eax, eax
jne 0x1400f50e7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400f507d
mov rcx, r14
call fcn.140001073
mov rdi, rax
test rax, rax
jne 0x1400f5100
xor ecx, ecx
call fcn.1400012c1
jmp 0x1400f50dc
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140005344
test eax, eax
jne 0x1400f5131
mov rcx, rdi
call fcn.1400012c1
jmp 0x1400f513b
xor ecx, ecx
call fcn.1400012c1
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140004142
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400eb584
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x14012aed8]
mov rbp, rcx
lea r8, [0x14012aed0]
lea rdx, str.GetLocaleInfoEx
mov ecx, 7
call fcn.1400eaaa0
test rax, rax
je 0x1400eb5e4
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x140186030]
jmp 0x1400eb5fe
xor edx, edx
mov rcx, rbp
call fcn.140003378
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140004156
Capabilities:
Terminate process

Disassembly:
jmp 0x140043cc4
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x14000438b
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400147e0
sub rsp, 0x38
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140014819
xor eax, eax
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
lea r8d, [rax + 4]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140014819
cmp dword [rsp + 0x40], 4
jne 0x140014819
mov al, 1
add rsp, 0x38
ret
xor al, al
add rsp, 0x38
ret

Function at 0x1400043f4
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400d05d4
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1400d0320

Function at 0x14000444e
Capabilities:
Write file on windows

Disassembly:
jmp 0x140014890
push rbx
push rsi
sub rsp, 0x38
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x1400148bb
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x1400148b0
jmp 0x1400148bd
xor al, al
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x30], rdi
mov byte [rsp + 0x50], al
test rcx, rcx
je 0x140014949
xor ebp, ebp
lea r9, [rsp + 0x58]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x58], ebp
mov qword [rsp + 0x20], rbp
lea r8d, [rbp + 1]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140014949
cmp dword [rsp + 0x58], 1
jne 0x140014949
movzx eax, byte [rsp + 0x50]
test al, al
je 0x140014936
mov rcx, qword [rsi + 8]
mov edi, eax
test rcx, rcx
je 0x140014949
lea r9, [rsp + 0x58]
mov dword [rsp + 0x58], ebp
mov r8d, eax
mov qword [rsp + 0x20], rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140014949
cmp dword [rsp + 0x58], edi
jne 0x140014949
mov al, 1
mov rdi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x60]
add rsp, 0x38
pop rsi
pop rbx
ret
mov rdi, qword [rsp + 0x30]
xor al, al
mov rbp, qword [rsp + 0x60]
add rsp, 0x38
pop rsi
pop rbx
ret
Function at 0x140004c32
Capabilities:
Clear file content

Disassembly:
jmp 0x14010f124
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140001ed8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140001ed8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14010f274
cmp rax, 0xffffffffffffffff
je 0x14010f274
xor edi, edi
test rbp, rbp
jle 0x14010f21f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400060af
mov rbx, rax
test rax, rax
jne 0x14010f1ac
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14010f215
mov edx, 0x8000
mov ecx, r14d
call fcn.140004fbb
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140005b55
cmp eax, 0xffffffff
je 0x14010f1f5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14010f1bc
mov edx, r15d
mov ecx, r14d
call fcn.140004fbb
jmp 0x14010f215
cmp byte [rsi + 0x38], dil
je 0x14010f20c
cmp dword [rsi + 0x34], 5
jne 0x14010f20c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14010f215
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400012c1
jmp 0x14010f288
jns 0x14010f288
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140001ed8
cmp rax, 0xffffffffffffffff
jne 0x14010f240
cmp byte [rsi + 0x30], dil
je 0x14010f288
mov edi, dword [rsi + 0x2c]
jmp 0x14010f288
mov ecx, r14d
call fcn.140006d2f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14010f288
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14010f288
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14010f281
mov eax, dword [rsi + 0x2c]
jmp 0x14010f286
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140001ed8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret