joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012620
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x14002b200]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
lea rcx, [rsp + 0x20]
mov edx, 0x208
call qword [0x140023280]
lea rcx, [rsp + 0x20]
call qword [0x1400233c0]
movsxd rcx, eax
cmp word [rsp + rcx*2 + 0x1e], 0x5c
je 0x14001267a
lea rdx, [0x140023e58]
lea rcx, [rsp + 0x20]
call qword [0x140023108]
lea rdx, str.wtsapi32.dll
lea rcx, [rsp + 0x20]
call qword [0x140023108]
mov ecx, 0x8001
call qword [0x140023278]
lea rcx, [rsp + 0x20]
call qword [0x1400231a0]
mov rbx, rax
test rax, rax
je 0x1400126cd
lea rdx, str.WTSUnRegisterSessionNotification
mov rcx, rax
call qword [0x140023198]
test rax, rax
je 0x1400126c4
mov rcx, rdi
call rax
mov rcx, rbx
call qword [0x140023190]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140012ba0
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret

Function at 0x1400126f0
Capabilities:
Find taskbar

Disassembly:
sub rsp, 0x28
lea rcx, str.Shell_TrayWnd
xor edx, edx
call qword [0x140023508]
xor ecx, ecx
test rax, rax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x140014dcf
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14002b200]
jne 0x140012bba
rol rcx, 0x10
test cx, 0xffff
jne 0x140012bb6
repz ret
ror rcx, 0x10
jmp 0x140014d28
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14002f1b0]
call qword [0x140023338]
mov r11, qword [0x14002f2a8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call fcn.140021fd8
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140014dad
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14002f1b0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call fcn.140021fea
jmp 0x140014dcf
mov rax, qword [rsp + 0x88]
mov qword [0x14002f2a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14002f248], rax
mov rax, qword [0x14002f2a8]
mov qword [0x14002f120], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14002f230], rax
mov dword [0x14002f110], 0xc0000409
mov dword [0x14002f114], 1
mov rax, qword [0x14002b200]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14002b208]
mov qword [rsp + 0x70], rax
call qword [0x140023348]
mov dword [0x14002f1a8], eax
mov ecx, 1
call fcn.1400187b0
xor ecx, ecx
call qword [0x140023350]
lea rcx, [0x140024e80]
call qword [0x140023358]
cmp dword [0x14002f1a8], 0
jne 0x140014e56
mov ecx, 1
call fcn.1400187b0
call qword [0x140023178]
mov edx, 0xc0000409
mov rcx, rax
call qword [0x140023360]
add rsp, 0x88
ret

Function at 0x140015208
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001507c
Function at 0x140015214
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.14001afa8
nop
cmp dword [0x14002f6d8], 1
je 0x1400151b4
mov dword [0x14002f6d4], 1
mov byte [0x14002f6d0], r12b
test ebx, ebx
jne 0x1400151a0
mov rcx, qword [0x1400312d0]
call fcn.140015564
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14001518d
mov rcx, qword [0x1400312c8]
call fcn.140015564
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x14001512c
call fcn.140015558
cmp qword [rdi], rax
jne 0x14001512c
jmp 0x140015112
cmp rdi, rsi
jb 0x14001518d
mov rcx, qword [rdi]
call fcn.140015564
mov rbx, rax
call fcn.140015558
mov qword [rdi], rax
call rbx
mov rcx, qword [0x1400312d0]
call fcn.140015564
mov rbx, rax
mov rcx, qword [0x1400312c8]
call fcn.140015564
cmp r14, rbx
jne 0x14001516b
cmp r13, rax
je 0x14001518b
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x140015112
lea rdx, [0x140023878]
lea rcx, [0x140023860]
call fcn.140014f5c
lea rdx, [0x140023888]
lea rcx, [0x140023880]
call fcn.140014f5c
nop
test r12d, r12d
je 0x1400151c3
mov ecx, 8
call fcn.14001aea8
test r12d, r12d
jne 0x1400151ee
mov dword [0x14002f6d8], 1
lea ecx, [r12 + 8]
call fcn.14001aea8
mov ecx, r15d
call fcn.140014ef0
mov ecx, r15d
call qword [0x140023318]
int3
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14001507c
Function at 0x14001b2d4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.140015558
xor ebx, ebx
mov rdi, rax
cmp qword [0x14002fef8], rbx
jne 0x14001b3da
lea rcx, str.USER32.DLL
call qword [0x140023208]
mov rsi, rax
test rax, rax
je 0x14001b4af
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [0x140023198]
test rax, rax
je 0x14001b4af
mov rcx, rax
call fcn.140015550
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14002fef8], rax
call qword [0x140023198]
mov rcx, rax
call fcn.140015550
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14002ff00], rax
call qword [0x140023198]
mov rcx, rax
call fcn.140015550
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x14002ff08], rax
call qword [0x140023198]
mov rcx, rax
call fcn.140015550
mov r11, rax
mov qword [0x14002ff18], rax
test rax, rax
je 0x14001b3d1
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [0x140023198]
mov rcx, rax
call fcn.140015550
mov qword [0x14002ff10], rax
jmp 0x14001b3e1
mov rax, qword [0x14002ff10]
jmp 0x14001b3e8
mov rax, qword [0x14002ff10]
mov r11, qword [0x14002ff18]
cmp rax, rdi
je 0x14001b450
cmp r11, rdi
je 0x14001b450
mov rcx, rax
call fcn.140015564
mov rcx, qword [0x14002ff18]
mov rsi, rax
call fcn.140015564
mov r12, rax
test rsi, rsi
je 0x14001b450
test rax, rax
je 0x14001b450
call rsi
test rax, rax
je 0x14001b44a
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14001b44a
test byte [rsp + 0x38], 1
jne 0x14001b450
bts ebp, 0x15
jmp 0x14001b48e
mov rcx, qword [0x14002ff00]
cmp rcx, rdi
je 0x14001b48e
call fcn.140015564
test rax, rax
je 0x14001b48e
call rax
mov rbx, rax
test rax, rax
je 0x14001b48e
mov rcx, qword [0x14002ff08]
cmp rcx, rdi
je 0x14001b48e
call fcn.140015564
test rax, rax
je 0x14001b48e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14002fef8]
call fcn.140015564
test rax, rax
je 0x14001b4af
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14001b4b1
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1268410
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x126841d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x126842d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1268415
lea eax, [rcx + 1]
jmp 0x126843b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x126844e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1268434
sub eax, 3
jb 0x126846e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x12684bd
sar eax, 1
movsxd rbp, eax
jb 0x12684a4
jmp 0x126847c
add ebx, ebx
jne 0x126847a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x12684a4
inc ecx
add ebx, ebx
jne 0x126848a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x12684a4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x126849d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x126848c
add ecx, 2
jmp 0x12684a9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.012683d2
jmp 0x126841d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xe56000]
mov eax, dword [rdi]
or eax, eax
je 0x1268519
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xe68000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x12684c9
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1268513
mov qword [rbx], rax
add rbx, 8
jmp 0x12684e9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x126855d
cmp al, 0xef
ja 0x1268545
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1268525
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1268534
mov eax, dword [rdi]
add rdi, 4
jmp 0x1268534
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x12685b1
sub rsp, 0xffffffffffffff80
jmp 0x46ef80
Function at 0x140002550
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor ebx, ebx
mov rdx, qword [rcx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rdx
cmp rax, 0x15
jb 0x140002784
cmp qword [rcx + 0x18], 7
jbe 0x140002597
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 0x15
lea r9, [0x1400097b0]
lea rcx, [rsp + 0x50]
call fcn.1400067b0
nop
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x1400025f8
lea rax, [rcx + 1]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
cmp rdx, 7
cmova rax, qword [rsp + 0x50]
mov dword [rax + rcx*2], 0x22
lea rax, [rsp + 0x50]
jmp 0x140002617
mov qword [rsp + 0x20], 1
lea r9, [0x1400097ac]
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140005dc0
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140002689
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002684
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002684
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007600
mov dword [rbp - 0x50], 0x68
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm0
movups xmmword [rbp + 8], xmm0
mov dword [rbp - 0x14], 1
mov word [rbp - 0x10], bx
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova rdx, qword [rbp - 0x70]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140002724
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x140002767
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002762
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002762
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007600
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400075e0
mov rbx, qword [rsp + 0x148]
add rsp, 0x130
pop rbp
ret
call fcn.1400012d0
int3
Function at 0x140002b10
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rsi, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rbp, rax
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r14, rax
mov edx, 8
mov rcx, rbp
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
mov edx, 0xa
mov rcx, rbp
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
mov r8d, eax
mov edx, edi
mov rcx, rbp
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r15, rax
mov rdx, rax
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x40], 0xcc0020
xor r12d, r12d
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebx
mov r9d, edi
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.GDI32.dll_BitBlt]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], r12
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, r15
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
mov dword [rsp + 0x70], eax
mov rdi, qword [rsp + 0x58]
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x58], r12d
mov dword [rsp + 0x50], r12d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call qword [sym.imp.gdiplus.dll_GdipGetImageEncodersSize]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140002c9c
mov ecx, eax
call fcn.140007644
mov rbx, rax
mov r8, rax
mov edx, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x58]
call qword [sym.imp.gdiplus.dll_GdipGetImageEncoders]
mov r8d, r12d
mov r10d, dword [rsp + 0x58]
test r10d, r10d
je 0x140002c94
lea r11, str.image_png
mov ecx, r8d
imul r9, rcx, 0x68
mov rdx, qword [r9 + rbx + 0x40]
mov rax, r12
nop
movzx ecx, word [rdx + rax*2]
cmp cx, word [r11 + rax*2]
jne 0x140002d0d
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r11 + rax*2 + 2]
jne 0x140002d0d
add rax, 2
cmp rax, 0xa
jne 0x140002c60
movups xmm0, xmmword [r9 + rbx]
movups xmmword [rsp + 0x78], xmm0
mov rcx, rbx
call fcn.140007600
cmp qword [rsi + 0x18], 7
jbe 0x140002ca6
mov rsi, qword [rsi]
xor r9d, r9d
lea r8, [rsp + 0x78]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipSaveImageToFile]
mov rcx, r15
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
nop
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipDisposeImage]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400075e0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
inc r8d
cmp r8d, r10d
jb 0x140002c50
jmp 0x140002c94
Function at 0x140004bc0
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 0x140004be8
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 0x140004c0e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004c10
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004c69
test ecx, ecx
jle 0x140004c49
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 0x140004c69
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004c69
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 0x140004c90
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 0x140004cb2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140004cc8
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 0x140004ce4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004ce6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004d22
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 0x140004dbe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140004d5d
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 0x140004d9e
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 0x140004dbe
cmp rbx, rax
ja 0x140004d70
test rbx, rbx
je 0x140004dbe
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 0x140005220
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000524d
xor eax, eax
jmp 0x1400053b9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140005287
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140005287
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 0x1400053b9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400053ac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400052ca
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 0x1400052f5
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 0x1400053b1
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 0x140005364
sub eax, 1
je 0x140005364
cmp eax, 2
jne 0x1400053ac
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 0x1400053b1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005392
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 0x1400053ac
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400053b1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400075e0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005720
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400057f3
cmp byte [rcx + 0x71], 0
je 0x1400057f3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400057ef
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 0x1400057b4
sub eax, 1
je 0x1400057b8
cmp eax, 2
jne 0x1400057ef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400075e0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400057e6
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 0x1400057ef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000579c
xor al, al
jmp 0x14000579c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400075e0
add rsp, 0x60
pop rbx
ret

Function at 0x140006d60
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 0x140006d9a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140006d9f
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 0x140006de8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140009560]
cmp byte [rcx + rax], 0
je 0x140006de8
dec r8
sub rdx, 1
jne 0x140006dce
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140008014
Capabilities:
Parse pe header

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