joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000db78
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14000dc50
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x14000dc50
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14000dc50
test rsi, rsi
je 0x14000dc50
xor r15d, r15d
xor ebp, ebp
xor edi, edi
call fcn.140009d74
lea r8, str.AFX_DIALOG_LAYOUT
mov rdx, rsi
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14000dc1d
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rsi
mov rcx, r14
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x14000dc50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
mov r8d, r15d
mov rdx, rbp
mov rcx, rbx
call fcn.14002b188
mov esi, eax
test rbp, rbp
je 0x14000dc40
test rdi, rdi
je 0x14000dc40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
je 0x14000dc4c
mov rcx, rbx
call fcn.14000d898
mov eax, esi
jmp 0x14000dc52
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14000eae0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rbx, r8
mov rcx, qword [rcx + 0x40]
call fcn.140016310
mov rdi, rax
test rax, rax
je 0x14000eb5c
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x14000eb57
cmp dword [rbx], 0x40
jb 0x14000eb57
mov rcx, qword [rbp + 0x40]
xor r9d, r9d
or dword [rbx + 4], 1
xor r8d, r8d
or qword [rbx + 0x30], 0xffffffffffffffff
mov edx, 0x87
mov qword [rbx + 8], rcx
mov rcx, rdi
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x14000eb57
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x14000eb60
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140013dd8
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
movsxd rsi, r8d
mov rbx, rdx
mov rdi, rcx
cmp qword [rcx + 0xd0], 0
jne 0x140013e16
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x140013ec0
call fcn.14000a6a0
mov rcx, rax
test rax, rax
je 0x140013ed6
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14000e19e.0]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rdi + 0xd0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
mov rax, qword [rax + 0x118]
call qword [case.0x14000e19e.0]
mov rdx, rsi
or rdi, 0xffffffffffffffff
mov r9, rdi
mov r8, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1400397f8
test eax, eax
je 0x140013e88
cmp eax, 0xc
je 0x140013ed0
cmp eax, 0x16
je 0x140013ee7
cmp eax, 0x22
je 0x140013ee7
cmp eax, 0x50
jne 0x140013ee1
test rbx, rbx
je 0x140013e98
mov rcx, rbx
call fcn.140037684
mov rbx, rax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
add ecx, edi
test ecx, ecx
jg 0x140013ebe
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14000e19e.0]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call fcn.14000a9c8
nop
mov ecx, 0x80004005
call fcn.140001cf0
nop
call fcn.14000a9a4
int3
call fcn.14000a9a4
int3

Function at 0x140017614
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rdx]
cmp dword [rcx - 0x10], 0
je 0x140017646
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140017646
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.14002cbfc
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x140017658
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14001767e
mov r8, rdx
mov rdx, qword [rbx]
call fcn.140007e28
jmp 0x1400176e9
cmp byte [0x1400722c0], 0
jne 0x1400176c2
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400176b2
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400722b8], rax
jmp 0x1400176b9
mov rax, qword [0x1400722b8]
mov byte [0x1400722c0], 1
jmp 0x1400176c9
mov rax, qword [0x1400722b8]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x1400176e3
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [case.0x14000e19e.0]
jmp 0x1400176e9
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400370cc
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140036f5f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140036f5f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140036f5f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140036f5f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140036f5f
cmp dword [rcx + 0x84], 0xe
jbe 0x140036f5f
cmp dword [rcx + 0xf8], 0
je 0x140036f5f
mov ecx, ebx
call fcn.140037000
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140036df0
cmp dword [rbp + 0x20], 0
je 0x140036fac
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140036fb4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140036ef8
Function at 0x140258180
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14025818d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14025819d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140258185
lea eax, [rcx + 1]
jmp 0x1402581ab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1402581be
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1402581a4
sub eax, 3
jb 0x1402581de
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14025822d
sar eax, 1
movsxd rbp, eax
jb 0x140258214
jmp 0x1402581ec
add ebx, ebx
jne 0x1402581ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140258214
inc ecx
add ebx, ebx
jne 0x1402581fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140258214
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14025820d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1402581fc
add ecx, 2
jmp 0x140258219
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140258142
jmp 0x14025818d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x12de00
mov dl, 0x26
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14025827d
cmp rsi, rcx
jae 0x140258285
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140258264
cmp al, 0x8f
ja 0x140258264
cmp byte [rsi - 2], 0xf
je 0x14025826a
sub al, 0xe8
cmp al, 1
ja 0x14025824e
cmp rsi, rcx
jae 0x140258285
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140258254
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140258285
lodsb al, byte [rsi]
jmp 0x140258264
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x255000]
mov eax, dword [rdi]
or eax, eax
je 0x1402582ee
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x25aea4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140258292
jns 0x1402582c7
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1402582d1
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1402582e8
mov qword [rbx], rax
add rbx, 8
jmp 0x1402582b2
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140258332
cmp al, 0xef
ja 0x14025831a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1402582fa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140258309
mov eax, dword [rdi]
add rdi, 4
jmp 0x140258309
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140258386
sub rsp, 0xffffffffffffff80
jmp 0x1400f450c
Function at 0x7ff876ee3770
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x138
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x7ff876ee37d7
lea r8, [r10 + 0x10]
movabs r11, 0xb5026f5aa96619e9
mov rdx, qword [r8]
xor rdx, qword [r8 - 8]
lea r8, [r8 + 8]
and rdx, 0xffffffff80000000
xor rdx, qword [r8 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x7ff876ee3792
mov ecx, dword [r10]
jmp 0x7ff876ee38f8
cmp ecx, 0x270
jb 0x7ff876ee38f8
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [r10 + 0x9c8]
mov qword [rsp], rdi
mov rax, qword [rbx]
mov edi, 0x9c
nop word [rax + rax]
mov r9, qword [rbx + 8]
mov r8, rbx
add rbx, 8
mov rdx, r9
xor rdx, rax
and rdx, 0xffffffff80000000
xor rdx, r9
movzx eax, dl
and al, 1
neg al
mov rax, r9
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4e0]
xor rcx, rdx
mov qword [r8 - 0x9c0], rcx
sub rdi, 1
jne 0x7ff876ee3810
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov r9, qword [rbx]
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx + 8]
mov rdx, rbx
xor r9, r8
add rbx, 8
and r9, 0xffffffff80000000
xor r9, r8
movzx eax, r9b
and al, 1
neg al
sbb rcx, rcx
shr r9, 1
and rcx, r11
xor rcx, qword [rdx - 0xea0]
xor rcx, r9
mov r9, r8
mov qword [rdx - 0x9c0], rcx
sub rdi, 1
jne 0x7ff876ee3870
mov rdx, qword [r10 + 8]
xor rdx, qword [r10 + 0x1380]
mov rdi, qword [rsp]
and rdx, 0xffffffff80000000
xor rdx, qword [r10 + 8]
mov rbx, qword [rsp + 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov rdx, qword [r10 + rax*8 + 8]
lea eax, [rcx + 1]
mov dword [r10], eax
mov rcx, rdx
mov rax, qword [r10 + 0x1388]
shr rcx, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
add rsp, 8
ret
Function at 0x7ff876ee3d20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, qword [0x7ff876f9c6b8]
mov rbx, r8
lea rsi, [rdi + 0x164]
lea rcx, [rdi + 0x16c]
mov dword [rsi], 1
call fcn.7ff876f43510
mov dword [rdi + 0x168], ebx
add rbx, 8
je 0x7ff876ee3dfb
mov rax, qword [rdi]
test rax, rax
je 0x7ff876ee3dab
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x7ff876ee3dab
test rsi, rsi
je 0x7ff876ee3dab
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov r8d, ebx
mov qword [rsp + 0x20], 0
mov rdx, rsi
call qword [sym.imp.kernel32.dll_WriteFile]
cmp eax, 1
jne 0x7ff876ee3dab
cmp dword [rsp + 0x40], ebx
je 0x7ff876ee3dfb
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x7ff876ee3dca
mov eax, dword [rdi + 8]
dec eax
test eax, 0xfffffffd
jne 0x7ff876ee3dca
mov ecx, dword [rdi + 0x60]
lea rdx, [rdi + 0x64]
call r8
mov rbx, qword [rdi]
mov rcx, qword [rbx + 8]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
xor al, al
mov byte [rbx], 0
mov dword [rdi + 8], 0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
mov al, 1
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x7ff876ee8b90
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
xorps xmm0, xmm0
xor edx, edx
mov cl, 0x31
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
call fcn.7ff876ee8b80
mov edx, 1
mov byte [rbp - 0x50], al
mov cl, 0x32
call fcn.7ff876ee8b80
mov edx, 2
mov byte [rbp - 0x4f], al
mov cl, 0x33
call fcn.7ff876ee8b80
mov edx, 3
mov byte [rbp - 0x4e], al
mov cl, 0x36
call fcn.7ff876ee8b80
mov edx, 4
mov byte [rbp - 0x4d], al
mov cl, 0x37
call fcn.7ff876ee8b80
mov edx, 5
mov byte [rbp - 0x4c], al
mov cl, 0x36
call fcn.7ff876ee8b80
mov edx, 6
mov byte [rbp - 0x4b], al
call fcn.7ff876ee8b80
mov edx, 7
mov byte [rbp - 0x4a], al
mov cl, 0x30
call fcn.7ff876ee8b80
mov edx, 8
mov byte [rbp - 0x49], al
mov cl, 0x37
call fcn.7ff876ee8b80
mov edx, 9
mov byte [rbp - 0x48], al
mov cl, 0x31
call fcn.7ff876ee8b80
mov edx, 0xa
mov byte [rbp - 0x47], al
mov cl, 0x33
call fcn.7ff876ee8b80
mov edx, 0xb
mov byte [rbp - 0x46], al
mov cl, 0x31
call fcn.7ff876ee8b80
mov edx, 0xc
mov byte [rbp - 0x45], al
mov cl, 0x35
call fcn.7ff876ee8b80
mov edx, 0xd
mov byte [rbp - 0x44], al
mov cl, 0x34
call fcn.7ff876ee8b80
mov edx, 0xe
mov byte [rbp - 0x43], al
mov cl, 0x39
call fcn.7ff876ee8b80
mov edx, 0xf
mov byte [rbp - 0x42], al
mov cl, 0x37
call fcn.7ff876ee8b80
mov edx, 0x10
mov byte [rbp - 0x41], al
mov cl, 0x30
call fcn.7ff876ee8b80
mov edx, 0x11
mov byte [rbp - 0x40], al
mov cl, 0x33
call fcn.7ff876ee8b80
mov edx, 0x12
mov byte [rbp - 0x3f], al
call fcn.7ff876ee8b80
mov byte [rbp - 0x3e], al
xor eax, eax
mov byte [rbp - 0x3d], al
nop dword [rax]
nop word [rax + rax]
movsxd rcx, eax
lea rdx, [rbp - 0x50]
add rdx, rcx
lea ecx, [rax + 0x13]
inc eax
xor byte [rdx], cl
cmp eax, 0x13
jb 0x7ff876ee8cd0
lea rdx, [rbp - 0x38]
mov byte [rbp - 0x3d], 0
lea rcx, [rbp - 0x50]
call fcn.7ff876ee2ab0
add rsp, 0x70
pop rbp
ret
Function at 0x7ff876eee000
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x7ff876eee0ce
mov qword [rsp + 0x30], rbx
lea r8, [0x7ff876eede30]
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.kernel32.dll_CreateThread]
test rax, rax
jne 0x7ff876eee052
lea r9d, [rbx + 0x10]
xor ecx, ecx
lea r8, [0x7ff876f55174]
lea rdx, [0x7ff876f55180]
call qword [sym.imp.user32.dll_MessageBoxA]
jmp 0x7ff876eee05b
mov rcx, rax
call qword [sym.imp.kernel32.dll_CloseHandle]
mov qword [rsp + 0x28], rbx
lea r8, [0x7ff876eede10]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_CreateThread]
test rax, rax
jne 0x7ff876eee099
lea r9d, [rax + 0x10]
xor ecx, ecx
lea r8, [0x7ff876f55174]
lea rdx, [0x7ff876f55180]
call qword [sym.imp.user32.dll_MessageBoxA]
jmp 0x7ff876eee0a2
mov rcx, rax
call qword [sym.imp.kernel32.dll_CloseHandle]
mov qword [rsp + 0x28], rbx
lea r8, [0x7ff876eec760]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_CreateThread]
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x38
ret
test edx, edx
jne 0x7ff876eee0e3
mov rcx, qword [sym.imp.kernel32.dll_LoadLibraryW]
call fcn.7ff876f0ead0
call fcn.7ff876f0e530
mov eax, 1
add rsp, 0x38
ret
Function at 0x7ff876f00da0
Capabilities:
Get storage device properties

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
xor r14d, r14d
lea rax, [r11 + 0x18]
mov qword [r11 - 0x30], r14
lea r8, [r11 - 0x28]
mov qword [r11 - 0x38], rax
mov rsi, rdx
lea rax, [r11 + 0x20]
mov dword [rsp + 0x28], 8
lea r9d, [r14 + 0xc]
mov qword [r11 - 0x48], rax
mov edx, 0x2d1400
mov dword [r11 + 0x18], r14d
mov rbp, rcx
mov qword [r11 - 0x28], r14
call qword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
je 0x7ff876f00f48
mov qword [rsp + 0x70], rbx
lea edx, [r14 + 1]
mov ebx, dword [rsp + 0x8c]
mov ecx, ebx
call fcn.7ff876f28a7c
mov rdi, rax
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x80]
mov edx, 0x2d1400
mov qword [rsp + 0x30], rax
lea r9d, [r14 + 0xc]
mov dword [rsp + 0x28], ebx
lea r8, [rsp + 0x40]
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.kernel32.dll_DeviceIoControl]
mov rbx, qword [rsp + 0x70]
test eax, eax
je 0x7ff876f00f48
mov ecx, dword [rdi + 0x18]
lea rdx, [rsi + 0x28]
add rcx, rdi
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x7ff876f00e60
mov ecx, dword [rdi + 0xc]
mov rdx, rsi
add rcx, rdi
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x7ff876f00e80
mov ecx, dword [rdi + 0x10]
lea rdx, [rsi + 0x50]
add rcx, rdi
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x7ff876f00ea0
mov ecx, dword [rdi + 0x14]
lea rdx, [rsi + 0x78]
add rcx, rdi
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x7ff876f00ec0
mov ecx, dword [rdi]
lea rdx, [rsi + 0xa0]
add rcx, rdi
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x7ff876f00ee0
movzx eax, byte [rdi + 9]
add al, byte [rdi]
mov byte [rsi + 0xc8], al
movzx eax, byte [rdi + 0xa]
add al, byte [rdi]
mov byte [rsi + 0xc9], al
movzx eax, byte [rdi + 0xb]
add al, byte [rdi]
mov byte [rsi + 0xca], al
mov eax, dword [rdi + 0x1c]
add eax, dword [rdi]
mov dword [rsi + 0xcc], eax
movzx eax, dil
add al, byte [rdi + 0x24]
mov byte [rsi + 0xd0], al
mov al, 1
add dil, byte [rdi + 0x25]
mov byte [rsi + 0xd1], dil
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
mov rbp, qword [rsp + 0x78]
xor al, al
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x7ff876f0a120
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x7ff876f0a1ec
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x7ff876f0a1ec
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x7ff876f0a205
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x7ff876f0a1dc
cmp byte [rax], 0x5c
jne 0x7ff876f0a1d6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x7ff876f0a1d6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x7ff876f0a1c2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x7ff876f0a1d3
test r8b, 0x10
jne 0x7ff876f0a1d6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x7ff876f0a1d6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.7ff876f060f0
test edi, edi
jne 0x7ff876f0a140
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.7ff876f060e0
int3
Function at 0x7ff876f0dda0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rbx, r9
mov r14, r8
mov r12d, edx
mov r15, rcx
mov dword [rsp + 0x70], 0x78563412
cmp dword [rcx + 0x58], 1
jbe 0x7ff876f0dfb8
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
xor ebp, ebp
mov qword [rsp + 0x30], rbp
movzx eax, byte [rcx + 0x5c]
neg al
sbb rsi, rsi
and esi, 4
mov eax, ebp
mov ecx, 2
cmp r8, 0x7e
cmovae eax, ecx
add rsi, rax
mov eax, 8
cmp r8, 0x10000
cmovae ecx, eax
add rsi, rcx
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.7ff876effde0
mov r8, rsi
xor edx, edx
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call fcn.7ff876f43bb0
lea r9, [rdi + rsi]
mov qword [rsp + 0x28], r9
or r12b, 0x80
mov byte [rdi], r12b
movzx edx, byte [r15 + 0x5c]
cmp r14, 0x7e
jae 0x7ff876f0de6f
neg dl
sbb al, al
and al, 0x80
or al, r14b
mov byte [rdi + 1], al
cmp byte [r15 + 0x5c], bpl
je 0x7ff876f0df0f
mov dword [rdi + 2], 0x78563412
jmp 0x7ff876f0df0f
mov rcx, r14
shr rcx, 8
cmp r14, 0x10000
jae 0x7ff876f0deaa
mov eax, 0x7e
mov r8d, 0xfe
test dl, dl
cmovne eax, r8d
mov byte [rdi + 1], al
mov byte [rdi + 2], cl
mov byte [rdi + 3], r14b
cmp byte [r15 + 0x5c], 0
je 0x7ff876f0df0f
mov dword [rdi + 4], 0x78563412
jmp 0x7ff876f0df0f
mov eax, 0x7f
mov r8d, 0xff
test dl, dl
cmovne eax, r8d
mov byte [rdi + 1], al
mov rax, r14
shr rax, 0x38
mov byte [rdi + 2], al
mov rax, r14
shr rax, 0x30
mov byte [rdi + 3], al
mov rax, r14
shr rax, 0x28
mov byte [rdi + 4], al
mov rax, r14
shr rax, 0x20
mov byte [rdi + 5], al
mov rax, r14
shr rax, 0x18
mov byte [rdi + 6], al
mov rax, r14
shr rax, 0x10
mov byte [rdi + 7], al
mov byte [rdi + 8], cl
mov byte [rdi + 9], r14b
cmp byte [r15 + 0x5c], 0
je 0x7ff876f0df0f
mov dword [rdi + 0xa], 0x78563412
sub r9, rdi
mov rdx, qword [r15 + 0x28]
mov r8, rdi
lea rcx, [r15 + 0x20]
call fcn.7ff876f0e280
mov r9, qword [rsp + 0x90]
sub r9, rbx
mov rdx, qword [r15 + 0x28]
mov r8, rbx
lea rcx, [r15 + 0x20]
call fcn.7ff876f0e280
cmp byte [r15 + 0x5c], 0
je 0x7ff876f0df82
mov r8, qword [r15 + 0x28]
sub r8, qword [r15 + 0x20]
sub r8, r14
test r14, r14
je 0x7ff876f0df82
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [r15 + 0x20]
add rdx, rbp
movzx ecx, byte [rdx + r8]
mov rax, rbp
and eax, 3
xor cl, byte [rsp + rax + 0x70]
mov byte [rdx + r8], cl
inc rbp
cmp rbp, r14
jne 0x7ff876f0df60
test rdi, rdi
je 0x7ff876f0dfb8
mov rdx, qword [rsp + 0x30]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x7ff876f0dfb0
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff876f0dfd2
mov rcx, rdi
call fcn.7ff876f125fc
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call fcn.7ff876f28a04
int3