joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001b2c
Capabilities:
Enumerate files on windows

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
sub rsp, 0x740
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x1800a1658]
xor rax, rsp
mov qword [rsp + 0x730], rax
mov rbp, rdx
mov rbx, rcx
mov qword [r11 - 0x6c8], rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
lea rcx, [rsp + 0x50]
call fcn.180006538
nop
cmp rbp, r12
jne 0x180001bb7
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.18000659c
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x50]
call fcn.180007f70
nop
mov rcx, qword [rsp + 0x50]
call fcn.180058ed8
mov rax, rbx
jmp 0x180001d2a
mov rdx, rbp
lea rcx, [rsp + 0x520]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str..________.dirty
lea rcx, [rsp + 0x520]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x520]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180001cfd
lea rdx, [0x180081aa0]
lea rcx, [rsp + 0xec]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, r12d
je 0x180001cda
lea rdx, [0x180081aa4]
lea rcx, [rsp + 0xec]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, r12d
je 0x180001cda
cmp dword [rsp + 0xc0], 0xffffffff
je 0x180001cda
mov rdx, rbp
lea rcx, [rsp + 0x310]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0xec]
lea rcx, [rsp + 0x310]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r12
mov word [rsp + 0x30], r12w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x310]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x310]
lea rcx, [rsp + 0x28]
call fcn.180007618
nop
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x50]
call fcn.18000661c
nop
cmp qword [rsp + 0x48], 8
jb 0x180001cda
mov rcx, qword [rsp + 0x30]
call fcn.180058ed8
lea rdx, [rsp + 0xc0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, r12d
jne 0x180001c00
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.18000659c
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x50]
call fcn.180007f70
nop
mov rcx, qword [rsp + 0x50]
call fcn.180058ed8
mov rax, rbx
mov rcx, qword [rsp + 0x730]
xor rcx, rsp
call fcn.180059b00
lea r11, [rsp + 0x740]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x180001e50
Capabilities:
Check if file exists
Clear file content
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x1800a1658]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor esi, esi
mov rdi, rdx
mov rbx, rcx
cmp rcx, rsi
je 0x180001f99
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x180001f99
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], si
call fcn.18005a150
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.18000305c
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180001ed7
shr eax, 4
not eax
and eax, 1
jmp 0x180001f9b
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x250]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rcx, [rsp + 0x250]
call fcn.180001fc0
cmp eax, esi
je 0x180001f99
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rdi, rsi
je 0x180001f66
cmp rax, rsi
je 0x180001f76
cmp rax, 0xffffffffffffffff
je 0x180001f66
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp rbx, rsi
je 0x180001f76
mov ecx, 1
cmp rbx, 0xffffffffffffffff
jne 0x180001f78
mov ecx, esi
cmp cl, sil
mov edi, esi
setne dil
cmp rbx, 0xffffffffffffffff
je 0x180001f95
cmp rbx, rsi
je 0x180001f95
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x180001f9b
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.180059b00
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1800026e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1800a1658]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor esi, esi
mov dil, dl
mov rbx, rcx
cmp rcx, rsi
je 0x18000276b
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], si
call fcn.18005a150
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
je 0x18000276b
lea rcx, [rsp + 0x20]
mov r9, rbx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp eax, esi
jbe 0x18000276b
cmp dil, sil
je 0x180002764
xor edx, edx
mov rcx, rbx
call fcn.180001e50
jmp 0x18000276d
mov eax, 1
jmp 0x18000276d
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180059b00
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180002794
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x2070
call fcn.18006e000
sub rsp, rax
mov rax, qword [0x1800a1658]
xor rax, rsp
mov qword [rsp + 0x2060], rax
xor esi, esi
mov rbx, rdx
mov rdi, rcx
cmp rcx, rsi
je 0x180002961
cmp rdx, rsi
je 0x180002961
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, esi
jne 0x1800027ec
mov esi, 1
jmp 0x180002961
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x28], esi
mov rdi, rax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rdi, rsi
je 0x180002939
cmp rdi, 0xffffffffffffffff
je 0x180002939
cmp rax, rsi
je 0x180002939
cmp rax, 0xffffffffffffffff
je 0x18000294d
xor eax, eax
lea rdx, [rsp + 0x50]
mov rcx, rdi
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x4c], eax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, esi
je 0x1800028a4
lea rdx, [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, esi
je 0x1800028a4
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x50], rax
je 0x1800028b2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180002958
mov dword [rsp + 0x40], esi
jmp 0x180002908
mov r8d, dword [rsp + 0x40]
cmp r8d, esi
je 0x18000292f
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x1060]
mov rcx, rbx
mov dword [rsp + 0x44], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x1800028a4
mov eax, dword [rsp + 0x40]
cmp eax, dword [rsp + 0x44]
jne 0x1800028a4
lea rdx, [rsp + 0x1060]
lea rcx, [rsp + 0x60]
mov r8, rax
call fcn.18005a3c0
cmp eax, esi
jne 0x1800028a4
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov r8d, 0x1000
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
jne 0x1800028b8
jmp 0x1800028a4
mov esi, 1
jmp 0x1800028a4
cmp rax, 0xffffffffffffffff
je 0x18000294d
cmp rax, rsi
je 0x18000294d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rdi, 0xffffffffffffffff
je 0x180002961
cmp rdi, rsi
je 0x180002961
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x2060]
xor rcx, rsp
call fcn.180059b00
lea r11, [rsp + 0x2070]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180002988
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1800029ab
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800029c6
test al, 1
je 0x1800029bd
and eax, 0xfffffffe
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
add rsp, 0x20
pop rbx
ret
Function at 0x1800029cc
Capabilities:
Check if file exists
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rcx
cmp rcx, rbx
je 0x180002a2b
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
je 0x180002a2b
lea rax, [0x180002a4c]
lea r8, [0x180002a38]
lea edx, [rbx + 1]
xor r9d, r9d
mov rcx, rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call fcn.1800018f0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
sete bl
mov eax, ebx
jmp 0x180002a2d
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180002a88
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x180002aa0
xor eax, eax
jmp 0x180002aae
and eax, 0xfffffffe
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
add rsp, 0x20
pop rbx
ret

Function at 0x180002b80
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov ebp, r8d
mov r12, rdx
mov rdi, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
test eax, eax
jne 0x180002bb9
xor edx, edx
mov rcx, rdi
call fcn.180001e50
test eax, eax
je 0x180002c65
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
test rax, rax
je 0x180002c44
cmp rax, 0xffffffffffffffff
je 0x180002c44
and dword [rsp + 0x78], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, ebp
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180002c27
cmp dword [rsp + 0x78], ebp
jne 0x180002c27
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x180002c67
test esi, esi
jne 0x180002c51
mov rcx, rbx
or rbx, 0xffffffffffffffff
cmp rcx, rbx
je 0x180002c48
test rcx, rcx
je 0x180002c48
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180002c48
test esi, esi
jne 0x180002c51
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp rbx, 0xffffffffffffffff
je 0x180002c65
test rbx, rbx
je 0x180002c65
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret

Function at 0x180002c7c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor r9d, r9d
movsxd r10, edx
cmp r10, r9
jle 0x180002caf
movzx edx, byte [r9 + rcx]
movzx eax, r8b
lea r11, [0x1800a3a10]
xor rdx, rax
mov eax, r8d
inc r9
mov r8d, dword [r11 + rdx*4]
shr eax, 8
xor r8d, eax
cmp r9, r10
jl 0x180002c87
not r8d
mov eax, r8d
ret
Function at 0x18000314c
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x1800a1658]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movsx r8d, cl
lea rdx, str.__c:
lea rcx, [rsp + 0x48]
call fcn.180005530
cmp qword [rax + 0x20], 0x10
jb 0x18000318d
mov rcx, qword [rax + 8]
jmp 0x180003191
lea rcx, [rax + 8]
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov r8d, 3
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp qword [rsp + 0x68], 0x10
mov rbx, rax
jb 0x1800031ca
mov rcx, qword [rsp + 0x50]
call fcn.180058ed8
and qword [rsp + 0x60], 0
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x68], sendto
mov byte [rsp + 0x50], 0
test rbx, rbx
je 0x18000326e
cmp rbx, rdi
je 0x180003281
lea r8d, [rdi + 0x25]
lea rcx, [rsp + 0x84]
xor edx, edx
mov dword [rsp + 0x80], 0x28
call fcn.18005a150
and dword [rsp + 0x70], 0
and dword [rsp + 0x74], 0
xor eax, eax
lea r9d, [rdi + 0xd]
and qword [rsp + 0x38], rax
and dword [rsp + 0x40], eax
mov dword [rsp + 0x78], eax
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov edx, 0x2d1400
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x80]
mov rcx, rbx
mov dword [rsp + 0x28], 0x28
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x180003278
mov edi, dword [rsp + 0x9c]
jmp 0x180003278
cmp rbx, rdi
je 0x180003281
test rbx, rbx
je 0x180003281
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.180059b00
mov rbx, qword [rsp + 0xc8]
add rsp, 0xb0
pop rdi
ret

Function at 0x1800032a4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x250
mov rax, qword [0x1800a1658]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor r12d, r12d
mov rsi, rdx
mov rdi, rcx
cmp rdx, r12
je 0x180003386
lea rdx, str.deviceMup_
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, rdi
jne 0x18000330f
lea r8, [0x180081b6c]
lea rdx, str.deviceMup_
mov r9, rsi
mov rcx, rdi
call fcn.180005240
mov eax, 1
jmp 0x180003388
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, r12d
mov ebp, eax
bt ebp, ebx
jae 0x18000337f
lea ecx, [rbx + 0x61]
mov eax, 0x3a
xor edx, edx
mov word [rsp + 0x20], cx
mov word [rsp + 0x22], ax
xor eax, eax
lea rcx, [rsp + 0x32]
mov r8d, 0x206
mov word [rsp + 0x30], r12w
mov dword [rsp + 0x24], eax
call fcn.18005a150
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, r12d
jbe 0x18000337f
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov rcx, rdi
call fcn.18000536c
cmp eax, r12d
jne 0x1800033b0
inc ebx
cmp ebx, 0x1a
jl 0x18000331a
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180059b00
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
jmp 0x1800032fd
Function at 0x1800035bc
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x1800a1658]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov ebx, ecx
mov rdi, rdx
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x434
call fcn.18005a150
mov edx, ebx
mov ecx, 8
mov dword [rsp + 0x20], 0x438
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
test rax, rax
je 0x180003645
cmp rax, 0xffffffffffffffff
je 0x180003659
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.KERNEL32.dll_Module32FirstW
jmp 0x180003641
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.1800044bc
test eax, eax
je 0x180003645
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x180003623
cmp rbx, 0xffffffffffffffff
je 0x180003659
test rbx, rbx
je 0x180003659
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.180059b00
mov rbx, qword [rsp + 0x490]
add rsp, 0x470
pop rdi
ret

Function at 0x18000367c
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800a1658]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x180003717
cmp rax, 0xffffffffffffffff
je 0x180003717
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x34]
call fcn.18005a150
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x180003717
mov rdx, rsi
lea rcx, [rsp + 0x30]
call rdi
test eax, eax
je 0x180003717
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1800036f8
cmp rbx, 0xffffffffffffffff
je 0x18000372b
test rbx, rbx
je 0x18000372b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180059b00
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180003750
Capabilities:
Create process on windows

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
sub rsp, 0xe0
xor r12d, r12d
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
cmp rcx, r12
jne 0x180003784
xor eax, eax
jmp 0x180003842
xor edx, edx
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x70], 0x68
lea r8d, [rdx + 0x60]
call fcn.18005a150
cmp esi, r12d
jne 0x1800037b5
mov dword [rsp + 0xac], 1
mov word [rsp + 0xb0], r12w
xor eax, eax
mov rcx, rbp
mov rdi, r12
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x50], r12
call fcn.1800018a4
lea rcx, [rsp + 0x50]
neg esi
mov qword [rsp + 0x48], rcx
mov rbp, rax
sbb eax, eax
lea rcx, [rsp + 0x70]
not eax
xor r9d, r9d
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], r12
and eax, 0x8000000
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, r12d
je 0x180003837
mov rcx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rbx, r12
je 0x180003837
mov ecx, dword [rsp + 0x60]
mov dword [rbx], ecx
mov rcx, rbp
call fcn.18005a5a8
mov rax, rdi
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x180003c54
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x110
xor edi, edi
mov ebp, edx
mov rsi, rcx
cmp rcx, rdi
je 0x180003e26
call fcn.180003b20
lea rcx, [0x180003e44]
mov dword [rsp + 0x6c], edi
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x68], eax
cmp rcx, rdi
je 0x180003e26
lea rdx, [rsp + 0x68]
call fcn.18000367c
cmp dword [rsp + 0x70], edi
je 0x180003e26
mov r8d, dword [rsp + 0x6c]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
cmp rax, rdi
je 0x180003e12
cmp rax, 0xffffffffffffffff
je 0x180003e26
lea r8, [rsp + 0x60]
mov edx, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x60], rdi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, edi
je 0x180003e04
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x78], rdi
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
cmp eax, edi
je 0x180003df9
mov rcx, rsi
call fcn.1800018a4
lea r8d, [rdi + 0x60]
lea rcx, [rsp + 0xa8]
xor edx, edx
mov dword [rsp + 0xa0], 0x68
mov rsi, rax
call fcn.18005a150
mov dword [rsp + 0xdc], 1
cmp ebp, edi
je 0x180003d5d
lea eax, [rdi + 5]
mov word [rsp + 0xe0], ax
jmp 0x180003d65
mov word [rsp + 0xe0], di
mov rcx, qword [rsp + 0x60]
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xa0]
mov r8, rsi
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x420
xor edx, edx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp eax, edi
je 0x180003de6
mov rcx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.18005a5a8
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
jmp 0x180003e28
cmp rax, 0xffffffffffffffff
je 0x180003e26
cmp rax, rdi
je 0x180003e26
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1800040ac
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1800a1658]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rdx
mov r8d, ecx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edi, edi
mov rbx, rax
cmp rax, rdi
je 0x180004140
cmp rax, 0xffffffffffffffff
je 0x180004154
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], di
call fcn.18005a150
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rbx
call sub.PSAPI.DLL_GetProcessImageFileNameW
cmp eax, edi
jbe 0x180004133
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.1800032a4
mov edi, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x180004156
cmp rax, 0xffffffffffffffff
je 0x180004154
cmp rax, rdi
je 0x180004154
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180059b00
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180004638
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rsi, rdx
cmp rcx, rbx
je 0x18000469d
mov eax, 0x5a4d
cmp ax, word [rcx]
jne 0x18000469d
cmp dword [rcx + 0x3c], 0x400
jge 0x18000469d
movsxd rdi, dword [rcx + 0x3c]
lea edx, [rbx + 8]
add rdi, rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, ebx
jne 0x18000469d
cmp dword [rdi], 0x4550
jne 0x18000469d
cmp rsi, rbx
je 0x180004696
mov eax, 0xf0
cmp word [rdi + 0x14], ax
sete bl
mov dword [rsi], ebx
mov eax, 1
jmp 0x18000469f
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1800046b0
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
and qword [rsp + 0x30], 0
mov rax, rdx
xor r9d, r9d
mov rbx, rcx
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x180004762
lea rdx, [rbx + 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180004762
cmp qword [rbx + 0x18], 0
je 0x180004762
mov eax, 0x400000
cmp qword [rbx + 0x18], rax
jg 0x18000471a
mov eax, dword [rbx + 0x18]
mov rcx, qword [rbx]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov dword [rbx + 0x20], eax
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 8], rax
test rax, rax
je 0x180004762
mov ecx, dword [rbx + 0x20]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rcx
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x10], rax
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1800047ac
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x50
or qword [rax - 0x38], 0xffffffffffffffff
and qword [rax - 0x30], 0
and qword [rax - 0x28], 0
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1800047e4
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.1800046b0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180004815
cmp qword [rsp + 0x38], 0x138
jbe 0x180004808
mov rdx, rdi
call fcn.180004638
mov rcx, qword [rsp + 0x30]
jmp 0x18000480a
xor eax, eax
test eax, eax
je 0x180004815
mov ebx, 1
jmp 0x180004817
xor ebx, ebx
test rcx, rcx
je 0x180004822
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180004832
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x180004843
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret