joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14032c780
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140377cc0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14032c825
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14032c7dd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14032c7d0
cmp rcx, 1
jb 0x14032c856
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14032c7f3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14033c494
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14032c7c0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14032cc00
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.140331260
int3

Function at 0x14032ca90
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140377cc0]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x14032cb35
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14032caed
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14032cae0
cmp rcx, 1
jb 0x14032cb67
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14032cb03
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14033c494
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14032cad0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14032cc00
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140331260
int3

Function at 0x14032d634
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140332943
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140332943
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140332943
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140332943
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140332943
cmp dword [rcx + 0x84], 0xe
jbe 0x140332943
cmp dword [rcx + 0xf8], 0
je 0x140332943
mov ecx, ebx
call fcn.1403329f4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1403327d0
nop
cmp dword [rbp + 0x20], 0
je 0x140332991
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14033299c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1403328d4
Function at 0x140344540
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1403445c7
mov rsi, rbx
cmp word [rax], bp
je 0x140344586
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140344570
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14034456c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14033fac0
mov rdi, rax
test rax, rax
je 0x1403445b4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14034a8c0
mov rbp, rdi
xor ecx, ecx
call fcn.140340608
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14034813c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140348152
mov al, 1
jmp 0x1403481b2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140348163
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1403481b0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140344ce4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1403481b0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1403481b0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1403481b0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1403481b2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14034a6a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14034a6c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14034a6c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x18175c0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.18175c237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x18175c0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18175c0c7
add dl, dl
jne 0x18175c0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18175c14e
xor eax, eax
add dl, dl
jne 0x18175c0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18175c205
add dl, dl
jne 0x18175c10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18175c11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18175c128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18175c135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18175c142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18175c0d6
mov eax, 1
add dl, dl
jne 0x18175c15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18175c16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18175c153
sub eax, ebx
mov ebx, 1
jne 0x18175c1a4
mov ecx, 1
add dl, dl
jne 0x18175c186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18175c193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18175c17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18175c0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18175c1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18175c1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18175c1b5
cmp eax, 0x7d00
jae 0x18175c1f3
cmp eax, 0x500
jb 0x18175c1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18175c0d6
cmp eax, 0x7f
ja 0x18175c1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18175c0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18175c22a
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 0x18175c0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004907
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.1400123e0
mov r15, qword [0x14002048c]
cmp r15, 1
jne 0x1400049d6
push qword [0x14002057c]
pop rcx
call fcn.14000d5b4
mov r15, rax
and r15, r15
jle 0x14000496c
mov rcx, qword [0x14002057c]
call fcn.14000d5bc
mov rcx, qword [0x14002057c]
call fcn.14000d5d0
or rax, rax
je 0x14000496c
mov rbp, qword [0x140020584]
push qword [rbp + 0x10]
pop rcx
call fcn.14000da6c
jmp 0x140004949
push qword [0x14002056c]
pop rcx
call fcn.14000d5b4
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x1400049d6
push 5
push 0
push 1
push qword [0x14002056c]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009070
mov rcx, qword [0x14002056c]
call fcn.14000d5bc
mov rcx, qword [0x14002056c]
call fcn.14000d5d0
or rax, rax
je 0x1400049d6
mov rbp, qword [0x140020574]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x1400049b3
mov rax, 1
jmp 0x1400049e2
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006a58
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sahf
lodsd eax, dword [rsi]
int 0xff
sahf
scasb al, byte [rdi]
int3
popfq
stosb byte [rdi], al
iretd
cmpsb byte [rsi], byte [rdi]
iretd
xchg ebx, eax
movabs byte [0xa595ffd2a494ffd2], al
sar edi, cl
xchg esp, eax
movsb byte [rdi], byte [rsi]
sar edi, cl
xchg ecx, eax
movabs al, byte [0x978affd29b8effd2]
sar bh, cl
invalid
xchg edi, eax
invalid
sar bh, cl
mov dl, byte [rdi - 0x6e7d002a]
invalid
imul edi, dword [rdx - 0x3a], 0xffffffff
insb byte [rdi], dx
ja 0x14003f641
dec dword [rbx + 0x4a]
nop
jmp qword [rdi]
sbb ebx, dword [rax]
cmp bh, bh
sbb ebx, dword [rcx]
call qword cs:[rbx + rdx]
adc al, 0x13
adc al, 0x13
xor bh, bh
sbb byte [rcx], bl
invalid
invalid
insd dword [rdi], dx
jmp [rcx]
Function at 0x18001f740
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x180031010]
xor rax, rsp
mov qword [rbp + 0x90], rax
cmp edx, 1
jne 0x18001f9a4
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x1b8], rdi
mov word [rsp + 0x39], 0x6946
mov dword [rsp + 0x34], 0x6c75646f
mov dword [rsp + 0x30], 0x4d746547
mov word [rsp + 0x3e], 0x6d61
mov byte [rsp + 0x38], 0x65
mov word [rsp + 0x41], 0x41
mov word [rsp + 0x3c], 0x4e65
mov byte [rsp + 0x3b], 0x6c
mov byte [rsp + 0x40], 0x65
mov dword [rsp + 0x27], 0x6c642e32
mov word [rsp + 0x2b], 0x6c
mov dword [rsp + 0x21], 0x656e7265
mov word [rsp + 0x25], 0x336c
mov byte [rsp + 0x20], 0x4b
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001f7fd
mov r8d, 0x104
lea rdx, [rbp - 0x80]
xor ecx, ecx
call rax
mov edx, 0x104
mov qword [rsp + 0x1b0], rbx
lea rcx, [rbp - 0x80]
call fcn.180009760
xor edi, edi
mov dword [rsp + 0x6e], 0x75732074
lea rcx, [rsp + 0x58]
mov byte [rsp + 0x2b], dil
mov byte [rsp + 0x3c], dil
mov dword [rsp + 0x74], 0x74726f
mov dword [rsp + 0x69], 0x6174736e
mov word [rsp + 0x72], 0x7070
mov byte [rsp + 0x68], 0x69
mov byte [rsp + 0x6d], 0x6e
mov dword [rsp + 0x20], 0x776c6853
mov dword [rsp + 0x24], 0x2e697061
mov word [rsp + 0x29], 0x6c6c
mov byte [rsp + 0x28], 0x64
mov word [rsp + 0x3a], 0x4179
mov dword [rsp + 0x35], 0x61726269
mov dword [rsp + 0x30], 0x64616f4c
mov byte [rsp + 0x39], 0x72
mov byte [rsp + 0x34], 0x4c
mov dword [rsp + 0x5f], 0x6c642e32
mov word [rsp + 0x63], 0x6c
mov dword [rsp + 0x59], 0x656e7265
mov word [rsp + 0x5d], 0x336c
mov byte [rsp + 0x58], 0x4b
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001f91f
lea rcx, [rsp + 0x20]
call rax
mov rbx, rax
test rax, rax
je 0x18001f91f
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x4d], 0x414972
mov rcx, rax
mov word [rsp + 0x4b], 0x7453
mov word [rsp + 0x48], 0x7453
mov byte [rsp + 0x4a], 0x72
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001f911
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x80]
call rax
mov rdi, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rdi, rdi
jne 0x18001f977
lea rdx, [sym.gphelper.dll_a4csja]
lea rcx, [0x18005c908]
call fcn.180021868
test eax, eax
je 0x18001f977
lea rdx, [sym.gphelper.dll_wzs85s]
lea rcx, [0x18005c878]
call fcn.180021868
test eax, eax
je 0x18001f977
lea rdx, [sym.gphelper.dll_wxv9ul]
lea rcx, [0x18005c8e8]
call fcn.180021868
test eax, eax
je 0x18001f977
lea rdx, [sym.gphelper.dll_q3w9e1]
lea rcx, [0x18005c8d8]
call fcn.180021868
mov rbx, qword [rsp + 0x1b0]
mov eax, 1
mov rdi, qword [rsp + 0x1b8]
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.180001600
add rsp, 0x1a0
pop rbp
ret
test edx, edx
jne 0x18001f9d8
lea rcx, [0x18005c908]
call fcn.180021acc
lea rcx, [0x18005c878]
call fcn.180021acc
lea rcx, [0x18005c8e8]
call fcn.180021acc
lea rcx, [0x18005c8d8]
call fcn.180021acc
mov eax, 1
jmp 0x18001f98c
Function at 0x14000c2c0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000c3a2
call fcn.140023cd0
test al, al
jne 0x14000c3a2
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x14000c2f2
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.14002f050
test rax, rax
je 0x14000c337
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.14002f050
mov rsi, rax
test rax, rax
je 0x14000c337
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 0x14000c36b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.14001eaf0
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x14000c350
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 0x140013000
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x1400b5700]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r14, qword [rdx + 0x10]
mov rbx, rcx
mov rax, qword [rdx + 0x18]
lea rcx, str.SSL_PROXY
cmp qword [rdx], rcx
jne 0x140013047
mov rdi, qword [rax + 0xd8]
mov rsi, qword [rax + 0xe0]
mov ebp, dword [rax + 0xe8]
jmp 0x140013055
mov rdi, qword [rax + 0x50]
mov rsi, qword [rax + 0x58]
mov ebp, dword [rax + 0x6d0]
mov qword [rsp + 0x80], r15
test rdi, rdi
je 0x14001321b
mov r9, qword [rbx]
test r9, r9
je 0x14001309b
mov r8, r9
mov rax, rdi
sub r8, rdi
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140013093
inc rax
test ecx, ecx
jne 0x140013080
test edx, edx
je 0x14001321b
mov rcx, qword [rbx + 8]
cmp rcx, r9
je 0x1400130aa
call qword [fcn.14006f1f0]
mov rcx, qword [rbx + 0x10]
call qword [fcn.14006f1f0]
mov rcx, qword [rbx]
call qword [fcn.14006f1f0]
xor r15d, r15d
mov rcx, rdi
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx], r15
mov byte [rbx + 0x18], r15b
call qword [case.0x14000d9eb.2]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
jne 0x14001311e
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400130f2
call qword [fcn.14006f1f0]
mov rcx, qword [rbx + 0x10]
call qword [fcn.14006f1f0]
mov rcx, qword [rbx]
call qword [fcn.14006f1f0]
mov eax, 0x1b
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx], r15
mov byte [rbx + 0x18], r15b
jmp 0x140013221
test rsi, rsi
je 0x140013162
mov r8, rsi
sub r8, rdi
nop dword [rax]
movzx edx, byte [rdi]
movzx eax, byte [rdi + r8]
sub edx, eax
jne 0x140013143
inc rdi
test eax, eax
jne 0x140013130
test edx, edx
je 0x140013162
mov rcx, rsi
call qword [case.0x14000d9eb.2]
mov qword [rbx + 8], rax
test rax, rax
jne 0x140013166
cmp qword [rbx], r15
je 0x1400130f2
xor ecx, ecx
jmp 0x1400130ec
mov qword [rbx + 8], rcx
mov rdi, qword [rbx]
mov qword [rbx + 0x10], r15
test rdi, rdi
je 0x1400131a7
cmp byte [rdi], r15b
je 0x1400131a7
lea r8, [rsp + 0x20]
mov rdx, rdi
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jne 0x1400131a3
lea r8, [rsp + 0x20]
mov rdx, rdi
lea ecx, [rax + 0x17]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x1400131a7
mov cl, 1
jmp 0x1400131a9
xor cl, cl
mov rax, qword [rbx]
mov byte [rbx + 0x18], cl
cmp byte [rax], r15b
je 0x14001321b
test cl, cl
jne 0x14001321b
mov rdi, 0xffffffffffffffff
nop
inc rdi
cmp byte [rax + rdi], r15b
jne 0x1400131c0
test rdi, rdi
je 0x1400131d8
cmp byte [rax + rdi - 1], 0x2e
jne 0x1400131d8
dec rdi
cmp rdi, 0xffff
jae 0x14001321b
lea rdx, [rdi + 1]
mov ecx, 1
call qword [case.0x14000d9eb.3]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x140013205
mov rcx, qword [rbx + 8]
cmp rcx, qword [rbx]
jmp 0x1400130ea
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, rax
call fcn.14001eb40
mov rax, qword [rbx + 0x10]
mov byte [rdi + rax], r15b
mov dword [r14 + 0x50], ebp
xor eax, eax
mov r15, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400633b0
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001c6c0
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 0x14001c6ea
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x1400917d8]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400917e8]
mov rcx, rbx
mov r14, rax
call fcn.1400727c8
test rax, rax
je 0x14001c749
mov rcx, rbx
test r14, r14
je 0x14001c736
xor edx, edx
lea r8d, [rdx + 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 0x14001c780
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001c780
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 0x14001c84a
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x14001c7b0
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14001c83c
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14001c83c
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x14001c7e3
mov dword [rsi + rax*2], 0x5c
inc rdi
cmp word [rsi + rdi*2], bp
jne 0x14001c7f5
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 0x14001c810
mov rcx, rsi
test r14, r14
je 0x14001c833
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x14001c839
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [fcn.14006f1f0]
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 0x140024ae0
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x140024af5
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.140024520

Function at 0x140024e20
Capabilities:
Convert ip address from string

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400b5700]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor edi, edi
mov r14, rdx
mov rbp, rcx
cmp byte [rcx + 0xa8f], dil
je 0x14002503f
cmp byte [rdx + 0x18], dil
mov qword [rsp + 0xc8], rsi
lea rsi, [rdx + 0x18]
je 0x140025037
lea r8, [rsp + 0x20]
mov rdx, rsi
lea ecx, [rdi + 2]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x140025037
lea r8, [rsp + 0x70]
mov rdx, rsi
lea ecx, [rdi + 0x17]
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x140025037
cmp byte [rsi], dil
lea rdx, str.Host__s:_d_was_resolved.
mov r9d, dword [r14 + 0x14]
mov rcx, rbp
mov qword [rsp + 0x100], rbx
mov rbx, qword [r14]
mov qword [rsp + 0xc0], r15
lea r15, str._none_
mov r8, r15
cmovne r8, rsi
call fcn.140019830
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000c900
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.14000c900
test rbx, rbx
je 0x140024fa4
lea r14d, [rdi + 0x20]
nop dword [rax]
mov ecx, dword [rbx + 4]
cmp ecx, 0x17
je 0x140024f11
cmp ecx, 2
jne 0x140024f97
xor eax, eax
mov byte [rsp + 0x80], 0
cmp ecx, 2
lea rsi, [rsp + 0x30]
cmovne rax, r14
add rsi, rax
cmp ecx, 2
je 0x140024f3e
cmp ecx, 0x17
jne 0x140024f59
mov rdx, qword [rbx + 0x20]
add rdx, 8
jmp 0x140024f46
mov rdx, qword [rbx + 0x20]
add rdx, 4
mov r9d, 0x2e
lea r8, [rsp + 0x80]
call sub.WS2_32.dll_inet_ntop
mov rcx, rsi
call fcn.14000c920
test rax, rax
je 0x140024f7d
mov r8d, 2
lea rdx, [0x1400912c0]
mov rcx, rsi
call fcn.14000c8c0
mov edi, eax
test edi, edi
jne 0x140024fbf
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.14000c860
mov edi, eax
test eax, eax
jne 0x140024fbf
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140024f00
lea rcx, [rsp + 0x50]
call fcn.14000c920
test rax, rax
je 0x140024fd0
lea rcx, [rsp + 0x50]
call fcn.14000c930
jmp 0x140024fd3
lea rdx, str.too_many_IP__cant_show
mov rcx, rbp
call fcn.140019830
jmp 0x140025013
mov rax, r15
mov r8, rax
lea rdx, str.IPv6:__s
mov rcx, rbp
call fcn.140019830
lea rcx, [rsp + 0x30]
call fcn.14000c920
test rax, rax
je 0x140025001
lea rcx, [rsp + 0x30]
call fcn.14000c930
mov r15, rax
mov r8, r15
lea rdx, str.IPv4:__s
mov rcx, rbp
call fcn.140019830
lea rcx, [rsp + 0x30]
call fcn.14000c8d0
lea rcx, [rsp + 0x50]
call fcn.14000c8d0
mov r15, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0x100]
mov rsi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400633b0
add rsp, 0xd0
pop r14
pop rdi
pop rbp
ret