joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418ee0
Capabilities:
Hash data using murmur3

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
cmp byte [0x005326af], 0
jne 0x418fc7
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 0x418fba
lea rbx, [0x00504a98]
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 0x418fa0
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 sym.runtime.panicIndexU
lea rax, [0x0047818a]
mov ebx, 0x2c
call sym.runtime.throw
nop
int3

Function at 0x41b2a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41b3a6
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 0x41b2e3
mov rax, qword [rsp + 0x60]
mov rcx, rdx
mov rbx, qword [rsp + 0x68]
movzx edi, byte [rsp + 0x17]
cmp qword [rsp + 0x18], rbx
jae 0x41b39b
test byte [rax], al
lea rcx, [rax + 0x100b8]
mov ebx, edi
mov rax, rcx
nop dword [rax]
call sym.runtime._scavengeIndex_.find
test rax, rax
je 0x41b39b
movups xmmword [rsp + 0x20], xmm15
movups xmmword [rsp + 0x30], xmm15
movups xmmword [rsp + 0x40], xmm15
lea rcx, [sym.runtime._pageAlloc_.scavenge.func1]
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 sym.runtime.systemstack.abi0
xorps xmm15, xmm15
mov r14, qword [0x005328b8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rdx, qword [rsp + 0x70]
nop dword [rax]
test rdx, rdx
jne 0x41b389
xor eax, eax
jmp 0x41b393
mov rax, qword [rdx]
call rax
mov rdx, qword [rsp + 0x70]
test al, al
je 0x41b2d1
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 sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
movzx edi, byte [rsp + 0x20]
jmp sym.runtime._pageAlloc_.scavenge
Function at 0x428ea0
Capabilities:
Hash data using murmur3

Disassembly:
cmp rsp, qword [r14 + 0x18]
jbe 0x429126
push rbp
mov rbp, rsp
sub rsp, 0x38
test byte [rax], al
mov rcx, qword [rax + 0x1268]
lea rsi, [rax + 0x1278]
sub rcx, rsi
shr rcx, 3
cmp rcx, 0x200
ja 0x42911a
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], rcx
mov qword [rax + 0x1268], 0
cmp byte [0x005326af], 0
jne 0x428efa
xor edx, edx
xor ebx, ebx
jmp 0x428f40
xor edx, edx
jmp 0x428f25
mov qword [rsp + 0x28], rdx
mov rcx, qword [rax + rdx*8 + 0x1278]
mov rax, rcx
call sym.runtime.shade
mov rdx, qword [rsp + 0x28]
inc rdx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
cmp rdx, rcx
jl 0x428efe
add rax, 0x1268
call sym.runtime._wbBuf_.reset
add rsp, 0x38
pop rbp
ret
inc rdx
nop
cmp rdx, rcx
jge 0x4290b4
mov rsi, qword [rax + rdx*8 + 0x1278]
cmp rsi, 0x1000
jb 0x428f3b
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbx
mov rax, rsi
xor ebx, ebx
mov rcx, rbx
call sym.runtime.findObject
test rax, rax
jne 0x428f8c
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x428f3b
mov rsi, qword [rbx + 0x50]
test byte [rsi], al
mov r8, rcx
shr r8, 3
movzx r9d, byte [rsi + r8]
and ecx, 7
mov r10d, 1
shl r10d, cl
nop
add rsi, r8
test r10b, r9b
je 0x428fcc
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x428f3b
nop
lock or byte [rsi], r10b
mov rcx, qword [rbx + 0x18]
movabs rsi, 0x800000000000
lea r8, [rsi + rcx]
mov r9, r8
shr r8, 0x2a
nop
nop
nop
cmp r8, 0x40
jae 0x42910d
lea r10, [0x00504a98]
mov r8, qword [r10 + r8*8]
test byte [r8], al
mov r10, rcx
shr r10, 0x10
and r10d, 0x3f
shr rcx, 0xd
and ecx, 7
mov r11d, 1
shl r11d, cl
shr r9, 0x16
and r9d, 0xfffff
mov r8, qword [r8 + r9*8]
test byte [r8], al
movzx r9d, byte [r8 + r10 + 0x11440]
lea r8, [r8 + r10]
lea r8, [r8 + 0x11440]
test r11b, r9b
jne 0x42904f
lock or byte [r8], r11b
movzx r8d, byte [rbx + 0x6a]
test r8b, 1
je 0x429085
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 0x1250]
add r8, qword [rbx + 0x70]
mov qword [rax + 0x1250], r8
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x428f3b
mov r8, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
cmp r8, rcx
jae 0x429105
mov rbx, qword [rsp + 0x48]
mov qword [rbx + r8*8 + 0x1278], rax
inc r8
mov rax, rbx
mov rdx, qword [rsp + 0x28]
mov rbx, r8
jmp 0x428f3b
cmp rbx, 0x200
ja 0x4290f4
lea rdx, [rax + 0x1278]
lea rsi, [rax + 0x1240]
mov rcx, rbx
mov edi, 0x200
mov rbx, rdx
mov rax, rsi
call sym.runtime._gcWork_.putBatch
mov rax, qword [rsp + 0x48]
add rax, 0x1268
call sym.runtime._wbBuf_.reset
add rsp, 0x38
pop rbp
ret
mov rcx, rbx
mov edx, 0x200
nop dword [rax]
call sym.runtime.panicSliceAcap
mov rax, r8
call sym.runtime.panicIndex
mov rax, r8
mov ecx, 0x40
call sym.runtime.panicIndexU
mov edx, 0x200
nop
call sym.runtime.panicSliceAlenU
nop
mov qword [rsp + 8], rax
call sym.runtime.morestackc.abi0
mov rax, qword [rsp + 8]
jmp sym.runtime.wbBufFlush1
Function at 0x43d300
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x43d467
push rbp
mov rbp, rsp
sub rsp, 0x18
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x43d312
cmp edx, ecx
jne 0x43d455
nop word [rax + rax]
test rsi, rsi
jne 0x43d455
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x43d374
nop
call sym.runtime.nanotime1.abi0
xorps xmm15, xmm15
mov r14, qword [0x005328b8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call sym.runtime.updateTimerPMask
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx]
mov ebx, edx
sar edx, 0x1f
shr edx, 0x1b
add edx, ebx
mov esi, edx
and edx, 0xffffffe0
sub ebx, edx
test ebx, ebx
jl 0x43d450
mov rdx, qword [0x004df8e8]
sar esi, 5
mov rax, rcx
mov ecx, ebx
mov edi, 1
shl edi, cl
movsxd rsi, esi
cmp ecx, 0x20
sbb r8d, r8d
and edi, r8d
cmp rdx, rsi
jbe 0x43d445
mov rcx, qword [0x004df8e0]
lea rcx, [rcx + rsi*4]
lock or dword [rcx], edi
mov rcx, qword [0x004e0330]
mov qword [rax + 8], rcx
mov rcx, rax
nop
mov qword [0x004e0330], rax
nop
mov edx, 1
lea rsi, [0x004e0338]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1228]
shr rdx, 0x3d
test dl, dl
jne 0x43d433
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
nop
nop
xchg qword [rcx + 0x1228], rdx
add rsp, 0x18
pop rbp
ret
lea rax, [0x00477c6e]
mov ebx, 0x28
nop
call sym.runtime.throw
mov rax, rsi
mov rcx, rdx
call sym.runtime.panicIndex
call sym.runtime.panicshift
lea rax, [0x0047739f]
mov ebx, 0x23
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.pidleput
Function at 0x44e980
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x44ea2f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [sym.runtime.callers.func1]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call sym.runtime.systemstack.abi0
xorps xmm15, xmm15
mov r14, qword [0x005328b8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp sym.runtime.callers

Function at 0x4571e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x005326a8], 0
je 0x4571ee
jmp sym.aeshashbody
jmp sym.runtime.memhashFallback

Function at 0x457200
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x005326a8], 0
je 0x457215
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp sym.aeshashbody
jmp sym.runtime.strhashFallback

Function at 0x457220
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x005326a8], 0
je 0x457255
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x00532c00]
aesenc xmm0, xmmword [0x00532c10]
aesenc xmm0, xmmword [0x00532c20]
movq rax, xmm0
ret
jmp sym.runtime.memhash32Fallback

Function at 0x457260
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x005326a8], 0
je 0x457296
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00532c00]
aesenc xmm0, xmmword [0x00532c10]
aesenc xmm0, xmmword [0x00532c20]
movq rax, xmm0
ret
jmp sym.runtime.memhash64Fallback

Function at 0x458b40
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov rdx, 2
jmp sym.sigtramp

Function at 0x458f40
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x458f74
mov rcx, 0x28
jmp 0x458f7f
shl rcx, 3
add rcx, 0x1480
mov qword [0x005328b8], rcx
pop rbp
ret
Function at 0x45e0c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45e18a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x005328b8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x45e16f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x00467160]
xor ebx, ebx
mov rcx, rdx
call sym.runtime.makeslice
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call sym.syscall.encodeWTF16
inc rbx
cmp rcx, rbx
jae 0x45e15e
mov edi, 1
lea rsi, [0x00467160]
call sym.runtime.growslice
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x0048c328]
lea rsi, [0x0048c078]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.syscall.UTF16FromString
Function at 0x1400010e0
Capabilities:
Log keystrokes via application hook
Set console window title

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rcx, str.UwU_0w0
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor r9d, r9d
lea rdx, section..text
mov r8, rax
lea ecx, [r9 + 0xd]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x140005630], rax
test rax, rax
jne 0x140001165
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Failed_to_set_up_keyboard_hook_
call fcn.140001260
mov rcx, rax
lea rdx, [0x140001430]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400014f0
add rsp, 0x68
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor r9d, r9d
lea rdx, [0x140001070]
mov r8, rax
lea ecx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov qword [0x140005628], rax
test rax, rax
jne 0x1400011d7
lea rdx, str.Failed_to_set_up_mouse_hook_
call fcn.140001260
mov rcx, rax
lea rdx, [0x140001430]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [0x140005630]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400014f0
add rsp, 0x68
ret
lea rdx, str.Setup_hooks_UwU
call fcn.140001260
mov rcx, rax
lea rdx, [0x140001430]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x14000123d
nop word [rax + rax]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jg 0x140001210
mov rcx, qword [0x140005630]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400014f0
add rsp, 0x68
ret
Function at 0x140001dcc
Capabilities:
Parse pe header

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

Function at 0xcca058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00cca1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xcca089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xcca06f
add dl, dl
jne 0xcca096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xcca0f6
xor eax, eax
add dl, dl
jne 0xcca0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xcca1ad
add dl, dl
jne 0xcca0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcca0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcca0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcca0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xcca0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xcca07e
mov eax, 1
add dl, dl
jne 0xcca106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcca113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xcca0fb
sub eax, ebx
mov ebx, 1
jne 0xcca14c
mov ecx, 1
add dl, dl
jne 0xcca12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcca13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xcca123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xcca07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xcca168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcca175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xcca15d
cmp eax, 0x7d00
jae 0xcca19b
cmp eax, 0x500
jb 0xcca196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xcca07e
cmp eax, 0x7f
ja 0xcca19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xcca07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xcca1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0xcca07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1004010e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
push rbx
sub rsp, 0x48
xor r8d, r8d
mov edx, 0x2000001
mov rbx, rcx
mov ecx, 2
call sub.cygwin1.dll_socket
test eax, eax
mov dword [rbx], eax
jns 0x100401116
lea r9, str.s____0
lea r8, str.anonymous::Socket::Socket__
mov edx, 0x49
jmp 0x10040116a
mov ecx, eax
lea rsi, [rsp + 0x30]
call fcn.100402743
mov ecx, dword [rbx]
mov r8d, 0x10
mov rdx, rsi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov word [rsp + 0x30], 2
mov dword [rsp + 0x34], 0x100007f
call sub.cygwin1.dll_bind
test eax, eax
je 0x100401176
lea r9, str.bindRet__0
lea r8, str.anonymous::Socket::Socket__
mov edx, 0x52
lea rcx, str.wslbridge.cc
call sub.cygwin1.dll___assert_func
mov ecx, dword [rbx]
mov edx, 1
call sub.cygwin1.dll_listen
test eax, eax
je 0x10040119b
lea r9, str.listenRet__0
lea r8, str.anonymous::Socket::Socket__
mov edx, 0x55
jmp 0x10040116a
mov ecx, dword [rbx]
lea r8, [rsp + 0x2c]
mov rdx, rsi
mov dword [rsp + 0x2c], 0x10
call sub.cygwin1.dll_getsockname
test eax, eax
je 0x1004011cb
lea r9, str.getRet__0
lea r8, str.anonymous::Socket::Socket__
mov edx, 0x59
jmp 0x10040116a
mov ax, word [rsp + 0x32]
xchg ah, al
movzx eax, ax
mov dword [rbx + 4], eax
add rsp, 0x48
pop rbx
pop rsi
ret

Function at 0x10040139d
Capabilities:
Create pipe

Disassembly:
push rdi
push rbx
sub rsp, 0x48
xor eax, eax
xor r9d, r9d
lea rdi, [rsp + 0x28]
mov rbx, rcx
mov ecx, 6
mov qword [rbx], 0
mov qword [rbx + 8], 0
lea rdx, [rbx + 8]
rep stosd dword [rdi], eax
lea r8, [rsp + 0x28]
mov dword [rsp + 0x28], 0x18
mov dword [rsp + 0x38], 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10040140b
lea r9, str.success___CreatePipe_failed_
lea r8, str.anonymous::PipeHandles_anonymous::createPipe__
lea rcx, str.wslbridge.cc
mov edx, 0x313
call sub.cygwin1.dll___assert_func
mov rax, rbx
add rsp, 0x48
pop rbx
pop rdi
ret

Function at 0x100402163
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x440
mov r12, qword [sym.imp.KERNEL32.dll_ReadFile]
lea rbp, [rsp + 0x3c]
lea rsi, [rsp + 0x40]
mov rbx, rcx
mov rdi, rdx
mov qword [rcx], 0
mov qword [rcx + 8], 0
mov qword [rcx + 0x10], 0
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x20], 0
mov r9, rbp
mov r8d, 0x400
mov rdx, rsi
mov rcx, rdi
call r12
test eax, eax
je 0x1004021e7
mov eax, dword [rsp + 0x3c]
test eax, eax
je 0x1004021e7
mov rdx, qword [rbx + 8]
lea r9, [rsi + rax]
mov byte [rsp + 0x20], 0
mov r8, rsi
mov rcx, rbx
call fcn.10047d630
jmp 0x1004021a6
mov rax, rbx
add rsp, 0x440
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x100402743
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x48
mov r8d, 1
mov edx, 6
lea r9, [rsp + 0x3c]
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x3c], 1
call sub.cygwin1.dll_setsockopt
test eax, eax
je 0x100402790
lea r9, str.nodelayRet__0
lea r8, str.void_setSocketNoDelay_int_
lea rcx, str..._common_SocketIo.cc
mov edx, 0x58
call sub.cygwin1.dll___assert_func
nop
add rsp, 0x48
ret
Function at 0x10040280c
Capabilities:
Get socket status

Disassembly:
push rbx
sub rsp, 0x50
movsxd rax, dword [rcx + 8]
mov edx, 1
xor r9d, r9d
mov rbx, rcx
xor r8d, r8d
mov qword [rsp + 0x20], 0
mov rcx, rax
shr rax, 6
shl rdx, cl
or qword [rbx + rax*8], rdx
inc ecx
mov rdx, rbx
call sub.cygwin1.dll_select
test eax, eax
jns 0x10040285b
call sub.cygwin1.dll___errno
cmp dword [rax], 4
lea rcx, str.internal_error:_select_on_wakeup_pipe_failed
jne 0x10040288e
jmp 0x100402895
mov ecx, dword [rbx + 8]
lea rdx, [rsp + 0x30]
mov r8d, 0x20
call fcn.1004026a8
test rax, rax
jns 0x100402893
call sub.cygwin1.dll___errno
cmp dword [rax], 0xb
je 0x100402895
call sub.cygwin1.dll___errno
cmp dword [rax], 0xb
je 0x100402895
lea rcx, str.internal_error:_wakeup_pipe_read_failed
call fcn.1004025dd
je 0x100402887
add rsp, 0x50
pop rbx
ret
Function at 0x6bac2880
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x6bb0f260]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x6bac28f9
mov rcx, r10
call fcn.6bac2750
test eax, eax
je 0x6bac28f9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x6bac28f6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x6bac28ed
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x6bac28f9
add r8, 0x28
cmp r8, r9
jne 0x6bac28d8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x180003c90
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x180003cb8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x180003cde
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180003ce0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180003d39
test ecx, ecx
jle 0x180003d19
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x180003d39
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180003d39
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret