joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424a0c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x28
mov r13, rdx
mov r12, rcx
call fcn.00428264
mov rbx, qword [rax + 0x18]
mov r8d, 0xf1
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
jne 0x424a46
xor eax, eax
jmp 0x424b1f
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rdi, rax
je 0x424a3f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
je 0x424a3f
movzx ecx, word [rax + 6]
mov eax, 4
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.0040c4f4
xor r9d, r9d
cmp word [rbx + 6], r9w
mov rbp, rax
jbe 0x424ab9
mov rdx, rax
lea r8, [rbx + 8]
movzx ecx, word [r8]
add r9d, 1
add r8, 2
mov dword [rdx], ecx
movzx eax, word [rbx + 6]
add rdx, 4
cmp r9d, eax
jl 0x424a9e
movzx r8d, word [rbx + 6]
mov rdx, rbp
mov rcx, r12
call fcn.00423310
mov rcx, rbp
mov esi, eax
call fcn.0040c530
test esi, esi
je 0x424b14
movzx ecx, word [rbx + 4]
movzx eax, word [rbx + 2]
mov dword [rsp + 0x70], eax
add eax, 7
mov dword [rsp + 0x74], ecx
mov r8, qword [rsp + 0x70]
mov dword [rsp + 0x78], eax
lea eax, [rcx + 7]
mov dword [rsp + 0x7c], eax
mov rdx, qword [rsp + 0x78]
mov rcx, r12
call fcn.00423b78
mov rdx, r13
mov rcx, r12
call fcn.00423c48
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
add rsp, 0x28
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x446198
Capabilities:
Move file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4461bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
mov ecx, eax
call fcn.0044e098
add rsp, 0x20
pop rbx
ret

Function at 0x4461c4
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4461e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
mov ecx, eax
call fcn.0044e098
add rsp, 0x20
pop rbx
ret
Function at 0x45e747
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x0049c3d0]
jne 0x457f6a
rol rcx, 0x10
test cx, 0xffff
jne 0x457f66
repz ret
ror rcx, 0x10
jmp 0x45e6a0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x004a1f70]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x004a2068]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x45e725
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x004a1f70]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x45e747
mov rax, qword [rsp + 0x88]
mov qword [0x004a2068], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x004a2008], rax
mov rax, qword [0x004a2068]
mov qword [0x004a1ee0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x004a1ff0], rax
mov dword [0x004a1ed0], 0xc0000409
mov dword [0x004a1ed4], 1
mov rax, qword [0x0049c3d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x0049c3d8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x004a1f68], eax
mov ecx, 1
call fcn.0045e940
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x004830b8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x004a1f68], 0
jne 0x45e7ce
mov ecx, 1
call fcn.0045e940
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x468f30
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.0045e010
xor ebx, ebx
cmp qword [0x004a2810], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x469061
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x468f93
xor eax, eax
jmp 0x469141
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x468f8c
mov rcx, rax
call fcn.0045dfa0
lea rdx, [0x00483258]
mov rcx, rbp
mov qword [0x004a2810], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0045dfa0
lea rdx, [0x00483240]
mov rcx, rbp
mov qword [0x004a2818], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0045dfa0
lea rcx, [rsp + 0x30]
mov qword [0x004a2820], rax
call fcn.00459dc0
test eax, eax
je 0x469017
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.00458380
cmp dword [rsp + 0x30], 2
jne 0x469061
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0045dfa0
test rax, rax
mov qword [0x004a2830], rax
je 0x469061
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0045dfa0
mov qword [0x004a2828], rax
mov rcx, qword [0x004a2828]
cmp rcx, rsi
je 0x4690f3
cmp qword [0x004a2830], rsi
je 0x4690f3
call fcn.0045e070
call rax
test rax, rax
mov rbp, rax
je 0x4690be
mov rcx, qword [0x004a2830]
call fcn.0045e070
lea rcx, [rsp + 0x38]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x4690be
test byte [rsp + 0x48], 1
jne 0x4690f3
lea rcx, [rsp + 0x34]
call fcn.00459e10
test eax, eax
je 0x4690e0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.00458380
cmp dword [rsp + 0x34], 4
jb 0x4690ed
bts edi, 0x15
jmp 0x469127
bts edi, 0x12
jmp 0x469127
mov rcx, qword [0x004a2818]
cmp rcx, rsi
je 0x469127
call fcn.0045e070
call rax
test rax, rax
mov rbx, rax
je 0x469127
mov rcx, qword [0x004a2820]
cmp rcx, rsi
je 0x469127
call fcn.0045e070
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x004a2810]
call fcn.0045e070
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x140001cfc
Capabilities:
Read file on windows

Disassembly:
test byte [rcx + 0x28], 0x80
mov r9d, edx
mov edx, 2
je 0x140001d11
mov edx, 0x18
jmp 0x140001d29
test dword [rcx + 0x28], 0x100
jne 0x140001d29
test dword [rcx + 0x28], 0x200
mov eax, 0x19
cmovne edx, eax
mov rcx, qword [rcx + 0x18]
or r8d, 0xffffffff
jmp fcn.14000c408
Function at 0x140002340
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x140002384
mov r8d, dword [rcx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x140002390
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
mov rcx, qword [0x14004dc08]
jne 0x1400023b0
add rsp, 0x30
pop rdi
jmp fcn.14000c680
mov rdx, rdi
mov qword [rsp + 0x48], rbx
call fcn.14000c320
mov rbx, rax
test rax, rax
je 0x140002425
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14000240d
xor eax, eax
mov dword [rsp + 0x40], eax
cmp dword [rbx + 0x1c], eax
jne 0x1400023fa
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rbx + 0x14]
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
mov r8, qword [rbx + 8]
xor edx, edx
mov rcx, qword [0x14004d6a8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14004dc08]
mov rdx, rdi
call fcn.14000c34c
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140002990
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x14004dc08]
call fcn.14000c320
mov rbx, rax
test rax, rax
je 0x1400029e3
cmp qword [rax + 8], 0
je 0x1400029c2
cmp dword [rax + 0x1c], 0
jne 0x1400029c2
mov rcx, rax
call fcn.140002340
mov rcx, qword [rbx]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [rsp + 0x38]
shl rcx, 0x20
mov eax, eax
or rax, rcx
add rsp, 0x20
pop rbx
ret
mov rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x1400029f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov dword [rsp + 0x58], 0
mov rdx, rcx
mov rbx, r8
mov rcx, qword [0x14004dc08]
call fcn.14000c320
test rax, rax
je 0x140002a58
cmp qword [rax + 8], 0
mov rdx, rdi
je 0x140002a3e
mov r8, rbx
mov rcx, rax
call fcn.14000c6c0
cdqe
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
mov r8d, ebx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140002a70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov dword [rsp + 0x48], ebx
mov rsi, rdx
test rdx, rdx
je 0x140002ae8
test r8d, r8d
je 0x140002ae8
mov rdx, rcx
mov rcx, qword [0x14004dc08]
call fcn.14000c320
test rax, rax
je 0x140002ae4
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x140002ad1
mov rcx, rax
call fcn.14000c810
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140004818
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rsi, rcx
xor r9d, r9d
mov rcx, qword [rcx]
xor r8d, r8d
mov edx, 0x147
call qword [sym.imp.USER32.dll_SendMessageW]
or r15, 0xffffffffffffffff
mov rbp, rax
cmp rax, r15
je 0x1400048d8
mov rcx, qword [rsi]
lea edx, [r15 - 0xf]
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
test al, 1
jne 0x1400048d8
xor r14d, r14d
cmp qword [rsi + 0x30], r14
jne 0x1400048d8
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov rcx, qword [0x14004d6a8]
xor edx, edx
movsxd rbx, eax
lea r8, [rbx*2 + 2]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r8d, [rbx + 1]
mov rdx, rax
mov rdi, rax
mov word [rax], r14w
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rsi]
mov r9, rdi
mov r8, r15
mov edx, 0x158
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x14004d6a8]
mov r8, rdi
cmp rax, r15
cmove rbp, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x40]
mov rax, rbp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140006884
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 [0x14004e318]
call fcn.14000c320
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x140006904
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x1400068c9
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x140006904
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, eax
mov edx, ebx
mov edi, eax
call fcn.14000c140
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.14000bdf0
sub edi, eax
mov ecx, edi
call fcn.14000c1d0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140007b54
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x140007b67
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
add rsp, 0x28
ret

Function at 0x140007b6c
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 0x140007cdd
cmp word [rcx], di
je 0x140007cdd
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.14000c0f4
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call fcn.14000bdf0
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x140007c12
cmp word [rsp + 0x22], 0x3a
jne 0x140007c12
cmp edx, 2
jne 0x140007bf2
lea rdx, [0x140042260]
lea rcx, [rsp + 0x20]
call fcn.14000bda8
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140007cdd
mov rbx, 0xfffffffffffffffe
jmp 0x140007cdd
cmp word [rcx], 0x5c
je 0x140007c1e
cmp word [rcx], 0x2f
jne 0x140007c27
mov word [rcx], di
sub rcx, 2
jmp 0x140007c12
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x140007c6e
test byte [rbp + 0x130], 0x10
je 0x140007c53
mov rbx, 0xfffffffffffffffe
jmp 0x140007c66
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140007cdd
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x140007c83
cmp ax, cx
je 0x140007c99
cmp cx, 0x2f
jne 0x140007c8e
cmp ax, cx
je 0x140007c99
cmp cx, 0x2e
jne 0x140007cdd
cmp ax, cx
jne 0x140007cdd
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140007cbe
not eax
mov rbx, 0xfffffffffffffffe
shr rax, 4
and eax, 1
or rbx, rax
jmp 0x140007cdd
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 0x140007d14
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov edi, 0x104
mov ecx, edi
call fcn.14000c140
mov rdx, rax
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ebp, ebp
movsxd rbx, eax
test eax, eax
je 0x140007d63
lea edx, [rbx - 1]
movsxd r8, edx
lea eax, [rbp + 0x5c]
cmp word [rsi + r8*2], ax
je 0x140007d63
mov word [rsi + rbx*2], ax
inc ebx
sub edi, ebx
mov ecx, edi
call fcn.14000c1d0
movsxd rax, ebx
mov rbx, qword [rsp + 0x30]
mov word [rsi + rax*2], bp
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14000a5cc
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14004ea2c], eax
add rsp, 0x28
ret

Function at 0x14000a998
Capabilities:
Manipulate console buffer

Disassembly:
push rdi
sub rsp, 0x30
xor eax, eax
cmp dword [0x14004ec80], eax
je 0x14000aa18
movsx edi, word [0x14004ecc2]
movzx edx, word [0x14004ecc8]
mov rcx, qword [0x14004ec98]
mov dword [rsp + 0x40], eax
movsx eax, word [0x14004ecc0]
mov r9d, dword [rsp + 0x40]
imul edi, eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
mov r9d, dword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov rcx, qword [0x14004ec98]
mov edx, 0x20
mov r8d, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
mov edx, dword [rsp + 0x40]
mov rcx, qword [0x14004ec98]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
add rsp, 0x30
pop rdi
ret

Function at 0x14000aa48
Capabilities:
Manipulate console buffer

Disassembly:
sub rsp, 0x28
cmp dword [0x14004ec80], 0
je 0x14000aa70
mov word [rsp + 0x40], cx
mov rcx, qword [0x14004ec98]
mov word [rsp + 0x42], dx
mov edx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
add rsp, 0x28
ret

Function at 0x14000adf4
Capabilities:
Set console window title

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x14004a022], 0
mov edi, edx
mov rbx, rcx
jne 0x14000ad5a
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff6
mov dword [0x14004cbe0], edi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [0x14004ec90], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [0x14004ec98], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, qword [0x14004ec98]
lea rdx, [0x14004ecc0]
mov qword [0x14004eca0], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov edi, 1
lea rcx, [0x14000ad24]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test rbx, rbx
je 0x14000adcc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea rcx, [0x14004ece0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14004ed20]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
mov edx, 2
xor ecx, ecx
jmp 0x14000ad3c
Function at 0x14000bc04
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14000bc80
movsxd rdx, ecx
lea rcx, [0x14000bd08]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x14004ea80]
test rbx, rbx
je 0x14000bcf3
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14000bc76
cmp byte [rbx + 0x20], 0
je 0x14000bc76
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x14000bc3c
jmp 0x14000bcf3
mov rbx, qword [0x14004ea80]
test rbx, rbx
je 0x14000bcf3
mov rsi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14000bceb
cmp byte [rbx + 0x21], 0
je 0x14000bcaf
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14000bcdb
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
or rdx, 0xffffffffffffffff
and dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x14004ea80]
call fcn.14000c22c
mov rbx, rsi
test rsi, rsi
jne 0x14000bc8c
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14000c408
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
xor eax, eax
mov r12, rcx
mov ecx, 0x1000
mov r15d, r9d
mov edi, ecx
mov r13d, r8d
mov ebp, eax
mov r14d, eax
cmp edx, 0x18
je 0x14000c544
cmp edx, 2
je 0x14000c544
mov rcx, qword [0x14004d6a8]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x34]
mov rbx, rax
lea r8d, [rcx + 2]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
je 0x14000c52d
mov r15, qword [rsp + 0x90]
mov esi, ecx
mov r12d, edi
cmp dword [rsp + 0x38], 2
jne 0x14000c525
cmp r13d, 0xffffffff
je 0x14000c4b2
cmp r14d, r13d
jae 0x14000c525
add r14d, 2
test edi, edi
jne 0x14000c4dd
mov rcx, qword [0x14004d6a8]
lea edx, [rdi + 8]
movsxd r9, r12d
mov r8, rbx
add r9, r9
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
xor ecx, ecx
mov rbx, rax
movzx eax, word [rsp + 0x34]
cmp ax, 0xa
je 0x14000c525
cmp ax, 0xd
je 0x14000c4fd
mov word [rsi + rbx], ax
inc ebp
add rsi, 2
inc r12d
dec edi
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x38]
mov rcx, r15
lea rdx, [rsp + 0x34]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
jne 0x14000c4a0
mov r15d, dword [rsp + 0xa8]
movsxd rax, ebp
mov edx, r15d
mov word [rbx + rax*2], cx
mov rcx, rbx
call fcn.14001a260
jmp 0x14000c616
mov r8, rcx
xor edx, edx
mov rcx, qword [0x14004d6a8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15d, dword [rsp + 0xa0]
mov r13d, edi
mov rsi, qword [rsp + 0x90]
mov rbx, rax
xor eax, eax
mov r12d, eax
jmp 0x14000c575
xor eax, eax
cmp r15d, 0xffffffff
je 0x14000c580
cmp r14d, r15d
jae 0x14000c5ea
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000c5ea
cmp dword [rsp + 0x38], 1
jne 0x14000c5ea
inc r14d
test edi, edi
jne 0x14000c5ce
mov rcx, qword [0x14004d6a8]
lea edx, [rdi + 8]
movsxd r9, r13d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rbx, rax
mov edi, 0x1000
mov al, byte [rsp + 0x30]
cmp al, 0xa
je 0x14000c5ea
cmp al, 0xd
je 0x14000c573
mov byte [r12 + rbx], al
inc ebp
inc r12
inc r13d
dec edi
jmp 0x14000c573
mov r15d, dword [rsp + 0xa8]
xor ecx, ecx
cmp dword [rsp + 0x98], 0x18
mov edx, r15d
movsxd rax, ebp
mov byte [rax + rbx], cl
mov rcx, rbx
jne 0x14000c611
call fcn.14001a1b0
jmp 0x14000c616
call fcn.14000e290
mov rcx, qword [0x14004d6a8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000c6c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
mov rdi, r8
mov r15, rdx
mov r14, rcx
cmp dword [rcx + 0x1c], ebp
jne 0x14000c6f7
call fcn.140002340
mov dword [r14 + 0x1c], 1
mov dword [r14 + 0x14], ebp
movsxd r12, dword [r14 + 0x14]
mov eax, dword [r14 + 0x18]
mov rbx, r12
sub eax, r12d
movsxd rdx, eax
add rdx, qword [r14 + 8]
cmp r12, rdi
jl 0x14000c770
mov rax, rdi
sub rax, 1
je 0x14000c761
sub rax, 1
je 0x14000c74e
cmp rax, 2
je 0x14000c73d
mov r8, rdi
mov rcx, r15
call fcn.14000ca30
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x14000c7ea
mov eax, dword [rdx]
mov dword [r15], eax
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x14000c7ea
movzx eax, word [rdx]
mov word [r15], ax
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x14000c7ea
movzx eax, byte [rdx]
mov byte [r15], al
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x14000c7ea
mov r8, rbx
mov rcx, r15
call fcn.14000ca30
movsxd r8, dword [r14 + 0x10]
lea r9, [rsp + 0x60]
mov rcx, qword [r14]
add r15, rbx
sub rdi, rbx
mov qword [rsp + 0x20], rbp
cmp rdi, r8
jl 0x14000c7b0
mov r8d, edi
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x60]
add eax, r12d
mov dword [r14 + 0x14], ebp
jmp 0x14000c7e8
mov rdx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x60]
mov rcx, r15
mov rdx, qword [r14 + 8]
cmp rdi, rax
mov rbx, rax
mov dword [r14 + 0x14], eax
cmovle rbx, rdi
mov dword [r14 + 0x18], eax
mov r8, rbx
call fcn.14000ca30
sub dword [r14 + 0x14], ebx
lea eax, [rbx + r12]
cdqe
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret