joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400180f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140050040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001811d
xor eax, eax
jmp 0x140018289
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140018157
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140018157
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 0x140018289
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001827c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001819a
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 0x1400181c5
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 0x140018281
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 0x140018234
sub eax, 1
je 0x140018234
cmp eax, 2
jne 0x14001827c
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 0x140018281
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140018262
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 0x14001827c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140018281
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14003c5a0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

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

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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140050040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001a2f3
cmp byte [rcx + 0x71], 0
je 0x14001a2f3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001a2ef
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 0x14001a2b4
sub eax, 1
je 0x14001a2b8
cmp eax, 2
jne 0x14001a2ef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003c5a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001a2e6
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 0x14001a2ef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001a29c
xor al, al
jmp 0x14001a29c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003c5a0
add rsp, 0x60
pop rbx
ret
Function at 0x14002a9a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14002aa01
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14002a9c0
mov ecx, dword [r9]
jmp 0x14002aaeb
cmp ecx, 0x4e0
jb 0x14002aaeb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14002aa20
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14002aa70
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x14002f0c0
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 0x14002f185
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14002f185
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 0x14002f19e
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x14002f175
cmp byte [rcx], 0x5c
jne 0x14002f16e
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x14002f16e
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14002f15c
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x14002f16b
test r8b, 0x10
jne 0x14002f16e
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x14002f16e
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.1400268f0
test edi, edi
jne 0x14002f0e0
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.1400268e0
int3
Function at 0x140031c30
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rbp, rcx
mov r8d, 0x4d
lea rdx, str.Mozilla_5.0__Windows_NT_6.1__Win64__x64__rv:89.0__Gecko_20100101_Firefox_89.0
call fcn.14001b350
lea rcx, [rbp + 0x20]
xor r8d, r8d
lea rdx, [0x140042db9]
call fcn.14001b350
lea rcx, [rbp + 0x40]
xor r8d, r8d
lea rdx, [0x140042db9]
call fcn.14001b350
lea rcx, [rbp + 0x60]
xor r8d, r8d
lea rdx, [0x140042db9]
call fcn.14001b350
lea rcx, [rbp + 0x80]
mov r8d, 3
lea rdx, [0x1400453b0]
call fcn.14001b350
lea rcx, [rbp + 0xa0]
xor r8d, r8d
lea rdx, [0x140042db9]
call fcn.14001b350
lea rcx, [rbp + 0xc0]
mov r8d, 0xf
lea rdx, str.www.example.com
call fcn.14001b350
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x50], xmm1
xor r8d, r8d
lea rdx, [0x140042db9]
lea rcx, [rsp + 0x40]
call fcn.14001d0c0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x70], xmm1
xor r8d, r8d
lea rdx, [0x140042db9]
lea rcx, [rsp + 0x60]
call fcn.14001d0c0
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.140010030
lea rsi, [rbp + 0x160]
lea rax, [rsp + 0x20]
cmp rsi, rax
je 0x140031de6
mov r14, qword [rsi]
mov rbx, qword [r14 + 8]
cmp byte [rbx + 0x19], 0
jne 0x140031db1
nop word [rax + rax]
mov r8, qword [rbx + 0x10]
mov rdx, rsi
mov rcx, rsi
call fcn.14001df10
mov rdi, rbx
mov rbx, qword [rbx]
lea rcx, [rdi + 0x20]
call fcn.1400101a0
mov edx, 0x60
mov rcx, rdi
call fcn.14003c604
cmp byte [rbx + 0x19], 0
je 0x140031d80
mov qword [r14 + 8], r14
mov qword [r14], r14
mov qword [r14 + 0x10], r14
mov qword [rsi + 8], 0
mov rcx, qword [rsi]
mov rax, qword [rsp + 0x20]
mov qword [rsi], rax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsi + 8]
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.14001c430
nop
lea r9, [fcn.1400101a0]
mov edx, 0x40
mov r8d, 1
lea rcx, [rsp + 0x40]
call fcn.14003c758
mov qword [rbp + 0x170], 0
mov word [rbp + 0x151], 1
mov byte [rbp + 0x150], 1
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140031e50
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [0x1400512e0]
mov qword [rsp + 0x80], rdi
xorps xmm0, xmm0
movups xmmword [0x1400512e0], xmm0
xor ebx, ebx
mov qword [0x1400512f0], rbx
mov qword [0x1400512f8], rbx
mov r8d, 0x4d
lea rdx, str.Mozilla_5.0__Windows_NT_6.1__Win64__x64__rv:89.0__Gecko_20100101_Firefox_89.0
mov rcx, rdi
call fcn.14001d0c0
nop
xorps xmm0, xmm0
movups xmmword [0x140051300], xmm0
mov qword [0x140051310], rbx
mov qword [0x140051318], 0xf
mov byte [0x140051300], bl
movups xmmword [0x140051320], xmm0
mov qword [0x140051330], rbx
mov qword [0x140051338], 0xf
mov byte [0x140051320], bl
movups xmmword [0x140051340], xmm0
mov qword [0x140051350], rbx
mov qword [0x140051358], 0xf
mov byte [0x140051340], bl
movups xmmword [0x140051360], xmm0
mov qword [0x140051370], rbx
mov qword [0x140051378], rbx
mov r8d, 3
lea rdx, [0x1400453b0]
lea rcx, [0x140051360]
call fcn.14001d0c0
nop
xorps xmm0, xmm0
movups xmmword [0x140051380], xmm0
mov qword [0x140051390], rbx
mov qword [0x140051398], 0xf
mov byte [0x140051380], bl
movups xmmword [0x1400513a0], xmm0
mov qword [0x1400513b0], rbx
mov qword [0x1400513b8], rbx
mov r8d, 0xf
lea rdx, str.www.example.com
lea rcx, [0x1400513a0]
call fcn.14001d0c0
nop
lea rax, [0x1400513c0]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [0x1400513c0], xmm0
mov qword [0x1400513d0], rbx
mov qword [0x1400513d8], 0xf
mov byte [0x1400513c0], bl
movups xmmword [0x1400513e0], xmm0
mov qword [0x1400513f0], rbx
mov qword [0x1400513f8], rbx
xor r8d, r8d
lea rdx, [0x140042db9]
lea rcx, [0x1400513e0]
call fcn.14001d0c0
nop
xorps xmm0, xmm0
movups xmmword [0x140051400], xmm0
mov qword [0x140051410], rbx
mov qword [0x140051418], rbx
xor r8d, r8d
lea rdx, [0x140042db9]
lea rcx, [0x140051400]
call fcn.14001d0c0
nop
mov qword [0x140051420], rbx
mov qword [0x140051428], rbx
mov ecx, 0x60
call fcn.14003c5c0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [0x140051420], rax
mov word [0x140051430], 0x101
mov byte [0x140051432], 1
mov qword [0x140051438], rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x40], xmm1
xor r8d, r8d
lea rdx, [0x140042db9]
lea rcx, [rsp + 0x30]
call fcn.14001d0c0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x60], xmm1
xor r8d, r8d
lea rdx, [0x140042db9]
lea rcx, [rsp + 0x50]
call fcn.14001d0c0
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
lea rcx, [0x140051440]
call fcn.140010030
nop
lea r9, [fcn.1400101a0]
mov edx, 0x40
mov r8d, 1
lea rcx, [rsp + 0x30]
call fcn.14003c758
mov qword [0x140051450], rbx
mov dword [0x140051458], 1
mov rax, rdi
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x140036830
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x388]
sub rsp, 0x488
mov rax, qword [0x140050040]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov r15, r8
mov r12, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rcx
xor r13d, r13d
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r13
mov ebx, 0xf
mov qword [rsp + 0x60], rbx
mov byte [rsp + 0x48], r13b
mov qword [rsp + 0x38], r13
lea rdi, [r9 + 0x60]
mov r8, qword [rdi + 0x10]
mov rcx, rdi
mov r14, qword [rdi + 0x18]
cmp r14, rbx
jbe 0x1400368a6
mov rcx, qword [rdi]
test r8, r8
jne 0x1400368bb
lea rdx, [0x140042db9]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140036902
cmp r14, 0xf
jbe 0x1400368c4
mov rdi, qword [rdi]
lea r8, [0x140040a04]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
je 0x140036902
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], r13
xor r8d, r8d
lea rdx, [0x140042db9]
mov rcx, rsi
call fcn.14001d0c0
jmp 0x1400369fe
mov eax, 0xffffffff
mov dword [rsp + 0x40], eax
nop dword [rax + rax]
test eax, eax
je 0x1400369d2
lea r9, [rsp + 0x40]
mov r8d, 0x400
lea rdx, [rsp + 0x70]
mov rcx, qword [r12]
call qword [sym.imp.WININET.dll_InternetReadFile]
mov r14d, eax
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x140036944
add dword [r15 + 0xe4], ecx
mov r9, qword [rsp + 0x38]
test r9, r9
je 0x140036963
mov r8, rcx
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x1400369c4
mov rdi, rcx
mov rcx, qword [rsp + 0x58]
mov rax, rbx
sub rax, rcx
cmp rdi, rax
ja 0x1400369a8
lea rax, [rdi + rcx]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
cmp rbx, 0xf
cmova rax, qword [rsp + 0x48]
lea rbx, [rax + rcx]
mov r8, rdi
lea rdx, [rsp + 0x70]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x1400369bf
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x70]
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.14001d9d0
mov rbx, qword [rsp + 0x60]
test r14d, r14d
je 0x1400369d2
mov eax, dword [rsp + 0x40]
jmp 0x140036910
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400369ed
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rsi + 0x10], xmm1
mov rax, rsi
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.14003c5a0
add rsp, 0x488
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14003bcb4
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 0x14003bcee
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14003bcf3
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 0x14003bd3c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400407e0]
cmp byte [rcx + rax], 0
je 0x14003bd3c
dec r8
sub rdx, 1
jne 0x14003bd22
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14003d350
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140017d30
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400340f7]
call fcn.140001861
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140017d88
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140017e9a
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x140017e33
cmp qword [rbp + 0x28], 0
jle 0x140017e33
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x140017dd1
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.1400017f3
nop
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rbp + 0x130], 0
jle 0x140017e89
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140017e89
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x14000146f
Capabilities:
Terminate process

Disassembly:
jmp 0x14000a510
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x808
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x15e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x828]
mov rax, qword [0x14002c040]
xor rax, rbp
mov qword [rbp + 0x7a0], rax
lea rcx, [0x140034108]
call fcn.140001861
nop
mov edx, 0x68
lea rcx, [rbp + 0x10]
call fcn.1400015dc
nop
mov dword [rbp + 0x10], 0x68
mov edx, 0x18
lea rcx, [rbp + 0x98]
call fcn.1400015dc
nop
mov r8d, 0x200
lea rdx, [rbp + 0xd0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop
lea rax, [rbp + 0x98]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rbp + 0x4e4], eax
lea rax, [rbp + 0x748]
mov qword [rbp + 0x788], rax
mov rdx, qword [rbp + 0x788]
lea rcx, [0x14002cd20]
call fcn.1400017e9
mov qword [rbp + 0x798], rax
mov rcx, qword [rbp + 0x798]
call fcn.140001627
nop
mov rcx, qword [0x14002c8e0]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
nop
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
nop
lea rcx, [rbp - 0x50]
lea rdx, [0x140024870]
call fcn.1400016e5
mov rcx, qword [rbp + 0x7a0]
xor rcx, rbp
call fcn.1400013e8
lea rsp, [rbp + 0x7b8]
pop rdi
pop rbp
ret

Function at 0x1400014a6
Capabilities:
Terminate process

Disassembly:
jmp 0x14001b840
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x1400015c3
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001abd0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001abf0
xor al, al
jmp 0x14001ac71
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001ac03
xor al, al
jmp 0x14001ac71
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001ac2d
xor al, al
jmp 0x14001ac71
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001ac41
xor al, al
jmp 0x14001ac71
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001ac53
xor al, al
jmp 0x14001ac71
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001ac6f
xor al, al
jmp 0x14001ac71
mov al, 1
add rsp, 0x38
ret