joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e29e4
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
cmp qword [rcx + 0xb0], 0
mov rdi, qword [rcx + 0xc0]
mov rbp, qword [rcx + 0xb8]
mov rsi, rcx
je 0x1400e2a41
call fcn.1400e58b8
mov rdx, qword [rsi + 0xb0]
mov r8d, 5
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rbp, rbp
je 0x1400e2a52
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rdi, rdi
mov ebx, 1
je 0x1400e2a8f
cmp word [rdi + 2], 0xffff
mov ecx, dword [rdi]
jne 0x1400e2a73
mov ecx, dword [rdi + 0xc]
movzx edx, word [rdi + 0x12]
movzx eax, word [rdi + 0x14]
jmp 0x1400e2a7b
mov dx, word [rdi + 0xa]
mov ax, word [rdi + 0xc]
test ecx, 0x1801
jne 0x1400e2a8d
test dx, dx
jne 0x1400e2a8d
test ax, ax
je 0x1400e2a8f
xor ebx, ebx
cmp qword [rsi + 0xb0], 0
je 0x1400e2aa2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400e31f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_624
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test rdx, 0xffffffffffff0000
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
jne 0x1400e3237
cmp dword [rcx + 0xa8], 0
jne 0x1400e3237
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.1400e58b8
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.1400e319c
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400e8890
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14017c820]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
lea r8, [rsp + 0x30]
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, eax
test eax, eax
jne 0x1400e898f
mov r9d, 0x104
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, eax
test eax, eax
jne 0x1400e8966
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.1400031c0
nop
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.1400e8890
mov ebx, eax
test eax, eax
setne byte [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400e894d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp byte [rsp + 0x20], 0
je 0x1400e8956
jmp 0x1400e8966
jmp 0x1400e88e6
cmp ebx, 0x103
je 0x1400e8976
cmp ebx, 0x3f2
jne 0x1400e8984
mov rdx, qword [rsi]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400efff0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400ea1fc
Capabilities:
Set thread local storage value

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 r12
push r13
push r14
sub rsp, 0x20
mov esi, 1
mov r14, r8
mov rdi, rdx
cmp dword [rdx + 0x10], esi
mov r12, rcx
mov ebp, esi
jle 0x1400ea289
lea ebx, [rsi + 7]
lea r13d, [rsi + 0xf]
test r14, r14
je 0x1400ea255
mov rax, qword [r12 + 0x10]
cmp qword [rax + r13 + 8], r14
je 0x1400ea255
mov rax, qword [rdi + 0x18]
cmp qword [rbx + rax], 0
je 0x1400ea275
xor esi, esi
jmp 0x1400ea275
mov rax, qword [rdi + 0x18]
mov rcx, qword [rbx + rax]
test rcx, rcx
je 0x1400ea26c
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rdi + 0x18]
and qword [rbx + rax], 0
add ebp, 1
add r13, 0x10
add rbx, 8
cmp ebp, dword [rdi + 0x10]
jl 0x1400ea235
test esi, esi
je 0x1400ea2d0
lea rcx, [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [r12 + 0x18]
mov rdx, rdi
call fcn.1400e9d1c
lea rcx, [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r11, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [r11]
mov ecx, dword [r12]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x1400ea554
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x14017c820]
xor rax, rsp
mov qword [rsp + 0x220], rax
test rcx, rcx
mov rbx, rdx
mov rdi, rcx
jne 0x1400ea589
call fcn.1400e6370
int3
test rdx, rdx
jne 0x1400ea594
call fcn.1400e6370
int3
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
and word [rsp + 0x20], 0
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x1fe
mov esi, eax
call fcn.1400f1600
mov r8d, 0x100
cmp esi, r8d
ja 0x1400ea5e6
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x1400ea5e6
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400ea5f2
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1400efff0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400f3ef0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x1400f3f2e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x1400f3f10
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x1400f4115
mov ecx, 3
call fcn.140106680
cmp eax, 1
je 0x1400f40cc
mov ecx, 3
call fcn.140106680
test eax, eax
jne 0x1400f3f65
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
je 0x1400f40cc
cmp edi, 0xfc
je 0x1400f4115
mov qword [rsp + 0x50], rbp
lea rbp, [0x140188020]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.1400f27f0
test eax, eax
je 0x1400f3fa9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400f5a20
lea rdx, [0x140188039]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14018813d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1400f3ff9
lea r8, str._program_name_unknown_
lea rcx, [0x140188039]
mov edx, 0x2fb
call fcn.1400f27f0
test eax, eax
je 0x1400f3ff9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400f5a20
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x140188039]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x1400f4048
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x140188334]
lea r9d, [rax + 3]
lea r8, [0x140130db4]
sub rdx, rcx
call fcn.1400f32e0
test eax, eax
je 0x1400f4048
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400f5a20
lea r8, [0x140130db0]
mov edx, 0x314
mov rcx, rbp
call fcn.1400f0ea0
test eax, eax
je 0x1400f4074
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400f5a20
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.1400f0ea0
test eax, eax
je 0x1400f40a4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400f5a20
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.140106420
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x1400f4115
cmp rax, 0xffffffffffffffff
je 0x1400f4115
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1400f4130
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.140106680
cmp eax, 1
je 0x1400f4162
mov ecx, 3
call fcn.140106680
test eax, eax
jne 0x1400f4216
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
jne 0x1400f4216
mov qword [rsp + 0x48], rbx
lea rbx, reloc.OLEAUT32.dll_SysReAllocString
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x1400f418e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x1400f4178
jmp 0x1400f4202
cmp edi, 0x17
jae 0x1400f4202
mov ecx, 3
call fcn.140106680
cmp eax, 1
je 0x1400f41b9
mov ecx, 3
call fcn.140106680
test eax, eax
jne 0x1400f4202
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
jne 0x1400f4202
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x1400f4202
cmp rax, 0xffffffffffffffff
je 0x1400f4202
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.1400f3ef0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x1400f4a30
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 [0x14018854c]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x1400f4a8c
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1400f4a6c
mov dword [0x14018854c], 1
jmp 0x1400f4a9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1400f4a86
mov dword [0x14018854c], 2
jmp 0x1400f4b09
mov eax, dword [0x14018854c]
cmp eax, 1
jne 0x1400f4b00
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1400f4ada
cmp word [rdi], bp
mov rax, rdi
je 0x1400f4ab9
add rax, 2
cmp word [rax], bp
jne 0x1400f4aa7
add rax, 2
cmp word [rax], bp
jne 0x1400f4aa7
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.1400fcf10
test rax, rax
mov rbx, rax
jne 0x1400f4ae1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1400f4bfb
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.1400f24b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x1400f4bfb
cmp eax, 2
je 0x1400f4b09
test eax, eax
jne 0x1400f4ada
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x1400f4ada
cmp byte [rax], bpl
mov rbx, rax
je 0x1400f4b58
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 0x1400f4ada
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 0x1400f4b20
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.1400fcf80
test rax, rax
mov r12, rax
jne 0x1400f4b7d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x1400f4bfb
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x1400f4be5
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 0x1400f4c0e
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 0x1400f4b90
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.1400f11f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x1400f4bf6
Function at 0x1400f5ac0
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 [0x140188560]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.1400f52d0
test rax, rax
je 0x1400f5b14
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 0x1400f5ba9
mov ecx, 2
call fcn.1401066e0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.1400f1600
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 0x1400f5b95
test ebx, ebx
jne 0x1400f5b95
lea ecx, [rax + 2]
call fcn.1401066e0
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 0x1400f8bb7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14017c820]
jne 0x1400f000a
rol rcx, 0x10
test cx, 0xffff
jne 0x1400f0006
repz ret
ror rcx, 0x10
jmp 0x1400f8b10
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140188620]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140188718]
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 0x1400f8b95
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, [0x140188620]
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 0x1400f8bb7
mov rax, qword [rsp + 0x88]
mov qword [0x140188718], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1401886b8], rax
mov rax, qword [0x140188718]
mov qword [0x140188590], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1401886a0], rax
mov dword [0x140188580], 0xc0000409
mov dword [0x140188584], 1
mov rax, qword [0x14017c820]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14017c828]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140188618], eax
mov ecx, 1
call fcn.1401066e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140130e60]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140188618], 0
jne 0x1400f8c3e
mov ecx, 1
call fcn.1401066e0
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 0x140106420
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.1400f51e0
xor ebx, ebx
cmp qword [0x140188eb0], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x14010654c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14010665f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14010665f
mov rcx, rax
call fcn.1400f5110
lea rdx, [0x1401310f0]
mov rcx, rsi
mov qword [0x140188eb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400f5110
lea rdx, [0x1401310d8]
mov rcx, rsi
mov qword [0x140188eb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400f5110
lea rcx, [rsp + 0x98]
mov qword [0x140188ec0], rax
call fcn.1400f38a0
test eax, eax
je 0x1401064ff
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1400f5a20
cmp dword [rsp + 0x98], 2
jne 0x14010654c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400f5110
test rax, rax
mov qword [0x140188ed0], rax
je 0x14010654c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400f5110
mov qword [0x140188ec8], rax
mov rcx, qword [0x140188ec8]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x1401065f8
cmp qword [0x140188ed0], rbp
je 0x1401065f8
call fcn.1400f52d0
mov rcx, qword [0x140188ed0]
mov rsi, rax
call fcn.1400f52d0
test rsi, rsi
mov r12, rax
je 0x1401065f8
test rax, rax
je 0x1401065f8
call rsi
test rax, rax
je 0x1401065c3
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 0x1401065c3
test byte [rsp + 0x40], 1
jne 0x1401065f8
lea rcx, [rsp + 0x30]
call fcn.1400f38f0
test eax, eax
je 0x1401065e5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1400f5a20
cmp dword [rsp + 0x30], 4
jb 0x1401065f2
bts edi, 0x15
jmp 0x140106636
bts edi, 0x12
jmp 0x140106636
mov rcx, qword [0x140188eb8]
cmp rcx, rbp
je 0x140106636
call fcn.1400f52d0
test rax, rax
je 0x140106636
call rax
test rax, rax
mov rbx, rax
je 0x140106636
mov rcx, qword [0x140188ec0]
cmp rcx, rbp
je 0x140106636
call fcn.1400f52d0
test rax, rax
je 0x140106636
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140188eb0]
call fcn.1400f52d0
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x14010665f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140106661
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x14010d9d0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14017c820]
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 0x14010da17
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400efff0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.1400f1240
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400efff0
add rsp, 0x38
ret

Function at 0x14010de90
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.1401066f0
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x14010e034
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.1401066f0
cmp rax, 0xffffffffffffffff
je 0x14010e034
mov qword [rsp + 0x40], rbx
mov rbx, rbp
mov qword [rsp + 0x50], r14
sub rbx, rax
test rbx, rbx
jle 0x14010dfb3
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 0x14010df39
call fcn.1400f35d0
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call fcn.1400f35d0
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.14010e100
mov r12d, eax
nop
mov r8d, ebx
cmp rbx, r14
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.1400f8c60
cmp eax, 0xffffffff
je 0x14010df75
cdqe
sub rbx, rax
test rbx, rbx
jg 0x14010df50
jmp 0x14010df8e
call fcn.1400f3600
cmp dword [rax], 5
jne 0x14010df8a
call fcn.1400f35d0
mov dword [rax], SafeArrayGetUBound
or rdi, 0xffffffffffffffff
mov edx, r12d
mov ecx, esi
call fcn.14010e100
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 0x14010e00c
test rbx, rbx
jns 0x14010e016
xor r8d, r8d
mov rdx, rbp
mov ecx, esi
call fcn.1401066f0
cmp rax, 0xffffffffffffffff
je 0x14010df1a
mov ecx, esi
call fcn.140107f00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb rdi, rdi
neg rdi
sub rdi, 1
cmp rdi, 0xffffffffffffffff
jne 0x14010e016
call fcn.1400f35d0
mov dword [rax], SafeArrayGetUBound
call fcn.1400f3600
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
cmp rdi, 0xffffffffffffffff
je 0x14010df1a
xor r8d, r8d
mov rdx, r13
mov ecx, esi
call fcn.1401066f0
cmp rax, 0xffffffffffffffff
je 0x14010df1a
xor eax, eax
jmp 0x14010df21
call fcn.1400f35d0
mov rbp, qword [rsp + 0x58]
mov eax, dword [rax]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
Function at 0x14010ff50
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x14017c820]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.1400f1600
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, DllRegisterServer
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.1400f1600
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 0x14010ffe3
cmp dword [rsp + 0x24], 5
jb 0x14010fffd
jmp 0x14010fff9
cmp dword [rsp + 0x30], esi
jne 0x14010fffd
cmp dword [rsp + 0x24], 4
ja 0x14010fff9
jne 0x14010fffd
cmp dword [rsp + 0x28], 0
jbe 0x14010fffd
mov byte [rbx + 0x18], sil
lea rax, [0x140132568]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.14010fe10
movzx ecx, byte [0x140189069]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x140189069], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400efff0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret