joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b3b0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004ab5e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004ab5c0]
test rbx, rbx
je 0x46b404
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x46b3fb
test rsi, rsi
je 0x46b3fb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x46b3e0
lea rcx, [0x004ab5e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x46b640
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x46b650
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x46b660
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x46b6a1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x46b698
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x46b6a3
add rax, 0x28
cmp rax, r9
jne 0x46b684
xor eax, eax
repz ret

Function at 0x46b750
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0048e260]
xor r9d, r9d
mov rdx, rcx
cmp word [r8], 0x5a4d
je 0x46b771
mov rax, r9
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x46b769
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x46b769
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x46b7c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x46b7e0
add rax, 0x28
cmp rax, r9
jne 0x46b7b0
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
mov r9, rax
mov rax, r9
add rsp, 0x28
ret

Function at 0x46b900
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0048e260]
xor eax, eax
mov rdx, rcx
cmp word [r8], 0x5a4d
je 0x46b920
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x46b918
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x46b97d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x46b974
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x46b984
add rax, 0x28
cmp rax, r9
jne 0x46b960
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x46b9a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x0048e260]
xor r9d, r9d
mov r8d, ecx
cmp word [r11], 0x5a4d
je 0x46b9c1
mov rax, r9
add rsp, 0x28
ret
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x46b9b9
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x46b9b9
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x46b9b9
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov rcx, r9
jb 0x46ba14
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x46ba30
add rdx, 0x28
cmp rdx, r10
jne 0x46ba00
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jne 0x46ba48
jmp 0x46ba1d
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x46ba56
mov edx, dword [rax + 0xc]
test edx, edx
je 0x46ba1d
test r8d, r8d
jg 0x46ba40
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret

Function at 0x46bb90
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov r8d, 0xffff
mov dword [0x004ab640], 0xffffffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x004ab648], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x46bbe0
lea rdx, [0x0046bab0]
mov ecx, eax
mov dword [0x004ab638], eax
call dbg.__mingwthr_key_dtor
test eax, eax
jne 0x46bbe8
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46bbd7
call sym.abort
nop
nop
Function at 0x46bbf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x0048e1e0]
mov rbx, rcx
mov r11d, dword [rsi]
test r11d, r11d
jne 0x46bc24
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x46bc81
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rdi, qword [rcx + 0x10]
test rdi, rdi
je 0x46bcd0
mov esi, dword [0x004ab638]
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbp
mov r12d, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x46bc90
mov r12, qword [rsi]
cmp rdi, r12
ja 0x46bd40
lea rsi, [rsi + rdi*8]
mov rax, qword [rsi]
test rax, rax
jne 0x46bc17
mov rcx, rbx
call fcn.0046baf0
mov qword [rsi], rax
jmp 0x46bc17
call fcn.0046baf0
mov qword [rbx + 0x10], rax
jmp 0x46bc17
lea rcx, [rdi + 0x21]
mov edx, 8
lea r12, [rdi + 0x20]
call sym.calloc
test rax, rax
mov rsi, rax
je 0x46be23
mov qword [rax], r12
mov rdx, rsi
mov ecx, dword [0x004ab638]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x46bc68
call rbp
jmp 0x46bc68
mov r10d, dword [rsi]
test r10d, r10d
je 0x46bcf6
mov r9d, dword [0x00479fe0]
test r9d, r9d
je 0x46bdf1
lock add dword [0x004ab640], 1
jne 0x46bdca
mov rdi, qword [rbx + 0x10]
test rdi, rdi
je 0x46bdaf
mov eax, dword [rsi]
test eax, eax
je 0x46bc31
mov eax, 0xffffffff
lock xadd dword [0x004ab640], eax
sub eax, 1
js 0x46bc31
xor r8d, r8d
mov edx, 1
mov rcx, qword [0x004ab648]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x46bc31
lea r13, [r12 + r12]
lea rax, [rdi + 0x20]
mov rcx, rsi
cmp rdi, r13
cmova r13, rax
lea rdx, [r13*8 + 8]
call sym.realloc
test rax, rax
mov rsi, rax
je 0x46be23
mov r8, r13
lea rcx, [rax + r12*8 + 8]
mov qword [rax], r13
sub r8, r12
xor edx, edx
shl r8, 3
call sym.memset
jmp 0x46bcb1
call fcn.0046bb90
mov dword [0x00479fe0], 1
mov edx, dword [rsi]
test edx, edx
jne 0x46bce8
mov rdi, qword [rbx + 0x10]
test rdi, rdi
jne 0x46bc31
mov rax, qword [0x004ab630]
lea rdi, [rax + 1]
mov qword [0x004ab630], rdi
mov qword [rbx + 0x10], rdi
jmp 0x46bd03
mov edx, 0xffffffff
mov rcx, qword [0x004ab648]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x46bcf6
lock sub dword [0x004ab640], 1
jmp 0x46bcf6
lock add dword [0x00479fe4], 1
je 0x46bd89
mov r8d, dword [0x00479fe0]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
test r8d, r8d
jne 0x46bd98
nop
xor ecx, ecx
call rdi
mov ecx, dword [0x00479fe0]
test ecx, ecx
je 0x46be10
jmp 0x46bd98
call sym.abort
nop
nop dword [rax]
Function at 0x46c450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sym._errno
test rbx, rbx
mov dword [rax], 0
je 0x46c5de
cmp byte [rbx], 0
je 0x46c5a4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46c5c0
test al, 0x10
je 0x46c5a4
lea rdi, [rsp + 0x20]
mov r8d, 0x104
mov rdx, rbx
mov rcx, rdi
mov rsi, rdi
call sym._fullpath
mov edx, dword [rsi]
add rsi, 4
lea eax, [rdx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x46c4ae
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [rsi + 2]
mov ecx, eax
cmove rsi, rdx
add cl, al
sbb rsi, 3
sub rsi, rdi
lea rcx, [rsi + 0x24b]
call sym.malloc
test rax, rax
mov rbx, rax
je 0x46c5cf
lea r9, [rax + 0x244]
lea rbp, [rsi + 1]
mov rdx, rdi
mov rcx, r9
mov r8, rbp
call sym.memcpy
cmp byte [rbx + 0x244], 0
mov r9, rax
je 0x46c540
movzx eax, byte [rbx + rsi + 0x243]
cmp al, 0x2f
je 0x46c540
cmp al, 0x5c
je 0x46c540
mov r8d, 0x5c
mov word [r9 + rsi], r8w
mov rsi, rbp
mov eax, 0x2a
xor edx, edx
xor ecx, ecx
mov word [r9 + rsi], ax
mov word [rbx + 0x12c], dx
lea rdx, [rbx + 0x130]
mov word [rbx + 0x12e], cx
xor eax, eax
mov ecx, 0x20
mov rdi, rdx
mov qword [rbx + 0x238], 0xffffffffffffffff
mov dword [rbx + 0x240], 0
mov dword [rbx + 0x128], 0
rep stosq qword [rdi], rax
mov rax, rbx
mov dword [rdi], 0
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym._errno
mov dword [rax], 0x14
xor eax, eax
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym._errno
mov dword [rax], 2
xor eax, eax
jmp 0x46c598
call sym._errno
mov dword [rax], 0xc
xor eax, eax
jmp 0x46c598
call sym._errno
mov dword [rax], 0xe
xor eax, eax
jmp 0x46c598
Function at 0x477aca
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x2c], 1
call qword [sym.imp.msvcrt.dll__get_osfhandle]
lea r8, [rsp + 0x2c]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
nop
add rsp, 0x38
ret

Function at 0x477b86
Capabilities:
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
cmp dword [rcx + 0xb8], 0
mov rbx, rcx
mov esi, edx
jne 0x477d7a
test edx, 0x1000000
mov dword [rbx + 0x24c], edx
jne 0x477bd3
lea rcx, str.LIBEV_FLAGS
call sym.getenv
test rax, rax
je 0x477bd3
lea rcx, str.LIBEV_FLAGS
call sym.getenv
mov rcx, rax
call sym.atoi
mov esi, eax
call sym.ev_time
movsd qword [rbx], xmm0
call sym.ev_time
lea rax, [sym.ev_invoke_pending]
movsd xmm1, qword [rbx]
mov dword [rbx + 0x248], 0
movsd qword [rbx + 0x10], xmm0
mov dword [rbx + 0x230], 0
subsd xmm1, xmm0
mov qword [rbx + 0x270], rax
mov eax, esi
or eax, 1
test si, si
mov dword [rbx + 0x12c], 0
cmove esi, eax
movsd qword [rbx + 8], xmm0
mov qword [rbx + 0xa8], 0
and sil, 1
mov qword [rbx + 0xb0], 0
mov dword [rbx + 0xb8], 0
movsd qword [rbx + 0x18], xmm1
mov dword [rbx + 0xc4], 0xffffffff
mov dword [rbx + 0x128], 0
mov dword [rbx + 0xec], 0xffffffff
mov dword [rbx + 0xf0], 0xffffffff
je 0x477d22
lea rax, [sym.select_modify]
movsd xmm2, qword [0x00487900]
mov edx, 0x208
xor ecx, ecx
mov qword [rbx + 0xd0], rax
lea rax, [sym.select_poll]
movsd qword [rbx + 0xc8], xmm2
mov qword [rbx + 0xd8], rax
call sym.ev_realloc
mov edx, 0x208
mov qword [rbx + 0x138], rax
xor ecx, ecx
mov dword [rax], 0
call sym.ev_realloc
mov edx, 0x208
xor ecx, ecx
mov qword [rbx + 0x140], rax
call sym.ev_realloc
mov edx, 0x208
mov qword [rbx + 0x148], rax
xor ecx, ecx
mov dword [rax], 0
call sym.ev_realloc
mov edx, 0x208
mov qword [rbx + 0x150], rax
xor ecx, ecx
call sym.ev_realloc
mov dword [rbx + 0xb8], 1
mov qword [rbx + 0x158], rax
lea rax, [sym.pendingcb]
mov dword [rbx + 0x8c], 0
mov dword [rbx + 0x88], 0
mov dword [rbx + 0x90], 0
mov dword [rbx + 0xfc], 0
mov qword [rbx + 0xa0], rax
lea rax, [sym.pipecb]
mov dword [rbx + 0xf8], 0
mov dword [rbx + 0x100], 2
mov qword [rbx + 0x110], rax
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x47852b
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Start tcp server

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
cmp dword [rcx + 0xf8], 0
mov r13, qword [sym.imp.WS2_32.dll_socket]
mov rbx, rcx
jne 0x478776
xor r8d, r8d
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x38], 0x10
mov dword [rsp + 0x3c], 0x10
mov edx, 1
mov ecx, 2
call r13
cmp rax, 0xffffffffffffffff
mov rbp, rax
jne 0x47859b
lea rcx, str._libev__error_creating_signal_async_pipe
call sym.ev_syserr
jmp 0x478552
lea r12, [rsp + 0x40]
mov ecx, 0x7f000001
mov word [rsp + 0x40], 2
call qword [sym.imp.WS2_32.dll_htonl]
mov word [rsp + 0x42], 0
mov dword [rsp + 0x44], eax
mov rdx, r12
mov r8d, dword [rsp + 0x38]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
mov r15, qword [sym.imp.WS2_32.dll_closesocket]
jne 0x4786fa
lea rax, [rsp + 0x38]
mov rdx, r12
mov rcx, rbp
mov r14, qword [sym.imp.WS2_32.dll_getsockname]
mov qword [rsp + 0x28], rax
mov r8, rax
call r14
test eax, eax
jne 0x4786fa
mov edx, 1
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x4786fa
xor r8d, r8d
mov edx, 1
mov ecx, 2
call r13
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x4786fa
mov r8d, dword [rsp + 0x38]
mov rdx, r12
mov rcx, rax
or rsi, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x478701
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov r8, qword [rsp + 0x28]
mov rsi, rax
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x478701
lea rdx, [rsp + 0x50]
lea r8, [rsp + 0x3c]
mov rcx, rsi
call r14
test eax, eax
jne 0x478701
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x2726
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x38], eax
jne 0x478701
mov eax, dword [rsp + 0x54]
cmp dword [rsp + 0x44], eax
jne 0x478701
mov ax, word [rsp + 0x52]
cmp word [rsp + 0x42], ax
jne 0x478701
mov rcx, rbp
call r15
xor edx, edx
mov rcx, rdi
mov rbp, qword [sym.imp.msvcrt.dll__open_osfhandle]
call rbp
mov edi, eax
xor edx, edx
mov rcx, rsi
call rbp
mov ecx, edi
mov esi, eax
call sym.fd_intern
mov edx, dword [rbx + 0xf0]
mov dword [rbx + 0xec], edi
test edx, edx
jns 0x478728
mov dword [rbx + 0xf0], esi
jmp 0x478736
or rsi, 0xffffffffffffffff
mov rdi, rsi
mov rcx, rbp
call r15
cmp rdi, 0xffffffffffffffff
je 0x478713
mov rcx, rdi
call r15
cmp rsi, 0xffffffffffffffff
je 0x47858d
mov rcx, rsi
call r15
jmp 0x47858d
mov ecx, esi
call sym.dup2
mov ecx, esi
call sym.close
mov ecx, dword [rbx + 0xf0]
call sym.fd_intern
mov eax, dword [rbx + 0xec]
test eax, eax
jns 0x478751
mov eax, dword [rbx + 0xf0]
lea rdx, [rbx + 0xf8]
mov dword [rbx + 0x120], eax
mov dword [rbx + 0x124], 0x81
mov rcx, rbx
call sym.ev_io_start
dec dword [rbx + 0xbc]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x100401080
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [sym.imp.cygwin1.dll_program_invocation_short_name]
lea rdx, str.Usage:__s___RVfhv____mode_...__file_..._n
mov r8, qword [rsi]
mov rbx, rcx
call sub.cygwin1.dll_fprintf
call sub.cygwin1.dll___getreent
cmp qword [rax + 0x18], rbx
je 0x1004010bc
call sub.cygwin1.dll___getreent
cmp qword [rax + 0x10], rbx
je 0x1004010d0
add rsp, 0x28
pop rbx
pop rsi
ret
mov r8, qword [rsi]
lea rdx, str.Try__s___help_for_more_information_n
mov rcx, rbx
call sub.cygwin1.dll_fprintf
jmp 0x1004010aa
mov r9, rbx
mov r8d, 0x523
mov edx, 1
lea rcx, str._nChange_file_attributes_n_n___R____recursive_____recursively_list_attributes_of_directories_and_their__n______________________contents_n___V____verbose_______Be_verbose_during_operation_n___f____force_________suppress_error_messages_n___h____help__________this_help_text_n___v____version_______display_the_program_version_n_nThe_format_of_mode_is___acCehnrsSt__n_nThe__operator__causes_the_selected_attributes_to_be_added_to_the_nexisting_attributes_of_the_files____causes_them_to_be_removed__and_n_causes_them_to_be_the_only_attributes_that_the_files_have._n_nSupported_attributes:_n_n__r__Readonly:_____file_is_read_only_n__h__Hidden:________file_or_directory_is_hidden_n__s__System:________file_or_directory_that_the_operating_system_uses_n__a__Archive:_______file_or_directory_has_the_archive_marker_set_n__t__Temporary:_____file_is_being_used_for_temporary_storage_n__S__Sparse:________file_is_sparse_n__c__Compressed:____file_or_directory_is_compressed_n__n__Notindexed:____file_or_directory_is_not_to_be_indexed_by_the_n________________________content_indexing_service_n__e__Encrypted:_____file_is_encrypted_n__C__Casesensitive:_directory_is_handled_case_sensitive_n_________________________Windows_10_1803_or_later__local_NTFS_only__n_________________________WSL_must_be_installed__n
add rsp, 0x28
pop rbx
pop rsi
jmp 0x1004016c0
jmp qword [sym.imp.cygwin1.dll_fwrite]
Function at 0x1004014d0
Capabilities:
Get file attributes

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov r13, rcx
call sub.cygwin1.dll_strlen
lea rcx, [rax + 0x101]
call sub.cygwin1.dll_malloc
mov rcx, r13
mov r12, rax
call sub.cygwin1.dll_opendir
mov rbx, rax
test rax, rax
je 0x100401620
mov rdx, r13
mov rcx, r12
call sub.cygwin1.dll_stpcpy
cmp byte [rax - 1], 0x2f
mov rsi, rax
je 0x100401525
mov byte [rax], 0x2f
add rsi, 1
lea r13, [rsp + 0x30]
mov rcx, rbx
call sub.cygwin1.dll_readdir
test rax, rax
je 0x1004015a8
cmp word [rax + 0x18], 0x2e
lea rdx, [rax + 0x18]
je 0x10040152a
cmp word [rax + 0x18], 0x2e2e
je 0x1004015c8
mov rcx, rsi
call sub.cygwin1.dll_strcpy
mov rdx, r13
mov rcx, r12
call sub.cygwin1.dll_lstat
test eax, eax
jne 0x1004015e0
mov eax, dword [rsp + 0x40]
and eax, 0xf000
sub eax, 0x4000
test eax, 0xffffb000
jne 0x10040152a
mov rcx, r12
call fcn.1004012e0
mov eax, dword [rsp + 0x40]
and eax, 0xf000
cmp eax, 0x4000
jne 0x10040152a
mov eax, dword [0x100408020]
test eax, eax
je 0x10040152a
mov rcx, r12
call fcn.1004014d0
jmp 0x10040152a
mov rcx, r12
call sub.cygwin1.dll_free
xor eax, eax
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
cmp byte [rdx + 2], 0
je 0x10040152a
jmp 0x10040154a
call sub.cygwin1.dll___errno
mov ecx, dword [rax]
call sub.cygwin1.dll_strerror
mov rdi, rax
mov rax, qword [sym.imp.cygwin1.dll_program_invocation_short_name]
mov rbp, qword [rax]
call sub.cygwin1.dll___getreent
mov r9, rdi
lea rdx, str._s:__s_while_trying_to_stat__s_n
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x20], r12
mov r8, rbp
call sub.cygwin1.dll_fprintf
jmp 0x10040152a
mov rcx, r12
call sub.cygwin1.dll_free
mov eax, 1
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140024600
Capabilities:
Hash data using murmur3

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
cmp byte [0x140ee50b5], 0
jne 0x1400246e7
sub rbx, qword [rax + 0x18]
mov rdx, qword [rax + 0x50]
test byte [rdx], al
mov esi, dword [rax + 0x64]
imul rbx, rsi
mov rsi, rbx
shr rbx, 0x20
shr rsi, 0x23
and ebx, 7
mov rdi, rcx
mov rcx, rbx
mov r8d, 1
shl r8d, cl
add rdx, rsi
nop
nop
nop
nop
lock or byte [rdx], r8b
mov rcx, qword [rax + 0x18]
movabs rdx, 0x800000000000
lea rax, [rdx + rcx]
mov rdx, rax
shr rdx, 0x2a
nop
nop
nop
cmp rdx, 0x40
jae 0x1400246da
lea rbx, [0x140eb7498]
mov rdx, qword [rbx + rdx*8]
test byte [rdx], al
mov rbx, rcx
shr rbx, 0x10
and ebx, 0x3f
shr rcx, 0xd
and ecx, 7
mov esi, 1
shl esi, cl
shr rax, 0x16
and eax, 0xfffff
mov rax, qword [rdx + rax*8]
test byte [rax], al
movzx edx, byte [rax + rbx + 0x11440]
lea rax, [rax + rbx]
lea rax, [rax + 0x11440]
test sil, dl
jne 0x1400246c0
lock or byte [rax], sil
mov rax, qword [r14 + 0x30]
mov rax, qword [rax + 0xa0]
test byte [rax], al
add qword [rax + 0x1250], rdi
add rsp, 0x10
pop rbp
ret
mov rax, rdx
mov ecx, 0x40
call fcn.14006bb40
lea rax, [0x140899d84]
mov ebx, 0x2c
call fcn.14003b7c0
nop
int3

Function at 0x1400269c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140026ac6
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x70], rcx
mov byte [rsp + 0x17], dil
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x18], 0
jmp 0x140026a03
mov rax, qword [rsp + 0x60]
mov rcx, rdx
mov rbx, qword [rsp + 0x68]
movzx edi, byte [rsp + 0x17]
cmp qword [rsp + 0x18], rbx
jae 0x140026abb
test byte [rax], al
lea rcx, [rax + 0x100b8]
mov ebx, edi
mov rax, rcx
nop dword [rax]
call fcn.1400277a0
test rax, rax
je 0x140026abb
movups xmmword [rsp + 0x20], xmm15
movups xmmword [rsp + 0x30], xmm15
movups xmmword [rsp + 0x40], xmm15
lea rcx, [0x140026b00]
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x18]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rbx, [rsp + 0x20]
mov qword [rsp], rbx
nop dword [rax]
call fcn.140069700
xorps xmm15, xmm15
mov r14, qword [0x140ee5468]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rdx, qword [rsp + 0x70]
nop dword [rax]
test rdx, rdx
jne 0x140026aa9
xor eax, eax
jmp 0x140026ab3
mov rax, qword [rdx]
call rax
mov rdx, qword [rsp + 0x70]
test al, al
je 0x1400269f1
mov rax, qword [rsp + 0x18]
add rsp, 0x50
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov byte [rsp + 0x20], dil
call fcn.140069840
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
movzx edi, byte [rsp + 0x20]
jmp fcn.1400269c0
Function at 0x14000da84
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140017850], eax
call fcn.14000d7d0
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140017850], 0
jne case.default.0x14000dada
mov ecx, 1
call fcn.14000d7d0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
pop rdx
or eax, 0x7ef400fa
invalid
Function at 0x140001000
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
movsxd rax, dword [rcx + 0x3c]
xor r9d, r9d
mov esi, edx
mov rbx, rcx
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov r14d, dword [r8 + 0x1c]
mov r10d, dword [r8 + 0x20]
add r14, rcx
mov r11d, dword [r8 + 0x24]
add r10, rcx
mov r8d, dword [r8 + 0x18]
add r11, rcx
test r8d, r8d
je 0x14000109a
nop dword [rax]
movzx eax, word [r11]
mov edx, 0x811c9dc5
mov edi, dword [r14 + rax*4]
mov eax, dword [r10]
add rax, rbx
movzx ecx, byte [rax]
test cl, cl
je 0x140001086
nop word [rax + rax]
movzx ecx, cl
lea rax, [rax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax]
test cl, cl
jne 0x140001070
cmp esi, edx
je 0x1400010b1
inc r9d
add r11, 2
add r10, 4
cmp r9d, r8d
jb 0x140001050
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov r14, qword [rsp + 0x20]
ret
lea rax, [rbx + rdi]
jmp 0x14000109c
Function at 0x1400021e0
Capabilities:
Access peb ldr_data

Disassembly:
xor rax, rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
ret

Function at 0x14000220d
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [section..data]
syscall
ret

Function at 0x140002af0
Capabilities:
Parse pe header

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