joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1403070c0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14049e048]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rdx, [0x1404b6ee8]
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_CRibbonCategoryScroll::CRibbonCategoryScroll]
nop
or edx, 0xffffffff
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_CDockSite::IsDragMode]
cmp qword [0x1404b6fa0], 0
je 0x14030716f
movzx ecx, word [rdi + 8]
mov edx, 1
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp eax, 0x10
jne 0x140307142
mov rdx, rdi
lea rcx, [0x1404b6f88]
call qword [sym.imp.mfc140u.dll_CWinApp::AddDocTemplate]
jmp 0x140307206
mov rax, qword [0x1404b6f98]
mov rbx, qword [rax + 0x10]
mov rax, qword [0x1404b5fc0]
mov dl, 1
lea rcx, [0x1404b5fc0]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov edx, 2
mov rcx, rbx
call fcn.1403016c8
jmp 0x140307185
call qword [sym.imp.accore.dll_class_AcApDocManager____ptr64___cdecl_acDocManagerPtr_void_]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x38]
mov qword [0x1404bba08], rax
mov rdx, rdi
lea rcx, [0x1404b6f88]
call qword [sym.imp.mfc140u.dll_CToolBar::AddReplaceBitmap]
lea rcx, [0x1404b5fc0]
mov rax, qword [0x1404b5fc0]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edx, 1
mov rcx, rdi
call fcn.1403016c8
cmp qword [0x1404b6fa0], 1
jne 0x1403071d6
mov ecx, 0x4656
call qword [sym.imp.accore.dll_class_AcGiImageBGRA32_const____ptr64___cdecl_AcSymbolLibrary::cursorBadge_enum_AcSymbolLibrary::CursorBadge_]
mov rcx, rax
mov edx, 4
call qword [sym.imp.accore.dll_bool___cdecl_acedAddSupplementalCursorImage_class_AcGiImageBGRA32_const____ptr64__int_]
neg dword [0x1404b4048]
lea rcx, [0x1404c2c88]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140307206
mov ecx, dword [0x1404b4048]
add ecx, dword [0x1404c2c88]
mov edx, dword [0x1404c2c8c]
call qword [sym.imp.USER32.dll_SetCursorPos]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_CUserTool::SetToolIcon]
nop
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140088c50
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140011258
Capabilities:
Terminate process

Disassembly:
jmp 0x140013a80
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112e9
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x140015f80
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x30]
lea rcx, [0x1400230f3]
call fcn.140011401
xor ecx, ecx
call fcn.140016750
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_srand]
xor eax, eax
cmp eax, 1
je 0x14001604d
mov ecx, 0x58
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x140015fda
call fcn.14001141a
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
movzx eax, byte [0x14001d172]
test eax, eax
je 0x140016048
call qword [sym.imp.ucrtbased.dll_rand]
cdq
mov ecx, 3
idiv ecx
mov eax, edx
add eax, 0x10
mov dword [rbp + 4], eax
mov eax, 0x320
cdq
idiv dword [rbp + 4]
mov dword [rbp + 0x24], eax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 2
call qword [sym.imp.USER32.dll_mouse_event]
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 4
call qword [sym.imp.USER32.dll_mouse_event]
mov ecx, dword [rbp + 0x24]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140015faa
xor eax, eax
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x1400112f3
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014dd0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014df0
xor al, al
jmp 0x140014e71
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014e03
xor al, al
jmp 0x140014e71
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014e2d
xor al, al
jmp 0x140014e71
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014e41
xor al, al
jmp 0x140014e71
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014e53
xor al, al
jmp 0x140014e71
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014e6f
xor al, al
jmp 0x140014e71
mov al, 1
add rsp, 0x38
ret
Function at 0x140001450
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r14d, r9d
mov r15, r8
mov rbp, rdx
mov rdi, rcx
mov ecx, dword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x20], 0x40
xor ebx, ebx
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8, rbp
mov r9d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
je 0x140001523
mov rsi, rax
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffffffffffff
mov rdx, rsi
mov r8, rdi
mov r9, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001521
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
lea r9, [0x140001440]
xor ebx, ebx
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [r15], rax
test rax, rax
je 0x140001523
test r14d, r14d
je 0x14000151c
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, rsi
jmp 0x140001523
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140001540
Capabilities:
Check for outputdebugstring error
Print debug messages

Disassembly:
sub rsp, 0x38
mov ecx, 0x457
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str._api_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x1400015d3
call fcn.140001600
cmp byte [rax + 2], 0
jne 0x1400015d3
test byte [rax + 0xbc], 0x70
jne 0x1400015d3
call fcn.140001c70
mov qword [rsp + 0x30], 0xffffffffffffffff
mov rax, qword [0x14001c508]
mov edx, dword [rax]
mov rax, qword [0x14001c510]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov rcx, qword [0x14001c500]
lea r8, [rsp + 0x30]
mov r9d, 1
call fcn.140001450
test rax, rax
sete al
cmp qword [rsp + 0x30], 0xffffffffffffffff
sete cl
or cl, al
movzx eax, cl
neg eax
add rsp, 0x38
ret
xor ecx, ecx
call sub.msvcrt.dll_exit
int3
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
call fcn.140002690
nop
add rsp, 0x20
pop rbp
jmp 0x140001540

Function at 0x1400015e0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x38
mov ecx, 0x457
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str._api_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x1400015d3
call fcn.140001600
cmp byte [rax + 2], 0
jne 0x1400015d3
test byte [rax + 0xbc], 0x70
jne 0x1400015d3
call fcn.140001c70
mov qword [rsp + 0x30], 0xffffffffffffffff
mov rax, qword [0x14001c508]
mov edx, dword [rax]
mov rax, qword [0x14001c510]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov rcx, qword [0x14001c500]
lea r8, [rsp + 0x30]
mov r9d, 1
call fcn.140001450
test rax, rax
sete al
cmp qword [rsp + 0x30], 0xffffffffffffffff
sete cl
or cl, al
movzx eax, cl
neg eax
add rsp, 0x38
ret
xor ecx, ecx
call sub.msvcrt.dll_exit
int3
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
call fcn.140002690
nop
add rsp, 0x20
pop rbp
jmp 0x140001540
Function at 0x140001610
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
ret
Function at 0x1400021e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r15, rdx
mov r12, rcx
movsxd r13, dword [rcx + 0x3c]
mov ebx, dword [rcx + r13 + 0x54]
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x14000224a
lea r9, [rsp + 0x20]
mov rcx, r15
mov rdx, rbx
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000224a
mov rcx, r15
mov rdx, r12
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, word [r12 + r13 + 6]
test ax, ax
je 0x1400022ec
movsxd rcx, dword [r12 + 0x3c]
lea rbp, [rcx + r12]
add rbp, 0x110
xor r14d, r14d
jmp 0x140002286
movzx eax, word [r12 + r13 + 6]
add r14, 1
movzx ecx, ax
add rbp, 0x28
cmp r14, rcx
jae 0x1400022ec
cmp dword [rbp + 0x1c], 0
js 0x140002276
mov ebx, dword [rbp]
mov esi, dword [rbp + 4]
lea rdi, [r12 + rsi]
add rsi, r15
mov rcx, rdi
mov rdx, rsi
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140002270
mov rcx, rsi
mov rdx, rbx
mov r8d, 0x40
lea r9, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140002270
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov r8d, dword [rsp + 0x24]
mov rcx, rsi
mov rdx, rbx
lea r9, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x140002270
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140002370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
test rcx, rcx
je 0x14000254a
mov rsi, rdx
mov rbx, rcx
movsxd rax, dword [rcx + 0x3c]
mov edi, dword [rax + rcx + 0x88]
mov r13d, dword [rdi + rcx + 0x1c]
add r13, rcx
test esi, 0xffff0000
je 0x140002406
mov ebp, dword [rbx + rdi + 0x18]
test ebp, ebp
je 0x14000254a
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r8
mov r14d, dword [rbx + rdi + 0x20]
mov r15d, dword [rbx + rdi + 0x24]
add r14, rbx
add r15, rbx
xor r12d, r12d
nop word cs:[rax + rax]
nop dword [rax]
mov ecx, dword [r14]
add rcx, rbx
mov rdx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x14000241a
add ebp, 0xffffffff
add r14, 4
add r15, 2
test ebp, ebp
jne 0x1400023e0
jmp 0x140002552
movzx eax, si
mov ecx, dword [rbx + rdi + 0x10]
sub rax, rcx
mov r12d, dword [r13 + rax*4]
jmp 0x14000254f
movzx eax, word [r15]
mov r12d, dword [r13 + rax*4]
cmp edi, r12d
ja 0x14000254f
mov rax, qword [rsp + 0x38]
add edi, dword [rbx + rax + 0x8c]
cmp r12d, edi
jae 0x14000254f
add r12, rbx
mov rcx, r12
mov edx, 0x2e
call sub.msvcrt.dll_strchr
mov r14, rax
add r14, 1
mov rsi, r14
sub rsi, r12
lea rcx, [rsi + 4]
mov edx, 2
call sub.msvcrt.dll_calloc
test rax, rax
je 0x14000254a
mov rbx, rax
lea r8, [rsi + 1]
mov qword [rsp + 0x20], rsi
xor ecx, ecx
mov rdx, rax
mov r9, r12
call qword [sym.imp.msvcrt.dll_mbstowcs_s]
mov eax, dword [0x14001c016]
mov dword [rbx + rsi*2], eax
movzx eax, word [0x14001c01a]
mov word [rbx + rsi*2 + 4], ax
lea rdx, [0x14001c002]
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x1400024d8
lea rdx, str.ext_
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x140002526
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call fcn.140001630
test rax, rax
je 0x140002526
mov rsi, rax
mov rcx, rbx
call sub.msvcrt.dll_free
mov rdi, qword [rsp + 0x40]
lea rcx, [rdi + 1]
mov edx, 2
call sub.msvcrt.dll_calloc
test rax, rax
je 0x14000254a
mov rbx, rax
add rdi, rdi
mov rcx, rax
mov rdx, rsi
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, r14
mov r8, rbx
call fcn.140002370
mov r12, rax
mov rcx, rbx
call sub.msvcrt.dll_free
jmp 0x140002552
xor r12d, r12d
jmp 0x140002552
add r12, rbx
mov rax, r12
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400028a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400036f0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400036f0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140002910
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14001f0b4]
mov rbx, rcx
test esi, esi
jle 0x140002a40
mov rax, qword [0x14001f0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000295b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400029e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002940
mov rcx, rbx
call fcn.140003360
mov rdi, rax
test rax, rax
je 0x140002a62
mov rax, qword [0x14001f0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400034a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14001f0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002a47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400029de
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400029f0
add dword [0x14001f0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14001f0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400029de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400028a0
nop dword [rax]
xor esi, esi
jmp 0x140002968
mov rax, qword [0x14001f0b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400028a0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400028a0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002fd0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14001f120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001f100]
test rbx, rbx
je 0x14000302c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003023
test rsi, rsi
je 0x140003023
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003008
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003360
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001c3b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003380
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003388
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003380
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400033dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400033d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003380
add rax, 0x28
cmp rax, r9
jne 0x1400033c0
xor eax, eax
ret

Function at 0x1400033e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001c3b0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400033ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003408
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400033ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400034a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001c3b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400034bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400034c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001160
Capabilities:
Check for foreground window switch

Disassembly:
sub rsp, 0x28
cmp byte [0x140069a31], 0
je 0x140001241
xor edx, edx
mov qword [rsp + 0x20], rbx
lea rcx, str.LWJGL
call qword [sym.imp.USER32.dll_FindWindowA]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, rbx
mov rbx, qword [rsp + 0x20]
jne 0x14000130e
cmp byte [0x140069a30], 0
je 0x14000130e
cmp byte [0x140069a20], 0
je 0x14000130e
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor r9d, r9d
mov edx, 0x201
mov rcx, rax
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_PostMessageA]
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor r9d, r9d
mov edx, 0x202
mov rcx, rax
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_PostMessageA]
lea rcx, [0x140069b40]
call fcn.140001330
mov ecx, eax
imul rax, rcx, 0x26d
cmp eax, 0x108
ja 0x1400012dc
nop word [rax + rax]
lea rcx, [0x140069b40]
call fcn.140001330
mov ecx, eax
imul rax, rcx, 0x26d
cmp eax, 0x109
jb 0x140001220
jmp 0x1400012dc
cmp byte [0x140069a30], 0
je 0x14000130e
cmp byte [0x140069a20], 0
je 0x14000130e
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor r9d, r9d
mov edx, 0x201
mov rcx, rax
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_PostMessageA]
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor r9d, r9d
mov edx, 0x202
mov rcx, rax
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_PostMessageA]
lea rcx, [0x140069b40]
call fcn.140001330
mov ecx, eax
imul rax, rcx, 0x26d
cmp eax, 0x108
ja 0x1400012dc
nop dword [rax + rax]
lea rcx, [0x140069b40]
call fcn.140001330
mov ecx, eax
imul rax, rcx, 0x26d
cmp eax, 0x109
jb 0x1400012c0
shr rax, 0x20
add eax, 0x104
cdq
idiv dword [0x140069044]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
cvtps2pd xmm1, xmm0
mulsd xmm1, qword [0x140061148]
cvttsd2si rcx, xmm1
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_Sleep]
add rsp, 0x28
ret
Function at 0x140001330
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140001391
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140001350
mov ecx, dword [r9]
jmp 0x140001478
cmp ecx, 0x4e0
jb 0x140001478
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x1400013b0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140001400
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x140002d70
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140002dcd
lea rbx, [0x140059e80]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140002db4
cmp r10, 2
jb 0x140002db4
cmp byte [r9], r8b
jne 0x140002db4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140002d90
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140002e0f
lea rbx, [0x140059e80]
cmp r8b, 0x23
jne 0x140002df3
cmp byte [r9], r8b
jne 0x140002df3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140002de0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x140002fd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
test rcx, rcx
jne 0x140002fff
mov r8d, 0x645
lea rdx, str.C:UsersmadeqDownloadsBottle_clicker_v1.0_srcimguiimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x14000300b
mov qword [rdi], 0
lea rdx, [0x140057d28]
mov rcx, rbx
call fcn.140002e20
mov rbx, rax
test rax, rax
jne 0x14000302d
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140003104
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003104
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140003104
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003104
cmp rsi, 0xffffffffffffffff
je 0x140003104
mov rax, qword [0x140069a50]
test rax, rax
je 0x1400030a1
inc dword [rax + 0x3b0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x140003104
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rsi
je 0x1400030f1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140069a50]
test rax, rax
je 0x1400030e6
dec dword [rax + 0x3b0]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000310d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x1400030ff
mov qword [rdi], rsi
mov rax, rbp
jmp 0x14000310f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret