joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001bb90
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x270
mov rax, qword [0x180295a70]
xor rax, rsp
mov qword [rsp + 0x260], rax
and word [rsp + 0x60], 0
mov rbx, rdx
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, 0x1fe
call fcn.1801603e0
lea r8, [rsp + 0x290]
lea rcx, [rsp + 0x60]
mov rdx, rbx
call fcn.180160550
lea r11, [rsp + 0x60]
lea rdx, str.CCommtouch
xor ecx, ecx
mov qword [rsp + 0x50], r11
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
mov rbx, rax
je 0x18001bc48
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
xor r8d, r8d
mov dx, 4
mov rcx, rbx
mov word [rsp + 0x28], 1
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1801604e0
add rsp, 0x270
pop rbx
ret

Function at 0x18001bcac
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, rdx
mov rdi, rdx
mov ebx, 0x1505
call fcn.18015ecc0
xor r8d, r8d
cmp rax, r8
jbe 0x18001bce1
movsx ecx, byte [r8 + rdi]
imul ebx, ebx, 0x21
add r8, 1
add ebx, ecx
cmp r8, rax
jb 0x18001bcce
btr ebx, 0x1f
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800222c8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x40
mov eax, dword [r9]
and dword [r9], 0
mov rcx, qword [rcx]
add eax, eax
mov rbx, r8
mov rdi, r9
mov dword [rsp + 0x30], eax
lea rax, [r11 - 0x18]
lea r9, [r11 + 0x20]
mov qword [r11 - 0x20], rax
xor r8d, r8d
mov qword [r11 - 0x28], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180022348
cmp dword [rsp + 0x68], 1
je 0x18002231c
cmp dword [rsp + 0x68], 2
je 0x18002231c
mov eax, SafeArrayDestroy
jmp 0x180022348
test rbx, rbx
mov ecx, dword [rsp + 0x30]
je 0x180022342
test ecx, ecx
je 0x18002233e
test cl, 1
jne 0x180022315
mov rax, rcx
shr rax, 1
cmp word [rbx + rax*2 - 2], 0
je 0x180022342
jmp 0x180022315
and word [rbx], 0
shr ecx, 1
xor eax, eax
mov dword [rdi], ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1800223a4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1800223e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x180022448
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, 0xcd8
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180022423
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x180022448
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180022448
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1800225c4
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x20], 0
mov rbx, rcx
je 0x1800225fe
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x18], eax
je 0x1800225eb
mov rcx, qword [rbx + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x20], 0
and dword [rbx + 0x18], 0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x180022612
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x30], 0
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x180022626
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x28], 0
add rsp, 0x20
pop rbx
ret

Function at 0x1800228f4
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rdi, rcx
xor ebx, ebx
test rcx, rcx
je 0x18002291a
call qword [sym.imp.KERNEL32.dll_IsBadCodePtr]
jmp 0x18002291f
mov eax, 1
test eax, eax
jne 0x180022981
lea edx, [rax + 0x14]
xor ecx, ecx
lea r9d, [rax + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x180022981
mov r8d, SafeArrayUnaccessData
lea rdx, [0x180297b90]
mov rcx, rax
call fcn.180161690
mov qword [rbx + 4], rdi
jmp 0x180022965
and dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
mov edx, SafeArrayUnaccessData
lea r8d, [rdx + 0xc]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180022c80
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov r15, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r13, rax
mov qword [rsp + 0x30], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov esi, eax
mov dword [rsp + 0x38], eax
cmp eax, 0x7fffffff
je 0x180022cda
mov edx, reloc.OLEAUT32.dll_SafeArrayDestroy
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test rdi, rdi
je 0x180022ce8
test r15, r15
je 0x180022ce8
xor ebx, ebx
jmp 0x180022ced
mov ebx, 0x80070057
and dword [rsp + 0x98], 0
test ebx, ebx
js 0x180022e0d
lea r9, [rsp + 0x98]
mov r8d, reloc.OLEAUT32.dll_VarI4FromDisp
lea r12d, [r8 - 0x38]
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r14d, eax
mov dword [rsp + 0x24], eax
test eax, eax
jne 0x180022d3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x180022dd0
mov r8, r15
mov rdx, qword [rdi]
mov r15, qword [rsp + 0x80]
mov rcx, r15
call fcn.180022bc4
mov ebx, eax
test eax, eax
js 0x180022dd0
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualLock]
test eax, eax
je 0x180022dbc
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x180022d85
mov ebx, 0x80004003
jmp 0x180022dae
mov rax, qword [r15 + 8]
xchg qword [rdi], rax
jmp 0x180022dae
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualUnlock]
jmp 0x180022dd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test r14d, r14d
je 0x180022e0d
lea r9, [rsp + 0x98]
mov r8d, dword [rsp + 0x98]
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test ebx, ebx
js 0x180022e0d
test eax, eax
jne 0x180022e0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp esi, 0x7fffffff
je 0x180022e20
mov edx, esi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, ebx
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x180022f10
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x30
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsSOMISC
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov ebx, eax
jne 0x180022f68
mov rcx, qword [rsp + 0x40]
lea rdx, str.INC_UPLOAD_FILEPATH
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x180026748
Capabilities:
Enumerate threads

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edx, edx
lea ecx, [rdx + 4]
mov r12d, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
xor ebx, ebx
test rax, rax
mov rdi, rax
je 0x1800267fc
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
mov esi, eax
je 0x1800267f3
test rbx, rbx
jne 0x1800267f3
cmp dword [rsp + 0x2c], ebp
jne 0x1800267e0
mov ecx, dword [rsp + 0x28]
cmp ecx, r12d
je 0x1800267e0
call fcn.180022e8c
mov rcx, rax
call fcn.180022864
test al, al
jne 0x1800267e0
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenThread]
test rax, rax
mov rbx, rax
jne 0x1800267ef
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
mov esi, eax
test esi, esi
jne 0x1800267a1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r12
ret
jmp 0x180026748

Function at 0x180026a84
Capabilities:
Enumerate threads

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edx, edx
lea ecx, [rdx + 4]
mov r12d, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
xor ebx, ebx
test rax, rax
mov rdi, rax
je 0x1800267fc
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
mov esi, eax
je 0x1800267f3
test rbx, rbx
jne 0x1800267f3
cmp dword [rsp + 0x2c], ebp
jne 0x1800267e0
mov ecx, dword [rsp + 0x28]
cmp ecx, r12d
je 0x1800267e0
call fcn.180022e8c
mov rcx, rax
call fcn.180022864
test al, al
jne 0x1800267e0
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenThread]
test rax, rax
mov rbx, rax
jne 0x1800267ef
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
mov esi, eax
test esi, esi
jne 0x1800267a1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r12
ret
jmp 0x180026748
Function at 0x18002a6f0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
xor ebx, ebx
mov r12, rcx
mov rbp, r8
lea ecx, [rbx + 0x10]
mov rsi, rdx
mov word [r8], bx
mov dword [rsp + 0x58], ebx
call fcn.18015fd40
cmp rax, rbx
mov rdi, rax
je 0x18002a72e
mov qword [rax], rbx
mov qword [rax + 8], rbx
jmp 0x18002a731
mov rdi, rbx
lea rax, [rsp + 0x58]
lea r8, [0x18002a080]
mov r9, rdi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov qword [rdi], r12
mov qword [rdi + 8], rsi
mov dword [rsp + 0x20], ebx
call fcn.1801630d0
cmp rax, rbx
mov rsi, rax
je 0x18002a7d1
mov r9d, 0x32
lea rdx, [rsp + 0x50]
xor r8d, r8d
lea ecx, [r9 - 0x31]
mov qword [rsp + 0x50], rax
call fcn.180028f44
mov rcx, rsi
cmp eax, ebx
jne 0x18002a7be
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], ebx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp eax, ebx
jne 0x18002a7b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
cmp r11d, ebx
cmovle eax, r11d
mov ebx, eax
jmp 0x18002a7c6
movzx eax, word [rsp + 0x50]
mov word [rbp], ax
jmp 0x18002a7c6
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18002a7eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
cmp r11d, ebx
cmovle eax, r11d
mov ebx, eax
mov rcx, rdi
call fcn.18015ea10
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x18002b038
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x278
mov edi, 1
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18002b0d6
cmp dword [rbx + 0x490], 0
jne 0x18002b072
cmp dword [rbx + 0x48c], 0
je 0x18002b0a8
and dword [rsp + 0x30], 0
xor eax, eax
lea rdx, [rsp + 0x30]
lea rcx, [rbx + 0x278]
mov dword [rsp + 0x34], eax
call fcn.18002369c
test eax, eax
js 0x18002b0a8
lea rcx, [rbx + 0x48c]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
je 0x18002b0d6
lea rcx, [rbx + 8]
lea rdx, [rbx + 0x278]
xor r8d, r8d
call fcn.18002ac14
test eax, eax
mov edi, eax
js 0x18002b0d6
lea rdx, [rbx + 0x48c]
lea rcx, [rbx + 0x278]
call fcn.18002369c
mov edi, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x18002b478
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xf40
mov rax, qword [0x180295a70]
xor rax, rsp
mov qword [rsp + 0xf30], rax
mov esi, r9d
mov r13, r8
mov r12, rdx
mov rbp, rcx
call fcn.1800224d8
test eax, eax
mov r14d, eax
jne 0x18002b4be
mov ebx, 0x800703eb
jmp 0x18002b659
and word [rsp + 0xd20], 0
lea rcx, [rsp + 0xd22]
xor edx, edx
mov r8d, 0x206
call fcn.1801603e0
lea rdx, [rsp + 0xd20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rsp + 0xd20]
lea rdx, [0x180191b30]
lea rcx, [rsp + 0xd20]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0xd20]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x4000100
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x18002b563
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x18002b64a
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0xcd8
call fcn.1801603e0
lea rcx, [rsp + 0x40]
mov r9, r13
mov r8, r12
mov rdx, rbp
call fcn.18002662c
test eax, eax
mov ebx, eax
js 0x18002b64a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x40], esi
mov dword [rsp + 0xcf8], eax
mov eax, dword [rsp + 0xfa0]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0xfc8]
mov dword [rsp + 0xd0c], eax
mov eax, dword [rsp + 0xfc0]
mov dword [rsp + 0xd10], eax
mov rax, qword [rsp + 0xfa8]
test rax, rax
je 0x18002b610
mov r10d, dword [rsp + 0xfb0]
xor edx, edx
xor ecx, ecx
test r10d, r10d
je 0x18002b610
lea r8, [rsp + 0x48]
cmp edx, 0x20
jae 0x18002b610
mov r9d, dword [rax]
test r9d, r9d
je 0x18002b604
mov dword [r8], r9d
add edx, 1
add r8, 4
add ecx, 1
add rax, 4
cmp ecx, r10d
jb 0x18002b5ed
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.1800223a4
test eax, eax
mov ebx, eax
js 0x18002b64a
mov byte [rsp + 0x30], 0
and qword [rsp + 0x28], 0
or dword [rsp + 0x20], 0xffffffff
lea rdx, str.RequestDlpScanLToH
mov r9b, 1
mov r8, rdi
mov ecx, r14d
call fcn.18002b0e8
mov ebx, eax
cmp rdi, 0xffffffffffffffff
je 0x18002b659
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0xf30]
xor rcx, rsp
call fcn.1801604e0
add rsp, 0xf40
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180031a08
Capabilities:
Get common file path

Disassembly:
push rdi
mov eax, 0x1670
call fcn.180188080
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x1690], rbx
mov qword [rsp + 0x1698], rsi
mov rax, qword [0x180295a70]
xor rax, rsp
mov qword [rsp + 0x1660], rax
mov rsi, rdx
mov rbx, rcx
mov r8, qword [rcx + 0x48]
mov edi, dword [r8]
cmp edi, 1
je 0x180031bce
cmp edi, 3
je 0x180031bce
cmp edi, 2
jne 0x180031a74
mov r8, qword [r8 + 8]
call fcn.180031708
jmp 0x180031c5f
cmp edi, 4
jne 0x180031b56
and qword [rsp + 0x28], 0
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx]
lea rdx, [rsp + 0x28]
call qword [rax + SysAllocStringByteLen]
mov r11d, eax
xor ecx, ecx
mov qword [rsp + 0x20], rcx
test eax, eax
js 0x180031ac9
mov r9, qword [rsp + 0x28]
test r9, r9
je 0x180031ac9
mov rax, qword [r9]
lea r8, [rsp + 0x20]
lea rdx, [0x1801928f0]
mov rcx, r9
call qword [rax]
mov r11d, eax
mov rcx, qword [rsp + 0x20]
xor eax, eax
mov qword [rsp + 0x30], rax
test r11d, r11d
js 0x180031b1b
test rcx, rcx
je 0x180031af2
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
call qword [rax + 0x48]
mov r11d, eax
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x30]
test r11d, r11d
js 0x180031b1b
test rax, rax
je 0x180031b1b
mov rcx, qword [rbx + 0x48]
mov r8, qword [rax]
mov rdx, qword [rcx + 0x20]
mov rcx, rax
call qword [r8 + 0x1c8]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x180031b2e
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x180031b3a
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov r9, qword [rsp + 0x28]
test r9, r9
je 0x180031c5f
mov rax, qword [r9]
mov rcx, r9
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x180031c5f
and word [rsp + 0x40], 0
xor edx, edx
mov r8d, 0x618
lea rcx, [rsp + 0x42]
call fcn.1801603e0
and word [rsp + 0x660], 0
xor edx, edx
mov r8d, 0xffe
lea rcx, [rsp + 0x662]
call fcn.1801603e0
mov edx, 0x30d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [rsp + 0x40]
lea rdx, str.res:___s_shdoclc.dll_navcancl.htm
lea rcx, [rsp + 0x660]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rsp + 0x660]
mov rdx, rsi
mov rcx, rbx
call fcn.180031708
jmp 0x180031c5f
and word [rsp + 0x40], 0
xor edx, edx
mov r8d, 0x618
lea rcx, [rsp + 0x42]
call fcn.1801603e0
and word [rsp + 0x660], 0
xor edx, edx
mov r8d, 0xffe
lea rcx, [rsp + 0x662]
call fcn.1801603e0
mov edx, 0x30d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [rsp + 0x40]
lea rdx, str.res:___s_shdoclc.dll_navcancl.htm
lea rcx, [rsp + 0x660]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rsp + 0x660]
mov rdx, rsi
mov rcx, rbx
call fcn.180031708
cmp edi, 3
jne 0x180031c5f
mov rdx, qword [rbx + 0x48]
xor r9d, r9d
mov r8, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x18]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x1660]
xor rcx, rsp
call fcn.1801604e0
lea r11, [rsp + 0x1670]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180034f10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor esi, esi
test rcx, rcx
mov rax, rdx
mov rdi, rcx
je 0x180034f33
test rdx, rdx
mov ebx, esi
jne 0x180034f38
mov ebx, 0x80070057
test ebx, ebx
mov qword [rsp + 0x60], rsi
js 0x180034feb
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x180034f89
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ebx, eax
jle 0x180034f89
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x180034fdb
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
mov ebx, eax
js 0x180034fdb
mov r8d, dword [rdi + 0x18]
mov rdx, qword [rsp + 0x60]
lea r9, [rsp + 0x50]
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180034fdb
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ebx, eax
jle 0x180034fdb
movzx ebx, ax
or ebx, 0x80070000
cmp qword [rsp + 0x60], rsi
je 0x180034feb
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x180035000
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x120
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x180295a70]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rsi, rdx
test rdx, rdx
je 0x180035046
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
jmp 0x180035048
xor ebp, ebp
lea r12d, [rbp + rbp]
xor edi, edi
lea ebx, [r12 + 2]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1800351ae
mov r8d, r12d
mov rdx, rsi
mov rcx, rax
call fcn.180161690
movsxd r11, ebp
mov word [rbx + r11*2], di
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharLowerW]
lea rcx, [rsp + 0x30]
call fcn.18003a570
nop
lea rcx, [rsp + 0x30]
call fcn.1800390a0
mov r8d, r12d
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.18003a5c0
lea rcx, [rsp + 0x30]
call fcn.18003a640
lea rcx, [rsp + 0x30]
call fcn.180039110
mov rsi, rax
test rax, rax
je 0x18003518a
cmp byte [rax], dil
je 0x18003518a
movabs rax, 0x5c6c61626f6c47
mov qword [rsp + 0xe0], rax
xor eax, eax
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], rax
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r8d, 0x30
sub r8d, eax
cdqe
lea rcx, [rsp + rax + 0xe0]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
mov byte [rsp + 0x10f], dil
lea r8, [rsp + 0xe0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rdi, rax
test rax, rax
je 0x18003518a
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18003518a
cmp eax, 0x80
je 0x18003518a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
lea rcx, [rsp + 0x30]
call fcn.180039090
mov rax, rdi
jmp 0x1800351b1
mov rax, rdi
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1801604e0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret