joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013200
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x140013200
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbp
movzx r14d, dl
mov rdi, rcx
cmp qword [rcx + 0x40], 0x10
jb 0x140013233
mov rbp, qword [rcx + 0x28]
jmp 0x140013237
lea rbp, [rcx + 0x28]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], 0
xor ebx, ebx
cmp qword [rcx + 0x38], rbx
jbe 0x14001328d
nop dword [rax]
nop word [rax + rax]
mov r9, qword [rdi + 0x38]
sub r9d, ebx
lea r8, [rbx + rbp]
mov byte [rsp + 0x20], r14b
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14000332d
cmp eax, 0xffffffff
je 0x14001328d
cdqe
add rbx, rax
cmp rbx, qword [rdi + 0x38]
jb 0x140013260
mov r8, rbx
xor edx, edx
lea rcx, [rdi + 0x28]
call fcn.140002f90
mov rcx, qword [rsp + 0x40]
mov r10, qword [rsp + 0x38]
sub rcx, r10
movabs rbx, 0x6666666666666667
mov rax, rbx
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1400132ff
mov dword [rsp + 0x70], 0
lea r9, [rsp + 0x70]
mov r8d, edx
mov rdx, r10
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x1400132f5
lea rcx, str.WriteConsoleInputW_failed
call fcn.140001e10
mov r10, qword [rsp + 0x38]
mov qword [rsp + 0x40], r10
test r10, r10
je 0x14001332d
mov rcx, qword [rsp + 0x48]
sub rcx, r10
mov rax, rbx
imul rcx
sar rdx, 3
mov r8, rdx
shr r8, 0x3f
add r8, rdx
mov rdx, r10
lea rcx, [rsp + 0x38]
call fcn.1400015e6
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret

Function at 0x140013400
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x140013400
push rbx
sub rsp, 0x20
mov r10, qword [rdx]
mov rbx, rdx
mov r8, qword [rdx + 8]
movabs rax, 0x6666666666666667
sub r8, r10
imul r8
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x140013464
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x38]
mov r8d, edx
mov dword [rsp + 0x38], 0
mov rdx, r10
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x14001345d
lea rcx, str.WriteConsoleInputW_failed
call fcn.140001e10
mov rax, qword [rbx]
mov qword [rbx + 8], rax
add rsp, 0x20
pop rbx
ret
Function at 0x140018ad0
Capabilities:
Check for time delay via gettickcount

Disassembly:
jmp 0x140018ad0
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov rbx, rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
xor r14d, r14d
mov qword [rsp + 0x38], r14
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
cmp byte [rbx + 8], r14b
jne 0x140018c5e
nop dword [rax]
nop word [rax + rax]
xor sil, sil
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdi, r14
mov rax, qword [rbx + 0x18]
sub rax, qword [rbx + 0x10]
sar rax, 3
test rax, rax
je 0x140018b7f
mov rax, qword [rbx + 0x10]
lea rdx, [rsp + 0x28]
mov rcx, qword [rax + rdi*8]
call fcn.140001d34
test al, al
je 0x140018b6b
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
mov rdx, qword [rdx + rdi*8]
mov rcx, rbx
call qword [rax + 0x10]
mov sil, 1
inc rdi
mov rax, qword [rbx + 0x18]
sub rax, qword [rbx + 0x10]
sar rax, 3
cmp rdi, rax
jb 0x140018b41
mov ecx, dword [rbx + 0x28]
test ecx, ecx
jle 0x140018bab
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebp
mov ecx, dword [rbx + 0x28]
cmp eax, ecx
jl 0x140018bab
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
jmp 0x140018c54
test sil, sil
jne 0x140018c54
or edi, 0xffffffff
test ecx, ecx
jle 0x140018be3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, ebp
sub ecx, eax
add ecx, dword [rbx + 0x28]
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x68], r14d
lea rax, [rsp + 0x60]
lea rdx, [rsp + 0x68]
test ecx, ecx
cmovle rax, rdx
mov edi, dword [rax]
mov rax, qword [rsp + 0x30]
sub rax, qword [rsp + 0x28]
cmp rax, 8
jae 0x140018c20
cmp edi, 0xffffffff
jne 0x140018c12
lea r8, str.timeout___INFINITE
mov edx, 0x47
lea rcx, str.agentEventLoop.cc
call fcn.1400045f7
jmp 0x140018c16
test edi, edi
je 0x140018c54
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018c54
sar rax, 3
mov r9d, edi
xor r8d, r8d
mov rdx, qword [rsp + 0x28]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x140018c54
lea r8, str.result___WAIT_FAILED
mov edx, 0x4f
lea rcx, str.agentEventLoop.cc
call fcn.1400045f7
cmp byte [rbx + 8], 0
je 0x140018b20
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140018ce2
mov rax, qword [rsp + 0x38]
sub rax, rcx
sar rax, 3
movabs rdx, 0x1fffffffffffffff
cmp rax, rdx
jbe 0x140018c89
call fcn.140003f85
int3
lea rax, [rax*8]
cmp rax, 0x1000
jb 0x140018cdd
test byte [rsp + 0x28], 0x1f
je 0x140018ca6
call fcn.140003f85
int3
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx - 8]
cmp rdx, rcx
jb 0x140018cba
call fcn.140003f85
int3
mov rax, qword [rsp + 0x28]
sub rax, rdx
cmp rax, 8
jae 0x140018cce
call fcn.140003f85
int3
cmp rax, 0x27
jbe 0x140018cda
call fcn.140003f85
int3
mov rcx, rdx
call fcn.140001a28
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14001c340
Capabilities:
Read file on windows
Write file on windows

Disassembly:
jmp 0x14001c340
push rbx
push rbp
push rsi
sub rsp, 0x30
xor esi, esi
mov rbx, rcx
mov ebp, esi
cmp byte [rcx + 0x10], sil
je 0x14001c3b6
lea rdx, [rcx + 0x20]
mov dword [rsp + 0x58], esi
mov rcx, qword [rcx + 8]
lea r8, [rsp + 0x58]
xor r9d, r9d
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x14001c393
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
setne sil
mov eax, esi
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rsp + 0x58]
mov byte [rbx + 0x10], sil
call qword [rax + 8]
mov dword [rbx + 0x14], esi
mov ebp, 2
mov rax, qword [rbx]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x68], rdi
mov rcx, rbx
mov dword [rsp + 0x60], esi
mov byte [rsp + 0x50], sil
call qword [rax + 0x10]
test al, al
je 0x14001c482
lea rdi, [rbx + 0x20]
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [rsp + 0x60]
lea rdx, [rbx + 0x40]
xor eax, eax
mov dword [rbx + 0x14], r8d
lea r9, [rsp + 0x58]
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov rcx, qword [rbx + 8]
mov rax, qword [rbx + 0x18]
mov dword [rsp + 0x58], esi
mov qword [rbx + 0x38], rax
mov rcx, qword [rcx + 0x98]
mov qword [rsp + 0x20], rdi
cmp byte [rsp + 0x50], sil
je 0x14001c43e
call qword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x14001c444
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001c491
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rsp + 0x58]
call qword [rax + 8]
mov dword [rbx + 0x14], esi
lea r8, [rsp + 0x50]
mov rax, qword [rbx]
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov ebp, 2
call qword [rax + 0x10]
test al, al
jne 0x14001c3f0
mov eax, ebp
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14001c4b1
mov rdi, qword [rsp + 0x68]
mov eax, ebp
mov byte [rbx + 0x10], 1
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
mov eax, 1
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret

Function at 0x140020570
Capabilities:
Set console window title

Disassembly:
jmp 0x140020570
sub rsp, 0x28
cmp qword [rdx + 0x18], 8
jb 0x14002057e
mov rdx, qword [rdx]
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
test eax, eax
jne 0x14002059b
lea rcx, str.SetConsoleTitleW_failed
add rsp, 0x28
jmp fcn.140001e10
add rsp, 0x28
ret

Function at 0x1400210d0
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x1400210d0
sub rsp, 0x28
mov edx, dword [rdx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x1400210f3
lea rcx, str.SetConsoleCursorPosition_failed
add rsp, 0x28
jmp fcn.140001e10
add rsp, 0x28
ret
Function at 0x1400211d0
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x1400211d0
sub rsp, 0x38
mov rax, qword [rdx]
mov r10, r8
mov rcx, qword [rcx]
mov qword [rsp + 0x58], rax
xor eax, eax
mov dword [rsp + 0x40], eax
movzx eax, word [rdx + 4]
sub ax, word [rdx]
mov r9d, dword [rsp + 0x40]
inc ax
mov word [rsp + 0x48], ax
movzx eax, word [rdx + 6]
sub ax, word [rdx + 2]
mov rdx, r10
inc ax
mov word [rsp + 0x4a], ax
lea rax, [rsp + 0x58]
mov r8d, dword [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteConsoleOutputW]
test eax, eax
jne 0x140021234
lea rcx, str.WriteConsoleOutput_failed
call fcn.140001e10
add rsp, 0x38
ret
Function at 0x140023430
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x150
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x160], rbx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rax, qword [0x1400aa920]
test rax, rax
jne 0x1400234f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r8d, 0x100
lea rdx, [rsp + 0x40]
lea rcx, str.WINPTY_DEBUG
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
movzx ecx, byte [rsp + 0x40]
xor edx, edx
cmp eax, 0xfe
cmova ecx, edx
mov byte [rsp + 0x40], cl
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
nop dword [rax]
lea rbx, [rbx + 1]
cmp byte [rax + rbx], dl
jne 0x1400234b0
lea rcx, [rbx + 1]
call fcn.140002aa4
mov rdi, rax
lea r8, [rbx + 1]
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.14000385a
xor eax, eax
lock cmpxchg qword [0x1400aa920], rdi
je 0x1400234ec
mov rcx, rdi
call fcn.1400012cb
nop
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [0x1400aa920]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140003cb0
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rdi
ret

Function at 0x140023ca0
Capabilities:
Read pipe
Write pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rcx
xor esi, esi
mov qword [rsp + 0x30], rsi
lea rcx, str..pipeDebugServer
mov dword [rsp + 0x28], 0x110000
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140023d1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x140023d7a
or edx, 0xffffffff
lea rcx, str..pipeDebugServer
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x140023cc3
jmp 0x140023d7a
xor r9d, r9d
mov dword [rsp + 0x40], 2
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
or r8, 0xffffffffffffffff
mov dword [rsp + 0x44], esi
inc r8
cmp byte [rdi + r8], sil
jne 0x140023d40
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
mov rdx, rdi
mov dword [rsp + 0x20], 0x10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003cb0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140024320
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via rtlgenrandom

Disassembly:
jmp 0x140024320
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rbx, rcx
mov qword [rsp + 0x38], rcx
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx], rax
test rax, rax
jne 0x14002436d
lea r8, str.m_module___NULL
lea edx, [rax + 0x28]
lea rcx, str.c:_buildagentwork67c40952b9e3e6fa_src_sharedOsModule.h
call fcn.1400045f7
nop
xor eax, eax
mov qword [rbx + 8], rax
mov byte [rbx + 0x10], al
mov qword [rbx + 0x18], rax
lea rdx, str.SystemFunction036
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x1400243a5
lea rdx, str.SystemFunction036
lea rcx, str.GetProcAddress:__s_is_missing
call fcn.140001e10
mov qword [rbx + 8], rdi
test rdi, rdi
jne 0x1400243ea
mov dword [rsp + 0x20], 0xf0000000
lea r9d, [rdi + 1]
xor r8d, r8d
xor edx, edx
lea rcx, [rbx + 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
setne cl
mov byte [rbx + 0x10], cl
test cl, cl
jne 0x1400243ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GenRandom:_CryptAcquireContext_failed:__u
call fcn.140001e10
nop
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140024930
Capabilities:
Generate random numbers via winapi

Disassembly:
jmp 0x140024930
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
mov rcx, rsi
xor edx, edx
mov rdi, r8
call fcn.140002a27
mov rax, qword [rbx + 8]
test rax, rax
je 0x140024992
mov edx, edi
mov rcx, rsi
call rax
test al, al
setne bl
test bl, bl
jne 0x14002497f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GenRandom:_RtlGenRandom_SystemFunction036_failed:__u
call fcn.140001e10
movzx eax, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp byte [rbx + 0x10], 0
je 0x1400249da
mov rcx, qword [rbx + 0x18]
mov r8, rsi
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
setne bl
test bl, bl
jne 0x14002497f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, edi
lea rcx, str.GenRandom:_CryptGenRandom_failed__size_d__lasterror_u
mov r8d, eax
call fcn.140001e10
movzx eax, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140028980
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
xor ebx, ebx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], ebx
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1400289d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetSystemDirectory_failed
call fcn.140002f27
jmp 0x1400289e5
cmp eax, 0x104
jb 0x1400289e5
lea rcx, str.GetSystemDirectory:_path_is_longer_than_MAX_PATH
call fcn.140001091
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
cmp word [rsp + 0x30], bx
je 0x140028a0e
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140028a04
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000346d
mov rax, rdi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140003cb0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret

Function at 0x140028b20
Capabilities:
Check os version

Disassembly:
jmp 0x140028b20
sub rsp, 0x148
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x11c
call fcn.140002a27
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x140028b66
lea r8, str.success___GetVersionEx_failed_
lea edx, [rax + 0x3a]
lea rcx, str.sharedWindowsVersion.cc
call fcn.1400045f7
mov rax, qword [rsp + 0x20]
xor ecx, ecx
shr rax, 0x20
cmp eax, 6
jb 0x140028b8e
ja 0x140028b7f
cmp dword [rsp + 0x28], 2
jb 0x140028b8e
mov eax, ecx
test al, al
sete al
add rsp, 0x148
ret
mov eax, 1
test al, al
sete al
add rsp, 0x148
ret

Function at 0x140028bc0
Capabilities:
Check os version

Disassembly:
jmp 0x140028bc0
sub rsp, 0x148
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x11c
call fcn.140002a27
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x140028c06
lea r8, str.success___GetVersionEx_failed_
lea edx, [rax + 0x3a]
lea rcx, str.sharedWindowsVersion.cc
call fcn.1400045f7
mov rcx, qword [rsp + 0x20]
shr rcx, 0x20
cmp ecx, 6
setae al
add rsp, 0x148
ret
Function at 0x14006c864
Capabilities:
Create thread
Print debug messages

Disassembly:
jmp 0x14006c864
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, 0x50
mov esi, r8d
mov r14, rdx
mov rbx, rcx
call fcn.140002bcb
mov bpl, al
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor edi, edi
test eax, eax
je 0x14006c8b7
test rbx, rbx
je 0x14006c8a8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bpl, bpl
je 0x14006c8b7
mov edi, 4
jmp 0x14006c960
call fcn.14000150f
test al, al
jne 0x14006c8d4
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb edi, edi
neg edi
add edi, 3
jmp 0x14006c960
test bpl, bpl
je 0x14006c937
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x30]
lea r8, [0x14006c61c]
mov dword [rsp + 0x20], edi
xor edx, edx
mov qword [rsp + 0x30], r14
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006c960
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, rbx
test eax, eax
je 0x14006c931
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14006c960
mov edi, dword [rsp + 0x44]
jmp 0x14006c929
call fcn.140003cba
test al, al
jne 0x14006c948
bts esi, 0x15
xor ecx, ecx
jmp 0x14006c950
call fcn.140001eec
mov rcx, rax
mov r9d, esi
mov r8, r14
mov rdx, rbx
call fcn.140003233
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x1400291bc
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.14001c7b4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c7b4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002930c
cmp rax, 0xffffffffffffffff
je 0x14002930c
xor edi, edi
test rbp, rbp
jle 0x1400292b7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f0c8
mov rbx, rax
test rax, rax
jne 0x140029244
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400292ad
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a0e8
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.14001d490
cmp eax, 0xffffffff
je 0x14002928d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029254
mov edx, r15d
mov ecx, r14d
call fcn.14001a0e8
jmp 0x1400292ad
cmp byte [rsi + 0x38], dil
je 0x1400292a4
cmp dword [rsi + 0x34], 5
jne 0x1400292a4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400292ad
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001ae7c
jmp 0x140029320
jns 0x140029320
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c7b4
cmp rax, 0xffffffffffffffff
jne 0x1400292d8
cmp byte [rsi + 0x30], dil
je 0x140029320
mov edi, dword [rsi + 0x2c]
jmp 0x140029320
mov ecx, r14d
call fcn.1400185a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029320
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 0x140029320
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029319
mov eax, dword [rsi + 0x2c]
jmp 0x14002931e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c7b4
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 0x180001080
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800010b2
xor eax, eax
lea r8, section..text
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
test edx, edx
jne 0x1800010bc
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov eax, 1
add rsp, 0x38
ret
Function at 0x1400033f4
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x140647060]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140004320
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140004397
movsxd rdx, ecx
lea rcx, [0x14000427c]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x140649500]
test rbx, rbx
je 0x14000440a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14000438d
cmp byte [rbx + 0x20], 0
je 0x14000438d
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x140004353
jmp 0x14000440a
mov rbx, qword [0x140649500]
test rbx, rbx
je 0x14000440a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140004402
cmp byte [rbx + 0x21], 0
je 0x1400043c6
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x1400043f2
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x140649500]
call fcn.140014dac
mov rbx, rdi
test rdi, rdi
jne 0x1400043a3
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140004b40
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140649518], 0
jne 0x140004b65
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140649518], 1
mov dword [0x14064951c], eax
mov rcx, qword [0x1406493b0]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x14064951c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, eax
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp 0x140004d20
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140649518], 0
mov ebx, ecx
jne 0x140004d44
call fcn.140004b40
mov ecx, dword [0x14064951c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140004d6c
call fcn.140004b40
mov ecx, dword [0x14064951c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, 0x11
nop word [rax + rax]
imul eax, ebx, 0x53a9b4fb
mov ecx, 1
mov ebx, 1
sub ecx, eax
lea rdx, [rdx + 4]
mov dword [rdx + 0x40], ecx
imul eax, ecx, 0x53a9b4fb
sub ebx, eax
mov dword [rdx - 4], ebx
dec r8
jne 0x140004d80
lea esi, [r8 + 0x1f]
mov dword [rdi], r8d
mov dword [rdi + 4], 0xa
lea ebp, [rsi - 0xf]
nop word [rax + rax]
movsxd r11, dword [rdi]
movsxd rbx, dword [rdi + 4]
mov r10d, dword [rdi + rbx*4 + 8]
mov r9d, dword [rdi + r11*4 + 8]
mov eax, dword [rdi + r11*4 + 0x4c]
ror r9d, 5
lea rcx, [rdi + r11*4]
lea r8, [rdi + r11*4]
ror eax, 0xd
add r9d, r10d
add eax, dword [rdi + rbx*4 + 0x4c]
dec r11d
mov dword [r8 + 0x4c], r9d
cmovs r11d, ebp
dec ebx
mov dword [rcx + 8], eax
cmovs ebx, ebp
mov dword [rdi], r11d
mov dword [rdi + 4], ebx
dec rsi
jne 0x140004dc0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret