joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003bfe0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
lea rcx, str.IMAGEHLP.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14003c005
xor eax, eax
jmp 0x14003c1fa
lea rdx, str.SymInitialize
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140079d50], rax
cmp qword [0x140079d50], 0
jne 0x14003c02f
xor eax, eax
jmp 0x14003c1fa
lea rdx, str.SymCleanup
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140079d58], rax
cmp qword [0x140079d58], 0
jne 0x14003c059
xor eax, eax
jmp 0x14003c1fa
lea rdx, str.StackWalk64
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140079d60], rax
cmp qword [0x140079d60], 0
jne 0x14003c083
xor eax, eax
jmp 0x14003c1fa
lea rdx, str.SymFunctionTableAccess64
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140079d68], rax
cmp qword [0x140079d68], 0
jne 0x14003c0ad
xor eax, eax
jmp 0x14003c1fa
lea rdx, str.SymGetModuleBase64
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140079d70], rax
cmp qword [0x140079d70], 0
jne 0x14003c0d7
xor eax, eax
jmp 0x14003c1fa
lea rdx, str.SymGetSymFromAddr
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140079d78], rax
cmp qword [0x140079d78], 0
jne 0x14003c101
xor eax, eax
jmp 0x14003c1fa
lea rdx, str.SymGetLineFromAddr
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140079d80], rax
lea rdx, str.UnDecorateSymbolName
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140079d88], rax
cmp qword [0x140079d88], 0
jne 0x14003c144
xor eax, eax
jmp 0x14003c1fa
lea rdx, str.SymGetOptions
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140079d90], rax
lea rdx, str.SymSetOptions
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140079d98], rax
mov dword [rsp + 0x20], 0
cmp qword [0x140079d90], 0
je 0x14003c19d
call qword [0x140079d90]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 0xfffffffd
mov dword [rsp + 0x20], eax
cmp qword [0x140079d98], 0
je 0x14003c1bc
mov eax, dword [rsp + 0x20]
or eax, 0x10
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
call qword [0x140079d98]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, 1
xor edx, edx
mov rcx, rax
call qword [0x140079d50]
test eax, eax
jne 0x14003c1f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
mov edx, dword [rsp + 0x24]
lea rcx, str.Failed_in_SymInitialize:_Last_Error_returned_0x_08x_r_n
call fcn.14003bf30
xor eax, eax
jmp 0x14003c1fa
mov eax, 1
add rsp, 0x38
ret
Function at 0x14003f000
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2a8
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x140079aa0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.14001fb50
nop
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20319
xor r8d, r8d
lea rdx, str.SOFTWAREATI_TechnologiesLog
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14003f0ec
mov rax, qword [rsp + 0x2b8]
mov qword [rax + 0x10], 0
mov rax, qword [rsp + 0x2b8]
mov qword [rax + 0x18], 0
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x2b8]
call fcn.14001fb50
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x2b8]
call fcn.14001c620
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.14001fb50
mov rax, qword [rsp + 0x2b8]
jmp 0x14003f212
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0x208
jae 0x14003f107
jmp 0x14003f10c
call fcn.1400409d4
xor eax, eax
mov rcx, qword [rsp + 0x48]
mov word [rsp + rcx + 0x80], ax
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x34], 0x208
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.Location
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003f1a1
movzx eax, word [rsp + 0x80]
test eax, eax
jne 0x14003f177
mov qword [rsp + 0x40], 0
jmp 0x14003f18a
lea rcx, [rsp + 0x80]
call qword [sym.imp.MSVCR110.dll_wcslen]
mov qword [rsp + 0x40], rax
mov r8, qword [rsp + 0x40]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.140020ea0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x2b8]
mov qword [rax + 0x10], 0
mov rax, qword [rsp + 0x2b8]
mov qword [rax + 0x18], 0
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x2b8]
call fcn.14001fb50
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x2b8]
call fcn.14001c620
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.14001fb50
mov rax, qword [rsp + 0x2b8]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140040570
add rsp, 0x2a8
ret
Function at 0x14003ff20
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x198]
sub rsp, 0x290
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x140079aa0]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rdi
mov word [rsp + 0x50], di
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.HTTP_shellopenddeexecApplication
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14003fff1
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
mov word [rbx], di
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jae 0x14003ffd7
mov r8, qword [rsp + 0x60]
inc r8
je 0x14003ffdf
add r8, r8
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.MSVCR110.dll_memmove]
mov rdx, qword [rsp + 0x68]
jmp 0x14003ffdf
mov rcx, qword [rsp + 0x50]
mov qword [rbx], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rdx
jmp 0x1400400c6
mov word [rsp + 0x70], di
mov dword [rsp + 0x34], edi
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, [0x140059320]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004006a
cmp word [rsp + 0x70], ax
jne 0x140040040
mov r8, rdi
jmp 0x14004005b
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140040050
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140020ea0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
mov word [rbx], di
mov rcx, qword [rsp + 0x68]
cmp rcx, 8
jae 0x1400400b1
mov r8, qword [rsp + 0x60]
inc r8
je 0x1400400b9
add r8, r8
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.MSVCR110.dll_memmove]
mov rcx, qword [rsp + 0x68]
jmp 0x1400400b9
mov rax, qword [rsp + 0x50]
mov qword [rbx], rax
mov rax, qword [rsp + 0x60]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rcx
mov rax, rbx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140040570
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x402b20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x004053b0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x402b99
mov rcx, r10
call fcn.004029f0
test eax, eax
je 0x402b99
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x402b96
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x402b8d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x402b99
add r8, 0x28
cmp r8, r9
jne 0x402b78
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x14000c760
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 0x14000c788
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 0x14000c7ae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000c7b0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000c809
test ecx, ecx
jle 0x14000c7e9
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 0x14000c809
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000c809
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 0x14000c830
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 0x14000c852
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14000c868
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 0x14000c884
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000c886
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000c8c2
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 0x14000c95e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000c8fd
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 0x14000c93e
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 0x14000c95e
cmp rbx, rax
ja 0x14000c910
test rbx, rbx
je 0x14000c95e
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 0x14000cd90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000cdbd
xor eax, eax
jmp 0x14000cf29
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000cdf7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000cdf7
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 0x14000cf29
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000cf1c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000ce3a
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 0x14000ce65
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 0x14000cf21
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 0x14000ced4
sub eax, 1
je 0x14000ced4
cmp eax, 2
jne 0x14000cf1c
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 0x14000cf21
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000cf02
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 0x14000cf1c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000cf21
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001c030
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

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

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14000d514
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14000d500
ret
Function at 0x14000dbb0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000dc83
cmp byte [rcx + 0x71], 0
je 0x14000dc83
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000dc7f
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 0x14000dc44
sub eax, 1
je 0x14000dc48
cmp eax, 2
jne 0x14000dc7f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001c030
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000dc76
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 0x14000dc7f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000dc2c
xor al, al
jmp 0x14000dc2c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001c030
add rsp, 0x60
pop rbx
ret
Function at 0x140018e20
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 0x140018eec
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140018eec
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 0x140018f05
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 0x140018edc
cmp byte [rax], 0x5c
jne 0x140018ed6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140018ed6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140018ec2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140018ed3
test r8b, 0x10
jne 0x140018ed6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140018ed6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140012690
test edi, edi
jne 0x140018e40
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.140012680
int3

Function at 0x14001b74c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14001b7d0
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14001f660]
cmp byte [rcx + rax], 0
je 0x14001b7d0
dec r8
sub rdx, 1
jne 0x14001b7b6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14001cadc
Capabilities:
Parse pe header

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

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41422b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042ff00
xorps xmm15, xmm15
mov r14, qword [0x00585588]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x414105
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x414114
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x414133
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x414143
cmp rbx, 0x1000
jae 0x41410b
jmp 0x4141ad
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x414155
xor edx, edx
jmp 0x4141a4
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042ff00
xorps xmm15, xmm15
mov r14, qword [0x00585588]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x414139
jmp 0x414128
call fcn.0045e840
xorps xmm15, xmm15
mov r14, qword [0x00585588]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00434300
lea rax, [0x004a3239]
mov ebx, 0x18
nop dword [rax]
call fcn.00434b80
mov rax, qword [rsp + 0x38]
call fcn.004348c0
lea rax, [0x004a3559]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00434b80
mov rax, qword [rsp + 0x30]
call fcn.004348c0
call fcn.00434540
call fcn.00434360
lea rax, [0x004a5117]
mov ebx, 0x21
call fcn.00432960
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045b180
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004140a0
Function at 0x414260
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x414486
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.0042ff80
xorps xmm15, xmm15
mov r14, qword [0x00585588]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x4142d3
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x4142e2
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x414305
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x414315
cmp rbx, 0x1000
jae 0x4142d9
nop
jmp 0x414398
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x41432d
xor esi, esi
jmp 0x41438a
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.0042ff80
xorps xmm15, xmm15
mov r14, qword [0x00585588]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x41430b
jmp 0x4142f6
call fcn.0045e840
xorps xmm15, xmm15
mov r14, qword [0x00585588]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x414420
nop dword [rax + rax]
call fcn.00434300
lea rax, [0x004a3572]
mov ebx, 0x19
call fcn.00434b80
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call fcn.004348c0
lea rax, [0x004a3559]
mov ebx, 0x19
call fcn.00434b80
mov eax, dword [rsp + 0x34]
call fcn.004348c0
nop
call fcn.00434540
call fcn.00434360
lea rax, [0x004a0c1d]
mov ebx, 0xd
call fcn.00432960
nop dword [rax + rax]
cmp eax, 0x5af
je 0x4143c0
call fcn.00434300
lea rax, [0x004a3572]
mov ebx, 0x19
call fcn.00434b80
mov rax, qword [rsp + 0x38]
call fcn.004348c0
lea rax, [0x004a3559]
mov ebx, 0x19
call fcn.00434b80
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.004348c0
call fcn.00434540
call fcn.00434360
lea rax, [0x004a4a37]
mov ebx, 0x1f
nop dword [rax + rax]
call fcn.00432960
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045b180
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.00414260