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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov eax, dword [0x14043439c]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x1400a79fc
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1400a79dc
mov dword [0x14043439c], 1
jmp 0x1400a7a0f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1400a79f6
mov dword [0x14043439c], 2
jmp 0x1400a7a79
mov eax, dword [0x14043439c]
cmp eax, 1
jne 0x1400a7a70
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1400a7a4a
cmp word [rdi], bp
mov rax, rdi
je 0x1400a7a29
add rax, 2
cmp word [rax], bp
jne 0x1400a7a17
add rax, 2
cmp word [rax], bp
jne 0x1400a7a17
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.1400b3e20
test rax, rax
mov rbx, rax
jne 0x1400a7a51
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1400a7b6b
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.1400a0af0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x1400a7b6b
cmp eax, 2
je 0x1400a7a79
test eax, eax
jne 0x1400a7a4a
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x1400a7a4a
cmp byte [rax], bpl
mov rbx, rax
je 0x1400a7ac8
nop
or r9d, 0xffffffff
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1400a7a4a
or rcx, 0xffffffffffffffff
add ebp, eax
mov rdi, rbx
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rbx, rcx
cmp byte [rbx], al
jne 0x1400a7a90
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.1400b3e90
test rax, rax
mov r12, rax
jne 0x1400a7aed
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x1400a7b6b
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x1400a7b55
nop
or r9d, 0xffffffff
mov eax, ebp
mov rcx, rbx
sub rcx, r12
lea edx, [r9 + 2]
mov r8, r13
sar rcx, 1
sub eax, ecx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1400a7b7e
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
add r13, rcx
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp byte [r13], al
not rcx
lea rbx, [rbx + rcx*2]
jne 0x1400a7b00
mov rcx, rsi
mov word [rbx], 0
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rcx, r12
call fcn.1400a32b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x1400a7b66
Function at 0x1400a8da0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x1404343b0]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.1400a8360
test rax, rax
je 0x1400a8df4
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x1400a8e89
mov ecx, 2
call fcn.1400bbb00
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.1400a09f0
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x1400a8e75
test ebx, ebx
jne 0x1400a8e75
lea ecx, [rax + 2]
call fcn.1400bbb00
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400b26e7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140134780]
jne 0x1400a198a
rol rcx, 0x10
test cx, 0xffff
jne 0x1400a1986
repz ret
ror rcx, 0x10
jmp 0x1400b2640
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1404344c0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1404345b8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400b26c5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1404344c0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400b26e7
mov rax, qword [rsp + 0x88]
mov qword [0x1404345b8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140434558], rax
mov rax, qword [0x1404345b8]
mov qword [0x140434430], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140434540], rax
mov dword [0x140434420], 0xc0000409
mov dword [0x140434424], 1
mov rax, qword [0x140134780]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140134788]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1404344b8], eax
mov ecx, 1
call fcn.1400bbb00
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, str._DC_
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1404344b8], 0
jne 0x1400b276e
mov ecx, 1
call fcn.1400bbb00
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400bb590
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400a8270
xor ebx, ebx
cmp qword [0x140434cf0], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x1400bb6bc
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x1400bb7cf
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400bb7cf
mov rcx, rax
call fcn.1400a81a0
lea rdx, [0x140103ca0]
mov rcx, rsi
mov qword [0x140434cf0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400a81a0
lea rdx, [0x140103c88]
mov rcx, rsi
mov qword [0x140434cf8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400a81a0
lea rcx, [rsp + 0x98]
mov qword [0x140434d00], rax
call fcn.1400a3810
test eax, eax
je 0x1400bb66f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1400a8c10
cmp dword [rsp + 0x98], 2
jne 0x1400bb6bc
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400a81a0
test rax, rax
mov qword [0x140434d10], rax
je 0x1400bb6bc
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400a81a0
mov qword [0x140434d08], rax
mov rcx, qword [0x140434d08]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x1400bb768
cmp qword [0x140434d10], rbp
je 0x1400bb768
call fcn.1400a8360
mov rcx, qword [0x140434d10]
mov rsi, rax
call fcn.1400a8360
test rsi, rsi
mov r12, rax
je 0x1400bb768
test rax, rax
je 0x1400bb768
call rsi
test rax, rax
je 0x1400bb733
lea rcx, [rsp + 0x34]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400bb733
test byte [rsp + 0x40], 1
jne 0x1400bb768
lea rcx, [rsp + 0x30]
call fcn.1400a3900
test eax, eax
je 0x1400bb755
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1400a8c10
cmp dword [rsp + 0x30], 4
jb 0x1400bb762
bts edi, 0x15
jmp 0x1400bb7a6
bts edi, 0x12
jmp 0x1400bb7a6
mov rcx, qword [0x140434cf8]
cmp rcx, rbp
je 0x1400bb7a6
call fcn.1400a8360
test rax, rax
je 0x1400bb7a6
call rax
test rax, rax
mov rbx, rax
je 0x1400bb7a6
mov rcx, qword [0x140434d00]
cmp rcx, rbp
je 0x1400bb7a6
call fcn.1400a8360
test rax, rax
je 0x1400bb7a6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140434cf0]
call fcn.1400a8360
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x1400bb7cf
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1400bb7d1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400d23a0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0xb0
mov rax, qword [0x140134780]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov esi, ecx
mov r9d, 0x78
and ecx, 0x3ff
mov rbp, r8
mov ebx, edx
lea edx, [r9 - 0x77]
lea r8, [rsp + 0x20]
bts ecx, 0xa
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1400d2489
movzx ecx, byte [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0xc8], rdi
test cl, cl
lea r8, [rsp + 0x20]
mov edi, edx
je 0x1400d243a
nop
lea eax, [rcx - 0x61]
add r8, 1
cmp al, 5
ja 0x1400d2420
add cl, 0xd9
jmp 0x1400d242a
lea eax, [rcx - 0x41]
cmp al, 5
ja 0x1400d242a
add cl, 0xf9
movsx eax, cl
mov cl, byte [r8]
add edi, edi
test cl, cl
lea edi, [rax + rdi*8 - 0x30]
jne 0x1400d2410
cmp esi, edi
je 0x1400d247c
test ebx, ebx
je 0x1400d247c
mov rdi, qword [rbp]
movzx eax, byte [rdi]
lea rcx, [rdi + 1]
nop
cmp al, 0x41
jl 0x1400d2458
cmp al, 0x5a
jle 0x1400d245e
sub al, 0x61
cmp al, 0x19
ja 0x1400d2469
mov al, byte [rcx]
add edx, 1
add rcx, 1
jmp 0x1400d2450
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp edx, ecx
je 0x1400d2481
mov eax, 1
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400a1970
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x1400d3020
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140134780]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1400d3067
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400a1970
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.1400dd5a0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400a1970
add rsp, 0x38
ret
Function at 0x1400dcf90
Capabilities:
Get geographical location

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x40
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], rdi
mov rax, qword [0x140134780]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x140434da0]
mov r15, r9
mov r13d, r8d
test eax, eax
mov r14d, edx
mov rbx, rcx
jne 0x1400dd011
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400dcff4
mov dword [0x140434da0], 1
jmp 0x1400dd016
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1400dd00b
mov dword [0x140434da0], 2
jmp 0x1400dd03b
mov eax, dword [0x140434da0]
cmp eax, 1
jne 0x1400dd02e
mov r9d, dword [rbp + 0x60]
mov r8, r15
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x1400dd142
cmp eax, 2
je 0x1400dd03b
test eax, eax
jne 0x1400dd140
mov esi, dword [rbp + 0x68]
xor edi, edi
test esi, esi
jne 0x1400dd04a
mov rax, qword [rbx]
mov esi, dword [rax + 4]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
movsxd r12, eax
je 0x1400dd140
jle 0x1400dd140
xor edx, edx
mov rax, 0xffffffffffffffe0
mov rcx, r12
div r12
cmp rax, 1
jb 0x1400dd140
add rcx, 0x10
cmp rcx, 0x400
ja 0x1400dd0c8
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x1400dd0a6
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400ec240
sub rsp, rax
lea rbx, [rsp + 0x30]
test rbx, rbx
je 0x1400dd140
mov dword [rbx], 0xcccc
jmp 0x1400dd0db
call fcn.1400a3350
test rax, rax
mov rbx, rax
je 0x1400dd0df
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x1400dd140
mov r9d, r12d
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1400dd12a
mov eax, dword [rbp + 0x60]
or r9d, 0xffffffff
mov r8, rbx
test eax, eax
lea edx, [r9 + 2]
mov ecx, esi
jne 0x1400dd119
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
jmp 0x1400dd122
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
cmp dword [rbx - 0x10], 0xdddd
lea rcx, [rbx - 0x10]
jne 0x1400dd13c
call fcn.1400a32b0
mov eax, edi
jmp 0x1400dd142
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.1400a1970
mov rbx, qword [rbp + 0x40]
mov rsi, qword [rbp + 0x48]
mov rdi, qword [rbp + 0x50]
lea rsp, [rbp + 0x10]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400dd2a0
Capabilities:
Get geographical location

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x50
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], rdi
mov rax, qword [0x140134780]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x140434da4]
mov r15, r9
mov r13d, r8d
test eax, eax
mov r14d, edx
mov rbx, rcx
jne 0x1400dd358
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400dd304
mov dword [0x140434da4], 1
jmp 0x1400dd366
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1400dd352
mov dword [0x140434da4], 2
mov r9d, dword [rbp + 0x60]
mov r8, r15
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.1400a1970
mov rbx, qword [rbp + 0x40]
mov rsi, qword [rbp + 0x48]
mov rdi, qword [rbp + 0x50]
lea rsp, [rbp + 0x10]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, dword [0x140434da4]
cmp eax, 2
je 0x1400dd319
test eax, eax
je 0x1400dd319
cmp eax, 1
jne 0x1400dd38e
mov esi, dword [rbp + 0x68]
xor edi, edi
test esi, esi
jne 0x1400dd375
mov rax, qword [rbx]
mov esi, dword [rax + 4]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
movsxd r12, eax
jne 0x1400dd392
xor eax, eax
jmp 0x1400dd32c
jle 0x1400dd38e
xor edx, edx
mov rax, 0xffffffffffffffe0
div r12
cmp rax, 2
jb 0x1400dd38e
lea rcx, [r12 + r12 + 0x10]
cmp rcx, 0x400
ja 0x1400dd3e5
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x1400dd3c7
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400ec240
sub rsp, rax
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x1400dd38e
mov dword [rbx], 0xcccc
jmp 0x1400dd3f8
call fcn.1400a3350
test rax, rax
mov rbx, rax
je 0x1400dd3fc
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x1400dd38e
mov r9d, r12d
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400dd44f
mov eax, dword [rbp + 0x60]
or r9d, 0xffffffff
xor edx, edx
test eax, eax
mov qword [rsp + 0x38], rdi
mov r8, rbx
mov ecx, esi
mov qword [rsp + 0x30], rdi
jne 0x1400dd43e
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
jmp 0x1400dd447
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
cmp dword [rbx - 0x10], 0xdddd
lea rcx, [rbx - 0x10]
jne 0x1400dd461
call fcn.1400a32b0
mov eax, edi
jmp 0x1400dd32c
Function at 0x1400ddc80
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x140134780]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov qword [r11 + 8], rbp
lea rdx, [rsp + 0x20]
xor ebx, ebx
mov ecx, 0x105
mov qword [r11 + 0x10], rsi
lea rdi, [rsp + 0x20]
mov ebp, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp eax, 0x104
mov esi, eax
jle 0x1400ddd18
mov qword [rsp + 0x160], r12
lea r12d, [rax + 1]
lea edx, [rbx + 1]
movsxd rcx, r12d
call fcn.1400b3e90
test rax, rax
mov rdi, rax
jne 0x1400ddcf9
call fcn.1400a3e40
mov esi, ebx
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
jmp 0x1400ddd10
test esi, esi
mov ebp, 1
je 0x1400ddd10
mov rdx, rax
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov r12, qword [rsp + 0x160]
test esi, esi
mov rsi, qword [rsp + 0x158]
je 0x1400ddd37
cmp byte [rdi + 1], 0x3a
jne 0x1400ddd42
movzx ecx, byte [rdi]
call fcn.1400e5550
lea ebx, [rax - 0x40]
jmp 0x1400ddd42
call fcn.1400a3e40
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
test ebp, ebp
mov rbp, qword [rsp + 0x150]
je 0x1400ddd56
mov rcx, rdi
call fcn.1400a32b0
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400a1970
mov rbx, qword [rsp + 0x168]
add rsp, 0x140
pop rdi
ret
Function at 0x1400dde90
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
test ecx, ecx
mov ebp, r8d
mov rdi, rdx
mov ebx, ecx
je 0x1400ddf0d
lea eax, [rcx + 0x40]
lea rcx, [rsp + 0x78]
mov byte [rsp + 0x79], 0x3a
mov byte [rsp + 0x7a], VarDateFromDisp
mov byte [rsp + 0x7b], 0
mov byte [rsp + 0x78], al
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x1400dded2
cmp eax, 1
jne 0x1400ddf14
call fcn.1400a3e70
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayDestroy
call fcn.1400a3e40
xor esi, esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], SafeArrayDestroy
mov qword [rsp + 0x20], rsi
call fcn.1400a8da0
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
call fcn.1400ddc80
mov ebx, eax
test rdi, rdi
je 0x1400ddf54
test ebp, ebp
jg 0x1400ddf4d
call fcn.1400a3e40
xor esi, esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
mov qword [rsp + 0x20], rsi
call fcn.1400a8da0
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov esi, ebp
mov byte [rdi], 0
jmp 0x1400ddf56
xor esi, esi
test ebx, ebx
je 0x1400ddf72
add bl, 0x40
mov byte [rsp + 0x61], 0x3a
mov byte [rsp + 0x62], 0x2e
mov byte [rsp + 0x60], bl
mov byte [rsp + 0x63], 0
jmp 0x1400ddf7c
mov byte [rsp + 0x60], 0x2e
mov byte [rsp + 0x61], 0
lea r9, [rsp + 0x30]
lea rcx, [rsp + 0x60]
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x1400de03b
test rdi, rdi
je 0x1400ddfcf
cmp eax, esi
jge 0x1400ddfb2
mov rax, rdi
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
call fcn.1400a3e40
mov dword [rax], SafeArrayDestroyData
mov byte [rdi], 0
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
cmp eax, ebp
mov edx, 1
cmovg ebp, eax
movsxd rcx, ebp
call fcn.1400a5420
test rax, rax
mov rbx, rax
jne 0x1400de00e
call fcn.1400a3e40
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call fcn.1400a3e70
mov dword [rax], 8
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
lea r9, [rsp + 0x30]
lea rcx, [rsp + 0x60]
mov r8, rax
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x1400de03b
cmp eax, ebp
jge 0x1400de03b
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a3ea0
mov rbx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400e3ef0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
sub rsp, 0x20
mov rbp, rdx
xor edi, edi
xor edx, edx
lea r8d, [rdi + 1]
mov esi, ecx
call fcn.1400d3320
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x1400e4094
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.1400d3320
cmp rax, 0xffffffffffffffff
je 0x1400e4094
mov qword [rsp + 0x40], rbx
mov rbx, rbp
mov qword [rsp + 0x50], r14
sub rbx, rax
test rbx, rbx
jle 0x1400e4013
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x1400e3f99
call fcn.1400a3e40
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call fcn.1400a3e40
mov eax, dword [rax]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
mov edx, 0x8000
mov ecx, esi
mov qword [rsp + 0x48], r12
call fcn.1400e4450
mov r12d, eax
nop
mov r8d, ebx
cmp rbx, r14
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.1400d3530
cmp eax, 0xffffffff
je 0x1400e3fd5
cdqe
sub rbx, rax
test rbx, rbx
jg 0x1400e3fb0
jmp 0x1400e3fee
call fcn.1400a3e70
cmp dword [rax], 5
jne 0x1400e3fea
call fcn.1400a3e40
mov dword [rax], SafeArrayDestroy
or rdi, 0xffffffffffffffff
mov edx, r12d
mov ecx, esi
call fcn.1400e4450
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x48]
jmp 0x1400e406c
test rbx, rbx
jns 0x1400e4076
xor r8d, r8d
mov rdx, rbp
mov ecx, esi
call fcn.1400d3320
cmp rax, 0xffffffffffffffff
je 0x1400e3f7a
mov ecx, esi
call fcn.1400d9b10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb rdi, rdi
neg rdi
sub rdi, 1
cmp rdi, 0xffffffffffffffff
jne 0x1400e4076
call fcn.1400a3e40
mov dword [rax], SafeArrayDestroy
call fcn.1400a3e70
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
cmp rdi, 0xffffffffffffffff
je 0x1400e3f7a
xor r8d, r8d
mov rdx, r13
mov ecx, esi
call fcn.1400d3320
cmp rax, 0xffffffffffffffff
je 0x1400e3f7a
xor eax, eax
jmp 0x1400e3f81
call fcn.1400a3e40
mov rbp, qword [rsp + 0x58]
mov eax, dword [rax]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
Function at 0x1400eb750
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140134780]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.1400a09f0
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, reloc.OLEAUT32.dll_SysStringByteLen
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.1400a09f0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x1400eb7e3
cmp dword [rsp + 0x24], 5
jb 0x1400eb7fd
jmp 0x1400eb7f9
cmp dword [rsp + 0x30], esi
jne 0x1400eb7fd
cmp dword [rsp + 0x24], 4
ja 0x1400eb7f9
jne 0x1400eb7fd
cmp dword [rsp + 0x28], 0
jbe 0x1400eb7fd
mov byte [rbx + 0x18], sil
lea rax, [0x140109ea0]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.1400eb0c4
movzx ecx, byte [0x140430198]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x140430198], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400a1970
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret