joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413c00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00438380]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x413c6d
mov rcx, r8
call fcn.00413ae0
test eax, eax
je 0x413c6d
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 0x413c6d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x413c64
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x413c6f
add rax, 0x28
cmp rax, r9
jne 0x413c50
xor eax, eax
add rsp, 0x28
ret

Function at 0x418040
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
call sub.msvcrt.dll__onexit
test rax, rax
sete al
movzx eax, al
neg eax
add rsp, 0x28
ret
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00413fe0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00413fe0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140001000
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x14001af70], 0
jne 0x140001149
xor r9d, r9d
lea r8, [0x14001af70]
mov edx, r9d
nop word [rax + rax]
mov ecx, edx
mov eax, edx
xor ecx, 0x14002
shr eax, 1
shr ecx, 1
test dl, 1
cmovne eax, ecx
test al, 1
je 0x14000103d
xor eax, 0x14002
shr eax, 1
test al, 1
je 0x140001048
xor eax, 0x14002
shr eax, 1
test al, 1
je 0x140001053
xor eax, 0x14002
shr eax, 1
test al, 1
je 0x14000105e
xor eax, 0x14002
shr eax, 1
test al, 1
je 0x140001069
xor eax, 0x14002
shr eax, 1
test al, 1
je 0x140001074
xor eax, 0x14002
shr eax, 1
test al, 1
je 0x14000107f
xor eax, 0x14002
shr eax, 1
inc edx
mov dword [r8], eax
add r8, 4
cmp edx, 0x100
jb 0x140001020
lea r8, [0x14001ab70]
nop dword [rax]
mov ecx, r9d
lea r8, [r8 + 4]
shr ecx, 1
mov edx, ecx
xor edx, 0x82f63b78
test r9b, 1
cmove edx, ecx
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0x82f63b78
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0x82f63b78
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0x82f63b78
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0x82f63b78
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0x82f63b78
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0x82f63b78
test cl, 1
cmove edx, eax
mov ecx, edx
shr ecx, 1
mov eax, ecx
xor eax, 0x82f63b78
test dl, 1
cmove eax, ecx
inc r9d
mov dword [r8 - 4], eax
cmp r9d, 0x100
jb 0x1400010a0
ret
Function at 0x140001d90
Capabilities:
Initialize winhttp library

Disassembly:
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x40
mov rbp, rdx
mov dword [rsp + 0x30], 0x2710
mov rdi, rcx
mov dword [0x14001a074], 0x100
xor edx, edx
mov dword [rsp + 0x20], 0
lea rcx, str.UserAgent_1.0
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rdi], rax
test rax, rax
jne 0x140001df2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xffffffff
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
cmp dword [rsp + 0x30], 0
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
je 0x140001e1b
mov r9d, 4
lea r8, [rsp + 0x30]
mov rcx, rax
lea edx, [r9 - 1]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
lea rax, [rdi + 0x280]
mov dword [rdi + 0x18], 0x68
lea rsi, [rdi + 0x80]
mov qword [rdi + 0x60], rax
mov rcx, rbp
mov qword [rdi + 0x30], rsi
mov dword [rdi + 0x38], pe_nt_image_headers64
mov dword [rdi + 0x68], 0x800
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, [rdi + 0x18]
xor r8d, r8d
mov edx, eax
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
mov rbx, qword [rsp + 0x50]
test eax, eax
jne 0x140001e85
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [rsp + 0x58]
mov eax, 0xfffffffe
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
cmp dword [rdi + 0x2c], 2
jne 0x140001eb5
mov rcx, qword [rdi]
lea r8, [rsp + 0x60]
mov r9d, 4
mov dword [rsp + 0x60], 0xa00
lea edx, [r9 + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
or dword [0x14001a074], 0x800000
movzx r8d, word [rdi + 0x3c]
xor r9d, r9d
mov rcx, qword [rdi]
mov rdx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rdi + 8], rax
test rax, rax
jne 0x140001eed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [rsp + 0x58]
mov eax, 0xfffffffd
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140001f00
Capabilities:
Prepare http request
Receive http response

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
lea rdx, [0x140014948]
lea rcx, [0x140014948]
xor esi, esi
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
lea rcx, str.Accept:___r_nPragma:_no_cache_r_nCache_Control:_no_cache_r_n
mov eax, dword [0x14001a074]
lea rdi, str.Content_Type:_application_x_www_form_urlencoded_r_n
cmove rdi, rcx
mov dword [rsp + 0x30], eax
mov rcx, qword [rbx + 8]
lea r8, [rbx + 0x280]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
lea rdx, [0x140014948]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x140001f8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [rsi - 1]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], esi
mov r8d, 0xffffffff
mov rdx, rdi
mov dword [rsp + 0x20], esi
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x140001fce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xfffffffe
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rbx + 0x10]
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x140001ff9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xfffffffd
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140002790
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov dword [rax + 0x20], r9d
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov r14, r8
mov dword [rax + 0x20], ebx
mov esi, edx
mov edi, 0xfffffc19
test edx, edx
jle 0x14000283b
mov qword [rax - 0x28], rbx
mov edi, 1
mov dword [rax - 0x30], 0x80
mov r8d, edi
xor r9d, r9d
mov qword [rax + 8], rbp
mov edx, 0x40000000
mov dword [rax - 0x38], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1400027fb
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140002836
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rbx
mov r8d, esi
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140002825
lea edi, [rax - 3]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14000282d
cmp esi, dword [rsp + 0x78]
jne 0x14000281b
mov edi, ebx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x60]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140012da0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140012dea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140012dea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140012dea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140012dea
cmp dword [rcx + 0x84], 0xe
jbe 0x140012dea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140012dec
xor al, al
add rsp, 0x28
ret
Function at 0x14001ca60
Capabilities:
Allocate or change rwx memory
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0xa0
mov rax, qword [0x140035040]
xor rax, rsp
mov qword [rsp + 0x98], rax
xor edx, edx
lea r9, [rsp + 0x68]
mov rsi, rcx
xor r14d, r14d
xor r8d, r8d
mov dword [rsp + 0x68], r14d
mov edi, r14d
lea ecx, [rdx + 0x40]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14001caf9
nop word [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x68]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x68]
mov rdx, rax
mov ecx, 0x40
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14001cab0
test eax, eax
jns 0x14001cb15
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
jmp 0x14001cbab
mov qword [rsp + 0xc8], rbx
mov ebx, r14d
mov qword [rsp + 0xd0], rbp
mov rbp, r14
cmp qword [rdi], rbx
jbe 0x14001cbcc
mov rax, r14
nop word [rax + rax]
lea rax, [rax + rax*4]
movups xmm0, xmmword [rdi + rax*8 + 0x10]
movups xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rdi + rax*8 + 0x20]
movups xmmword [rsp + 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movups xmm1, xmmword [rsp + 0x20]
mov ecx, eax
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, rcx
jne 0x14001cb7f
cmp qword [rsp + 0x30], rsi
je 0x14001cbc7
inc ebx
mov eax, ebx
cmp rax, qword [rdi]
jb 0x14001cb40
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
mov rbx, qword [rsp + 0xc8]
mov rbp, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140025ac0
add rsp, 0xa0
pop r14
pop rdi
pop rsi
ret
movq rbp, xmm1
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test rbp, rbp
je 0x14001cb99
lea r8, [rbp + 8]
mov qword [rsp + 0x78], r14
mov r9d, 8
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.14001bd80
test al, al
je 0x14001cb99
mov r8, qword [rsp + 0x78]
lea rdx, [rsp + 0x80]
add r8, 8
mov qword [rsp + 0x80], r14
mov r9d, 8
mov rcx, rsi
call fcn.14001bd80
test al, al
je 0x14001cb99
mov r8, qword [rsp + 0x80]
lea rdx, [rsp + 0x70]
add r8, 0x28
mov qword [rsp + 0x70], r14
mov r9d, 8
mov rcx, rsi
call fcn.14001bd80
test al, al
je 0x14001cb99
mov r8, qword [rsp + 0x70]
lea rdx, [rsp + 0x88]
xorps xmm0, xmm0
add r8, 0x58
mov r9d, 0x10
mov rcx, rsi
movups xmmword [rsp + 0x88], xmm0
call fcn.14001bd80
test al, al
je 0x14001cb99
mov rdx, qword [rsp + 0x70]
lea r8, [rsp + 0x88]
add rdx, 0x58
mov word [rsp + 0x88], r14w
mov r9d, 0x10
mov rcx, rsi
call fcn.14001bd80
test al, al
setne al
jmp 0x14001cb9b
Function at 0x140024280
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140035040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edx, edx
lea r9, [rsp + 0x20]
mov rsi, rcx
xor r14d, r14d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov edi, r14d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140024309
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1400242c0
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbp
test eax, eax
js 0x1400243e7
mov ebx, r14d
cmp dword [rdi], ebx
jbe 0x1400243e7
nop dword [rax]
mov eax, ebx
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x28], xmm0
movzx edx, word [rcx + rdi + 0x2e]
lea rbp, [rcx + rdi]
add rdx, 0x30
mov qword [rsp + 0x38], r14
add rdx, rcx
mov qword [rsp + 0x40], r14
add rdx, rdi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r14b
jne 0x140024365
lea rcx, [rsp + 0x28]
call fcn.14001dc70
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x140024385
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
cmova rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14002441d
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x1400243dd
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400243d8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024466
call fcn.140025d5c
inc ebx
cmp ebx, dword [rdi]
jb 0x140024330
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140025ac0
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
mov rbx, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140024472
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002446d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002446d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025d5c
mov rax, rbx
jmp 0x1400243fa
Function at 0x140024810
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 0x140024838
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 0x14002485e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140024860
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400248b9
test ecx, ecx
jle 0x140024899
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 0x1400248b9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400248b9
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 0x1400248e0
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 0x140024902
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140024918
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 0x140024934
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140024936
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140024972
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 0x140024a0e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400249ad
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 0x1400249ee
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 0x140024a0e
cmp rbx, rax
ja 0x1400249c0
test rbx, rbx
je 0x140024a0e
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 0x140024e70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140035040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140024e9d
xor eax, eax
jmp 0x140025009
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140024ed7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140024ed7
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 0x140025009
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140024ffc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140024f1a
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 0x140024f45
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 0x140025001
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 0x140024fb4
sub eax, 1
je 0x140024fb4
cmp eax, 2
jne 0x140024ffc
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 0x140025001
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140024fe2
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 0x140024ffc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140025001
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140025ac0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400251c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140035040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140025293
cmp byte [rcx + 0x71], 0
je 0x140025293
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14002528f
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 0x140025254
sub eax, 1
je 0x140025258
cmp eax, 2
jne 0x14002528f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140025ac0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140025286
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 0x14002528f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14002523c
xor al, al
jmp 0x14002523c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140025ac0
add rsp, 0x60
pop rbx
ret

Function at 0x140025750
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 0x14002578a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14002578f
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 0x1400257d8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400275f0]
cmp byte [rcx + rax], 0
je 0x1400257d8
dec r8
sub rdx, 1
jne 0x1400257be
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140026564
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400265ae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400265ae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400265ae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400265ae
cmp dword [rcx + 0x84], 0xe
jbe 0x1400265ae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400265b0
xor al, al
add rsp, 0x28
ret
Function at 0x1400dcec0
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 0x1400dcee8
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 0x1400dcf0e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400dcf10
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400dcf69
test ecx, ecx
jle 0x1400dcf49
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 0x1400dcf69
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400dcf69
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