joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400123c0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113cf
movzx eax, al
test eax, eax
jne 0x1400123e0
mov ecx, 7
call fcn.14001133e
nop
mov byte [rsp + 0x20], 0
call fcn.140011352
mov byte [rsp + 0x21], al
cmp dword [0x14001d888], 1
jne 0x140012404
mov ecx, 7
call fcn.14001133e
nop
jmp 0x14001245c
cmp dword [0x14001d888], 0
jne 0x140012457
mov dword [0x14001d888], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111b8
test eax, eax
je 0x140012438
mov eax, 0xff
jmp 0x140012561
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011348
mov dword [0x14001d888], 2
jmp 0x14001245c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001132a
call fcn.1400112c1
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400124b9
mov rcx, qword [rsp + 0x30]
call fcn.14001116d
movzx eax, al
test eax, eax
je 0x1400124b9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140024020]
nop
call fcn.1400112f8
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400124ed
mov rcx, qword [rsp + 0x38]
call fcn.14001116d
movzx eax, al
test eax, eax
je 0x1400124ed
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14001138e
nop
call fcn.140012610
mov dword [rsp + 0x28], eax
call fcn.14001129e
movzx eax, al
test eax, eax
jne 0x14001250c
mov ecx, dword [rsp + 0x28]
call fcn.14001105a
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001251b
call fcn.140011398
nop
xor edx, edx
mov cl, 1
call fcn.14001115e
mov eax, dword [rsp + 0x28]
jmp 0x140012561
add rsp, 0x68
ret
Function at 0x180001ac0
Capabilities:
Access peb ldr_data
Encode data using xor
Get common file path
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x468
mov rax, qword [0x180034040]
xor rax, rsp
mov qword [rsp + 0x450], rax
test edx, edx
je 0x180001c97
cmp edx, 1
jne 0x180001cb4
cmp qword [0x180035d38], 0
jne 0x180001b6a
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.180017820
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor edx, edx
lea rcx, [rsp + 0x240]
mov r8d, 0x208
call fcn.180017820
lea rax, [0x180021750]
mov edx, 0x104
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rsp + 0x240]
call fcn.180002450
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x180035d38], rax
mov rax, qword [0x180035d40]
test rax, rax
jne 0x180001c5b
mov rax, qword gs:[0x60]
mov qword [rsp + 0x470], rbx
mov qword [rsp + 0x478], rbp
mov qword [rsp + 0x460], rdi
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rbp, qword [rax]
mov r11, rbp
nop dword [rax]
mov r9, qword [r11 + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x88]
add rbx, r9
cmp rbx, r9
je 0x180001c24
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x180001c24
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r8d
mov edx, 0xcf768950
lea rax, [rdi + r8*4]
mov eax, dword [rax + r9]
add rax, r9
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x180001c1f
nop dword [rax]
movsx ecx, cl
lea rax, [rax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax - 1]
test cl, cl
jne 0x180001c00
cmp edx, 0x17bf230c
je 0x180001c7e
test r8d, r8d
jne 0x180001be0
mov rax, qword [r11]
mov r11, rax
cmp rax, rbp
je 0x180001c3a
cmp qword [rax + 0x30], 0
jne 0x180001bb0
xor eax, eax
mov rdi, qword [rsp + 0x460]
mov rbp, qword [rsp + 0x478]
mov rbx, qword [rsp + 0x470]
mov qword [0x180035d40], rax
mov qword [rsp + 0x28], 0
lea r8, [0x1800016e0]
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call rax
jmp 0x180001cb4
mov ecx, dword [rbx + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x180001c3c
mov rcx, qword [0x180035d38]
test rcx, rcx
je 0x180001cb4
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x180035d38], 0
mov eax, 1
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1800029d0
add rsp, 0x468
ret
Function at 0x18000b670
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18000b6df
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000b6df
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000b6df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18000b6df
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000b6df
cmp dword [rcx + 0x84], 0xe
jbe 0x18000b6df
cmp dword [rcx + 0xf8], 0
je 0x18000b6df
mov ecx, ebx
call fcn.18000b784
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18000b578
nop
cmp dword [rbp + 0x20], 0
jne 0x18000b740
call fcn.18000eb6c
cmp eax, 1
jne 0x18000b730
xor dl, dl
jmp 0x18000b73a
call fcn.18000eb38
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x18000b74b
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18000b754
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18000b670
Function at 0x18001064c
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18001067c
xor eax, eax
jmp 0x18001073f
mov rbp, rbx
cmp word [rax], si
je 0x1800106a1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180010688
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180010684
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18001056c
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x1800106e2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180010675
call fcn.18000c710
mov rdi, rax
test rax, rax
jne 0x1800106f8
xor ecx, ecx
call fcn.18000c6b0
jmp 0x1800106d7
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18001056c
test eax, eax
jne 0x180010729
mov rcx, rdi
call fcn.18000c6b0
jmp 0x180010733
xor ecx, ecx
call fcn.18000c6b0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1800174e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180017508
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180017508
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14000192c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001976
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001976
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001976
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001976
cmp dword [rcx + 0x84], 0xe
jbe 0x140001976
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001978
xor al, al
add rsp, 0x28
ret
Function at 0x140001163
Capabilities:
Write file on windows

Disassembly:
jmp 0x1401caf20
push rbp
push rsi
push rdi
push r12
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov r12, rcx
mov al, 0x20
lea rdi, [0x140000000]
mov dword [0x140898f1c], 0
mov byte [0x140761848], 0x43
movsxd r9, dword [r12]
mov dword [0x140761844], r9d
mov byte [0x140761849], 0x4c
mov byte [0x14076184a], 0x4f
mov byte [0x14076184b], 0x53
mov byte [0x14076184c], 0x45
mov byte [0x14076184d], al
mov byte [0x14076184e], al
mov byte [0x14076184f], al
cmp r9, 0x32
ja 0x1401cb083
imul rax, r9, 0x138
mov rsi, qword [rdi + rax + 0x75da18]
cmp rsi, 0xffffffffffffffff
je 0x1401cafea
mov rdx, qword [rdi + rax + 0x75da30]
test rdx, rdx
je 0x1401cafea
cmp dword [rdi + rax + 0x75da3c], 0
je 0x1401cafea
mov r8d, dword [rdi + rax + 0x75da20]
test r8d, r8d
je 0x1401cafea
mov rax, rsp
mov rcx, rsi
lea r9, [rbp]
mov qword [rax + 0x20], 0
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x1401cb08d
movsxd r9, dword [r12]
imul r10, r9, 0x138
mov r11, rsp
lea rcx, [rdi + r10 + 0x75da4c]
mov edx, 0x104
lea r8, [0x1404eb6ec]
mov r9d, 1
xor eax, eax
mov dword [rcx - 0x2c], eax
mov dword [rcx - 0x28], eax
mov dword [rcx - 0x24], eax
mov dword [rcx - 0x10], eax
mov qword [r11 + 0x20], 0
call fcn.1400025f4
movsxd rax, dword [r12]
imul rdx, rax, 0x138
mov dword [rdi + rdx + 0x75da48], 0
lea rcx, [rdi + rdx + 0x75da30]
cmp qword [rcx], 0
je 0x1401cb052
call fcn.140003643
cmp rsi, 0xffffffffffffffff
je 0x1401cb060
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
movsxd rax, dword [r12]
imul rdx, rax, 0x138
mov qword [rdi + rdx + 0x75da18], 0xffffffffffffffff
mov qword [rdi + rdx + 0x75da30], 0
lea rsp, [rbp + 8]
pop r12
pop rdi
pop rsi
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
mov dword [0x140898f1c], eax
movsxd r9, dword [r12]
jmp 0x1401cafea
Function at 0x1400017bc
Capabilities:
Get graphical window text

Disassembly:
jmp 0x1401bdd20
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x548
lea rbp, [rsp + 0x30]
mov r15, r8
mov r14, rdx
mov r13, rcx
mov r12d, 0xffffffff
test byte [0x140735de0], 1
jne 0x1401bdf89
mov rdx, r15
mov r8d, 0x104
mov rcx, qword [r13]
call sub.USER32.dll_GetWindowTextA
mov edx, 4
lea rcx, [rbp + 0x498]
lea r8, [0x140660594]
mov r9d, 0x32
lea rbx, str.Save_changes_to
lea rsi, [0x1404ea31c]
mov r10d, 1
lea rdi, [rbp + 0x500]
mov qword [rcx], rbx
mov qword [rcx + 8], 0x10
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], 0x104
mov qword [rcx + 0x20], rsi
mov qword [rcx + 0x28], r10
mov byte [rcx + 0x68], 0
mov qword [rcx + 0x30], rdi
mov qword [rcx + 0x38], r10
call fcn.1400048cc
mov edx, 2
lea rcx, [rbp + 0x4d8]
lea r8, [0x1406605c6]
mov r9d, 5
lea rbx, [0x1404ea320]
lea rsi, [rbp + 0x510]
mov qword [rcx], rbx
mov qword [rcx + 8], 4
mov byte [rcx + 0x38], 0
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 1
call fcn.1400048cc
lea rdx, [0x140660594]
lea r8, [0x1406605c6]
mov r9d, 0x33
mov rcx, qword [r13]
call sub.USER32.dll_MessageBoxA
cmp eax, 6
jne 0x1401bdf7c
mov rcx, r14
mov edx, 0x104
call fcn.140002c25
mov edx, 0x104
lea rsi, [rbp + 0x260]
mov rcx, rsi
mov r8, r14
mov r9d, edx
mov rdi, rsp
call fcn.140002c52
mov edx, 0x104
lea rcx, [rbp + 0x370]
mov r8, r15
mov r9d, edx
movsxd rbx, eax
mov qword [rbp + 0x478], rsi
mov qword [rbp + 0x480], rbx
call fcn.140002c52
movsxd rax, eax
lea rsi, [rbp + 0x370]
add rbx, rax
mov qword [rbp + 0x490], rax
mov rax, rbx
mov qword [rbp + 0x488], rsi
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.140001e38
sub rsp, rax
lea rax, [rsp + 0x30]
mov rsi, rax
lea rcx, [rbp + 0x478]
mov edx, 2
mov r8, rsi
mov r9, rbx
call fcn.1400048cc
mov edx, 0x12c
lea rcx, [rbp]
mov r8, rsi
mov r9, rbx
call fcn.1400042eb
mov rbx, rsp
mov rcx, r14
mov edx, 0x104
lea r8, [rbp]
mov r9d, 0x12c
mov qword [rbx + 0x20], 0
call fcn.1400025f4
mov rax, rdi
mov rsp, rax
mov edx, 0x12c
lea rcx, [rbp + 0x130]
mov r8, r15
mov r9d, 0x104
call fcn.1400042eb
mov rbx, rsp
mov rcx, r15
mov edx, 0x104
lea r8, [rbp + 0x130]
mov r9d, 0x12c
mov qword [rbx + 0x20], 0
call fcn.1400025f4
mov r8d, 0x104
mov rcx, r14
mov rdx, r15
mov r9, r8
call fcn.1400033be
test al, 1
je 0x1401bdf89
mov rcx, r14
mov rdx, r13
mov r8d, 0x104
call fcn.140002892
jmp 0x1401bdf89
xor r12d, r12d
cmp eax, 2
sete r12b
dec r12d
mov eax, r12d
lea rsp, [rbp + 0x518]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140001929
Capabilities:
Check if file exists

Disassembly:
jmp 0x140357e90
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x30]
mov r9, rdx
mov r8, rcx
lea rcx, [rbp]
mov edx, 0x12c
call fcn.1400042eb
mov rax, rsp
lea rcx, [0x1406ef4c0]
mov edx, 0x104
lea r8, [rbp]
mov r9d, 0x12c
mov qword [rax + 0x20], 0
call fcn.1400025f4
lea rcx, [0x1406ef4c0]
call sub.KERNEL32.dll_GetFileAttributesA
xor edx, edx
cmp eax, 0xffffffff
sete dl
dec edx
mov eax, edx
lea rsp, [rbp + 0x130]
pop rbp
ret
Function at 0x140001bef
Capabilities:
Print debug messages

Disassembly:
jmp 0x140480e6c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbp, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
setne sil
test eax, eax
je 0x140480eb8
test rbx, rbx
je 0x140480ea7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.140001de3
cmp eax, 1
je 0x140480eb8
mov eax, 4
jmp 0x140480efb
call fcn.140005aab
cmp eax, 2
jne 0x140480ef4
call fcn.140001e7e
test al, al
je 0x140480ef4
call fcn.1400040b6
test al, al
jne 0x140480eea
bts edi, 0x15
xor ecx, ecx
mov rdx, rbx
mov r8, rbp
mov r9d, edi
call fcn.140005b19
jmp 0x140480efb
call fcn.140005899
mov rcx, rax
jmp 0x140480eda
movzx eax, sil
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140002180
Capabilities:
Get common file path

Disassembly:
jmp 0x1404680b4
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x1404680ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140002784
call fcn.140002d6f
mov eax, dword [rax]
jmp 0x140468166
cmp rdi, qword [rbx + 0x18]
ja 0x1404680fb
mov qword [rbx + 0x20], rdi
jmp 0x140468164
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x140468112
mov rcx, qword [rbx + 0x10]
call fcn.140001276
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.14000105f
mov qword [rbx + 0x10], rax
mov r8, rax
neg rax
mov edx, 0
sbb eax, eax
not eax
and eax, 0xc
cmove rdx, rsi
test eax, eax
sete cl
mov byte [rbx + 0x28], cl
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x140468166
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x1404680d9
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000255e
Capabilities:
Query environment variable

Disassembly:
jmp 0x1403b0a50
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rax, qword [0x14056a550]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [0x14070c6c8], 0xfffffffc
lea rax, [0x14070c4e8]
mov dword [0x14070c528], 0xfffffffc
mov ebx, 0xffffe7ff
mov ecx, dword [0x14070c778]
and ecx, ebx
or ecx, 0x800
mov dword [0x14070c778], ecx
mov qword [0x1406f9fc8], rax
mov qword [0x1407044b0], rax
mov dword [0x14070c420], 0xfffffffd
lea rax, [0x14070c240]
mov dword [0x14070c280], 0xfffffffd
mov ecx, dword [0x14070c4d0]
and ecx, ebx
or ecx, 0x800
mov dword [0x14070c4d0], ecx
mov qword [0x1406fa000], rax
mov qword [0x1407044b8], rax
mov dword [0x14070cec0], 0xffffffff
lea rax, [0x14070cce0]
mov dword [0x14070cd20], 0xffffffff
mov ecx, dword [0x14070cf70]
and ecx, ebx
or ecx, 0x800
mov dword [0x14070cf70], ecx
mov qword [0x1406fa070], rax
mov qword [0x1407044c8], rax
mov dword [0x14070cc18], 0xfffffffe
lea rax, [0x14070ca38]
mov dword [0x14070ca78], 0xfffffffe
mov ecx, dword [0x14070ccc8]
and ecx, ebx
or ecx, 0x800
mov dword [0x14070ccc8], ecx
mov qword [0x1406fa038], rax
mov qword [0x1407044c0], rax
lea rdi, str.FORT_d
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
call fcn.140005b05
mov dword [0x14070c178], 0
lea r15, [0x14070bf98]
mov dword [0x14070bfd8], 0
mov r14, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov rcx, rsi
xor edx, edx
xor r8d, r8d
call r14
xor ecx, ecx
test eax, eax
setne cl
shl ecx, 0xb
mov eax, dword [0x14070c228]
and eax, ebx
add eax, ecx
add eax, 0x800
mov dword [0x14070c228], eax
mov qword [0x1406fa0a8], r15
mov qword [0x1407044d0], r15
mov rcx, rsi
mov rdx, rdi
mov r8d, 5
call fcn.140005b05
mov dword [0x14070c970], 5
lea r15, [0x14070c790]
mov dword [0x14070c7d0], 5
mov rcx, rsi
xor edx, edx
xor r8d, r8d
call r14
xor ecx, ecx
test eax, eax
setne cl
shl ecx, 0xb
mov eax, dword [0x14070ca20]
and eax, ebx
add eax, ecx
add eax, 0x800
mov dword [0x14070ca20], eax
mov qword [0x1406fa1c0], r15
mov qword [0x1407044f8], r15
mov rcx, rsi
mov rdx, rdi
mov r8d, 6
call fcn.140005b05
mov dword [0x14070d168], 6
lea rdi, [0x14070cf88]
mov dword [0x14070cfc8], 6
mov rcx, rsi
xor edx, edx
xor r8d, r8d
call r14
xor ecx, ecx
test eax, eax
setne cl
shl ecx, 0xb
and ebx, dword [0x14070d218]
lea eax, [rcx + rbx]
add eax, 0x800
mov dword [0x14070d218], eax
mov qword [0x1406fa1f8], rdi
mov qword [0x140704500], rdi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140003706
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400027fc
Capabilities:
Read file on windows

Disassembly:
jmp 0x1403a3d40
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov r14, rcx
mov r13, qword [rsp + 0xb8]
mov rax, qword [0x14056a550]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov qword [r9], 0
test r13, r13
je 0x1403a3d99
cmp dword [r13 + 0x40], 0xfffffffc
jne 0x1403a3d99
call case.0x1400ebcb9.136
mov ebp, 1
cmp eax, 1
jg 0x1403a3f9a
mov r12, qword [rsp + 0xb0]
cmp dword [0x1407108a8], 0
je 0x1403a3e47
lea rax, [r12 - 1]
xor ebp, ebp
cmp rax, 2
jb 0x1403a3f9a
mov edx, dword [rsp + 0xa0]
test edx, edx
je 0x1403a3de3
cmp r12, 0xfffffffffffffffa
jne 0x1403a3de3
mov al, 1
xor r15d, r15d
mov ecx, r14d
mov dword [rsp + 0x28], r14d
test al, al
jne 0x1403a3e13
jmp 0x1403a3e3e
test r12, r12
je 0x1403a3df3
mov al, 1
mov r15b, 1
test al, al
jne 0x1403a3e13
jmp 0x1403a3e3e
mov r15d, edx
call fcn.140003c1a
mov edx, r15d
mov dword [rsp + 0x28], eax
cmp dword [0x1407108a8], 0
setne al
xor r15d, r15d
test al, al
je 0x1403a3e3e
cmp dword [rsp + 0xa8], 0
je 0x1403a3e3e
test edx, edx
je 0x1403a3e3e
mov r12d, dword [rsp + 0x28]
mov ecx, r12d
call fcn.1400034b3
mov ecx, r12d
mov r12, qword [rsp + 0xb0]
call fcn.14000507e
test r15b, r15b
je 0x1403a3f56
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsi], 0
test r13, r13
je 0x1403a3e82
mov rax, qword [r13 + 0x240]
test rax, rax
mov r15d, 0x20000
cmovne r15, rax
cmp r15, rbx
jae 0x1403a3f27
test r12, r12
jne 0x1403a3e9e
jmp 0x1403a3f27
cmp rbx, 0x20001
jb 0x1403a3f27
mov r15d, 0x20000
test r12, r12
je 0x1403a3f27
lea r12, [rsp + 0x2c]
mov rbp, qword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x1403a3ebf
add rdi, rax
cmp r15, rax
mov r15, rdx
jne 0x1403a3f91
mov qword [rsp + 0x20], 0
mov rcx, r14
mov rdx, rdi
mov r8d, r15d
mov r9, r12
call rbp
test eax, eax
je 0x1403a3f98
movsxd rax, dword [rsp + 0x2c]
sub rbx, rax
add qword [rsi], rax
test r13, r13
je 0x1403a3f10
mov rcx, qword [r13 + 0x240]
test rcx, rcx
mov edx, 0x20000
cmove rcx, rdx
jmp 0x1403a3f15
mov ecx, 0x20000
mov rdx, r15
cmp rbx, rcx
ja 0x1403a3eb0
mov rdx, rbx
test rbx, rbx
jne 0x1403a3eb0
jmp 0x1403a3f91
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rcx, r14
mov rdx, rdi
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rcx, dword [rsp + 0x2c]
mov qword [rsi], rcx
xor ebp, ebp
test eax, eax
setne bpl
jmp 0x1403a3f9a
mov rcx, rdi
mov edx, ebx
mov r14d, dword [rsp + 0x28]
mov r8d, r14d
call fcn.1400044f8
movsxd rbx, eax
mov qword [rsi], rbx
cmp ebx, 0xffffffff
je 0x1403a3f9a
lea rcx, [0x14052de51]
mov edx, 2
mov r8d, r14d
xor r9d, r9d
call fcn.140003a44
mov byte [rdi + rbx], 0xa
inc qword [rsi]
mov ebp, 1
jmp 0x1403a3f9a
xor ebp, ebp
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140003706
mov eax, ebp
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140002c25
Capabilities:
Get common file path

Disassembly:
jmp 0x140150e90
push rbp
push r15
sub rsp, 0x58
lea rbp, [rsp + 0x30]
mov r15, rcx
mov byte [0x1406499cc], 0x5c
lea r9, [0x140000000]
cmp byte [r15], 0
jne 0x140150f29
mov ecx, 0x104
mov rdx, r15
call sub.KERNEL32.dll_GetCurrentDirectoryA
mov r10, rsp
mov rcx, r15
mov edx, 0x104
lea r8, [rbp + 0x20]
mov r9d, 1
xor eax, eax
mov byte [r8], al
mov dword [r10 + 0x20], eax
call fcn.140006019
xor r9d, r9d
lea rcx, [rbp]
movsxd rax, eax
mov edx, 2
dec rax
mov r8, r15
lea r10, [0x1406499cc]
cmovg r9, rax
mov qword [rbp + 8], r9
mov r9d, 0x104
mov qword [rcx], r15
mov qword [rbp + 0x10], r10
mov qword [rbp + 0x18], 1
call fcn.1400048cc
lea rsp, [rbp + 0x28]
pop r15
pop rbp
ret
mov eax, dword [r15 + 0x100]
mov dword [0x140568640], eax
mov eax, 0x100
movups xmm0, xmmword [r15 + rax - 0x10]
movups xmmword [r9 + rax + 0x568530], xmm0
movups xmm1, xmmword [r15 + rax - 0x20]
movups xmmword [r9 + rax + 0x568520], xmm1
movups xmm2, xmmword [r15 + rax - 0x30]
movups xmmword [r9 + rax + 0x568510], xmm2
movups xmm3, xmmword [r15 + rax - 0x40]
movups xmmword [r9 + rax + 0x568500], xmm3
sub rax, 0x40
jne 0x140150f3b
xor r9d, r9d
xor eax, eax
mov qword [rbp], r12
mov r12, r15
mov qword [rbp + 8], r13
mov r15, rax
mov qword [rbp + 0x10], r14
mov r13d, r9d
mov r10, rsp
lea rcx, [0x140568540]
mov edx, 0x104
lea r8, [0x1404dcefc]
mov r9d, 1
mov dword [r10 + 0x20], 0
call fcn.140006019
mov r14d, eax
test r14d, r14d
je 0x140151000
movsxd r14, r14d
lea r10, [0x140568540]
mov r9, r14
mov r11, rsp
neg r9
mov rcx, r10
add r9, 0x104
lea r8, [r10 + r14]
cmovle r9, r15
mov edx, 0x104
mov qword [r11 + 0x20], r15
call fcn.1400025f4
add r13d, r14d
jmp 0x140150f97
mov r9d, r13d
mov r10, rsp
movsxd r9, r9d
mov rax, r15
test r9, r9
mov r15, r12
mov rcx, r15
cmovle r9, rax
mov edx, 0x104
mov r8, r15
mov r12, qword [rbp]
mov r13, qword [rbp + 8]
mov r14, qword [rbp + 0x10]
mov qword [r10 + 0x20], rax
call fcn.1400025f4
nop
jmp 0x140150f21

Function at 0x140002c89
Capabilities:
Get graphical window text

Disassembly:
jmp 0x1402e09d0
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x20]
movsxd rax, dword [rdx]
test rax, rax
jle 0x1402e0a38
mov dl, byte [rax + rcx - 1]
cmp dl, 0xa
je 0x1402e0a5f
cmp dl, 0xd
je 0x1402e0a58
mov edx, 1
mov qword [rbp + 0x10], rbx
mov rbx, rax
mov qword [rbp + 8], rsi
mov rsi, rdx
mov qword [rbp], rdi
mov rdi, rcx
mov edx, 0x102
xor r9d, r9d
mov rcx, qword [0x1407619c8]
movsx r8, byte [rsi + rdi - 1]
call sub.USER32.dll_SendMessageA
inc rsi
cmp rsi, rbx
jle 0x1402e0a0a
mov rbx, qword [rbp + 0x10]
mov rsi, qword [rbp + 8]
mov rdi, qword [rbp]
mov edx, 0x102
mov r8d, 0xd
xor r9d, r9d
mov rcx, qword [0x1407619c8]
call sub.USER32.dll_SendMessageA
lea rsp, [rbp + 0x20]
pop rbp
ret
dec rax
jle 0x1402e0a38
jmp 0x1402e09f0
dec rax
jle 0x1402e0a38
mov dl, byte [rax + rcx - 1]
jmp 0x1402e09eb