joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002170
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14000226b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002273
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400022aa
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002280
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400022d5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x1400022fb
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x1400022e0
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a570
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a5b5
xor al, al
jmp 0x14000a602
cmp word [rbx], 0
je 0x14000a5cd
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a5c0
cmp word [rsp + 0x30], 0
je 0x14000a5fb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a623
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a5e0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b7b0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000f608
int3
Function at 0x14000aba0
Capabilities:
Read file on windows

Disassembly:
test rdx, rdx
je 0x14000ad2c
push rbp
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x60], r14
xor sil, sil
xor r14d, r14d
mov qword [rsp + 0x50], rbx
mov rdi, rdx
mov rbp, rcx
nop word [rax + rax]
mov rax, qword [0x1400325d8]
mov rcx, qword [0x1400325e0]
sub rax, rcx
je 0x14000ac14
mov rdx, qword [0x1400325d0]
cmp rdi, rax
mov rbx, rdi
cmovae rbx, rax
add rdx, rcx
mov r8, rbx
mov rcx, rbp
call fcn.14000d420
add rbp, rbx
sub rdi, rbx
add qword [0x1400325e0], rbx
jmp 0x14000ad12
mov rax, qword [0x1400305c0]
mov rcx, qword [0x1400305b8]
cmp rax, rcx
jb 0x14000acc0
test sil, sil
jne 0x14000acc0
cmp rcx, rax
jne 0x14000ad2d
mov rcx, qword [0x1400305c8]
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [0x1400325e8]
mov eax, eax
sub rcx, rax
je 0x14000ad12
mov rdx, qword [0x1400305b0]
lea r9, [rsp + 0x58]
mov ebx, 0x20003
mov qword [rsp + 0x20], r14
cmp rcx, rbx
cmovb rbx, rcx
mov rcx, qword [0x1400305c8]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000ad33
mov eax, dword [rsp + 0x58]
cmp rax, rbx
jne 0x14000ad33
add qword [0x140030590], rbx
mov qword [0x1400305c0], r14
mov qword [0x1400305b8], rbx
jmp 0x14000ad12
mov rcx, qword [0x1400305a8]
lea r8, [0x1400305b0]
lea rdx, [0x1400325d0]
mov qword [0x1400325e0], r14
mov qword [0x1400325d8], 0x20000
call fcn.1400071d0
mov rcx, qword [0x1400325e0]
cmp rcx, qword [0x1400325d8]
sete sil
cmp rax, 0xffffffffffffff88
ja 0x14000ad2d
mov qword [0x1400325d8], rcx
mov qword [0x1400325e0], r14
test rdi, rdi
jne 0x14000abd0
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
call fcn.14000ab40
int3
call fcn.14000ab40
int3

Function at 0x14000ad40
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x80
mov rcx, qword [0x1400305a0]
xor ebx, ebx
test rcx, rcx
je 0x14000add5
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
test eax, eax
jne 0x14000adb6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov r8d, eax
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x90]
mov r9d, 0x400
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, str.Failed_to_send_CTRL_C_to_child_process.
call fcn.14000fbdc
mov rcx, qword [rsp + 0x90]
call fcn.14000fbdc
mov rcx, qword [0x1400305a0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1400305a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400325f0], bl
je 0x14000ae25
lea rax, [0x1400305d0]
mov qword [rsp + 0x40], rbx
lea rcx, [0x1400286d8]
mov qword [rsp + 0x50], rax
mov eax, 0x414
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x70], rcx
lea rcx, [rsp + 0x40]
mov word [rsp + 0x60], ax
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x64], ebx
mov qword [rsp + 0x68], rbx
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
add rsp, 0x80
pop rbx
ret
Function at 0x14000f5fc
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000f48f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f48f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f48f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f48f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f48f
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f48f
cmp dword [rcx + 0xf8], 0
je 0x14000f48f
mov ecx, ebx
call fcn.14000f530
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14000f320
cmp dword [rbp + 0x20], 0
je 0x14000f4dc
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f4e4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f428
Function at 0x140011172
Capabilities:
Create thread

Disassembly:
jmp 0x140014cd0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x140028040]
xor rax, rbp
mov qword [rbp + 0x120], rax
lea rcx, [0x14002e0fa]
call fcn.140011730
mov edx, 8
lea rcx, [rbp + 8]
call fcn.140011226
mov rdx, qword [rbp + 0x158]
lea rcx, [rbp + 0x108]
call fcn.1400113a7
mov qword [rbp + 0x118], rax
mov rdx, qword [rbp + 0x118]
lea rcx, [rbp + 8]
call fcn.140011195
nop
lea rcx, [rbp + 0x108]
call fcn.140011307
lea rax, [0x1400114fb]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x150]
add rax, 8
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 8]
call fcn.140011519
mov rcx, qword [rbp + 0x118]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x150]
mov qword [rcx], rax
mov rax, qword [rbp + 0x150]
cmp qword [rax], 0
je 0x140014dd0
lea rcx, [rbp + 8]
call fcn.140011325
jmp 0x140014de9
mov rax, qword [rbp + 0x150]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400111a9
nop
lea rcx, [rbp + 8]
call fcn.140011307
lea rcx, [rbp - 0x30]
lea rdx, [0x140023330]
call fcn.140011631
mov rcx, qword [rbp + 0x120]
xor rcx, rbp
call fcn.140011389
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret

Function at 0x140011410
Capabilities:
Terminate process

Disassembly:
jmp 0x14001bc00
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 0x14001151e
Capabilities:
Hide graphical window

