joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180022310
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x10a0
call fcn.1800994b0
sub rsp, rax
mov rax, qword [0x1800c6008]
xor rax, rsp
mov qword [rsp + 0x1090], rax
mov rbx, rcx
lea rdi, [0x1800eee00]
mov rcx, rdi
xor edx, edx
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x18002248e
or rbx, 0xffffffffffffffff
mov rcx, rbx
inc rcx
cmp byte [rdi + rcx], 0
jne 0x180022370
xor eax, eax
test rcx, rcx
je 0x180022399
movzx edx, byte [rax + rdi]
cmp dl, 0x2f
je 0x18002238e
cmp dl, 0x5c
jne 0x180022391
mov rbx, rax
inc rax
cmp rax, rcx
jb 0x180022380
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
mov eax, dword [rsp + 0x40]
lea rdx, str.__02d:_02d:_02d____s_n
mov r9d, dword [rsp + 0x44]
lea rcx, [rsp + 0x68]
mov r8d, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
call fcn.1800228b0
lea r8, str.INIT:_Thunder
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x90]
call fcn.180020ee0
cmp rbx, 0xffffffffffffffff
je 0x18002248e
inc rbx
cmp rbx, 0x104
jae 0x1800224b6
mov r8, rdi
mov byte [rbx + rdi], 0
mov edx, 0x104
lea rcx, [0x1800eecf0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, str.Thunder.log
mov edx, 0x104
lea rcx, [0x1800eecf0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x1800a49c4]
lea rdx, [0x1800eecf0]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
jne 0x18002247f
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x90]
lea rdx, [0x1800a438c]
call fcn.180022910
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, str.INIT:_Thunder
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x180022495
mov byte [0x1800dc44d], 0
mov rcx, qword [rsp + 0x1090]
xor rcx, rsp
call fcn.180097dc0
mov rbx, qword [rsp + 0x10b8]
add rsp, 0x10a0
pop rdi
ret
call fcn.180098784
int3
Function at 0x1800224c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
mov eax, 0x1e60
call fcn.1800994b0
sub rsp, rax
mov rax, qword [0x1800c6008]
xor rax, rsp
mov qword [rsp + 0x1e50], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
mov eax, dword [rsp + 0x50]
lea rdx, str.__02d:_02d:_02d____s_n
mov r9d, dword [rsp + 0x54]
lea rcx, [rsp + 0x78]
mov r8d, dword [rsp + 0x58]
mov dword [rsp + 0x20], eax
call fcn.1800228b0
lea rbx, [rsp + 0x1e78]
call fcn.18001ebc0
mov rcx, qword [rsp + 0x1e70]
lea rdx, [rsp + 0xa0]
mov qword [rsp + 0x30], rbx
mov r9d, 0xdac
mov qword [rsp + 0x28], 0
mov r8d, r9d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsnprintf_s]
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0xe50]
call fcn.180020ee0
cmp byte [0x1800dc44d], 0
je 0x1800225da
lea r8, [0x1800a49c8]
lea rdx, [0x1800eecf0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
jne 0x1800225da
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0xe50]
lea rdx, [0x1800a438c]
call fcn.180022910
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea r8, [rsp + 0xa0]
lea rdx, [0x1800a49cc]
lea rcx, [rsp + 0xe50]
call fcn.180020ee0
lea rcx, [rsp + 0xe50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x1e50]
xor rcx, rsp
call fcn.180097dc0
add rsp, 0x1e60
pop rbx
ret
Function at 0x180022770
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
mov eax, 0x1e60
call fcn.1800994b0
sub rsp, rax
mov rax, qword [0x1800c6008]
xor rax, rsp
mov qword [rsp + 0x1e50], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
mov eax, dword [rsp + 0x50]
lea rdx, str.__02d:_02d:_02d__FATAL:___s_n
mov r9d, dword [rsp + 0x54]
lea rcx, [rsp + 0x78]
mov r8d, dword [rsp + 0x58]
mov dword [rsp + 0x20], eax
call fcn.1800228b0
lea rbx, [rsp + 0x1e78]
call fcn.18001ebc0
mov rcx, qword [rsp + 0x1e70]
lea rdx, [rsp + 0xa0]
mov qword [rsp + 0x30], rbx
mov r9d, 0xdac
mov qword [rsp + 0x28], 0
mov r8d, r9d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsnprintf_s]
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0xe50]
call fcn.180020ee0
lea r8, [0x1800a49c8]
lea rdx, [0x1800eecf0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
jne 0x180022881
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0xe50]
lea rdx, [0x1800a438c]
call fcn.180022910
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r9d, 0x10
lea r8, str.FATAL_ERROR
lea rdx, [rsp + 0xe50]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x180022ca0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x1800c6008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rcx
mov qword [r11 - 0x18], 0xf
xor ebx, ebx
mov qword [r11 - 0x20], rbx
mov byte [rsp + 0x38], bl
lea rcx, [r11 - 0x30]
call fcn.18001ac60
nop
movabs rdx, 0xcbf29ce484222325
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x38]
cmovae r8, qword [rsp + 0x38]
mov rax, qword [rsp + 0x48]
add rax, r8
mov r9, rax
sub r9, rcx
cmp rcx, rax
cmova r9, rbx
test r9, r9
je 0x180022d58
mov r8, rcx
neg r8
movabs r10, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
imul rdx, r10
movsx rax, byte [rcx]
xor rdx, rax
lea rcx, [rcx + 1]
lea rax, [r8 + rcx]
cmp rax, r9
jne 0x180022d40
mov qword [rdi + 0x40], rdx
mov byte [rdi + 0x68], 0
lea r8, [rdi + 0x20]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.180022960
mov rax, qword [rdi + 0x30]
mov qword [rdi + 0x48], rax
lea r8, [rdi + 0x40]
lea rdx, [rsp + 0x20]
call fcn.180023ab0
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x28]
cmp rdx, r8
je 0x180022db8
mov r9, rdi
lea rcx, [rsp + 0x20]
call fcn.1800239e0
mov rax, qword [rdi + 0x58]
sub rax, qword [rdi + 0x50]
sar rax, 3
test rax, rax
je 0x180022db8
mov byte [rdi + 0x68], 1
mov rax, qword [rsp + 0x50]
cmp rax, 0x10
jb 0x180022e14
inc rax
mov rcx, qword [rsp + 0x38]
cmp rax, 0x1000
jb 0x180022e0f
test cl, 0x1f
je 0x180022ddf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180022def
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x180022dff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x180022e0c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.180097da8
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180097dc0
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
Function at 0x1800968cc
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x180096930
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x18009691e
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rax + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180096917
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x1800968eb
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x1800f0e50]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180096940
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov eax, ecx
mov r14d, edx
imul rbx, rax, 0x38
mov esi, 5
add rbx, qword [0x1800f2200]
test byte [rbx + 0x20], 1
mov rdi, qword [rbx]
je 0x18009697b
sub rdi, rsi
mov esi, 7
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800969a0
mov eax, 0xa
jmp 0x180096a2a
test r14d, r14d
je 0x1800969c3
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800969e4
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800969e4
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800969de
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800969e4
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and dword [rbx + 0x20], 0xfffffff9
and r14d, 1
mov ecx, r14d
and ecx, 0xfffffffd
lea eax, [r14 + r14]
or ecx, eax
add ecx, ecx
or dword [rbx + 0x20], ecx
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x180096ff8
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9, rcx
test r8b, r8b
je 0x180097012
cmp r8b, 0x90
je 0x180097012
cmp r8b, 0xcc
je 0x180097012
xor eax, eax
ret
mov r10d, 1
mov ecx, r10d
cmp edx, r10d
jbe 0x18009702f
mov eax, ecx
cmp byte [rax + r9], r8b
jne 0x18009700f
add ecx, r10d
cmp ecx, edx
jb 0x180097020
mov eax, r10d
ret
Function at 0x1800973cc
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
mov r15, qword [rbp - 0x50]
cmp rdi, 0x40000000
jbe 0x18009741a
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x1800f21f0]
lea rax, [rdi + 0x40000000]
cmp r15, rax
cmova r15, rax
sub r15, 0xfff
test rbx, rbx
je 0x180097455
cmp rbx, r14
jb 0x180097450
cmp rbx, r15
jae 0x180097450
cmp qword [rbx + 8], 0
jne 0x1800975ab
mov rbx, qword [rbx]
jmp 0x180097436
mov rsi, rdi
cmp rdi, r14
jb 0x1800974d2
mov r12d, dword [rbp - 0x38]
xor edx, edx
mov rax, rsi
div r12
sub rsi, rdx
jmp 0x180097498
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800974a0
cmp dword [rbp - 0x10], 0x10000
je 0x1800974a2
mov rsi, qword [rbp - 0x28]
cmp rsi, r12
jb 0x1800974a0
sub rsi, r12
cmp rsi, r14
jae 0x18009746e
xor esi, esi
test rsi, rsi
je 0x1800974d2
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x18009756b
cmp rsi, r14
jae 0x18009745d
test rbx, rbx
jmp 0x18009755e
mov r14d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov esi, r14d
div r14
mov eax, r14d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x180097537
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180097537
cmp dword [rbp - 0x10], 0x10000
je 0x180097539
xor edx, edx
lea edi, [r14 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div rsi
sub rdi, rdx
cmp rdi, r15
jbe 0x1800974fa
xor edi, edi
test rdi, rdi
je 0x1800975ab
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x18009756b
cmp rdi, r15
jbe 0x1800974da
jmp 0x1800975ab
and qword [rbx + 8], 0
lea rcx, [rbx + 0x40]
and dword [rbx + 0x10], 0
mov rdx, rcx
sub rdx, rbx
mov rax, qword [rbx + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rbx + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x18009757e
mov rax, qword [0x1800f21f0]
mov qword [rbx], rax
mov qword [0x1800f21f0], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400024b0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x60
mov rax, qword gs:[0x60]
mov qword [rsp + 0x70], rdi
mov rcx, qword [rax + 0x18]
mov rsi, qword [rcx + 0x18]
mov rbx, rsi
mov rbx, qword [rbx]
cmp qword [rbx + 0x30], 0
je 0x14000254f
mov rcx, qword [rbx + 0x60]
xor edx, edx
cmp word [rcx], dx
je 0x140002502
cmp rdx, 0x3f
jae 0x140002502
movzx eax, byte [rcx]
add rcx, 2
inc rdx
mov byte [rsp + rdx + 0x1f], al
cmp word [rcx], 0
jne 0x1400024e8
lea rcx, [rsp + 0x20]
mov byte [rsp + rdx + 0x20], 0
call qword [sym.imp.USER32.dll_CharLowerA]
or rcx, 0xffffffffffffffff
xor r8d, r8d
mov r11, rax
xor eax, eax
mov edx, 0x35
mov rdi, r11
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x14000254f
movsx eax, byte [r11]
inc r8d
lea edx, [rdx + rdx*2]
add edx, eax
movsxd rax, r8d
inc r11
cmp rax, rcx
jb 0x140002530
cmp edx, 0x35c206b
je 0x140002558
cmp rsi, rbx
jne 0x1400024d3
mov rax, qword [rbx + 0x30]
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rsi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov ebp, edx
mov eax, dword [rax + rcx + 0x88]
mov rsi, rcx
mov r11d, dword [rax + rcx + 0x1c]
mov r9d, dword [rax + rcx + 0x20]
mov r13d, dword [rax + rcx + 0x24]
add r9, rcx
add r13, rcx
lea r12, [rcx + r11]
test r11d, r11d
je 0x140002615
nop dword [rax + rax]
mov r10d, dword [r9]
or rcx, 0xffffffffffffffff
xor eax, eax
add r10, rsi
xor r8d, r8d
mov edx, 0x35
mov rdi, r10
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rdi, rcx
je 0x140002606
mov rcx, r10
nop word [rax + rax]
movsx eax, byte [rcx]
inc r8d
lea edx, [rdx + rdx*2]
add edx, eax
movsxd rax, r8d
inc rcx
cmp rax, rdi
jb 0x1400025f0
cmp edx, ebp
je 0x140002630
inc ebx
add r9, 4
cmp ebx, r11d
jb 0x1400025c0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
lea rcx, str.successfully_found___s____d_n
mov r8d, ebp
mov rdx, r10
call fcn.1400089fc
movzx eax, word [r13 + rbx*2]
mov eax, dword [r12 + rax*4]
add rax, rsi
jmp 0x140002617
Function at 0x140004ab0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, rcx
cmp qword [rcx + 0x80], 0
je 0x140004ce9
cmp byte [rcx + 0x89], 0
je 0x140004ce9
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140004cbd
mov edx, 0xf
mov qword [rbp - 0x10], rdx
mov byte [rbp - 0x28], 0
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], 8
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
xor r12d, r12d
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
nop word [rax + rax]
lea rdx, [rbp - 0x28]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp - 0x28]
cmovae r8, r10
mov rcx, qword [rdi + 0x80]
mov r10, qword [rcx]
mov rax, qword [rbp - 0x18]
lea r9, [rdx + rax]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x8c]
call qword [r10 + 0x30]
test eax, eax
je 0x140004b88
dec eax
jne 0x140004c87
jmp 0x140004b8f
mov byte [rdi + 0x89], r12b
lea rax, [rbp - 0x28]
mov r10, qword [rbp - 0x28]
mov r9, qword [rbp - 0x10]
cmp r9, 0x10
cmovae rax, r10
mov rbx, qword [rbp + 0x20]
sub rbx, rax
je 0x140004bdd
lea rcx, [rbp - 0x28]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x98]
mov r8, rbx
mov edx, 1
call fcn.140009010
cmp rbx, rax
jne 0x140004cad
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
cmp byte [rdi + 0x89], r12b
je 0x140004cdb
test rbx, rbx
jne 0x140004b40
or rax, 0xffffffffffffffff
mov r8, qword [rbp - 0x18]
sub rax, r8
cmp rax, 8
jbe 0x140004cce
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x140004cc1
cmp r9, rbx
jae 0x140004c31
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.140005440
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
jmp 0x140004c4e
test rbx, rbx
jne 0x140004c57
mov qword [rbp - 0x18], r12
lea rax, [rbp - 0x28]
cmp r9, 0x10
cmovae rax, r10
mov byte [rax], r12b
jmp 0x140004b2b
test rbx, rbx
je 0x140004b40
lea rcx, [rbp - 0x28]
cmp r9, 0x10
cmovae rcx, r10
mov rax, qword [rbp - 0x18]
xor edx, edx
mov qword [rcx + rax], rdx
mov qword [rbp - 0x18], rbx
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rax, qword [rbp - 0x28]
mov byte [rax + rbx], dl
jmp 0x140004b2b
sub eax, 2
je 0x140004ca0
cmp qword [rbp - 0x10], 0x10
jb 0x140004cbd
mov rcx, qword [rbp - 0x28]
call fcn.140008df4
xor al, al
jmp 0x140004ceb
cmp qword [rbp - 0x10], 0x10
jb 0x140004ce9
mov rcx, qword [rbp - 0x28]
jmp 0x140004ce4
cmp qword [rbp - 0x10], 0x10
jb 0x140004cbd
mov rcx, qword [rbp - 0x28]
call fcn.140008df4
xor al, al
jmp 0x140004ceb
lea rcx, str.string_too_long
call fcn.140006b00
int3
lea rcx, str.string_too_long
call fcn.140006b00
nop
cmp r9, 0x10
jb 0x140004ce9
mov rcx, r10
call fcn.140008df4
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret

Function at 0x14000970c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14000957c
Function at 0x140018408
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140032b20]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400119b8
xor ebx, ebx
cmp qword [0x1400349d8], rbx
mov rdi, rax
jne 0x14001851b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1400185f2
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400185f2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400349d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400349e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1400349e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1400349f8], rax
test rax, rax
je 0x140018512
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1400349f0], rax
jmp 0x140018522
mov rax, qword [0x1400349f0]
jmp 0x140018529
mov rax, qword [0x1400349f0]
mov r11, qword [0x1400349f8]
cmp rax, rdi
je 0x140018590
cmp r11, rdi
je 0x140018590
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1400349f8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140018590
test rax, rax
je 0x140018590
call rsi
test rax, rax
je 0x14001858a
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14001858a
test byte [rsp + 0x40], 1
jne 0x140018590
bts ebp, 0x15
jmp 0x1400185d0
mov rcx, qword [0x1400349e0]
cmp rcx, rdi
je 0x1400185d0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400185d0
call rax
mov rbx, rax
test rax, rax
je 0x1400185d0
mov rcx, qword [0x1400349e8]
cmp rcx, rdi
je 0x1400185d0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400185d0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400349d8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400185f2
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1400185f4
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140014330
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140023a13
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140032b20]
jne 0x14001434a
rol rcx, 0x10
test cx, 0xffff
jne 0x140014346
repz ret
ror rcx, 0x10
jmp 0x14002396c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140034b70]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140034c68]
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 0x1400239f1
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, [0x140034b70]
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 0x140023a13
mov rax, qword [rsp + 0x88]
mov qword [0x140034c68], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140034c08], rax
mov rax, qword [0x140034c68]
mov qword [0x140034ae0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140034bf0], rax
mov dword [0x140034ad0], 0xc0000409
mov dword [0x140034ad4], 1
mov rax, qword [0x140032b20]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140032b28]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140034b68], eax
mov ecx, 1
call fcn.140018400
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14002b278]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140034b68], 0
jne 0x140023a9a
mov ecx, 1
call fcn.140018400
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 0x140001000
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x20
mov rax, qword [0x140003028]
mov dword [rax], 1
mov rax, qword [0x140003030]
mov dword [rax], 1
mov rax, qword [0x140003038]
mov dword [rax], 1
mov rcx, qword [0x140003008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x14000108b
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x14000108b
add rcx, rdx
movzx edx, word [rcx + 0x18]
cmp edx, 0x20b
je 0x140001073
cmp edx, 0x10b
jne 0x14000108b
cmp dword [rcx + 0x74], 0xf
jb 0x14000108b
add rcx, 0xe8
jmp 0x140001083
cmp dword [rcx + 0x84], 0xf
jb 0x14000108b
add rcx, 0xf8
xor eax, eax
cmp dword [rcx], 0
setne al
mov rcx, qword [0x140003020]
cmp dword [rcx], 1
mov dword [0x1400060dc], eax
mov ecx, 2
sbb ecx, 0
call sym._set_app_type
mov rax, qword [0x140003088]
mov esi, dword [rax]
call sym.__p__fmode
mov dword [rax], esi
mov rax, qword [0x140003078]
mov esi, dword [rax]
call sym.__p__commode
mov dword [rax], esi
call dbg._setargv
mov rax, qword [section..rdata]
cmp dword [rax], 1
jne 0x1400010e5
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x20
pop rsi
ret