joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140117734
Capabilities:
Encode data using xor

Disassembly:
fst dword [rcx + 0x34]
add ah, cl
xchg edx, eax
adc eax, 0x5520245c
wait
push rdi
push r12
push r13
push r14
push r15
sbb rax, 0x200ec
mov byte [0xe1207451], 0x48
xor eax, esp
sub eax, 0x36242d1d
add dword [rax], eax
and eax, dword [rbp - 0x46]
in eax, dx
mov rbx, r8
or rdi, rcx
test dword [rdi], edi
je 0x14011772f
test rbx, rbx
sbb cl, byte [rdx]
call fcn.1401179a0
jmp 0x1401223cf
cmpsb byte [rsi], byte [rdi]
Function at 0x1004071c0
Capabilities:
Check mutex on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbx, rcx
mov rcx, qword [0x10043b060]
test rcx, rcx
je 0x1004071fb
lea rdx, [0x10043b040]
call qword [sym.imp.KERNEL32.dll_CancelIoEx]
mov rcx, qword [0x10043b060]
call qword [sym.imp.WinDivert.dll_WinDivertClose]
mov qword [0x10043b060], 0
mov rcx, qword [0x10043b058]
test rcx, rcx
je 0x100407218
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x10043b058], 0
mov qword [rsp + 0x48], 0
lea r8, str.Globalwinws_windivert_mutex
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rsi, rax
test rax, rax
je 0x1004072d8
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rdi
cmp eax, 0xb7
je 0x100407380
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WinDivert.dll_WinDivertOpen]
mov rbx, rax
call rdi
mov rcx, rsi
mov dword [0x10043b028], eax
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x10043b028]
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, 0xffffffffffffffff
je 0x100407301
mov qword [0x10043b060], rbx
test rbx, rbx
je 0x10040736d
xor edx, edx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, 1
mov qword [0x10043b058], rax
test rax, rax
je 0x100407398
mov eax, edx
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
mov rcx, rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WinDivert.dll_WinDivertOpen]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, rax
call rdi
mov dword [0x10043b028], eax
cmp rbx, 0xffffffffffffffff
jne 0x100407295
lea rax, [rsp + 0x48]
mov r8d, dword [0x10043b028]
xor edx, edx
mov ecx, 0x1300
mov r9d, 0x409
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rdx, qword [rsp + 0x48]
lea rcx, str.windivert:_error_opening_filter:__s
call fcn.100410720
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x10043b028], 0x241
je 0x1004073f8
mov qword [0x10043b060], 0
xor edx, edx
mov eax, edx
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
mov edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x100407255
call rdi
mov rcx, qword [0x10043b060]
mov dword [0x10043b028], eax
test rcx, rcx
je 0x1004073d1
lea rdx, [0x10043b040]
call qword [sym.imp.KERNEL32.dll_CancelIoEx]
mov rcx, qword [0x10043b060]
call qword [sym.imp.WinDivert.dll_WinDivertClose]
mov qword [0x10043b060], 0
mov rcx, qword [0x10043b058]
test rcx, rcx
je 0x10040736d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov qword [0x10043b058], 0
jmp 0x10040736f
lea rcx, str.windivert:_try_to_disable_secure_boot_and_install_OS_patches_n
call fcn.100410720
xor edx, edx
mov qword [0x10043b060], 0
jmp 0x10040736f
Function at 0x100407420
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbp, qword [0x10042b700]
mov r13, qword [0x10043b060]
cmp byte [rbp], 0
mov rsi, rcx
mov rbx, rdx
mov rdi, r8
jne 0x100407520
mov r12, qword [sym.imp.KERNEL32.dll_GetTickCount]
call r12
mov eax, eax
imul rax, rax, 0x10624dd3
shr rax, 0x26
cmp eax, dword [0x10043b02c]
je 0x1004074a0
mov dword [0x10043b02c], eax
call fcn.100406b20
test al, al
jne 0x1004074a0
call sub.cygwin1.dll___errno
mov dword [rax], 0x13
xor eax, eax
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor ecx, ecx
lea r14, [0x10043b040]
call sub.cygwin1.dll_usleep
mov qword [rsp + 0x38], r14
mov rdx, rsi
mov rcx, r13
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
mov r8d, dword [rbx]
call qword [sym.imp.WinDivert.dll_WinDivertRecvEx]
test eax, eax
jne 0x1004075b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10043b028], eax
cmp eax, 0xe8
je 0x1004075d0
cmp eax, 0x3e5
je 0x100407530
cmp eax, 0x7a
je 0x1004075e0
call sub.cygwin1.dll___errno
mov dword [rax], 5
jmp 0x100407488
call sub.cygwin1.dll___errno
mov dword [rax], 4
jmp 0x100407488
mov rsi, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x100407578
cmp byte [rbp], 0
jne 0x100407520
call r12
mov eax, eax
imul rax, rax, 0x10624dd3
shr rax, 0x26
cmp eax, dword [0x10043b02c]
je 0x100407571
mov dword [0x10043b02c], eax
call fcn.100406b20
test al, al
je 0x10040747d
xor ecx, ecx
call sub.cygwin1.dll_usleep
mov rcx, qword [0x10043b058]
mov edx, 0x32
call rsi
cmp eax, 0x102
je 0x100407540
mov r9d, 1
lea r8, [rsp + 0x4c]
mov rdx, r14
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1004074e6
mov eax, dword [rsp + 0x4c]
jmp 0x1004075bc
mov eax, dword [rsp + 0x48]
mov qword [rbx], rax
mov eax, 1
jmp 0x10040748a
call sub.cygwin1.dll___errno
mov dword [rax], 0x6e
jmp 0x100407488
call sub.cygwin1.dll___errno
mov dword [rax], 0x69
jmp 0x100407488
Function at 0x100407b50
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbx, rcx
mov rcx, qword [rcx + 0x4a38]
mov rdi, rdx
call fcn.1004118f0
mov rsi, rax
test rax, rax
je 0x100407c50
mov eax, dword [rsi + 8]
mov edx, dword [rbx]
mov r8, rdi
lea rcx, str.auto_hostlist__profile__d__:__s_:_fail_counter__d__d_n
lea r9d, [rax + 1]
mov eax, dword [rbx + 0x4a20]
mov dword [rsi + 8], r9d
mov dword [rsp + 0x20], eax
call fcn.100410460
mov eax, dword [rbx + 0x4a20]
mov r9d, dword [rsi + 8]
mov rdx, rdi
lea rcx, str._s_:_profile__d_:_fail_counter__d__d
mov dword [rsp + 0x20], eax
mov r8d, dword [rbx]
call fcn.100410940
mov eax, dword [rbx + 0x4a20]
cmp dword [rsi + 8], eax
jge 0x100407bd0
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
mov edx, dword [rbx]
mov r8, rdi
lea rcx, str.auto_hostlist__profile__d__:_fail_threshold_reached._about_to_add__s_to_auto_hostlist_n
call fcn.100410460
lea rcx, [rbx + 0x4a38]
mov rdx, rsi
call fcn.1004119e0
mov edx, dword [rbx]
mov r8, rdi
lea rcx, str.auto_hostlist__profile__d__:_rechecking__s_to_avoid_duplicates_n
call fcn.100410460
lea r8, [rsp + 0x3f]
mov rdx, rdi
mov rcx, rbx
mov byte [rsp + 0x3f], 0
call fcn.10040f1d0
test al, al
jne 0x100407c21
cmp byte [rsp + 0x3f], 0
je 0x100407ca0
mov edx, dword [rbx]
mov r8, rdi
lea rcx, str.auto_hostlist__profile__d__:_NOT_adding__s_n
call fcn.100410460
mov r8d, dword [rbx]
mov rdx, rdi
lea rcx, str._s_:_profile__d_:_NOT_adding__duplicate_detected
call fcn.100410940
nop
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
mov r8d, dword [rbx + 0x4a24]
lea rcx, [rbx + 0x4a38]
mov rdx, rdi
call fcn.100411460
mov rsi, rax
test rax, rax
jne 0x100407b75
call sub.cygwin1.dll___getreent
mov r8d, 0x1f
mov edx, 1
lea rcx, str.HostFailPoolAdd:_out_of_memory_n
mov r9, qword [rax + 0x18]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
jmp sub.cygwin1.dll_fwrite
mov edx, dword [rbx]
lea rsi, [rbx + 0x3a20]
mov r8, rdi
lea rcx, str.auto_hostlist__profile__d__:_adding__s_to__s_n
mov r9, rsi
call fcn.100410460
mov r8d, dword [rbx]
mov rdx, rdi
mov r9, rsi
lea rcx, str._s_:_profile__d_:_adding_to__s
call fcn.100410940
lea rcx, [rbx + 0x3a00]
mov rdx, rdi
call fcn.1004110c0
test al, al
je 0x100407d10
mov rdx, rdi
mov rcx, rsi
call fcn.10040e1b0
test al, al
je 0x100407d38
mov rcx, rsi
call fcn.10040ea80
mov qword [rbx + 0x4a30], rax
jmp 0x100407bc6
call sub.cygwin1.dll___getreent
mov r8d, 0x1c
mov edx, 1
lea rcx, str.StrPoolAddStr_out_of_memory_n
mov r9, qword [rax + 0x18]
call sub.cygwin1.dll_fwrite
jmp 0x100407bc6
lea rcx, str.write_to_auto_hostlist:
call fcn.100410890
jmp 0x100407bc6
Function at 0x100408460
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
test rcx, rcx
je 0x1004084c0
mov rax, qword [rcx]
test rax, rax
je 0x1004084c0
cmp qword [rcx + 0x78], 0
je 0x1004084c0
cmp byte [rcx + 0x80], 0
mov esi, dword [rax + 0x4a28]
je 0x1004084c0
movzx eax, byte [rcx + 0x62]
cmp al, 0xff
je 0x1004084c0
cmp dl, 6
je 0x1004084d0
add eax, 1
mov r8d, esi
movzx edx, al
mov byte [rbx + 0x62], al
cmp esi, edx
jle 0x1004084f8
lea rcx, str.req_retrans_counter_:__u__u_n
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.100410460
add rsp, 0x28
pop rbx
pop rsi
ret
cmp byte [rcx + 0x64], 0
je 0x1004084c0
cmp byte [rcx + 0x65], 0
jne 0x1004084c0
mov edx, dword [rcx + 0x68]
mov r8d, dword [rbx + 0x6c]
mov ecx, dword [rcx + 0x48]
call fcn.10040e8c0
test al, al
je 0x100408548
movzx eax, byte [rbx + 0x62]
jmp 0x100408499
lea rcx, str.req_retrans_threshold_reached_:__u__u_n
call fcn.100410460
cmp byte [rbx + 0x80], 0
jne 0x100408535
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x78]
lea rcx, str._s_:_profile__d_:_tcp_retrans_threshold_reached
mov r8d, dword [rax]
call fcn.100410940
mov rdx, qword [rbx + 0x78]
mov rcx, qword [rbx]
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.100407b50
mov byte [rbx + 0x62], 0xff
mov edx, 6
mov rcx, rbx
call fcn.100407aa0
jmp 0x10040850d
mov edx, dword [rbx + 0x48]
mov r9d, dword [rbx + 0x6c]
lea rcx, str.req_retrans_:_tcp_seq__u_not_within_the_req_range__u__u._stop_tracking._n
mov r8d, dword [rbx + 0x68]
call fcn.100410460
cmp byte [rbx + 0x80], 0
jne 0x1004085c8
mov rsi, qword [rbx]
mov rbx, qword [rbx + 0x78]
test rbx, rbx
je 0x1004084c0
mov rcx, qword [rsi + 0x4a38]
mov rdx, rbx
call fcn.1004118f0
mov rdx, rax
test rax, rax
je 0x1004084c0
lea rcx, [rsi + 0x4a38]
call fcn.1004119e0
mov edx, dword [rsi]
mov r8, rbx
lea rcx, str.auto_hostlist__profile__d__:__s_:_fail_counter_reset._website_is_working._n
call fcn.100410460
mov r8d, dword [rsi]
mov rdx, rbx
lea rcx, str._s_:_profile__d_:_fail_counter_reset._website_is_working.
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.100410940
mov rsi, qword [rbx]
mov byte [rbx + 0x62], 0xff
test rsi, rsi
je 0x10040856b
mov ecx, dword [rsi + 0xc]
movzx eax, byte [rsi + 0xa]
xor edx, edx
test rcx, rcx
je 0x1004085fa
cmp al, 0x6e
je 0x100408633
cmp al, 0x73
je 0x10040862b
cmp al, 0x64
jne 0x1004085fa
mov rax, qword [rbx + 0x30]
xor edx, edx
cmp rax, rcx
setae dl
mov ecx, dword [rsi + 0x4c]
or byte [rbx + 0x72], dl
xor edx, edx
movzx eax, byte [rsi + 0x45]
test rcx, rcx
je 0x100408623
cmp al, 0x6e
je 0x100408641
cmp al, 0x73
je 0x100408639
cmp al, 0x64
jne 0x100408623
mov rax, qword [rbx + 0x30]
xor edx, edx
cmp rax, rcx
setae dl
or byte [rbx + 0x73], dl
jmp 0x10040856b
mov eax, dword [rbx + 0x48]
sub eax, dword [rbx + 0x54]
jmp 0x1004085f2
mov rax, qword [rbx + 0x20]
jmp 0x1004085f2
mov eax, dword [rbx + 0x48]
sub eax, dword [rbx + 0x54]
jmp 0x10040861b
mov rax, qword [rbx + 0x20]
jmp 0x10040861b
Function at 0x10040dce0
Capabilities:
Read file on windows

Disassembly:
push r15
mov eax, 0x4098
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.10041d940
sub rsp, rax
xor eax, eax
mov r9d, 0x70
mov qword [rdx], 0
mov r12, rcx
mov rsi, rdx
mov rbx, r8
lea rbp, [rsp + 0x20]
mov ecx, 0xe
mov edx, 0x2f
mov qword [r8], 0
mov rdi, rbp
lea r8, [0x100424060]
rep stosq qword [rdi], rax
mov rcx, rbp
call fcn.1004197d0
mov edi, eax
test eax, eax
jne 0x10040de3f
xor r14d, r14d
lea r13, [rsp + 0x90]
mov r9, r12
mov r8d, 0x4000
mov edx, 1
mov rcx, r13
call sub.cygwin1.dll_fread
mov dword [rsp + 0x28], eax
test byte [r12 + 0x10], 0x40
jne 0x10040de13
mov rdx, qword [rbx]
test eax, eax
je 0x10040de58
mov qword [rsp + 0x20], r13
jmp 0x10040ddeb
mov rdx, r14
call sub.cygwin1.dll_realloc
mov rcx, rax
test rcx, rcx
je 0x10040de79
mov qword [rsi], rcx
mov rdx, qword [rbx]
add rcx, rdx
mov eax, r14d
sub eax, edx
mov qword [rsp + 0x38], rcx
xor edx, edx
mov rcx, rbp
mov dword [rsp + 0x40], eax
call fcn.100419990
mov r15d, eax
cmp eax, 1
ja 0x10040de20
mov eax, dword [rsp + 0x40]
mov rdx, r14
sub rdx, rax
mov qword [rbx], rdx
test r15d, r15d
jne 0x10040de58
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x10040dd51
mov rax, r14
mov rcx, qword [rsi]
sub rax, rdx
cmp rax, 0x7f
ja 0x10040ddaa
add r14, 0x20000
test rcx, rcx
jne 0x10040dd90
mov rcx, r14
call sub.cygwin1.dll_malloc
mov rcx, rax
jmp 0x10040dd9b
mov r15d, 0xffffffff
nop dword [rax]
mov rcx, rbp
call fcn.10041b590
mov rcx, qword [rsi]
test rcx, rcx
je 0x10040de3c
call sub.cygwin1.dll_free
mov qword [rsi], 0
mov edi, r15d
mov eax, edi
add rsp, 0x4098
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp rdx, r14
jb 0x10040de67
mov rcx, rbp
call fcn.10041b590
jmp 0x10040de3f
mov rcx, qword [rsi]
call sub.cygwin1.dll_realloc
test rax, rax
je 0x10040de5d
mov qword [rsi], rax
jmp 0x10040de5d
mov r15d, 0xfffffffc
jmp 0x10040de20

Function at 0x10040de90
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
xor r8d, r8d
xor edx, edx
mov rbx, rcx
call sub.cygwin1.dll_fseek
test eax, eax
je 0x10040dec0
xor esi, esi
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call sub.cygwin1.dll_fseek
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
ret
lea rcx, [rsp + 0x2e]
mov r9, rbx
mov r8d, 2
mov edx, 1
call sub.cygwin1.dll_fread
cmp rax, 2
jne 0x10040dea7
cmp byte [rsp + 0x2e], 0x1f
jne 0x10040dea7
cmp byte [rsp + 0x2f], 0x8b
sete sil
jmp 0x10040dea9

Function at 0x10040e0e0
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rdx
lea rdx, [0x100424088]
mov rsi, r8
call sub.cygwin1.dll_fopen
mov rbx, rax
test rax, rax
je 0x10040e13d
mov r8, qword [rsi]
mov rcx, rdi
mov r9, rax
mov edx, 1
call sub.cygwin1.dll_fread
mov rcx, rbx
mov qword [rsi], rax
test byte [rbx + 0x10], 0x40
jne 0x10040e138
call sub.cygwin1.dll_fclose
cmp qword [rsi], 0
setne al
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call sub.cygwin1.dll_fclose
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x10040e150
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rdx
lea rdx, [0x10042408b]
mov rdi, r8
call sub.cygwin1.dll_fopen
mov rbx, rax
test rax, rax
je 0x10040e1a5
mov rcx, rsi
mov r9, rax
mov r8, rdi
mov edx, 1
call sub.cygwin1.dll_fwrite
mov rcx, rbx
test byte [rbx + 0x10], 0x40
jne 0x10040e1a0
call sub.cygwin1.dll_fclose
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call sub.cygwin1.dll_fclose
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x10040ea80
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0xa8
lea rdx, [rsp + 0x20]
call sub.cygwin1.dll_stat
mov edx, eax
xor eax, eax
cmp edx, 0xffffffff
je 0x10040ea9f
mov rax, qword [rsp + 0x60]
add rsp, 0xa8
ret
Function at 0x10040f690
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov r8, rcx
mov r10d, edx
cmp edx, 0xb
jbe 0x10040f8c8
mov r9d, edx
mov ebx, 0x9e3779b9
mov r11d, 0x9e3779b9
mov ecx, 0xfeedbeef
nop dword [rax + rax]
movzx edx, byte [r8 + 5]
movzx eax, byte [r8 + 6]
shl edx, 8
shl eax, 0x10
add edx, eax
movzx eax, byte [r8 + 4]
add edx, eax
movzx eax, byte [r8 + 7]
shl eax, 0x18
add edx, eax
movzx eax, byte [r8 + 9]
add edx, ebx
movzx ebx, byte [r8 + 0xa]
shl eax, 8
shl ebx, 0x10
add eax, ebx
movzx ebx, byte [r8 + 8]
add eax, ebx
movzx ebx, byte [r8 + 0xb]
shl ebx, 0x18
add eax, ebx
movzx ebx, byte [r8 + 2]
add eax, ecx
movzx ecx, byte [r8 + 1]
shl ebx, 0x10
shl ecx, 8
add ecx, ebx
movzx ebx, byte [r8]
add ecx, ebx
movzx ebx, byte [r8 + 3]
shl ebx, 0x18
add ecx, ebx
sub ecx, edx
sub edx, eax
sub ecx, eax
add ecx, r11d
mov r11d, eax
shr r11d, 0xd
xor ecx, r11d
sub edx, ecx
sub eax, ecx
mov r11d, edx
mov edx, ecx
shl edx, 8
xor edx, r11d
sub eax, edx
mov r11d, eax
mov eax, edx
shr eax, 0xd
xor eax, r11d
sub ecx, edx
sub r9d, 0xc
add r8, 0xc
sub ecx, eax
sub edx, eax
mov r11d, ecx
mov ecx, eax
shr ecx, 0xc
xor ecx, r11d
sub edx, ecx
sub eax, ecx
mov r11d, edx
mov edx, ecx
shl edx, 0x10
xor edx, r11d
sub eax, edx
sub ecx, edx
mov r11d, eax
mov eax, edx
shr eax, 5
xor eax, r11d
mov r11d, eax
sub ecx, eax
sub edx, eax
shr r11d, 3
xor r11d, ecx
mov ebx, r11d
sub edx, r11d
sub eax, r11d
shl ebx, 0xa
xor ebx, edx
mov ecx, ebx
sub eax, ebx
shr ecx, 0xf
xor ecx, eax
cmp r9d, 0xb
ja 0x10040f6b8
add ecx, r10d
cmp r9d, 0xb
ja case.0x10040f7d4.0
lea rdx, [0x100424370]
movsxd rax, dword [rdx + r9*4]
add rax, rdx
jmp rax
movzx eax, byte [r8 + 0xa]
shl eax, 0x18
add ecx, eax
movzx eax, byte [r8 + 9]
shl eax, 0x10
add ecx, eax
movzx eax, byte [r8 + 8]
shl eax, 8
add ecx, eax
movzx eax, byte [r8 + 7]
shl eax, 0x18
add ebx, eax
movzx eax, byte [r8 + 6]
shl eax, 0x10
add ebx, eax
movzx eax, byte [r8 + 5]
shl eax, 8
add ebx, eax
movzx eax, byte [r8 + 4]
add ebx, eax
movzx eax, byte [r8 + 3]
shl eax, 0x18
add r11d, eax
movzx eax, byte [r8 + 2]
shl eax, 0x10
add r11d, eax
movzx eax, byte [r8 + 1]
shl eax, 8
add r11d, eax
movzx eax, byte [r8]
add r11d, eax
lea eax, [rcx + rbx]
mov edx, ecx
sub ebx, ecx
sub r11d, eax
shr edx, 0xd
xor edx, r11d
mov eax, edx
sub ebx, edx
sub ecx, edx
shl eax, 8
xor eax, ebx
sub ecx, eax
sub edx, eax
mov r8d, ecx
mov ecx, eax
shr ecx, 0xd
xor ecx, r8d
mov r8d, ecx
sub edx, ecx
sub eax, ecx
shr r8d, 0xc
xor r8d, edx
sub eax, r8d
sub ecx, r8d
mov edx, eax
mov eax, r8d
shl eax, 0x10
xor eax, edx
mov edx, eax
sub ecx, eax
sub r8d, eax
shr edx, 5
xor edx, ecx
mov ecx, edx
sub r8d, edx
sub eax, edx
shr ecx, 3
xor r8d, ecx
mov ecx, r8d
sub eax, r8d
sub edx, r8d
shl ecx, 0xa
xor eax, ecx
sub edx, eax
shr eax, 0xf
xor eax, edx
pop rbx
ret
mov r9d, edx
mov ebx, 0x9e3779b9
mov r11d, 0x9e3779b9
mov ecx, 0xfeedbeef
jmp 0x10040f7b9
Function at 0x10040fc40
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.10040fc00
mov ecx, ebx
call sub.cygwin1.dll_exit
nop
nop word cs:[rax + rax]
nop

Function at 0x100410940
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
xor ebx, ebx
mov rdi, rcx
mov rcx, qword [0x10042b730]
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
cmp byte [rcx + 0x1028], 0
jne 0x100410978
mov eax, ebx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rbx, [rsp + 0x58]
lea rdx, [0x100427910]
add rcx, 0x1028
mov qword [rsp + 0x28], rbx
call sub.cygwin1.dll_fopen
mov rsi, rax
test rax, rax
je 0x1004109ee
mov rcx, rax
call fcn.10040ea00
mov r9, rsi
mov r8d, 3
mov edx, 1
lea rcx, [0x10042791e]
call sub.cygwin1.dll_fwrite
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call sub.cygwin1.dll_vfprintf
mov rdx, rsi
mov ecx, 0xa
mov ebx, eax
call sub.cygwin1.dll_fputc
mov rcx, rsi
call sub.cygwin1.dll_fclose
mov eax, ebx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov ebx, 0xffffffff
jmp 0x10041096b

Function at 0x100410a00
Capabilities:
Reference http user-agent string

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov edx, 0x4a50
mov ecx, 1
call sub.cygwin1.dll_calloc
mov rbx, rax
test rax, rax
je 0x100410b5b
mov byte [rax + 0x25], 1
mov rsi, qword [0x10042b720]
lea rdi, [rbx + 0x618]
mov ecx, 0x51
mov dword [rax + 0x13], 0x74736f68
mov rax, qword [0x100427928]
mov qword [rbx + 0x39b0], 0x288
mov qword [rbx + 0x34], rax
mov rax, qword [0x100427930]
mov qword [rbx + 0x28], rax
rep movsq qword [rdi], qword [rsi]
lea rcx, [rbx + 0x618]
call fcn.10040d970
mov rax, qword [0x10042b710]
mov rsi, qword [rax]
mov rcx, rsi
call sub.cygwin1.dll_strlen
mov rdx, rsi
lea rcx, [rbx + 0x64]
mov qword [rbx + 0x39a8], rax
mov r8, rax
call sub.cygwin1.dll_memcpy
mov rax, qword [0x100427970]
mov byte [rbx + 8], 0xff
mov edx, 0x101
movdqa xmm0, xmmword [0x100427940]
mov word [rbx + 0x39ec], dx
mov qword [rbx + 0x5c], rax
mov eax, 0x6e6e
mov rdx, qword [0x10042b730]
mov word [rbx + 0x44], ax
mov rax, qword [0x100427978]
movups xmmword [rbx + 0x39b8], xmm0
movdqa xmm0, xmmword [0x100427950]
mov qword [rbx + 0x4a20], rax
mov rax, qword [rdx + 0x1010]
movups xmmword [rbx + 0x39c8], xmm0
movdqa xmm0, xmmword [0x100427960]
mov byte [rbx + 0x2868], 0x40
mov byte [rbx + 0x51], 0xff
mov byte [rbx + 0xa], 0x6e
mov dword [rbx + 0x39e8], 2
mov dword [rbx + 0x4a28], 3
movups xmmword [rbx + 0x39d8], xmm0
test rax, rax
je 0x100410b70
nop dword [rax]
mov rdx, rax
mov rax, qword [rax + 0x4a40]
test rax, rax
jne 0x100410b30
mov qword [rbx + 0x4a40], 0
add rdx, 0x4a40
mov qword [rdx], rbx
mov qword [rbx + 0x4a48], rdx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov qword [rdx + 0x1010], rbx
mov rax, rbx
add rdx, 0x1010
mov qword [rbx + 0x4a40], 0
mov qword [rbx + 0x4a48], rdx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x1004140f0
Capabilities:
Set current directory
Terminate process

Disassembly:
sub rsp, 0x28
call sub.cygwin1.dll_fork
cmp eax, 0xffffffff
je 0x100414171
test eax, eax
jne 0x100414160
call sub.cygwin1.dll_setsid
cmp eax, 0xffffffff
je 0x100414167
lea rcx, [0x100427b45]
call sub.cygwin1.dll_chdir
cmp eax, 0xffffffff
je 0x100414167
xor ecx, ecx
call sub.cygwin1.dll_close
mov ecx, 1
call sub.cygwin1.dll_close
mov ecx, 2
call sub.cygwin1.dll_close
mov edx, 2
lea rcx, str._dev_null
call sub.cygwin1.dll_open
xor ecx, ecx
call sub.cygwin1.dll_dup
xor ecx, ecx
add rsp, 0x28
jmp sub.cygwin1.dll_dup
xor ecx, ecx
call sub.cygwin1.dll_exit
mov ecx, 2
call sub.cygwin1.dll_exit
lea rcx, str.fork
call fcn.100410890
mov ecx, 2
call sub.cygwin1.dll_exit
nop
nop dword [rax + rax]
Function at 0x100418d20
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
sub rsp, 0x28
movsx r8d, word [rcx + 0x28]
lea eax, [r8 + 1]
mov rbx, rcx
mov ecx, r8d
movsxd r8, r8d
mov byte [rbx + r8 + 0x2a], dl
cmp cx, 0x37
jle 0x100418d72
cmp ax, 0x3f
jg 0x100418d66
mov r8d, 0x3f
movsx rax, ax
xor edx, edx
sub r8d, ecx
lea rcx, [rbx + rax + 0x2a]
movzx r8d, r8w
call sub.cygwin1.dll_memset
mov rcx, rbx
call fcn.100418890
movzx eax, word [rbx + 0x28]
cmp ax, 0x37
jg 0x100418d95
mov r8d, 0x38
xor edx, edx
sub r8d, eax
movsx rax, ax
lea rcx, [rbx + rax + 0x2a]
movzx r8d, r8w
call sub.cygwin1.dll_memset
mov r9d, dword [rbx + 0x24]
mov ecx, dword [rbx + 0x20]
mov eax, r9d
movzx esi, r9b
mov r10d, r9d
mov r11d, r9d
movzx eax, ah
shr r11d, 0x10
mov edx, ecx
mov r8d, ecx
shr r10d, 0x18
mov r9, rax
mov rax, rsi
shr r8d, 0x10
shl rax, 8
movzx r8d, r8b
shr edx, 0x18
or rax, r9
movzx r9d, r11b
movzx edx, dl
shl rax, 8
or rax, r9
movzx r9d, r10b
shl rax, 8
or rax, r9
movzx r9d, cl
movzx ecx, ch
shl rax, 8
or rax, r9
shl rax, 8
or rax, rcx
mov rcx, rbx
shl rax, 8
or rax, r8
shl rax, 8
or rax, rdx
mov qword [rbx + 0x62], rax
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.100418890

Function at 0x100419320
Capabilities:
Hash data using sha256

Disassembly:
test rcx, rcx
je 0x100418e58
movdqa xmm0, xmmword [0x100427df0]
xor eax, eax
mov qword [rcx + 0x20], 0
mov word [rcx + 0x28], ax
xor eax, eax
movups xmmword [rcx], xmm0
movdqa xmm0, xmmword [0x100427e00]
mov qword [rcx + 0x6c], 0
movups xmmword [rcx + 0x10], xmm0
ret
mov eax, 1
ret
test rcx, rcx
je 0x1004190d8
movdqa xmm0, xmmword [0x100427e10]
xor eax, eax
mov qword [rcx + 0x20], 0
mov word [rcx + 0x28], ax
xor eax, eax
movups xmmword [rcx], xmm0
movdqa xmm0, xmmword [0x100427e20]
mov qword [rcx + 0x6c], 0
movups xmmword [rcx + 0x10], xmm0
ret
mov eax, 1
ret
test rcx, rcx
je 0x100419340
mov dword [rcx], edx
test edx, edx
je 0x100419350
mov eax, 4
cmp edx, 1
jne 0x100419345
add rcx, 4
jmp 0x1004190a0
mov eax, 1
ret
add rcx, 4
jmp 0x100418e20