joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140227ab0
Capabilities:
Create pipe

Disassembly:
sub rsp, 0x28
mov r9d, edx
mov rdx, rcx
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x140227ad3
mov rax, qword [rsp + 0x48]
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140328ad0]
call fcn.140228d40
int3

Function at 0x140227af0
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [rsp + 0x98]
mov rdi, r8
mov qword [r11 - 0x10], rcx
mov rsi, rdx
mov qword [r11 - 0x18], rax
mov rbx, rcx
mov rax, qword [rsp + 0x90]
xor r8d, r8d
mov qword [r11 - 0x20], rax
mov rdx, rdi
mov rax, qword [rsp + 0x88]
mov rcx, rsi
mov qword [r11 - 0x28], rax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x28], eax
mov dword [r11 - 0x38], r9d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140227b69
mov rsi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rdi
lea rdx, str.CreateProcessW__S___S__failed
mov ecx, eax
mov r8, rsi
call fcn.140228b00
int3

Function at 0x140227c30
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140227c43
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetCurrentDirectory
call fcn.140228d40
int3

Function at 0x140227c60
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x140227c74
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetEnvironmentStrings
call fcn.140228d40
int3

Function at 0x140227c90
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
jne 0x140227cb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140227cc0
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov r8, rdi
lea rdx, str.GetEnvironmentVariable__S__failed
mov ecx, eax
call fcn.140228b00
int3

Function at 0x140227ce0
Capabilities:
Get file size

Disassembly:
sub rsp, 0x28
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140227cfd
mov rax, qword [rsp + 0x38]
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140328948]
call fcn.140228d40
int3

Function at 0x140227e10
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140227e23
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetTempPath
call fcn.140228d40
int3
Function at 0x140227e70
Capabilities:
Get session user name

Disassembly:
sub rsp, 0x28
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x140227e83
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetUserName
call fcn.140228d40
int3

Function at 0x140227f30
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140227f51
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140328bc0]
call fcn.140228d40
int3

Function at 0x140227f70
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140227f9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x140227fa3
xor eax, eax
add rsp, 0x48
ret
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret
mov edx, eax
lea rcx, [0x140328ae0]
call fcn.140228d40
int3

Function at 0x140227fc0
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140220939
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, rax
call fcn.1402284c0
test eax, eax
jne 0x140220933
mov rcx, rbx
call fcn.1402206e0
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x48]
xor r8d, r8d
xor edx, edx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x140227fc0
add rsp, 0x20
pop rbx
ret
call fcn.14021ada0
int3
push rbx
sub rsp, 0x20
mov rax, r8
mov rbx, rcx
mov r8, rdx
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x140227fe5
add rsp, 0x20
pop rbx
ret
mov r8, rbx
lea rdx, str.SHCreateDirectory__S__failed
mov ecx, eax
call fcn.140228b00
int3

Function at 0x140228000
Capabilities:
Set current directory

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x140228019
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rbx
lea rdx, str.SetCurrentDirectory__S__failed
mov ecx, eax
call fcn.140228b00
int3

Function at 0x140228040
Capabilities:
Clear file content

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140228053
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140328970]
call fcn.140228d40
int3

Function at 0x140228070
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x140228095
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rbx
lea rdx, str.SetEnvironmentVariable__S___S__failed
mov ecx, eax
mov r8, rdi
call fcn.140228b00
int3
Function at 0x140228120
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140228134
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140328ec8]
call fcn.140228d40
int3

Function at 0x140228150
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14022816e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140228177
mov rax, rbx
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140328ed8]
call fcn.140228d40
int3

Function at 0x140228190
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1402281a3
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140328ee8]
call fcn.140228d40
int3

Function at 0x140228290
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1402282b1
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140328bd0]
call fcn.140228d40
int3
Function at 0x180001340
Capabilities:
Execute shellcode via indirect call

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 8], 0
mov r9d, 0x409
lea rax, [rax + 8]
mov qword [rsp + 0x20], rax
lea r8, [0x18000de88]
mov edx, 0xa
mov rcx, qword [0x180012390]
call fcn.1800011e0
mov rsi, rax
test rax, rax
je 0x180001586
mov rdx, rax
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x1800013c4
mov r8, rax
nop dword [rax]
movzx ecx, byte [rdx]
xor cl, 0x7b
add cl, 0x7b
mov byte [rdx], cl
inc rdx
sub r8, 1
jne 0x1800013b0
lea rcx, vtable.dllloader.0
mov qword [rsp + 0x38], rcx
mov r13, qword [0x180012390]
mov qword [rsp + 0x40], r13
test eax, eax
je 0x180001582
movsxd r12, dword [rsi + 0x3c]
add r12, rsi
mov edx, dword [r12 + 0x50]
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
movzx ebx, word [r12 + 6]
mov r8d, 0x400
mov rdx, rsi
mov rcx, rax
call fcn.1800064b0
mov rax, rbx
test ebx, ebx
jle 0x18000144e
lea rbx, [r12 + 0x11c]
mov rdi, rax
nop
mov r8d, dword [rbx - 4]
mov edx, dword [rbx]
add rdx, rsi
mov ecx, dword [rbx - 8]
add rcx, rbp
call fcn.1800064b0
add rbx, 0x28
sub rdi, 1
jne 0x180001430
cmp dword [r12 + 0x50], 0
jbe 0x180001582
movsxd rax, dword [rbp + 0x3c]
mov esi, dword [rax + rbp + 0x90]
add rsi, rbp
movabs r12, 0x8000000000000000
mov eax, dword [rsi + 0x10]
test eax, eax
jne 0x18000147d
cmp dword [rsi], eax
je 0x1800014e2
mov ecx, dword [rsi + 0xc]
add rcx, rbp
lea rbx, [rbp + rax]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x1800014d6
cmp qword [rbx], 0
je 0x1800014dc
nop dword [rax]
mov rcx, qword [rbx]
test r12, rcx
je 0x1800014b9
movzx edx, cx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
jmp 0x1800014ca
lea rdx, [rcx + rbp + 2]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
add rbx, 8
cmp qword [rbx], 0
jne 0x1800014a0
jmp 0x1800014dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsi, 0x14
jmp 0x180001472
movsxd rax, dword [rbp + 0x3c]
mov r11, qword [rax + rbp + 0x30]
sub r11, rbp
mov r10d, dword [rax + rbp + 0xb0]
add r10, rbp
cmp dword [r10], 0
je 0x180001568
mov ebx, 0xf000
mov edi, 0xa000
mov esi, 0xfff
nop
lea r9, [r10 + 8]
mov r8d, dword [r10 + 4]
sub r8, 8
shr r8, 1
test r8d, r8d
je 0x18000155b
nop word [rax + rax]
dec r8d
movzx ecx, word [r9]
movzx eax, cx
and ax, bx
cmp ax, di
jne 0x180001552
and cx, si
movzx ecx, cx
mov edx, dword [r10]
add rcx, rbp
sub qword [rdx + rcx], r11
add r9, 2
test r8d, r8d
jne 0x180001530
mov eax, dword [r10 + 4]
add r10, rax
cmp dword [r10], 0
jne 0x180001510
movsxd rax, dword [rbp + 0x3c]
mov r9d, dword [rax + rbp + 0x28]
add r9, rbp
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, r13
call r9
nop
xor eax, eax
jmp 0x180001588
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
cmp edx, 1
je 0x1800015bb
mov eax, 1
ret
mov qword [0x180012390], rcx
jmp 0x180001340
Function at 0x180001ea7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180010028]
jne 0x18000163a
rol rcx, 0x10
test cx, 0xffff
jne 0x180001636
repz ret
ror rcx, 0x10
jmp 0x180001e00
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800115b0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1800116a8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180001e85
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, [0x1800115b0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x180001ea7
mov rax, qword [rsp + 0x88]
mov qword [0x1800116a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180011648], rax
mov rax, qword [0x1800116a8]
mov qword [0x180011520], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180011630], rax
mov dword [0x180011510], 0xc0000409
mov dword [0x180011514], 1
mov rax, qword [0x180010028]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180010030]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800115a8], eax
mov ecx, 1
call fcn.180004d68
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18000c308]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800115a8], 0
jne 0x180001f2e
mov ecx, 1
call fcn.180004d68
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x18000251c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x180002390
Function at 0x180005678
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.1800034a4
xor ebx, ebx
mov rdi, rax
cmp qword [0x180012220], rbx
jne 0x18000577e
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x180005853
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180005853
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180012220], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180012228], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x180012230], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x180012240], rax
test rax, rax
je 0x180005775
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x180012238], rax
jmp 0x180005785
mov rax, qword [0x180012238]
jmp 0x18000578c
mov rax, qword [0x180012238]
mov r11, qword [0x180012240]
cmp rax, rdi
je 0x1800057f4
cmp r11, rdi
je 0x1800057f4
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x180012240]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x1800057f4
test rax, rax
je 0x1800057f4
call rsi
test rax, rax
je 0x1800057ee
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 0x1800057ee
test byte [rsp + 0x38], 1
jne 0x1800057f4
bts ebp, 0x15
jmp 0x180005832
mov rcx, qword [0x180012228]
cmp rcx, rdi
je 0x180005832
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180005832
call rax
mov rbx, rax
test rax, rax
je 0x180005832
mov rcx, qword [0x180012230]
cmp rcx, rdi
je 0x180005832
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180005832
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180012220]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180005853
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180005855
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 0x140cee0b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140cee237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140cee0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cee0c7
add dl, dl
jne 0x140cee0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cee14e
xor eax, eax
add dl, dl
jne 0x140cee0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cee205
add dl, dl
jne 0x140cee10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cee11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cee128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cee135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140cee142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140cee0d6
mov eax, 1
add dl, dl
jne 0x140cee15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cee16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cee153
sub eax, ebx
mov ebx, 1
jne 0x140cee1a4
mov ecx, 1
add dl, dl
jne 0x140cee186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cee193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cee17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cee0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140cee1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cee1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cee1b5
cmp eax, 0x7d00
jae 0x140cee1f3
cmp eax, 0x500
jb 0x140cee1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cee0d6
cmp eax, 0x7f
ja 0x140cee1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cee0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140cee22a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140cee0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor bh, 0x9f
xlatb
movsb byte [rdi], byte [rsi]
xor bl, ah
invalid
Function at 0x140001000
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x48
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0x100
call fcn.140001340
lea r9, [rsp + 0x20]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rcx, [0x1400032f0]
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140001080
lea rdx, [0x140001260]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
lea rdx, [rsp + 0x28]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___int____ptr64____ptr64]
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140001320
add rsp, 0x48
ret

Function at 0x140001c2c
Capabilities:
Parse pe header

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