joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a450
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a495
xor al, al
jmp 0x14000a4e2
cmp word [rbx], 0
je 0x14000a4ad
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a4a0
cmp word [rsp + 0x30], 0
je 0x14000a4db
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a503
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a4c0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000bb30
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000fc7c
int3
Function at 0x14000ad60
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001fe30
sub rsp, rax
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002fd90]
lea rsi, [0x140044dd0]
mov rdi, rcx
test r11d, r11d
jne 0x14000add9
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a510
test al, al
je 0x14000aeb9
lea rcx, [rsp + 0x20]
call fcn.140014380
movsxd r11, dword [0x14002fd90]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002fd90], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000ae14
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ae04
add rax, 2
test ecx, ecx
jne 0x14000adf0
test edx, edx
je 0x14000ae37
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ade4
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000ae20
cmp rax, 2
jne 0x14000ae3b
cmp word [rdi + 2], 0x3a
jne 0x14000ae3b
mov al, 1
jmp 0x14000ae98
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000ae66
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000ae8d
mov bl, 1
cmp dword [0x14002fd90], 0x400
jge 0x14000ae8d
mov rcx, rdi
call fcn.140014380
movsxd rdx, dword [0x14002fd90]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002fd90], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000bb30
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000ac00
int3
Function at 0x14000afe0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002fd98]
test rcx, rcx
je 0x14000b01b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b00e
mov rcx, qword [0x14002fd98]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002fd98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002fda8], 0
je 0x14000b10e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140029908]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400425d0]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b0ef
test al, 0x10
je 0x14000b0ef
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b095
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000c404
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c44e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000c44e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000c44e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c44e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000c44e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000c450
xor al, al
add rsp, 0x28
ret

Function at 0x14000fc70
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000fadb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fadb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fadb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fadb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fadb
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fadb
cmp dword [rcx + 0xf8], 0
je 0x14000fadb
mov ecx, ebx
call fcn.14000fb8c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f968
nop
cmp dword [rbp + 0x20], 0
je 0x14000fb29
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fb34
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000fa6c
Function at 0x140019264
Capabilities:
Query environment variable

Disassembly:
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 0x1400192eb
mov rsi, rbx
cmp word [rax], bp
je 0x1400192aa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140019294
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140019290
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016a94
mov rdi, rax
test rax, rax
je 0x1400192d8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000da50
mov rbp, rdi
xor ecx, ecx
call fcn.140015ab8
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 0x14001b8b4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b8ca
mov al, 1
jmp 0x14001b92a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b8db
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b928
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019a08
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b928
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b928
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b928
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b92a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001fd40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001fd68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001fd68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003e94
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003ede
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003ede
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003ede
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003ede
cmp dword [rcx + 0x84], 0xe
jbe 0x140003ede
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003ee0
xor al, al
add rsp, 0x28
ret

Function at 0x140008444
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140008240
Function at 0x14000b5c4
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000b5f4
xor eax, eax
jmp 0x14000b6b7
mov rbp, rbx
cmp word [rax], si
je 0x14000b619
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000b600
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000b5fc
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.14000b4e4
movsxd r14, eax
test eax, eax
jne 0x14000b657
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000b5ed
mov rcx, r14
call fcn.1400093a8
mov rdi, rax
test rax, rax
jne 0x14000b670
xor ecx, ecx
call fcn.14000936c
jmp 0x14000b64c
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.14000b4e4
test eax, eax
jne 0x14000b6a1
mov rcx, rdi
call fcn.14000936c
jmp 0x14000b6ab
xor ecx, ecx
call fcn.14000936c
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 0x140010d40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140010d68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140010d68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000f3e0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xe0
xor eax, eax
xor edi, edi
mov rbx, rcx
lea rcx, [rsp + 0x70]
lea r8d, [rdi + 0x68]
xor edx, edx
mov dword [rsp + 0xf0], edi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call fcn.14000fce0
lea edx, [rdi + 1]
lea rcx, [0x14000f3b0]
mov dword [rsp + 0x70], 0x68
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea r11, [rsp + 0x50]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14000f499
call fcn.14000fa60
lea rdx, str.failed_to_create_process._n
lea rcx, [rax + 0x60]
call fcn.14000f8e8
xor eax, eax
mov rbx, qword [rsp + 0xf8]
add rsp, 0xe0
pop rdi
ret
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
mov dword [0x140021540], eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x14000f4f0
call fcn.14000fa60
lea rdx, str.failed_to_get_exit_code_from_process._n
lea rcx, [rax + 0x60]
call fcn.14000f8e8
xor eax, eax
mov rbx, qword [rsp + 0xf8]
add rsp, 0xe0
pop rdi
ret
mov eax, dword [rsp + 0xf0]
mov rbx, qword [rsp + 0xf8]
add rsp, 0xe0
pop rdi
ret
Function at 0x140010940
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.1400126b4
nop
cmp dword [0x140021598], 1
je 0x1400108ec
mov dword [0x140021594], 1
mov byte [0x140021590], r12b
test ebx, ebx
jne 0x1400108d8
mov rcx, qword [0x1400225a0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400108c5
mov rcx, qword [0x140022598]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140010864
call fcn.1400136f8
cmp qword [rdi], rax
jne 0x140010864
jmp 0x14001084a
cmp rdi, rsi
jb 0x1400108c5
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.1400136f8
mov qword [rdi], rax
call rbx
mov rcx, qword [0x1400225a0]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140022598]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x1400108a3
cmp r13, rax
je 0x1400108c3
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x14001084a
lea rdx, [0x14001d2e8]
lea rcx, [0x14001d2d0]
call fcn.140010694
lea rdx, [0x14001d2f8]
lea rcx, [0x14001d2f0]
call fcn.140010694
nop
test r12d, r12d
je 0x1400108fb
mov ecx, 8
call fcn.1400125b4
test r12d, r12d
jne 0x140010926
mov dword [0x140021598], 1
lea ecx, [r12 + 8]
call fcn.1400125b4
mov ecx, r15d
call fcn.140010628
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400107b4

Function at 0x14001094c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1400107b4
Function at 0x140012a63
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400203c0]
jne 0x14001035a
rol rcx, 0x10
test cx, 0xffff
jne 0x140010356
repz ret
ror rcx, 0x10
jmp 0x1400129bc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400218b0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400219a8]
mov qword [rsp + 0x58], r11
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 0x140012a41
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, [0x1400218b0]
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 0x140012a63
mov rax, qword [rsp + 0x88]
mov qword [0x1400219a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140021948], rax
mov rax, qword [0x1400219a8]
mov qword [0x140021820], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140021930], rax
mov dword [0x140021810], 0xc0000409
mov dword [0x140021814], 1
mov rax, qword [0x1400203c0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400203c8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400218a8], eax
mov ecx, 1
call fcn.1400152e4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14001d470]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400218a8], 0
jne 0x140012aea
mov ecx, 1
call fcn.1400152e4
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 0x1400177ac
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400136f8
xor ebx, ebx
mov rdi, rax
cmp qword [0x140022270], rbx
jne 0x1400178b2
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140017987
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140017987
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140022270], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140022278], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x140022280], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140022290], rax
test rax, rax
je 0x1400178a9
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140022288], rax
jmp 0x1400178b9
mov rax, qword [0x140022288]
jmp 0x1400178c0
mov rax, qword [0x140022288]
mov r11, qword [0x140022290]
cmp rax, rdi
je 0x140017928
cmp r11, rdi
je 0x140017928
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140022290]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140017928
test rax, rax
je 0x140017928
call rsi
test rax, rax
je 0x140017922
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140017922
test byte [rsp + 0x38], 1
jne 0x140017928
bts ebp, 0x15
jmp 0x140017966
mov rcx, qword [0x140022278]
cmp rcx, rdi
je 0x140017966
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140017966
call rax
mov rbx, rax
test rax, rax
je 0x140017966
mov rcx, qword [0x140022280]
cmp rcx, rdi
je 0x140017966
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140017966
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140022270]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140017987
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140017989
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x403980
Capabilities:
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
call fcn.00472580
cmp rax, 1
jbe 0x4039a0
mov rsi, rax
add rsi, 8
jmp 0x403a23
je 0x403a21
xorps xmm0, xmm0
lea rsi, [rsp + 0x20]
movaps xmmword [rsi], xmm0
mov edx, 0x10
mov rcx, rsi
call sub.bcryptprimitives.dll_ProcessPrng
mov rdi, qword [rsi]
mov r14, qword [rsi + 8]
mov ecx, 8
mov edx, 0x18
call fcn.004c2487
test rax, rax
je 0x403a40
mov rsi, rax
mov rbx, rax
lea rax, [0x004c6128]
mov qword [rsi], rax
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
call fcn.00472580
mov rdi, rax
mov ecx, dword [0x004c6140]
test ecx, ecx
je 0x403a30
dec ecx
add rsi, 8
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x403a23
mov edx, 8
mov rcx, rdi
call fcn.0042cc00
jmp 0x403a23
xor esi, esi
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x004c6128]
call fcn.004864a0
mov ecx, eax
jmp 0x403a01
mov ecx, 8
mov edx, 0x18
call fcn.0042d010
int3
Function at 0x43e098
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov rdi, rdx
mov r15, rcx
mov r9, qword [rdx]
mov rsi, qword [rdx + 8]
mov rbx, qword [rdx + 0x10]
cmp r9, rsi
je 0x43e122
lea r14, [r9 + 0x10]
mov qword [rdi], r14
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov r8, qword [r9]
mov r9, qword [r9 + 8]
call fcn.004331d6
mov r9, r14
test rax, rax
je 0x43e0bc
cmp qword [rax + 0x228], 0
jne 0x43e143
cmp dword [rax + 0x248], 0x110000
jne 0x43e143
mov rdi, qword [rax + 0x168]
cmp rdi, 1
je 0x43e161
test rdi, rdi
jne 0x43e18a
mov rdx, qword [rax + 0x218]
mov r8, qword [rax + 0x220]
jmp 0x43e16f
movabs rax, 0x8000000000000000
mov qword [r15], rax
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r15
mov rdx, rax
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.004381a1
mov rax, qword [rax + 0x160]
mov rdx, qword [rax]
mov r8, qword [rax + 8]
mov rcx, r15
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.0043309b
mov r12, qword [rax + 0x160]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rdi
call fcn.00442c32
cmp qword [rbx], 0
mov rcx, qword [rbx + 8]
jne 0x43e2bf
mov qword [rsp + 0x68], r15
mov rdx, qword [rsp + 0x40]
lea rax, [rsp + 0x70]
mov qword [rax], rcx
mov qword [rax + 8], rdx
and qword [rax + 0x10], 0
mov rcx, rax
mov rdx, rdi
call fcn.0043e305
mov rbx, qword [rsp + 0x80]
imul r13, rbx, 0x18
add r13, qword [rsp + 0x78]
lea rbp, [0x0069c070]
lea rsi, [rsp + 0x90]
lea r14, [rsp + 0xa0]
lea r15, [rsp + 0x30]
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], 2
and qword [rsp + 0x50], 0
lea rax, [rsp + 0x88]
mov qword [rsp + 0x90], rax
lea rax, [0x0043e33d]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 1
mov rcx, r14
mov rdx, r15
call fcn.00433056
mov rax, qword [rsp + 0xb0]
mov qword [r13 + 0x10], rax
movups xmm0, xmmword [rsp + 0xa0]
movups xmmword [r13], xmm0
inc rbx
add r13, 0x18
add r12, 0x10
dec rdi
jne 0x43e202
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x20], 1
lea r9, str.__home_runner_.cargo_registry_src_index.crates.io_6f17d22bba15001f_winsafe_0.0.19_src_kernel_utilities_w_string.rs
mov rcx, qword [rsp + 0x68]
mov r8, rbx
call fcn.0043de20
lea rcx, [rsp + 0x30]
call fcn.00435519
jmp 0x43e12f
mov rdx, qword [rsp + 0x40]
call fcn.0042cfb0
mov rsi, rax
lea rcx, [rsp + 0x30]
call fcn.00435519
jmp 0x43e2f7
mov rcx, rsi
call fcn.004c4610
call fcn.0045f410
int3