joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001380
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x800
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x7f0], rax
xor ebx, ebx
lea rdx, [rsp + 0x60]
mov ecx, 0x202
mov edi, ebx
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jns 0x1800013bf
or eax, 0xffffffff
jmp 0x1800014a1
mov edx, 2
mov dword [rsp + 0x28], ebx
mov ecx, edx
mov qword [rsp + 0x810], rsi
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180001491
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rsp + 0x200]
mov dword [rsp + 0x28], 0x5f0
mov edx, 0x4004747f
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x180001448
mov ecx, dword [rsp + 0x50]
movabs rax, 0xd79435e50d79435f
mul rcx
mov rdi, rdx
shr rdi, 6
movsxd r9, edi
mov r8d, ebx
mov rcx, rbx
test edi, edi
jle 0x180001488
lea rdx, [rsp + 0x200]
nop dword [rax]
movsxd rax, r8d
imul r10, rax, 0x4c
mov eax, dword [rdx]
and al, 5
cmp al, 1
je 0x180001480
inc r8d
inc rcx
add rdx, 0x4c
cmp rcx, r9
jl 0x180001460
jmp 0x180001488
mov ebx, dword [rsp + r10 + 0x208]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rsi, qword [rsp + 0x810]
mov eax, ebx
mov rcx, qword [rsp + 0x7f0]
xor rcx, rsp
call fcn.18000a290
mov rbx, qword [rsp + 0x818]
add rsp, 0x800
pop rdi
ret

Function at 0x1800014d0
Capabilities:
Get session user name

Disassembly:
sub rsp, 0x148
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor edx, edx
mov dword [rsp + 0x20], 0x100
mov r8d, 0x100
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x180001531
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.18000a290
add rsp, 0x148
ret
mov ecx, dword [rsp + 0x20]
mov qword [rsp + 0x140], rbx
call qword [sym.imp.msvcrt.dll_malloc]
mov r8d, dword [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_memcpy
mov rax, rbx
mov rbx, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.18000a290
add rsp, 0x148
ret

Function at 0x180001580
Capabilities:
Get hostname

Disassembly:
sub rsp, 0x148
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor edx, edx
mov dword [rsp + 0x20], 0x100
mov r8d, 0x100
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x1800015e1
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.18000a290
add rsp, 0x148
ret
mov ecx, dword [rsp + 0x20]
mov qword [rsp + 0x140], rbx
call qword [sym.imp.msvcrt.dll_malloc]
mov r8d, dword [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_memcpy
mov rax, rbx
mov rbx, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.18000a290
add rsp, 0x148
ret
Function at 0x180001720
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov dword [rsp + 0x70], 0
lea rax, [rsp + 0x68]
mov word [rsp + 0x74], 0x500
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x1800017b9
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x60]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x60], ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
movzx eax, byte [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18000a290
add rsp, 0x80
pop rbx
ret
Function at 0x180001f20
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
lea rax, [0x180010031]
mov r8d, 2
mov r9d, 0x400
lea r10, str.LOCALTION_OF_BEACON_PROFILE_KEY
nop dword [rax]
lea rcx, [r8 - 2]
and ecx, 0xfff
movzx ecx, byte [rcx + r10]
xor byte [rax - 1], cl
lea rcx, [r8 - 1]
and ecx, 0xfff
movzx ecx, byte [rcx + r10]
xor byte [rax], cl
mov rcx, r8
and ecx, 0xfff
movzx ecx, byte [rcx + r10]
xor byte [rax + 1], cl
lea rdx, [r8 + 1]
and edx, 0xfff
movzx edx, byte [rdx + r10]
xor byte [rax + 2], dl
add r8, 4
lea rax, [rax + 4]
sub r9, 1
jne 0x180001f50
xor edx, edx
mov r8d, 0x1000
mov rcx, r10
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x28]
call fcn.180002000
nop
mov r9, qword [rax]
mov r8d, 0x1000
lea rdx, str.LOCALTION_OF_BEACON_PROFILE
mov rcx, rax
call qword [r9 + reloc.WS2_32.dll_htonl]
mov rbx, rax
xor edx, edx
mov r8d, 0x1000
lea rcx, str.LOCALTION_OF_BEACON_PROFILE
call sub.msvcrt.dll_memset
mov rax, rbx
add rsp, 0x50
pop rbx
ret
Function at 0x1800029d0
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
shr eax, 4
and eax, 1
add rsp, 0x28
ret
Function at 0x180003960
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r14, r8
mov ecx, 0x8000
mov rsi, rdx
call qword [sym.imp.msvcrt.dll_malloc]
mov r9, rbp
lea r8, str._s
mov rcx, rax
mov edx, 0x8000
mov rbx, rax
call fcn.180001090
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rbx
mov r15, rax
call qword [sym.imp.msvcrt.dll_free]
cmp r15, 0xffffffffffffffff
je 0x180003a9a
mov qword [rsp + 0x40], rdi
nop dword [rax + rax]
test byte [rsi], 0x10
je 0x180003a6b
movzx eax, byte [rsi + 0x2c]
cmp al, byte [0x18000c404]
jne 0x1800039f5
movzx eax, byte [rsi + 0x2d]
cmp al, byte [0x18000c405]
je 0x180003a78
movzx eax, byte [rsi + 0x2c]
cmp al, byte [0x18000c408]
jne 0x180003a19
movzx eax, byte [rsi + 0x2d]
cmp al, byte [0x18000c409]
jne 0x180003a19
movzx eax, byte [rsi + 0x2e]
cmp al, byte [0x18000c40a]
je 0x180003a78
mov ecx, 0x8000
call qword [sym.imp.msvcrt.dll_malloc]
lea r9, [rsi + 0x2c]
mov edx, 0x8000
mov rcx, rax
lea r8, [0x18000c3f8]
mov rdi, rax
call fcn.180001090
mov r9, r14
lea rdx, [rsi + 0x2c]
mov r8, rsi
mov rcx, rbp
call fcn.1800038d0
mov r8d, 1
mov rdx, rdi
mov rcx, rbp
call r14
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
jmp 0x180003a78
xor r8d, r8d
lea rdx, [rsi + 0x2c]
mov rcx, rbp
call r14
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1800039d0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
Function at 0x180004030
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
jne 0x180004098
mov eax, dword [rcx + 4]
xor r8d, r8d
mov r9d, dword [rcx]
xor edx, edx
add rcx, 8
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180004094
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x18000408e
mov r9d, dword [rdi]
lea rcx, [rdi + 8]
xor r8d, r8d
mov dword [rsp + 0x20], 8
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180004094
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [rdi + 8]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180004110
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
mov edx, 0x18
lea rcx, [rsp + 0x30]
mov r8d, 0xf0000000
call fcn.180003fe0
lea rcx, [rsp + 0x30]
call fcn.180004030
test rax, rax
je 0x1800041c6
lea rcx, [rsp + 0x30]
call fcn.180004030
mov rcx, rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1800041c0
mov rcx, qword [rdi]
xor r9d, r9d
mov rdx, rbx
lea r8d, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1800041c0
mov r8, qword [rsp + 0x70]
lea r9, [rsp + 0x68]
xor eax, eax
mov dword [rsp + 0x68], 0x20
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov qword [r8], rax
mov qword [r8 + 8], rax
lea edx, [rax + 2]
mov qword [r8 + 0x10], rax
mov qword [r8 + 0x18], rax
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1800041c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
or ebx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.180004000
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1800041e0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edx, 4
jmp fcn.1800041f0

Function at 0x1800041f0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor r8d, r8d
mov ebx, edx
mov rdi, rcx
lea rcx, [rsp + 0x20]
lea edx, [r8 + 1]
call fcn.180003fe0
lea rcx, [rsp + 0x20]
call fcn.180004030
test rax, rax
je 0x180004235
mov r8, rdi
mov edx, ebx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x180004235
xor ebx, ebx
jmp 0x180004238
or ebx, 0xffffffff
lea rcx, [rsp + 0x20]
call fcn.180004000
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180006500
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x18000653c
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.18000a51c
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x1800065f8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x18000665e
test ebx, ebx
jne 0x18000665e
lea ecx, [rax + 2]
call fcn.18000a51c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.18000a290
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x140001900
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movsxd rdi, r8d
mov rcx, qword [rcx]
mov rsi, rdx
test rcx, rcx
je 0x140001926
call qword [sym.imp.USER32.dll_DestroyWindow]
and qword [rsp + 0x58], 0
lea rdx, str.ComboBoxEx32
or qword [rbx + 8], 0xffffffffffffffff
mov r9d, 0x44200046
mov rax, qword [0x1401790a8]
xor r8d, r8d
mov qword [rsp + 0x50], rax
xor ecx, ecx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], 0xdc
mov dword [rsp + 0x30], 0x3c
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_CreateWindowExW]
xor r9d, r9d
mov edx, 0x408
mov rcx, rax
mov qword [rbx], rax
lea r8d, [r9 + 4]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x407
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x1400019b2
mov rcx, rax
call fcn.1400c3ed0
mov rcx, rbx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
jmp fcn.1400019cc
Function at 0x1400019cc
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x248]
sub rsp, 0x340
mov rax, qword [0x14013b1d0]
xor rax, rsp
mov qword [rbp + 0x238], rax
mov rdi, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x140001b4d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x14b
call qword [sym.imp.USER32.dll_SendMessageW]
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x140001ab5
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x60]
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x4209
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rcx, qword [rdi]
xor r8d, r8d
mov r9, rax
mov edx, 0x402
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x1401a0dd0]
mov rdx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov byte [rsp + 0x40], 0
lea rax, [rsp + 0x70]
or qword [rsp + 0x38], 0xffffffffffffffff
lea rdx, [rsp + 0x70]
and dword [rsp + 0x30], 0
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov rcx, rdi
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
lea r8d, [r9 + 1]
call fcn.140001b78
and qword [rsp + 0x58], 0
lea rcx, [rsp + 0x58]
call qword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jne 0x140001ae1
mov rdx, qword [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call fcn.140001370
test al, al
jne 0x140001b45
call fcn.1400c2b4c
mov esi, eax
xor ebx, ebx
bt esi, ebx
jae 0x140001b3e
lea r9d, [rbx + 0x41]
mov edx, 0xa
lea r8, str._c:_
lea rcx, [rbp + 0x220]
call fcn.1400026d0
mov byte [rsp + 0x40], 1
lea rdx, [rbp + 0x220]
or qword [rsp + 0x38], 0xffffffffffffffff
xor r9d, r9d
mov dword [rsp + 0x30], 2
xor r8d, r8d
and qword [rsp + 0x28], 0
mov rcx, rdi
or dword [rsp + 0x20], 0xffffffff
call fcn.140001b78
inc ebx
cmp ebx, 0x20
jl 0x140001aea
mov rcx, rdi
call fcn.140001f60
mov rcx, qword [rbp + 0x238]
xor rcx, rsp
call fcn.1400ec220
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140001b78
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov rax, qword [0x14013b1d0]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov rsi, qword [rbp + 0x2a8]
mov r13, rcx
mov ecx, 0x1010
mov rbx, r9
mov r15d, r8d
mov r12, rdx
call fcn.1400ebe4c
mov rcx, r12
mov r14, rax
mov dword [rax], r15d
mov qword [rax + 8], rbx
call fcn.14008c404
lea rdx, [r14 + 0x10]
sub rdx, rax
xor r8d, r8d
movzx ecx, word [rax]
mov word [rdx + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x140001be1
mov ebx, dword [rbp + 0x2a0]
or rdi, 0xffffffffffffffff
cmp byte [rbp + 0x2c0], r8b
jne 0x140001c4b
cmp ebx, edi
je 0x140001c0d
test rsi, rsi
jne 0x140001c4b
mov eax, 0x4203
lea r8, [rsp + 0x70]
cmp r15d, 2
mov r9d, 0x2b8
lea ecx, [rax - 2]
cmovne eax, ecx
xor edx, edx
mov rcx, r12
mov dword [rsp + 0x20], eax
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp ebx, edi
lea rax, [rbp - 0x80]
cmove ebx, dword [rsp + 0x78]
test rsi, rsi
cmovne rax, rsi
mov rsi, rax
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x38]
call fcn.1400ed430
mov rax, qword [rbp + 0x2b8]
lea r9, [rsp + 0x30]
mov rcx, qword [r13]
test rsi, rsi
mov qword [rsp + 0x38], rax
mov edx, 0x40b
mov eax, dword [rbp + 0x2b0]
cmovne rdi, rsi
xor r8d, r8d
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x30], 0x37
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x4c], ebx
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x58], eax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.1400ec220
mov rbx, qword [rsp + 0x390]
add rsp, 0x340
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001d24
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x300
mov rax, qword [0x14013b1d0]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rbx, qword [rsp + 0x340]
mov r11, r9
mov eax, r8d
mov r10, rdx
cmp r8d, 0x4e
jne 0x140001e1f
cmp dword [rbx + 0x10], 0xfffffcd9
je 0x140001d8e
cmp dword [rbx + 0x10], 0xfffffcda
jne 0x140001d87
cmp dword [rbx + 0x228], 2
jne 0x140001d87
lea rcx, [0x140167be0]
call fcn.140001e54
xor eax, eax
jmp 0x140001e30
mov rax, qword [rbx + 0x48]
mov ebp, dword [rbx + 0x18]
mov ecx, dword [rax]
cmp ecx, 4
jne 0x140001da2
mov rsi, qword [rax + 8]
jmp 0x140001da6
lea rsi, [rax + 0x10]
xor edi, edi
cmp ecx, 4
lea eax, [rdi + 8]
cmove edi, eax
test bpl, 1
je 0x140001de5
mov eax, edi
lea r8, [rsp + 0x30]
bts eax, 9
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], eax
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x140001de5
lea rax, [rsp + 0x40]
mov qword [rbx + 0x28], rax
test bpl, 6
je 0x140001e15
or edi, 0x4001
lea r8, [rsp + 0x30]
mov r9d, 0x2b8
mov dword [rsp + 0x20], edi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [rsp + 0x38]
mov dword [rbx + 0x38], eax
mov dword [rbx + 0x34], eax
bts dword [rbx + 0x18], 0x1c
jmp 0x140001d87
mov r9, rbx
mov r8, r11
mov edx, eax
mov rcx, r10
call qword [sym.imp.USER32.dll_DefWindowProcW]
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1400ec220
mov rbx, qword [rsp + 0x320]
add rsp, 0x300
pop rdi
pop rsi
pop rbp
ret

Function at 0x140001e54
Capabilities:
Check if file exists
Get file attributes
Get graphical window text

Disassembly:
push rbx
mov eax, 0x1030
call fcn.1400ec1b0
sub rsp, rax
mov rax, qword [0x14013b1d0]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov rcx, qword [rcx]
mov r8d, 0x800
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x20]
call fcn.140045f90
mov rcx, qword [rbx]
lea r9, [rsp + 0x20]
or r8, 0xffffffffffffffff
mov edx, 0x158
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rax, 0xffffffffffffffff
je 0x140001ee9
mov rcx, qword [rbx]
xor r9d, r9d
mov r8, rax
mov edx, 0x14e
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rbx
call fcn.140001748
cmp byte [0x140142c44], 0
mov rcx, rbx
je 0x140001ee2
call fcn.140002408
jmp 0x140001f45
call fcn.14000260c
jmp 0x140001f45
cmp byte [0x140142c44], 0
je 0x140001f00
lea rcx, [rsp + 0x20]
call fcn.140078734
test al, al
je 0x140001f31
lea rcx, [rsp + 0x20]
call fcn.14008c54c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001f31
test al, 0x10
jne 0x140001f31
lea rdx, [rsp + 0x20]
lea rcx, [0x140168030]
call fcn.140040cd0
jmp 0x140001f45
mov r8b, 1
lea rdx, [rsp + 0x20]
lea rcx, [0x140168030]
call fcn.14003e3d0
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400ec220
add rsp, 0x1030
pop rbx
ret
Function at 0x140008eb4
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0xf90]
mov eax, 0x1090
call fcn.1400ec1b0
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x10a0], rbx
mov qword [rsp + 0x10a8], rsi
mov qword [rsp + 0x10b0], rdi
mov rax, qword [0x14013b1d0]
xor rax, rsp
mov qword [rbp + 0xf80], rax
xor ebx, ebx
cmp dword [0x14015aa98], ebx
je 0x140009144
xor r9d, r9d
mov r8b, 1
lea rdx, [0x140159a62]
lea rdi, [0x140165250]
mov rcx, rdi
call fcn.140005a94
cmp eax, 1
jne 0x140009144
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x30], rbx
mov eax, dword [0x140152640]
add eax, 0xfffffffd
mov r9b, 1
lea r8, [rsp + 0x30]
mov rcx, rdi
cmp eax, 1
jbe 0x140008f64
lea rdx, [rsp + 0x38]
call fcn.140004f80
jmp 0x140008f6e
lea rdx, [rsp + 0x40]
call fcn.140005090
cmp qword [rsp + 0x30], rbx
je 0x140009144
mov edi, 0x800
mov r8d, edi
lea rdx, [rbp - 0x80]
lea rcx, [0x14015aa68]
call fcn.14008c940
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140008fdf
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
movabs r9, 0x7fffffff7fffffff
mov r8d, edi
lea rdx, [rbp - 0x80]
lea rcx, [0x14014e620]
call fcn.14008f00c
cmp eax, 6
ja 0x140008fdf
mov ecx, 0x4a
bt ecx, eax
jae 0x140008fdf
mov rcx, qword [rsp + 0x38]
jmp 0x14000913f
lea rdx, [0x14010aa38]
lea rcx, [rbp - 0x80]
call fcn.1400699dc
mov rdi, rax
test rax, rax
jne 0x140009016
mov ecx, 0x1f6
call fcn.1400868b8
mov rdx, rax
lea r8, [rbp - 0x80]
lea rcx, [0x140159a62]
call fcn.1400d2d44
jmp 0x140008fd5
mov eax, dword [0x140152640]
cmp eax, 3
jne 0x140009078
mov rdx, rdi
mov ecx, 0xff
call fcn.1400f35ac
mov rdx, rdi
mov ecx, 0xfe
call fcn.1400f35ac
cmp qword [rsp + 0x30], rbx
jbe 0x140009128
mov rax, qword [rsp + 0x40]
movzx ecx, word [rax + rbx*2]
mov rdx, rdi
call fcn.1400f35ac
mov rax, qword [rsp + 0x40]
movzx ecx, byte [rax + rbx*2 + 1]
mov rdx, rdi
call fcn.1400f35ac
inc rbx
cmp rbx, qword [rsp + 0x30]
jb 0x140009046
jmp 0x140009128
cmp eax, 4
jne 0x1400090f9
mov rdx, rdi
mov ecx, 0xef
call fcn.1400f35ac
mov rdx, rdi
mov ecx, 0xbb
call fcn.1400f35ac
mov rdx, rdi
mov ecx, 0xbf
call fcn.1400f35ac
mov rdx, qword [rsp + 0x30]
shl rdx, 2
lea rcx, [rsp + 0x50]
call fcn.140003dd8
nop
mov r8, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.14008f610
or r8, 0xffffffffffffffff
inc r8
cmp byte [rsi + r8], bl
jne 0x1400090d3
mov r9, rdi
mov edx, 1
mov rcx, rsi
call fcn.1400f390c
nop
lea rcx, [rsp + 0x50]
call fcn.140007d04
jmp 0x140009128
cmp eax, 2
jne 0x140009111
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov rdx, rcx
call qword [sym.imp.USER32.dll_CharToOemBuffA]
mov r9, rdi
mov r8, qword [rsp + 0x30]
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.1400f390c
mov rcx, rdi
call fcn.1400f3540
mov rcx, qword [rsp + 0x38]
call fcn.1400ec2cc
mov rcx, qword [rsp + 0x40]
call fcn.1400ec2cc
mov rcx, qword [rbp + 0xf80]
xor rcx, rsp
call fcn.1400ec220
lea r11, [rsp + 0x1090]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140009d54
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x830
mov rax, qword [0x14013b1d0]
xor rax, rsp
mov qword [rsp + 0x820], rax
xor ebp, ebp
mov rdi, rcx
mov word [rcx], bp
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov r8d, 0x400
lea rdx, [rsp + 0x20]
mov rcx, rax
mov ebx, ebp
call fcn.14008c0b4
mov rsi, rax
test rax, rax
je 0x140009e03
test ebx, ebx
jne 0x140009db3
mov ebx, 1
jmp 0x140009de0
movzx edx, word [rsp + 0x20]
lea rcx, [0x14014e620]
call fcn.14005c8dc
test al, al
jne 0x140009de0
cmp ebx, 1
jne 0x140009dde
movzx eax, word [rsp + 0x20]
mov word [rdi], ax
movzx eax, word [rsp + 0x22]
mov word [rdi + 2], ax
inc ebx
mov r8d, 0x400
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14008c0b4
mov rsi, rax
test rax, rax
jne 0x140009da8
cmp ebx, 2
jne 0x140009e03
mov word [rdi], bp
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.1400ec220
lea r11, [rsp + 0x830]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret