joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e518c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400e51be
call fcn.1400d96f8
mov dword [rax], 0x16
call fcn.1400da08c
jmp 0x1400e52dd
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400e52dd
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400e52dd
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400e51ed
lock or dword [rcx + 0x14], 0x10
jmp 0x1400e52dd
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400e5201
call fcn.1400e6fec
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400e0a64
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400e153c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400e52cb
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400e5296
mov rcx, rsi
call fcn.1400e0a64
cmp eax, edi
je 0x1400e5281
mov rcx, rsi
call fcn.1400e0a64
cmp eax, 0xfffffffe
je 0x1400e5281
mov rcx, rsi
call fcn.1400e0a64
movsxd rbx, eax
lea r14, [0x14013f380]
mov rcx, rsi
sar rbx, 6
call fcn.1400e0a64
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400e5288
lea rdx, [0x14013a490]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400e5296
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400e52ba
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400e52ba
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400e52ba
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400e52e0
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1400e6bc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov ebp, 0x7ff
movzx ecx, word [rcx + 6]
mov esi, edx
shr cx, 4
and cx, bp
cmp cx, bp
jne 0x1400e6c21
test byte [rbx + 6], 0xf
jne 0x1400e6c14
xor edi, edi
cmp word [rbx + 4], di
jne 0x1400e6c14
cmp word [rbx + 2], di
jne 0x1400e6c14
cmp word [rbx], di
jne 0x1400e6c14
lea esi, [rdi + 1]
jmp 0x1400e6c19
mov esi, 2
movzx eax, si
jmp 0x1400e6e1e
xor edi, edi
test cx, cx
jne 0x1400e6c3c
mov rcx, rbx
call fcn.1400f1960
movzx ecx, ax
cmp di, ax
jl 0x1400e6e1b
movsx edx, cx
test esi, esi
jle 0x1400e6c6c
sub ebp, edx
cmp ebp, esi
jg 0x1400e6c6c
movsd xmm0, qword [0x140106268]
cmp word [rbx + 6], di
jge 0x1400e6c5e
xorps xmm0, xmmword [0x14011eed0]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x1400e6e1e
movzx r11d, word [rbx + 6]
mov eax, edx
neg eax
cmp eax, esi
jge 0x1400e6c99
add si, cx
mov eax, 0x800f
shl si, 4
and r11w, ax
or si, r11w
mov word [rbx + 6], si
or eax, 0xffffffff
jmp 0x1400e6e1e
movzx r15d, r11w
lea ebp, [rsi - 1]
and r11w, 0xf
mov r13d, 0x8000
mov r12d, 0x10
and r15w, r13w
or r11w, r12w
add ebp, edx
cmp ebp, 0xffffffcb
jl 0x1400e6e10
test ebp, ebp
jns 0x1400e6e10
lea esi, [r12 - 0xf]
movzx r14d, di
cmp bp, 0xfff0
jg 0x1400e6d34
movzx ecx, word [rbx + 4]
mov eax, 0xfff0
movzx edx, word [rbx + 2]
sub ax, bp
shr ax, 4
movzx r9d, r11w
add ax, si
movzx r8d, ax
movzx eax, r8w
shl ax, 4
add bp, ax
test r14w, r14w
mov eax, edi
setne al
movzx r14d, ax
or r14w, word [rbx]
mov word [rbx], dx
movzx edx, cx
movzx ecx, r9w
mov r9d, edi
sub r8, rsi
jne 0x1400e6d05
mov word [rbx + 4], cx
movzx r11d, di
mov word [rbx + 2], dx
neg bp
je 0x1400e6db3
movzx r8d, word [rbx]
mov eax, edi
movzx r9d, word [rbx + 2]
movzx edx, r8w
movsx r10d, bp
sub r12d, r10d
mov ecx, r12d
shl dx, cl
test r14w, r14w
movzx r14d, dx
movzx edx, word [rbx + 4]
setne al
or r14w, ax
movzx eax, r9w
shl ax, cl
movzx ecx, bp
shr r8w, cl
mov ecx, r12d
or ax, r8w
mov word [rbx], ax
movzx eax, dx
shl ax, cl
movzx ecx, bp
shr r9w, cl
mov ecx, r12d
or ax, r9w
mov word [rbx + 2], ax
movzx eax, r11w
shl ax, cl
movzx ecx, bp
shr dx, cl
mov ecx, r10d
or ax, dx
mov word [rbx + 4], ax
shr r11w, cl
or r11w, r15w
mov word [rbx + 6], r11w
cmp r13w, r14w
jb 0x1400e6dc9
jne 0x1400e6de8
test byte [rbx], sil
je 0x1400e6de8
add word [rbx], si
jne 0x1400e6de8
add word [rbx + 2], si
jne 0x1400e6de8
add word [rbx + 4], si
jne 0x1400e6de8
add r11w, si
mov word [rbx + 6], r11w
jmp 0x1400e6c91
cmp r11w, r15w
jne 0x1400e6c91
cmp word [rbx + 4], di
jne 0x1400e6c91
cmp word [rbx + 2], di
jne 0x1400e6c91
cmp word [rbx], di
je 0x1400e6e1b
jmp 0x1400e6c91
mov word [rbx + 6], r15w
mov dword [rbx + 2], edi
mov word [rbx], di
movzx eax, di
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400e6fc4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400e6fe4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400d966c
or eax, 0xffffffff
jmp 0x1400e6fe6
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400ea324
Capabilities:
Query environment variable

Disassembly:
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 esi, esi
mov rbx, rax
test rax, rax
jne 0x1400ea354
xor eax, eax
jmp 0x1400ea417
mov rbp, rbx
cmp word [rax], si
je 0x1400ea379
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400ea360
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400ea35c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400ea274
movsxd r14, eax
test eax, eax
jne 0x1400ea3b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400ea34d
mov rcx, r14
call fcn.1400e0d14
mov rdi, rax
test rax, rax
jne 0x1400ea3d0
xor ecx, ecx
call fcn.1400dfcc0
jmp 0x1400ea3ac
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400ea274
test eax, eax
jne 0x1400ea401
mov rcx, rdi
call fcn.1400dfcc0
jmp 0x1400ea40b
xor ecx, ecx
call fcn.1400dfcc0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400ea434
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400ea4bb
mov rsi, rbx
cmp word [rax], bp
je 0x1400ea47a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400ea464
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400ea460
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400e0d14
mov rdi, rax
test rax, rax
je 0x1400ea4a8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400fa610
mov rbp, rdi
xor ecx, ecx
call fcn.1400dfcc0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400f3344
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400e0fec
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400e0fec
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400f3494
cmp rax, 0xffffffffffffffff
je 0x1400f3494
xor edi, edi
test rbp, rbp
jle 0x1400f343f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400dfe70
mov rbx, rax
test rax, rax
jne 0x1400f33cc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400f3435
mov edx, 0x8000
mov ecx, r14d
call fcn.1400dbd40
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400e31c4
cmp eax, 0xffffffff
je 0x1400f3415
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400f33dc
mov edx, r15d
mov ecx, r14d
call fcn.1400dbd40
jmp 0x1400f3435
cmp byte [rsi + 0x38], dil
je 0x1400f342c
cmp dword [rsi + 0x34], 5
jne 0x1400f342c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400f3435
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400dfcc0
jmp 0x1400f34a8
jns 0x1400f34a8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400e0fec
cmp rax, 0xffffffffffffffff
jne 0x1400f3460
cmp byte [rsi + 0x30], dil
je 0x1400f34a8
mov edi, dword [rsi + 0x2c]
jmp 0x1400f34a8
mov ecx, r14d
call fcn.1400e8994
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400f34a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400f34a8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400f34a1
mov eax, dword [rsi + 0x2c]
jmp 0x1400f34a6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400e0fec
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400f3c20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400f3c48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400f3c48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400012f0
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 [0x1400035e8], rbx
je 0x14000133c
cmp rax, rbx
jne 0x14000132f
mov ebx, 1
mov esi, ebx
jmp 0x140001341
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001314
mov ebx, 1
mov eax, dword [0x1400035f0]
cmp eax, ebx
jne 0x140001357
mov ecx, 0x1f
call fcn.140173000
jmp 0x1400013bc
mov eax, dword [0x1400035f0]
test eax, eax
jne 0x1400013b6
mov dword [0x1400035f0], ebx
lea r15, [0x140002298]
lea rdi, [0x140002280]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400013a8
test eax, eax
jne 0x1400013ac
cmp qword [rdi], 0
je 0x14000139d
mov rax, qword [rdi]
mov rcx, qword [0x140002260]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000137e
test eax, eax
je 0x1400013bc
mov eax, 0xff
jmp 0x140001498
mov dword [0x140003024], ebx
mov eax, dword [0x1400035f0]
cmp eax, ebx
jne 0x1400013e3
lea rdx, [0x140002278]
lea rcx, [0x140002268]
call sub.msvcrt.dll__initterm
mov dword [0x1400035f0], 2
test esi, esi
jne 0x1400013f0
xor eax, eax
xchg qword [0x1400035e8], rax
cmp qword [0x1400035f8], 0
je 0x140001424
lea rcx, [0x1400035f8]
call fcn.1400016a0
test eax, eax
je 0x140001424
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400035f8]
mov r9, qword [0x140002260]
call r9
mov r8, qword [0x140003038]
mov rdx, qword [0x140003030]
mov ecx, dword [0x140003028]
call fcn.140001138
mov dword [0x140003020], eax
cmp dword [0x140003040], 0
jne 0x140001454
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140003024], 0
jne 0x140001469
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140003020]
jmp 0x140001498
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.140001734
add rsp, 0x28
jmp 0x1400012f0

Function at 0x14000158c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400015d8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400015d0
cmp dword [rcx + 0x3c], edx
jl 0x1400015d0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400015d0
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 0x1400015d8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001000
Capabilities:
Encode data using xor

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
lea r15, [r8 + 1]
mov r14, rcx
mov rcx, r15
mov rsi, r9
mov rdi, r8
mov rbp, rdx
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__]
mov rbx, rax
test r15, r15
je 0x140001046
mov r8, r15
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
xor ecx, ecx
test rdi, rdi
je 0x140001073
nop dword [rax]
xor edx, edx
mov rax, rcx
div rsi
movzx r8d, byte [rdx + rbp]
xor r8b, byte [r14 + rcx*4]
mov byte [rbx + rcx], r8b
inc rcx
cmp rcx, rdi
jb 0x140001050
mov byte [rbx + rdi], 0
jmp 0x140001076
mov byte [rbx + rdi], cl
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140027290
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14002729d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400272ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140027295
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x1400272c5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400272b2
sub eax, 3
jb 0x1400272df
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140027316
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140027306
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140027304
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400272f3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140027252
jmp 0x14002729d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x17600
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140027362
cmp rsi, rcx
jae 0x14002736a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140027349
cmp al, 0x8f
ja 0x140027349
cmp byte [rsi - 2], 0xf
je 0x14002734f
sub al, 0xe8
cmp al, 1
ja 0x140027333
cmp rsi, rcx
jae 0x14002736a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140027339
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14002736a
lodsb al, byte [rsi]
jmp 0x140027349
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x24000]
mov eax, dword [rdi]
or eax, eax
je 0x1400273c7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x271dc]
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 0x140027377
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 0x1400273c1
mov qword [rbx], rax
add rbx, 8
jmp 0x140027397
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
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 + 0x237]
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 0x14002741f
sub rsp, 0xffffffffffffff80
jmp 0x14001777c
Function at 0x4017a5
Capabilities:
Get system information on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
call sub.kernel32.dll_GetProcessHeap
movabs rcx, 0x100
mov r8, rcx
mov ecx, 0
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_HeapAlloc
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, 0
je 0x4017f3
jmp 0x401802
movabs rax, 0
jmp 0x40194d
movabs rax, 0
mov qword [rbp - 0x40], rax
movabs rax, 0x30
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x38]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
movabs rax, 0
mov r9, rax
movabs rax, 0x38
mov r8, rax
lea rax, [rbp - 0x40]
mov r11, rax
mov eax, 0xb6
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.ntdll.dll_NtQuerySystemInformation
call fcn.00401587
call sub.kernel32.dll_GetProcessHeap
mov rcx, qword [rbp - 8]
mov r8, rcx
mov ecx, 0
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_HeapSize
mov rcx, qword [rbp - 0x38]
shr rcx, 0x14
mov rdx, qword [rbp - 0x40]
shr rdx, 0x14
mov qword [rbp - 0x48], rax
lea rax, [0x00404d68]
mov qword [rsp + 0x48], rax
mov eax, dword [rbp + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rcx
lea rax, [0x00404022]
mov qword [rsp + 0x28], rax
lea rax, str.BEEF
mov qword [rsp + 0x20], rax
lea rax, str.DEAD
mov r9, rax
lea rax, str._v5__hs__hs__hs__06llx_06llx__06x__ls.bin
mov r8, rax
mov rax, qword [rbp - 0x48]
mov r11, rax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0040136c
call sub.kernel32.dll_GetProcessHeap
mov rcx, qword [rbp - 8]
mov r10, rcx
mov qword [rbp - 0x50], rax
mov rcx, r10
call sub.msvcrt.dll_wcslen
add rax, 1
shl rax, 1
mov r9, rax
mov rax, qword [rbp - 8]
mov r8, rax
mov eax, 0
mov r11, rax
mov rax, qword [rbp - 0x50]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_HeapReAlloc
leave
ret
Function at 0x4017b0
Capabilities:
Get system information on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
call sub.kernel32.dll_GetProcessHeap
movabs rcx, 0x100
mov r8, rcx
mov ecx, 0
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_HeapAlloc
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
cmp rax, 0
je 0x4017f3
jmp 0x401802
movabs rax, 0
jmp 0x40194d
movabs rax, 0
mov qword [rbp - 0x40], rax
movabs rax, 0x30
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x38]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
movabs rax, 0
mov r9, rax
movabs rax, 0x38
mov r8, rax
lea rax, [rbp - 0x40]
mov r11, rax
mov eax, 0xb6
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.ntdll.dll_NtQuerySystemInformation
call fcn.00401587
call sub.kernel32.dll_GetProcessHeap
mov rcx, qword [rbp - 8]
mov r8, rcx
mov ecx, 0
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_HeapSize
mov rcx, qword [rbp - 0x38]
shr rcx, 0x14
mov rdx, qword [rbp - 0x40]
shr rdx, 0x14
mov qword [rbp - 0x48], rax
lea rax, [0x00404d68]
mov qword [rsp + 0x48], rax
mov eax, dword [rbp + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rcx
lea rax, [0x00404022]
mov qword [rsp + 0x28], rax
lea rax, str.BEEF
mov qword [rsp + 0x20], rax
lea rax, str.DEAD
mov r9, rax
lea rax, str._v5__hs__hs__hs__06llx_06llx__06x__ls.bin
mov r8, rax
mov rax, qword [rbp - 0x48]
mov r11, rax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0040136c
call sub.kernel32.dll_GetProcessHeap
mov rcx, qword [rbp - 8]
mov r10, rcx
mov qword [rbp - 0x50], rax
mov rcx, r10
call sub.msvcrt.dll_wcslen
add rax, 1
shl rax, 1
mov r9, rax
mov rax, qword [rbp - 8]
mov r8, rax
mov eax, 0
mov r11, rax
mov rax, qword [rbp - 0x50]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_HeapReAlloc
leave
ret
Function at 0x1400063d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140006404
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400063f0
ret
Function at 0x14000ac30
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 0x14000acfc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14000acfc
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 0x14000ad15
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 0x14000acec
cmp byte [rax], 0x5c
jne 0x14000ace6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14000ace6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14000acd2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14000ace3
test r8b, 0x10
jne 0x14000ace6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14000ace6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140007640
test edi, edi
jne 0x14000ac50
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.140007630
int3

Function at 0x14000f028
Capabilities:
Parse pe header

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

Function at 0x1400165ec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400163e8