joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18012fee0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x18012ff22
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x18012ff69
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x18012ffc2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x18012ff80
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x180130003
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x18014eeb2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x18014eeb3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x18012ffd0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x180130300
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov eax, gethostname
movaps xmmword [rsp + 0x30], xmm7
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm8
mov rbx, rcx
movsd xmm8, qword [0x18014f198]
cvtsi2sd xmm6, rax
test rax, rax
jns 0x180130339
addsd xmm6, xmm8
movaps xmm0, xmm8
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_log2]
divsd xmm6, xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
movsd xmm6, qword [0x18019b630]
mov ecx, 1
cvttsd2si eax, xmm0
xorps xmm7, xmm7
cmp eax, ecx
cmovl eax, ecx
test eax, eax
jle 0x180130473
mov qword [rsp + 0x60], rbp
movabs rbp, 0x38eb3ffff6d3
mov qword [rsp + 0x68], rsi
movabs rsi, 0xb5026f5aa96619e9
mov qword [rsp + 0x70], rdi
mov edi, eax
mov eax, dword [rbx]
cmp eax, 0x138
jne 0x1801303ec
lea r8, [rbx + 0x10]
mov r9d, eax
nop word [rax + rax]
mov edx, dword [r8 - 8]
xor edx, dword [r8]
lea r8, [r8 + 8]
btr edx, 0x1f
xor rdx, qword [r8 - 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rsi
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x1801303b0
jmp 0x1801303fb
cmp eax, 0x270
jb 0x1801303fb
mov rcx, rbx
call fcn.1801316e0
mov eax, dword [rbx]
xorps xmm1, xmm1
mov rcx, qword [rbx + rax*8 + 8]
inc eax
mov dword [rbx], eax
mov rax, rcx
shr rax, 0x1d
and rax, qword [rbx + 0x1388]
xor rcx, rax
mov rax, rcx
and rax, rbp
shl rax, 0x11
xor rcx, rax
mov rax, rcx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rcx, rax
mov rax, rcx
shr rax, 0x2b
xor rax, rcx
cvtsi2sd xmm1, rax
jns 0x18013044d
addsd xmm1, xmm8
mulsd xmm1, xmm6
mulsd xmm6, xmm8
addsd xmm7, xmm1
sub rdi, 1
jne 0x180130395
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
movaps xmm8, xmmword [rsp + 0x20]
divsd xmm7, xmm6
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm0, xmm7
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x50
pop rbx
ret

Function at 0x1801316e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov r10, rcx
lea r9, [rcx + 0x9c8]
movabs rbx, 0xb5026f5aa96619e9
mov r11d, 0x9c
nop
mov edx, dword [r9]
xor edx, dword [r9 + 8]
lea r9, [r9 + 8]
btr edx, 0x1f
xor rdx, qword [r9 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rbx
xor rcx, qword [r9 + 0x4d8]
xor rcx, rdx
mov qword [r9 - 0x9c8], rcx
sub r11, 1
jne 0x180131700
lea r9, [r10 + 0xea8]
mov r11d, 0x9b
nop word [rax + rax]
mov edx, dword [r9]
xor edx, dword [r9 + 8]
lea r9, [r9 + 8]
btr edx, 0x1f
xor rdx, qword [r9 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rbx
xor rcx, qword [r9 - 0xea8]
xor rcx, rdx
mov qword [r9 - 0x9c8], rcx
sub r11, 1
jne 0x180131750
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 8]
btr edx, 0x1f
xor rdx, qword [r10 + 0x1380]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rbx
mov rbx, qword [rsp + 8]
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
mov dword [r10], r11d
ret
Function at 0x180132170
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0xae0
mov rax, qword [0x1801d08c0]
xor rax, rsp
mov qword [rsp + 0xad0], rax
mov rbx, rdx
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
lea rax, [rsp + 0x80]
mov r8, rcx
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
or r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
or r9d, 0xffffffff
mov qword [rsp + 0x20], rax
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareValveSteam
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x18013221f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Error_opening_Steam_key_n
jmp 0x1801322e7
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.SteamExe
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x30], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1801322d5
mov ecx, dword [rsp + 0x30]
cmp ecx, 1
jb 0x1801322d5
shr ecx, 1
je 0x180132293
lea rax, [rsp + 0xc0]
lea edx, [rbx + 0x5c]
nop
cmp word [rax], 0x2f
jne 0x180132289
mov word [rax], dx
add rax, 2
sub rcx, 1
jne 0x180132280
lea rax, [rsp + 0x40]
mov edx, 0x800
lea r9, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r8, str.__s__steam:__rungameid__s
lea rcx, [rsp + 0x2d0]
call fcn.180132000
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x80]
call fcn.180131c60
jmp 0x1801322ef
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Error_reading_SteamExe_key_n
mov rcx, rax
call fcn.180132310
mov rcx, qword [rsp + 0xad0]
xor rcx, rsp
call fcn.180137e70
add rsp, 0xae0
pop rbx
ret
Function at 0x1801323b0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1801d08c0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov eax, dword [0x18014f3f0]
xor edi, edi
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov dword [rsp + 0x68], eax
mov rbx, rcx
movzx eax, word [0x18014f3f4]
lea rcx, [rsp + 0x40]
movups xmm1, xmmword [0x18014f3d8]
mov word [rsp + 0x6c], ax
mov eax, Ordinal_50
movups xmmword [rsp + 0x40], xmm0
xor r9d, r9d
mov qword [rsp + 0x30], rdi
movsd xmm0, qword [0x18014f3e8]
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov edx, 0xc0000000
movsd qword [rsp + 0x60], xmm0
mov word [rsp + 0x6a], ax
movups xmmword [rsp + 0x50], xmm1
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x1801324b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x180132468
movzx eax, word [rsp + 0x6a]
cmp ax, 0x39
jae 0x1801324d7
inc ax
mov word [rsp + 0x6a], ax
jmp 0x180132483
cmp eax, 0xe7
jne 0x1801324d7
mov edx, 0x2710
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x1801324d7
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], edi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
je 0x180132448
mov byte [rbx], 1
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180137e70
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
xor al, al
jmp 0x1801324b9

Function at 0x1801324e0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x180132500
xor al, al
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
test rbx, rbx
je 0x1801324f6
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x1801324f6
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rbp
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x28], rbp
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], ebp
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x18013258b
mov eax, dword [rsp + 0x58]
cmp rax, rdi
jb 0x1801325a0
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x68]
mov r8d, edi
mov dword [rsp + 0x68], ebp
mov rdx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x180132574
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov rcx, rbx
call fcn.180132360
mov rbp, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
mov byte [rbx], bpl
xor al, al
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1801325b0
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, r8
test r8, r8
jne 0x1801325c6
mov al, 1
add rsp, 0x30
pop rdi
ret
test rcx, rcx
jne 0x1801325d3
xor al, al
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x1801325cb
test rdx, rdx
je 0x1801325cb
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x50]
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x18013260a
cmp dword [rsp + 0x50], edi
jne 0x18013260a
mov ebx, eax
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180137d74
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x180137dae
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x180137db3
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180137dfc
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x180137dfc
dec r8
sub rdx, 1
jne 0x180137de2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x40b247
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x40b27d
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x40b285
mov esi, dword [rdx]
mov r9d, 4
jmp 0x40b28a
xor r10d, r10d
jmp 0x40b338
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x40b2ad
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x40b2c4
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x40b2e4
add r11, r8
jmp 0x40b408
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x40b3ac
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x40b35a
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x40b3be
mov r9d, dword [rdx + r10]
mov r8d, 4
jmp 0x40b3c4
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x40b3ea
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x40b404
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x40ff69
Capabilities:
Impersonate user

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
mov r8, qword [rcx + 0x10]
test r8, r8
je 0x410125
mov rsi, rcx
mov rbx, qword [rcx + 0x28]
test rbx, rbx
je 0x410125
mov rdi, qword [rsi + 0x40]
test rdi, rdi
je 0x410125
mov rdx, qword [rsi]
lea r14, [rsp + 0xa8]
mov rcx, r14
call fcn.00416a20
mov rdx, qword [rsi + 0x18]
lea r15, [rsp + 0xc0]
mov rcx, r15
mov r8, rbx
call fcn.00416a20
mov rdx, qword [rsi + 0x30]
lea rbx, [rsp + 0x78]
mov rcx, rbx
mov r8, rdi
call fcn.00416a20
mov rdi, qword [r14]
mov rbp, qword [r14 + 8]
mov r14, qword [r14 + 0x10]
mov rdx, qword [r15]
mov rsi, qword [r15 + 8]
lea r13, [rsp + 0x30]
mov qword [r13], 0
mov r8, qword [r15 + 0x10]
lea r15, [rsp + 0x48]
mov rcx, r15
mov qword [rsp + 0x38], rdx
call fcn.004158f1
lea r12, [rsp + 0x60]
mov rcx, r12
mov qword [rsp + 0x40], rdi
mov rdx, rdi
mov r8, r14
call fcn.004158f1
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rbx, [rsp + 0x90]
mov rcx, rbx
call fcn.004158f1
mov rcx, qword [r15]
mov rdx, qword [r12]
mov rbx, qword [rbx]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0
mov r8, rbx
mov r9d, 3
call sub.ADVAPI32.dll_LogonUserW
test eax, eax
je 0x410085
mov rcx, qword [rsp + 0x30]
call sub.ADVAPI32.dll_ImpersonateLoggedOnUser
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_CloseHandle
cmp qword [rsp + 0x98], 0
je 0x4100a1
mov rcx, qword [0x004770f8]
xor edx, edx
mov r8, rbx
call fcn.0045f0e4
cmp qword [rsp + 0x68], 0
je 0x4100bc
mov r8, qword [rsp + 0x60]
mov rcx, qword [0x004770f8]
xor edx, edx
call fcn.0045f0e4
cmp qword [rsp + 0x50], 0
je 0x4100d7
mov r8, qword [rsp + 0x48]
mov rcx, qword [0x004770f8]
xor edx, edx
call fcn.0045f0e4
cmp qword [rsp + 0x80], 0
je 0x4100f5
mov r8, qword [rsp + 0x78]
mov rcx, qword [0x004770f8]
xor edx, edx
call fcn.0045f0e4
test rsi, rsi
je 0x41010d
mov rcx, qword [0x004770f8]
xor edx, edx
mov r8, qword [rsp + 0x38]
call fcn.0045f0e4
test rbp, rbp
je 0x410125
mov rcx, qword [0x004770f8]
xor edx, edx
mov r8, qword [rsp + 0x40]
call fcn.0045f0e4
nop
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x415783
Capabilities:
Enumerate processes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x280
mov rdi, rcx
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
test rax, rax
je 0x4158d4
mov rsi, rax
lea rbx, [rsp + 0x74]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call sub.ntdll.dll_memset
mov qword [rbx - 0x2c], 0x238
mov dword [rbx - 0x24], 0
xorps xmm0, xmm0
movups xmmword [rbx - 0x1c], xmm0
movups xmmword [rbx - 0x10], xmm0
lea rdx, [rsp + 0x48]
mov rcx, rsi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4158cc
lea r14, [rsp + 0x28]
lea r15, [rsp + 0x48]
xor r8d, r8d
cmp word [rsp + r8*2 + 0x74], 0
je 0x41581b
inc r8
cmp r8, 0xffff
jne 0x415800
mov r8d, 0xffff
mov rcx, r14
mov rdx, rbx
call fcn.0042d980
mov r12, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x38]
mov r9d, 0xc
mov rcx, r12
mov r8, rdi
call fcn.0040156c
mov ebp, eax
cmp qword [rsp + 0x30], 0
je 0x41585c
mov rcx, qword [0x004770f8]
xor edx, edx
mov r8, r12
call fcn.0045f0e4
test bpl, bpl
je 0x4158b9
mov r8d, dword [rsp + 0x50]
mov ecx, 0x400
xor edx, edx
call sub.KERNEL32.dll_OpenProcess
test rax, rax
je 0x4158b9
mov r12, rax
mov qword [rsp + 0x28], 0
mov rcx, rax
mov edx, 0xe
mov r8, r14
call sub.ADVAPI32.dll_OpenProcessToken
test eax, eax
je 0x4158b1
mov rcx, qword [rsp + 0x28]
call sub.ADVAPI32.dll_ImpersonateLoggedOnUser
mov ebp, eax
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_CloseHandle
test ebp, ebp
jne 0x4158e7
mov rcx, r12
call sub.KERNEL32.dll_CloseHandle
mov rcx, rsi
mov rdx, r15
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4157fd
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
nop
add rsp, 0x280
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, r12
call sub.KERNEL32.dll_CloseHandle
jmp 0x4158cc

Function at 0x41a410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x41a4a0
cmp r11, r10
ja 0x41a516
cmp r10, rdx
ja 0x41a52a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x41a4a2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x41a480
jmp 0x41a504
ja 0x41a4aa
mov r11, r10
cmp rax, r8
jne 0x41a444
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x41a4e0
mov rdi, r8
sub ecx, edx
jns 0x41a4fb
jmp 0x41a506
cmp r8, rsi
je 0x41a53b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x41a506
xor al, 1
cmp rdi, rsi
jne 0x41a4c0
jmp 0x41a506
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.00418220
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.00417790
ud2
lea rcx, [0x0046bcf8]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.00417b30
ud2
Function at 0x421077
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x4210c9
mov rdi, rax
lea rdx, str.WaitOnAddress
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x4210c9
mov rsi, rax
lea rdx, str.WakeByAddressSingle
mov rcx, rdi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x4210c9
mov r14, rax
xor edi, edi
jmp 0x42114d
lea rcx, str.ntdll.dll
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x4211b5
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x4211b5
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x4211b5
mov rdi, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x4211b5
mov rsi, rax
lea rcx, [rsp + 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x4211b5
mov r14, qword [rsp + 0x20]
mov al, byte [0x00477190]
mov ecx, 0x18
mov edx, 8
call fcn.00415bd0
test rax, rax
je 0x4211cf
mov rbx, rax
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r14
xor eax, eax
lock cmpxchg qword [0x00477040], rbx
je 0x4211a8
mov rsi, rax
cmp qword [rbx], 0
je 0x421194
mov rcx, qword [rbx + 0x10]
call sub.KERNEL32.dll_CloseHandle
mov rcx, qword [0x004770f8]
xor edx, edx
mov r8, rbx
call fcn.0045f0e4
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.parking_lot_requires_either_NT_Keyed_Events__WinXP__or_WaitOnAddress_WakeByAddress__Win8__cargo_registry_src_index.crates.io_6f17d22bba15001f_parking_lot_core_0.9.8_src_thread_parker_windows_mod.rs
lea r8, [0x00467fb0]
mov edx, 0x5b
call fcn.004211e0
ud2
mov ecx, 8
mov edx, 0x18
call fcn.00416100
ud2
Function at 0x421342
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov ecx, dword [0x00461148]
test ecx, ecx
je 0x42142c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x421371
mov rsi, rax
cmp qword [rax + 8], 0
jne 0x42141a
mov ecx, dword [0x00461148]
test ecx, ecx
je 0x42143f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x421420
mov rsi, rax
test rax, rax
jne 0x4213df
mov al, byte [0x00477190]
mov ecx, 0x40
mov edx, 8
call fcn.00415bd0
test rax, rax
je 0x421465
mov rsi, rax
lea rax, [0x00461130]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x00461148]
test ecx, ecx
je 0x421452
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsp + 0x20]
mov rcx, rdi
call fcn.00420a09
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmm2, xmmword [rdi + 0x20]
movups xmmword [rsi + 0x18], xmm1
movups xmmword [rsi + 0x28], xmm2
mov rax, qword [rdi + 0x30]
mov qword [rsi + 0x38], rax
cmp qword [rsi + 8], 0
movups xmmword [rsi + 8], xmm0
je 0x42141a
lock dec qword [0x00477030]
add rsi, 8
jmp 0x421422
xor esi, esi
mov rax, rsi
add rsp, 0x58
pop rdi
pop rsi
ret
lea rcx, [0x00461130]
call fcn.004298d0
mov ecx, eax
jmp 0x421358
lea rcx, [0x00461130]
call fcn.004298d0
mov ecx, eax
jmp 0x421381
lea rcx, [0x00461130]
call fcn.004298d0
mov ecx, eax
jmp 0x4213d7
mov ecx, 8
mov edx, 0x40
call fcn.00416100
ud2

Function at 0x424c10
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.00417320
cmp rax, rcx
je 0x424c35
cmp rdx, 4
jae 0x424c38
xor eax, eax
xor r8d, r8d
jmp 0x424cd0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x00462990]
movdqa xmm3, xmmword [0x004629a0]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x424c60
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x424ce7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x424cd0
ret