joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005dca0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1400b28a8], rbx
je 0x14005dd07
cmp rax, rbx
jne 0x14005dcfa
mov ebx, 1
mov esi, ebx
jmp 0x14005dd0c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14005dcdf
mov ebx, 1
mov eax, dword [0x1400b28b0]
cmp eax, ebx
jne 0x14005dd24
mov edi, AtlInternalQueryInterface
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14005dd90
mov eax, dword [0x1400b28b0]
test eax, eax
jne 0x14005dd85
mov dword [0x1400b28b0], ebx
lea r15, [0x140064f48]
lea rdi, [0x140064f30]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14005dd77
test eax, eax
jne 0x14005dd7b
cmp qword [rdi], r14
je 0x14005dd6c
mov rax, qword [rdi]
mov rcx, qword [0x140064e58]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14005dd4e
test eax, eax
je 0x14005dd8b
mov eax, 0xff
jmp 0x14005dee6
mov dword [0x1400b18e4], ebx
mov edi, AtlInternalQueryInterface
mov eax, dword [0x1400b28b0]
cmp eax, ebx
jne 0x14005ddb7
lea rdx, [0x140064f28]
lea rcx, [0x140064e60]
call sub.msvcrt.dll__initterm
mov dword [0x1400b28b0], 2
test esi, esi
jne 0x14005ddc5
mov rax, r14
xchg qword [0x1400b28a8], rax
cmp qword [0x1400b28c8], r14
je 0x14005ddf8
lea rcx, [0x1400b28c8]
call fcn.14005e4f0
test eax, eax
je 0x14005ddf8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400b28c8]
mov r9, qword [0x140064e58]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14005de11
mov eax, 0xff
jmp 0x14005dee6
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14005de97
test ax, ax
je 0x14005de2c
test edx, edx
jne 0x14005de97
sub ax, bx
cmp ax, di
ja 0x14005de42
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14005de2c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140007c10
mov dword [0x1400b18e0], eax
cmp dword [0x1400b1900], r14d
jne 0x14005de80
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400b18e4], r14d
jne 0x14005de95
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400b18e0]
jmp 0x14005dee6
cmp ax, 0x22
jne 0x14005deab
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14005de1a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call 0x140145000
add rsp, 0x28
jmp 0x14005dca0
Function at 0x14005e3dc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14005e428
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14005e420
cmp dword [rcx + 0x3c], edx
jl 0x14005e420
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14005e420
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14005e428
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400016d0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rcx]
test rsi, rsi
je 0x1400017be
mov rax, qword [0x1400e2748]
test rax, rax
jne 0x1400017a9
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140001786
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140001786
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
mov r8d, 0xb9b87d43
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140001781
nop
movsx edx, dl
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
test dl, dl
jne 0x140001760
cmp r8d, 0x4f327517
je 0x14000178b
test r9d, r9d
jne 0x140001740
mov rax, qword [rax]
jmp 0x140001710
mov edx, dword [rbx + 0x1c]
add rdx, r10
mov eax, dword [rbx + 0x24]
add rax, r10
movzx eax, word [rax + r9*2]
mov eax, dword [rdx + rax*4]
add rax, r10
mov qword [0x1400e2748], rax
mov rcx, qword [rsi + 8]
call rax
nop
mov edx, 0x50
mov rcx, rsi
call fcn.14007d814
nop
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140001840
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor r14d, r14d
mov ecx, 0x50
call fcn.14007d7d0
mov rdi, rax
mov qword [rsp + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
mov ebp, dword [rbx]
mov byte [rax], 0x20
mov qword [rax + 8], r14
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], r14
mov qword [rax + 0x28], r14
mov dword [rax + 0x30], r14d
mov word [rax + 0x34], r14w
mov qword [rax + 0x38], r14
mov qword [rax + 0x40], r14
xor eax, eax
mov qword [rdi + 0x48], rax
mov rax, qword [0x1400e2760]
test rax, rax
jne 0x14000197b
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov r11d, dword [rcx + r10 + 0x88]
add r11, r10
cmp r11, r10
je 0x140001956
mov r9d, dword [r11 + 0x18]
test r9d, r9d
je 0x140001956
mov ebx, dword [r11 + 0x20]
nop word [rax + rax]
dec r9d
lea rdx, [rbx + r9*4]
mov ecx, dword [rdx + r10]
add rcx, r10
mov r8d, 0xa5be95f0
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140001951
nop
movsx edx, dl
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
test dl, dl
jne 0x140001930
cmp r8d, 0x2e889775
je 0x14000195b
test r9d, r9d
jne 0x140001910
mov rax, qword [rax]
jmp 0x1400018e0
mov edx, dword [r11 + 0x1c]
add rdx, r10
mov ecx, dword [r11 + 0x24]
add rcx, r10
movzx ecx, word [rcx + r9*2]
mov eax, dword [rdx + rcx*4]
add rax, r10
mov qword [0x1400e2760], rax
mov r8d, ebp
xor edx, edx
mov ecx, 0x1fffff
call rax
mov qword [rdi + 8], rax
mov qword [rsi], rdi
mov rax, rsi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140001b50
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push rsi
sub rsp, 0x20
mov rax, qword [0x1400e2740]
mov rsi, rcx
test rax, rax
jne 0x140001c34
mov rax, qword gs:[0x60]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140001c07
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140001c07
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x54c4aa37
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140001c02
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140001be0
cmp r8d, 0x3e10657b
je 0x140001c0c
test r9d, r9d
jne 0x140001bc0
mov rax, qword [rax]
jmp 0x140001b90
mov ecx, dword [rbx + 0x24]
mov rdi, qword [rsp + 0x38]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
mov rbx, qword [rsp + 0x30]
add rcx, r10
mov eax, dword [rcx + rdx*4]
add rax, r10
mov qword [0x1400e2740], rax
mov rdx, qword [rsi + 0x10]
lea r8, [rsi + 0x20]
mov rcx, qword [rsi + 8]
mov r9d, 0x30
call rax
test rax, rax
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x140001c60
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x30
mov rax, qword [0x1400e2758]
mov rbp, rdx
mov rsi, rcx
test rax, rax
jne 0x140001d44
mov rax, qword gs:[0x60]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140001d17
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140001d17
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xce2e6d46
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140001d12
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140001cf0
cmp r8d, 0xd97a0b0c
je 0x140001d1c
test r9d, r9d
jne 0x140001cd0
mov rax, qword [rax]
jmp 0x140001ca0
mov ecx, dword [rbx + 0x24]
mov rdi, qword [rsp + 0x48]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
mov rbx, qword [rsp + 0x40]
add rcx, r10
mov eax, dword [rcx + rdx*4]
add rax, r10
mov qword [0x1400e2758], rax
mov r9d, dword [rsi + 0x38]
mov r8, rbp
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x20], 0
call rax
mov rbp, qword [rsp + 0x50]
shr eax, 0x1f
xor al, 1
add rsp, 0x30
pop rsi
ret
Function at 0x1400025f0
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1400df940]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r8d, 0x24
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
jne 0x140002642
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14000265d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [rsp + 0x24], 4
jne 0x140002680
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007d7b0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140004d70
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400df940]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140004dc3
lea r8, [rsp + 0x38]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x140004dd7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14007d7b0
add rsp, 0x68
ret
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x44], rax
mov r9d, reloc.WS2_32.dll_recv
xor eax, eax
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x4c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140004dbd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14007d7b0
add rsp, 0x68
ret
Function at 0x14000b320
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x14000b344
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x14000b3d2
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000b3a0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x14000b3a0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.1400ad410
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000b3bd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x14000b3c5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x14000b361
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x14000b4b0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x14000b3e9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000b3eb
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000b41d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.1400ad410
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000b4ad
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000b458
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x14000b48e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.14008c3c8
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x14000b4ad
cmp rsi, rax
ja 0x14000b461
test rsi, rsi
je 0x14000b4ad
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14008c3c8
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x140020560
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140020642
call fcn.14003dc70
test al, al
jne 0x140020642
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x140020592
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.140047c20
test rax, rax
je 0x1400205d7
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.140047c20
mov rsi, rax
test rax, rax
je 0x1400205d7
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x14002060b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.140037ae0
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x1400205f0
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140028bf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x48
mov rax, qword [rcx]
lea rbp, [rcx + 0x18]
mov r12, qword [rbp]
mov rdi, rdx
mov r15, r8
mov r10, rcx
mov edx, dword [rax + 8]
and edx, 0xa
cmp edx, 0xa
jne 0x140028c2e
add r12, 0x348
jmp 0x140028c35
add r12, 0x2d8
cmp edx, 0xa
mov eax, 0x5f8
mov ecx, 0x540
mov esi, 0
cmovne eax, ecx
mov qword [r9], rsi
mov bl, 1
add rax, rdi
je 0x140028de0
cmp byte [rax + 0x6c], sil
je 0x140028de0
cmp qword [rdi + 0xca0], rsi
je 0x140028de0
mov rax, qword [rdi + 0xf8]
mov qword [rsp + 0x88], r13
test rax, rax
je 0x140028c90
test byte [rax + 4], 0x10
lea r13, [rax + 0x118]
jne 0x140028c97
lea r13, [rdi + 0xca8]
cmp qword [rdi + 0x6c0], rsi
jbe 0x140028d8f
mov qword [rsp + 0x40], r14
mov r14, rsi
nop dword [rax]
mov rbx, qword [rdi + 0xca0]
add rbx, r14
cmp qword [rbx + 0x18], 0
je 0x140028d69
mov rdx, qword [rbx]
mov rcx, qword [r15]
call fcn.140037c10
test eax, eax
je 0x140028d69
mov rcx, qword [rbp]
mov rdx, qword [rbx + 8]
cmp byte [rcx + 0x3c0], 0
jne 0x140028cf0
test rdx, rdx
je 0x140028d05
jmp 0x140028d69
test rdx, rdx
je 0x140028d69
mov rcx, qword [rcx + 0x98]
call fcn.140037c10
test eax, eax
je 0x140028d69
mov rcx, qword [rbp]
mov eax, dword [rbx + 0x38]
cmp byte [rcx + 0x3c1], 0
jne 0x140028d1c
cmp eax, 0xffffffff
je 0x140028d29
jmp 0x140028d69
cmp eax, 0xffffffff
je 0x140028d69
cmp dword [rcx + 0x7d0], eax
jne 0x140028d69
mov eax, dword [rbx + 0x34]
cmp dword [r15 + 0x1c], eax
jne 0x140028d69
mov eax, dword [rbx + 0x3c]
cmp dword [r15 + 0x20], eax
jne 0x140028d69
mov rcx, qword [rcx + 0x3e0]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rcx]
call fcn.140037c10
test eax, eax
je 0x140028d69
lea r8, [rbx + 0x40]
mov rdx, r12
mov rcx, rdi
call fcn.140029a80
test al, al
jne 0x140028df0
inc rsi
add r14, 0xb0
cmp rsi, qword [rdi + 0x6c0]
jb 0x140028cb0
mov bl, 1
mov r10, qword [rsp + 0x80]
mov r14, qword [rsp + 0x40]
mov rax, qword [r10 + 0x18]
lea r9, str.Found
mov ecx, dword [r15 + 0x1c]
lea r8, str._s_cached_session_ID_for__s:___s:_d
mov dword [rsp + 0x30], ecx
test bl, bl
mov rcx, qword [r15]
mov rdx, qword [rax + 0x3e0]
lea rax, [0x1400b3bb8]
mov qword [rsp + 0x28], rcx
cmovne r9, rax
mov rcx, qword [rdx]
mov rdx, r10
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call fcn.14002fc00
mov r13, qword [rsp + 0x88]
movzx eax, bl
add rsp, 0x48
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
inc dword [r13]
mov eax, dword [r13]
mov rcx, qword [rsp + 0x98]
mov dword [rbx + 0x30], eax
mov rax, qword [rbx + 0x18]
mov qword [rcx], rax
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x140028e1e
mov rax, qword [rbx + 0x20]
mov qword [rcx], rax
xor bl, bl
jmp 0x140028d82
Function at 0x140028fa0
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x1400df940]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov dword [rcx + 0x20], r8d
mov rdi, rcx
mov rax, qword [rdx]
mov ebp, 0x1b
mov ecx, dword [rax + 8]
mov rax, qword [rdx + 0x18]
and ecx, 0xa
cmp cl, 0xa
jne 0x140028ff5
mov rbx, qword [rax + 0xf0]
mov rsi, qword [rax + 0xf8]
mov ecx, dword [rax + 0x100]
jmp 0x140029003
mov rbx, qword [rax + 0x68]
mov rsi, qword [rax + 0x70]
mov ecx, dword [rax + 0x7cc]
xor r14d, r14d
mov dword [rdi + 0x1c], ecx
test rbx, rbx
je 0x140029134
cmp byte [rbx], r14b
je 0x140029134
mov rcx, rbx
call qword [case.0x14002a24c.1]
mov qword [rdi], rax
mov rcx, rax
test rax, rax
je 0x140029139
test rsi, rsi
je 0x14002906e
mov r8, rsi
sub r8, rbx
nop
movzx edx, byte [rbx]
movzx eax, byte [rbx + r8]
sub edx, eax
jne 0x140029053
inc rbx
test eax, eax
jne 0x140029040
test edx, edx
je 0x14002906e
mov rcx, rsi
call qword [case.0x14002a24c.1]
mov qword [rdi + 8], rax
test rax, rax
jne 0x140029072
jmp 0x140029139
mov qword [rdi + 8], rcx
mov rbx, qword [rdi]
test rbx, rbx
je 0x1400290cb
cmp byte [rbx], r14b
je 0x1400290cb
lea r8, [rsp + 0x20]
mov rdx, rbx
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x1400290a5
mov dword [rdi + 0x18], 1
mov eax, r14d
jmp 0x14002916c
lea r8, [rsp + 0x20]
mov rdx, rbx
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x1400290cb
mov dword [rdi + 0x18], 2
mov eax, r14d
jmp 0x14002916c
mov rax, qword [rdi]
mov rbx, 0xffffffffffffffff
mov dword [rdi + 0x18], r14d
nop dword [rax]
inc rbx
cmp byte [rax + rbx], r14b
jne 0x1400290e0
test rbx, rbx
je 0x1400290f8
cmp byte [rax + rbx - 1], 0x2e
jne 0x1400290f8
dec rbx
cmp rbx, 0xffff
jae 0x14002912f
lea rdx, [rbx + 1]
mov ecx, 1
call qword [str._B_b_]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x140029139
mov rdx, qword [rdi]
mov r8, rbx
mov rcx, rax
call fcn.140037b30
mov rax, qword [rdi + 0x10]
mov byte [rbx + rax], r14b
mov eax, r14d
jmp 0x14002916c
mov ebp, 2
mov rcx, qword [rdi + 8]
cmp rcx, qword [rdi]
je 0x140029148
call qword [fcn.14008b920]
mov rcx, qword [rdi + 0x10]
call qword [fcn.14008b920]
mov rcx, qword [rdi]
call qword [fcn.14008b920]
mov eax, ebp
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r14
mov qword [rdi], r14
mov dword [rdi + 0x18], r14d
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14007d7b0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140034050
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 0x14003407a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x1400b54e8]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400b54f8]
mov rcx, rbx
mov r14, rax
call fcn.14008ed2c
test rax, rax
je 0x1400340db
mov rcx, rbx
test r14, r14
je 0x1400340c8
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 0x140034112
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140034112
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 0x1400341dc
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax + rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x140034140
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x1400341ce
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400341ce
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x140034173
mov dword [rsi + rax*2], 0x5c
inc rdi
cmp word [rsi + rdi*2], bp
jne 0x140034185
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 0x1400341a0
mov rcx, rsi
test r14, r14
je 0x1400341c5
xor edx, edx
mov r8d, 8
call r14
jmp 0x1400341cb
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [fcn.14008b920]
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