joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e1c0
Capabilities:
Encode data using xor
Populate syswhispers2 syscall list
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0x140022360]
test eax, eax
jne 0x14000e1cf
jmp sym.SW3_PopulateSyscallList.part.0
mov eax, 1
ret

Function at 0x14000e3e0
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x7fec0105
call sym.SW3_GetSyscallNumber
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x14000ea50
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x14000f682
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14002d2a8]
test eax, eax
je 0x14000f71a
lea rax, [0x14002d280]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14002d2b0]
mov qword [rbp - 8], rax
jmp 0x14000f6fe
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 0x14000f6f2
cmp qword [rbp - 0x10], 0
je 0x14000f6f2
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 0x14000f6b8
lea rax, [0x14002d280]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000f71b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000f820
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 0x14000f848
mov eax, 0
jmp 0x14000f896
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 0x14000f871
mov eax, 0
jmp 0x14000f896
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 0x14000f891
mov eax, 0
jmp 0x14000f896
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000f89c
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 0x14000f91a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000f911
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 0x14000f911
mov rax, qword [rbp - 8]
jmp 0x14000f92f
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 0x14000f8e4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400172a4
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x1400173ee
mov rcx, qword [rbp + 0x10]
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x1400173e1
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x140017397
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x1400173ad
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x140017393
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x1400173cc
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sym.abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x1400173ef
nop
add rsp, 0x90
pop rbp
ret
Function at 0x14001840b
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [sym.imp.KERNEL32.dll_TlsAlloc]
call rax
mov dword [0x1400243d0], eax
mov eax, dword [0x1400243d0]
cmp eax, 0xffffffff
jne 0x140018432
call sym.abort
nop
add rsp, 0x20
pop rbp
ret

Function at 0x1400185e5
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x14002dd30]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x1400243d0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140018638
mov rax, qword [rbp - 0x10]
jmp 0x140018798
call sym.pop_pthread_mem
mov qword [rbp - 0x10], rax
mov rax, qword [sym.__dyn_tls_pthread]
test rax, rax
je 0x140018654
cmp qword [rbp - 0x10], 0
jne 0x14001865e
mov eax, 0
jmp 0x140018798
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call sym.replace_spin_keys
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x140018739
call sym.abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x1400243d0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x140018794
call sym.abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140018892
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call sym.__pthread_self_lite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x1400188ff
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x1400243d0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140018a43
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14001899c
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140018957
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400243d0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x140018a43
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x1400189d6
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x140018a43
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400243d0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x140019685
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
call sym._fpreset
lea rax, [0x1400243e0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x14002dd30]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x1400243d0]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 8]
mov dword [rdx + 0x70], eax
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rdx, rbp
mov rax, qword [rbp - 8]
add rax, 0xd0
mov rcx, rax
call sym._setjmp
test eax, eax
jne 0x14001979a
mov qword [rbp - 0x10], pe_nt_image_headers64
lea rax, [0x1400243e0]
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x140019768
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
call rdx
mov qword [rbp - 0x10], rax
nop
nop
lea rax, [0x1400243e0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
jmp 0x1400197a9
lea rax, [0x1400243e0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x1400197e5
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x140019853
mov rax, qword [rbp - 8]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 8], 0
mov eax, dword [0x1400243d0]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14001989d
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 8]
mov dword [rax + 0xbc], 1
jmp 0x14001989d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [0x1400243e0]
mov rcx, rax
call sym.pthread_mutex_unlock
test eax, eax
je 0x14001988f
mov eax, dword [rbp - 0x14]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x100401300
Capabilities:
Get file attributes

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov rbx, qword [sym.imp.cygwin1.dll___stack_chk_guard]
xor r8d, r8d
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
xor eax, eax
mov r12d, ecx
call sub.cygwin1.dll_lseek
mov r8, rax
xor eax, eax
test r8, r8
js 0x100401349
lea rdx, [rsp + 0x27]
mov r8d, 1
mov ecx, r12d
call sub.cygwin1.dll_read
test rax, rax
setg al
movzx eax, al
mov rcx, qword [rsp + 0x28]
xor rcx, qword [rbx]
jne 0x10040135b
add rsp, 0x38
pop rbx
pop r12
ret
call sub.cygwin1.dll___stack_chk_fail
nop
nop word cs:[rax + rax]
nop dword [rax]
push rbx
sub rsp, 0xb0
mov rbx, qword [sym.imp.cygwin1.dll___stack_chk_guard]
mov rax, qword [rbx]
mov qword [rsp + 0xa8], rax
xor eax, eax
lea rdx, [rsp + 0x20]
call sub.cygwin1.dll_fstat
mov r8d, eax
xor eax, eax
test r8d, r8d
jne 0x1004013b4
mov eax, dword [rsp + 0x30]
and eax, 0xf000
cmp eax, 0x6000
sete al
movzx eax, al
mov rdx, qword [rsp + 0xa8]
xor rdx, qword [rbx]
jne 0x1004013ca
add rsp, 0xb0
pop rbx
ret
call sub.cygwin1.dll___stack_chk_fail
nop

Function at 0x100401370
Capabilities:
Get file attributes

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov rbx, qword [sym.imp.cygwin1.dll___stack_chk_guard]
xor r8d, r8d
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
xor eax, eax
mov r12d, ecx
call sub.cygwin1.dll_lseek
mov r8, rax
xor eax, eax
test r8, r8
js 0x100401349
lea rdx, [rsp + 0x27]
mov r8d, 1
mov ecx, r12d
call sub.cygwin1.dll_read
test rax, rax
setg al
movzx eax, al
mov rcx, qword [rsp + 0x28]
xor rcx, qword [rbx]
jne 0x10040135b
add rsp, 0x38
pop rbx
pop r12
ret
call sub.cygwin1.dll___stack_chk_fail
nop
nop word cs:[rax + rax]
nop dword [rax]
push rbx
sub rsp, 0xb0
mov rbx, qword [sym.imp.cygwin1.dll___stack_chk_guard]
mov rax, qword [rbx]
mov qword [rsp + 0xa8], rax
xor eax, eax
lea rdx, [rsp + 0x20]
call sub.cygwin1.dll_fstat
mov r8d, eax
xor eax, eax
test r8d, r8d
jne 0x1004013b4
mov eax, dword [rsp + 0x30]
and eax, 0xf000
cmp eax, 0x6000
sete al
movzx eax, al
mov rdx, qword [rsp + 0xa8]
xor rdx, qword [rbx]
jne 0x1004013ca
add rsp, 0xb0
pop rbx
ret
call sub.cygwin1.dll___stack_chk_fail
nop
Function at 0x1004014c0
Capabilities:
Get file attributes

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0xc8
mov rsi, qword [sym.imp.cygwin1.dll___stack_chk_guard]
xor r13d, r13d
mov rax, qword [rsi]
mov qword [rsp + 0xb8], rax
xor eax, eax
mov r8, rdx
mov rbx, rdx
mov edx, 0x41268
mov r12d, ecx
call sub.cygwin1.dll_ioctl
test eax, eax
js 0x100401520
mov rax, qword [rsp + 0xb8]
xor rax, qword [rsi]
jne 0x10040159d
mov eax, r13d
add rsp, 0xc8
pop rbx
pop rsi
pop r12
pop r13
ret
lea r8, [rsp + 0x28]
mov edx, 0x1260
mov ecx, r12d
call sub.cygwin1.dll_ioctl
test eax, eax
js 0x100401548
mov rax, qword [rsp + 0x28]
shl rax, 9
mov qword [rbx], rax
jmp 0x1004014fb
lea rdx, [rsp + 0x30]
mov ecx, r12d
call sub.cygwin1.dll_fstat
mov r13d, eax
mov eax, dword [rsp + 0x40]
and eax, 0xf000
test r13d, r13d
jne 0x10040156d
cmp eax, 0x8000
je 0x100401590
mov r13d, 0xffffffff
cmp eax, 0x6000
jne 0x1004014fb
mov ecx, r12d
xor r13d, r13d
call fcn.1004013d0
mov qword [rbx], rax
jmp 0x1004014fb
mov rax, qword [rsp + 0x58]
mov qword [rbx], rax
jmp 0x1004014fb
call sub.cygwin1.dll___stack_chk_fail
nop
nop word cs:[rax + rax]
nop
push rsi
push rbx
sub rsp, 0x38
mov rsi, qword [sym.imp.cygwin1.dll___stack_chk_guard]
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
xor eax, eax
mov rbx, rdx
lea rdx, [rsp + 0x20]
call fcn.1004014c0
test eax, eax
jne 0x1004015f8
mov rdx, qword [rsp + 0x20]
shr rdx, 9
mov qword [rbx], rdx
mov rbx, qword [rsp + 0x28]
xor rbx, qword [rsi]
jne 0x1004015ff
add rsp, 0x38
pop rbx
pop rsi
ret
mov eax, 0xffffffff
jmp 0x1004015e4
call sub.cygwin1.dll___stack_chk_fail
nop
nop word cs:[rax + rax]
sub rsp, 0x28
mov r8, rdx
mov edx, 0x1268
call sub.cygwin1.dll_ioctl
sar eax, 0x1f
add rsp, 0x28
ret
Function at 0x1004016a0
Capabilities:
Get file attributes

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xb0
mov rsi, qword [sym.imp.cygwin1.dll___stack_chk_guard]
mov rax, qword [rsi]
mov qword [rsp + 0xa8], rax
xor eax, eax
mov eax, dword [rcx + 0x10]
mov r13, rdx
mov rbx, rcx
mov edx, r8d
and eax, 0xf000
cmp eax, 0x6000
je 0x1004017b0
mov rcx, r13
call sub.cygwin1.dll_open
mov r12d, eax
test r12d, r12d
jns 0x100401718
mov rax, qword [rsp + 0xa8]
xor rax, qword [rsi]
jne 0x1004017c3
mov eax, r12d
add rsp, 0xb0
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
lea rdi, [rsp + 0x20]
mov ecx, r12d
mov rdx, rdi
call sub.cygwin1.dll_fstat
test eax, eax
js 0x100401790
mov eax, dword [rbx]
cmp dword [rsp + 0x20], eax
jne 0x100401790
mov rax, qword [rbx + 8]
cmp qword [rsp + 0x28], rax
jne 0x100401790
mov eax, dword [rbx + 0x10]
and eax, 0xf000
cmp eax, 0x6000
jne 0x1004016ee
mov r8, rdi
mov edx, 0x127a
mov ecx, r12d
call sub.cygwin1.dll_ioctl
test eax, eax
js 0x1004016ee
mov eax, dword [rsp + 0x20]
test eax, eax
je 0x1004016ee
lea rcx, str.warning:__s_is_misaligned
call sub.cygintl_8.dll_libintl_gettext
mov rdx, r13
mov rcx, rax
call sub.cygwin1.dll_warnx
jmp 0x1004016ee
mov ecx, r12d
mov r12d, 0xffffffff
call sub.cygwin1.dll_close
call sub.cygwin1.dll___errno
mov dword [rax], 0x51
jmp 0x1004016ee
or dh, 8
mov rcx, r13
call sub.cygwin1.dll_open
mov r12d, eax
jmp 0x1004016e9
call sub.cygwin1.dll___stack_chk_fail
nop
nop dword [rax]
xor eax, eax
ret
Function at 0x100401da0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, qword [sym.imp.cygwin1.dll___stack_chk_guard]
xor r8d, r8d
xor r9d, r9d
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
xor eax, eax
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], 0
call 0x100401a30
mov r8d, eax
xor eax, eax
test r8d, r8d
jne 0x100401ddf
mov eax, dword [rsp + 0x24]
and eax, 1
mov rdx, qword [rsp + 0x28]
xor rdx, qword [rbx]
jne 0x100401def
add rsp, 0x30
pop rbx
ret
call sub.cygwin1.dll___stack_chk_fail
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140011253
Capabilities:
Terminate process

Disassembly:
jmp 0x140013a20
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 0x1400112ee
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014d70
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014d90
xor al, al
jmp 0x140014e11
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014da3
xor al, al
jmp 0x140014e11
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 0x140014dcd
xor al, al
jmp 0x140014e11
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014de1
xor al, al
jmp 0x140014e11
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014df3
xor al, al
jmp 0x140014e11
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014e0f
xor al, al
jmp 0x140014e11
mov al, 1
add rsp, 0x38
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1401fffa0]
mov dword [rax], 1
mov rax, qword [0x1401fffb0]
mov dword [rax], 1
mov rax, qword [0x1401fffc0]
mov dword [rax], 1
mov rax, qword [0x1401fff20]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret