joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140082400
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
movsxd rax, edx
mov rdi, rcx
dec rax
mov qword [r11 + 0x20], rsi
mov rsi, r9
xor r9d, r9d
lea rax, [rcx + rax*2]
mov qword [rsp], rax
cmp rcx, rax
jae 0x140082617
mov qword [r11 + 0x18], rbp
lea rbp, [0x140000000]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
nop
test rsi, rsi
je 0x14008245e
cmp r8, rsi
jae 0x1400825f4
movzx edx, byte [r8]
test dl, dl
je 0x1400825f4
xor ebx, ebx
mov eax, edx
shr rax, 3
mov rcx, rsi
movsx r9, byte [rax + rbp + 0x238188]
test r9d, r9d
sete bl
add ebx, r9d
test rsi, rsi
jne 0x140082492
movsxd rcx, ebx
add rcx, r8
xor r14d, r14d
lea rax, [r8 + 1]
cmp r8, rcx
cmovb r14d, edx
cmp rax, rcx
jae 0x1400824ab
movzx r13d, byte [rax]
jmp 0x1400824ae
xor r13b, r13b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x1400824bd
movzx r12d, byte [rax]
jmp 0x1400824c0
xor r12b, r12b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x1400824cf
movzx r15d, byte [rax]
jmp 0x1400824d2
xor r15b, r15b
lea r10, [r9*4]
movzx eax, r14b
mov ebp, dword [r10 + rbp + 0x2381a8]
and ebp, eax
movzx r9d, r13b
shl ebp, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r12b
or ebp, eax
movzx r11d, r15b
shl ebp, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or ebp, eax
mov eax, r11d
shr r11d, 2
and eax, 0x3f
or r11d, edx
shl ebp, 6
or ebp, eax
shr r11d, 2
or r11d, r9d
lea rax, [0x140000000]
mov ecx, dword [r10 + rax + 0x2381d8]
shr r11d, 2
shr ebp, cl
mov ecx, 0x100
cmp ebp, dword [r10 + rax + 0x2381c0]
sbb eax, eax
xor r9d, r9d
and eax, 0x40
mov edx, r9d
or r11d, eax
mov eax, ebp
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
mov eax, r9d
or r11d, edx
cmp ebp, 0xffff
cmova eax, ecx
lea rcx, [0x140000000]
mov ecx, dword [r10 + rcx + 0x2381f0]
or r11d, eax
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x1400825d6
test r15b, r15b
mov eax, r9d
mov ecx, r9d
mov ebp, 0xfffd
setne cl
test r12b, r12b
setne al
add ecx, eax
mov eax, r9d
test r13b, r13b
setne al
add ecx, eax
mov eax, r9d
test r14b, r14b
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
mov ebx, ecx
mov word [rdi], bp
add rdi, 2
movsxd rax, ebx
lea rbp, [0x140000000]
add r8, rax
cmp rdi, qword [rsp]
jb 0x140082450
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov word [rdi], r9w
test rax, rax
je 0x14008262d
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x140084210
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5ca0], 0
lea rbx, [rcx + 0x5ca8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1400842b7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14008426a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.1400932b0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140092b90
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5ca0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5cb0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140618908]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1400842bf
mov rcx, rbx
call fcn.140092b90
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14008cee0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x140618900]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5bfc], ecx
test rbx, rbx
je 0x14008cf4f
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.14008cf60
lea rdx, [0x140238a54]
mov rcx, rbx
mov rdi, rax
call fcn.140081160
mov rbx, rax
test rax, rax
je 0x14008cf4a
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x140091680
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
mov rbx, qword [0x140618900]
cmp byte [rbx + 0x5bf9], 0
jne 0x1400917da
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400917d3
lea rdx, [0x140238a50]
mov qword [rsp + 0x40], rdi
call fcn.140081160
mov rdi, rax
test rax, rax
je 0x1400917ce
mov qword [rsp + 0x30], rbp
mov rcx, rax
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x1400917bb
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400917bb
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x1400917bb
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400917bb
cmp rsi, 0xffffffffffffffff
je 0x1400917bb
mov rax, qword [0x140618900]
test rax, rax
je 0x140091745
inc dword [rax + 0xec]
mov rdx, qword [0x140618910]
mov rcx, rsi
call qword [section..data]
mov rbp, rax
test rax, rax
je 0x1400917bb
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, rsi
je 0x140091781
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140091797
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x140091797
mov rdx, rsi
mov rcx, rbp
call fcn.140083d00
mov rax, qword [0x140618900]
test rax, rax
je 0x1400917a9
dec dword [rax + 0xec]
mov rdx, qword [0x140618910]
mov rcx, rbp
call qword [0x1402dd008]
jmp 0x1400917c4
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov byte [rbx + 0x5bf9], 1
movss xmm0, dword [rbx + 0x5bfc]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14009181d
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5bfc], xmm0
jb 0x14009181d
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14009180c
call fcn.14008cee0
jmp 0x140091813
mov byte [rbx + 0xd4], 1
mov dword [rbx + 0x5bfc], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400a9ad0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [0x140618900]
mov r10, rcx
mov r9, qword [rcx + 0x180]
movsxd rax, edx
imul rbx, rax, 0x70
add rbx, qword [rcx + 0x18]
mov dword [rcx + 0x74], edx
test dword [rbx], 0x10000
movss xmm1, dword [rbx + 0x34]
je 0x1400a9b13
addss xmm1, dword [rcx + 0x8c]
lea rsi, [r9 + 0x100]
movss dword [rsi], xmm1
movss xmm0, dword [rcx + 0xc0]
addss xmm0, dword [rcx + 0x7c]
movss dword [r9 + 0x118], xmm1
subss xmm1, dword [r9 + 0x20]
movss dword [r9 + 0x104], xmm0
subss xmm1, dword [r9 + 0x144]
movss dword [r9 + 0x148], xmm1
mov eax, dword [rcx + 0x88]
mov dword [r9 + 0x138], eax
movsx eax, byte [rbx + 0x6a]
mov dword [r9 + 0x158], eax
movss dword [r9 + 0x21c], xmm0
mov eax, dword [rbx + 0x34]
mov dword [r9 + 0x218], eax
mov eax, dword [rbx + 0x38]
mov dword [r9 + 0x220], eax
mov eax, dword [rbx + 0x3c]
mov dword [r9 + 0x1bc], eax
movzx eax, byte [rbx + 0x68]
mov byte [r9 + 0xbb], al
cmp byte [rbx + 0x68], 0
je 0x1400a9bb3
xor eax, eax
mov dword [rdi + 0x4778], eax
mov dword [rdi + 0x4780], eax
test dword [rcx + 4], 0x100000
je 0x1400a9bc7
mov r8d, 2
jmp 0x1400a9c47
movups xmm0, xmmword [rbx + 0x20]
mov rax, qword [r9 + 0x298]
movss xmm4, dword [rbx + 0x20]
movss xmm3, dword [rbx + 0x24]
movss xmm2, dword [rbx + 0x28]
movss xmm1, dword [rbx + 0x2c]
movups xmmword [r9 + 0x238], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x298]
movups xmm0, xmmword [rsp + 0x20]
movsxd rdx, dword [rax + 0x58]
mov rcx, qword [rax + 0x60]
add rdx, rdx
movups xmmword [rcx + rdx*8 - 0x10], xmm0
movzx r8d, word [rbx + 0x5c]
mov rdx, qword [r9 + 0x298]
mov rcx, qword [r10 + 0x198]
call fcn.14009ba50
cmp byte [rdi + 0x5c98], 0
je 0x1400a9c85
cmp byte [rbx + 0x68], 0
jne 0x1400a9c85
xor r8d, r8d
lea rdx, [0x14023cc4c]
mov rcx, rsi
call fcn.140083fb0
mov dword [rdi + 0x5cc8], 0x7f7fffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140618900]
mov r8, qword [rax + 0x4b38]
cmp ecx, 0xffffffff
jne 0x1400abd20
cmp dword [r8 + 0x74], ecx
cmovne ecx, dword [r8 + 0x74]
cmp ecx, dword [r8 + 0x6c]
mov eax, 0xffffffff
cmove ecx, eax
test byte [r8 + 4], 7
je 0x1400abd6b
movzx eax, word [r8 + 0x78]
xor edx, edx
mov word [r8 + 0x218], cx
lea rcx, str.ContextMenu
mov word [r8 + 0x7a], ax
mov byte [r8 + 0x22f], 1
mov r8d, dword [r8]
call fcn.140081e70
xor edx, edx
mov ecx, eax
add rsp, 0x28
jmp fcn.1400890a0
add rsp, 0x28
ret
Function at 0x1400abd70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140618900]
mov rcx, qword [rax + 0x4b38]
mov r10, qword [rax + 0x3ed8]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x168]
movss xmm4, dword [rcx + 0x168]
movss xmm3, dword [rcx + 0x16c]
movss xmm2, dword [rcx + 0x170]
movss xmm1, dword [rcx + 0x174]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x298]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x238], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x298]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x298]
mov rcx, qword [rcx + 0x198]
add rsp, 0x38
jmp fcn.14009ba50

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

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140618900]
mov rcx, qword [rax + 0x4b38]
mov r9, qword [rax + 0x3ed8]
movups xmm0, xmmword [r9 + 0x238]
movups xmmword [rcx + 0x168], xmm0
mov rax, qword [r9 + 0x298]
movups xmm0, xmmword [rcx + 0x148]
movss xmm4, dword [rcx + 0x148]
movss xmm3, dword [rcx + 0x14c]
movss xmm2, dword [rcx + 0x150]
movss xmm1, dword [rcx + 0x154]
movups xmmword [r9 + 0x238], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x298]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x226]
mov rcx, qword [rcx + 0x198]
mov rdx, qword [r9 + 0x298]
add rsp, 0x38
jmp fcn.14009ba50

Function at 0x1400be710
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov ecx, reloc.WS2_32.dll_recv
call fcn.14022d13c
test rax, rax
je 0x1400be73e
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x40], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400c37e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x1400be783
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x1400be7a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov ecx, 8
call fcn.14022d13c
test rax, rax
je 0x1400be7c2
mov qword [rax], rdi
mov qword [rsp + 0x40], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400c37b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x1400be802
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x1400cd620
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r15, rcx
mov r14, r9
mov rcx, r8
mov rbp, r8
mov rbx, rdx
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x1400cd864
mov eax, dword [rbp + 0x4c]
cmp eax, 0x7fffffff
je 0x1400cd854
mov rcx, rbx
call fcn.1401ed4f0
mov rcx, rbp
mov rbx, rax
call sub.MSVCP140.dll__Mtx_unlock
test rbx, rbx
je 0x1400cd84f
lea r8, [rsp + 0x80]
mov dword [rsp + 0x80], 1
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
mov ecx, r15d
call fcn.14010c2b0
xor r9d, r9d
mov rcx, rax
mov r12, rax
lea edx, [r9 + 0x66]
lea r8d, [r9 + 1]
call fcn.14010acc0
mov r8, r12
mov rdx, r12
mov rcx, rbx
call fcn.1401edce0
mov r9, qword [rsp + 0x90]
add r9, 8
cmp qword [r9 + 0x18], 0x10
jb 0x1400cd6e1
mov r9, qword [r9]
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 0x37]
call fcn.1401ec6e0
mov rsi, qword [r14]
cmp byte [rsi + 0x3c8], 0
je 0x1400cd74a
lea rax, [rsp + 0x80]
mov byte [rsp + 0x80], 1
lea rcx, [rsi + 0x468]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rsi
call fcn.1400c5de0
cmp byte [rsp + 0x80], 0
jne 0x1400cd73d
mov rax, qword [r14 + 8]
mov dword [rax], 9
jmp 0x1400cd7ac
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1401edfe0
mov rax, qword [rsi + 0x178]
lea r8, [0x1401ec690]
mov rcx, qword [r14 + 0x10]
mov rdx, rbx
mov r9, qword [rsi + 0x170]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx]
call fcn.1400cd580
test al, al
jne 0x1400cd783
mov rax, qword [r14 + 8]
mov dword [rax], 8
jmp 0x1400cd7ac
cmp byte [rsi + 0x3c8], 0
je 0x1400cd81c
mov rcx, rbx
call fcn.1401ed3f0
mov dword [rsi + 0x488], eax
test eax, eax
je 0x1400cd81c
mov rax, qword [r14 + 8]
mov dword [rax], 0xa
mov rcx, rbx
call fcn.1401ee000
mov rcx, rbp
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x1400cd864
mov eax, dword [rbp + 0x4c]
cmp eax, 0x7fffffff
je 0x1400cd854
mov rcx, rbx
call fcn.1401ecb90
mov rcx, rbp
call sub.MSVCP140.dll__Mtx_unlock
lea r8, [rsp + 0x80]
mov dword [rsp + 0x80], 0
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
lea edx, [r9 + 0x66]
call fcn.14010acc0
lea r8, [rsp + 0x80]
mov dword [rsp + 0x80], 0
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, rbx
jmp 0x1400cd805
dec eax
mov ecx, 6
mov dword [rbp + 0x4c], eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x1400d6ce0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140616bf8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
lea rcx, [0x14061ae90]
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x1400d6df1
cmp dword [0x14061aedc], 0x7fffffff
je 0x1400d6ddc
mov r10, qword [0x1402ddb88]
cmp r10, 0xffffffffffffffff
je 0x1400d6daf
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400d6d3f
mov rcx, qword [rbx]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1400d6d46
inc eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, [rsp + 0x20]
mov rcx, r10
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1400d6da4
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400d6d7c
mov rdx, qword [rbx]
xor r9d, r9d
mov r8d, dword [rsp + 0x20]
mov rcx, qword [0x1402ddb88]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1400d6da4
lea rcx, [0x14061ae90]
call sub.MSVCP140.dll__Mtx_unlock
jmp 0x1400d6dc1
mov qword [0x1402ddb88], 0xffffffffffffffff
lea rcx, [0x14061ae90]
call sub.MSVCP140.dll__Mtx_unlock
call fcn.1400e0ba0
nop
mov rcx, rbx
call fcn.1400d1a40
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14022ce50
add rsp, 0x40
pop rbx
ret
mov dword [0x14061aedc], 0x7ffffffe
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x1400ddaf0
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x140616bf8]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400ddbc7
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x170], rdi
mov rcx, rax
mov dword [rsp + 0x20], 0x130
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1400ddbba
lea rdi, str.bfv.exe
nop word [rax + rax]
xor eax, eax
lea rdx, [rsp + 0x4c]
nop word [rax + rax]
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [rdi + rax - 1]
jne 0x1400ddba9
cmp rax, 8
jne 0x1400ddb60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400ddf80
cmp rax, 0xa
setg al
mov rdi, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14022ce50
add rsp, 0x160
pop rbx
ret
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1400ddb50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1400ddb88
xor al, al
jmp 0x1400ddb90

Function at 0x1400ddf80
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x1b0
mov rax, qword [0x140616bf8]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor ebx, ebx
mov qword [rsp + 0x1c8], rdi
xor edx, edx
lea ecx, [rbx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
xor edx, edx
lea rcx, [rsp + 0x74]
mov r8d, 0x12c
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x130
mov rcx, rdi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1400de01f
mov qword [rsp + 0x1c0], rsi
lea rsi, str.bfv.exe
nop dword [rax]
mov rax, rbx
lea rdx, [rsp + 0x9c]
nop dword [rax + rax]
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [rsi + rax - 1]
jne 0x1400de066
cmp rax, 8
jne 0x1400de000
mov ebx, dword [rsp + 0x78]
mov rsi, qword [rsp + 0x1c0]
mov r8d, ebx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, qword [rsp + 0x1c8]
mov rbx, rax
test rax, rax
je 0x1400de05f
mov r8d, 0x48
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.KERNEL32.dll_K32GetProcessMemoryInfo
mov rcx, rbx
test eax, eax
jne 0x1400de07d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400de0a6
lea rdx, [rsp + 0x70]
mov rcx, rdi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1400ddff0
jmp 0x1400de017
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x30]
cqo
and edx, 0x3ff
add rax, rdx
sar rax, 0xa
cqo
and edx, 0x3ff
add rax, rdx
sar rax, 0xa
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14022ce50
add rsp, 0x1b0
pop rbx
ret
Function at 0x1400e1280
Capabilities:
Create thread

Disassembly:
sub rsp, 0x88
mov rax, qword [0x140616bf8]
xor rax, rsp
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rcx + r8], 0
jne 0x1400e12b0
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.1400c05d0
nop
mov ecx, 0x28
call fcn.14022d13c
test rax, rax
je 0x1400e1306
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rax + 0x10], xmm1
movdqa xmm0, xmmword [0x1402426c0]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
lea rcx, [fcn.1400d6ce0]
mov qword [rax + 0x20], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400c3810]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400e13c4
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x1400e137f
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e137a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400e137a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14022cd38
cmp dword [rsp + 0x38], 0
je 0x1400e13b9
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x1400e13b9
mov eax, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14022ce50
add rsp, 0x88
ret
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x1400e6b10
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 0x1400e6bdc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400e6bdc
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 0x1400e6bf5
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 0x1400e6bcc
cmp byte [rax], 0x5c
jne 0x1400e6bc6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x1400e6bc6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1400e6bb2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x1400e6bc3
test r8b, 0x10
jne 0x1400e6bc6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x1400e6bc6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400ebd20
test edi, edi
jne 0x1400e6b30
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.1400e8eb0
int3

Function at 0x1400e8c80
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140616bf8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400e8d53
cmp byte [rcx + 0x71], 0
je 0x1400e8d53
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400e8d4f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
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]
test eax, eax
je 0x1400e8d14
sub eax, 1
je 0x1400e8d18
cmp eax, 2
jne 0x1400e8d4f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14022ce50
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400e8d46
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400e8d4f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400e8cfc
xor al, al
jmp 0x1400e8cfc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14022ce50
add rsp, 0x60
pop rbx
ret