joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015080
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.14000f980
sub rsp, rax
mov rax, qword [0x14004b080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140020b5c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400150cf
mov rax, rbp
jmp 0x1400151d7
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x76b7b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140020dec
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x76b7b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400151d3
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 0x1400151d3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140020dec
test rax, rax
js 0x1400151d3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400151d3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400151c5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400151c5
cmp byte [rcx], 0xd
jne 0x1400151ab
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400151ba
cmp byte [rcx + 1], 0xa
jne 0x1400151ba
inc rcx
jmp 0x1400151ba
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4b470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001518d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400151d7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000f4d0
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 0x14001e8f8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001e6f4
Function at 0x140021570
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, [0x14076b7b0]
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 0x1400215c7
cmp word [rdx], r13w
jne 0x1400215c7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400215cc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400216f1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140021712
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140021605
mov rdx, r9
mov word [rbx], cx
jmp 0x14002162c
cmp r9, r8
jae 0x14002163c
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 0x1400215e6
jmp 0x1400216f1
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 0x1400216e6
cmp dword [rsp + 0x80], esi
je 0x1400216e6
lea r8, [0x14076b7b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400216be
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002168e
mov word [rbx], r13w
jmp 0x1400216ee
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 0x14002169b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400216ee
cmp word [rsp + 0x70], r13w
jne 0x1400216cb
cmp rbx, r14
je 0x140021688
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140020df4
cmp word [rsp + 0x70], r13w
je 0x1400216f1
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, [0x14076b7b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400216eb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400216f1
Function at 0x1400324a0
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.140020df4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140020df4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400325f0
cmp rax, 0xffffffffffffffff
je 0x1400325f0
xor edi, edi
test rbp, rbp
jle 0x14003259b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400221dc
mov rbx, rax
test rax, rax
jne 0x140032528
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140032591
mov edx, 0x8000
mov ecx, r14d
call fcn.14001e974
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.140025f74
cmp eax, 0xffffffff
je 0x140032571
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140032538
mov edx, r15d
mov ecx, r14d
call fcn.14001e974
jmp 0x140032591
cmp byte [rsi + 0x38], dil
je 0x140032588
cmp dword [rsi + 0x34], 5
jne 0x140032588
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140032591
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140022254
jmp 0x140032604
jns 0x140032604
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140020df4
cmp rax, 0xffffffffffffffff
jne 0x1400325bc
cmp byte [rsi + 0x30], dil
je 0x140032604
mov edi, dword [rsi + 0x2c]
jmp 0x140032604
mov ecx, r14d
call fcn.14002b3c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140032604
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 0x140032604
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400325fd
mov eax, dword [rsi + 0x2c]
jmp 0x140032602
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140020df4
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 0x140cc3058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140cc31df
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 0x140cc3089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cc306f
add dl, dl
jne 0x140cc3096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cc30f6
xor eax, eax
add dl, dl
jne 0x140cc30a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cc31ad
add dl, dl
jne 0x140cc30b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cc30c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cc30d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cc30dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140cc30ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140cc307e
mov eax, 1
add dl, dl
jne 0x140cc3106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cc3113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cc30fb
sub eax, ebx
mov ebx, 1
jne 0x140cc314c
mov ecx, 1
add dl, dl
jne 0x140cc312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cc313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cc3123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cc307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140cc3168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cc3175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cc315d
cmp eax, 0x7d00
jae 0x140cc319b
cmp eax, 0x500
jb 0x140cc3196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cc307e
cmp eax, 0x7f
ja 0x140cc319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cc307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140cc31d2
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 0x140cc307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002064
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xorps xmm0, xmm0
mov rbx, rcx
movups xmmword [rcx], xmm0
and qword [rcx + 0x10], 0
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], 0
call fcn.14000a940
mov rdi, rax
test rax, rax
je 0x14000210f
movdqa xmm0, xmmword [0x1400c3220]
xor ecx, ecx
movdqu xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x30], 0x1a074611
mov word [rsp + 0x34], reloc.WS2_32.dll_ntohs
mov al, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x21], al
inc rcx
cmp rcx, 0x14
jb 0x1400020b3
lea r8, [rsp + 0x21]
mov byte [rsp + 0x35], 0
mov edx, 0x2712
mov rcx, rdi
call fcn.14000ee10
lea r8, [0x140002040]
mov edx, 0x4e2b
mov rcx, rdi
call fcn.14000ee10
mov r8, rbx
mov edx, 0x2711
mov rcx, rdi
call fcn.14000ee10
mov rcx, rdi
call fcn.14000a9b0
mov rcx, rdi
call fcn.14000a910
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400026cc
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1400cf7c0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov dword [rsp + 0x38], 0x100
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.HARDWAREDESCRIPTIONSystemCentralProcessor0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140002756
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.ProcessorNameString
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000276c
lea r8, str.Unknown_CPU
mov edx, 0x100
lea rcx, [rsp + 0x40]
call fcn.14007bafc
xorps xmm0, xmm0
lea rax, [rsp + 0x40]
movups xmmword [rbx], xmm0
and qword [rbx + 0x10], 0
and qword [rbx + 0x18], 0
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140002785
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140008f60
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140070360
add rsp, 0x150
pop rbx
ret
Function at 0x140003018
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x1400cf7c0]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rbx, rcx
mov dword [rsp + 0x30], 0x100
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
xor edx, edx
test eax, eax
je 0x140003080
xorps xmm0, xmm0
lea rax, [rsp + 0x40]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdx
or r8, 0xffffffffffffffff
mov qword [rbx + 0x18], rdx
inc r8
cmp byte [rax + r8], dl
jne 0x140003070
lea rdx, [rsp + 0x40]
jmp 0x1400030e0
mov cl, 0x7a
mov dword [rsp + 0x20], 0x11142f7a
mov dword [rsp + 0x24], 0x140d1514
mov rax, rdx
mov dword [rsp + 0x28], 0x1f092f5a
mov word [rsp + 0x2c], 8
xor byte [rsp + rax + 0x21], cl
inc rax
cmp rax, 0xc
jae 0x1400030b7
mov cl, byte [rsp + 0x20]
jmp 0x1400030a4
xorps xmm0, xmm0
mov byte [rsp + 0x2d], dl
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdx
lea rax, [rsp + 0x21]
mov qword [rbx + 0x18], rdx
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], dl
jne 0x1400030d2
lea rdx, [rsp + 0x21]
mov rcx, rbx
call fcn.140008f60
mov rax, rbx
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140070360
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rbp
ret
Function at 0x140015260
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140015342
call fcn.14002e6e0
test al, al
jne 0x140015342
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x140015292
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.1400381a0
test rax, rax
je 0x1400152d7
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.1400381a0
mov rsi, rax
test rax, rax
je 0x1400152d7
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 0x14001530b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.14002b060
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x1400152f0
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 0x1400275d0
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 0x1400275fa
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x1400a8218]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400a8228]
mov rcx, rbx
mov r14, rax
call fcn.14007f7e8
test rax, rax
je 0x14002765b
mov rcx, rbx
test r14, r14
je 0x140027648
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 0x140027692
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140027692
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 0x14002775c
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax + rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x1400276c0
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14002774e
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14002774e
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x1400276f3
mov dword [rsi + rax*2], 0x5c
inc rdi
cmp word [rsi + rdi*2], bp
jne 0x140027705
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 0x140027720
mov rcx, rsi
test r14, r14
je 0x140027745
xor edx, edx
mov r8d, 8
call r14
jmp 0x14002774b
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [fcn.14007bc10]
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 0x14002f4f0
Capabilities:
Convert ip address from string

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

Function at 0x14002f7f0
Capabilities:
Convert ip address from string

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400cf7c0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor edi, edi
mov r14, rdx
mov rbp, rcx
cmp byte [rcx + 0xa4e], dil
je 0x14002fa12
cmp byte [rdx + 0x18], dil
mov qword [rsp + 0xc8], rsi
lea rsi, [rdx + 0x18]
je 0x14002fa0a
lea r8, [rsp + 0x20]
mov rdx, rsi
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x14002fa0a
lea r8, [rsp + 0x70]
mov rdx, rsi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x14002fa0a
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.1400237c0
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.1400158a0
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.1400158a0
test rbx, rbx
je 0x14002f977
mov r14d, 0x20
mov ecx, dword [rbx + 4]
cmp ecx, 0x17
je 0x14002f8e4
cmp ecx, 2
jne 0x14002f96a
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 0x14002f911
cmp ecx, 0x17
jne 0x14002f92c
mov rdx, qword [rbx + 0x20]
add rdx, 8
jmp 0x14002f919
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.1400158c0
test rax, rax
je 0x14002f950
mov r8d, 2
lea rdx, [0x1400a7794]
mov rcx, rsi
call fcn.140015860
mov edi, eax
test edi, edi
jne 0x14002f992
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.140015800
mov edi, eax
test eax, eax
jne 0x14002f992
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14002f8d3
lea rcx, [rsp + 0x50]
call fcn.1400158c0
test rax, rax
je 0x14002f9a3
lea rcx, [rsp + 0x50]
call fcn.1400158d0
jmp 0x14002f9a6
lea rdx, str.too_many_IP__cant_show
mov rcx, rbp
call fcn.1400237c0
jmp 0x14002f9e6
mov rax, r15
mov r8, rax
lea rdx, str.IPv6:__s
mov rcx, rbp
call fcn.1400237c0
lea rcx, [rsp + 0x30]
call fcn.1400158c0
test rax, rax
je 0x14002f9d4
lea rcx, [rsp + 0x30]
call fcn.1400158d0
mov r15, rax
mov r8, r15
lea rdx, str.IPv4:__s
mov rcx, rbp
call fcn.1400237c0
lea rcx, [rsp + 0x30]
call fcn.140015870
lea rcx, [rsp + 0x50]
call fcn.140015870
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.140070360
add rsp, 0xd0
pop r14
pop rdi
pop rbp
ret
Function at 0x140038940
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.140015650
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.140037c70
mov rcx, rdi
mov rsi, rax
call fcn.140037c70
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400389f0
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.140015650
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1400156e0
cmp rax, 0x3e8
ja 0x140038a21
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1400389a0
test rsi, rsi
je 0x1400389fd
mov rcx, rsi
call fcn.14007bc10
test rbx, rbx
je 0x140038a0a
mov rcx, rbx
call fcn.14007bc10
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x140038a2e
mov rcx, rsi
call fcn.14007bc10
test rbx, rbx
je 0x140038a3b
mov rcx, rbx
call fcn.14007bc10
mov eax, 1
jmp 0x140038a0c
Function at 0x140038fa0
Capabilities:
Resolve dns

Disassembly:
push rdi
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x14003913e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x14003911e
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x14003900e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140039000
inc rbx
jmp 0x140039010
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14003901f
mov ebp, reloc.WS2_32.dll_recv
jmp 0x14003902d
cmp eax, 0x17
jne 0x1400390c5
mov ebp, 0x1c
cmp qword [rsi + 0x20], 0
je 0x1400390c5
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400390c5
cmp rax, rbp
jb 0x1400390c5
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [section..data]
mov r14, rax
test rax, rax
je 0x1400390d4
mov ecx, dword [rsi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call fcn.1400a0f10
test rbx, rbx
je 0x1400390b2
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call fcn.1400a0f10
test rdi, rdi
cmove rdi, r14
test r15, r15
je 0x1400390c2
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x140038ff0
jmp 0x1400390da
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x1400390f4
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x140039119
test rdi, rdi
je 0x140039115
nop
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.14007bc10]
mov rdi, rbx
test rbx, rbx
jne 0x140039100
xor edi, edi
jmp 0x14003912d
test rdi, rdi
jne 0x14003912d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r15
pop r13
pop r12
pop rdi
ret
Function at 0x140039f30
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, 0x2b
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x140039ffc
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.14001d3f0
mov edx, eax
cmp eax, 4
jne 0x140039fb0
cmp byte [0x1400d0c8c], r14b
jne 0x140039fba
mov r9d, 2
mov dword [rsp + 0x50], r14d
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb edx, edx
and edx, 2
test edx, edx
jne 0x140039ffc
mov eax, dword [rsp + 0x50]
jmp 0x140039fd9
imul eax, dword [0x1400d0c88], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x1400d0c88], eax
ror eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x140039ff3
sub rsi, rdi
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x140039fe1
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x140039f60
mov rbx, qword [rsp + 0x40]
mov eax, edx
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x14003a020
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
sub rdi, 1
je 0x14003a0e8
xor ebp, ebp
lea r14, [0x1400aa788]
nop
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14001d3f0
cmp eax, 4
jne 0x14003a091
cmp byte [0x1400d0c8c], bpl
jne 0x14003a09b
mov r9d, 2
mov dword [rsp + 0x50], ebp
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x14003a0ed
mov ecx, dword [rsp + 0x50]
jmp 0x14003a0b8
imul ecx, dword [0x1400d0c88], 0x41c64e6d
add ecx, 0x3039
mov dword [0x1400d0c88], ecx
ror ecx, 0x10
mov dword [rsp + 0x50], ecx
cmp ecx, 0xfffffffc
jae 0x14003a050
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx eax, byte [rcx + r14]
mov byte [rsi], al
inc rsi
sub rdi, 1
jne 0x14003a050
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret