joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d1148
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, rcx
xor ebx, ebx
call qword [sym.imp.USER32.dll_GetFocus]
lea rdx, str.PB_WindowID
mov rcx, r14
xor ebp, ebp
mov rdi, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rsi, rax
lea eax, [rbx + 9]
test rsi, rsi
je 0x1400d120a
lea rdx, [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x1400d134b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x68], eax
jne 0x1400d134b
mov rcx, qword [0x140bb19e0]
lea rdx, [rsi - 1]
call fcn.1400e761c
mov ebp, 1
cmp dword [rax + 0x20], 0
mov rbx, rax
jle 0x1400d134b
mov rax, qword [rax + 8]
movsxd r8, dword [rbx + 0x20]
xor edx, edx
xor ecx, ecx
lea r10d, [rbp + 8]
cmp word [rcx + rax + 2], r10w
jne 0x1400d11fb
mov r9d, 0xfa01
cmp word [rcx + rax + 4], r9w
je 0x1400d1344
inc rdx
add rcx, 6
cmp rdx, r8
jl 0x1400d11e1
mov eax, r10d
mov sil, pe_nt_image_headers64
test rdi, rdi
je 0x1400d12dd
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x1400d12dd
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1400d12dd
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1400d12dd
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1400d12dd
lea rdx, [rsp + 0x20]
mov r8d, 0x10
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClassNameW]
test ebp, ebp
jne 0x1400d12dd
lea r8d, [rbp + 5]
lea rdx, str.RichE
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x1400d12a9
lea r8d, [rbp + 4]
lea rdx, str.RICHE
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcsncmp
test eax, eax
jne 0x1400d12c8
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xb
jae 0x1400d1355
lea rdx, str.Scintilla
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400d1355
test r14, r14
je 0x1400d131f
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1400d1312
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1400d1312
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x1400d131f
mov edx, 1
mov rcx, r14
call fcn.1400d136c
test rdi, rdi
je 0x1400d1339
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetPropW]
test rax, rax
jne 0x1400d1355
test rbx, rbx
je 0x1400d1355
mov rax, qword [rbx + 0x10]
jmp 0x1400d1357
xor ebp, ebp
jmp 0x1400d1207
mov eax, 9
jmp 0x1400d120a
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x1400d15fc
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400d1627
test dl, 2
je 0x1400d161a
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
jmp 0x1400d1629
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400d1630
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
or rbx, 0xffffffffffffffff
xor edi, edi
test rcx, rcx
je 0x1400d1792
cmp word [rcx], di
je 0x1400d1792
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_wcsncpy
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call sub.msvcrt.dll_wcslen
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x1400d16cf
cmp word [rsp + 0x22], 0x3a
jne 0x1400d16cf
cmp edx, 2
jne 0x1400d16b6
lea rdx, [0x140180b3c]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400d1792
jmp 0x1400d176a
cmp word [rcx], 0x5c
je 0x1400d16db
cmp word [rcx], 0x2f
jne 0x1400d16e4
mov word [rcx], di
sub rcx, 2
jmp 0x1400d16cf
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x1400d172b
test byte [rbp + 0x130], 0x10
je 0x1400d1710
mov rbx, 0xfffffffffffffffe
jmp 0x1400d1723
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1400d1792
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x1400d1740
cmp ax, cx
je 0x1400d1756
cmp cx, 0x2f
jne 0x1400d174b
cmp ax, cx
je 0x1400d1756
cmp cx, 0x2e
jne 0x1400d1792
cmp ax, cx
jne 0x1400d1792
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400d1773
test al, 0x10
je 0x1400d1792
mov rbx, 0xfffffffffffffffe
jmp 0x1400d1792
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
lea r11, [rsp + 0x480]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x1400d17fc
Capabilities:
Copy file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1400d1817
test rdx, rdx
je 0x1400d1817
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cdqe
jmp 0x1400d1819
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400d1820
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov edi, 0x104
mov ecx, edi
call fcn.1400e86f0
mov ecx, edi
mov rdx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r8d, edi
mov rdx, rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
movsxd rbx, eax
sub edi, ebx
mov ecx, edi
call fcn.1400e8830
xor eax, eax
mov word [rsi + rbx*2], ax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140001254
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov dword [r11 + 0x18], r8d
mov qword [r11 + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rsp + 0x80]
mov eax, 2
mov rbp, qword [0x1400b1330]
mov rbx, r9
xor esi, esi
mov dword [rsp + 0x70], eax
and qword [r9], rsi
xor r8d, r8d
lea r9, [r11 + 0x10]
mov dword [rdi], eax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x140001335
and dword [rsp + 0x30], esi
lea r8d, [rsi + 1]
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
xor edx, edx
and qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x14000132a
mov edx, dword [rdi]
lea ecx, [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x14000132a
mov r8d, dword [rsp + 0x70]
mov rdx, rbp
mov rcx, rax
call fcn.140076150
mov eax, dword [rdi]
lea r8d, [rsi + 1]
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov dword [rsp + 0x30], eax
xor edx, edx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov esi, eax
test eax, eax
jne 0x14000132a
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx], rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rbx, qword [rsp + 0x60]
mov eax, esi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x140001344
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, qword [rsp + 0x60]
mov rbx, r9
mov esi, r8d
mov rbp, rdx
xor edi, edi
xor r8d, r8d
and qword [r9], rdi
xor edx, edx
lea r9, [rax + 0x28]
mov dword [r14], esi
call qword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x1400013e5
mov edx, esi
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400013da
mov r8d, esi
mov rdx, rbp
mov rcx, rax
call fcn.140076150
mov rax, qword [rbx]
lea r8d, [rdi + 1]
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov edi, eax
test eax, eax
jne 0x1400013da
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x140001404
Capabilities:
Get domain controller name

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x20]
mov rsi, r8
mov rdx, rcx
mov qword [r11 - 0x10], rax
xor ebx, ebx
mov dword [rsp + 0x20], 0x40020010
xor r9d, r9d
mov qword [r11 + 0x20], rbx
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x140001498
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
add rcx, 4
call fcn.1400796a8
lea ecx, [rax*2 + 2]
mov edi, ecx
mov edx, ecx
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
mov rcx, rax
test rax, rax
je 0x14000148b
mov rax, qword [rsp + 0x58]
mov r8d, edi
mov ebx, 1
mov rdx, qword [rax]
add rdx, 4
call fcn.140076150
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
jmp 0x1400014a6
mov edx, eax
lea rcx, str.ERROR_alibaba_net_getDC___DsGetDcName:__u_n
call fcn.140001514
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140002c04
Capabilities:
Get user security identifier

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], r9
push rdi
sub rsp, 0x50
lea rax, [r11 - 0x14]
xor esi, esi
and dword [rsp + 0x40], esi
lea r9, [r11 - 0x18]
and dword [rsp + 0x78], esi
mov rbx, rdx
mov qword [r11 - 0x28], rax
mov rdi, r8
lea rax, [r11 + 0x20]
mov rbp, rcx
mov rdx, rcx
mov qword [r11 - 0x30], rax
mov rcx, qword [rsp + 0x80]
xor r8d, r8d
and qword [r11 - 0x38], rsi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x140002cf2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140002cf2
mov edx, dword [rsp + 0x40]
lea ecx, [rsi + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x140002cf2
mov edx, dword [rsp + 0x78]
lea ecx, [rsi + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rdi], rax
test rax, rax
je 0x140002ce6
mov r8, qword [rbx]
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x30], rcx
lea r9, [rsp + 0x40]
lea rcx, [rsp + 0x78]
mov rdx, rbp
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test eax, eax
jne 0x140002cf2
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rdi], rax
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx], rax
mov rbx, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14000b8f4
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movsxd r10, dword [rcx + 0xc]
mov r9, rcx
movsxd r11, r8d
test r8d, r8d
jle 0x14000b94b
mov rsi, qword [rcx]
mov rbx, r10
movsxd rbp, dword [rcx + 8]
xor edi, edi
mov al, byte [rdi + rdx]
lea rcx, [rbx + 1]
xor byte [rbx + rsi], al
lea eax, [r10 + 1]
xor r10d, r10d
cmp rcx, rbp
cmovl r10d, eax
xor ebx, ebx
inc rdi
cmp rcx, rbp
cmovl rbx, rcx
cmp rdi, r11
jl 0x14000b922
add dword [r9 + 0x10], r8d
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov dword [r9 + 0xc], r10d
ret
Function at 0x14001e6e4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x28
mov rax, qword [rcx + 8]
mov r13, rcx
mov ebp, edx
mov r11, qword [rax + 8]
mov rax, qword [rcx + 0x28]
mov r14, qword [r11]
mov r10, qword [rax + 8]
movsxd rax, dword [r10 + 0x30]
movsxd r10, dword [r11 + 0x30]
mov r12, rax
cmp eax, r10d
mov ecx, r10d
cmovl ecx, eax
imul rbp, rax
mov dword [rsp + 0x78], ecx
cmp eax, r10d
je 0x14001e748
cmp byte [r14 + 0x10], 0
je 0x14001e748
mov ebx, 8
jmp 0x14001e838
mov rdi, rbp
mov r15, r10
sub rdi, r12
xor ebx, ebx
cmp rdi, rbp
jge 0x14001e838
and qword [rsp + 0x70], 0
mov rax, rdi
cqo
idiv r15
mov rsi, rdx
xor edx, edx
lea r10d, [rax + 1]
mov rax, qword [r13 + 8]
mov rcx, qword [rax + 8]
mov eax, 0x40000000
div dword [rcx + 0x30]
inc eax
cmp r10d, eax
je 0x14001e82d
xor r9d, r9d
lea r8, [rsp + 0x70]
mov edx, r10d
mov rcx, r14
call qword [r14 + 0x108]
mov ebx, eax
test eax, eax
jne 0x14001e81e
mov rcx, qword [rsp + 0x70]
call fcn.140010f68
mov ebx, eax
test eax, eax
jne 0x14001e81e
mov rax, qword [rsp + 0x70]
movsxd r8, dword [rsp + 0x78]
add rsi, qword [rax + 8]
mov rax, rdi
cqo
mov rcx, rsi
idiv r12
add rdx, qword [rsp + 0x80]
call fcn.140076150
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x10]
mov byte [rcx], bl
test rdi, rdi
jne 0x14001e81e
cmp dword [rsp + 0x88], edi
jne 0x14001e81e
mov rax, qword [r13 + 0x28]
mov rcx, qword [rax + 8]
mov edx, dword [rcx + 0x3c]
mov eax, edx
shr eax, 0x18
mov byte [rsi + 0x1c], al
mov eax, edx
shr eax, 0x10
mov byte [rsi + 0x1d], al
mov eax, edx
shr eax, 8
mov byte [rsi + 0x1e], al
mov byte [rsi + 0x1f], dl
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14001e82d
call fcn.140010974
add rdi, r15
test ebx, ebx
je 0x14001e753
mov eax, ebx
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400374bc
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
mov ebx, r8d
lea r9, str.sqlite_master
mov dword [rax - 0x10], ebx
mov rdi, rdx
mov qword [rax - 0x18], rdx
mov r8, rdx
lea rdx, str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
mov rsi, rcx
call fcn.14003bbd4
test ebx, ebx
jne 0x14003750f
mov r9, rdi
lea r8, str.sqlite_master
lea rdx, str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
mov rcx, rsi
call fcn.14003bbd4
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400484b8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r15, qword [rcx]
mov rdi, rcx
mov rbp, qword [rcx + 0x10]
mov rsi, qword [rcx + 0x88]
jmp 0x140048592
movsxd r8, dword [rsi + 0x10]
xor edx, edx
mov rax, qword [r15 + 0x20]
mov r9, r8
mov ebx, dword [rsi + 0x14]
mov rcx, rdi
shl r9, 5
mov dword [rsp + 0x20], 0x61
mov r9, qword [r9 + rax + 0x18]
mov r9, qword [r9 + 0x68]
call fcn.140048070
mov r8, qword [rsi + 8]
lea r14d, [rbx - 1]
mov edx, r14d
mov rcx, rbp
mov r8, qword [r8]
call fcn.1400209c8
lea r8, [0x140098600]
mov edx, 0xc
mov rcx, rbp
call fcn.140020eac
test rax, rax
je 0x14004859b
mov ecx, 0x10
mov dword [rax + 8], ebx
mov word [rax + 0x4a], cx
lea edx, [rbx + 2]
lea ecx, [rbx + 1]
mov dword [rax + 0xc], edx
mov dword [rax + 0x68], ecx
mov dword [rax + 0x3c], ebx
mov dword [rax + 0x4c], r14d
mov dword [rax + 0x54], ebx
mov dword [rax + 0x84], ebx
mov dword [rax + 0x94], ebx
mov dword [rax + 0xb0], edx
mov dword [rax + 0xac], ebx
mov dword [rax + 0xf8], ebx
cmp dword [rdi + 0x34], 0
jne 0x14004858f
mov dword [rdi + 0x34], 1
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1400484e6
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x1400485b4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, qword [rcx + 0x88]
mov rbx, rcx
mov r13, qword [rcx + 0x10]
mov r15, qword [rcx]
test rdi, rdi
je 0x1400486b9
mov r12d, 8
movsxd rbp, dword [rdi + 0x10]
mov al, byte [rbx + 0x1f]
mov r14d, dword [rdi + 0x14]
shl rbp, 5
add rbp, qword [r15 + 0x20]
test al, al
jne 0x14004860f
inc dword [rbx + 0x38]
mov esi, dword [rbx + 0x38]
jmp 0x14004861e
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov esi, dword [rbx + rax*4 + 0xbc]
mov r9d, dword [r13 + 0x90]
lea r8d, [r14 + 2]
add r9d, 7
mov dword [rsp + 0x20], r14d
mov edx, 0x37
mov rcx, r13
call fcn.14002094c
mov r9, qword [rbp + 0x18]
xor edx, edx
mov r8d, dword [rdi + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], 0x62
mov r9, qword [r9 + 0x68]
call fcn.140048070
lea r8, [0x140099050]
mov edx, 5
mov rcx, r13
call fcn.140020eac
test rax, rax
je 0x1400486b9
mov dword [rax + 0x3c], esi
lea edx, [r14 + 1]
mov dword [rax + 4], edx
lea ecx, [r14 - 1]
mov dword [rax + 0x20], edx
mov dword [rax + 0x34], ecx
mov dword [rax + 0x54], edx
mov dword [rax + 0x50], esi
mov word [rax + 0x4a], r12w
test esi, esi
je 0x1400486ad
cmp byte [rbx + 0x1f], r12b
jae 0x1400486ad
movzx eax, byte [rbx + 0x1f]
mov dword [rbx + rax*4 + 0xbc], esi
inc byte [rbx + 0x1f]
mov rdi, qword [rdi]
test rdi, rdi
jne 0x1400485f0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140072cf4
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
xor ecx, ecx
call fcn.140072d88
xor edx, edx
lea rcx, [0x140072d74]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov ecx, 1
call fcn.14007d364
mov rcx, rax
call fcn.14007dbd8
mov edx, dword [0x1400b17e0]
mov ecx, eax
call fcn.14007d9d8
mov ecx, 2
call fcn.14007d364
mov rcx, rax
call fcn.14007dbd8
mov edx, dword [0x1400b17d8]
mov ecx, eax
call fcn.14007d9d8
mov ecx, dword [0x1400b17dc]
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
xor ecx, ecx
cmp ebx, 0xc000004b
jne 0x140072d6d
call qword [sym.imp.KERNEL32.dll_ExitThread]
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140072e5c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov esi, 0xc0000001
test rcx, rcx
je 0x140072edd
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test eax, eax
je 0x140072edd
mov edx, ebp
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140072edd
mov r8d, ebp
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp ebp, eax
je 0x140072eca
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, rax
test rax, rax
je 0x140072edd
mov rcx, rbx
call fcn.140072ef4
mov rcx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140072ef4
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
lea rdx, [rsp + 0x38]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor esi, esi
mov rdi, rax
test rax, rax
je 0x140072fae
cmp dword [rsp + 0x38], esi
jle 0x140072fae
mov rcx, qword [rax]
lea rdx, [0x1400a70d8]
call fcn.140076ae4
mov rbx, rax
test rax, rax
je 0x140072f7c
mov rdx, rax
lea ecx, [rsi + 0x40]
sub rdx, qword [rdi]
sar rdx, 1
lea rdx, [rdx*2 + 2]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140072f7c
mov rcx, qword [rdi]
call fcn.1400796a8
sub rbx, qword [rdi]
mov rcx, rsi
mov rdx, qword [rdi]
sar rbx, 1
lea r8, [rbx + rbx]
call fcn.140076150
lea rax, str._all
mov ecx, 1
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.1400734f4
test rsi, rsi
je 0x140072fa5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14007fab0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14007f8ac
Function at 0x1400856ac
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140085733
mov rsi, rbx
cmp word [rax], bp
je 0x1400856f2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400856dc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400856d8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14008108c
mov rdi, rax
test rax, rax
je 0x140085720
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140076150
mov rbp, rdi
xor ecx, ecx
call fcn.140081050
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14008830c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140088322
mov al, 1
jmp 0x140088382
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140088333
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140088380
mov ecx, dword [rcx + 0x18]
nop
call fcn.140084124
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140088380
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140088380
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140088380
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140088382
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14001fba0]
mov dword [rax], 1
mov rax, qword [0x14001fbb0]
mov dword [rax], 1
mov rax, qword [0x14001fbc0]
mov dword [rax], 1
mov rax, qword [0x14001fae0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret