joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001da68
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xb00
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x180080060]
xor rax, rsp
mov qword [rsp + 0xaf0], rax
mov rsi, rcx
mov qword [rsp + 0x60], rcx
xor ebp, ebp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x24], ebp
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18001cf90
nop
cmp qword [rax + 0x20], 8
jb 0x18001daca
mov rbx, qword [rax + 8]
jmp 0x18001dace
lea rbx, [rax + 8]
cmp rbx, rbp
je 0x18001dc3b
lea rax, [fcn.18001dca8]
cmp rax, rbp
je 0x18001dc3b
cmp word [rbx + 2], 0x3a
je 0x18001db3e
cmp word [rbx + 2], 0x5c
je 0x18001db3e
mov word [rsp + 0x6e0], bp
xor edx, edx
mov r8d, 0x40e
lea rcx, [rsp + 0x6e2]
call fcn.180044a90
lea rdx, [rsp + 0x6e0]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rdx, rbx
lea rcx, [rsp + 0x6e0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rbx, [rsp + 0x6e0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18001dc3b
test al, 0x10
je 0x18001dc3b
mov rdx, rbx
lea rcx, [rsp + 0x2c0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x18006a028]
lea rcx, [rsp + 0x2c0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x2c0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18001dc3b
lea rdx, [0x18006748c]
lea rcx, [rsp + 0x9c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, ebp
je 0x18001dc1b
lea rdx, [0x18006a02c]
lea rcx, [rsp + 0x9c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, ebp
je 0x18001dc1b
cmp dword [rsp + 0x70], 0xffffffff
je 0x18001dc1b
mov rdx, rbx
lea rcx, [rsp + 0x4d0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0x9c]
lea rcx, [rsp + 0x4d0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [rsp + 0x70], 0x10
jne 0x18001dc1b
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x4d0]
call fcn.18001dca8
cmp eax, ebp
je 0x18001dc31
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebp
jne 0x18001db9e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
cmp qword [rsp + 0x50], 8
jb 0x18001dc4d
mov rcx, qword [rsp + 0x38]
call fcn.180042a14
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rbp
mov word [rsp + 0x38], bp
mov r9d, dword [rsp + 0x24]
mov r8d, dword [rsp + 0x20]
lea rdx, str.5.1._d._d
mov rcx, rsi
call fcn.180038438
mov rax, rsi
mov rcx, qword [rsp + 0xaf0]
xor rcx, rsp
call fcn.1800423f0
lea r11, [rsp + 0xb00]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18001de5c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
lea rax, [r11 + 8]
lea r9, [r11 + 0x10]
lea r8, str.offlineMode
mov qword [r11 - 0x10], rax
lea rax, [r11 + 0x18]
lea rdx, [0x180065e30]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x40], 4
mov qword [r11 - 0x18], rax
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor ecx, ecx
cmp eax, ecx
jne 0x18001deab
cmp dword [rsp + 0x48], 4
jne 0x18001deab
mov ecx, dword [rsp + 0x50]
mov eax, ecx
add rsp, 0x38
ret

Function at 0x18001e6e4
Capabilities:
Check if file exists

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x150
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x180080060]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rcx
mov eax, recvfrom
mov qword [rsp + 0x70], rax
xor esi, esi
mov qword [rsp + 0x68], rsi
mov byte [rsp + 0x58], sil
mov qword [r11 - 0xc0], rax
mov qword [r11 - 0xc8], rsi
mov byte [rsp + 0x80], sil
mov qword [r11 - 0x98], rax
mov qword [r11 - 0xa0], rsi
mov byte [rsp + 0xa8], sil
mov qword [r11 - 0x70], rax
mov qword [r11 - 0x78], rsi
mov byte [rsp + 0xd0], sil
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x50], rsi
mov byte [r11 - 0x60], sil
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rsi
mov byte [r11 - 0x38], sil
lea rcx, [rsp + 0x28]
call fcn.18001e008
nop
cmp qword [rax + 0x20], 8
jb 0x18001e797
mov rbx, qword [rax + 8]
jmp 0x18001e79b
lea rbx, [rax + 8]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, esi
jne 0x18001e7af
mov ebx, 2
jmp 0x18001e7be
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.18001e05c
mov ebx, eax
cmp qword [rsp + 0x48], 8
jb 0x18001e7d0
mov rcx, qword [rsp + 0x30]
call fcn.180042a14
cmp ebx, esi
jne 0x18001e7ec
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0xf0]
mov rcx, rdi
call fcn.180002954
nop
lea rcx, [rsp + 0x50]
call fcn.180016958
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800423f0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18001ecd4
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xb10
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x180080060]
xor rax, rsp
mov qword [rsp + 0xb00], rax
mov rsi, rdx
cmp ecx, 4
jle 0x18001ed15
xor eax, eax
jmp 0x18001ef28
xor ebp, ebp
cmp rdx, rbp
je 0x18001ef26
mov dword [rsp + 0x50], ebp
mov dword [rsp + 0x54], ecx
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbp
mov word [rsp + 0x60], bp
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.18001cf90
nop
cmp qword [rax + 0x20], 8
jb 0x18001ed55
mov rbx, qword [rax + 8]
jmp 0x18001ed59
lea rbx, [rax + 8]
cmp rbx, rbp
je 0x18001eed2
lea rax, [fcn.18001ef54]
cmp rax, rbp
je 0x18001eed2
cmp word [rbx + 2], 0x3a
je 0x18001edc9
cmp word [rbx + 2], 0x5c
je 0x18001edc9
mov word [rsp + 0x6f0], bp
xor edx, edx
mov r8d, 0x40e
lea rcx, [rsp + 0x6f2]
call fcn.180044a90
lea rdx, [rsp + 0x6f0]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rdx, rbx
lea rcx, [rsp + 0x6f0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rbx, [rsp + 0x6f0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18001eed2
test al, 0x10
je 0x18001eed2
mov rdx, rbx
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x18006a028]
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18001eed2
lea rdx, [0x18006748c]
lea rcx, [rsp + 0xac]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, ebp
je 0x18001eeaf
lea rdx, [0x18006a02c]
lea rcx, [rsp + 0xac]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, ebp
je 0x18001eeaf
cmp dword [rsp + 0x80], 0xffffffff
je 0x18001eeaf
mov rdx, rbx
lea rcx, [rsp + 0x4e0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0xac]
lea rcx, [rsp + 0x4e0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [rsp + 0x80], 0x10
jne 0x18001eeaf
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x4e0]
call fcn.18001ef54
cmp eax, ebp
je 0x18001eec8
lea rdx, [rsp + 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebp
jne 0x18001ee2c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
cmp qword [rsp + 0x48], 8
jb 0x18001eee4
mov rcx, qword [rsp + 0x30]
call fcn.180042a14
mov ebx, dword [rsp + 0x50]
cmp ebx, ebp
je 0x18001ef10
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
mov r8d, 0x104
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ebx, dword [rsp + 0x50]
cmp qword [rsp + 0x78], 8
jb 0x18001ef22
mov rcx, qword [rsp + 0x60]
call fcn.180042a14
mov eax, ebx
jmp 0x18001ef28
xor eax, eax
mov rcx, qword [rsp + 0xb00]
xor rcx, rsp
call fcn.1800423f0
lea r11, [rsp + 0xb10]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1800354a4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x180080060]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x1800355a9
lea rcx, [rsp + 0x42]
xor edi, edi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], di
call fcn.180044a90
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.180036168
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18003551a
shr eax, 4
not eax
and eax, 1
jmp 0x1800355ab
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.1800355cc
cmp eax, edi
je 0x1800355a9
mov qword [rsp + 0x30], rdi
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]
cmp rax, rdi
je 0x180035587
mov ecx, 1
cmp rax, 0xffffffffffffffff
jne 0x180035589
mov ecx, edi
cmp cl, dil
mov ebx, edi
setne bl
cmp rax, 0xffffffffffffffff
je 0x1800355a5
cmp rax, rdi
je 0x1800355a5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1800355ab
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1800423f0
mov rbx, qword [rsp + 0x488]
add rsp, 0x470
pop rdi
ret
Function at 0x180035d50
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x50
mov ebp, r8d
mov r12, rdx
mov rdi, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
test eax, eax
jne 0x180035d89
test rdi, rdi
je 0x180035d7f
mov rcx, rdi
call fcn.1800354a4
jmp 0x180035d81
xor eax, eax
test eax, eax
je 0x180035e35
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 0x180035e14
cmp rax, 0xffffffffffffffff
je 0x180035e14
and dword [rsp + 0x40], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180035df7
cmp dword [rsp + 0x40], ebp
jne 0x180035df7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x180035e37
test esi, esi
jne 0x180035e21
mov rcx, rbx
or rbx, 0xffffffffffffffff
cmp rcx, rbx
je 0x180035e18
test rcx, rcx
je 0x180035e18
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180035e18
test esi, esi
jne 0x180035e21
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp rbx, 0xffffffffffffffff
je 0x180035e35
test rbx, rbx
je 0x180035e35
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x50
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x180080060]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rcx, [rsp + 0x21]
xor ebx, ebx
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], bl
call fcn.180044a90
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.180035fc8
mov r11d, 0x179b06cc
movzx edx, byte [rsp + rbx + 0x20]
movzx eax, r11b
mov ecx, r11d
xor rdx, rax
shr ecx, 8
lea rax, [0x180082900]
mov r11d, dword [rax + rdx*4]
inc rbx
xor r11d, ecx
cmp rbx, 0x24
jl 0x180036120
not r11d
mov eax, r11d
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1800423f0
add rsp, 0x140
pop rbx
ret
Function at 0x180036254
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 [0x180080060]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor r12d, r12d
mov rsi, rdx
mov rdi, rcx
cmp rdx, r12
je 0x180036336
lea rdx, str.deviceMup_
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, rdi
jne 0x1800362bf
lea r8, [0x18006a0dc]
lea rdx, str.deviceMup_
mov r9, rsi
mov rcx, rdi
call fcn.1800381e0
mov eax, 1
jmp 0x180036338
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, r12d
mov ebp, eax
bt ebp, ebx
jae 0x18003632f
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.180044a90
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, r12d
jbe 0x18003632f
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov rcx, rdi
call fcn.18003830c
cmp eax, r12d
jne 0x180036360
inc ebx
cmp ebx, 0x1a
jl 0x1800362ca
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1800423f0
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 0x1800362ad

Function at 0x180036b18
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x180080060]
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.180044a90
mov edx, ebx
mov ecx, 8
mov dword [rsp + 0x20], 0x438
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
test rax, rax
je 0x180036ba1
cmp rax, 0xffffffffffffffff
je 0x180036bb5
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.KERNEL32.dll_Module32FirstW
jmp 0x180036b9d
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.1800372c0
test eax, eax
je 0x180036ba1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x180036b7f
cmp rbx, 0xffffffffffffffff
je 0x180036bb5
test rbx, rbx
je 0x180036bb5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1800423f0
mov rbx, qword [rsp + 0x490]
add rsp, 0x470
pop rdi
ret
Function at 0x180036bd8
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 [0x180080060]
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 0x180036c73
cmp rax, 0xffffffffffffffff
je 0x180036c73
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x34]
call fcn.180044a90
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x180036c73
mov rdx, rsi
lea rcx, [rsp + 0x30]
call rdi
test eax, eax
je 0x180036c73
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x180036c54
cmp rbx, 0xffffffffffffffff
je 0x180036c87
test rbx, rbx
je 0x180036c87
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1800423f0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180036cac
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xe0
xor ebx, ebx
mov rdi, rcx
cmp rcx, rbx
jne 0x180036cca
xor eax, eax
jmp 0x180036d54
xor edx, edx
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x70], WSAGetLastError
lea r8d, [rdx + 0x60]
call fcn.180044a90
xor eax, eax
mov rcx, rdi
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x50], rbx
call fcn.180035458
xor r9d, r9d
xor r8d, r8d
mov rdi, rax
lea rax, [rsp + 0x50]
xor ecx, ecx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov rdx, rdi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
je 0x180036d49
mov rcx, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.180043128
mov rax, rbx
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret
Function at 0x180036e9c
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x110
xor edi, edi
mov rsi, rcx
cmp rcx, rdi
je 0x180037059
call fcn.180036d68
lea rcx, [0x180037070]
mov dword [rsp + 0x6c], edi
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x68], eax
cmp rcx, rdi
je 0x180037059
lea rdx, [rsp + 0x68]
call fcn.180036bd8
cmp dword [rsp + 0x70], edi
je 0x180037059
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 0x180037045
cmp rax, 0xffffffffffffffff
je 0x180037059
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 0x180037037
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 0x18003702c
mov rcx, rsi
call fcn.180035458
lea r8d, [rdi + 0x60]
lea rcx, [rsp + 0xa8]
xor edx, edx
mov dword [rsp + 0xa0], WSAGetLastError
mov rsi, rax
call fcn.180044a90
mov rcx, qword [rsp + 0x60]
lea eax, [rdi + 5]
mov word [rsp + 0xe0], ax
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 dword [rsp + 0xdc], 1
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp eax, edi
je 0x180037019
mov rcx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.180043128
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 0x18003705b
cmp rax, 0xffffffffffffffff
je 0x180037059
cmp rax, rdi
je 0x180037059
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1800371f0
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x180080060]
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 0x180037284
cmp rax, 0xffffffffffffffff
je 0x180037298
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], di
call fcn.180044a90
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rbx
call sub.PSAPI.DLL_GetProcessImageFileNameW
cmp eax, edi
jbe 0x180037277
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.180036254
mov edi, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x18003729a
cmp rax, 0xffffffffffffffff
je 0x180037298
cmp rax, rdi
je 0x180037298
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1800423f0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x18003743c
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 0x1800374a1
mov eax, 0x5a4d
cmp ax, word [rcx]
jne 0x1800374a1
cmp dword [rcx + 0x3c], 0x400
jge 0x1800374a1
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 0x1800374a1
cmp dword [rdi], 0x4550
jne 0x1800374a1
cmp rsi, rbx
je 0x18003749a
mov eax, 0xf0
cmp word [rdi + 0x14], ax
sete bl
mov dword [rsi], ebx
mov eax, 1
jmp 0x1800374a3
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1800374b4
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 0x180037566
lea rdx, [rbx + 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180037566
cmp qword [rbx + 0x18], 0
je 0x180037566
mov eax, 0x400000
cmp qword [rbx + 0x18], rax
jg 0x18003751e
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 0x180037566
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 0x1800375b0
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 0x1800375e8
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.1800374b4
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180037619
cmp qword [rsp + 0x38], 0x138
jbe 0x18003760c
mov rdx, rdi
call fcn.18003743c
mov rcx, qword [rsp + 0x30]
jmp 0x18003760e
xor eax, eax
test eax, eax
je 0x180037619
mov ebx, 1
jmp 0x18003761b
xor ebx, ebx
test rcx, rcx
je 0x180037626
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180037636
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x180037647
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret