joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6c2e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.06c2e1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x6c2e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x6c2e06f
add dl, dl
jne 0x6c2e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x6c2e0f6
xor eax, eax
add dl, dl
jne 0x6c2e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x6c2e1ad
add dl, dl
jne 0x6c2e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6c2e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6c2e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6c2e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x6c2e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x6c2e07e
mov eax, 1
add dl, dl
jne 0x6c2e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6c2e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x6c2e0fb
sub eax, ebx
mov ebx, 1
jne 0x6c2e14c
mov ecx, 1
add dl, dl
jne 0x6c2e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x6c2e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x6c2e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x6c2e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x6c2e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x6c2e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x6c2e15d
cmp eax, 0x7d00
jae 0x6c2e19b
cmp eax, 0x500
jb 0x6c2e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x6c2e07e
cmp eax, 0x7f
ja 0x6c2e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x6c2e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x6c2e1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x6c2e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x1800019a0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
cmp edx, 1
jne 0x180001a43
call fcn.180001890
test al, al
jne 0x180001a4e
xor ecx, ecx
mov eax, 0x40000000
cpuid
mov r10d, ecx
mov r8d, eax
xor ecx, ecx
mov r9d, edx
mov r11d, ebx
mov eax, 1
cpuid
xor ecx, ecx
cpuid
cmp eax, r8d
jne 0x180001a4e
cmp ebx, r11d
jne 0x180001a4e
cmp ecx, r10d
jne 0x180001a4e
cmp edx, r9d
jne 0x180001a4e
xor ecx, ecx
mov eax, 0x4201337
cpuid
mov r8d, eax
mov r10d, ecx
xor ecx, ecx
mov eax, 0x40000000
mov r9d, edx
mov r11d, ebx
cpuid
cmp r8d, eax
jne 0x180001a4e
cmp r11d, ebx
jne 0x180001a4e
cmp r10d, ecx
jne 0x180001a4e
cmp r9d, edx
jne 0x180001a4e
xor eax, eax
lea r8, [0x180001220]
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, 0x40
pop rbx
ret
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x1400013c0
Capabilities:
Connect to http server
Create http request
Send data
Send http request

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, 0x50
xor ebx, ebx
mov r15, r9
mov r12, r8
mov dword [rsp + 0x20], ebx
mov rbp, rdx
mov r13, rcx
xor r9d, r9d
lea rcx, str.VMRay_QA_Test_Agent
lea edx, [rbx + 1]
xor r8d, r8d
mov esi, ebx
mov edi, ebx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r14, rax
test rax, rax
jne 0x140001422
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.InternetOpen_failed:__d_n
jmp 0x140001534
mov qword [rsp + 0x38], rbx
mov r8d, 0x50
mov dword [rsp + 0x30], ebx
xor r9d, r9d
mov dword [rsp + 0x28], 3
mov rdx, rbp
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rsi, rax
test rax, rax
jne 0x140001472
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbp
lea rcx, str.InternetConnect_to__s_failed:__d_n
mov r8d, eax
call fcn.140001870
jmp 0x14000153b
mov qword [rsp + 0x38], rbx
lea rax, str.text_
mov qword [rsp + 0x40], rax
lea r9, str.HTTP_1.1
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0x84000000
mov qword [rsp + 0x28], rax
mov r8, r12
mov rdx, r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov qword [rsp + 0x48], rbx
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rdi, rax
test rax, rax
jne 0x1400014cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.HttpOpenRequest_failed:__d_n
jmp 0x140001534
mov rax, qword [rsp + 0xa0]
mov rdx, qword [rax]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rdx + rax], bl
jne 0x1400014e0
mov r9d, 0xa0000000
mov r8d, eax
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov ebx, eax
test eax, eax
je 0x140001527
mov eax, dword [rsp + 0xb0]
xor r8d, r8d
mov r9, qword [rsp + 0xa8]
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov ebx, eax
test eax, eax
jne 0x14000153b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.HttpSendRequest_failed:__d_n
mov edx, eax
call fcn.140001870
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400017d0
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor ebx, ebx
mov ecx, 0x800000
mov dword [rsp + 0x60], ebx
mov rsi, rdx
call fcn.140003bb8
mov qword [rsp + 0x68], rax
mov rdi, rax
test rax, rax
je 0x140001852
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.140001580
mov rdi, qword [rsp + 0x68]
mov ebx, eax
test eax, eax
je 0x140001852
mov edx, dword [rsp + 0x60]
xor r9d, r9d
mov r8d, 0x40000001
mov qword [rsp + 0x20], rsi
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov r9, qword [r14]
mov r8d, 0x40000001
mov edx, dword [rsp + 0x60]
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov ebx, eax
mov rcx, rdi
call fcn.140003ba4
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x140001870
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x860
mov rax, qword [0x14003e278]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rbx, rcx
xor esi, esi
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x40], esi
xor edx, edx
mov r8d, 0x800
call fcn.140002be0
lea rdi, [rsp + 0x888]
call fcn.140001200
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x28], rsi
mov r8d, 0x800
mov qword [rsp + 0x20], rbx
mov rbx, 0xffffffffffffffff
mov rcx, qword [rax]
mov r9, rbx
call fcn.140005c48
lea rdx, [rsp + 0x50]
lea rcx, [0x1400149bc]
call fcn.140001330
mov qword [rsp + 0x30], rsi
lea edx, [rsi + 4]
mov dword [rsp + 0x28], 0x80
lea r8d, [rsi + 1]
xor r9d, r9d
mov dword [rsp + 0x20], 4
lea rcx, str.bin_tests.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, rbx
jne 0x14000194f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.error:_could_not_create_log_file:_GetLastError:__d_n
call fcn.140001330
jmp 0x1400019a7
lea rax, [rsp + 0x50]
inc rbx
cmp byte [rax + rbx], sil
jne 0x140001954
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
mov r8d, ebx
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140001982
cmp ebx, dword [rsp + 0x40]
je 0x14000199e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, dword [rsp + 0x40]
lea rcx, str.error:_could_not_write_log_file:_num_bytes_to_write:__u_num_bytes_written:__u_GetLastError:__d_n
mov r9d, eax
mov edx, ebx
call fcn.140001330
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140001a50
add rsp, 0x860
pop rdi
pop rsi
pop rbx
ret

Function at 0x140007080
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140006eac
Function at 0x180008340
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x180008368
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x18000838e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180008390
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1800083e9
test ecx, ecx
jle 0x1800083c9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1800083e9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1800083e9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x180008410
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x180008432
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x180008448
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180008464
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180008466
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800084a2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x18000853e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1800084dd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x18000851e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x18000853e
cmp rbx, rax
ja 0x1800084f0
test rbx, rbx
je 0x18000853e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x1800089a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1800e3040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1800089cd
xor eax, eax
jmp 0x180008b39
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180008a07
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180008a07
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x180008b39
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x180008b2c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180008a4a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x180008a75
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180008b31
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180008ae4
sub eax, 1
je 0x180008ae4
cmp eax, 2
jne 0x180008b2c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180008b31
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180008b12
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x180008b2c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180008b31
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800903f0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180009150
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1800e3040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180009223
cmp byte [rcx + 0x71], 0
je 0x180009223
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18000921f
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 0x1800091e4
sub eax, 1
je 0x1800091e8
cmp eax, 2
jne 0x18000921f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800903f0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180009216
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 0x18000921f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1800091cc
xor al, al
jmp 0x1800091cc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800903f0
add rsp, 0x60
pop rbx
ret
Function at 0x18001c8d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x18001c904
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x18001c8f0
ret
Function at 0x180027e10
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 0x180027edc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x180027edc
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 0x180027ef5
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 0x180027ecc
cmp byte [rax], 0x5c
jne 0x180027ec6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x180027ec6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x180027eb2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x180027ec3
test r8b, 0x10
jne 0x180027ec6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x180027ec6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.180025680
test edi, edi
jne 0x180027e30
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.180025670
int3

Function at 0x18002aee0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x18], 0
je 0x18002aef1
xor al, al
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov rbx, qword [rcx]
mov qword [rsp + 0x40], rsi
mov rsi, qword [rcx + 8]
mov qword [rsp + 0x20], rdi
xor dil, dil
cmp rbx, rsi
je 0x18002af4f
mov qword [rsp + 0x38], rbp
mov ebp, 1
nop dword [rax]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x1800f3490]
jne 0x18002af41
mov ecx, dword [rbx]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bpl, al
movzx edi, dil
cmovne edi, ebp
add rbx, 4
cmp rbx, rsi
jne 0x18002af20
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
movzx eax, dil
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x180030230
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1800e3040]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov edi, r9d
mov esi, r8d
mov rbx, rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x1800f3490]
jne 0x1800303bd
mov ecx, edi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x1800303ba
xor eax, eax
lea rcx, [rsp + 0x3c]
xor edx, edx
mov dword [rsp + 0x2c], eax
mov r8d, 0x114
call sub.VCRUNTIME140.dll_memset
xor eax, eax
lea rcx, [rbp + 0x5c]
xor edx, edx
mov dword [rbp + 0x54], eax
mov r8d, 0x134
call sub.VCRUNTIME140.dll_memset
cmp byte [0x1800e6530], 0
lea rax, [rbp]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0
mov dword [rbp + 0x50], 2
mov dword [rbp + 0x58], esi
mov dword [rsp + 0x28], 2
jne 0x1800302ec
call fcn.18002bb70
lea rcx, [rsp + 0x20]
call qword [0x1800eda48]
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0
je 0x180030376
xor eax, eax
lea rcx, [rsp + 0x3c]
xor edx, edx
mov dword [rsp + 0x2c], eax
mov r8d, 0x114
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x54]
mov r8d, 0x13c
call sub.VCRUNTIME140.dll_memset
cmp byte [0x1800e6530], 0
lea rax, [rbp]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0
mov dword [rbp + 0x50], 2
mov dword [rsp + 0x28], 1
jne 0x180030361
call fcn.18002bb70
lea rcx, [rsp + 0x20]
call qword [0x1800eda70]
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0
je 0x1800303ba
mov ecx, edi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1800303df
cmp byte [0x1800f34f0], 0
je 0x1800303ab
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
imul rcx, qword [rbp + 0x1e0], 0x64
mov byte [0x1800f34f0], 0
add rax, rcx
mov qword [0x1800f34e8], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
cmp rax, qword [0x1800f34e8]
jbe 0x1800303bd
mov byte [rbx], 1
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1800903f0
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret
mov byte [0x1800f34f0], 1
jmp 0x1800303bd
Function at 0x180035900
Capabilities:
Query environment variable
Set console window title

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x60
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x50], rcx
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rsi, rax
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x180035930
call fcn.18008fa14
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rbx
lea r8, [rsp + 0x20]
mov edx, eax
mov rcx, rdi
call fcn.180017640
nop
lea rcx, [rdi + 0x20]
call fcn.18001c740
nop
lea rcx, [rdi + 0x128]
call fcn.18001c740
nop
mov rcx, rdi
call fcn.18001d310
mov rcx, rdi
call fcn.180035770
test al, al
jne 0x1800359a4
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x180035990
mov rcx, qword [rdi]
call fcn.18008fc74
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x180035b30
call fcn.18008fa14
lea rcx, str.Log.txt
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 7
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.180017640
nop
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.180017890
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x180035a23
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180035a1e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180035a1e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180090970
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.180034d00
nop
cmp qword [rax + 0x18], 0xf
jbe 0x180035a3b
mov rax, qword [rax]
mov r8d, 0x12
mov rdx, rax
lea rcx, [rdi + 0x128]
call fcn.180036c40
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x180035a91
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180035a8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180035a8c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180090970
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
jne 0x180035aa9
call qword [sym.imp.KERNEL32.dll_AllocConsole]
cmp qword [r14 + 0x18], 0xf
jbe 0x180035ab3
mov r14, qword [r14]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov r8d, 2
lea rdx, str.CONOUT_
lea rcx, [rdi + 0x20]
call fcn.180036c40
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rbx, rax
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea r8, [0x1800cb448]
lea rdx, str.CONOUT_
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
nop
mov rax, rdi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
shr rdx, 0x20
mov r8, rdi
lea rcx, str.create_directory
call fcn.1800356a0
int3