joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002306c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
xor edx, edx
xor ecx, ecx
xor edi, edi
call qword [sym.imp.kERNEL32.dll_GetTempPathA]
mov esi, eax
test eax, eax
je 0x18002312d
mov rcx, qword [0x180035a68]
lea r8d, [rax + 0x1d]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18002312d
mov rdx, rax
mov ecx, esi
call qword [sym.imp.kERNEL32.dll_GetTempPathA]
test eax, eax
je 0x180023119
test ebx, ebx
je 0x1800230d8
call qword [sym.imp.kERNEL32.dll_GetCurrentThreadId]
lea rcx, [rsp + 0x38]
add ebx, eax
call qword [sym.imp.kERNEL32.dll_GetSystemTimeAsFileTime]
add ebx, dword [rsp + 0x38]
mov r9, rdi
mov r8d, ebx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.kERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x180023119
test ebx, ebx
je 0x18002312d
mov rbx, qword [0x180035c60]
lea rcx, [0x1800393b8]
add rbx, rcx
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.kERNEL32.dll_lstrcpyA]
jmp 0x18002312d
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
xor edi, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x180023810
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rbp, r9
mov r12d, r8d
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
call fcn.18000532c
mov r13, rax
cmp rax, rbx
je 0x18002387e
mov rdx, rdi
mov rcx, rax
call fcn.1800087b4
mov rdx, qword [rsi + 0x20]
lea r9, [rsi + 0x28]
mov r8d, dword [r9]
mov dword [rsi + 0x2c], r8d
mov rcx, qword [r13]
mov rax, qword [rcx]
call qword [rax + 0x18]
lea ecx, [rbx + 1]
lea r8, [r13 - 0x34]
cmp eax, ebx
cmove ebx, ecx
xor edx, edx
xor ecx, ecx
call fcn.180004fd0
jmp 0x1800238a0
mov r9, rbp
mov r8d, r12d
mov rdx, rsi
mov rcx, rdi
cmp dword [rsp + 0x60], ebx
je 0x180023898
call qword [sym.imp.WININET.dll_InternetReadFileExW]
jmp 0x18002389e
call qword [sym.imp.WININET.dll_InternetReadFileExA]
mov ebx, eax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x1800238bc
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x1c0
xor esi, esi
mov r12, r9
mov rbp, r8
mov r13, rdx
test r9, r9
jne 0x1800238ef
lea edi, [rsi + 0x57]
jmp 0x180023a54
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, eax
test eax, eax
jne 0x180023a29
mov rcx, qword [0x180035a68]
mov edi, 0xa0
xor edx, edx
mov r8, rdi
lea esi, [rax + 1]
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x180023933
lea edi, [rsi + 7]
jmp 0x180023a46
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.ntdll.dll_memset
lea rcx, [rbx + 0x50]
mov r8d, 0x10
mov rdx, r13
call sub.ntdll.dll_memcpy
lea rcx, [rbx + 0x10]
call qword [sym.imp.kERNEL32.dll_InitializeCriticalSection]
or qword [rbx + 0x60], 0xffffffffffffffff
xor r9d, r9d
xor r8d, r8d
mov edx, esi
xor ecx, ecx
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
call qword [sym.imp.kERNEL32.dll_CreateEventA]
mov qword [rbx + 0x68], rax
test rax, rax
je 0x180023a36
mov qword [rbx + 0x70], rbp
test rbp, rbp
jne 0x1800239ac
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.kERNEL32.dll_CreateMutexA]
mov qword [rbx + 0x78], rax
mov qword [rbx + 0x70], rax
test rax, rax
je 0x180023a36
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_StrDupA]
mov r8d, 6
mov edx, esi
mov qword [rbx + 0x38], rax
lea rax, [fcn.180020f24]
lea ecx, [r8 - 4]
mov qword [rbx + 0x40], rax
lea rax, [0x18001c620]
mov qword [rbx + 0x48], rax
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x60], rax
cmp rax, 0xffffffffffffffff
je 0x180023a36
lock add dword [0x180035c40], esi
lea r8, [rbx + 0x88]
lea rcx, [0x1800249fc]
mov rdx, rbx
call fcn.18000ac68
mov qword [rbx + 0x80], rax
test rax, rax
jne 0x180023a1e
lock add dword [0x180035c40], 0xffffffff
jmp 0x180023a36
mov qword [0x180035a78], rbx
xor edi, edi
jmp 0x180023a31
mov rbx, qword [rsp + 0x1f8]
cmp edi, 0xffffffff
jne 0x180023a3e
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x180023a54
test esi, esi
je 0x180023a54
mov rcx, rbx
call fcn.18001cd8c
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea r11, [rsp + 0x1c0]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x180024e84
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
mov rcx, qword [0x180035a68]
mov r14, qword [0x180035c68]
and dword [rsp + 0x68], 0
mov r12, r8
mov r13, rdx
mov esi, 0x1000
mov r8, rsi
xor edx, edx
mov edi, 8
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x180024f5d
lea r9, [rsp + 0x68]
mov r8d, esi
mov rdx, rbx
mov rcx, r14
call sub.PSAPI.DLL_EnumProcessModules
mov ebp, eax
test eax, eax
je 0x180024f27
mov eax, dword [rsp + 0x68]
cmp esi, eax
ja 0x180024f2b
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rcx, qword [0x180035a68]
add esi, 0x1000
mov r8d, esi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x180024ed4
mov eax, dword [rsp + 0x68]
test rbx, rbx
je 0x180024f5d
test ebp, ebp
je 0x180024f43
shr eax, 3
mov qword [r13], rbx
xor edi, edi
mov dword [r12], eax
jmp 0x180024f5d
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
mov edi, eax
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x180025484
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov eax, r9d
mov r13d, r8d
mov r8d, r9d
and al, 3
mov esi, r9d
mov r14, rdx
neg al
mov edx, 0xc0000000
mov r15, rcx
sbb r12d, r12d
and qword [r11 - 0x38], 0
shr r8d, 8
and r12d, 3
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
inc r12d
mov ebp, 0x1388
mov dword [r11 - 0x48], r12d
call qword [sym.imp.kERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180025564
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x20
jne 0x18002555e
test sil, 4
je 0x18002555e
test ebp, ebp
jle 0x18002555e
mov rcx, qword [0x180035c88]
mov edx, 0xc8
call qword [sym.imp.kERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x180025559
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r12d
sub ebp, 0xc8
call qword [sym.imp.kERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800254f1
jmp 0x18002555e
mov ebx, 0x5b4
cmp rdi, 0xffffffffffffffff
je 0x1800255bc
mov r9d, 2
test r9b, sil
je 0x18002557d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.kERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, r13d
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.kERNEL32.dll_WriteFile]
test eax, eax
je 0x1800255ab
mov rcx, rdi
call qword [sym.imp.kERNEL32.dll_SetEndOfFile]
xor ebx, ebx
jmp 0x1800255b3
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.kERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x40]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180025dc8
Capabilities:
Access pe header
Get common file path
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov esi, r9d
mov r13d, edx
mov rbp, rcx
mov ebx, 8
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x180025f1b
xor edx, edx
xor ecx, ecx
call qword [sym.imp.kERNEL32.dll_GetTempPathA]
mov rcx, qword [0x180035a68]
xor edx, edx
lea r8d, [rax + 0x11]
mov r12d, eax
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x180025f20
lea ecx, [r12 + 1]
mov rdx, rax
call qword [sym.imp.kERNEL32.dll_GetTempPathA]
mov ebx, eax
call qword [sym.imp.kERNEL32.dll_GetTickCount]
lea r12, [0x180000000]
mov r8d, eax
mov rax, qword [0x180035c60]
lea rcx, [rdi + rbx]
lea rdx, [rax + r12 + 0x39144]
call qword [sym.imp.USER32.dll_wsprintfA]
xor r9d, r9d
mov r8d, r13d
mov rdx, rbp
mov rcx, rdi
mov dword [rsp + 0x20], 1
call fcn.18000f5b8
mov ebx, eax
test eax, eax
jne 0x180025f07
test esi, esi
je 0x180025f07
mov rax, qword [0x180035c60]
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
lea rdx, [rax + r12 + 0x3920a]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ebx, eax
test eax, eax
jne 0x180025f07
mov rax, qword [0x180035c60]
xor edx, edx
mov rcx, rdi
movsx r8d, byte [rax + r12 + 0x391b3]
call qword [sym.imp.SHLWAPI.dll_StrRChrA]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.kERNEL32.dll_lstrlenA]
mov rcx, qword [rsp + 0x30]
inc eax
lea rdx, [rbx + 1]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
jmp 0x180025f20
mov ebx, 0xb
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
Function at 0x180025fb4
Capabilities:
Connect socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
xor eax, eax
xor esi, esi
mov rdi, rcx
mov rcx, qword [rcx + 0x38]
lea rdx, [rsp + 0x50]
lea r8d, [rsi + 8]
mov byte [rsp + 0x58], sil
mov dword [rsp + 0x59], eax
mov word [rsp + 0x5d], ax
mov byte [rsp + 0x5f], al
mov word [rsp + 0x20], si
mov qword [rsp + 0x22], rax
mov dword [rsp + 0x2a], eax
mov word [rsp + 0x2e], ax
call fcn.180020f74
mov ebx, eax
cmp eax, esi
jne 0x1800260d8
cmp byte [rsp + 0x50], 1
lea ebx, [rsi + 0x57]
lea r12d, [rsi + 2]
je 0x180026022
cmp byte [rsp + 0x50], r12b
jne 0x1800260d8
cmp byte [rsp + 0x57], sil
je 0x180026055
mov rcx, qword [rdi + 0x38]
xor r9d, r9d
lea rdx, [rsp + 0x57]
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_recv]
mov cl, byte [rsp + 0x57]
cmp eax, esi
jle 0x18002604c
cmp cl, sil
jne 0x180026029
cmp cl, sil
jne 0x1800260d8
mov edx, 1
mov ecx, r12d
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x1800260e8
movzx ecx, word [rsp + 0x51]
lea rdx, [rsp + 0x20]
mov r8d, 0x10
mov word [rsp + 0x22], cx
mov ecx, dword [rsp + 0x53]
mov word [rsp + 0x20], r12w
mov dword [rsp + 0x24], ecx
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, esi
jne 0x1800260a5
mov ebx, esi
jmp 0x1800260f4
lea rcx, [rdi + 0x40]
call fcn.1800162b0
mov ebx, 0x4d0
mov byte [rsp + 0x59], 0x5b
mov rcx, qword [rdi + 0x38]
xor r9d, r9d
lea rdx, [rsp + 0x58]
lea r8d, [r9 + 8]
call qword [sym.imp.WS2_32.dll_send]
mov ecx, 0x4d4
cmp eax, esi
cmovle ebx, ecx
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, esi
jne 0x1800260b3
mov byte [rsp + 0x59], 0x5a
jmp 0x1800260b8
Function at 0x180026934
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
sub rsp, 0x40
and dword [rsp + 0x34], 0
and dword [rsp + 0x30], 0
lea rax, [r11 - 0x18]
mov rsi, r9
mov rbp, r8
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
lea r9, [r11 - 0x14]
xor r8d, r8d
mov rdi, rdx
mov r12, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r11d, dword [rsp + 0x30]
test r11d, r11d
jne 0x18002698d
lea edi, [r11 + 2]
jmp 0x1800269c1
mov rcx, qword [0x180035a68]
mov r8, r11
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x1800269de
lea edi, [rax + 8]
test rbx, rbx
je 0x1800269c1
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rdi
mov rcx, r12
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test eax, eax
jne 0x1800269aa
mov ecx, dword [rsp + 0x30]
mov qword [rbp], rbx
mov dword [rsi], ecx
jmp 0x1800269c1
Function at 0x180027cfc
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [0x180035a68]
xor edx, edx
mov r8d, 0x105
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x180027daa
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x22]
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edi, 1
test eax, eax
jne 0x180027d54
mov r8d, edi
mov edx, edi
mov rcx, rbx
call fcn.180006270
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x20]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x180027d7c
mov r8d, edi
mov edx, edi
mov rcx, rbx
call fcn.180006270
mov rax, qword [0x180035c60]
lea rcx, [0x1800393f0]
mov edx, edi
add rcx, rax
call fcn.180027498
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
mov edi, eax
call qword [sym.imp.kERNEL32.dll_HeapFree]
jmp 0x180027daf
mov edi, 8
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180028ea0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180035c60]
lea rdi, [0x180000000]
xor esi, esi
lea rcx, [rax + rdi + 0x3ad20]
xor edx, edx
mov dword [rsp + 0x58], 4
mov dword [rsp + 0x50], esi
call fcn.18002b3b0
mov rbx, rax
cmp rax, rsi
je 0x180028f8a
mov rcx, qword [0x180035c60]
xor edx, edx
lea rcx, [rcx + rdi + 0x3ad98]
call fcn.18002b3b0
mov rdi, rax
cmp rax, rsi
je 0x180028f78
lea rax, [rsp + 0x68]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x180028f66
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x50]
cmp eax, esi
cmovne ecx, esi
mov dword [rsp + 0x50], ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov eax, dword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x180028f98
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov ebx, r8d
test rcx, rcx
je 0x180028fde
test rdx, rdx
je 0x180028fde
test ebx, ebx
je 0x180028fde
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
call qword [sym.imp.kERNEL32.dll_ReadFile]
test eax, eax
jne 0x180028fcf
call qword [sym.imp.kERNEL32.dll_GetLastError]
jmp 0x180028fe3
mov eax, dword [rsp + 0x40]
sub eax, ebx
neg eax
sbb eax, eax
and eax, 0x1e
jmp 0x180028fe3
mov eax, 0x57
add rsp, 0x30
pop rbx
ret
Function at 0x180029d54
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x180035a50]
call qword [sym.imp.kERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
jne 0x180029dcb
mov rcx, qword [0x180035a48]
call qword [sym.imp.kERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
jne 0x180029dcb
mov rcx, qword [0x180035c60]
lea rdx, [0x180000000]
lea r8, [0x180034d80]
lea rax, [rcx + rdx + 0x39a7a]
mov qword [0x180034d40], rax
lea rax, [rcx + rdx + 0x3a12b]
lea edx, [rbx + 1]
lea rcx, [0x180034d68]
mov r9d, edx
mov qword [0x180034d48], rax
call fcn.180021298
jmp 0x180029df3
call qword [sym.imp.kERNEL32.dll_TlsAlloc]
mov dword [0x18003416c], eax
cmp eax, 0xffffffff
je 0x180029ded
mov rdx, qword [0x180035a58]
mov rcx, rbx
call fcn.1800135c8
jmp 0x180029df3
call qword [sym.imp.kERNEL32.dll_GetLastError]
add rsp, 0x20
pop rbx
ret
Function at 0x18002a470
Capabilities:
Get keyboard layout
Log keystrokes via polling

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, 0x180
mov r12d, 0x100
xor esi, esi
mov ebp, r9d
mov edi, r8d
mov rbx, rcx
cmp edx, r12d
jne 0x18002a646
lea r8d, [rsi + 0x2a]
lea rcx, [rsp + 0x48]
xor edx, edx
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x80]
mov r8, r12
xor edx, edx
call sub.ntdll.dll_memset
lea edx, [rsi + 3]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetAncestor]
mov r12d, dword [rsp + 0x1b8]
mov ecx, dword [rsp + 0x1c0]
mov r8, rax
cmp rax, rsi
mov eax, dword [rsp + 0x1b0]
cmove r8, rbx
mov rdx, rbx
mov dword [rsp + 0x4c], r12d
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], r8
call fcn.18000c118
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x60], eax
call qword [sym.imp.USER32.dll_GetKeyboardState]
cmp eax, esi
je 0x18002a646
mov ecx, r12d
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ecx, 0xa0
mov rbx, rax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0xa1
mov r11w, ax
shr r11, 8
mov byte [rsp + 0x120], r11b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
lea ecx, [rsi + 0x10]
mov r11w, ax
shr r11, 8
mov byte [rsp + 0x121], r11b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov qword [rsp + 0x30], rbx
mov r11w, ax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
shr r11, 8
mov edx, ebp
mov ecx, edi
mov dword [rsp + 0x28], esi
mov word [rsp + 0x40], si
mov byte [rsp + 0x90], r11b
mov dword [rsp + 0x20], 3
call qword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 0xffffffff
je 0x18002a641
cmp eax, esi
je 0x18002a5e4
movsxd rbx, eax
cmp rbx, rsi
jle 0x18002a641
movzx eax, word [rsp + rsi*2 + 0x40]
lea rcx, [rsp + 0x48]
mov word [rsp + 0x68], ax
call fcn.1800107dc
inc rsi
cmp rsi, rbx
jl 0x18002a5c6
jmp 0x18002a641
sub edi, 8
mov ax, si
je 0x18002a628
sub edi, 1
je 0x18002a621
sub edi, 0x1c
je 0x18002a61a
sub edi, 1
je 0x18002a613
sub edi, 1
je 0x18002a60c
cmp edi, 1
jne 0x18002a62d
mov eax, 0x2193
jmp 0x18002a62d
mov eax, 0x2192
jmp 0x18002a62d
mov eax, 0x2191
jmp 0x18002a62d
mov eax, 0x2190
jmp 0x18002a62d
mov eax, 0x2423
jmp 0x18002a62d
mov eax, 0x21d0
mov word [rsp + 0x68], ax
cmp ax, si
je 0x18002a641
lea rcx, [rsp + 0x48]
call fcn.1800107dc
mov esi, 1
lea r11, [rsp + 0x180]
mov eax, esi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x18002aae0
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rcx, qword [0x180035a68]
mov esi, 0x104
xor edx, edx
mov r8, rsi
mov ebx, 8
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18002abef
mov edx, esi
mov rcx, rax
call qword [sym.imp.kERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x18002abd5
lea edx, [rbx + 0x32]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrChrA]
mov rdx, qword [0x180035c60]
lea rcx, [0x18003ad03]
add rdx, rcx
lea rcx, [rax + 2]
mov r8, rdi
mov rbx, rax
mov byte [rax + 1], 0
call qword [sym.imp.USER32.dll_wsprintfA]
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov r8d, 3
lea rcx, [rbx + 2]
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.kERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18002abd5
xor ecx, ecx
call qword [sym.imp.kERNEL32.dll_GetModuleHandleA]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov rdx, rax
mov r8d, 0x10000
mov rcx, rsi
call qword [sym.imp.kERNEL32.dll_WriteFile]
test eax, eax
je 0x18002abb9
xor ebx, ebx
jmp 0x18002abc1
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.kERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x18002abdd
call fcn.18001299c
jmp 0x18002abdb
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x18002b8ec
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
and dword [rax - 0x18], 0
and dword [rax + 0x10], 0
movzx esi, byte [rcx + 0x38]
mov eax, esi
sub eax, 1
je 0x18002b9c4
sub eax, 1
je 0x18002b929
cmp eax, 6
jne 0x18002ba88
jmp 0x18002ba21
mov eax, dword [0x180035c48]
test eax, eax
je 0x18002b985
bt dword [rcx + 0x38], 0xa
jb 0x18002b985
mov rdi, qword [rcx + 0x28]
mov eax, 0x25ff
cmp word [rdi], ax
jne 0x18002b9c4
lea r9, [rsp + 0x48]
mov edx, 0xe
lea r8d, [rdx + 0x32]
mov rcx, rdi
call qword [sym.imp.kERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18002b9c4
mov rax, qword [rbx + 0x10]
mov qword [rdi + 6], rax
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x48]
mov edx, 0xe
mov rcx, rdi
call qword [sym.imp.kERNEL32.dll_VirtualProtect]
jmp 0x18002b9c4
lea r9, [rsp + 0x48]
mov edi, 4
lea r8d, [rdi + 0x3c]
mov rdx, rdi
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.kERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18002b9c4
mov rcx, qword [rbx + 0x18]
mov eax, dword [rbx + 0x20]
mov dword [rcx], eax
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x48]
mov rdx, rdi
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.kERNEL32.dll_VirtualProtect]
lea r9, [rsp + 0x48]
mov edi, 8
lea r8d, [rdi + 0x38]
mov rdx, rdi
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.kERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18002ba17
cmp esi, 1
jne 0x18002b9f5
mov rcx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x20]
mov qword [rcx], rax
jmp 0x18002b9fe
mov rcx, qword [rbx + 0x18]
mov eax, dword [rbx + 0x20]
mov dword [rcx], eax
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x48]
mov rdx, rdi
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.kERNEL32.dll_VirtualProtect]
jmp 0x18002ba21
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
bt dword [rbx + 0x38], 9
jae 0x18002ba83
cmp qword [rbx + 0x40], 0
je 0x18002ba83
mov rcx, qword [rbx + 0x30]
mov rcx, qword [rcx + 8]
call qword [sym.imp.kERNEL32.dll_lstrlenA]
mov edi, eax
lea r9, [rsp + 0x48]
mov r8d, 0x40
mov edx, eax
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.kERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18002ba83
mov rdx, qword [rbx + 0x30]
mov rdx, qword [rdx + 8]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.kERNEL32.dll_lstrcpyA]
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x48]
mov rdx, rdi
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.kERNEL32.dll_VirtualProtect]
btr dword [rbx + 0x38], 8
jmp 0x18002ba8e
mov eax, dword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret