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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180035fa0
sub rsp, rax
mov rax, qword [0x18004a040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18002349c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180028ea3
mov rax, rbp
jmp 0x180028fab
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x4c320]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18002a9e8
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x4c320]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180028fa7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180028fa7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18002a9e8
test rax, rax
js 0x180028fa7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180028fa7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180028f99
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180028f99
cmp byte [rcx], 0xd
jne 0x180028f7f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180028f8e
cmp byte [rcx + 1], 0xa
jne 0x180028f8e
inc rcx
jmp 0x180028f8e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4a4d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180028f61
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180028fab
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180013c60
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180029d88
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x18004c320]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180029ddf
cmp word [rdx], r13w
jne 0x180029ddf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180029de4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180029f09
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180029f2a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180029e1d
mov rdx, r9
mov word [rbx], cx
jmp 0x180029e44
cmp r9, r8
jae 0x180029e54
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180029dfe
jmp 0x180029f09
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180029efe
cmp dword [rsp + 0x80], esi
je 0x180029efe
lea r8, [0x18004c320]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180029ed6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180029ea6
mov word [rbx], r13w
jmp 0x180029f06
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x180029eb3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180029f06
cmp word [rsp + 0x70], r13w
jne 0x180029ee3
cmp rbx, r14
je 0x180029ea0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18002a9f0
cmp word [rsp + 0x70], r13w
je 0x180029f09
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x18004c320]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180029f03
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180029f09
Function at 0x18002c298
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18002c2c8
xor eax, eax
jmp 0x18002c38b
mov rbp, rbx
cmp word [rax], si
je 0x18002c2ed
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18002c2d4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18002c2d0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18002c1b8
movsxd r14, eax
test eax, eax
jne 0x18002c32b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18002c2c1
mov rcx, r14
call fcn.180026bf8
mov rdi, rax
test rax, rax
jne 0x18002c344
xor ecx, ecx
call fcn.180026774
jmp 0x18002c320
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18002c1b8
test eax, eax
jne 0x18002c375
mov rcx, rdi
call fcn.180026774
jmp 0x18002c37f
xor ecx, ecx
call fcn.180026774
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180030b80
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180023ac0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180030c21
cmp ebx, dword [rsp + 0x30]
je 0x180030c1a
test esi, esi
je 0x180030c1a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180030bf5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180030c02
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180030bdf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180030c06
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180030c23
mov eax, 1
jmp 0x180030c23
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800355b8
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18002a9f0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18002a9f0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180035708
cmp rax, 0xffffffffffffffff
je 0x180035708
xor edi, edi
test rbp, rbp
jle 0x1800356b3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180025914
mov rbx, rax
test rax, rax
jne 0x180035640
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800356a9
mov edx, 0x8000
mov ecx, r14d
call fcn.18003543c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18002646c
cmp eax, 0xffffffff
je 0x180035689
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180035650
mov edx, r15d
mov ecx, r14d
call fcn.18003543c
jmp 0x1800356a9
cmp byte [rsi + 0x38], dil
je 0x1800356a0
cmp dword [rsi + 0x34], 5
jne 0x1800356a0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800356a9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180026774
jmp 0x18003571c
jns 0x18003571c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18002a9f0
cmp rax, 0xffffffffffffffff
jne 0x1800356d4
cmp byte [rsi + 0x30], dil
je 0x18003571c
mov edi, dword [rsi + 0x2c]
jmp 0x18003571c
mov ecx, r14d
call fcn.18002e4d4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18003571c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18003571c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180035715
mov eax, dword [rsi + 0x2c]
jmp 0x18003571a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18002a9f0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180036090
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800360b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800360b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140009a00
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140116f74]
test eax, eax
jns 0x140009aa7
lea rcx, [0x1401186f8]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor ecx, ecx
mov edi, 1
test eax, eax
je 0x140009a5e
mov dword [0x140116f74], edi
call fcn.140052f0c
imul rcx, rax, 0x3e8
mov qword [0x1401186e8], rcx
lea rcx, [0x1401186f0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [0x1401186e8]
jmp 0x140009a8c
mov qword [rsp + 0x38], rbx
mov dword [0x140116f74], 0
call fcn.140052f0c
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
imul rax, rbx, 0x3e8
mov rbx, qword [rsp + 0x38]
sub rax, rcx
test rax, rax
cmovle rax, rdi
mov rdi, qword [rsp + 0x20]
mov qword [0x1401186e8], rax
mov eax, dword [0x140116f74]
test eax, eax
jle 0x140009adc
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
sub rax, qword [0x1401186f0]
imul rax, rax, 0x3e8
cqo
idiv qword [0x1401186f8]
add rax, qword [0x1401186e8]
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
add rax, qword [0x1401186e8]
add rsp, 0x28
ret
Function at 0x140009d40
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
push r14
push r15
sub rsp, 0x70
mov r14, rcx
mov r15, r9
movzx ecx, r8w
mov rdi, rdx
call fcn.1400183b0
movsxd rbp, eax
test eax, eax
jns 0x140009db7
mov rcx, qword [rsp + 0xd8]
test rcx, rcx
je 0x140009da0
lea rax, str.yapi
mov dword [rsp + 0x28], 0x12f5
lea r9, str.Device_not_found
mov qword [rsp + 0x20], rax
lea r8, str._s___s:_d_
mov edx, 0x100
call fcn.1400217a0
mov eax, 0xfffffffc
mov rbp, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop rdi
ret
mov rcx, qword [0x140118680]
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x98], rsi
mov rcx, qword [rcx + 0x5048]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x140118680]
lea rsi, [rbp*8 + 0x5160]
mov rbx, qword [rsi + rcx]
test rbx, rbx
jne 0x140009e09
mov rcx, rdi
call fcn.14001cd40
mov rcx, qword [0x140118680]
mov rbx, rax
mov qword [rsi + rcx], rax
mov rcx, qword [rcx + 0x5048]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rsi, qword [rsp + 0xc8]
test rsi, rsi
je 0x140009e64
mov rdx, qword [rbx]
cmp dword [rdx + 0xb8], 0
je 0x140009e64
mov rdx, qword [rdx + 0x10]
test rdx, rdx
je 0x140009ed3
xor ecx, ecx
lea r8, str.admin
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140009ed3
cmp rcx, 6
jne 0x140009e50
mov rax, qword [rbx]
cmp dword [rax + 0xb0], 0
jne 0x140009e7d
cmp dword [rax + 0xb4], 0
jne 0x140009f16
cmp qword [rdi + 0xc0], 0
je 0x140009e9b
call fcn.140009a00
sub rax, qword [rdi + 0xc0]
cmp rax, 0xfa0
jb 0x140009f16
cmp dword [rdi + 0x100], 2
je 0x140009f16
mov rcx, qword [rsp + 0xd8]
test rcx, rcx
je 0x140009ec9
mov r9, qword [rbx]
lea r8, str.hub__s_is_not_reachable
mov edx, 0x100
mov r9, qword [r9 + 8]
call fcn.1400217a0
mov eax, 0xfffffff8
jmp 0x140009fc2
mov rcx, qword [rsp + 0xd8]
test rcx, rcx
je 0x140009f0c
lea rax, str.yapi
mov dword [rsp + 0x28], 0x1302
lea r9, str.Access_denied:_admin_credentials_required
mov qword [rsp + 0x20], rax
lea r8, str._s___s:_d_
mov edx, 0x100
call fcn.1400217a0
mov eax, 0xfffffff4
jmp 0x140009fc2
mov rax, qword [rsp + 0xd0]
mov r9, r15
mov rdi, qword [rsp + 0xd8]
mov rcx, rbx
mov edx, dword [rsp + 0xb8]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x20], eax
call fcn.14001ce40
test eax, eax
jne 0x140009fc2
test rsi, rsi
je 0x140009fb7
mov rcx, qword [rbx]
lea r8d, [rax + 1]
mov byte [rsp + 0x60], 2
lea rdx, [rsp + 0x60]
xor r9d, r9d
mov rcx, qword [rcx + 0xd8]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140009fb7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test rdi, rdi
je 0x140009ec9
mov r9, rdi
lea rcx, str.ytcp
mov r8d, eax
mov edx, 0x114
call fcn.140019fe0
test eax, eax
jne 0x140009fc2
mov dword [r14 + 0x18], ebp
xor eax, eax
mov byte [r14 + 0x10], 2
mov rbx, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop rdi
ret
Function at 0x1400133d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, rdx
lea rdi, [rcx + 0x4f0]
mov rbx, rcx
xor r14d, r14d
cmp dword [rbx + 0x528], r14d
je 0x140013422
lea r9, str.ypkt_win
mov dword [rsp + 0x20], 0x265
lea r8, str.ASSERT_FAILED:_s:_d_n
mov edx, 0x265
lea rcx, str.ypkt_win
call fcn.14000a9a0
xor eax, eax
mov qword [rsp + 0x20], rdi
mov qword [rdi], rax
lea r9, [rsp + 0x50]
mov qword [rdi + 8], rax
lea rdx, [rbx + 0x52c]
mov qword [rdi + 0x10], rax
mov r8d, 0x41
mov qword [rdi + 0x18], rax
mov rax, qword [rbx + 0x518]
mov rcx, qword [rbx + 0x510]
mov qword [rbx + 0x508], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140013532
mov rcx, qword [rbx + 0x168]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rbx + 0x60], r14d
jne 0x1400134ec
mov ecx, 0x48
call fcn.140056e8c
movups xmm0, xmmword [rbx + 0x52d]
mov rcx, rax
movups xmmword [rax], xmm0
movups xmm1, xmmword [rbx + 0x53d]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x54d]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x55d]
mov qword [rax + 0x40], r14
movups xmmword [rax + 0x30], xmm1
cmp qword [rbx + 0x38], r14
jne 0x1400134d9
mov rcx, qword [rbx + 0x178]
mov qword [rbx + 0x38], rax
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x1400134e5
mov rax, qword [rbx + 0x40]
mov qword [rax + 0x40], rcx
mov qword [rbx + 0x40], rcx
inc dword [rbx + 0x48]
inc qword [rbx + 0x50]
mov rcx, qword [rbx + 0x170]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x168]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x140118680]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, qword [0x140118680]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1400133f2
call rcx
jmp 0x1400133f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14001355e
test rsi, rsi
jne 0x140013549
lea eax, [rsi - 8]
jmp 0x14001356a
mov r9, rsi
mov r8d, eax
mov rdx, rbx
mov ecx, 0x26c
call fcn.140012180
jmp 0x14001356a
mov dword [rbx + 0x528], 1
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140014080
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x130]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [rdi]
test rbx, rbx
je 0x14000b953
mov rcx, rbx
mov rbx, qword [rbx + 0x40]
call fcn.140052f7c
test rbx, rbx
jne 0x14000b942
mov rcx, qword [rdi + 0x130]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x130]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rdi + 0x130]
call fcn.140052f7c
mov qword [rdi + 0x130], 0
mov rcx, qword [rdi + 0x138]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x140]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xca
mov rcx, rdi
lea r8d, [rdx + 0x7e]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400500b0
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x4d8]
lea eax, [rcx - 1]
cmp eax, 1
ja 0x14001413d
mov qword [rsp + 0x30], rdi
cmp ecx, 1
jne 0x1400140af
mov dword [rbx + 0x4d8], 2
call fcn.140009a00
lea rdi, [rax + 0x7d0]
nop dword [rax + rax]
mov eax, dword [rbx + 0x4d8]
lea ecx, [rax - 1]
cmp ecx, 1
ja 0x1400140eb
call fcn.140009a00
cmp rdi, rax
jb 0x1400140e5
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400140c0
mov eax, dword [rbx + 0x4d8]
mov rcx, qword [rbx + 0x4e0]
xor edx, edx
mov rdi, qword [rsp + 0x30]
dec eax
cmp eax, 1
setbe dl
test edx, edx
je 0x140014125
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14001413d
mov rcx, qword [rbx + 0x4e0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x14001413d
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x4e0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x38]
call 0x14000b920
lea rcx, [rbx + 0x180]
add rsp, 0x20
pop rbx
jmp 0x14000b920

Function at 0x140014c60
Capabilities:
Hash data with md5

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [0x140116008]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
mov dword [rsp + 0x20], 0x67452301
mov rbx, 0xffffffffffffffff
mov dword [rsp + 0x34], eax
mov rdi, r8
mov dword [rsp + 0x24], 0xefcdab89
mov r8, rbx
mov dword [rsp + 0x28], 0x98badcfe
mov rsi, r9
mov qword [rsp + 0x2c], 0x10325476
mov rbp, rcx
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], al
jne 0x140014cc0
lea rcx, [rsp + 0x20]
call fcn.140016c10
mov r8d, 1
lea rdx, [0x140079884]
lea rcx, [rsp + 0x20]
call fcn.140016c10
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rsi + r8], 0
jne 0x140014cf0
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.140016c10
mov r8d, 1
lea rdx, [0x140079884]
lea rcx, [rsp + 0x20]
call fcn.140016c10
nop
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140014d20
mov r8, rbx
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.140016c10
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.140016d10
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14004ee60
add rsp, 0x98
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140014d70
Capabilities:
Hash data with md5

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140116008]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
mov dword [rsp + 0x20], 0x67452301
mov rbx, 0xffffffffffffffff
mov dword [rsp + 0x34], eax
mov rdi, r8
mov dword [rsp + 0x24], 0xefcdab89
mov r8, rbx
mov dword [rsp + 0x28], 0x98badcfe
mov rsi, rcx
mov qword [rsp + 0x2c], 0x10325476
inc r8
cmp byte [rdx + r8], al
jne 0x140014dc4
lea rcx, [rsp + 0x20]
call fcn.140016c10
mov r8d, 1
lea rdx, [0x140079884]
lea rcx, [rsp + 0x20]
call fcn.140016c10
nop
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140014df0
mov r8, rbx
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.140016c10
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.140016d10
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14004ee60
add rsp, 0x90
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001a1e0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140116008]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rcx], 0xffffffffffffffff
mov rbx, rdx
mov rdi, rcx
jne 0x14001a3b0
cmp qword [rcx + 8], 0xffffffffffffffff
jne 0x14001a3b0
mov qword [rsp + 0x70], rsi
mov esi, 2
mov edx, esi
mov ecx, esi
lea r8d, [rsi + 0xf]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
jne 0x14001a27b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test rbx, rbx
jne 0x14001a247
mov eax, 0xfffffff8
jmp 0x14001a25e
mov r9, rbx
mov r8d, eax
mov edx, 0xf7
lea rcx, str.ytcp
call fcn.140019fe0
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004ee60
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
lea r9, [rsp + 0x34]
mov dword [rsp + 0x34], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 4
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
xor eax, eax
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov qword [rsp + 0x38], rax
lea rcx, [0x14010b618]
mov word [rsp + 0x38], si
mov qword [rsp + 0x40], rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov r8d, dword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi]
mov dword [rsp + 0x3c], eax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x14001a304
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test rbx, rbx
je 0x14001a240
mov r9, rbx
mov r8d, eax
mov edx, 0x102
jmp 0x14001a252
mov rcx, qword [rdi]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x14001a33a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test rbx, rbx
je 0x14001a240
mov r9, rbx
mov r8d, eax
mov edx, 0x105
jmp 0x14001a252
mov r8d, reloc.WS2_32.dll_recvfrom
mov edx, esi
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x14001a373
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test rbx, rbx
je 0x14001a240
mov r9, rbx
mov r8d, eax
mov edx, 0x109
jmp 0x14001a252
mov r8d, dword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x14001a3a9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test rbx, rbx
je 0x14001a240
mov r9, rbx
mov r8d, eax
mov edx, 0x10c
jmp 0x14001a252
xor eax, eax
jmp 0x14001a25e
test rbx, rbx
je 0x14001a3e4
lea rax, str.ytcp
mov dword [rsp + 0x28], 0xf2
lea r9, str.WakeUpSocket_already_Started
mov qword [rsp + 0x20], rax
lea r8, str._s___s:_d_
mov edx, 0x100
mov rcx, rbx
call fcn.1400217a0
mov eax, 0xfffffffe
jmp 0x14001a263
Function at 0x14001a3f0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
lea r9, [rsp + 0x40]
xor edx, edx
xor r8d, r8d
mov rdi, rcx
xor ebx, ebx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14001a444
mov r9, rdi
lea r8, str.Unable_to_resolve_host_name__s
mov edx, 0x100
mov rcx, rsi
call fcn.1400217a0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rsp + 0x40]
mov rax, rcx
test rcx, rcx
je 0x14001a469
cmp dword [rax + 4], 2
je 0x14001a462
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14001a451
jmp 0x14001a469
mov rdx, qword [rax + 0x20]
mov ebx, dword [rdx + 4]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret