joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004a650
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2020
call fcn.1400abe60
sub rsp, rax
mov ebx, r8d
mov dword [r9], 0
xor r8d, r8d
mov rsi, r9
mov rbp, rcx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
je 0x14004a6b3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
mov rax, qword [rsp + 0x2050]
test rax, rax
je 0x14004a73c
mov dword [rax], 4
mov dword [rax + 4], ecx
mov eax, 0xffffffff
jmp 0x14004a705
test ebx, ebx
jle 0x14004a703
nop word [rax + rax]
mov r8d, 0x2000
cmp ebx, 0x2000
ja 0x14004a6d1
mov r8d, ebx
mov r9, rbp
lea rcx, [rsp + 0x20]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rdi, rax
test rax, rax
je 0x14004a71e
mov ecx, dword [rsi]
lea rdx, [rsp + 0x20]
mov r8d, edi
call fcn.14004fc40
sub ebx, edi
mov dword [rsi], eax
test ebx, ebx
jg 0x14004a6c0
xor eax, eax
lea r11, [rsp + 0x2020]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
mov rax, qword [rsp + 0x2050]
test rax, rax
je 0x14004a73c
mov dword [rax], 5
mov dword [rax + 4], ecx
mov eax, 0xffffffff
jmp 0x14004a705
Function at 0x14004d770
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x14004d824
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rsi, r8
mov qword [rsp + 0x30], rdi
mov ebp, edx
mov rbx, rcx
nop word [rax + rax]
mov eax, dword [rbx + 8]
and eax, ebp
test eax, 0x300
je 0x14004d808
movzx edi, word [rbx + 0xc]
mov rdx, rsi
movzx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
shr edi, 8
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
movzx edi, word [rbx + 0xe]
mov rdx, rsi
movzx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
shr edi, 8
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
movzx eax, word [rbx + 0xe]
test ax, ax
je 0x14004d808
mov rcx, qword [rbx + 0x10]
mov edx, eax
mov r9, rsi
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14004d7a0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x14004daa0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x60]
mov rbx, r8
shl rdx, 5
mov rdi, rcx
mov rcx, qword [rcx + 8]
xor r8d, r8d
mov rdx, qword [rax + rdx]
mov rsi, qword [rdx + 0x60]
mov edx, esi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
je 0x14004daf1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
test rbx, rbx
je 0x14004db91
mov dword [rbx + 4], ecx
jmp 0x14004db8b
mov rdi, qword [rdi + 8]
mov edx, 0x1a
mov rcx, rdi
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
js 0x14004dad8
mov r9, rdi
lea rcx, [rsp + 0x30]
mov edx, 4
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 1
je 0x14004db54
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
test rbx, rbx
je 0x14004db91
mov dword [rbx], 5
xor eax, eax
mov dword [rbx + 4], ecx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
add ecx, eax
movzx eax, byte [rsp + 0x32]
shl ecx, 8
add ecx, eax
movzx eax, byte [rsp + 0x30]
add eax, 0x1e
add eax, ecx
add rax, rsi
cmp rax, 0x7fffffff
jbe 0x14004db93
test rbx, rbx
je 0x14004db91
mov dword [rbx + 4], 0x1b
mov dword [rbx], 4
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400568e0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1c8
mov eax, dword [0x140163db0]
mov ecx, eax
inc eax
mov dword [0x140163db0], eax
test ecx, ecx
jne 0x140056ade
cmp byte [0x140163d6c], cl
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [0x140163098], rax
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [0x1401630a8], rax
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov qword [0x1401630a0], rax
mov rax, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [case.0x140071f61.0], rax
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [case.0x140071f61.1], rax
mov rax, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
mov qword [0x140163090], rax
jne 0x140056974
mov rax, qword [0x1401630c0]
mov byte [0x140163d6c], 1
call qword [rax + 0x20]
test eax, eax
je 0x140056aee
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140056aee
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x140056ae8
shr ax, 8
cmp al, 2
jne 0x140056ae8
call fcn.14007eb30
test eax, eax
jne 0x140056aee
lea rcx, str.iphlpapi.dll
call fcn.14005e360
mov qword [0x140163db8], rax
test rax, rax
je 0x1400569da
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x140056a0e
lea rcx, [0x140150880]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlVerifyVersionInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140163e98], rax
mov byte [reloc.WS2_32.dll_accept], 0
xor edx, edx
lea rcx, [rsp + 0x34]
mov r8d, pe_nt_image_headers64
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x20], 0x11c
mov r8b, 3
mov dword [rsp + 0x2c], eax
mov edx, 2
mov qword [rsp + 0x24], 6
xor ecx, ecx
mov dword [rsp + 0x30], 2
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, reloc.WS2_32.dll_recv
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 1
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r9, qword [0x140163e98]
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 0x3b
test r9, r9
je 0x140056ab6
call r9
test eax, eax
sete al
jmp 0x140056ac1
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
setne al
lea rcx, [0x140163eb0]
mov byte [0x140163eb8], al
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x140163d9c], 3
xor eax, eax
add rsp, 0x1c8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
dec dword [0x140163db0]
mov eax, 2
add rsp, 0x1c8
ret
Function at 0x14005e360
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x14005e38a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExW
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14014e080]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
test rax, rax
je 0x14005e3ec
mov rcx, rbx
test r14, r14
je 0x14005e3d9
xor edx, edx
mov r8d, 8
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test r14, r14
je 0x14005e423
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005e423
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r15d, eax
test eax, eax
je 0x14005e4ec
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x14005e450
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [0x140163098]
mov rsi, rax
test rax, rax
je 0x14005e4de
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14005e4de
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x14005e483
mov dword [rsi + rax*2], 0x5c
inc rdi
cmp word [rsi + rdi*2], bp
jne 0x14005e495
add rdi, rdi
sub rdi, rbx
add rdi, rsi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rbx + rdi], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x14005e4b0
mov rcx, rsi
test r14, r14
je 0x14005e4d5
xor edx, edx
mov r8d, 8
call r14
jmp 0x14005e4db
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [0x1401630a8]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x140069840
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter

Disassembly:
push rbx
push rsi
push r14
push r15
sub rsp, 0xe8
cmp byte [0x140163eb8], 0
mov rsi, rdx
mov rbx, rcx
je 0x1400698a0
lea rcx, [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r9, qword [0x140163eb0]
mov rax, qword [rsp + 0x118]
cqo
idiv r9
mov r14, rax
mov rax, qword [rsp + 0x118]
cqo
idiv r9
imul rax, rdx, 0xf4240
cqo
idiv r9
mov r15, rax
jmp 0x1400698c7
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
imul ecx, edx, 0x3e8
mov r14d, edx
sub r8d, ecx
imul r15d, r8d, 0x3e8
test rsi, rsi
je 0x140069abf
mov rcx, rbx
mov qword [rsp + 0x120], rdi
call fcn.140068500
mov rdi, rax
test rax, rax
je 0x14006991c
nop dword [rax + rax]
mov rdx, rdi
mov rcx, rbx
call fcn.1400682a0
xor r9d, r9d
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.140068c20
mov rcx, rbx
call fcn.140068500
mov rdi, rax
test rax, rax
jne 0x1400698f0
cmp qword [rbx + 0x58], 0
je 0x140069aaf
mov qword [rsp + 0x128], r12
movabs rsi, 0x20c49ba5e353f7
mov qword [rsp + 0xe0], r13
movabs rdi, 0xffdf3b645a1cac09
movabs r13, 0x8000000000000000
mov qword [rsp + 0x110], rbp
xor r12d, r12d
mov rcx, rbx
call fcn.1400692f0
cmp qword [rbx + 0x58], r12
je 0x140069a97
cmp byte [0x140163eb8], r12b
je 0x1400699b2
lea rcx, [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x118]
cqo
idiv qword [0x140163eb0]
mov r9, rax
imul rax, rdx, 0xf4240
cqo
idiv qword [0x140163eb0]
mov rcx, rax
jmp 0x1400699d9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
imul ecx, edx, 0x3e8
mov r9d, edx
sub r8d, ecx
imul ecx, r8d, 0x3e8
sub r9, r14
cmp r9, rsi
jge 0x140069a97
cmp r9, rdi
jg 0x1400699ef
mov rdi, r13
jmp 0x140069a16
sub ecx, r15d
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul rax, r9, 0x3e8
movsxd rdi, edx
add rdi, rax
jns 0x140069a97
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r12d
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov qword [rsp + 0x30], r12
neg edi
mov dword [rsp + 0x2c], 0xa
call fcn.140069210
mov rsi, qword [rsp + 0x20]
mov ebp, eax
test eax, eax
jne 0x140069a65
mov edx, 0x3e8
mov rcx, rsi
cmp edi, edx
cmovl edx, edi
movsxd r8, edx
mov edx, dword [rsp + 0x28]
call fcn.140087460
cmp byte [rsp + 0x30], r12b
je 0x140069a75
mov rcx, rsi
call qword [0x1401630a8]
test ebp, ebp
jne 0x140069a97
movabs rdi, 0xffdf3b645a1cac09
movabs rsi, 0x20c49ba5e353f7
cmp qword [rbx + 0x58], r12
jne 0x140069960
mov rbp, qword [rsp + 0x110]
mov r12, qword [rsp + 0x128]
mov r13, qword [rsp + 0xe0]
mov rcx, rbx
call fcn.140068b50
mov rdi, qword [rsp + 0x120]
add rsp, 0xe8
pop r15
pop r14
pop rsi
pop rbx
ret
Function at 0x14006cb50
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14006cc45
lea rdx, [rsp + 0x30]
call fcn.140082f90
test eax, eax
jg 0x14006cc45
xor r8d, r8d
mov rdx, 0xffffffffffffffff
nop
inc rdx
cmp byte [rbx + rdx], r8b
jne 0x14006cb80
test rdx, rdx
je 0x14006cbe4
lea rcx, [rbx - 1]
add rcx, rdx
cmp rcx, rbx
jb 0x14006cbe4
nop word [rax + rax]
cmp byte [rcx], 0x2e
je 0x14006cbaf
dec rcx
cmp rcx, rbx
jae 0x14006cba0
jmp 0x14006cbe4
test rcx, rcx
je 0x14006cbe4
cmp rcx, rbx
je 0x14006cbe4
dec rcx
cmp rcx, rbx
jb 0x14006cbe4
cmp byte [rcx], 0x2e
je 0x14006cbd0
dec rcx
cmp rcx, rbx
jae 0x14006cbc1
jmp 0x14006cbe4
mov r8, rcx
test rcx, rcx
je 0x14006cbe4
inc r8
mov rax, rbx
sub rax, r8
add rdx, rax
test r8, r8
cmovne rbx, r8
mov r8d, 0x1505
lea r9, [rbx + rdx]
cmp rbx, r9
jae 0x14006cc18
lea rdx, [0x140147570]
movzx eax, byte [rbx]
inc rbx
imul r8, r8, 0x21
movsx rcx, byte [rax + rdx]
xor r8, rcx
cmp rbx, r9
jb 0x14006cc01
mov rcx, r8
movabs rax, 0x410410410410411
mul r8
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub r8, rcx
mov rax, r8
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140072090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movzx eax, byte [rdx + 0x24]
cmp byte [rcx + 0x24], al
jne 0x140072114
mov eax, dword [rdx + 0x20]
cmp dword [rcx + 0x20], eax
jne 0x140072114
mov r8, qword [rdx + 0x10]
mov rdx, qword [rcx + 0x10]
test rdx, rdx
je 0x14007210c
test r8, r8
je 0x140072114
cmp byte [rdx], 0
je 0x1400720e1
lea r9, [0x140147570]
nop
movzx eax, byte [r8]
test al, al
je 0x1400720e1
movzx ecx, byte [rdx]
movzx eax, byte [rax + r9]
cmp byte [rcx + r9], al
jne 0x140072102
inc rdx
inc r8
cmp byte [rdx], 0
jne 0x1400720c0
xor r9d, r9d
mov ecx, r9d
mov eax, r9d
cmp byte [rdx], cl
sete cl
cmp byte [r8], al
mov r9d, ecx
setne al
xor r9d, eax
test r9d, r9d
setne al
ret
xor r9d, r9d
test r9d, r9d
setne al
ret
test r8, r8
jne 0x140072114
mov al, 1
ret
xor al, al
ret
Function at 0x140076c90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x130
movzx ebp, r8b
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x140076e6f
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov r15, rax
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rbx + rsi], 0
jne 0x140076cd6
lea rax, [rsi - 1]
cmp rax, 0xff
ja 0x140076e6f
mov r8, rsi
lea rcx, [rsp + 0x20]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
cmp byte [rsi + rbx - 1], 0x2e
jne 0x140076d09
dec rsi
mov rdi, qword [rdi]
mov byte [rsp + rsi + 0x20], 0
test rdi, rdi
je 0x140076e6f
movzx r14d, byte [rsp + 0x20]
lea r12, [0x140147570]
nop word [rax + rax]
mov rbx, qword [rdi + 8]
mov rdi, qword [rdi + 0x18]
cmp qword [rbx + 0x30], r15
jg 0x140076d60
xor edx, edx
mov rcx, rbx
call fcn.140078910
mov rcx, qword [rbx + 0x20]
call qword [0x1401630a8]
mov rcx, rbx
call qword [0x1401630a8]
jmp 0x140076e66
test bpl, bpl
je 0x140076e1b
cmp byte [rbx + 0x28], 0
je 0x140076e1b
mov r9, qword [rbx + 0x20]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [r9 + rax], 0
jne 0x140076d80
cmp rax, rsi
jae 0x140076e1b
mov rcx, rsi
lea r8, [rsp + 0x20]
sub rcx, rax
add r8, rcx
cmp byte [r8 - 1], 0x2e
jne 0x140076e1b
test r8, r8
je 0x140076e11
test r9, r9
je 0x140076e1b
cmp byte [r8], 0
je 0x140076de3
movzx ecx, byte [r9]
test cl, cl
je 0x140076de3
test rax, rax
je 0x140076de8
movzx edx, byte [r8]
movzx ecx, byte [rcx + r12]
cmp byte [rdx + r12], cl
jne 0x140076df1
inc r8
dec rax
inc r9
cmp byte [r8], 0
jne 0x140076db8
test rax, rax
jne 0x140076df7
mov edx, 1
test edx, edx
jmp 0x140076e19
xor edx, edx
test edx, edx
jmp 0x140076e19
movzx eax, byte [r9]
xor edx, edx
movzx ecx, byte [r8]
movzx eax, byte [rax + r12]
cmp byte [rcx + r12], al
sete dl
test edx, edx
jmp 0x140076e19
test r9, r9
jne 0x140076e1b
test rax, rax
jne 0x140076e97
mov r8, qword [rbx + 0x20]
test r8, r8
je 0x140076e66
lea rdx, [rsp + 0x20]
test r14b, r14b
je 0x140076e51
nop
movzx eax, byte [r8]
test al, al
je 0x140076e51
movzx ecx, byte [rdx]
movzx eax, byte [rax + r12]
cmp byte [rcx + r12], al
jne 0x140076e93
inc rdx
inc r8
cmp byte [rdx], 0
jne 0x140076e30
xor ecx, ecx
cmp byte [rdx], cl
sete cl
xor eax, eax
cmp byte [r8], al
setne al
xor ecx, eax
test ecx, ecx
jne 0x140076e97
test rdi, rdi
jne 0x140076d30
xor eax, eax
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
xor ecx, ecx
jmp 0x140076e62
mov rax, rbx
jmp 0x140076e71
Function at 0x140077750
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x30
cmp byte [rcx + 0x9ae], 0
mov rsi, r9
mov rbp, r8
mov rbx, rcx
je 0x1400777d6
cmp qword [rcx + 0x280], 0
je 0x1400777e6
mov rcx, qword [rcx + 0xe8]
mov qword [rsp + 0x48], rdi
test rcx, rcx
je 0x14007779a
cmp byte [rcx + 0x25b], 0
je 0x14007779a
mov dil, 1
jmp 0x1400777a2
xor dil, dil
test rcx, rcx
je 0x1400777a9
mov byte [rcx + 0x25b], 1
mov rax, qword [rbx + 0x1f8]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [rbx + 0x280]
mov rax, qword [rbx + 0xe8]
test rax, rax
je 0x1400777d1
mov byte [rax + 0x25b], dil
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
mov ecx, edx
test edx, edx
je 0x1400777f6
sub ecx, 1
je 0x1400777f6
cmp ecx, 1
jne 0x1400777d6
mov r9, qword [rbx + 0x1f0]
mov r8d, 1
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x140147378]
add rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbx + 0x1f0]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
jmp qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
Function at 0x140079720
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r14, qword [rsp + 0x70]
xor r10d, r10d
mov rbx, rcx
xor r15b, r15b
mov rcx, qword [rcx + 0x338]
mov rdi, r9
mov rsi, r8
mov r12, rdx
mov qword [r14], r10
test rcx, rcx
je 0x140079773
mov rax, r8
sub rax, r9
cmp rax, rcx
jle 0x140079773
lea rsi, [rcx + r9]
cmp byte [rbx + 0x1de], r10b
je 0x1400797ad
mov rcx, qword [rbx + 0x168]
test rcx, rcx
je 0x1400797aa
mov rax, qword [rcx + 0x18]
cmp qword [rcx + 0x10], rax
jae 0x1400797aa
mov rax, qword [rcx + 0x18]
sub rax, qword [rcx + 0x10]
mov rcx, qword [rcx]
add r10, rax
test rcx, rcx
jne 0x140079792
cmp r10, rsi
jne 0x1400797ad
mov r15b, 1
movzx r9d, r15b
mov qword [rsp + 0x20], r14
mov r8, rsi
mov rcx, rbx
call fcn.140084b90
mov ebp, eax
test eax, eax
jne 0x14007993b
test r15b, r15b
je 0x1400797dc
cmp rsi, qword [r14]
jne 0x1400797dc
mov byte [rbx + 0x1df], 1
mov rsi, qword [r14]
test rsi, rsi
je 0x14007993b
test rdi, rdi
je 0x1400798a5
cmp rdi, rsi
cmovb rsi, rdi
cmp byte [rbx + 0x9ae], 0
je 0x1400798a5
cmp qword [rbx + 0x280], 0
je 0x14007986d
mov rcx, qword [rbx + 0xe8]
test rcx, rcx
je 0x140079829
cmp byte [rcx + 0x25b], 0
je 0x140079829
mov r15b, 1
jmp 0x140079831
xor r15b, r15b
test rcx, rcx
je 0x140079838
mov byte [rcx + 0x25b], 1
mov rax, qword [rbx + 0x1f8]
mov r9, rsi
mov r8, r12
mov qword [rsp + 0x20], rax
mov edx, 2
mov rcx, rbx
call qword [rbx + 0x280]
mov rax, qword [rbx + 0xe8]
test rax, rax
je 0x1400798a5
mov byte [rax + 0x25b], r15b
jmp 0x1400798a5
mov r9, qword [rbx + 0x1f0]
lea rcx, [0x14014737e]
mov edx, 2
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbx + 0x1f0]
mov r8d, 1
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rsi, qword [r14]
cmp rsi, rdi
jbe 0x140079939
sub rsi, rdi
lea r8, [r12 + rdi]
cmp byte [rbx + 0x9ae], 0
je 0x140079924
cmp qword [rbx + 0x280], 0
je 0x140079924
mov rcx, qword [rbx + 0xe8]
test rcx, rcx
je 0x1400798e5
cmp byte [rcx + 0x25b], 0
je 0x1400798e5
mov dil, 1
jmp 0x1400798ed
xor dil, dil
test rcx, rcx
je 0x1400798f4
mov byte [rcx + 0x25b], 1
mov rax, qword [rbx + 0x1f8]
mov r9, rsi
mov edx, 4
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [rbx + 0x280]
mov rax, qword [rbx + 0xe8]
test rax, rax
je 0x140079924
mov byte [rax + 0x25b], dil
add qword [rbx + 0x118], rsi
mov rax, qword [rbx + 0x118]
mov qword [rbx + 0x9f8], rax
mov eax, ebp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x14007b580
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x1a0
mov rbx, qword [rcx + 0x10]
mov rsi, rdx
mov r9, qword [rbx + 0x98]
cmp r9, 0xffffffffffffffff
je 0x14007b726
mov rax, qword [rdx + 0x18]
mov rcx, qword [rax + 0x3d8]
test dword [rcx + 0x8c], 0x800
jne 0x14007b726
xorps xmm0, xmm0
mov dword [r11 + 8], 0x80
lea r8, [r11 + 8]
mov rcx, r9
lea rdx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14007b64b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rsp + 0xa0]
mov ebx, eax
call fcn.14005b050
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140077850
mov eax, 2
jmp 0x14007b728
movzx ecx, word [rsp + 0x20]
sub ecx, 1
je 0x14007b6ec
cmp ecx, 1
jne 0x14007b693
mov r8d, 0x2e
lea rdx, [rbx + 0xce]
lea rcx, [rsp + 0x24]
call fcn.140092a20
test rax, rax
je 0x14007b693
movzx ecx, word [rsp + 0x22]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rbx + 0x100], eax
jmp 0x14007b726
mov byte [rbx + 0xce], 0
mov dword [rbx + 0x100], 0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x273f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea rdx, [rsp + 0xa0]
mov ecx, ebx
mov rdi, rax
call fcn.14005b050
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140077850
mov eax, 2
jmp 0x14007b728
cmp dword [rsp + 0x1b0], 2
jle 0x14007b715
lea r9, [rsp + 0x22]
mov edx, 0x2e
lea r8, [0x14014af60]
lea rcx, [rbx + 0xce]
call fcn.14007e5a0
jmp 0x14007b71c
mov byte [rbx + 0xce], 0
mov dword [rbx + 0x100], 0
xor eax, eax
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14007f030
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [0x1401630a0]
mov rdi, rax
test rax, rax
je 0x14007f0ad
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x14007f0d8
cmp ebx, esi
je 0x14007f0d8
cmp ebx, 0x8000
ja 0x14007f0d8
cmp ebx, esi
jb 0x14007f0d3
mov edx, ebx
mov rcx, rdi
call qword [0x1401630a0]
mov rdi, rax
test rax, rax
jne 0x14007f070
mov rcx, rbp
call qword [0x1401630a8]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x14007f0b8
mov rcx, rdi
jmp 0x14007f0b0