Disassembly:
jmp 0x140018a40
push rbp
push rdi
sub rsp, 0x208
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140028040]
xor rax, rbp
mov qword [rbp + 0x198], rax
lea rcx, [0x14002e0fd]
call fcn.140011730
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
lea rax, [0x1400117ad]
mov qword [rbp + 0x18], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0x28], rax
lea rax, str.MainWindow
mov qword [rbp + 0x50], rax
lea rcx, [rbp + 0x10]
call qword [sym.imp.USER32.dll_RegisterClassW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0x12c
mov dword [rsp + 0x30], 0x159
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0xcf0000
lea r8, str.FREE_DON4IK_CATCHING_0.99
lea rdx, str.MainWindow
mov ecx, 8
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rbp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, 9
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.USER32.dll_ShowWindow]
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 4
mov rax, qword [rbp + 0x78]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0x1e
mov dword [rsp + 0x30], 0x96
mov dword [rsp + 0x28], 0xdc
mov dword [rsp + 0x20], 0x55
mov r9d, 0x50000000
lea r8, str.Buy_Private_Program
lea rdx, str.BUTTON
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [0x1400284c0], rax
lea rax, [rbp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x98]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140018bf3
lea rcx, [rbp + 0x98]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x98]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x140018bbe
mov eax, dword [rbp + 0xa8]
mov edi, eax
lea rcx, [rbp - 0x60]
lea rdx, [0x1400230b0]
call fcn.140011631
mov eax, edi
mov rcx, qword [rbp + 0x198]
xor rcx, rbp
call fcn.140011389
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret
Function at 0x140011532
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001aac0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001aae0
xor al, al
jmp 0x14001ab61
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001aaf3
xor al, al
jmp 0x14001ab61
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 0x14001ab1d
xor al, al
jmp 0x14001ab61
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001ab31
xor al, al
jmp 0x14001ab61
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001ab43
xor al, al
jmp 0x14001ab61
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001ab5f
xor al, al
jmp 0x14001ab61
mov al, 1
add rsp, 0x38
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140117490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1401174a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.1400f95f0
jmp 0x14000123c
mov rax, qword [0x1401174a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1401174a0]
mov dword [rax], 1
mov rax, qword [0x1401174e0]
mov rdx, rax
mov rax, qword [0x1401174d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x14011b024], 1
mov rax, qword [0x1401174a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1401174c0]
mov rdx, rax
mov rax, qword [0x1401174b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1401174a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140117490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1401173e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1401173e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.1400f8878
mov rax, qword [0x140117520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140117480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400f8070
mov eax, dword [0x14011b004]
lea rdx, [0x14011b008]
mov ecx, eax
call fcn.14000147c
call fcn.1400f7e07
mov rax, qword [0x140117410]
mov rax, qword [rax]
mov rdx, qword [0x14011b010]
mov qword [rax], rdx
mov rcx, qword [0x14011b010]
mov rdx, qword [0x14011b008]
mov eax, dword [0x14011b004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14011b01c], eax
mov eax, dword [0x14011b020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14011b01c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x14011b024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14011b01c]
add rsp, 0x70
pop rbp
ret
Function at 0x1400f8080
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.1400f93e0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400f8d52
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14011b168]
test eax, eax
je 0x1400f8dea
lea rax, [0x14011b140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14011b170]
mov qword [rbp - 8], rax
jmp 0x1400f8dce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400f8dc2
cmp qword [rbp - 0x10], 0
je 0x1400f8dc2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400f8d88
lea rax, [0x14011b140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400f8deb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400f8ef0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400f8f18
mov eax, 0
jmp 0x1400f8f66
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400f8f41
mov eax, 0
jmp 0x1400f8f66
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400f8f61
mov eax, 0
jmp 0x1400f8f66
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400f8f6c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400f8fea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400f8fe1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400f8fe1
mov rax, qword [rbp - 8]
jmp 0x1400f8fff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400f8fb4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140009b90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x70
cmp qword [rcx + 0xdf8], 0
mov rbx, rcx
movaps xmmword [rsp + 0x60], xmm6
movaps xmm6, xmm1
movaps xmmword [rsp + 0x50], xmm7
movaps xmm7, xmm2
jne 0x140009bd1
mov r8d, 0x5be
lea rdx, str.C:_sourceCSLTools_Simgui.cpp
lea rcx, str.Ctx___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
cmp byte [rbx + 0x37b1], 0
mov rbp, qword [rbx + 0xdf8]
je 0x140009da0
movss xmm1, dword [0x140142b0c]
xorps xmm2, xmm2
comiss xmm7, xmm1
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x90], r14
jbe 0x140009c25
comiss xmm7, xmm2
cvttss2si eax, xmm7
jae 0x140009c1e
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm7
jp 0x140009c1c
je 0x140009c1e
dec eax
movd xmm7, eax
cvtdq2ps xmm7, xmm7
comiss xmm6, xmm1
jbe 0x140009c4a
comiss xmm6, xmm2
cvttss2si eax, xmm6
jae 0x140009c43
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm6
jp 0x140009c41
je 0x140009c43
dec eax
movd xmm6, eax
cvtdq2ps xmm6, xmm6
lea r14, [rbp + 0x3e70]
mov qword [rsp + 0x88], rdi
mov ebx, dword [r14]
sub ebx, 1
movsxd rsi, ebx
js 0x140009ca1
imul rdi, rsi, 0x1c
cmp ebx, dword [r14]
jl 0x140009c87
mov r8d, 0x710
lea rdx, str.C:_sourceCSLTools_Simgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [r14 + 8]
cmp dword [rdi + rax], 1
je 0x140009d37
dec ebx
sub rdi, 0x1c
sub rsi, 1
jns 0x140009c68
movsd xmm0, qword [rbp + 0xe08]
lea rax, [rsp + 0x28]
movsd qword [rsp + 0x28], xmm0
movss xmm0, dword [rax]
ucomiss xmm0, xmm6
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
movss xmm1, dword [rax + 4]
jp 0x140009cdf
jne 0x140009cdf
ucomiss xmm1, xmm7
jp 0x140009cdf
je 0x140009d98
mov eax, dword [rbp + 0x3e94]
mov dword [rsp + 0x38], eax
inc eax
mov dword [rbp + 0x3e94], eax
mov ecx, dword [r14]
mov r8d, dword [r14 + 4]
mov eax, dword [rbp + 0x3e90]
movss dword [rsp + 0x3c], xmm6
movss dword [rsp + 0x40], xmm7
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x44], eax
cmp ecx, r8d
jne 0x140009d6d
inc ecx
test r8d, r8d
je 0x140009d59
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x140009d5e
movss xmm0, dword [rdi + rax + 0xc]
movss xmm1, dword [rdi + rax + 0x10]
lea rax, [rsp + 0x20]
movss dword [rsp + 0x20], xmm0
movss dword [rsp + 0x24], xmm1
jmp 0x140009cb4
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, r14
call fcn.140027d10
movsxd rax, dword [r14]
movups xmm0, xmmword [rsp + 0x30]
movsd xmm1, qword [rsp + 0x40]
imul rcx, rax, 0x1c
mov rax, qword [r14 + 8]
movups xmmword [rcx + rax], xmm0
movsd qword [rcx + rax + 0x10], xmm1
mov dword [rcx + rax + 0x18], 0
inc dword [r14]
mov r14, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x98]
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x50]
add rsp, 0x70
pop rbp
ret