joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439e10
Capabilities:
Print debug messages

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, rcx
test rcx, rcx
je 0x439e35
call fcn.00438cb0
cmp eax, 1
je 0x439e42
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
ret
lea r12, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
mov rdi, r12
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x439ec8
mov eax, 0x28
jmp 0x439e9a
add rax, 1
cmp rax, 0x6b
je 0x439eba
cmp byte [r12 + rax], 0
mov edx, eax
jne 0x439e90
cmp eax, 0x6a
je 0x439eba
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
jmp 0x439ea8
Function at 0x439ed0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rcx, qword [0x008d8fb0]
test rcx, rcx
je 0x43a028
cmp dword [rcx], 1
je 0x439ef3
call fcn.00439d90
mov rax, qword [0x008d8fa8]
test rax, rax
je 0x43a050
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x439f20
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call fcn.00439730
cmp qword [0x008dc050], 0
mov rbx, rax
je 0x439f13
test rax, rax
je 0x439f13
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.00439e10
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rdi
mov dword [rsp + 0x30], 2
mov r8, rsi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4d3c06
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [0x008d8fa8]
test rax, rax
je 0x43a078
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4d3c06
mov r12, rbx
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call fcn.0043d460
mov qword [0x008d8fb0], rax
mov rcx, rax
jmp 0x439ee9
lea r8, [0x00438d10]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call fcn.0043d460
mov qword [0x008d8fa8], rax
jmp 0x439f03
lea r8, [0x00438d10]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call fcn.0043d460
mov qword [0x008d8fa8], rax
jmp 0x439ffe
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x43d460
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov rsi, r8
mov r12, rcx
movsxd rbx, edx
call sub.msvcrt.dll_strlen
mov r8, rax
lea eax, [rax + 0xf]
mov dword [rbp - 0x54], eax
lea eax, [r8 + 0x51]
lea edi, [r8 + 0x10]
cdqe
lea r15d, [r8 + 0x50]
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.00427f80
movabs rcx, 0x656d68732d636367
sub rsp, rax
movsxd r13, r8d
mov rdx, r12
mov eax, 0x326d
mov r8, r13
mov qword [rsp + 0x20], rcx
lea r14, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
mov byte [rsp + 0x2e], 0x2d
call sub.msvcrt.dll_memcpy
lea rax, [r14 + r13 + 0x10]
movsxd r12, dword [rbp - 0x54]
mov r8, r14
movabs rdx, 0x6161616161616161
movabs rcx, 0x6161616161616161
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], rdx
xor edx, edx
mov qword [rax + 0x38], rcx
movsxd rax, r15d
xor ecx, ecx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + r12 + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + r12 + 0x20], 0x2d
mov edx, 0xffffffff
mov r13, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x43d55e
int3
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
je 0x43d5b0
mov rdx, r14
movzx ecx, ax
mov r9d, edi
mov r8d, r15d
call fcn.0043d3f0
mov r14, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r14
lea rsp, [rbp - 0x48]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov r12, rax
mov eax, 0x40
bt r12, rax
jae 0x43d5d3
mov edx, r15d
sub edx, eax
movsxd rdx, edx
mov byte [r14 + rdx], 0x41
sub eax, 1
jne 0x43d5c0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
jne 0x43d5e7
int3
mov rdx, r14
movzx ecx, ax
mov r9d, edi
mov r8d, r15d
call fcn.0043d3f0
mov r14, rax
cmp r12, rax
je 0x43d60d
mov rcx, r12
call fcn.004367d8
jmp 0x43d580
xor edx, edx
mov r8, rbx
mov rcx, rax
call sub.msvcrt.dll_memset
test rsi, rsi
je 0x43d580
mov rcx, r14
call rsi
jmp 0x43d580

Function at 0x43f140
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x004d3110]
mov edx, 8
lea rcx, str.__terminate_handler_sh
jmp fcn.004286e0

Function at 0x43f160
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x004d3120]
mov edx, 8
lea rcx, str.__unexpected_handler_sh
jmp fcn.004286e0

Function at 0x440970
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
mov edx, 0xffffffff
test rax, rax
jle 0x44099c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x49ae70
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x49ae97
call rbp
cmp dword [rax], 4
jne 0x49aeb4
mov rcx, rdi
call fcn.0049ac70
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x49ae90
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x18000e960
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, qword [rdx + 0x20]
mov r11, qword [rdx + 0x28]
lea r10, [r11 + 1]
mov qword [rdx + 0x28], r10
mov al, 1
cmp r10, rsi
jae 0x18000e9a0
mov rax, qword [rdx + 0x18]
movzx edi, byte [rax + r10]
mov al, 1
cmp edi, 0x2b
je 0x18000e995
cmp edi, 0x2d
jne 0x18000e9a0
xor eax, eax
add r11, 2
mov qword [rdx + 0x28], r11
mov r10, r11
cmp r10, rsi
jae 0x18000eb3f
mov rdi, qword [rdx + 0x18]
movzx r11d, byte [rdi + r10]
lea rbx, [r10 + 1]
mov qword [rdx + 0x28], rbx
add r11b, 0xd0
cmp r11b, 0xa
jae 0x18000eb92
movzx r11d, r11b
cmp rbx, rsi
jae 0x18000ea3d
mov ebx, 1
sub rbx, rsi
add r10, 2
jmp 0x18000e9fc
movzx esi, sil
lea r11d, [r11 + r11*4]
lea r11d, [rsi + r11*2]
lea rsi, [rbx + r10]
inc rsi
inc r10
cmp rsi, 2
je 0x18000ea3d
movzx esi, byte [rdi + r10 - 1]
add sil, 0xd0
cmp sil, 0xa
jae 0x18000ea3d
mov qword [rdx + 0x28], r10
cmp r11d, 0xccccccb
jle 0x18000e9e0
cmp r11d, 0xccccccc
jne 0x18000ea28
cmp sil, 7
jbe 0x18000e9e0
test r9, r9
sete r9b
mov byte [rsp + 0x20], al
call fcn.18006c3d0
jmp 0x18000eb2c
mov r10d, dword [rsp + 0x80]
test al, al
je 0x18000ea5a
lea eax, [r10 + r11]
sar eax, 0x1f
add eax, 0x80000000
add r10d, r11d
jmp 0x18000ea6a
xor eax, eax
cmp r10d, r11d
setns al
add eax, 0x7fffffff
sub r10d, r11d
cmovo r10d, eax
movq xmm1, r9
punpckldq xmm1, xmmword [0x180072df0]
subpd xmm1, xmmword [0x180072e00]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
mov eax, r10d
neg eax
cmovs eax, r10d
cmp eax, 0x135
jb 0x18000eadc
xorpd xmm1, xmm1
movsd xmm2, qword [0x180072e10]
nop dword [rax + rax]
ucomisd xmm0, xmm1
jne 0x18000eab8
jnp 0x18000eb15
test r10d, r10d
jns 0x18000eb68
divsd xmm0, xmm2
add r10d, 0x134
mov eax, r10d
neg eax
cmovs eax, r10d
cmp eax, 0x135
jae 0x18000eab0
mov eax, eax
mov r9, qword [0x18009f088]
movsd xmm1, qword [r9 + rax*8]
test r10d, r10d
js 0x18000eb34
mulsd xmm0, xmm1
movq rax, xmm0
movabs r9, 0x7fffffffffffffff
and r9, rax
movabs rax, 0x7ff0000000000000
cmp r9, rax
je 0x18000eb68
test r8b, r8b
jne 0x18000eb22
xorpd xmm0, xmmword [0x180072e20]
movsd qword [rcx + 8], xmm0
xor eax, eax
mov qword [rcx], rax
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
divsd xmm0, xmm1
test r8b, r8b
je 0x18000eb1a
jmp 0x18000eb22
mov qword [rsp + 0x28], 5
lea rax, [rsp + 0x28]
mov rsi, rcx
mov rcx, rdx
mov rdx, rax
call fcn.18006c480
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x18000eb2c
mov qword [rsp + 0x28], 0xe
lea rax, [rsp + 0x28]
mov rsi, rcx
mov rcx, rdx
mov rdx, rax
call fcn.18006c480
mov rcx, rsi
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x18000eb29
mov qword [rsp + 0x28], 0xd
jmp 0x18000eb48
Function at 0x18001d510
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov ebx, edx
mov rdi, rcx
test dl, dl
je 0x18001d545
movzx eax, bl
lea ecx, [rax + 0x2f6]
add eax, 0x19c
and eax, ecx
shr eax, 8
inc al
cmp al, 1
jbe 0x18001d53d
xor esi, esi
jmp 0x18001d568
test al, al
je 0x18001d5f0
lea rdx, str.0_JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecemberFb_a
mov esi, 1
mov r8d, 1
mov rcx, rdi
call fcn.18004c630
test rax, rax
jne 0x18001d616
cmp bl, 0x64
jb 0x18001d598
movzx eax, bl
lea ecx, [rax + rax*4]
lea eax, [rax + rcx*8]
shr eax, 0xc
imul ecx, eax, 0x64
sub bl, cl
movzx ecx, bl
lea rdx, str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899amAMpmPMMondayTuesdayWednesdayThursdayFridaySaturdaySunday
movzx ecx, word [rdx + rcx*2]
mov word [rsp + 0x29], cx
xor r8d, r8d
mov ebx, eax
jmp 0x18001d5a3
mov r8d, 2
cmp bl, 0xa
jae 0x18001d5ad
or bl, 0x30
mov byte [rsp + r8 + 0x28], bl
jmp 0x18001d5c6
movzx eax, bl
lea rcx, str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899amAMpmPMMondayTuesdayWednesdayThursdayFridaySaturdaySunday
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x29], ax
mov r8d, 1
lea rdx, [rsp + r8]
add rdx, 0x28
xor r8, 3
mov rcx, rdi
mov rdi, r8
call fcn.18004c630
test rax, rax
je 0x18001d5e9
mov esi, 1
jmp 0x18001d616
add rdi, rsi
xor esi, esi
jmp 0x18001d619
lea rbx, str.0_JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecemberFb_a
mov esi, 1
nop dword [rax]
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.18004c630
test rax, rax
je 0x18001d600
mov rdi, rax
mov rax, rsi
mov rdx, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x18001de00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov ebx, edx
mov rdi, rcx
test dl, dl
je 0x18001de35
movzx eax, bl
lea ecx, [rax + 0x2f6]
add eax, 0x19c
and eax, ecx
shr eax, 8
inc al
cmp al, 1
jbe 0x18001de2d
xor esi, esi
jmp 0x18001de58
test al, al
je 0x18001dee0
lea rdx, str.0_JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecemberFb_a
mov esi, 1
mov r8d, 1
mov rcx, rdi
call fcn.18004cbf0
test rax, rax
jne 0x18001df06
cmp bl, 0x64
jb 0x18001de88
movzx eax, bl
lea ecx, [rax + rax*4]
lea eax, [rax + rcx*8]
shr eax, 0xc
imul ecx, eax, 0x64
sub bl, cl
movzx ecx, bl
lea rdx, str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899amAMpmPMMondayTuesdayWednesdayThursdayFridaySaturdaySunday
movzx ecx, word [rdx + rcx*2]
mov word [rsp + 0x29], cx
xor r8d, r8d
mov ebx, eax
jmp 0x18001de93
mov r8d, 2
cmp bl, 0xa
jae 0x18001de9d
or bl, 0x30
mov byte [rsp + r8 + 0x28], bl
jmp 0x18001deb6
movzx eax, bl
lea rcx, str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899amAMpmPMMondayTuesdayWednesdayThursdayFridaySaturdaySunday
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x29], ax
mov r8d, 1
lea rdx, [rsp + r8]
add rdx, 0x28
xor r8, 3
mov rcx, rdi
mov rdi, r8
call fcn.18004cbf0
test rax, rax
je 0x18001ded9
mov esi, 1
jmp 0x18001df06
add rdi, rsi
xor esi, esi
jmp 0x18001df09
lea rbx, str.0_JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecemberFb_a
mov esi, 1
nop dword [rax]
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.18004cbf0
test rax, rax
je 0x18001def0
mov rdi, rax
mov rax, rsi
mov rdx, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x180026a70
Capabilities:
Enumerate gui resources

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
call fcn.180050840
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], edx
cmp esi, 0x3b9aca00
mov r13, 0xffffffffffffffff
cmovne r13, rdi
mov ebp, 0x3b9ac9ff
cmovne ebp, esi
mov esi, dword [rbx + 8]
lea r14, [rsp + 0x38]
mov rdi, qword [sym.imp.user32.dll_EnumWindows]
mov qword [rsp + 0x20], 0
lea r15, [rsp + 0x28]
mov ebx, 0xff
nop word cs:[rax + rax]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor ecx, ecx
test rax, rax
setne cl
mov dword [rsp + 0x58], esi
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
lea rcx, [0x180026bb0]
mov rdx, r14
call rdi
test eax, eax
jne 0x180026b3b
call fcn.180029790
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], edx
mov qword [rsp + 0x60], 1
test rax, rax
je 0x180026b3b
lea rcx, [rsp + 0x68]
call fcn.18002a0b0
mov r12, qword [rsp + 0x50]
test byte [rsp + 0x48], 1
jne 0x180026b7f
xor ecx, ecx
mov edx, 0x5f5e100
call fcn.180049930
mov rcx, r15
call fcn.180050b40
xor ecx, ecx
cmp rax, r13
setne cl
cmovb ecx, ebx
xor eax, eax
cmp edx, ebp
setne al
cmovb eax, ebx
test cl, cl
cmovne eax, ecx
cmp al, 1
jne 0x180026ae0
jmp 0x180026b89
mov eax, 1
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rdx, r12
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x180026c30
Capabilities:
Get graphical window text

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1c0], 0xfffffffffffffffe
mov rdi, rdx
mov rsi, rcx
lea rbx, [rbp - 0x60]
mov r8d, 0x200
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rdi]
mov rdx, rbx
mov r8d, 0x100
call qword [sym.imp.user32.dll_GetWindowTextW]
movsxd r8, eax
cmp r8d, 0x101
jae 0x180026d68
lea rdi, [rbp + 0x1a0]
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.18004e050
mov rcx, rdi
call fcn.1800556b0
mov r8, rdx
lea rcx, [rbp - 0x60]
mov rdx, rax
call fcn.180055a10
xor eax, eax
cmp rax, qword [rbp - 0x60]
jno 0x180026cfb
mov rdi, qword [rbp - 0x50]
test rdi, rdi
js 0x180026d7f
mov rbx, qword [rbp - 0x58]
je 0x180026d3b
movzx eax, byte [0x18009f261]
mov r15d, 1
mov edx, 1
mov rcx, rdi
call fcn.180003390
test rax, rax
je 0x180026d82
mov r14, rax
jmp 0x180026d41
mov rax, qword [rbp - 0x50]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rbp - 0x60]
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x1a0]
test rdx, rdx
je 0x180026d28
mov rcx, qword [rbp + 0x1a8]
mov r8d, 1
call fcn.1800033a0
mov rax, rsi
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov r14d, 1
mov rcx, r14
mov rdx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsi], rdi
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rdi
mov rdx, qword [rbp + 0x1a0]
test rdx, rdx
jne 0x180026d16
jmp 0x180026d28
lea rax, str.C:Users_runneradmin_.cargogitcheckouts_rust_hooking_utils_304217ef05c0f44c_a36a365_srcpatchingprocess.rs
mov edx, 0x100
mov rcx, r8
mov r8, rax
call fcn.18006ef90
xor r15d, r15d
lea r8, [0x18007b930]
mov rcx, r15
mov rdx, rdi
call fcn.18006ea63
ud2

Function at 0x180027150
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
push rdi
sub rsp, 0x58
movzx edi, dx
cmp edi, 0x100
ja 0x1800271a2
mov rsi, rcx
mov ecx, edi
call qword [sym.imp.user32.dll_GetAsyncKeyState]
xor ecx, ecx
test ax, ax
setns dl
cmp edi, 0x100
je 0x1800271d9
mov cl, dl
lea ecx, [rcx + rcx*2]
cmp byte [rsi + rdi], cl
jne 0x180027192
movzx eax, ax
shr eax, 0xf
mov cl, 2
sub cl, al
jmp 0x180027199
mov byte [rsi + rdi + 0x100], cl
mov eax, ecx
add rsp, 0x58
pop rdi
pop rsi
ret
lea rax, str.Virtual_keys_cant_have_an_index_of_more_than_256_
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x38], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
lea rdx, str.C:Users_runneradmin_.cargogitcheckouts_rust_hooking_utils_304217ef05c0f44c_a36a365_src_raw_inputkey_manager.rs
lea rcx, [rsp + 0x28]
call fcn.18006eb80
lea r8, str.C:Users_runneradmin_.cargogitcheckouts_rust_hooking_utils_304217ef05c0f44c_a36a365_src_raw_inputkey_manager.rs
mov ecx, 0x100
mov edx, 0x100
call fcn.18006eca4
int3
Function at 0x180030a90
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r14, r9
mov r15, r8
mov rbx, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call sub.KERNEL32.dll_GetSystemInfo
mov ecx, dword [rsp + 0x34]
test rcx, rcx
je 0x180030d9b
mov rax, rbx
shr rax, 0x20
je 0x180030ae8
mov rax, rbx
xor edx, edx
div rcx
jmp 0x180030aee
mov eax, ebx
xor edx, edx
div ecx
lea rdi, [rcx + rbx]
sub rdi, rdx
test rdx, rdx
cmove rdi, rbx
test rdi, rdi
cmove rdi, rcx
test r14, r14
je 0x180030c83
shl r14, 4
add r14, r15
xor ecx, ecx
lea r9, [0x18007e484]
lea r10, [0x18007e468]
xor r8d, r8d
xor edx, edx
xor r12d, r12d
xor r11d, r11d
xor ebx, ebx
jmp 0x180030b49
add r15, 0x10
mov r12b, 1
mov r8b, 1
nop dword [rax]
cmp r15, r14
je 0x180030cb7
mov r13, r15
lea r15, [r13 + 0x10]
mov ebp, dword [r13]
cmp ebp, 2
jne 0x180030b9e
nop dword [rax]
cmp r15, r14
je 0x180030c00
mov ebp, dword [r15]
cmp ebp, 2
jne 0x180030b80
add r15, 0x10
cmp r15, r14
jne 0x180030b69
jmp 0x180030c00
mov r12d, ebp
movsxd r12, dword [r9 + r12*4]
add r12, r9
jmp r12
mov ebp, ebp
movsxd rbp, dword [r10 + rbp*4]
add rbp, r10
jmp rbp
mov r8b, 1
jmp 0x180030b40
add r15, 0x10
mov r12b, 1
mov dl, 1
jmp 0x180030b40
cmp r11, 1
sete r10b
test r8b, 1
je 0x180030c9d
movzx r9d, dl
and r9d, 1
shl r9d, 5
add r9d, 0x20
test r10b, r10b
je 0x180030cf9
not dl
movzx ecx, dl
and ecx, 1
lea ebp, [rcx*2 + 0x22]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, r9d
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingW
mov r14, rax
call fcn.180054350
test r14, r14
je 0x180030d31
cmp eax, 0xb7
jne 0x180030d3a
mov dword [rsi + 8], 9
jmp 0x180030d80
xor ebx, ebx
xor r10d, r10d
xor edx, edx
xor ecx, ecx
or r10b, dl
mov r9d, 1
test r10b, 1
jne 0x180030cab
jmp 0x180030cf9
or dl, r10b
mov r9d, 0x10
test dl, 1
je 0x180030cf9
mov dword [rsi + 8], 7
jmp 0x180030d80
cmp r11, 1
sete r10b
test r12b, 1
jne 0x180030c08
test r8b, 1
je 0x180030c8c
movzx r8d, dl
and r8d, 1
lea r9d, [r8*2 + 2]
cmp r11, 1
jne 0x180030cf9
not dl
movzx ecx, dl
and ecx, 1
lea ebp, [rcx*2 + 2]
jmp 0x180030c3a
test rbx, rbx
je 0x180030d07
mov dword [rsi + 8], 8
jmp 0x180030d80
mov rdx, rdi
mov r8d, 0x3000
call sub.KERNEL32.dll_VirtualAlloc
test rax, rax
je 0x180030d23
mov qword [rsi], 1
jmp 0x180030d67
call fcn.180054350
mov dword [rsi + 8], 0xa
jmp 0x180030d7d
mov dword [rsi + 8], 0xb
jmp 0x180030d7d
mov r8, rdi
shr r8, 0x20
mov qword [rsp + 0x20], 0
mov rcx, r14
mov edx, ebp
mov r9d, ebx
call sub.KERNEL32.dll_MapViewOfFile
test rax, rax
je 0x180030d71
mov qword [rsi], 0
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rdi
jmp 0x180030d87
call fcn.180054350
mov dword [rsi + 8], 0xc
mov dword [rsi + 0xc], eax
mov qword [rsi], 2
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.C:Users_runneradmin_.cargo_registry_srcindex.crates.io_6f17d22bba15001fmmap_fixed_fixed_0.1.3_srclib.rs
call fcn.18006f140
ud2
Function at 0x18004ae40
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x488
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x400], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3e8], 0
mov qword [rbp + 0x3f0], 2
mov qword [rbp + 0x3f8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3d0], rax
mov qword [rbp + 0x3d8], 0
mov r13, qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, 0xffffffff
xor esi, esi
xor ebx, ebx
cmp r8, 0x201
jae 0x18004af00
jmp 0x18004aedf
jae 0x18004afec
cmp r8, 0x201
jae 0x18004af00
mov eax, 0x200
mov qword [rbp + 0x3c8], rax
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x18004af3a
sub r8, rbx
sub rsi, rbx
cmp rsi, r8
jb 0x18004afad
mov rsi, qword [rbp + 0x3d8]
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3f8], rbx
mov qword [rbp + 0x3c8], rbx
mov r15, qword [rbp + 0x3d0]
mov r12, rbx
xor ecx, ecx
call r13
mov ecx, r12d
mov rdx, r15
call rdi
test eax, eax
jne 0x18004af73
mov r14, rdi
mov rdi, r13
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, r13d
mov r13, rdi
mov rdi, r14
mov r14d, 0xffffffff
test ecx, ecx
jne 0x18004b05f
mov r8d, eax
cmp r12, r8
jne 0x18004aed0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18004b0a7
add r12, r12
cmp r12, r14
cmovae r12, r14
mov r8, r12
cmp r8, 0x201
jb 0x18004aedf
jmp 0x18004af00
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x3e8]
mov rdx, rbx
call fcn.18006d7d0
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x3d8], rax
mov rax, qword [rbp + 0x3f0]
mov qword [rbp + 0x3d0], rax
jmp 0x18004af0f
mov rdx, qword [rbp + 0x3c8]
cmp rdx, r8
jb 0x18004b093
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.18004e050
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3e8]
test rdx, rdx
je 0x18004b048
mov rcx, qword [rbp + 0x3f0]
add rdx, rdx
mov r8d, 2
call fcn.1800033a0
mov rax, rsi
add rsp, 0x488
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3e8]
test rdx, rdx
jne 0x18004b033
jmp 0x18004b048
lea rax, str.std_src_syspalwindowsmod.rs
mov rcx, r8
mov r8, rax
call fcn.18006ef90
jmp 0x18004b0bf
lea rcx, str.internal_error:_entered_unreachable_code_rustc_d10a6823f4c3176be7a05a2454e5c33b861cb05flibrary_alloc_src_vecmod.rs
lea r8, str.std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.18006ec20
ud2