joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140032cd0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x140032db3
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140032db3
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 0x140032dd1
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 0x140032da3
cmp word [rax], 0x5c
jne 0x140032d9c
lea rdx, [rax + 2]
cmp rdx, rcx
je 0x140032d9c
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140032d87
movzx ecx, word [rdx]
sub cx, 0x28
cmp cx, 1
jbe 0x140032d99
test r8b, 0x10
jne 0x140032d9c
movzx ecx, word [rdx]
sub cx, 0x7b
test bp, cx
jne 0x140032d9c
mov rax, rdx
add rax, 2
mov qword [rbx], rax
mov rcx, rbx
call fcn.14002f2d0
test edi, edi
jne 0x140032d00
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.14002f2c0
int3

Function at 0x140037a08
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140037a80
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140037a80
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140037a80
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140037a74
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140037a92
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140037a62
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140037a82

Function at 0x1400385e8
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 0x14003866c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140064e30]
cmp byte [rcx + rax], 0
je 0x14003866c
dec r8
sub rdx, 1
jne 0x140038652
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14003b0b8
Capabilities:
Parse pe header

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

Function at 0x140048038
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140047e28
Function at 0x140054838
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400548bf
mov rsi, rbx
cmp word [rax], bp
je 0x14005487e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140054868
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140054864
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004e480
mov rdi, rax
test rax, rax
je 0x1400548ac
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003c3f0
mov rbp, rdi
xor ecx, ecx
call fcn.14004e444
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140002fd0
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0xa0
movaps xmmword [rax - 0x28], xmm6
mov rbp, r8
movsxd r8, dword [0x1400ebf94]
mov rsi, rdx
movaps xmmword [rax - 0x38], xmm7
lea rdx, [rax - 0x78]
movaps xmmword [rax - 0x48], xmm8
mov rdi, rcx
shl r8, 5
lea rcx, [0x1400ebfb0]
add r8, qword [0x1400ebf98]
mov rbx, r9
movaps xmmword [rax - 0x58], xmm9
movaps xmmword [rax - 0x68], xmm10
call fcn.140004ce0
mov rcx, qword [0x1400ebde8]
lea r8, [rsp + 0x30]
xorps xmm9, xmm9
mov rax, qword [rax]
mov eax, dword [rax + 0x40]
shl eax, 5
movsxd rdx, eax
add rdx, rbx
mov qword [rsp + 0x30], 0
xor ebx, ebx
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x20], rbx
lea r9d, [rbx + 0xc]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movss xmm8, dword [rsp + 0x34]
movss xmm7, dword [rsp + 0x30]
subss xmm8, dword [rdi + 0x24]
subss xmm7, dword [rdi + 0x20]
movss xmm6, dword [rsp + 0x38]
subss xmm6, dword [rdi + 0x28]
movaps xmm1, xmm8
movaps xmm0, xmm7
xorps xmm6, xmmword [0x1400d5cc0]
call fcn.140099f44
movaps xmm1, xmm0
movaps xmm0, xmm6
call fcn.14009a294
movaps xmm10, xmm0
movaps xmm1, xmm7
mulss xmm10, dword [0x1400d5a08]
movaps xmm0, xmm8
subss xmm10, dword [rdi + 0x38]
call fcn.14009a294
movaps xmm7, xmm0
xorps xmm8, xmm8
mulss xmm7, dword [0x1400d5a08]
movaps xmm0, xmm10
xorps xmm6, xmm6
subss xmm7, dword [rdi + 0x3c]
movaps xmm1, xmm7
call fcn.140099f44
movss xmm1, dword [0x1400ebf88]
comiss xmm1, xmm0
jbe 0x1400030fe
movaps xmm8, xmm10
movaps xmm6, xmm7
movss xmm7, dword [0x1400d5a14]
comiss xmm8, xmm7
movss xmm1, dword [0x1400d5a38]
movss xmm0, dword [0x1400d5a28]
jbe 0x140003122
comiss xmm0, xmm8
jae 0x140003140
comiss xmm8, xmm0
movaps xmm7, xmm8
jbe 0x140003130
subss xmm7, xmm1
movss xmm2, dword [0x1400d5aa8]
comiss xmm2, xmm7
jbe 0x140003140
movaps xmm7, xmm2
comiss xmm6, xmm0
jbe 0x140003149
subss xmm6, xmm1
movss xmm0, dword [0x1400d5ab0]
comiss xmm0, xmm6
jbe 0x14000315a
addss xmm6, xmm1
divss xmm7, dword [0x1400ebf84]
divss xmm6, dword [0x1400ebf84]
ucomiss xmm7, xmm9
jp 0x140003186
jne 0x140003186
ucomiss xmm6, xmm9
jp 0x140003186
jne 0x140003186
mov qword [0x1400ebdd0], rbx
jmp 0x140003207
cmp byte [0x1400ebfc0], bl
je 0x1400031c2
movsxd r8, dword [0x1400ebfc4]
lea rdx, [rsp + 0x40]
shl r8, 5
lea rcx, [0x1400ebff8]
add r8, qword [0x1400ebfe0]
call fcn.140004ce0
mov rcx, qword [rax]
mov ecx, dword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140003207
addss xmm7, dword [rsi]
addss xmm6, dword [rsi + 4]
movss xmm1, dword [rsi + 8]
lea r8, [rsp + 0x30]
mov rcx, qword [0x1400ebde8]
addss xmm1, xmm9
mov r9d, 0xc
mov qword [rsp + 0x20], rbx
movaps xmm0, xmm7
mov rdx, rbp
unpcklps xmm0, xmm6
movsd qword [rsp + 0x30], xmm0
movss dword [rsp + 0x38], xmm1
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
mov rsp, r11
pop rdi
pop rsi
pop rbp
ret
Function at 0x140025ed0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rdi, qword [0x1400ebe88]
mov r14d, edx
mov r12d, dword [rsp + 0x90]
movaps xmmword [rsp + 0x30], xmm6
mov rbx, qword [rdi + 0x3ee0]
mov eax, dword [rbx + 0x14]
and eax, 4
or eax, 0x1000103
or r12d, eax
cmp qword [rbx + 0x1a8], 0
jne 0x140025f2b
cmp qword [rdi + 0x4bb0], 0
mov eax, 0x250
je 0x140025f30
mov eax, 0x220
movss xmm4, dword [rax + rbx]
xorps xmm3, xmm3
movss xmm5, dword [rax + rbx + 4]
xor r15d, r15d
cvttss2si eax, dword [r8]
subss xmm4, dword [rbx + 0x100]
subss xmm5, dword [rbx + 0x104]
movd xmm1, eax
cvttss2si eax, dword [r8 + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
ucomiss xmm1, xmm3
cvtdq2ps xmm0, xmm0
jp 0x140025f75
lea eax, [r15 + 1]
je 0x140025f78
mov eax, r15d
ucomiss xmm0, xmm3
jp 0x140025f85
jne 0x140025f85
mov r15d, 2
movss xmm2, dword [0x1400d59c4]
or r15d, eax
comiss xmm3, xmm1
jb 0x140025fa1
addss xmm1, xmm4
comiss xmm1, xmm2
jae 0x140025fa1
movaps xmm1, xmm2
comiss xmm3, xmm0
jb 0x140025fb2
addss xmm0, xmm5
comiss xmm0, xmm2
jae 0x140025fb2
movaps xmm0, xmm2
or dword [rdi + 0x47c8], 2
xor edx, edx
movss dword [rdi + 0x47e8], xmm1
movss dword [rdi + 0x47ec], xmm0
mov dword [rdi + 0x47d0], 1
mov r9, qword [rbx + 8]
test rcx, rcx
je 0x140025ffb
mov dword [rsp + 0x28], r14d
lea r8, str._s__s__08X
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x70]
call fcn.14001e600
jmp 0x140026011
lea r8, str._s__08X
mov dword [rsp + 0x20], r14d
lea rcx, [rsp + 0x70]
call fcn.14001e600
mov rcx, qword [rsp + 0x70]
mov r8d, r12d
movss xmm6, dword [rdi + 0x37f8]
xor edx, edx
call fcn.140028cf0
mov rsi, qword [rdi + 0x3ee0]
movzx ebp, al
movss dword [rdi + 0x37f8], xmm6
cmp word [rsi + 0xc2], 1
mov dword [rsi + 0x80], r14d
mov byte [rsi + 0xd2], r15b
jne 0x14002605f
movsd xmm0, qword [rsi + 0x20]
movsd qword [rbx + 0x100], xmm0
mov r9d, r14d
lea rdx, [0x1400ce361]
not r9d
lea r10, [0x1400cf300]
mov ebx, r9d
mov r8b, 0x23
nop dword [rax]
cmp r8b, 0x23
jne 0x140026093
cmp byte [rdx], r8b
jne 0x140026093
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x140026080
not ebx
cmp dword [rdi + 0x3f40], ebx
jne 0x1400260c3
xor edx, edx
xor ecx, ecx
call fcn.140022840
cmp dword [rdi + 0x48f0], r14d
jne 0x140026110
bt r12d, 0x17
jb 0x140026110
cmp word [rsi + 0x15c], 0
jne 0x1400260e6
cmp byte [rsi + 0x162], 0
je 0x140026110
xor edx, edx
mov rcx, rsi
call fcn.14002b200
xor edx, edx
mov rcx, rsi
call fcn.140031620
mov rdx, rsi
mov ecx, ebx
call fcn.140022840
mov eax, dword [rdi + 0x4914]
mov dword [rdi + 0x3f68], eax
mov rbx, qword [rsp + 0x78]
movzx eax, bpl
mov rbp, qword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14002f600
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400e90a0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1400ebe88]
mov edi, ecx
cmp byte [rbx + 0x4af9], 0
jne 0x14002f661
cmp byte [rbx + 0x4afa], 0
jne 0x14002f661
movsx r9d, word [rbx + 0x5c2c]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.14001e580
test dil, 2
je 0x14002f78f
jmp 0x14002f6ea
movss xmm1, dword [rbx + 0x3898]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5c2c]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x1400d59f4]
mulss xmm1, dword [0x1400d59e4]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xe00]
addss xmm1, dword [rbx + 0xe04]
mov qword [rbx + 0x47e0], rax
mov dword [rbx + 0x47cc], 1
movss dword [rbx + 0x47d8], xmm0
movss dword [rbx + 0x47dc], xmm1
movss xmm0, dword [rbx + 0x38f4]
mulss xmm0, dword [0x1400d593c]
or dword [rbx + 0x47c8], 0x41
movss dword [rbx + 0x4828], xmm0
call fcn.14001e580
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14002f740
lea r11, [0x1400cf300]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x14002f723
cmp byte [r8], r9b
jne 0x14002f723
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14002f710
not ecx
call fcn.140026460
test rax, rax
je 0x14002f78f
cmp byte [rax + 0xb6], 0
je 0x14002f78f
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, 0x10
inc word [rbx + 0x5c2c]
movsx r9d, word [rbx + 0x5c2c]
call fcn.14001e580
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140028cf0
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140072930
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140003cf0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x68], 0
je 0x140003d1b
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140003d22
mov al, 1
jmp 0x140003e65
call fcn.140004bb8
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rcx
mov edx, eax
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x18]
mov dword [rsp + 0x38], eax
call fcn.140004bb8
mov ecx, dword [rsp + 0x38]
mov edx, ecx
mov ecx, eax
call fcn.140004bc0
movzx eax, al
test eax, eax
je 0x140003d6d
xor al, al
jmp 0x140003e65
mov qword [rsp + 0x58], 0x20
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x74
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x60]
mov rdx, rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x68]
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]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140003dd3
cmp dword [rsp + 0x30], 1
je 0x140003ddf
cmp dword [rsp + 0x30], 3
je 0x140003e53
jmp 0x140003e63
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x140003e2b
mov rax, qword [rsp + 0xa0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x40], rax
je 0x140003e2b
xor al, al
jmp 0x140003e65
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140003e45
mov dword [rsp + 0x34], 1
jmp 0x140003e4d
mov dword [rsp + 0x34], 0
mov al, byte [rsp + 0x34]
jmp 0x140003e65
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140003e65
xor al, al
add rsp, 0x98
ret
Function at 0x140005bfc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x70], 0
jg 0x140005c1e
xor eax, eax
jmp 0x140005dc7
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x68], 0
je 0x140005c44
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call 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]
jmp 0x140005dc7
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x140005cdd
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.140002788
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call fcn.140004ad0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x140005db7
mov rcx, qword [rsp + 0x60]
call fcn.140004238
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x140005d7e
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x140005d7c
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x140005dc7
jmp 0x140005d03
cmp qword [rsp + 0x20], 0
jbe 0x140005db7
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x58
ret
Function at 0x140005dcc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x140005e05
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call 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]
jmp 0x140005ef3
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x140005e9b
cmp qword [rsp + 0x20], 0
jle 0x140005e9b
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x140005e45
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.140004ad0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rsp + 0x50], 0
jle 0x140005ee3
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x140005ee3
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
add rsp, 0x38
ret
Function at 0x140005ef8
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x90]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov eax, 2
mov rcx, qword [rsp + 0x50]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140006dc8
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x90]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x98]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x34], eax
movsxd rax, dword [rsp + 0x34]
mov qword [rsp + 0x60], rax
mov eax, 2
mov rcx, qword [rsp + 0x60]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140006dc8
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x98]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call sub.urlmon.dll_URLDownloadToFileW
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.140006dc0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.140006dc0
cmp dword [rsp + 0x3c], 0
jl 0x14000608f
mov dword [rsp + 0x38], 1
jmp 0x140006097
mov dword [rsp + 0x38], 0
mov al, byte [rsp + 0x38]
add rsp, 0x88
ret

Function at 0x140007588
Capabilities:
Parse pe header

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