joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140069b62
Capabilities:
Query environment variable

Disassembly:
jmp 0x14010f170
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor r14d, r14d
mov rbx, rax
test rax, rax
je 0x14010f258
mov rsi, rax
cmp word [rax], r14w
je 0x14010f1c3
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x14010f1ab
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x14010f1a7
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call fcn.14006a5b2
movsxd rbp, eax
test eax, eax
je 0x14010f258
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov rcx, rbp
lea edx, [r9 - 0x64]
call fcn.1400698fb
mov rdi, rax
test rax, rax
je 0x14010f246
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.14006a5b2
test eax, eax
je 0x14010f246
mov rsi, rdi
mov rdi, r14
jmp 0x14010f249
mov rsi, r14
mov edx, 2
mov rcx, rdi
call fcn.1400688cf
jmp 0x14010f25b
mov rsi, r14
test rbx, rbx
je 0x14010f269
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140069b71
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14008b450
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14008ae20
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14008b491
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14018a020]
jmp 0x14008b497
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x140069bee
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400f2ff0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1400f1f70
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400f3043
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
call qword [0x14018a020]
jmp 0x1400f3065
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.1400693fb
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x48
ret
Function at 0x140069bf8
Capabilities:
Terminate process

Disassembly:
jmp 0x140072440
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140069dfb
Capabilities:
Print debug messages

Disassembly:
jmp 0x14012d490
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140178008]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14012d4b6
jmp 0x14012d533
mov rcx, qword [rbp + 0x30]
call fcn.1400696a8
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14012d4cf
jmp 0x14012d533
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14012d4ec
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400688f7
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.140068cc6
test eax, eax
jne 0x14012d533
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140069883
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x14006a01c
Capabilities:
Create process on windows

Disassembly:
jmp 0x140128420
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x118
lea rcx, [rsp + 0xe0]
call fcn.1400692de
lea rcx, [rsp + 0xb0]
call fcn.1400692de
lea rcx, [rsp + 0x80]
call fcn.1400692de
call fcn.140069b0d
mov r8d, eax
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x120]
call fcn.1400690ef
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x1401284c2
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x80]
call fcn.1400695d6
lea rcx, [rsp + 0xb0]
call fcn.1400695d6
lea rcx, [rsp + 0xe0]
call fcn.1400695d6
mov eax, dword [rsp + 0x54]
jmp 0x14012865e
call fcn.140069b0d
mov r8d, eax
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x128]
call fcn.1400690ef
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x140128522
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x80]
call fcn.1400695d6
lea rcx, [rsp + 0xb0]
call fcn.1400695d6
lea rcx, [rsp + 0xe0]
call fcn.1400695d6
mov eax, dword [rsp + 0x5c]
jmp 0x14012865e
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x158], 0
je 0x1401285a8
call fcn.140069b0d
mov r8d, eax
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x158]
call fcn.1400690ef
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x140128596
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x80]
call fcn.1400695d6
lea rcx, [rsp + 0xb0]
call fcn.1400695d6
lea rcx, [rsp + 0xe0]
call fcn.1400695d6
mov eax, dword [rsp + 0x64]
jmp 0x14012865e
lea rcx, [rsp + 0x80]
call fcn.14006925c
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb0]
call fcn.14006925c
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe0]
call fcn.14006925c
mov rcx, qword [rsp + 0x168]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x160]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x150]
mov qword [rsp + 0x30], rcx
mov ecx, dword [rsp + 0x148]
mov dword [rsp + 0x28], ecx
mov ecx, dword [rsp + 0x140]
mov dword [rsp + 0x20], ecx
mov r9, qword [rsp + 0x138]
mov r8, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x78]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x80]
call fcn.1400695d6
lea rcx, [rsp + 0xb0]
call fcn.1400695d6
lea rcx, [rsp + 0xe0]
call fcn.1400695d6
mov eax, dword [rsp + 0x68]
add rsp, 0x118
ret
Function at 0x14006a265
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400737d0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400737f0
xor al, al
jmp 0x140073871
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140073803
xor al, al
jmp 0x140073871
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14007382d
xor al, al
jmp 0x140073871
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140073841
xor al, al
jmp 0x140073871
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140073853
xor al, al
jmp 0x140073871
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14007386f
xor al, al
jmp 0x140073871
mov al, 1
add rsp, 0x38
ret
Function at 0x14006a71a
Capabilities:
Terminate process

Disassembly:
jmp 0x1400ee480
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1400ee4ae
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.14006ae4a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14006a7ce
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400f2de0
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.1400f1df0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400f2e15
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x14018a020]
jmp 0x1400f2e1f
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x38
ret

Function at 0x14006ac10
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400f2e40
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.1400f1e30
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400f2e7f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x14018a020]
jmp 0x1400f2e8e
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret

Function at 0x14006aeae
Capabilities:
Print debug messages

Disassembly:
jmp 0x140107a80
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x14006af44
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14008b590
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14008aee0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14008b5d9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14018a020]
jmp 0x14008b5e8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret
Function at 0x14006afe9
Capabilities:
Set environment variable

Disassembly:
jmp 0x14012f7f0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
lea rcx, [rsp + 0x70]
call fcn.1400692de
lea rcx, [rsp + 0x40]
call fcn.1400692de
call fcn.140069b0d
mov r8d, eax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
call fcn.1400690ef
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14012f85f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x40]
call fcn.1400695d6
lea rcx, [rsp + 0x70]
call fcn.1400695d6
mov eax, dword [rsp + 0x24]
jmp 0x14012f8ec
call fcn.140069b0d
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xb8]
call fcn.1400690ef
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14012f8a6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x40]
call fcn.1400695d6
lea rcx, [rsp + 0x70]
call fcn.1400695d6
mov eax, dword [rsp + 0x2c]
jmp 0x14012f8ec
lea rcx, [rsp + 0x40]
call fcn.14006925c
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x70]
call fcn.14006925c
mov rcx, qword [rsp + 0x38]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.1400695d6
lea rcx, [rsp + 0x70]
call fcn.1400695d6
mov eax, dword [rsp + 0x30]
add rsp, 0xa8
ret

Function at 0x14006b02f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x14013b160
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x48
movzx eax, word [rsp + 0x58]
movd xmm0, eax
movdqa xmmword [rsp + 0x20], xmm0
pshuflw xmm0, xmmword [rsp + 0x20], 0
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmm0, xmmword [rsp + 0x20]
pshufd xmm0, xmm0, 0
movdqa xmmword [rsp + 0x20], xmm0
mov rax, qword [rsp + 0x50]
and rax, 0xfff
cmp rax, 0xff0
ja 0x14013b271
mov rax, qword [rsp + 0x50]
movdqu xmm0, xmmword [rax]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pxor xmm0, xmmword [rsp + 0x10]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pcmpeqw xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x30]
pcmpeqw xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
por xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pmovmskb eax, xmm0
mov dword [rsp], eax
cmp dword [rsp], 0
je 0x14013b261
mov eax, dword [rsp]
bsf eax, eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
add rax, qword [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
movzx ecx, word [rsp + 0x58]
cmp eax, ecx
jne 0x14013b251
mov rax, qword [rsp + 0x50]
mov qword [rsp + 8], rax
jmp 0x14013b25a
mov qword [rsp + 8], 0
mov rax, qword [rsp + 8]
jmp 0x14013b2ac
mov rax, qword [rsp + 0x50]
add rax, 0x10
mov qword [rsp + 0x50], rax
jmp 0x14013b2a7
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
movzx ecx, word [rsp + 0x58]
cmp eax, ecx
jne 0x14013b289
mov rax, qword [rsp + 0x50]
jmp 0x14013b2ac
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
test eax, eax
jne 0x14013b299
xor eax, eax
jmp 0x14013b2ac
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
jmp 0x14013b19b
add rsp, 0x48
ret
Function at 0x1400020d0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1400045e0], rbx
je 0x14000211c
cmp rax, rbx
jne 0x14000210f
mov ebx, 1
mov esi, ebx
jmp 0x140002121
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400020f4
mov ebx, 1
mov eax, dword [0x1400045e8]
cmp eax, ebx
jne 0x140002137
mov ecx, 0x1f
call fcn.140094000
jmp 0x14000219c
mov eax, dword [0x1400045e8]
test eax, eax
jne 0x140002196
mov dword [0x1400045e8], ebx
lea r15, [0x1400032b0]
lea rdi, [0x140003298]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140002188
test eax, eax
jne 0x14000218c
cmp qword [rdi], 0
je 0x14000217d
mov rax, qword [rdi]
mov rcx, qword [vtable.H_MA8HI.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000215e
test eax, eax
je 0x14000219c
mov eax, 0xff
jmp 0x140002278
mov dword [0x140004024], ebx
mov eax, dword [0x1400045e8]
cmp eax, ebx
jne 0x1400021c3
lea rdx, [0x140003290]
lea rcx, [0x140003280]
call sub.msvcrt.dll__initterm
mov dword [0x1400045e8], 2
test esi, esi
jne 0x1400021d0
xor eax, eax
xchg qword [0x1400045e0], rax
cmp qword [0x1400045f0], 0
je 0x140002204
lea rcx, [0x1400045f0]
call fcn.140002630
test eax, eax
je 0x140002204
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400045f0]
mov r9, qword [vtable.H_MA8HI.0]
call r9
mov r8, qword [0x140004038]
mov rdx, qword [0x140004030]
mov ecx, dword [0x140004028]
call fcn.14000116c
mov dword [0x140004020], eax
cmp dword [0x140004040], 0
jne 0x140002234
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140004024], 0
jne 0x140002249
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140004020]
jmp 0x140002278
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400026c4
add rsp, 0x28
jmp 0x1400020d0

Function at 0x14000251c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002568
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002560
cmp dword [rcx + 0x3c], edx
jl 0x140002560
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002560
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140002568
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140008440
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140008474
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140008460
ret
Function at 0x14000c0a0
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 0x14000c16c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14000c16c
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 0x14000c185
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 0x14000c15c
cmp byte [rax], 0x5c
jne 0x14000c156
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14000c156
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14000c142
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14000c153
test r8b, 0x10
jne 0x14000c156
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14000c156
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140008e50
test edi, edi
jne 0x14000c0c0
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.140008e40
int3
Function at 0x1400108c0
Capabilities:
Encode data using xor

Disassembly:
movzx r10d, byte [rdx]
mov r11, rdx
mov r9, qword [rcx + 0x18]
movzx r8d, r10b
movzx eax, byte [r9 + 0x1d]
xor r8b, byte [rax + rcx + 0x71]
xor byte [r9], r8b
mov r9, qword [rcx + 0x18]
movzx eax, byte [r9 + 0x1e]
movzx r8d, byte [rax + rcx + 0x71]
xor byte [r9 + 1], r8b
mov r9d, 5
mov r8, qword [rcx + 0x18]
movzx eax, byte [r8 + 0x1f]
movzx edx, byte [rax + rcx + 0x71]
xor byte [r8 + 2], dl
mov r8, qword [rcx + 0x18]
movzx eax, byte [r8 + 0x1c]
movzx edx, byte [rax + rcx + 0x71]
movzx eax, r10b
xor byte [r8 + 3], dl
add r10b, r10b
shr al, 7
movzx eax, al
imul edx, eax, 0x1b
xor dl, r10b
mov r10b, 4
mov byte [r11], dl
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rcx + 0x18]
movzx eax, r10b
add r10b, 4
lea r8, [rdx + r9]
movzx edx, byte [rax + rdx - 4]
xor byte [r8 - 1], dl
mov rax, qword [rcx + 0x18]
lea rdx, [rax + r9]
movzx eax, byte [rax + r9 - 4]
xor byte [rdx], al
mov rax, qword [rcx + 0x18]
lea rdx, [r9 + rax]
movzx eax, byte [r9 + rax - 3]
xor byte [rdx + 1], al
mov rax, qword [rcx + 0x18]
lea rdx, [r9 + rax]
movzx eax, byte [r9 + rax - 2]
xor byte [rdx + 2], al
lea r9, [r9 + 4]
cmp r10b, 0x10
jb 0x140010940
mov r8, qword [rcx + 0x18]
mov r10b, 0x14
mov r9d, 0x15
movzx eax, byte [r8 + 0xc]
movzx edx, byte [rax + rcx + 0x71]
xor byte [r8 + 0x10], dl
mov r8, qword [rcx + 0x18]
movzx eax, byte [r8 + 0xd]
movzx edx, byte [rax + rcx + 0x71]
xor byte [r8 + 0x11], dl
mov r8, qword [rcx + 0x18]
movzx eax, byte [r8 + 0xe]
movzx edx, byte [rax + rcx + 0x71]
xor byte [r8 + 0x12], dl
mov r8, qword [rcx + 0x18]
movzx eax, byte [r8 + 0xf]
movzx edx, byte [rax + rcx + 0x71]
xor byte [r8 + 0x13], dl
nop word [rax + rax]
mov rdx, qword [rcx + 0x18]
movzx eax, r10b
add r10b, 4
lea r8, [rdx + r9]
movzx edx, byte [rax + rdx - 4]
xor byte [r8 - 1], dl
mov rax, qword [rcx + 0x18]
lea rdx, [rax + r9]
movzx eax, byte [rax + r9 - 4]
xor byte [rdx], al
mov rax, qword [rcx + 0x18]
lea rdx, [r9 + rax]
movzx eax, byte [r9 + rax - 3]
xor byte [rdx + 1], al
mov rax, qword [rcx + 0x18]
lea rdx, [r9 + rax]
movzx eax, byte [r9 + rax - 2]
xor byte [rdx + 2], al
lea r9, [r9 + 4]
cmp r10b, 0x20
jb 0x1400109f0
ret
Function at 0x140010d10
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x460
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140010d67
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x140010da9
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140010d40
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call fcn.14001d9b0
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x438
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
nop
cmp qword [rsp + 0x48], rdi
je 0x140010dba
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140010d90
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140010da9
mov rcx, rdi
cmp eax, 1
je 0x140010dd5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140010d20
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
Function at 0x1400125b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, rcx
xor edi, edi
mov rbx, r9
lea ecx, [rdi + 0x20]
call fcn.14001b608
mov rsi, rax
lea r8, [0x140010e40]
mov r9, rsi
xor edx, edx
xor ecx, ecx
mov dword [rax + 9], edi
mov word [rax + 0xd], di
mov byte [rax + 0xf], dil
mov qword [rax], rbp
mov qword [rax + 0x10], rbx
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x18], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov byte [rsi + 8], 1
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x14001265a
cmp byte [rsp + 0x78], dil
je 0x14001266f
lea rcx, [rbp + 0xa0]
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x14001264b
mov eax, dword [rsp + 0x80]
mov dword [rdx], eax
add qword [rcx + 8], 4
jmp 0x14001266f
lea r8, [rsp + 0x80]
call fcn.140012710
jmp 0x14001266f
mov edx, 0x20
mov rcx, rsi
call fcn.14001b644
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400128a0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x460
mov rdi, rcx
test rcx, rcx
jne 0x1400128be
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140012907
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x140012949
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400128e0
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call fcn.14001d9b0
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x438
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
nop
cmp qword [rsp + 0x48], rdi
je 0x14001295c
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140012930
xor eax, eax
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
lea rcx, [rsp + 0x50]
call fcn.140003950
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret