joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005ba40
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 0x18005ba8a
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x18005ba7a
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 0x18005bad2
cmp qword [rbx + 0x10], 0
jne 0x18005babe
mov rcx, qword [rcx + 0x10]
lea rdx, [0x1800961c0]
call fcn.1800629e0
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x18005babe
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.180064074
mov rdi, rax
test rax, rax
jne 0x18005baf5
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18005baec
call fcn.180061ee4
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 0x18005d1b0
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.18005ef80]
mov rdi, rax
test rax, rax
jne 0x18005d1f1
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 0x18005d235
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 0x18005d295
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 0x18005d250
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x18005d2d3
nop dword [rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1800965ab]
mov r8d, 1
call qword [rbx + ioctlsocket]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1800965ac]
mov r8d, 1
call qword [rbx + ioctlsocket]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x18005d2a0
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 0x18005e138
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x1800ae638]
test rcx, rcx
jne 0x18005e08f
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 0x60]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x18005e088
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 0x18005e0ba
and qword [rax], 0
and qword [rax + 8], 0
xor eax, eax
lock cmpxchg qword [rbx + 0x40], rdi
je 0x18005e084
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 [0x1800ae638], rcx
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x18005e12d
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 0x18005e0dd
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 [0x1800ae638]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x18005e10a
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x18005e12d
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x1800ae638]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x18005e111
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
jmp 0x18005e014

Function at 0x180062b94
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x180062baa
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180062bac
xor eax, eax
test eax, eax
je 0x180062bbc
mov ecx, eax
call fcn.180063a9c
or eax, 0xffffffff
jmp 0x180062bbe
xor eax, eax
add rsp, 0x28
ret

Function at 0x180068cb4
Capabilities:
Terminate process

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

Disassembly:
cmp rcx, qword [0x1800ac2b8]
jne 0x18005f4ea
rol rcx, 0x10
test cx, 0xffff
jne 0x18005f4e6
repz ret
ror rcx, 0x10
jmp 0x180069114
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800aed30]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1800aee28]
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 0x180069199
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, [0x1800aed30]
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 0x1800691bb
mov rax, qword [rsp + 0x88]
mov qword [0x1800aee28], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800aedc8], rax
mov rax, qword [0x1800aee28]
mov qword [0x1800aeca0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800aedb0], rax
mov dword [0x1800aec90], 0xc0000409
mov dword [0x1800aec94], 1
mov rax, qword [0x1800ac2b8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800ac2c0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800aed28], eax
mov ecx, 1
call fcn.18006df4c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180097d20]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800aed28], 0
jne 0x180069242
mov ecx, 1
call fcn.18006df4c
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 0x180078594
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.18006940c
xor ebx, ebx
mov rdi, rax
cmp qword [0x1800af720], rbx
jne 0x18007869a
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x18007876f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18007876f
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800af720], 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 [0x1800af728], 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 [0x1800af730], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1800af740], rax
test rax, rax
je 0x180078691
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1800af738], rax
jmp 0x1800786a1
mov rax, qword [0x1800af738]
jmp 0x1800786a8
mov rax, qword [0x1800af738]
mov r11, qword [0x1800af740]
cmp rax, rdi
je 0x180078710
cmp r11, rdi
je 0x180078710
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1800af740]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x180078710
test rax, rax
je 0x180078710
call rsi
test rax, rax
je 0x18007870a
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 0x18007870a
test byte [rsp + 0x38], 1
jne 0x180078710
bts ebp, 0x15
jmp 0x18007874e
mov rcx, qword [0x1800af728]
cmp rcx, rdi
je 0x18007874e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18007874e
call rax
mov rbx, rax
test rax, rax
je 0x18007874e
mov rcx, qword [0x1800af730]
cmp rcx, rdi
je 0x18007874e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18007874e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800af720]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18007876f
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180078771
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 0x180080c90
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 0x180080ce7
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 0x180080ce7
xor al, al
jmp 0x180080d83
mov rax, qword [rsp + 0x60]
mov ebx, dword [rax + 0x3c]
or ebx, 0x20019
mov rcx, qword [rsp + 0x60]
add rcx, 8
call fcn.1800017a0
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 0x180080d7f
mov rcx, qword [rsp + 0x68]
call fcn.1800017a0
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 0x180080d63
mov dword [rsp + 0x48], 1
jmp 0x180080d6b
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 0x180080d90
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.180080b20
movzx eax, al
test eax, eax
jne 0x180080dbd
xor al, al
jmp 0x180080e60
mov rcx, qword [rsp + 0x60]
call fcn.180008b70
test rax, rax
jne 0x180080e0c
mov rcx, qword [rsp + 0x58]
call fcn.1800017a0
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 0x180080e0a
xor al, al
jmp 0x180080e60
jmp 0x180080e5e
mov rcx, qword [rsp + 0x60]
call fcn.180008b70
mov rdi, rax
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.180008b90
mov rbx, rax
mov rcx, qword [rsp + 0x58]
call fcn.1800017a0
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 0x180080e5e
xor al, al
jmp 0x180080e60
mov al, 1
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x180080f30
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.180080b20
movzx eax, al
test eax, eax
jne 0x180080f91
mov rcx, qword [rsp + 0x98]
call fcn.1800089c0
mov eax, dword [rsp + 0x68]
or eax, 1
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x98]
jmp 0x18008109d
lea rcx, [rsp + 0x38]
call fcn.1800089c0
nop
mov rcx, qword [rsp + 0xa0]
call fcn.1800017a0
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 0x180080fe4
cmp dword [rsp + 0x30], 3
je 0x180081013
mov rcx, qword [rsp + 0x98]
call fcn.1800089c0
mov eax, dword [rsp + 0x68]
or eax, 1
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x38]
call fcn.180008b10
mov rax, qword [rsp + 0x98]
jmp 0x18008109d
cmp dword [rsp + 0x34], 0
jbe 0x18008106e
mov edx, dword [rsp + 0x34]
lea rcx, [rsp + 0x38]
call fcn.180008b40
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.180008b90
mov rbx, rax
mov rcx, qword [rsp + 0xa0]
call fcn.1800017a0
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.180008a10
mov eax, dword [rsp + 0x68]
or eax, 1
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x38]
call fcn.180008b10
mov rax, qword [rsp + 0x98]
add rsp, 0x80
pop rbx
ret

Function at 0x1800810b0
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 0x1800810d3
movzx eax, word [rsp + 0x20]
cmp eax, 6
jne 0x1800810d7
mov al, 1
jmp 0x1800810d9
xor al, al
add rsp, 0x58
ret
Function at 0x1800814c0
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x100
mov qword [rsp + 0xd0], 0xfffffffffffffffe
mov rax, qword [0x1800ac2b8]
xor rax, rsp
mov qword [rsp + 0xf8], rax
mov rcx, qword [rsp + 0x110]
call fcn.1800017a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1800815de
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.180081420
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
lea r8, [0x18009a56c]
mov rdx, qword [rsp + 0x110]
lea rcx, [rsp + 0x78]
call fcn.180004250
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.1800042f0
nop
lea rcx, [rsp + 0x78]
call fcn.180001498
nop
lea rcx, [rsp + 0x50]
call fcn.180001498
lea rcx, [rsp + 0x28]
call fcn.1800017a0
mov rbx, rax
mov rcx, qword [rsp + 0x110]
call fcn.1800017a0
mov rdx, rbx
mov rcx, rax
call fcn.180062b94
lea rcx, [rsp + 0x28]
call fcn.1800017a0
mov r8d, 5
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
lea rcx, [rsp + 0x28]
call fcn.180001498
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.18005f4d0
add rsp, 0x100
pop rbx
ret
Function at 0x180081b10
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 [0x1800ac2b8]
xor rax, rsp
mov qword [rsp + 0x140], rax
call fcn.180081920
mov qword [rsp + 0x30], 0
call fcn.180028f30
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x24], gethostname
mov rdx, qword [rsp + 0x178]
lea rcx, [rsp + 0x40]
call fcn.1800023a8
nop
mov byte [rsp + 0x98], 0x5c
mov byte [rsp + 0x99], Ordinal_50
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x40]
call fcn.180002860
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.180002820
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.180002d80
mov r8, 0xffffffffffffffff
lea rdx, [0x18009a83c]
lea rcx, [rsp + 0x40]
call fcn.1800028a0
mov dword [rsp + 0x68], eax
movsxd rax, dword [rsp + 0x68]
cmp rax, 0xffffffffffffffff
je 0x180081c56
mov eax, dword [rsp + 0x68]
add eax, 1
movsxd r9, eax
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.1800028e0
lea rcx, [rsp + 0x70]
call fcn.1800017a0
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
lea rcx, [rsp + 0x70]
call fcn.180001498
lea rcx, [rsp + 0x40]
call fcn.1800017a0
lea rdx, [0x18009a86c]
mov rcx, rax
call fcn.1800629e0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x180081c9a
mov byte [rsp + 0xc0], 0
lea rcx, [rsp + 0x40]
call fcn.180001498
mov al, byte [rsp + 0xc0]
jmp 0x180081dbe
mov rcx, qword [rsp + 0x170]
call fcn.1800017a0
mov r8, rax
mov edx, 0x2712
mov rcx, qword [rsp + 0x30]
call fcn.180028f80
mov r8d, 0x7530
mov edx, Ordinal_79
mov rcx, qword [rsp + 0x30]
call fcn.180028f80
mov r8, qword [rsp + 0x28]
mov edx, 0x2711
mov rcx, qword [rsp + 0x30]
call fcn.180028f80
lea r8, [fcn.1800620f8]
mov edx, 0x4e2b
mov rcx, qword [rsp + 0x30]
call fcn.180028f80
mov r8d, 1
mov edx, Ordinal_46
mov rcx, qword [rsp + 0x30]
call fcn.180028f80
mov r8d, 1
mov edx, reloc.WLDAP32.dll_Ordinal_41
mov rcx, qword [rsp + 0x30]
call fcn.180028f80
mov r8d, 1
mov edx, 0x34
mov rcx, qword [rsp + 0x30]
call fcn.180028f80
mov rcx, qword [rsp + 0x30]
call fcn.1800291f0
mov dword [rsp + 0x24], eax
mov rcx, qword [rsp + 0x28]
call fcn.180061ee4
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, 0x200002
mov rcx, qword [rsp + 0x30]
call fcn.180029220
mov rcx, qword [rsp + 0x30]
call fcn.180029200
cmp dword [rsp + 0x24], 0
jne 0x180081d93
cmp dword [rsp + 0x20], 0xc8
jne 0x180081d93
mov dword [rsp + 0x138], 1
jmp 0x180081d9e
mov dword [rsp + 0x138], 0
movzx eax, byte [rsp + 0x138]
mov byte [rsp + 0xc1], al
lea rcx, [rsp + 0x40]
call fcn.180001498
mov al, byte [rsp + 0xc1]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18005f4d0
add rsp, 0x158
pop rdi
pop rsi
ret
Function at 0x1800826b0
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 [0x1800ac2b8]
xor rax, rsp
mov qword [rsp + 0x368], rax
mov rcx, qword [rsp + 0x380]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1800826f9
xor al, al
jmp 0x18008289e
mov rcx, qword [rsp + 0x380]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
jmp 0x180082721
mov eax, dword [rsp + 0x28]
add eax, 1
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
cmp rax, 9
jae 0x18008289c
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 0x180082897
movzx eax, byte [0x1800af7c0]
test eax, eax
jne 0x180082806
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.180003500
nop
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x298]
call fcn.180082320
mov qword [rsp + 0x358], rax
mov rax, qword [rsp + 0x358]
mov qword [rsp + 0x360], rax
mov rdx, qword [rsp + 0x360]
lea rcx, [0x1800af7c8]
call fcn.180001514
nop
lea rcx, [rsp + 0x298]
call fcn.1800014e0
nop
lea rcx, [rsp + 0x270]
call fcn.1800014e0
mov byte [0x1800af7c0], 1
mov rdx, qword [rsp + 0x380]
lea rcx, [rsp + 0x2c0]
call fcn.180003500
nop
lea rdx, [rsp + 0x2c0]
lea rcx, [rsp + 0x38]
call fcn.180082320
nop
lea rcx, [rsp + 0x2c0]
call fcn.1800014e0
lea rdx, [0x1800af7c8]
lea rcx, [rsp + 0x38]
call fcn.18000a470
movzx eax, al
test eax, eax
je 0x180082871
mov byte [rsp + 0x2e8], 0
lea rcx, [rsp + 0x38]
call fcn.1800014e0
mov al, byte [rsp + 0x2e8]
jmp 0x18008289e
mov byte [rsp + 0x2e9], 1
lea rcx, [rsp + 0x38]
call fcn.1800014e0
mov al, byte [rsp + 0x2e9]
jmp 0x18008289e
jmp 0x180082716
mov al, 1
mov rcx, qword [rsp + 0x368]
xor rcx, rsp
call fcn.18005f4d0
add rsp, 0x370
pop rdi
ret
Function at 0x140001470
Capabilities:
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov rax, qword gs:[0x30]
mov r10d, dword [0x1400a9004]
test r10d, r10d
je 0x14000155b
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
movsxd rcx, dword [rax + 0x3c]
mov ecx, dword [rax + rcx + 0x88]
mov edx, dword [rax + rcx + 0x18]
lea r8, [rax + 2]
lea r9, [0x1400a9004]
jmp 0x1400014cd
xor r10d, r10d
sub rdx, 1
jb 0x14000155b
test r10d, r10d
je 0x1400014c0
mov r11d, dword [rax + rcx + 0x20]
add r11, rax
mov esi, dword [r11 + rdx*4]
add rsi, r8
mov edi, r10d
mov r11, r9
nop word [rax + rax]
mov r14d, 0x811c9dc5
mov rbx, rsi
nop dword [rax]
mov ebp, r14d
movsx r15d, byte [rbx]
inc rbx
xor r14d, r15d
imul r14d, r14d, 0x1000193
test r15d, r15d
jne 0x140001500
cmp ebp, edi
je 0x140001530
mov edi, dword [r11 + 4]
add r11, 4
test edi, edi
jne 0x1400014f0
jmp 0x1400014c3
mov r10d, dword [rax + rcx + 0x1c]
mov esi, dword [rax + rcx + 0x24]
add r10, rax
add rsi, rax
movzx esi, word [rsi + rdx*2]
mov r10d, dword [r10 + rsi*4]
mov r10d, dword [rax + r10 + 4]
mov dword [r11], r10d
mov r10d, dword [0x1400a9004]
jmp 0x1400014c3
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140001700
Capabilities:
Check for outputdebugstring error
Print debug messages

Disassembly:
sub rsp, 0x38
mov ecx, 0x457
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str._api_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x140001798
call fcn.1400a59a0
cmp byte [rax + 2], 0
jne 0x140001798
test byte [rax + 0xbc], 0x70
jne 0x140001798
call fcn.1400a5f60
call fcn.140001470
mov qword [rsp + 0x30], 0xffffffffffffffff
mov rax, qword [0x1400aa508]
mov edx, dword [rax]
mov rax, qword [0x1400aa510]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov rcx, qword [0x1400aa500]
lea r8, [rsp + 0x30]
mov r9d, 1
call fcn.140001580
test rax, rax
sete al
cmp qword [rsp + 0x30], 0xffffffffffffffff
sete cl
or cl, al
movzx eax, cl
neg eax
add rsp, 0x38
ret
xor ecx, ecx
call sub.msvcrt.dll_exit
int3
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
call fcn.1400a6950
nop
add rsp, 0x20
pop rbp
jmp 0x140001700
Function at 0x1400017a0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x38
mov ecx, 0x457
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str._api_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x140001798
call fcn.1400a59a0
cmp byte [rax + 2], 0
jne 0x140001798
test byte [rax + 0xbc], 0x70
jne 0x140001798
call fcn.1400a5f60
call fcn.140001470
mov qword [rsp + 0x30], 0xffffffffffffffff
mov rax, qword [0x1400aa508]
mov edx, dword [rax]
mov rax, qword [0x1400aa510]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov rcx, qword [0x1400aa500]
lea r8, [rsp + 0x30]
mov r9d, 1
call fcn.140001580
test rax, rax
sete al
cmp qword [rsp + 0x30], 0xffffffffffffffff
sete cl
or cl, al
movzx eax, cl
neg eax
add rsp, 0x38
ret
xor ecx, ecx
call sub.msvcrt.dll_exit
int3
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
call fcn.1400a6950
nop
add rsp, 0x20
pop rbp
jmp 0x140001700

Function at 0x1400a59b0
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
ret