joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017470
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
cmp dword [0x1400302f0], 0xffffffff
jne 0x14001751d
lea r8, [rsp + 0x30]
lea rdx, str.DLApi.dll
xor ecx, ecx
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x14001750d
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001751d
lea rdx, str.GetTraceTLS
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140017508
mov ecx, 1
call rbx
mov r11d, eax
or eax, 0xffffffff
lock cmpxchg dword [0x1400302f0], r11d
mov ecx, 2
call rbx
mov r11d, eax
or eax, 0xffffffff
lock cmpxchg dword [0x1400302f4], r11d
mov ecx, 3
call rbx
mov r11d, eax
or eax, 0xffffffff
lock cmpxchg dword [0x1400302f8], r11d
mov rbx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001751d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x1400302f0]
cmp eax, 0xffffffff
jne 0x14001755b
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov r11d, eax
cmp eax, 0xffffffff
je 0x14001755b
or eax, 0xffffffff
lock cmpxchg dword [0x1400302f0], r11d
cmp eax, 0xffffffff
je 0x14001755b
mov ecx, dword [0x1400302f0]
cmp ecx, r11d
je 0x14001755b
mov ecx, r11d
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov eax, dword [0x1400302f4]
cmp eax, 0xffffffff
jne 0x140017599
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov r11d, eax
cmp eax, 0xffffffff
je 0x140017599
or eax, 0xffffffff
lock cmpxchg dword [0x1400302f4], r11d
cmp eax, 0xffffffff
je 0x140017599
mov ecx, dword [0x1400302f4]
cmp ecx, r11d
je 0x140017599
mov ecx, r11d
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov ecx, dword [0x1400302f8]
cmp ecx, 0xffffffff
jne 0x1400175d7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov r11d, eax
cmp eax, 0xffffffff
je 0x1400175d7
or eax, 0xffffffff
lock cmpxchg dword [0x1400302f8], r11d
cmp eax, 0xffffffff
je 0x1400175d7
mov ecx, dword [0x1400302f8]
cmp ecx, r11d
je 0x1400175d7
mov ecx, r11d
call qword [sym.imp.KERNEL32.dll_TlsFree]
add rsp, 0x28
ret
Function at 0x1400175e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
sub rsp, 0x40
cmp dword [rcx + 0x18], 0xff
mov rdi, rcx
je 0x1400176aa
mov ecx, dword [0x1400302f4]
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
cmp ecx, 0xffffffff
je 0x140017616
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
jmp 0x140017618
xor ebp, ebp
mov rsi, qword [rdi + 0x10]
mov dword [rdi + 0x18], 0xff
test rsi, rsi
jne 0x14001766c
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1400302f0]
mov ebx, eax
cmp ecx, 0xffffffff
je 0x140017658
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
je 0x140017658
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140017667
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rsi, [0x140031530]
mov rbx, qword [rsp + 0x50]
lea rax, [0x14002c208]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov eax, dword [rdi + 0x18]
mov rdx, rbp
mov dword [rsp + 0x30], eax
mov rcx, rsi
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x50
call fcn.140019d80
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov ecx, dword [0x1400302f4]
cmp ecx, 0xffffffff
je 0x1400176d7
cmp dword [0x1400302f8], 0xffffffff
je 0x1400176d7
mov rdx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rdx, qword [rdi + 8]
mov ecx, dword [0x1400302f8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x40
pop rdi
ret
Function at 0x140017bf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x14002f198]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rsi, rcx
lea rcx, [rsp + 0x40]
mov rbx, r9
mov rdi, r8
call fcn.14001ade0
mov edx, 0xa0
mov r10d, edx
lea rax, [rsp + 0x40]
xor ebp, ebp
cmp word [rax], bp
je 0x140017c43
add rax, 2
dec r10
jne 0x140017c31
jmp 0x140017cad
test r10, r10
je 0x140017cad
mov rax, rdx
lea r8, [0x14002b7e4]
sub rax, r10
sub rdx, rax
test rdi, rdi
cmovne r8, rdi
lea rcx, [rsp + rax*2 + 0x40]
cmp rdx, 1
jbe 0x140017cad
test rdx, rdx
je 0x140017ca6
mov r9d, 0x7ffffffe
sub r9, rdx
sub r8, rcx
nop dword [rax + rax]
lea rax, [r9 + rdx]
test rax, rax
je 0x140017ca1
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140017ca1
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x140017c80
jmp 0x140017ca6
test rdx, rdx
jne 0x140017caa
sub rcx, 2
mov word [rcx], bp
mov eax, dword [rsp + 0x1d0]
cmp eax, 2
jae 0x140017ce6
cmp eax, 1
jne 0x140017cc1
mov word [rbx], bp
xor al, al
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14001cea0
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x190
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rsi + 0x100]
lea eax, [rax + rax - 2]
lea r9, [rsp + 0x34]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [rsp + 0x34], ebp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140017cbe
cmp dword [rsp + 0x34], 1
jne 0x140017cbe
mov eax, dword [rsp + 0x30]
shr eax, 1
inc eax
mov word [rbx + rax*2], bp
mov al, 1
jmp 0x140017cc3

Function at 0x140017d40
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1400302f0]
mov ebx, eax
cmp ecx, 0xffffffff
je 0x140017d81
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x140017d81
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x30]
lea rax, [0x140031530]
add rsp, 0x20
pop rdi
ret
Function at 0x140017f80
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [r9]
mov rdi, r9
mov rbx, r8
cmp rax, 2
jae 0x140017fb2
cmp rax, 1
jne 0x140018019
mov rax, qword [r8]
mov byte [rax], 0
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
dec eax
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [r8]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140018013
cmp dword [rsp + 0x68], 1
jne 0x140018013
mov eax, dword [rsp + 0x30]
mov rcx, qword [rbx]
inc eax
mov byte [rax + rcx], 0
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
mov al, 1
add qword [rbx], rcx
sub qword [rdi], rcx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rax, qword [rbx]
mov byte [rax], 0
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140018030
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
sub rsp, 0x88
mov qword [r11 + 8], rbx
mov qword [r11 - 8], rdi
lea rax, [r11 + 0x18]
mov rdi, rdx
mov rbx, rcx
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov r9d, 0x101
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [r11 + 0x18], 0
mov qword [r11 - 0x68], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018217
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0xa8], rsi
mov rsi, qword [rbx]
lea rdx, str.ProductName
mov r9, rdi
mov r8, rbx
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], r13
call fcn.140017f80
test al, al
je 0x1400180d4
mov rdx, qword [rdi]
mov rcx, qword [rbx]
lea r8, [0x14002b874]
mov r9, rbx
mov qword [rsp + 0x20], rdi
call fcn.14001c340
jmp 0x1400180d6
xor esi, esi
mov rcx, qword [rsp + 0xa0]
lea rdx, str.CSDVersion
mov r9, rdi
mov r8, rbx
call fcn.140017f80
test al, al
je 0x14001810e
mov rdx, qword [rdi]
mov rcx, qword [rbx]
lea r8, [0x14002b874]
mov r9, rbx
mov qword [rsp + 0x20], rdi
call fcn.14001c340
mov rcx, qword [rsp + 0xa0]
lea rdx, str.DisplayVersion
mov r9, rdi
mov r8, rbx
call fcn.140017f80
test al, al
jne 0x14001814a
mov rcx, qword [rsp + 0xa0]
lea rdx, str.ReleaseId
mov r9, rdi
mov r8, rbx
call fcn.140017f80
test al, al
je 0x140018164
mov rdx, qword [rdi]
mov rcx, qword [rbx]
lea r8, [0x14002b874]
mov r9, rbx
mov qword [rsp + 0x20], rdi
call fcn.14001c340
mov rbp, qword [rbx]
mov r12, qword [rdi]
lea r8, str._Build
mov rdx, r12
mov rcx, rbp
mov r9, rbx
mov qword [rsp + 0x20], rdi
call fcn.14001c340
mov rcx, qword [rsp + 0xa0]
mov r13, qword [rbx]
lea rdx, str.CurrentBuildNumber
mov r9, rdi
mov r8, rbx
call fcn.140017f80
test al, al
je 0x1400181f7
test rsi, rsi
je 0x1400181db
mov rax, qword [rbx]
sub rax, rsi
cmp rax, 0xa
jl 0x1400181db
cmp byte [rsi + 8], 0x31
jne 0x1400181db
cmp byte [rsi + 9], 0x30
jne 0x1400181db
xor edx, edx
mov rcx, r13
lea r8d, [rdx + 0xa]
call fcn.14001d4a0
cmp eax, 0x55f0
jl 0x1400181db
mov byte [rsi + 9], 0x31
mov rdx, qword [rdi]
mov rcx, qword [rbx]
lea r8, [0x14002ba8c]
mov r9, rbx
mov qword [rsp + 0x20], rdi
call fcn.14001c340
jmp 0x1400181fd
mov qword [rbx], rbp
mov qword [rdi], r12
mov r12, qword [rsp + 0x78]
mov rsi, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0x98]
mov r13, qword [rsp + 0x70]
xor edx, edx
lea rcx, [rsp + 0x44]
mov dword [rsp + 0x40], 0
lea r8d, [rdx + 0x2c]
call fcn.14001f380
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx r11d, word [rsp + 0x40]
mov rdx, qword [rdi]
mov rcx, qword [rbx]
test r11d, r11d
je 0x140018280
cmp r11d, 9
je 0x140018277
mov dword [rsp + 0x30], r11d
lea rax, str.Arch_i
mov r9, rdi
mov qword [rsp + 0x28], rax
mov r8, rbx
mov dword [rsp + 0x20], 0x100
call fcn.14001c060
jmp 0x140018294
lea r8, [0x14002ba94]
jmp 0x140018287
lea r8, [0x14002ba90]
mov r9, rbx
mov qword [rsp + 0x20], rdi
call fcn.14001c340
mov rcx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x90]
test rcx, rcx
je 0x1400182b7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x88
ret
Function at 0x1400182c0
Capabilities:
Get token privileges

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, 1
mov qword [rsp + 0x50], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
lea edx, [rbx + 7]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140018335
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea r9d, [rbx + 3]
lea r8, [rsp + 0x48]
lea edx, [rbx + 0x11]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], 0
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14001832a
cmp dword [rsp + 0x40], 4
cmove ebx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x14001a260
Capabilities:
Get file size
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
mov rbx, rcx
mov edi, 1
test rdx, rdx
je 0x14001a347
cmp byte [rdx], 0
je 0x14001a347
add rcx, 0x58
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x68], r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx + 0x40]
xor r12d, r12d
mov dword [rsp + 0x58], r12d
cmp rcx, 0xffffffffffffffff
je 0x14001a31e
cmp dword [rbx + 0x560], r12d
je 0x14001a2f9
cmp word [rbx + 0x350], r12w
je 0x14001a2f9
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], r12
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001a2f9
mov eax, dword [rbx + 0x560]
cmp qword [rsp + 0x60], rax
jle 0x14001a2f9
lea rdx, str._r_n____Continued_from_old_log_because_size_limit_was_reached_____r_n_r_n
mov rcx, rbx
call fcn.14001ac20
test al, al
jne 0x14001a2f9
mov dword [rbx + 0x560], r12d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rbx + 0x40]
lea r9, [rsp + 0x58]
mov r8d, eax
mov rdx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
lea rcx, [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [rbx + 8], 0
mov r12, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
je 0x14001a347
lea rcx, [0x14002c0bc]
mov rdx, rsi
call fcn.14001daac
mov eax, edi
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001ac20
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x50
xor dil, dil
cmp qword [rcx + 0x40], 0xffffffffffffffff
mov rsi, rdx
mov rbx, rcx
je 0x14001ad60
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], r12
mov qword [rax - 0x20], r13
mov qword [rax - 0x28], r14
cmp rcx, 0xffffffffffffffff
je 0x14001ac66
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x48], 0xffffffffffffffff
lea rcx, [rbx + 0x350]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbx + 0x350]
lea rcx, [rbx + 0x148]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
xor r14d, r14d
lea rcx, [rbx + 0x148]
mov qword [rsp + 0x30], r14
lea r8d, [r14 + 5]
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14001ad06
mov r8d, dword [rbx + 0x50]
xor edx, edx
mov rcx, rax
call fcn.1400184c0
test rsi, rsi
je 0x14001acf3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9, [rsp + 0x70]
mov rdx, rsi
mov rcx, rbp
mov r8d, eax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx + 0x40]
mov qword [rbx + 0x40], rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dil, 1
jmp 0x14001ad1a
lea rdx, [rbx + 0x148]
lea rcx, [rbx + 0x350]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
xor r9d, r9d
mov qword [rsp + 0x30], r14
lea rcx, [rbx + 0x148]
lea r8d, [r9 + 3]
mov edx, 0x80000000
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov qword [rbx + 0x48], rax
movzx eax, dil
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001ccf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1400302f0]
mov ebx, eax
cmp ecx, 0xffffffff
je 0x14001cd2d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x14001cd2d
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001cd3c
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdi, [0x140031530]
lea rdx, [0x14002c860]
mov r9d, 0x6e
xor r8d, r8d
mov rcx, rdi
call fcn.14001a360
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1400302f0]
mov ebx, eax
cmp ecx, 0xffffffff
je 0x14001cd7f
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x14001cd7f
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001cd8e
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdi, [0x140031530]
mov ecx, dword [0x1400302f4]
xor eax, eax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x38], 0xff
cmp ecx, 0xffffffff
je 0x14001ce00
cmp dword [0x1400302f8], 0xffffffff
je 0x14001ce00
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1400302f8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1400302f4]
lea rdx, str.wWinMain
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [0x1400302f8]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x14001ce0d
mov rcx, rdi
call fcn.140018ec0
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov qword [0x140031510], rsi
call fcn.14001c830
call fcn.14001ca80
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1400302f0]
mov ebx, eax
cmp ecx, 0xffffffff
je 0x14001ce51
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x14001ce51
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001ce60
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdi, [0x140031530]
mov rcx, rdi
call fcn.14001a620
lea rcx, [rsp + 0x20]
call fcn.1400175e0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x40
pop rdi
ret

Function at 0x14001def0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rcx, 0x36953606
jmp 0x14000ca92
dec rcx
jmp 0x14000d1b1
jne 0x14000ca92
jmp 0x14000e012
jmp 0x14000ecbd
jmp 0x14000ed4e
jmp 0x14000edb5
jmp 0x14000edc6
jmp 0x14000ee4d
jmp 0x14000ee89
jmp 0x14000eeb2
jmp 0x14000ef1b
jmp 0x14000ef6c
jmp 0x14000ef9f
jmp 0x14000f026
jmp 0x14000f068
jmp 0x14000f0ca
jmp 0x14000f11f
jmp 0x14000f147
jmp 0x14000f18e
jmp 0x14000f1ea
jmp 0x14000f228
jmp 0x14000f26f
jmp 0x14000f30b
xor rcx, rcx
mov rdx, 0x6e93
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call 0x14000f32b
pop rsi
add rsi, 0xe42
mov rdi, rax
mov rcx, 0x6e93
rep movsb byte [rdi], byte [rsi]
jmp rax
sub rsp, 0x28
call fcn.140022940
add rsp, 0x28
xor rcx, rcx
jmp 0x14000c342
Function at 0x140021ba8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140021a18

Function at 0x140025804
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14002f198]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14001e050
xor ebx, ebx
cmp qword [0x1400314e0], rbx
mov rdi, rax
jne 0x140025917
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1400259ee
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400259ee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400314e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400314e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1400314f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140031500], rax
test rax, rax
je 0x14002590e
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1400314f8], rax
jmp 0x14002591e
mov rax, qword [0x1400314f8]
jmp 0x140025925
mov rax, qword [0x1400314f8]
mov r11, qword [0x140031500]
cmp rax, rdi
je 0x14002598c
cmp r11, rdi
je 0x14002598c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140031500]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14002598c
test rax, rax
je 0x14002598c
call rsi
test rax, rax
je 0x140025986
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140025986
test byte [rsp + 0x40], 1
jne 0x14002598c
bts ebp, 0x15
jmp 0x1400259cc
mov rcx, qword [0x1400314e8]
cmp rcx, rdi
je 0x1400259cc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400259cc
call rax
mov rbx, rax
test rax, rax
je 0x1400259cc
mov rcx, qword [0x1400314f0]
cmp rcx, rdi
je 0x1400259cc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400259cc
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400314e0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400259ee
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1400259f0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001cea0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140003eb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400da180]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140003edd
xor eax, eax
jmp 0x140004049
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003f17
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003f17
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140004049
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000403c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003f5a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140003f85
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140004041
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003ff4
sub eax, 1
je 0x140003ff4
cmp eax, 2
jne 0x14000403c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140004041
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004022
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000403c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140004041
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400aa5e0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400042a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400da180]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004373
cmp byte [rcx + 0x71], 0
je 0x140004373
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000436f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140004334
sub eax, 1
je 0x140004338
cmp eax, 2
jne 0x14000436f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400aa5e0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004366
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000436f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000431c
xor al, al
jmp 0x14000431c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400aa5e0
add rsp, 0x60
pop rbx
ret