joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000f1b0
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x328
mov rax, qword [0x1800546d8]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x60], 0
mov r8d, 0x104
lea rdx, [rsp + 0xf0]
lea rcx, [0x18003f038]
call sub.KERNEL32.dll_GetEnvironmentVariableA
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x338], 1
jb 0x18000f221
cmp dword [rsp + 0x338], 0x1000
jbe 0x18000f235
mov ecx, 0x57
call sub.KERNEL32.dll_SetLastError
jmp 0x18000f423
mov r9, qword [rsp + 0x340]
mov r8d, dword [rsp + 0x338]
mov edx, dword [rsp + 0x330]
lea rcx, [rsp + 0x60]
call fcn.18000bee0
test eax, eax
jne 0x18000f264
jmp 0x18000f423
cmp dword [rsp + 0x54], 0
je 0x18000f277
mov eax, dword [rsp + 0x54]
cmp rax, 0x104
jb 0x18000f281
jmp 0x18000f423
lea r8, [0x18003f040]
mov edx, 0x104
lea rcx, [rsp + 0xf0]
call fcn.18000cb70
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x18000f2af
jmp 0x18000f423
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax + 0xc]
mov r9, rax
lea r8, [0x18003f058]
mov edx, 0x104
lea rcx, [rsp + 0x200]
call fcn.18000cd60
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x18000f2f3
jmp 0x18000f423
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.1800151c0
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.1800151c0
mov dword [rsp + 0x80], 0x68
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0xf0]
call qword [rsp + 0x348]
test eax, eax
je 0x18000f423
mov rax, qword [rsp + 0x60]
mov r9d, dword [rax]
mov r8, qword [rsp + 0x60]
lea rdx, [0x18003ef20]
mov rcx, qword [rsp + 0x68]
call fcn.18000e550
test eax, eax
jne 0x18000f3cc
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call sub.KERNEL32.dll_TerminateProcess
mov rcx, qword [rsp + 0x68]
call sub.KERNEL32.dll_CloseHandle
mov rcx, qword [rsp + 0x70]
call sub.KERNEL32.dll_CloseHandle
jmp 0x18000f423
mov rcx, qword [rsp + 0x70]
call sub.KERNEL32.dll_ResumeThread
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [rsp + 0x58], 0x1f4
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
call sub.KERNEL32.dll_GetExitCodeProcess
mov rcx, qword [rsp + 0x68]
call sub.KERNEL32.dll_CloseHandle
mov rcx, qword [rsp + 0x70]
call sub.KERNEL32.dll_CloseHandle
cmp dword [rsp + 0x58], 0
je 0x18000f41b
jmp 0x18000f423
mov dword [rsp + 0x5c], 1
lea rcx, [rsp + 0x60]
call fcn.18000c580
mov eax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.180012ac0
add rsp, 0x328
ret
Function at 0x1800110d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x80], 0
jne 0x1800110fd
xor ecx, ecx
call sub.KERNEL32.dll_GetModuleHandleW
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18001111d
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180011296
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
je 0x180011154
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180011296
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x180011172
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180011296
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
jmp 0x18001119e
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x18001127a
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
lea rdx, str..detour
mov rcx, rax
call fcn.180022790
test eax, eax
jne 0x180011275
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0xc], 0
je 0x180011203
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0x10], 0
jne 0x180011205
jmp 0x18001127a
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
cmp rax, 0x40
jb 0x18001124b
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0x727444
je 0x18001124d
jmp 0x18001127a
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180011267
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx]
mov dword [rax + 8], ecx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
jmp 0x180011296
jmp 0x180011194
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180011296
add rsp, 0x78
ret
Function at 0x1800112a0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.1800151c0
jmp 0x1800112e8
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x180011307
jmp 0x1800113ab
cmp dword [rsp + 0x68], 0x1000
jne 0x18001132c
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x18001132c
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x18001132e
jmp 0x1800112d3
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x180011364
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x180011364
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x180011369
jmp 0x1800112d3
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x1800112d3
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x20]
jmp 0x1800113ad
xor eax, eax
add rsp, 0x88
ret

Function at 0x180011600
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1800151c0
nop
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x18001164a
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180011712
cmp dword [rsp + 0x60], 0x1000
jne 0x18001166f
mov eax, dword [rsp + 0x64]
and eax, 0xff
cmp eax, 1
je 0x18001166f
mov eax, dword [rsp + 0x64]
and eax, 0x100
test eax, eax
je 0x180011680
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180011712
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1800116a7
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180011712
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x1800116db
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180011712
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x1800116f6
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180011712
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
jmp 0x180011712
add rsp, 0x78
ret
Function at 0x18002df08
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180013200
sub rsp, rax
mov rax, qword [0x1800546d8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18002b764
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18002df57
mov rax, rbp
jmp 0x18002e05f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x569f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18002f028
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x569f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18002e05b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002e05b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18002f028
test rax, rax
js 0x18002e05b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18002e05b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18002e04d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18002e04d
cmp byte [rcx], 0xd
jne 0x18002e033
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18002e042
cmp byte [rcx + 1], 0xa
jne 0x18002e042
inc rcx
jmp 0x18002e042
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x54ae0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18002e015
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18002e05f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180012ac0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x18002e280
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18002e296
mov al, 1
jmp 0x18002e2f6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18002e2a7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18002e2f4
mov ecx, dword [rcx + 0x18]
nop
call fcn.180038bf0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18002e2f4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18002e2f4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18002e2f4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18002e2f6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18002e3c8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1800569f0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18002e41f
cmp word [rdx], r13w
jne 0x18002e41f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18002e424
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18002e549
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18002e56a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18002e45d
mov rdx, r9
mov word [rbx], cx
jmp 0x18002e484
cmp r9, r8
jae 0x18002e494
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x18002e43e
jmp 0x18002e549
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002e53e
cmp dword [rsp + 0x80], esi
je 0x18002e53e
lea r8, [0x1800569f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18002e516
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18002e4e6
mov word [rbx], r13w
jmp 0x18002e546
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18002e4f3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18002e546
cmp word [rsp + 0x70], r13w
jne 0x18002e523
cmp rbx, r14
je 0x18002e4e0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18002f030
cmp word [rsp + 0x70], r13w
je 0x18002e549
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1800569f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18002e543
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18002e549
Function at 0x180033f50
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 0x180033f80
xor eax, eax
jmp 0x180034043
mov rbp, rbx
cmp word [rax], si
je 0x180033fa5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180033f8c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180033f88
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.180030efc
movsxd r14, eax
test eax, eax
jne 0x180033fe3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180033f79
mov rcx, r14
call fcn.18002a5e0
mov rdi, rax
test rax, rax
jne 0x180033ffc
xor ecx, ecx
call fcn.18002a5a4
jmp 0x180033fd8
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.180030efc
test eax, eax
jne 0x18003402d
mov rcx, rdi
call fcn.18002a5a4
jmp 0x180034037
xor ecx, ecx
call fcn.18002a5a4
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 0x180034060
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 0x1800340e7
mov rsi, rbx
cmp word [rax], bp
je 0x1800340a6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x180034090
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18003408c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18002a5e0
mov rdi, rax
test rax, rax
je 0x1800340d4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180014b10
mov rbp, rdi
xor ecx, ecx
call fcn.18002a5a4
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 0x180036d8c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1800287f8
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180036e2d
cmp ebx, dword [rsp + 0x30]
je 0x180036e26
test esi, esi
je 0x180036e26
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180036e01
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180036e0e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180036deb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180036e12
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180036e2f
mov eax, 1
jmp 0x180036e2f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18003be90
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18002f030
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18002f030
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18003bfe0
cmp rax, 0xffffffffffffffff
je 0x18003bfe0
xor edi, edi
test rbp, rbp
jle 0x18003bf8b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18002bb6c
mov rbx, rax
test rax, rax
jne 0x18003bf18
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18003bf81
mov edx, 0x8000
mov ecx, r14d
call fcn.18003bd14
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18002d780
cmp eax, 0xffffffff
je 0x18003bf61
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18003bf28
mov edx, r15d
mov ecx, r14d
call fcn.18003bd14
jmp 0x18003bf81
cmp byte [rsi + 0x38], dil
je 0x18003bf78
cmp dword [rsi + 0x34], 5
jne 0x18003bf78
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18003bf81
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18002a5a4
jmp 0x18003bff4
jns 0x18003bff4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18002f030
cmp rax, 0xffffffffffffffff
jne 0x18003bfac
cmp byte [rsi + 0x30], dil
je 0x18003bff4
mov edi, dword [rsi + 0x2c]
jmp 0x18003bff4
mov ecx, r14d
call fcn.180038bf0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18003bff4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18003bff4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18003bfed
mov eax, dword [rsi + 0x2c]
jmp 0x18003bff2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18002f030
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, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400048fc
Capabilities:
Get file size
Read file on windows

Disassembly:
or r8d, 0xffffffff
jmp 0x140004448
Function at 0x140006780
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x1400cc770]
call fcn.14000fcc0
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x140006800
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x1400067c5
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x140006800
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, eax
mov edx, ebx
mov edi, eax
call fcn.14000fed0
lea r8d, [rdi + 1]
mov rdx, rax
mov rbx, rax
mov word [rax], bp
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, rbx
call fcn.14000ffec
sub edi, eax
mov ecx, edi
call fcn.14000ff80
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400082e8
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
cmp qword [0x1400ccbe0], 0
jne 0x14000834e
lea rcx, [0x1400ccbe0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14000833a
movabs rax, 0x20c49ba5e353f7cf
lea rcx, [0x1400ccbe8]
imul qword [0x1400ccbe0]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [0x1400ccbe0], rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp qword [0x1400ccbe0], 0
jne 0x14000834e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
jmp 0x140008374
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
sub rax, qword [0x1400ccbe8]
cqo
idiv qword [0x1400ccbe0]
add rsp, 0x28
ret
Function at 0x140009060
Capabilities:
Check if file exists

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, 0x20
mov rax, qword [0x1400ccd28]
xor r13d, r13d
mov rbp, r8
mov r14, rdx
mov rdi, rcx
mov esi, r13d
test rax, rax
jne 0x1400090b2
lea r8, [fcn.14000901c]
mov ecx, 0x260
lea edx, [rax + 0x10]
call fcn.14000fe10
mov qword [0x1400ccd28], rax
mov rdx, rdi
mov rcx, rax
call fcn.14000fbf0
mov rbx, rax
test rax, rax
je 0x1400091b5
test r14, r14
lea r15, [0x14008f924]
cmovne r15, r14
test rbp, rbp
je 0x1400090e3
cmp word [rbp], r13w
jne 0x1400090ea
lea rbp, [0x140094f80]
mov rcx, r15
call fcn.14000ffec
mov rcx, rbp
mov r12, rax
call fcn.14000ffec
mov rcx, qword [0x1400cc470]
add eax, 2
add eax, r12d
xor edx, edx
movsxd r8, eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x14000919e
mov rdx, r15
mov rcx, rax
call fcn.14000ffd0
test r12d, r12d
je 0x14000914b
movsxd rax, r12d
cmp word [r15 + rax*2 - 2], 0x5c
je 0x14000914b
lea rdx, [0x14008f8e8]
mov rcx, r14
call fcn.14000ffa4
mov rdx, rbp
mov rcx, r14
call fcn.14000ffa4
lea rdx, [rbx + 0xc]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x140009172
mov dword [rbx + 8], r13d
jmp 0x140009184
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140009187
mov dword [rbx + 8], 1
mov rsi, rbx
mov rcx, qword [0x1400cc470]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rsi, rsi
jne 0x1400091b5
mov rcx, qword [0x1400ccd28]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.14000fda4
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret