joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400251c0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400251d0]
mov dword [rax], 1
mov rax, qword [0x1400251e0]
mov dword [rax], 1
mov rax, qword [0x140025170]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400251b0]
mov dword [0x14002900c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140025290]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140025270]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140025120]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400028f0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [dbg.__acrt_iob_func]
xor ebx, ebx
mov r12, rcx
mov rdi, rdx
test rdx, rdx
jle 0x140002932
nop
mov rsi, qword [r12 + rbx*8]
mov ecx, 1
add rbx, 1
call rbp
xor r8d, r8d
mov rcx, rax
mov rdx, rsi
call sym.writeWindows__systemZio_205
cmp rbx, rdi
jne 0x140002910
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x14002315c]
mov r9, rax
call sym.fwrite
mov ecx, 1
call rbp
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.fflush

Function at 0x140002aa0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x140002abf
mov rcx, rdx
call sym.strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sym.fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sym.fflush

Function at 0x140002b70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov rbx, rax
mov r9, rax
call sym.fwrite
mov rcx, rbx
call sym.fflush
mov ecx, 1
call sym.exit
nop

Function at 0x140007c50
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov rcx, rsi
mov r8, rdi
mov edx, 1
mov rbx, rax
mov r9, rax
call sym.fwrite
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.fflush
Function at 0x140010410
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
push rdi
push rsi
push rbx
sub rsp, 0x148
cmp qword [0x140039858], 0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov byte [rbp - 0x131], 1
je 0x1400104f3
mov rax, qword [0x140039848]
lea rcx, [rbp - 0x120]
mov rdx, rbp
mov qword [rbp - 0x130], rax
lea rax, [rbp - 0x130]
mov qword [0x140039848], rax
call sym._setjmp
cdqe
mov qword [rbp - 0x128], rax
test rax, rax
jne 0x140010510
xor ebx, ebx
cmp qword [rbp + 0x10], 0
je 0x1400104c4
mov rcx, qword [rbp + 0x10]
mov edi, 7
call sym.strlen
lea rcx, section..data
cmp rax, rdi
mov rsi, rax
cmovge rdi, rax
lea rdx, [rdi + 0x11]
call sym.rawNewObj__system_5697.constprop.0
mov rdx, qword [rbp + 0x10]
lea r8, [rsi + 1]
mov qword [rax + 8], rdi
lea rcx, [rax + 0x10]
mov rbx, rax
mov qword [rax], rsi
call sym.memcpy
mov rcx, rbx
call qword [0x140039858]
mov rax, qword [0x140039848]
cmp qword [rbp - 0x128], 0
mov byte [rbp - 0x131], 0
mov rax, qword [rax]
mov qword [0x140039848], rax
jne 0x140010587
movzx eax, byte [rbp - 0x131]
test al, al
jne 0x1400105a0
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rax, qword [0x140039848]
mov rax, qword [rax]
mov qword [rbp - 0x128], 0
mov qword [0x140039848], rax
mov rax, qword [0x140039840]
mov rbx, qword [rax + 0x28]
test rbx, rbx
je 0x14001054d
add qword [rbx - 0x10], 8
mov rax, qword [0x140039840]
test rax, rax
je 0x140010572
mov rsi, qword [rax - 0x10]
lea rcx, [rax - 0x10]
lea rdx, [rsi - 8]
mov qword [rax - 0x10], rdx
cmp rdx, 7
ja 0x140010572
mov rdx, rcx
lea rcx, [0x140036c78]
call sym.addZCT__system_5314
cmp qword [rbp - 0x128], 0
mov qword [0x140039840], rbx
je 0x1400104f3
mov rcx, qword [0x140039840]
test rcx, rcx
je 0x1400105d0
call sym.raiseExceptionAux__system_2868
jmp 0x1400104f3
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov rcx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x18]
mov edx, 1
mov rbx, rax
mov r9, rax
call sym.fwrite
mov rcx, rbx
call sym.fflush
jmp 0x140010502
call sym.reraiseException.part.0
nop
nop word cs:[rax + rax]

Function at 0x140017630
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
mov r9, rdx
test rdx, rdx
je 0x14001768b
mov rcx, qword [rcx]
mov r8, qword [r10 + 8]
cmp rdx, 0xffffffffffffffff
je 0x140017690
mov rax, 0xffffffffffffffff
xor edx, edx
div r9
lea rax, [r8 + rcx]
xor r8, rcx
ror rcx, 9
mov r11, r8
xor rcx, r8
ror r8, 0x1c
shl r11, 0xe
xor rcx, r11
mov r11, rdx
add r11, rax
jb 0x140017654
mov qword [r10], rcx
xor edx, edx
lea rcx, [r9 + 1]
div rcx
mov qword [r10 + 8], r8
mov r9, rdx
mov rax, r9
ret
mov rax, rcx
lea r9, [rcx + r8]
ror rcx, 9
xor rax, r8
mov rdx, rax
xor rcx, rax
ror rax, 0x1c
shl rdx, 0xe
mov qword [r10 + 8], rax
mov rax, r9
xor rcx, rdx
mov qword [r10], rcx
ret
Function at 0x1400176c0
Capabilities:
Encode data using xor

Disassembly:
mov r9, rdx
mov r11, rcx
xor edx, edx
test r9, r9
je 0x14001771a
mov rcx, qword [rcx]
mov r8, qword [r11 + 8]
cmp r9, 0xffffffffffffffff
je 0x140017720
mov rax, 0xffffffffffffffff
xor edx, edx
div r9
lea rax, [r8 + rcx]
xor r8, rcx
ror rcx, 9
mov r10, r8
xor rcx, r8
ror r8, 0x1c
shl r10, 0xe
xor rcx, r10
mov r10, rdx
add r10, rax
jb 0x1400176e6
mov qword [r11], rcx
xor edx, edx
lea rcx, [r9 + 1]
div rcx
mov qword [r11 + 8], r8
mov rax, rdx
ret
mov rax, rcx
mov rdx, rcx
xor rax, r8
ror rdx, 9
mov r9, rax
xor rdx, rax
ror rax, 0x1c
shl r9, 0xe
mov qword [r11 + 8], rax
xor rdx, r9
mov qword [r11], rdx
lea rdx, [rcx + r8]
mov rax, rdx
ret

Function at 0x140017750
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
js 0x1400177d8
jne 0x140017770
mov rax, rbx
add rsp, 0x20
pop rbx
ret
mov rax, 0xffffffffffffffff
xor edx, edx
mov rcx, qword [0x14003b700]
mov r8, qword [0x14003b708]
div rbx
lea rax, [r8 + rcx]
xor r8, rcx
ror rcx, 9
mov r10, rdx
mov r9, r8
xor rcx, r8
ror r8, 0x1c
shl r9, 0xe
xor rcx, r9
add r10, rax
jb 0x14001778a
add rbx, 1
xor edx, edx
mov qword [0x14003b700], rcx
div rbx
mov qword [0x14003b708], r8
mov rbx, rdx
mov rax, rbx
add rsp, 0x20
pop rbx
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
call sym.raiseRangeErrorI
cmp rbx, 0xffffffffffffffff
jne 0x140017770
mov rbx, qword [0x14003b700]
mov rcx, qword [0x14003b708]
mov rax, rbx
mov rdx, rbx
add rbx, rcx
xor rax, rcx
ror rdx, 9
mov r8, rax
xor rdx, rax
ror rax, 0x1c
shl r8, 0xe
mov qword [0x14003b708], rax
xor rdx, r8
mov qword [0x14003b700], rdx
jmp 0x14001775f

Function at 0x14001b2d0
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x14001b340
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14003b804]
mov rbx, rcx
test esi, esi
jle 0x14001b470
mov rax, qword [0x14003b808]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001b38b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14001b415
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14001b370
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14001b492
mov rax, qword [0x14003b808]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14003b808]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001b477
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001b40e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14001b420
add dword [0x14003b804], 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 [0x14003b808]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001b40e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x14001b398
mov rax, qword [0x14003b808]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14001ba00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14003b860]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14003b840]
test rbx, rbx
je 0x14001ba5c
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 0x14001ba53
test rsi, rsi
je 0x14001ba53
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001ba38
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 0x14001bc70
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14001bc88
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14001bc90
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x14001bca0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14001bced
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x14001bce4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14001bcef
add rax, 0x28
cmp rax, r9
jne 0x14001bcd0
xor eax, eax
ret

Function at 0x14001bcf0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14001bd80
mov rdx, qword [0x140025170]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14001bd6e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14001bd6e
cmp word [rax + 0x18], 0x20b
jne 0x14001bd6e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14001bd80
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14001bd59
add rbx, 0x28
cmp rbx, rdi
je 0x14001bd80
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14001bd50
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

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

Function at 0x14001be10
Capabilities:
Parse pe header

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

Function at 0x14001be50
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140025170]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14001be70
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14001be78
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14001be70
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14001bec0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14001beb7
test rcx, rcx
je 0x14001be70
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14001bea8
xor eax, eax
ret
Function at 0x14001bed0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140025170]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14001beef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14001bef8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x140025170]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14001bf30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14001bf38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14001bf30
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x14001bf30
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14001bf84
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14001bf90
add rdx, 0x28
cmp r9, rdx
jne 0x14001bf70
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140025170]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14001bfc2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14001bfd0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14001bfc2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14001bfc2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x14001bfc2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14001c025
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14001c038
add rdx, 0x28
cmp rdx, r10
jne 0x14001c010
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14001c047
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14001c057
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14001c02e
test ecx, ecx
jg 0x14001c040
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001fe4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000202e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000202e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000202e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000202e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000202e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002030
xor al, al
add rsp, 0x28
ret
Function at 0x140001f7c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001fc6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001fc6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001fc6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001fc6
cmp dword [rcx + 0x84], 0xe
jbe 0x140001fc6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001fc8
xor al, al
add rsp, 0x28
ret

Function at 0x140002390
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r12, rax
test rax, rax
je 0x140002508
mov ecx, dword [rsp + 0x60]
inc ecx
movsxd rbx, ecx
shl rbx, 3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x140002508
xor edi, edi
mov r14d, edi
cmp dword [rsp + 0x60], edi
jle 0x14000249f
sub rax, r12
mov rsi, r12
mov qword [rsp + 0x68], rax
nop
mov rcx, qword [rsi]
call sub.SDL2.dll_SDL_wcslen
mov r8, qword [rsi]
lea rdx, str.UTF_16LE
lea rcx, str.UTF_8
lea r9, [rax*2 + 2]
call sub.SDL2.dll_SDL_iconv_string
mov rbp, rax
test rax, rax
je 0x140002508
mov rcx, rax
call sub.SDL2.dll_SDL_strlen
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r13 + 1]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x68]
mov qword [rcx + rsi], rax
test rax, rax
je 0x140002508
mov r8d, r13d
mov rdx, rbp
mov rcx, rax
call sub.SDL2.dll_SDL_memcpy
mov rcx, rbp
call sub.SDL2.dll_SDL_free
inc r14d
add rsi, 8
cmp r14d, dword [rsp + 0x60]
jl 0x140002410
movsxd rax, r14d
mov rcx, r12
mov qword [r15 + rax*8], rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
call sub.SDL2.dll_SDL_SetMainReady
mov ecx, dword [rsp + 0x60]
mov rdx, r15
call fcn.140001240
mov esi, eax
cmp dword [rsp + 0x60], edi
jle 0x1400024f0
mov rbx, r15
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbx]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
inc edi
lea rbx, [rbx + 8]
cmp edi, dword [rsp + 0x60]
jl 0x1400024d0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
jmp 0x140002524
xor r9d, r9d
lea r8, str.Out_of_memory___aborting
lea rdx, str.Fatal_Error
lea ecx, [r9 + 0x10]
call sub.SDL2.dll_SDL_ShowSimpleMessageBox
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000c860
Capabilities:
Hash data using djb2

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
sub rsp, 0x20
mov rax, qword [rcx + 0x10]
lea rbx, reloc.WS2_32.dll_getpeername
mov r12, r9
mov r13, r8
mov rdi, rdx
mov rbp, rcx
mov rax, qword [rbx + rax*8]
cmp qword [rcx], rax
jb 0x14000c8a4
call fcn.14000c690
test eax, eax
je 0x14000c8a4
or eax, 0xffffffff
add rsp, 0x20
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
movsx rax, byte [rdi]
mov rcx, rdi
mov qword [rsp + 0x50], rsi
mov esi, 0x1505
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r15
test rax, rax
je 0x14000c8e4
nop dword [rax]
nop dword [rax + rax]
imul rsi, rsi, 0x21
lea rcx, [rcx + 1]
add rsi, rax
movsx rax, byte [rcx]
test rax, rax
jne 0x14000c8d0
mov rcx, qword [rbp + 0x10]
lea r15, [rbp + 0x18]
xor edx, edx
mov rax, rsi
div qword [rbx + rcx*8]
mov r14, rdx
shl r14, 4
add r14, qword [rbp + 8]
mov rbx, qword [r14]
cmp rbx, r15
jne 0x14000c910
cmp rbx, qword [r14 + 8]
je 0x14000c970
nop
cmp qword [rbx - 8], rsi
jne 0x14000c937
lea rax, [rbx + 0x20]
mov r8, rdi
sub r8, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14000c933
inc rax
test ecx, ecx
jne 0x14000c920
test edx, edx
je 0x14000c943
cmp rbx, qword [r14 + 8]
je 0x14000c970
mov rbx, qword [rbx + 8]
jmp 0x14000c910
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14000c965
mov rax, qword [rcx + 8]
cmp rax, 0xffffffffffffffff
je 0x14000c965
sub rax, 1
mov qword [rcx + 8], rax
jne 0x14000c965
call fcn.14000ed90
mov qword [rbx + 0x10], r12
xor eax, eax
jmp 0x14000ca21
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdi + rcx], 0
jne 0x14000c974
add rcx, 0x29
je 0x14000ca1e
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x14000ca1e
mov rdx, rax
mov qword [rax], rsi
sub rdx, rdi
mov qword [rax + 0x20], r13
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rdi]
mov byte [rdx + rdi + 0x28], cl
lea rdi, [rdi + 1]
test cl, cl
jne 0x14000c9b0
mov qword [rax + 0x18], r12
lea rcx, [rax + 8]
mov qword [rcx + 8], rcx
mov qword [rcx], rcx
mov rdx, qword [r14]
cmp rdx, r15
jne 0x14000c9ff
cmp rdx, qword [r14 + 8]
jne 0x14000c9ff
mov qword [rcx + 8], r15
mov rax, qword [r15]
mov qword [rcx], rax
mov rax, qword [r15]
mov qword [rax + 8], rcx
mov qword [r15], rcx
mov qword [r14 + 8], rcx
mov qword [r14], rcx
inc qword [rbp]
xor eax, eax
jmp 0x14000ca21
mov qword [rcx + 8], rdx
mov rax, qword [rdx]
mov qword [rcx], rax
mov rax, qword [rdx]
mov qword [rax + 8], rcx
mov qword [rdx], rcx
mov qword [r14], rcx
inc qword [rbp]
xor eax, eax
jmp 0x14000ca21
or eax, 0xffffffff
mov r14, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov r15, qword [rsp + 0x60]
add rsp, 0x20
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret