joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006ec0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x140014040]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x140006efd
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140006f04
mov al, 1
jmp 0x14000705c
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.140007b00
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.140007b00
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x40]
call fcn.140007b60
movzx eax, al
test eax, eax
je 0x140006f59
xor al, al
jmp 0x14000705c
mov qword [rsp + 0x60], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140006fc9
cmp dword [rsp + 0x30], 1
je 0x140006fd5
cmp dword [rsp + 0x30], 3
je 0x14000704a
jmp 0x14000705a
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x140007021
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x140007021
xor al, al
jmp 0x14000705c
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000703b
mov dword [rsp + 0x34], 1
jmp 0x140007043
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x14000705c
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14000705c
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14000aba0
add rsp, 0xa8
ret

Function at 0x14000b7e4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b82e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000b82e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000b82e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000b82e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000b82e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000b830
xor al, al
add rsp, 0x28
ret
Function at 0x405fa1
Capabilities:
Access peb ldr_data

Disassembly:
sub rsp, 0x58
mov rax, qword gs:[0x60]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
add rax, 0x10
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax

Function at 0x406101
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x78
mov dword [rsp + 0x44], r9d
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x3c], edx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rcx + rdx*8 + 0x88]
add rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x20]
add rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x1c]
add rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x24]
add rax, rcx
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
cmp eax, dword [rcx + 0x18]
jae 0x406201
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rcx + rdx*4]
add rax, rcx
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x40]
call fcn.00406091
cmp eax, dword [rsp + 0x3c]
jne 0x4061f2
mov rax, qword [rsp + 0x28]
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x24]
movzx ecx, word [rdx + rcx*2]
mov ecx, dword [r8 + rcx*4]
add rax, rcx
mov qword [rsp + 0x48], rax
jmp 0x40620a
jmp 0x4061f4
mov eax, dword [rsp + 0x24]
add eax, 1
mov dword [rsp + 0x24], eax
jmp 0x406192
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x48]
add rsp, 0x78
ret
Function at 0x406110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x78
mov dword [rsp + 0x44], r9d
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x3c], edx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rcx + rdx*8 + 0x88]
add rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x20]
add rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x1c]
add rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x24]
add rax, rcx
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
cmp eax, dword [rcx + 0x18]
jae 0x406201
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rcx + rdx*4]
add rax, rcx
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x40]
call fcn.00406091
cmp eax, dword [rsp + 0x3c]
jne 0x4061f2
mov rax, qword [rsp + 0x28]
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x24]
movzx ecx, word [rdx + rcx*2]
mov ecx, dword [r8 + rcx*4]
add rax, rcx
mov qword [rsp + 0x48], rax
jmp 0x40620a
jmp 0x4061f4
mov eax, dword [rsp + 0x24]
add eax, 1
mov dword [rsp + 0x24], eax
jmp 0x406192
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x48]
add rsp, 0x78
ret
Function at 0x406120
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x78
mov dword [rsp + 0x44], r9d
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x3c], edx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rcx + rdx*8 + 0x88]
add rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x20]
add rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x1c]
add rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x24]
add rax, rcx
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
cmp eax, dword [rcx + 0x18]
jae 0x406201
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rcx + rdx*4]
add rax, rcx
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x40]
call fcn.00406091
cmp eax, dword [rsp + 0x3c]
jne 0x4061f2
mov rax, qword [rsp + 0x28]
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x24]
movzx ecx, word [rdx + rcx*2]
mov ecx, dword [r8 + rcx*4]
add rax, rcx
mov qword [rsp + 0x48], rax
jmp 0x40620a
jmp 0x4061f4
mov eax, dword [rsp + 0x24]
add eax, 1
mov dword [rsp + 0x24], eax
jmp 0x406192
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x48]
add rsp, 0x78
ret
Function at 0x406130
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x78
mov dword [rsp + 0x44], r9d
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x3c], edx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rcx + rdx*8 + 0x88]
add rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x20]
add rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x1c]
add rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x24]
add rax, rcx
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
cmp eax, dword [rcx + 0x18]
jae 0x406201
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rcx + rdx*4]
add rax, rcx
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x40]
call fcn.00406091
cmp eax, dword [rsp + 0x3c]
jne 0x4061f2
mov rax, qword [rsp + 0x28]
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x24]
movzx ecx, word [rdx + rcx*2]
mov ecx, dword [r8 + rcx*4]
add rax, rcx
mov qword [rsp + 0x48], rax
jmp 0x40620a
jmp 0x4061f4
mov eax, dword [rsp + 0x24]
add eax, 1
mov dword [rsp + 0x24], eax
jmp 0x406192
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x48]
add rsp, 0x78
ret
Function at 0x406240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
push rdi
sub rsp, 0x158
lea rax, [0x0043f595]
mov qword [rsp + 0x40], rax
call fcn.00405fa1
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x40]
mov r9d, dword [rax + 0x48]
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0x40]
mov rax, qword [rsp + 0x40]
mov edx, dword [rax + 0x20]
mov rcx, qword [rsp + 0x80]
call fcn.00406101
mov qword [rsp + 0x90], rax
mov qword [rsp + 0xc0], 0
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x18]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.kernel32.dll_LocalAlloc]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x18]
mov edx, eax
mov rcx, qword [rsp + 0x68]
call fcn.00405e51
mov rax, qword [rsp + 0x40]
mov r9d, dword [rax + 0x48]
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0x40]
mov rax, qword [rsp + 0x40]
mov edx, dword [rax + 0x44]
mov rcx, qword [rsp + 0x80]
call fcn.00406101
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
mov r8d, 0x104
call rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x5c], 0
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x5c]
movzx eax, word [rax + rcx*2]
cmp eax, 0
je 0x406343
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x5c]
mov ax, word [rax + rcx*2]
mov rcx, qword [rsp + 0x68]
mov edx, dword [rsp + 0x5c]
mov word [rcx + rdx*2], ax
mov eax, dword [rsp + 0x5c]
add eax, 1
mov dword [rsp + 0x5c], eax
jmp 0x406304
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x4c]
mov qword [rsp + 0xf8], rax
mov dword [rsp + 0x7c], 0
Function at 0x1800056c0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800056e8
xor eax, eax
lea r8, [0x180005380]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180012ab0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18003be7c]
mov ebx, edi
test ecx, ecx
je 0x180012bed
mov rax, qword [0x18003be70]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180012b08
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180012ae0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x180012bed
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.180012e30
mov r8d, dword [0x18003be7c]
cmp ebx, r8d
jae 0x180012b78
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18003be70]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180012b71
mov edx, esi
mov ecx, ebx
call fcn.180012d20
mov edi, eax
test eax, eax
jne 0x180012b78
mov r8d, dword [0x18003be7c]
inc ebx
cmp ebx, r8d
jb 0x180012b40
cmp qword [rsp + 0x20], 0
je 0x180012bed
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180012bd9
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180012bca
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180012ba0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18003b828]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180012d20
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18003be70]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180012d84
mov eax, 0xa
jmp 0x180012e17
test esi, esi
je 0x180012da6
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180012dc9
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180012dc9
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180012dc2
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180012dc9
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180012e30
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18003b240]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov qword [rcx], rsi
mov rbx, rcx
mov qword [rcx + 8], rsi
xor edx, edx
mov ecx, 4
mov ebp, r8d
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180012f5a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180012f51
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180012f34
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180012f34
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180012f34
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180012ef2
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x18003b828]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180012f51
jmp 0x180012f27
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180012f27
mov rcx, qword [0x18003b828]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180012f51
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180012ea0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180012fb5
cmp dword [rbx + 0xc], esi
jbe 0x180012fb5
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
mov ecx, 0x5a
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180012fae
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180013320
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180012f70
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180014580
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1800134d0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x180013541
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x18001352a
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov ecx, 0x5a
mov r8d, dword [r8 + rbx*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18001351e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x1800134f0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x18003b828]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180013600
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x180013640
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18003be68]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18001367e
cmp rsi, r14
jb 0x180013676
cmp rsi, r15
jae 0x180013676
cmp qword [rsi + 8], 0
jne 0x180013847
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180013661
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180013712
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180013709
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180013709
cmp dword [rsp + 0x70], 0x10000
je 0x18001378b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x180013709
sub rbx, rbp
cmp rbx, r14
jae 0x1800136d0
test rsi, rsi
jne 0x1800137f0
cmp rdi, r15
ja 0x18001382f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18001382f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18001382f
cmp dword [rsp + 0x70], 0x10000
je 0x1800137c1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180013742
jmp 0x18001382f
test rbx, rbx
je 0x180013709
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800137f0
cmp rbx, r14
jae 0x1800136b0
jmp 0x180013712
test rdi, rdi
je 0x18001382f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800137f0
cmp rdi, r15
jbe 0x180013720
jmp 0x18001382f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180013800
mov rax, qword [0x18003be68]
mov qword [rsi], rax
mov qword [0x18003be68], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x140024500
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 0x1400245cc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400245cc
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 0x1400245e5
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 0x1400245bc
cmp byte [rax], 0x5c
jne 0x1400245b6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x1400245b6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1400245a2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x1400245b3
test r8b, 0x10
jne 0x1400245b6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x1400245b6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140028180
test edi, edi
jne 0x140024520
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.140025af0
int3

Function at 0x140028bf0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140028c24
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140028c10
ret