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

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140048ee8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14002d254
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14002d2ba
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14002d2f1
test eax, eax
js 0x14002d2cb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14002d2e4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.1400224a0
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.140027720
mov rcx, rax
call fcn.140022a20
mov ecx, 7
int 0x29
ud2

Function at 0x14002e180
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x14002e1b8
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.14002e1d0
nop
add rsp, 0x38
ret

Function at 0x14002e1d0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x14002e213
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140025f30]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140043230
ud2
Function at 0x14002e860
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14005b151]
mov ecx, 0x10
mov edx, 8
call fcn.140003360
test rax, rax
je 0x14002e93f
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14002e9d0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14002e931
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14002e908
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.140003370
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call 0x13d4d3e03
invalid
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.1400431c0
ud2
Function at 0x14003bee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14003bf5a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14003bf50
cmp r11, r10
ja 0x14003bff3
cmp r10, rdx
ja 0x14003c007
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14003bf52
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14003bf30
jmp 0x14003bfc7
ja 0x14003bf5a
mov r11, r10
cmp rax, r8
jne 0x14003bf02
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14003bfcb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14003bfa0
mov r8, r10
sub ecx, r9d
jns 0x14003bfbe
jmp 0x14003bfcd
cmp r10, rdx
je 0x14003bfd9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14003bfcd
xor al, 1
cmp r8, rdx
jne 0x14003bf80
jmp 0x14003bfcd
xor eax, eax
jmp 0x14003bfcd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuelibrarycore_src_nummod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400432d0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140043730
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400436c0
ud2

Function at 0x14003dcd0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14003dd1a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003dd1a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003dd1a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003dd1a
cmp dword [rcx + 0x84], 0xe
jbe 0x14003dd1a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003dd1c
xor al, al
add rsp, 0x28
ret
Function at 0x401575
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r9d, 4
movsxd rsi, edx
mov rbp, rcx
mov r12, r8
xor ecx, ecx
mov r8d, 0x3000
mov rdx, rsi
mov rdi, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ecx, ecx
mov rbx, rax
mov r8d, 4
cmp ecx, edi
mov eax, ecx
jge 0x4015ca
cdq
idiv r8d
movsxd rax, edx
mov al, byte [r12 + rax]
xor al, byte [rbp + rcx]
mov byte [rbx + rcx], al
inc rcx
jmp 0x4015ad
mov rcx, rbx
call fcn.00401543
lea r9, [rsp + 0x3c]
mov rdx, rsi
mov rcx, rbx
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r8, [0x00401540]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x401cb0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x0046b624]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x401dc7
mov rax, qword [0x0046b628]
xor edx, edx
add rax, 8
mov rcx, qword [rax]
cmp rbx, rcx
jb 0x401cfd
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rcx, r8
cmp rbx, rcx
jb 0x401dad
add edx, 1
add rax, 0x18
cmp edx, ebp
jne 0x401ce1
mov rcx, rbx
call fcn.00402900
test rax, rax
mov r12, rax
je 0x401dff
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x0046b628]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.00402a70
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x0046b628]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401de2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x401da6
sub eax, 4
and eax, 0xfffffffb
je 0x401da6
mov r9, rbp
add r9, qword [0x0046b628]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401dce
add dword [0x0046b624], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebp, ebp
jmp 0x401d08
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00401c40
mov rax, qword [0x0046b628]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call fcn.00401c40
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00401c40
nop
nop
Function at 0x402560
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0046b900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0046b8e0]
test rbx, rbx
je 0x4025b4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4025ab
test rsi, rsi
je 0x4025ab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402590
lea rcx, [0x0046b900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402900
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004682e0]
xor r9d, r9d
mov rdx, rcx
cmp word [r8], 0x5a4d
je 0x402921
mov rax, r9
add rsp, 0x28
ret
mov rcx, r8
call fcn.004027d0
test eax, eax
je 0x402919
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402919
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402974
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402990
add rax, 0x28
cmp rax, r9
jne 0x402960
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
mov r9, rax
mov rax, r9
add rsp, 0x28
ret
Function at 0x14000c0f0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14000c0cd
call fcn.140009794
mov dword [rax], 0x16
call fcn.140009674
or eax, 0xffffffff
jmp 0x14000c0ea
sub dword [rcx + 0x10], 1
jns 0x14000c0dc
add rsp, 0x28
jmp 0x1400122ac
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14000c0ac
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14001214c
call fcn.140009794
mov dword [rax], 0x16
call fcn.140009674
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140012134
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140012134
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14001217e
lock or dword [rax + 0x14], 0x10
jmp 0x140012134
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14001219b
mov rcx, qword [rbp + 0x10]
call fcn.14001401c
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14000a020
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140013250
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1400121f2
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140012134
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14001225e
mov rcx, qword [rbp + 0x10]
call fcn.14000a020
cmp eax, 0xffffffff
je 0x140012245
mov rcx, qword [rbp + 0x10]
call fcn.14000a020
cmp eax, 0xfffffffe
je 0x140012245
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14000a020
movsxd rdi, eax
lea rsi, [0x1400233a0]
mov rcx, rbx
sar rdi, 6
call fcn.14000a020
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14001224c
lea rax, [0x1400222d0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001225e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x140012294
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140012290
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140012290
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x140012137
jmp 0x140012104
Function at 0x685c58a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [rcx]
mov r8d, eax
mov r9d, eax
xor r8d, edx
lock cmpxchg dword [rcx], r8d
jne 0x685c58a2
mov eax, r9d
ret

Function at 0x685c5940
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx]
mov r8, rax
mov r9, rax
xor r8, rdx
lock cmpxchg qword [rcx], r8
jne 0x685c5943
mov rax, r9
ret
Function at 0x685cb340
Capabilities:
Hash data using djb2

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x685cb380
mov rdx, qword [rcx]
mov eax, 0x1505
mov r9, rdx
add r9, qword [rcx + 8]
cmp rdx, r9
je 0x685cb378
nop dword [rax]
movsx ecx, byte [rdx]
mov r8d, eax
add rdx, 1
shl r8d, 5
add ecx, r8d
add eax, ecx
cmp rdx, r9
jne 0x685cb360
add rsp, 0x28
ret
lea r8, [0x686672a0]
lea rdx, str.g_bytes_hash
lea rcx, [0x686672ae]
call sym.libglib_2.0_0.dll_g_return_if_fail_warning
xor eax, eax
add rsp, 0x28
ret

Function at 0x685d06a0
Capabilities:
Hash data using sha1
Hash data using sha256

Disassembly:
push rbx
sub rsp, 0x30
test rcx, rcx
mov rbx, rcx
je 0x685d07c0
mov rcx, qword [rcx + 8]
call sym.libglib_2.0_0.dll_g_free
mov eax, dword [rbx]
mov qword [rbx + 8], 0
cmp eax, 1
je 0x685d0780
jae 0x685d0700
mov dword [rbx + 0x10], 0x67452301
mov dword [rbx + 0x14], 0xefcdab89
mov dword [rbx + 0x18], 0x98badcfe
mov dword [rbx + 0x1c], 0x10325476
mov dword [rbx + 0x24], 0
mov dword [rbx + 0x20], 0
add rsp, 0x30
pop rbx
ret
cmp eax, 2
je 0x685d0730
lea r9, str.g_checksum_reset
lea rdx, str.gchecksum.c
lea rcx, [0x6866749c]
mov qword [rsp + 0x20], 0
mov r8d, 0x49b
call sym.libglib_2.0_0.dll_g_assertion_message
nop
mov dword [rbx + 0x10], 0x6a09e667
mov dword [rbx + 0x14], 0xbb67ae85
mov dword [rbx + 0x18], 0x3c6ef372
mov dword [rbx + 0x1c], 0xa54ff53a
mov dword [rbx + 0x20], 0x510e527f
mov dword [rbx + 0x24], 0x9b05688c
mov dword [rbx + 0x28], 0x1f83d9ab
mov dword [rbx + 0x2c], 0x5be0cd19
mov dword [rbx + 0x34], 0
mov dword [rbx + 0x30], 0
add rsp, 0x30
pop rbx
ret
mov dword [rbx + 0x10], 0x67452301
mov dword [rbx + 0x14], 0xefcdab89
mov dword [rbx + 0x18], 0x98badcfe
mov dword [rbx + 0x1c], 0x10325476
mov dword [rbx + 0x20], 0xc3d2e1f0
mov dword [rbx + 0x28], 0
mov dword [rbx + 0x24], 0
add rsp, 0x30
pop rbx
ret
lea r8, [0x686674a1]
lea rdx, str.g_checksum_reset
lea rcx, [0x6866749c]
add rsp, 0x30
pop rbx
jmp sym.libglib_2.0_0.dll_g_return_if_fail_warning
Function at 0x1400110e1
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400206a0
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, [0x1400530f7]
call fcn.140011898
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x1400206f7
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 0x140020803
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 0x14002079c
cmp qword [rbp + 0x28], 0
jle 0x14002079c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14002073c
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.14001181b
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]
cmp qword [rbp + 0x130], 0
jle 0x1400207f2
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x1400207f2
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 0x1400114b5
Capabilities:
Terminate process

Disassembly:
jmp 0x1400241c0
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]
add rsp, 0x28
ret
Function at 0x140011569
Capabilities:
Create http request

Disassembly:
jmp 0x14001dfc0
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rcx, [0x1400530fa]
call fcn.140011898
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.Internet_Check
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x14001e014
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, 1
jmp 0x14001e016
xor al, al
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x1400115f0
Capabilities:
Parse pe header

Disassembly:
jmp 0x140023570
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140023590
xor al, al
jmp 0x140023611
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400235a3
xor al, al
jmp 0x140023611
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 0x1400235cd
xor al, al
jmp 0x140023611
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400235e1
xor al, al
jmp 0x140023611
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400235f3
xor al, al
jmp 0x140023611
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002360f
xor al, al
jmp 0x140023611
mov al, 1
add rsp, 0x38
ret
Function at 0x14001187f
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001ca70
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x140040018]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x1400530f7]
call fcn.140011898
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x14001cad6
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001cadd
mov al, 1
jmp 0x14001cc37
call fcn.140011258
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx]
mov qword [rbp + 0x198], rcx
mov edx, eax
mov rcx, qword [rbp + 0x1d0]
mov rax, qword [rbp + 0x198]
call qword [rax + 0x18]
mov dword [rbp + 0x164], eax
call fcn.140011258
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.14001173f
movzx eax, al
test eax, eax
je 0x14001cb38
xor al, al
jmp 0x14001cc37
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.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 [rbp + 0x194], eax
cmp dword [rbp + 0x194], 0
je 0x14001cb9d
cmp dword [rbp + 0x194], 1
je 0x14001cba8
cmp dword [rbp + 0x194], 3
je 0x14001cc26
jmp 0x14001cc35
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001cbf8
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001cbf8
xor al, al
jmp 0x14001cc37
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001cc13
mov dword [rbp + 0x194], 1
jmp 0x14001cc1d
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x14001cc37
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001cc37
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140034880]
call fcn.140011721
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.14001140b
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret