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

Disassembly:
call fcn.140f3e3ef
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140f3e299
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f3e27f
add dl, dl
jne 0x140f3e2a6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f3e306
xor eax, eax
add dl, dl
jne 0x140f3e2b5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f3e3bd
add dl, dl
jne 0x140f3e2c6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f3e2d3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f3e2e0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f3e2ed
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140f3e2fa
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140f3e28e
mov eax, 1
add dl, dl
jne 0x140f3e316
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f3e323
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f3e30b
sub eax, ebx
mov ebx, 1
jne 0x140f3e35c
mov ecx, 1
add dl, dl
jne 0x140f3e33e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f3e34b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f3e333
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f3e28e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140f3e378
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f3e385
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f3e36d
cmp eax, 0x7d00
jae 0x140f3e3ab
cmp eax, 0x500
jb 0x140f3e3a6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f3e28e
cmp eax, 0x7f
ja 0x140f3e3ae
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f3e28e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140f3e3e2
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 0x140f3e28e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140008b80
Capabilities:
Manipulate console buffer

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
movzx r15d, dl
mov rdi, rcx
lea rsi, [rcx + 0x28]
mov r14, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140008bb8
mov r14, qword [rsi]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
xor ebp, ebp
mov qword [rsp + 0x48], rbp
xor ebx, ebx
mov rax, qword [rcx + 0x38]
test rax, rax
je 0x140008c13
nop dword [rax]
nop word [rax + rax]
sub eax, ebx
lea r8, [r14 + rbx]
mov byte [rsp + 0x20], r15b
mov r9d, eax
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140008d10
cmp eax, 0xffffffff
je 0x140008c0e
cdqe
add rbx, rax
mov rax, qword [rdi + 0x38]
cmp rbx, rax
jb 0x140008be0
mov rbp, qword [rsp + 0x48]
lea rax, [rsi + 0x10]
mov r8, qword [rax]
cmp r8, rbx
cmovb rbx, r8
cmp qword [rsi + 0x18], 0x10
jb 0x140008c2b
mov rsi, qword [rsi]
sub r8, rbx
mov qword [rax], r8
inc r8
lea rdx, [rsi + rbx]
mov rcx, rsi
call fcn.14001b450
mov rcx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
sub rcx, rbx
movabs rsi, 0x6666666666666667
mov rax, rsi
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x140008c9b
mov dword [rsp + 0x70], 0
lea r9, [rsp + 0x70]
mov r8d, edx
mov rdx, rbx
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x140008c9b
lea rcx, str.WriteConsoleInputW_failed
call fcn.1400146a0
nop
test rbx, rbx
je 0x140008ce8
sub rbp, rbx
mov rax, rsi
imul rbp
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*4]
shl rdx, 2
mov rax, rbx
cmp rdx, 0x1000
jb 0x140008ce0
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008d02
mov rcx, rbx
call fcn.140017530
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.14001bb5c
int3
Function at 0x14000a100
Capabilities:
Log keystrokes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x140042010]
xor rax, rsp
mov qword [rbp - 8], rax
mov ebx, r9d
movzx r14d, r8w
mov r15d, edx
mov rdi, rcx
cmp r9d, 0x10000
jae 0x14000a19d
lea eax, [r9 - 0xd800]
cmp eax, 0x7ff
jbe 0x14000a28c
mov dword [rbp - 0x1c], edx
mov esi, 1
xor edx, edx
movzx ecx, r8w
mov word [rbp - 0x18], si
mov dword [rbp - 0x20], 1
mov word [rbp - 0x16], r8w
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rdx, qword [rdi + 8]
mov word [rbp - 0x14], ax
movzx eax, word [rbp + 0x60]
mov dword [rbp - 0x10], eax
mov word [rbp - 0x12], bx
cmp qword [rdi + 0x10], rdx
je 0x14000a27e
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rdx], xmm0
mov dword [rdx + 0x10], eax
add qword [rdi + 8], 0x14
jmp 0x14000a29a
cmp ebx, 0x110000
jae 0x14000a28c
mov qword [rsp + 0x88], r13
mov eax, 0xd800
lea r13d, [r9 - 0x10000]
movzx ecx, r14w
mov ebx, r13d
mov dword [rbp - 0x20], 1
shr ebx, 0xa
mov esi, 1
or bx, ax
mov dword [rbp - 0x1c], r15d
mov eax, 0x3ff
mov word [rbp - 0x18], si
and r13w, ax
mov word [rbp - 0x16], r14w
mov eax, 0xdc00
xor edx, edx
or r13w, ax
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rdx, qword [rdi + 8]
mov word [rbp - 0x12], bx
movzx ebx, word [rbp + 0x60]
mov word [rbp - 0x14], ax
mov dword [rbp - 0x10], ebx
cmp qword [rdi + 0x10], rdx
je 0x14000a227
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rdx], xmm0
mov dword [rdx + 0x10], ebx
add qword [rdi + 8], 0x14
jmp 0x14000a233
lea r8, [rbp - 0x20]
mov rcx, rdi
call fcn.14000a630
xor edx, edx
movzx ecx, r14w
mov dword [rbp - 0x20], esi
mov dword [rbp - 0x1c], r15d
mov word [rbp - 0x18], si
mov word [rbp - 0x16], r14w
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rdx, qword [rdi + 8]
mov word [rbp - 0x12], r13w
mov r13, qword [rsp + 0x88]
mov word [rbp - 0x14], ax
mov dword [rbp - 0x10], ebx
cmp qword [rdi + 0x10], rdx
je 0x14000a27e
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rdx], xmm0
mov dword [rdx + 0x10], ebx
add qword [rdi + 8], 0x14
jmp 0x14000a29a
lea r8, [rbp - 0x20]
mov rcx, rdi
call fcn.14000a630
jmp 0x14000a29a
mov edx, ebx
lea rcx, str.INTERNAL_ERROR:_appendInputRecordCP:_invalid_codePoint:_U_04X
call fcn.1400146a0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400174d0
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000a860
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140042010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov eax, 1
mov dword [rsp + 0x20], 1
movzx ebx, dx
mov dword [rsp + 0x24], eax
mov rdi, rcx
mov dword [rsp + 0x28], eax
xor edx, edx
xor ecx, ecx
xor esi, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rdx, qword [rdi + 8]
mov word [rsp + 0x2c], ax
mov word [rsp + 0x2e], bx
mov dword [rsp + 0x30], esi
cmp qword [rdi + 0x10], rdx
je 0x14000a8cf
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdx], xmm0
mov dword [rdx + 0x10], esi
add qword [rdi + 8], 0x14
jmp 0x14000a8dc
lea r8, [rsp + 0x20]
mov rcx, rdi
call fcn.14000a630
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400174d0
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14000cad0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rbx, rcx
xorps xmm0, xmm0
movdqu xmmword [rax - 0x30], xmm0
xor r15d, r15d
mov qword [rax - 0x20], r15
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r12d, eax
mov rbp, qword [rsp + 0x28]
cmp byte [rbx + 8], r15b
jne 0x14000cc27
nop
xor r14b, r14b
mov rsi, rbp
mov qword [rsp + 0x30], rbp
mov rdi, r15
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
sub rax, rcx
sar rax, 3
test rax, rax
je 0x14000cb8d
lea rdx, [rsp + 0x28]
mov rcx, qword [rcx + rdi*8]
call fcn.14000e720
test al, al
je 0x14000cb6c
mov rax, qword [rbx]
mov r8, qword [rax + 0x10]
mov rax, qword [rbx + 0x10]
mov rdx, qword [rax + rdi*8]
mov rcx, rbx
call r8
mov r14b, 1
inc rdi
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
sub rax, rcx
sar rax, 3
cmp rdi, rax
jb 0x14000cb42
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x28]
mov ecx, dword [rbx + 0x28]
test ecx, ecx
jle 0x14000cbb8
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r12d
mov ecx, dword [rbx + 0x28]
cmp eax, ecx
jl 0x14000cbb8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r12d, eax
jmp 0x14000cc18
test r14b, r14b
jne 0x14000cc18
mov r9d, 0xffffffff
test ecx, ecx
jle 0x14000cbde
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [rbx + 0x28]
add ecx, r12d
sub ecx, eax
mov r9d, r15d
test ecx, ecx
cmovg r9d, ecx
sub rsi, rbp
cmp rsi, 8
jae 0x14000cc01
cmp r9d, 0xffffffff
je 0x14000cc9d
test r9d, r9d
je 0x14000cc18
mov ecx, r9d
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000cc18
sar rsi, 3
xor r8d, r8d
mov rdx, rbp
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
je 0x14000cc7e
cmp byte [rbx + 8], 0
je 0x14000cb20
mov r15, qword [rsp + 0x38]
test rbp, rbp
je 0x14000cc5f
sub r15, rbp
and r15, 0xfffffffffffffff8
mov rax, rbp
cmp r15, 0x1000
jb 0x14000cc54
add r15, 0x27
mov rbp, qword [rbp - 8]
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000cc97
mov rdx, r15
mov rcx, rbp
call fcn.140017530
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
lea r8, str.result___WAIT_FAILED
mov edx, 0x4f
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agenteventloop.cc
call fcn.140017100
nop
call fcn.14001bb5c
nop
lea r8, str.timeout___INFINITE
mov edx, 0x47
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agenteventloop.cc
call fcn.140017100
int3
Function at 0x14000ea50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor r14d, r14d
lea rdi, [rcx + 0x20]
mov esi, r14d
mov rbx, rcx
cmp byte [rcx + 0x10], sil
je 0x14000ead5
mov rcx, qword [rcx + 8]
lea r8, [rsp + 0x68]
mov dword [rsp + 0x68], r14d
xor r9d, r9d
mov rdx, rdi
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x14000eab1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jne 0x14000ebbf
xor eax, eax
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rsp + 0x68]
mov byte [rbx + 0x10], sil
call qword [rax + 8]
mov dword [rbx + 0x14], r14d
mov esi, 2
mov rax, qword [rbx]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], r14d
mov rcx, rbx
mov byte [rsp + 0x60], r14b
call qword [rax + 0x10]
test al, al
je 0x14000eb94
nop word [rax + rax]
mov r8d, dword [rsp + 0x70]
lea r9, [rsp + 0x68]
xor eax, eax
mov dword [rbx + 0x14], r8d
lea rdx, [rbx + 0x40]
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov rcx, qword [rbx + 8]
mov rax, qword [rbx + 0x18]
mov dword [rsp + 0x68], r14d
mov qword [rbx + 0x38], rax
mov rcx, qword [rcx + 0x98]
mov qword [rsp + 0x20], rdi
cmp byte [rsp + 0x60], r14b
je 0x14000eb4f
call qword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x14000eb55
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000eba1
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rsp + 0x68]
call qword [rax + 8]
mov dword [rbx + 0x14], r14d
lea r8, [rsp + 0x60]
mov rax, qword [rbx]
lea rdx, [rsp + 0x70]
mov rcx, rbx
mov esi, 2
call qword [rax + 0x10]
test al, al
jne 0x14000eb00
mov eax, esi
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14000ebbf
mov byte [rbx + 0x10], 1
mov eax, esi
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, 1
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140011190
Capabilities:
Manipulate console buffer

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x140042010]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov ebx, edx
mov rdi, rcx
cmp edx, 1
jl 0x1400112af
xor eax, eax
mov qword [r11 + 0x18], rsi
mov rsi, qword [rcx + 8]
lea rdx, [r11 - 0x70]
mov qword [r11 - 0x70], rax
mov qword [r11 - 0x68], rax
mov dword [rsp + 0x58], eax
mov word [rsp + 0x5c], ax
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x1400111f7
lea rcx, str.GetConsoleScreenBufferInfo_failed
call fcn.1400146a0
lea edx, [rbx - 1]
mov r8d, 0x11
lea r9, [rsp + 0x48]
mov rcx, rsi
call fcn.140012710
inc dword [rdi + 0x1c]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140010f10
xor ecx, ecx
mov dword [rdi + 0x18], ebx
mov word [rsp + 0x30], cx
lea rdx, [rsp + 0x60]
mov word [rsp + 0x34], cx
mov dword [rsp + 0x38], ecx
lea rcx, [rsp + 0x40]
mov r9d, dword [rsp + 0x38]
mov word [rsp + 0x32], bx
add bx, 0xf
mov qword [rsp + 0x20], rcx
mov word [rsp + 0x36], bx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rax, qword [rdi + 8]
mov dword [rsp + 0x30], 0x100001
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteConsoleOutputW]
mov rsi, qword [rsp + 0xd0]
test eax, eax
jne 0x14001128e
lea rcx, str.WriteConsoleOutput_failed
call fcn.1400146a0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400174d0
mov rbx, qword [rsp + 0xd8]
add rsp, 0xb0
pop rdi
ret
lea r8, str.row___1
mov edx, 0x2ad
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agent_scraper.cc
call fcn.140017100
int3
Function at 0x140016550
Capabilities:
Check os version

Disassembly:
sub rsp, 0x148
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call fcn.140019600
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1400165ab
mov rax, qword [rsp + 0x20]
shr rax, 0x20
cmp eax, 6
jb 0x1400165a1
ja 0x140016597
cmp dword [rsp + 0x28], 2
jb 0x1400165a1
mov al, 1
add rsp, 0x148
ret
xor al, al
add rsp, 0x148
ret
lea r8, str.success___GetVersionEx_failed_
mov edx, 0x3a
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_sharedwindowsversion.cc
call fcn.140017100
int3

Function at 0x140017090
Capabilities:
Read pipe
Write pipe

Disassembly:
mov rax, r8
mov r9d, edx
mov r8, rcx
mov rdx, rax
lea rcx, str.Assertion_failed:__s__file__s__line__d
jmp fcn.1400146a0

Function at 0x14001e018
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14001deab
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001deab
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001deab
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001deab
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001deab
cmp dword [rcx + 0x84], 0xe
jbe 0x14001deab
cmp dword [rcx + 0xf8], 0
je 0x14001deab
mov ecx, ebx
call fcn.14001df4c
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14001dd3c
cmp dword [rbp + 0x20], 0
je 0x14001def8
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001df00
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001de44
Function at 0x140007080
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400070b4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400070a0
ret
Function at 0x14000e5a0
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 0x14000e66c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14000e66c
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 0x14000e685
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 0x14000e65c
cmp byte [rax], 0x5c
jne 0x14000e656
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14000e656
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14000e642
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14000e653
test r8b, 0x10
jne 0x14000e656
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14000e656
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14000a430
test edi, edi
jne 0x14000e5c0
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.14000a420
int3

Function at 0x1400108bc
Capabilities:
Get geographical location

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

Function at 0x140011a7c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140011ac6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140011ac6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140011ac6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140011ac6
cmp dword [rcx + 0x84], 0xe
jbe 0x140011ac6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140011ac8
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4c7080
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4c7a82
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ec108]
test eax, eax
je 0x2fc4c7b1a
lea rax, [0x2fc4ec0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ec110]
mov qword [rbp - 8], rax
jmp 0x2fc4c7afe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c7af2
cmp qword [rbp - 0x10], 0
je 0x2fc4c7af2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c7ab8
lea rax, [0x2fc4ec0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c7b1b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c7c20
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c7c48
mov eax, 0
jmp 0x2fc4c7c96
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c7c71
mov eax, 0
jmp 0x2fc4c7c96
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c7c91
mov eax, 0
jmp 0x2fc4c7c96
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c7c9c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4c7d1a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c7d11
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4c7d11
mov rax, qword [rbp - 8]
jmp 0x2fc4c7d2f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4c7ce4
mov eax, 0
add rsp, 0x20
pop rbp
ret