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

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

Function at 0x140019310
Capabilities:
Parse pe header

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

Function at 0x140019750
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x1402af108]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x140018de0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x140018e2a
mov qword [rax + 8], rsi
lea rsi, [0x1402af120]
mov dword [rax], edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1402af100]
mov rcx, rsi
mov qword [0x1402af100], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140018dd6
or eax, 0xffffffff
jmp 0x140018dd8
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140019780
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp 0x140025ad0
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x140025ae0
xor eax, eax
ret
jmp 0x140018dc0

Function at 0x1400197c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x1400197f0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140019808
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x1400b7ee0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x1400b7f28
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x1400b7efa
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140042070]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140042080]
mov dword [rax], 1
mov rax, qword [0x140042090]
mov dword [rax], 1
mov rax, qword [0x140042010]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140042060]
mov dword [0x14004700c], 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 [0x140042140]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140042120]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140041fc0]
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 0x140004a80
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov r13, qword [0x1400421a0]
lea rax, str.echoBinSafe
lea rdi, str._usr_lib_nim_lib_system_io.nim
mov rsi, rdx
xor edx, edx
mov rbp, rcx
mov qword [rsp + 0x28], rax
mov word [rsp + 0x40], dx
mov rdx, qword [r13]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], 0
test rdx, rdx
je 0x140004bb8
movzx eax, word [rdx + 0x22]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x20]
mov qword [r13], rdx
add eax, 1
mov word [rsp + 0x42], ax
cmp ax, 0x7d0
je 0x140004ba8
mov r12, qword [dbg.__acrt_iob_func]
xor ebx, ebx
test rsi, rsi
jle 0x140004b3a
nop word [rax + rax]
mov r14, qword [rbp + rbx*8]
mov ecx, 1
mov qword [rsp + 0x38], rdi
add rbx, 1
mov qword [rsp + 0x30], 0x333
call r12
xor r8d, r8d
mov rdx, r14
mov rcx, rax
call sym.writeWindows__systemZio_205
cmp rbx, rsi
jne 0x140004b08
mov qword [rsp + 0x30], 0x339
mov ecx, 1
mov qword [rsp + 0x38], rdi
call r12
mov r8d, 1
mov edx, 1
lea rcx, [0x14003e54e]
mov r9, rax
call sym.fwrite
mov qword [rsp + 0x38], rdi
mov ecx, 1
mov qword [rsp + 0x30], 0x33a
call r12
mov rcx, rax
call sym.fflush
mov rax, qword [r13]
mov rax, qword [rax]
mov qword [r13], rax
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
call sym.callDepthLimitReached__system_3004
jmp 0x140004af4
mov qword [rsp + 0x20], 0
xor eax, eax
mov word [rsp + 0x42], ax
lea rax, [rsp + 0x20]
mov qword [r13], rax
jmp 0x140004af4

Function at 0x140004da0
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 0x140004dbf
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 0x140035cd0
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 0x140035d40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14005a684]
mov rbx, rcx
test esi, esi
jle 0x140035e70
mov rax, qword [0x14005a688]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140035d8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140035e15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140035d70
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140035e92
mov rax, qword [0x14005a688]
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 [0x14005a688]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140035e77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140035e0e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140035e20
add dword [0x14005a684], 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 [0x14005a688]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140035e0e
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 0x140035d98
mov rax, qword [0x14005a688]
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 0x140036420
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14005a6e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14005a6c0]
test rbx, rbx
je 0x14003647c
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 rsi, rsi
je 0x140036473
test eax, eax
jne 0x140036473
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140036458
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 0x140036690
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400366a8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400366b0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400366c0
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 0x14003670d
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 0x140036704
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14003670f
add rax, 0x28
cmp rax, r9
jne 0x1400366f0
xor eax, eax
ret

Function at 0x140036710
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400367a0
mov rdx, qword [0x140042010]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14003678e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14003678e
cmp word [rax + 0x18], 0x20b
jne 0x14003678e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400367a0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140036779
add rbx, 0x28
cmp rbx, rdi
je 0x1400367a0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140036770
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 0x1400367b0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140036830
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140042010]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14003684f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140036858
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14003684f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140036870
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140042010]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140036890
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140036898
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140036890
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400368e0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400368d7
test rcx, rcx
je 0x140036890
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400368c8
xor eax, eax
ret

Function at 0x1400368f0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140042010]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140036950
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140036958
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140036950
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140036950
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 0x1400369a4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400369b0
add rdx, 0x28
cmp rdx, r9
jne 0x140036990
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140042010]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400369e2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400369f0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400369e2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400369e2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400369e2
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 0x140036a45
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140036a58
add rdx, 0x28
cmp r10, rdx
jne 0x140036a30
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140036a67
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140036a77
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140036a4e
test ecx, ecx
jg 0x140036a60
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140013740
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x138
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x1400137a7
lea r8, [r10 + 0x10]
movabs r11, 0xb5026f5aa96619e9
mov rdx, qword [r8]
xor rdx, qword [r8 - 8]
lea r8, [r8 + 8]
and rdx, 0xffffffff80000000
xor rdx, qword [r8 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x140013762
mov ecx, dword [r10]
jmp 0x1400138c8
cmp ecx, 0x270
jb 0x1400138c8
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [r10 + 0x9c8]
mov qword [rsp], rdi
mov rax, qword [rbx]
mov edi, 0x9c
nop word [rax + rax]
mov r9, qword [rbx + 8]
mov r8, rbx
add rbx, 8
mov rdx, r9
xor rdx, rax
and rdx, 0xffffffff80000000
xor rdx, r9
movzx eax, dl
and al, 1
neg al
mov rax, r9
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4e0]
xor rcx, rdx
mov qword [r8 - 0x9c0], rcx
sub rdi, 1
jne 0x1400137e0
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov r9, qword [rbx]
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx + 8]
mov rdx, rbx
xor r9, r8
add rbx, 8
and r9, 0xffffffff80000000
xor r9, r8
movzx eax, r9b
and al, 1
neg al
sbb rcx, rcx
shr r9, 1
and rcx, r11
xor rcx, qword [rdx - 0xea0]
xor rcx, r9
mov r9, r8
mov qword [rdx - 0x9c0], rcx
sub rdi, 1
jne 0x140013840
mov rdx, qword [r10 + 8]
xor rdx, qword [r10 + 0x1380]
mov rdi, qword [rsp]
and rdx, 0xffffffff80000000
xor rdx, qword [r10 + 8]
mov rbx, qword [rsp + 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov rdx, qword [r10 + rax*8 + 8]
lea eax, [rcx + 1]
mov dword [r10], eax
mov rcx, rdx
mov rax, qword [r10 + 0x1388]
shr rcx, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
add rsp, 8
ret
Function at 0x140013cc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14005c040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x14008f708]
mov rbx, r8
lea rsi, [rdi + 0x164]
lea rcx, [rdi + 0x16c]
mov dword [rsi], 1
call sub.VCRUNTIME140.dll_memcpy
mov dword [rdi + 0x168], ebx
add rbx, 8
je 0x140013d97
mov rax, qword [rdi]
test rax, rax
je 0x140013d55
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x140013d55
test rsi, rsi
je 0x140013d55
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov r8d, ebx
mov qword [rsp + 0x20], 0
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x140013d55
cmp dword [rsp + 0x30], ebx
je 0x140013d97
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x140013d74
mov eax, dword [rdi + 8]
dec eax
test eax, 0xfffffffd
jne 0x140013d74
mov ecx, dword [rdi + 0x60]
lea rdx, [rdi + 0x64]
call r8
mov rbx, qword [rdi]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
xor al, al
mov byte [rbx], 0
mov dword [rdi + 8], 0
jmp 0x140013d99
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140045250
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400186a0
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xa0
movaps xmm0, xmmword [0x14004a190]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm1, xmmword [0x14004a1a0]
movaps xmmword [rsp + 0x40], xmm1
movaps xmm0, xmmword [0x14004a1b0]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [0x14004a1c0]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm0, xmmword [0x14004a1d0]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm1, xmmword [0x14004a1e0]
movaps xmmword [r11 - 0x28], xmm1
movsd xmm0, qword [0x14004a1f0]
movsd qword [r11 - 0x18], xmm0
mov eax, dword [0x14004a1f8]
mov dword [r11 - 0x10], eax
movzx eax, word [0x14004a1fc]
mov word [r11 - 0xc], ax
movzx eax, byte [str.:YWGA_YSH]
mov byte [r11 - 0xa], al
lea rbx, [r11 - 0x78]
xor eax, eax
xor r8b, r8b
mov r11d, eax
mov r9d, eax
mov r10d, eax
mov ecx, eax
mov dword [rsp + 0x20], eax
cmp eax, 0x6f
jge 0x140018777
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
sub r8b, cl
add r8b, 0x32
movsxd rax, r10d
xor r8b, byte [rax + rbx]
movsxd rax, r10d
mov byte [rax + rbx], r8b
lea eax, [r10 + 1]
movzx r8d, al
jmp 0x14001872b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140018782
add rsp, 0xa0
pop rbx
ret
Function at 0x1400199c0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rsi, [0x140093a50]
lea rbp, [0x140093bb8]
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x140019aa7
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140019a87
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140019a87
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xc57395ee
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140019a82
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140019a60
cmp r8d, 0xb52999b6
je 0x140019a8c
test r9d, r9d
jne 0x140019a40
mov rax, qword [rax]
jmp 0x140019a10
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
xor ecx, ecx
add rax, r10
call rax
add rsi, 8
cmp rsi, rbp
jne 0x1400199e2
mov r8, qword [0x140093848]
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test rax, rax
je 0x140019b87
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140019b67
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140019b67
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x6b7f7090
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140019b62
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x140019b40
cmp r8d, 0x638eb820
je 0x140019b6c
test r9d, r9d
jne 0x140019b20
mov rax, qword [rax]
jmp 0x140019af0
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
xor ecx, ecx
add rax, r10
call rax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret