joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180058fa0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rdi, r8
cmp dword [rcx + 8], 2
mov rsi, rdx
jne 0x180058fea
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x180058fda
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rcx + 0x10]
mov edx, 1
mov rcx, rsi
call rax
jmp 0x180059032
cmp qword [rbx + 0x10], 0
jne 0x18005901e
mov rcx, qword [rcx + 0x10]
lea rdx, [0x180093040]
call fcn.18005ff50
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x18005901e
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rbx + 0x10]
mov r8, rdi
mov edx, 1
mov rcx, rsi
call fcn.1800615e4
mov rdi, rax
test rax, rax
jne 0x180059055
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18005904c
call fcn.18005f454
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x18005a710
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov r12d, r8d
lea r9d, [rax + rax]
mov eax, dword [rcx + 0x20]
mov rbp, rdx
lea rcx, [r9 + rax + 0x18]
call qword [fcn.18005c4dc]
mov rdi, rax
test rax, rax
jne 0x18005a751
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rsp + 0x48], rsi
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp r12d, dword [rbx + 0x1c]
jbe 0x18005a795
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, r12d
mov rdx, rbp
call qword [rbx + ioctlsocket]
mov ebp, dword [rbx + 0x18]
mov rdx, qword [rdi + 8]
add rbp, qword [rdi + 0x10]
mov rcx, rbp
call qword [rbx + reloc.WS2_32.dll_recv]
mov r12d, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test r12, r12
je 0x18005a7f5
mov rsi, r12
nop dword [rax + rax]
movzx eax, byte [rbp]
lea rdx, [rsp + 0x40]
mov r8d, 1
xor al, 0x36
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + ioctlsocket]
movzx r11d, byte [rbp]
lea rdx, [rsp + 0x40]
xor r11b, 0x5c
mov r8d, 1
inc rbp
mov byte [rsp + 0x40], r11b
mov rcx, qword [rdi + 0x10]
call qword [rbx + ioctlsocket]
sub r12, 1
jne 0x18005a7b0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x18005a833
nop dword [rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x18009342b]
mov r8d, 1
call qword [rbx + ioctlsocket]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x18009342c]
mov r8d, 1
call qword [rbx + ioctlsocket]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x18005a800
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x20
pop r12
pop rdi
pop rbp
ret
Function at 0x18005b694
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x1800aa498]
test rcx, rcx
jne 0x18005b5eb
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 0x60]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x18005b5e4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18005b616
and qword [rax], 0
and qword [rax + 8], 0
xor eax, eax
lock cmpxchg qword [rbx + 0x40], rdi
je 0x18005b5e0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx + 0x40]
mov qword [0x1800aa498], rcx
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x18005b689
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x18005b639
xor edx, edx
lea r9, [rsp + 0x30]
mov ecx, 0xc0000017
lea r8d, [rdx + 1]
mov qword [rsp + 0x30], reloc.WLDAP32.dll_Ordinal_32
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [rax]
mov rcx, qword [0x1800aa498]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x18005b666
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x18005b689
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x1800aa498]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x18005b66d
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
jmp 0x18005b570

Function at 0x180060104
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x18006011a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18006011c
xor eax, eax
test eax, eax
je 0x18006012c
mov ecx, eax
call fcn.18006100c
or eax, 0xffffffff
jmp 0x18006012e
xor eax, eax
add rsp, 0x28
ret

Function at 0x180066224
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x180066098
Function at 0x18006672b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800a8120]
jne 0x18005cb4a
rol rcx, 0x10
test cx, 0xffff
jne 0x18005cb46
repz ret
ror rcx, 0x10
jmp 0x180066684
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800aab90]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1800aac88]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180066709
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1800aab90]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18006672b
mov rax, qword [rsp + 0x88]
mov qword [0x1800aac88], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800aac28], rax
mov rax, qword [0x1800aac88]
mov qword [0x1800aab00], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800aac10], rax
mov dword [0x1800aaaf0], 0xc0000409
mov dword [0x1800aaaf4], 1
mov rax, qword [0x1800a8120]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800a8128]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800aab88], eax
mov ecx, 1
call fcn.18006b4b8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180094b90]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800aab88], 0
jne 0x1800667b2
mov ecx, 1
call fcn.18006b4b8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x180075afc
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.18006697c
xor ebx, ebx
mov rdi, rax
cmp qword [0x1800ab580], rbx
jne 0x180075c02
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x180075cd7
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180075cd7
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800ab580], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800ab588], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x1800ab590], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1800ab5a0], rax
test rax, rax
je 0x180075bf9
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1800ab598], rax
jmp 0x180075c09
mov rax, qword [0x1800ab598]
jmp 0x180075c10
mov rax, qword [0x1800ab598]
mov r11, qword [0x1800ab5a0]
cmp rax, rdi
je 0x180075c78
cmp r11, rdi
je 0x180075c78
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1800ab5a0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x180075c78
test rax, rax
je 0x180075c78
call rsi
test rax, rax
je 0x180075c72
lea rcx, [rsp + 0x88]
mov r9d, ntohs
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180075c72
test byte [rsp + 0x38], 1
jne 0x180075c78
bts ebp, 0x15
jmp 0x180075cb6
mov rcx, qword [0x1800ab588]
cmp rcx, rdi
je 0x180075cb6
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180075cb6
call rax
mov rbx, rax
test rax, rax
je 0x180075cb6
mov rcx, qword [0x1800ab590]
cmp rcx, rdi
je 0x180075cb6
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180075cb6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800ab580]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180075cd7
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180075cd9
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x18007e1f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x50
mov byte [rsp + 0x40], 0
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffff80000001
jne 0x18007e247
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x3c]
or eax, 0x20019
mov dword [rsp + 0x44], eax
lea rdx, [rsp + 0x30]
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x18007e247
xor al, al
jmp 0x18007e2e3
mov rax, qword [rsp + 0x60]
mov ebx, dword [rax + 0x3c]
or ebx, 0x20019
mov rcx, qword [rsp + 0x60]
add rcx, 8
call fcn.1800023c8
mov rdx, rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18007e2df
mov rcx, qword [rsp + 0x68]
call fcn.1800023c8
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18007e2c3
mov dword [rsp + 0x48], 1
jmp 0x18007e2cb
mov dword [rsp + 0x48], 0
movzx eax, byte [rsp + 0x48]
mov byte [rsp + 0x40], al
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [rsp + 0x40]
add rsp, 0x50
pop rbx
ret

Function at 0x18007e2f0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0x38
mov rcx, qword [rsp + 0x50]
call fcn.18007e080
movzx eax, al
test eax, eax
jne 0x18007e31d
xor al, al
jmp 0x18007e3c0
mov rcx, qword [rsp + 0x60]
call fcn.180008ba0
test rax, rax
jne 0x18007e36c
mov rcx, qword [rsp + 0x58]
call fcn.1800023c8
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 3
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x18007e36a
xor al, al
jmp 0x18007e3c0
jmp 0x18007e3be
mov rcx, qword [rsp + 0x60]
call fcn.180008ba0
mov rdi, rax
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.180008bc0
mov rbx, rax
mov rcx, qword [rsp + 0x58]
call fcn.1800023c8
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
mov r9d, 3
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x18007e3be
xor al, al
jmp 0x18007e3c0
mov al, 1
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x18007e3d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0x38
mov rcx, qword [rsp + 0x50]
call fcn.18007e080
movzx eax, al
test eax, eax
jne 0x18007e3fa
xor al, al
jmp 0x18007e44e
mov rcx, qword [rsp + 0x60]
call fcn.1800014c8
mov edi, eax
add edi, 1
mov rcx, qword [rsp + 0x60]
call fcn.1800023c8
mov rbx, rax
mov rcx, qword [rsp + 0x58]
call fcn.1800023c8
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x18007e44c
xor al, al
jmp 0x18007e44e
mov al, 1
add rsp, 0x38
pop rdi
pop rbx
ret

Function at 0x18007e520
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x110
mov qword [rsp + 0x100], 0xfffffffffffffffe
mov rax, qword [0x1800a8120]
xor rax, rsp
mov qword [rsp + 0x108], rax
mov dword [rsp + 0x78], 0
mov rcx, qword [rsp + 0x120]
call fcn.18007e080
movzx eax, al
test eax, eax
jne 0x18007e596
mov rcx, qword [rsp + 0x128]
call fcn.180001468
mov eax, dword [rsp + 0x78]
or eax, 1
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0x128]
jmp 0x18007e6f6
mov rcx, qword [rsp + 0x130]
call fcn.1800023c8
mov rdx, rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18007e5ec
cmp dword [rsp + 0x30], 1
je 0x18007e611
cmp dword [rsp + 0x30], 2
je 0x18007e611
cmp dword [rsp + 0x30], 6
je 0x18007e611
mov rcx, qword [rsp + 0x128]
call fcn.180001468
mov eax, dword [rsp + 0x78]
or eax, 1
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0x128]
jmp 0x18007e6f6
cmp dword [rsp + 0x34], 0
jbe 0x18007e6d6
mov edx, dword [rsp + 0x34]
add edx, 1
lea rcx, [rsp + 0x68]
call fcn.180008980
mov eax, dword [rsp + 0x34]
add eax, 1
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x68]
call fcn.1800089c0
mov rbx, rax
mov rcx, qword [rsp + 0x130]
call fcn.1800023c8
mov rdx, rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [rsp + 0x34]
lea rcx, [rsp + 0x68]
call fcn.1800089d0
mov byte [rax], 0
lea rcx, [rsp + 0x68]
call fcn.1800089c0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.180001480
nop
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x128]
call fcn.180002398
mov eax, dword [rsp + 0x78]
or eax, 1
mov dword [rsp + 0x78], eax
lea rcx, [rsp + 0x40]
call fcn.180001438
mov rax, qword [rsp + 0x128]
jmp 0x18007e6f6
mov rcx, qword [rsp + 0x128]
call fcn.180001468
mov eax, dword [rsp + 0x78]
or eax, 1
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.18005cb30
add rsp, 0x110
pop rbx
ret
Function at 0x18007e720
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x80
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov dword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x90]
call fcn.18007e080
movzx eax, al
test eax, eax
jne 0x18007e781
mov rcx, qword [rsp + 0x98]
call fcn.1800089f0
mov eax, dword [rsp + 0x68]
or eax, 1
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x98]
jmp 0x18007e88d
lea rcx, [rsp + 0x38]
call fcn.1800089f0
nop
mov rcx, qword [rsp + 0xa0]
call fcn.1800023c8
mov rdx, rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18007e7d4
cmp dword [rsp + 0x30], 3
je 0x18007e803
mov rcx, qword [rsp + 0x98]
call fcn.1800089f0
mov eax, dword [rsp + 0x68]
or eax, 1
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x38]
call fcn.180008b40
mov rax, qword [rsp + 0x98]
jmp 0x18007e88d
cmp dword [rsp + 0x34], 0
jbe 0x18007e85e
mov edx, dword [rsp + 0x34]
lea rcx, [rsp + 0x38]
call fcn.180008b70
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.180008bc0
mov rbx, rax
mov rcx, qword [rsp + 0xa0]
call fcn.1800023c8
mov rdx, rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x98]
call fcn.180008a40
mov eax, dword [rsp + 0x68]
or eax, 1
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x38]
call fcn.180008b40
mov rax, qword [rsp + 0x98]
add rsp, 0x80
pop rbx
ret

Function at 0x18007e8a0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x20]
cmp eax, 9
je 0x18007e8c3
movzx eax, word [rsp + 0x20]
cmp eax, 6
jne 0x18007e8c7
mov al, 1
jmp 0x18007e8c9
xor al, al
add rsp, 0x58
ret
Function at 0x18007ecb0
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x100
mov qword [rsp + 0xd0], 0xfffffffffffffffe
mov rax, qword [0x1800a8120]
xor rax, rsp
mov qword [rsp + 0xf8], rax
mov rcx, qword [rsp + 0x110]
call fcn.1800023c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x18007edce
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.18007ec10
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
lea r8, [0x18009759c]
mov rdx, qword [rsp + 0x110]
lea rcx, [rsp + 0x78]
call fcn.180004230
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf0], rax
mov r8, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x28]
call fcn.1800042d0
nop
lea rcx, [rsp + 0x78]
call fcn.180001438
nop
lea rcx, [rsp + 0x50]
call fcn.180001438
lea rcx, [rsp + 0x28]
call fcn.1800023c8
mov rbx, rax
mov rcx, qword [rsp + 0x110]
call fcn.1800023c8
mov rdx, rbx
mov rcx, rax
call fcn.180060104
lea rcx, [rsp + 0x28]
call fcn.1800023c8
mov r8d, 5
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
lea rcx, [rsp + 0x28]
call fcn.180001438
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.18005cb30
add rsp, 0x100
pop rbx
ret
Function at 0x18007f300
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x158
mov qword [rsp + 0x130], 0xfffffffffffffffe
mov rax, qword [0x1800a8120]
xor rax, rsp
mov qword [rsp + 0x140], rax
call fcn.18007f110
mov qword [rsp + 0x30], 0
call fcn.180026470
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x24], gethostname
mov rdx, qword [rsp + 0x178]
lea rcx, [rsp + 0x40]
call fcn.180002398
nop
mov byte [rsp + 0x98], 0x5c
mov byte [rsp + 0x99], Ordinal_50
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x40]
call fcn.180002820
lea rdi, [rsp + 0xe0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x40]
call fcn.1800027e0
lea rdi, [rsp + 0xd0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x99]
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0xd0]
call fcn.180002d40
mov r8, 0xffffffffffffffff
lea rdx, [0x18009786c]
lea rcx, [rsp + 0x40]
call fcn.180002860
mov dword [rsp + 0x68], eax
movsxd rax, dword [rsp + 0x68]
cmp rax, 0xffffffffffffffff
je 0x18007f446
mov eax, dword [rsp + 0x68]
add eax, 1
movsxd r9, eax
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.1800028a0
lea rcx, [rsp + 0x70]
call fcn.1800023c8
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
lea rcx, [rsp + 0x70]
call fcn.180001438
lea rcx, [rsp + 0x40]
call fcn.1800023c8
lea rdx, [0x18009789c]
mov rcx, rax
call fcn.18005ff50
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18007f48a
mov byte [rsp + 0xc0], 0
lea rcx, [rsp + 0x40]
call fcn.180001438
mov al, byte [rsp + 0xc0]
jmp 0x18007f5ae
mov rcx, qword [rsp + 0x170]
call fcn.1800023c8
mov r8, rax
mov edx, 0x2712
mov rcx, qword [rsp + 0x30]
call fcn.1800264c0
mov r8d, 0x7530
mov edx, Ordinal_79
mov rcx, qword [rsp + 0x30]
call fcn.1800264c0
mov r8, qword [rsp + 0x28]
mov edx, 0x2711
mov rcx, qword [rsp + 0x30]
call fcn.1800264c0
lea r8, [fcn.18005f668]
mov edx, 0x4e2b
mov rcx, qword [rsp + 0x30]
call fcn.1800264c0
mov r8d, 1
mov edx, Ordinal_46
mov rcx, qword [rsp + 0x30]
call fcn.1800264c0
mov r8d, 1
mov edx, reloc.WLDAP32.dll_Ordinal_41
mov rcx, qword [rsp + 0x30]
call fcn.1800264c0
mov r8d, 1
mov edx, 0x34
mov rcx, qword [rsp + 0x30]
call fcn.1800264c0
mov rcx, qword [rsp + 0x30]
call fcn.180026730
mov dword [rsp + 0x24], eax
mov rcx, qword [rsp + 0x28]
call fcn.18005f454
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, 0x200002
mov rcx, qword [rsp + 0x30]
call fcn.180026760
mov rcx, qword [rsp + 0x30]
call fcn.180026740
cmp dword [rsp + 0x24], 0
jne 0x18007f583
cmp dword [rsp + 0x20], 0xc8
jne 0x18007f583
mov dword [rsp + 0x138], 1
jmp 0x18007f58e
mov dword [rsp + 0x138], 0
movzx eax, byte [rsp + 0x138]
mov byte [rsp + 0xc1], al
lea rcx, [rsp + 0x40]
call fcn.180001438
mov al, byte [rsp + 0xc1]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18005cb30
add rsp, 0x158
pop rdi
pop rsi
ret
Function at 0x18007fea0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x370
mov qword [rsp + 0x350], 0xfffffffffffffffe
mov rax, qword [0x1800a8120]
xor rax, rsp
mov qword [rsp + 0x368], rax
mov rcx, qword [rsp + 0x380]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18007fee9
xor al, al
jmp 0x18008008e
mov rcx, qword [rsp + 0x380]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
jmp 0x18007ff11
mov eax, dword [rsp + 0x28]
add eax, 1
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
cmp rax, 9
jae 0x18008008c
mov eax, dword [rsp + 0x28]
lea rdx, str.7z.dll
mov rdx, qword [rdx + rax*8]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x180080087
movzx eax, byte [0x1800ab620]
test eax, eax
jne 0x18007fff6
xor eax, eax
mov word [rsp + 0x60], ax
lea rdi, [rsp + 0x62]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x388]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x270]
call fcn.1800034e0
nop
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x298]
call fcn.18007fb10
mov qword [rsp + 0x358], rax
mov rax, qword [rsp + 0x358]
mov qword [rsp + 0x360], rax
mov rdx, qword [rsp + 0x360]
lea rcx, [0x1800ab628]
call fcn.18000151c
nop
lea rcx, [rsp + 0x298]
call fcn.1800014e8
nop
lea rcx, [rsp + 0x270]
call fcn.1800014e8
mov byte [0x1800ab620], 1
mov rdx, qword [rsp + 0x380]
lea rcx, [rsp + 0x2c0]
call fcn.1800034e0
nop
lea rdx, [rsp + 0x2c0]
lea rcx, [rsp + 0x38]
call fcn.18007fb10
nop
lea rcx, [rsp + 0x2c0]
call fcn.1800014e8
lea rdx, [0x1800ab628]
lea rcx, [rsp + 0x38]
call fcn.18000a5b0
movzx eax, al
test eax, eax
je 0x180080061
mov byte [rsp + 0x2e8], 0
lea rcx, [rsp + 0x38]
call fcn.1800014e8
mov al, byte [rsp + 0x2e8]
jmp 0x18008008e
mov byte [rsp + 0x2e9], 1
lea rcx, [rsp + 0x38]
call fcn.1800014e8
mov al, byte [rsp + 0x2e9]
jmp 0x18008008e
jmp 0x18007ff06
mov al, 1
mov rcx, qword [rsp + 0x368]
xor rcx, rsp
call fcn.18005cb30
add rsp, 0x370
pop rdi
ret