joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401272d0
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x1401ea560]
test ecx, ecx
je 0x1401273c6
dec ecx
call fcn.14017ee14
cmp rax, 2
jb 0x140127300
cmp qword [rax + 8], 0
je 0x140127300
add rax, 0x10
jmp 0x1401273c0
mov ecx, dword [0x1401ea560]
test ecx, ecx
je 0x1401273d9
dec ecx
call fcn.14017ee14
cmp rax, 1
je 0x1401273a0
mov rsi, rax
test rax, rax
jne 0x140127370
movzx eax, byte [0x1402e61a8]
mov edx, 0x20
xor ecx, ecx
call dbg.process_heap_alloc
test rax, rax
je 0x1401273ff
mov rsi, rax
lea rax, dbg.destroy_value_core::cell::Cell__usize__bool___
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1401ea560]
test ecx, ecx
je 0x1401273ec
dec ecx
mov rdx, rsi
call fcn.14017ee1c
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x1401273a4
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1401273ac
xor eax, eax
jmp 0x1401273c0
call dbg.fallback_rng
mov rcx, rax
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
add rsp, 0x30
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call dbg.init
mov ecx, eax
jmp 0x1401272e5
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call dbg.init
mov ecx, eax
jmp 0x140127310
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call dbg.init
mov ecx, eax
jmp 0x140127368
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
int3

Function at 0x14012b9b7
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x14012b9be
test al, 1
je 0x14012b9dd
test al, 2
jne 0x14012b9f5
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1402588e8]
mov edx, 0x23
call dbg.panic
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140258928]
mov edx, 0x25
call dbg.panic
int3
Function at 0x14012f90e
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
cmp byte [rcx + 0x60], 0
je 0x14012f9af
mov rdi, rcx
mov rbx, qword [rcx + 0x30]
mov rcx, rbx
mov edx, 1
call sub.kernel32.dll_TerminateProcess
test eax, eax
je 0x14012f93f
mov byte [rdi + 0x60], 0
xor esi, esi
jmp 0x14012f9a2
call sub.kernel32.dll_GetLastError
mov esi, eax
cmp eax, 5
jne 0x14012f99a
mov rcx, rbx
xor edx, edx
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x14012f962
cmp eax, 0x102
je 0x14012f937
jmp 0x14012f976
lea rdx, [rsp + 0x3c]
and dword [rdx], 0
mov rcx, rbx
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x14012f937
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 1
lea rcx, [rsp + 0x30]
call dbg.drop_in_place<std::io::error::Error>
shl rsi, 0x20
or rsi, 2
lea rcx, [rsp + 0x28]
mov qword [rcx], rsi
call sym._ZN4core3ptr81drop_in_place_LT_core..result..Result_LT__LP__RP__C_std..io..error..Error_GT__GT_17hfb3ea00d8b7e8eb0E.11116
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x140134656
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x14013466f
dec ecx
add rsp, 0x28
jmp fcn.14017ee14
mov rcx, rax
call dbg.init
mov ecx, eax
jmp 0x140134666

Function at 0x14013468c
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x1401346ad
dec ecx
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14017ee1c
mov rcx, rax
call dbg.init
mov ecx, eax
jmp 0x1401346a0

Function at 0x1401362d0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call sym.__tokio::io::poll_evented::PollEvented_E__as_core::ops::deref::Deref_::deref::hdbd483820aa26a86
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14013630b
xor eax, eax
jmp 0x140136318
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x1401365d4
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0xd0]
lea r15, [rsp + 0x3a]
lea r12, [rsp + 0x52]
mov r13, qword [rdx + 0x10]
mov ebp, 0x7fffffff
cmp rax, rbp
cmovb rbp, rax
mov rsi, qword [rdx + 0x18]
mov rax, qword [rdx + 0x20]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x60], rsi
mov rdx, r13
mov r8, rbx
call sym.tokio::runtime::io::registration::Registration::poll_write_ready::h93b9cf59b1da2b63
mov al, byte [rsp + 0x39]
cmp al, 3
je 0x14013675c
mov rcx, qword [rsp + 0x30]
cmp al, 2
je 0x14013676a
mov dl, byte [rsp + 0x38]
movzx r8d, word [r15 + 4]
mov word [r12 + 4], r8w
mov r8d, dword [r15]
mov dword [r12], r8d
mov qword [rsp + 0x48], rcx
mov byte [rsp + 0x50], dl
mov byte [rsp + 0x51], al
cmp rsi, 0xffffffffffffffff
je 0x1401367ab
mov rcx, rsi
mov rdx, rdi
mov r8d, ebp
xor r9d, r9d
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x140136778
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call sym._ZN3std2io5error5Error4kind17ha4bba0dd38156312E.11114
cmp al, 0xd
jne 0x140136724
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140136724
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x1401367b7
mov rbp, r13
mov r13, r14
mov r14, r15
mov r15, rbx
mov rbx, rdi
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call sym.mio::sys::windows::selector::SelectorInner::reregister::h6a1bf568696d0238
mov rdi, rax
xor ecx, ecx
call sym._ZN4core3ptr81drop_in_place_LT_core..result..Result_LT__LP__RP__C_std..io..error..Error_GT__GT_17h4b3ee7346f18e9a1E.5761
test rdi, rdi
je 0x140136710
mov ecx, 1
mov rdx, rsi
call sym.core::ptr::drop_in_place_core::result::Result_usize_std::io::error::Error__::h0efe6426c1429518
mov rsi, rdi
mov rdi, rbx
mov rbx, r15
mov r15, r14
mov r14, r13
mov r13, rbp
mov rbp, qword [rsp + 0x40]
mov rcx, rsi
call sym._ZN3std2io5error5Error4kind17ha4bba0dd38156312E.11114
cmp al, 0xd
jne 0x14013678a
mov qword [rsp + 0x30], rsi
mov rcx, r14
lea rdx, [rsp + 0x48]
call sym.tokio::runtime::io::registration::Registration::clear_readiness::h5118a811e5ebee57
lea rsi, [rsp + 0x30]
mov rcx, rsi
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h64dc19f6a15c5a5eE.11117
mov rcx, rsi
mov rsi, qword [rsp + 0x60]
jmp 0x140136630
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x14013679a
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
jmp 0x140136784
movsxd rcx, eax
mov rax, qword [rsp + 0x28]
and qword [rax], 0
mov qword [rax + 8], rcx
jmp 0x14013679a
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.C:Users_soras.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.35.1_srciopoll_evented.rs
call dbg.unwrap_failed
ud2
Function at 0x14014a514
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret
Function at 0x14018f4c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x14018f530
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1402e6c04]
mov rbx, rcx
test esi, esi
jle 0x14018f660
mov rax, qword [0x1402e6c08]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14018f57b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14018f605
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14018f560
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14018f682
mov rax, qword [0x1402e6c08]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1402e6c08]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14018f667
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14018f5fe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14018f610
add dword [0x1402e6c04], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1402e6c08]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14018f5fe
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x14018f588
mov rax, qword [0x1402e6c08]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14018fc10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1402e6c60]
mov rcx, r12
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
mov rbx, qword [0x1402e6c40]
test rbx, rbx
je 0x14018fc6c
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14018fc63
test eax, eax
jne 0x14018fc63
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14018fc48
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.kernel32.dll_LeaveCriticalSection]
Function at 0x14018fe80
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14018fe98
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14018fea0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14018feb0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14018fefd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x14018fef4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14018feff
add rax, 0x28
cmp rax, r9
jne 0x14018fee0
xor eax, eax
ret

Function at 0x14018ff00
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14018ff90
mov rdx, qword [0x140297cc0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14018ff7e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14018ff7e
cmp word [rax + 0x18], 0x20b
jne 0x14018ff7e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14018ff90
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14018ff69
add rbx, 0x28
cmp rbx, rdi
je 0x14018ff90
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14018ff60
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x14018ffa0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140297cc0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14018ffc0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14018ffc8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14018ffc0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14019001d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140190014
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14018ffc0
add rax, 0x28
cmp rax, r9
jne 0x140190000
xor eax, eax
ret

Function at 0x140190020
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140297cc0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14019003f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140190048
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14019003f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140190060
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140297cc0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140190080
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140190088
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140190080
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1401900d0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1401900c7
test rcx, rcx
je 0x140190080
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1401900b8
xor eax, eax
ret

Function at 0x1401900e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140297cc0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1401900ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140190108
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140190120
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140297cc0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140190140
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140190148
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140190140
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140190140
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140190194
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1401901a0
add rdx, 0x28
cmp rdx, r9
jne 0x140190180
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1401901b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140297cc0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1401901d2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1401901e0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1401901d2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1401901d2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1401901d2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140190235
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140190248
add rdx, 0x28
cmp r10, rdx
jne 0x140190220
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140190257
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140190267
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14019023e
test ecx, ecx
jg 0x140190250
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140190da0
Capabilities:
Authenticate hmac

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov eax, dword [rcx + 0x18]
add eax, eax
mov rdi, rdx
mov edx, dword [rcx + 0x20]
mov rbx, rcx
mov ebp, r8d
lea rcx, [rax + rdx + 0x18]
mov rax, qword [0x140297bb0]
call qword [rax]
mov rsi, rax
test rax, rax
je 0x140190ea8
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsi + 0x10], rax
cmp dword [rbx + 0x1c], ebp
jae 0x140190e16
call qword [rbx]
mov r8d, ebp
mov rdx, rdi
mov rcx, qword [rsi + 8]
call qword [rbx + 8]
mov edi, dword [rbx + 0x18]
add rdi, qword [rsi + 0x10]
mov rdx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx + 0x10]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rsi + 8]
xor r12d, r12d
lea r14, [rsp + 0x2f]
call qword [rbx]
mov rcx, qword [rsi + 0x10]
call qword [rbx]
mov r13d, ebp
cmp r12, r13
jae 0x140190e6d
mov al, byte [rdi + r12]
mov rcx, qword [rsi + 8]
mov r8d, 1
mov rdx, r14
xor eax, 0x36
mov byte [rsp + 0x2f], al
call qword [rbx + 8]
mov al, byte [rdi + r12]
mov rcx, qword [rsi + 0x10]
mov rdx, r14
mov r8d, 1
inc r12
xor eax, 0x5c
mov byte [rsp + 0x2f], al
call qword [rbx + 8]
jmp 0x140190e2a
lea rdi, [0x14029c5e0]
lea rbp, [0x14029c5f0]
mov eax, dword [rbx + 0x1c]
cmp r13, rax
jae 0x140190ea8
mov rcx, qword [rsi + 8]
mov r8d, 1
mov rdx, rdi
inc r13
call qword [rbx + 8]
mov rcx, qword [rsi + 0x10]
mov r8d, 1
mov rdx, rbp
call qword [rbx + 8]
jmp 0x140190e7b
mov rax, rsi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140192d10
Capabilities:
Convert ip address from string

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x108
xor eax, eax
xor esi, esi
mov qword [rsp + 0xc0], rax
mov rbx, rdx
mov rdi, r8
test rdx, rdx
je 0x140192f75
test r8, r8
jne 0x140192d46
mov rdi, qword [rdx]
xor esi, esi
test byte [rbx + 0x28], 4
jne 0x140192f75
test rdi, rdi
je 0x140192f75
cmp byte [rdi], 0
je 0x140192f75
lea r9, [rsp + 0xc0]
lea r8, [rsp + 0xb8]
mov rdx, rdi
call sym.Curl_fopen
mov esi, eax
test eax, eax
jne 0x140192f64
mov rdx, qword [rsp + 0xb8]
lea rcx, [0x14028ff3d]
lea r12, [0x14028ff35]
call sym.fputs
mov rbp, qword [rbx + 8]
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xa0], rax
test rbp, rbp
je 0x140192f23
mov rbx, qword [rbp]
lea rdx, [rsp + 0xdc]
mov rbp, qword [rbp + 0x10]
mov rcx, qword [rbx + 0x20]
call sym.Curl_gmtime
test eax, eax
je 0x140192de2
mov esi, eax
jmp 0x140192f23
mov rdx, qword [rbx + 0x10]
lea r8, [rsp + 0xcc]
mov ecx, 0x17
lea r14, [0x14028ff39]
mov qword [rsp + 0xa8], r8
lea r13, [0x14028ff3b]
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rbx]
mov ecx, 0x17
dec eax
cmovne r14, r12
cmovne r13, r12
call qword [sym.imp.WS2_32.dll_inet_pton]
mov rdx, qword [rbx + 0x10]
mov ecx, dword [rbx + 0x1c]
lea r10, [0x14028ff39]
dec eax
lea r9, [0x14028ff3b]
mov r8d, dword [rbx + 0x2c]
mov qword [rsp + 0xa8], rdx
cmovne r10, r12
cmovne r9, r12
call sym.Curl_alpnid2str
mov ecx, dword [rbx + 0xc]
mov r15, qword [rbx]
mov r11, rax
call sym.Curl_alpnid2str
mov dword [rsp + 0x98], r8d
movzx ecx, byte [rbx + 0x28]
mov edx, dword [rsp + 0xec]
mov r8, rax
mov dword [rsp + 0x90], ecx
mov ecx, dword [rsp + 0xdc]
mov dword [rsp + 0x88], ecx
mov ecx, dword [rsp + 0xe0]
mov dword [rsp + 0x80], ecx
mov ecx, dword [rsp + 0xe4]
mov dword [rsp + 0x78], ecx
mov ecx, dword [rsp + 0xe8]
mov dword [rsp + 0x70], ecx
lea ecx, [rdx + 1]
mov edx, dword [rsp + 0xf0]
mov dword [rsp + 0x68], ecx
lea ecx, [rdx + 0x76c]
mov rdx, qword [rsp + 0xa8]
mov dword [rsp + 0x60], ecx
movzx ecx, word [rbx + 0x18]
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], ecx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r11
movzx edx, word [rbx + 8]
mov qword [rsp + 0x28], r10
mov dword [rsp + 0x30], edx
lea rdx, str._s__s_s_s__u__s__s_s_s__u___d_02d_02d__02d:_02d:_02d___u__d_n
mov qword [rsp + 0x20], r15
mov rcx, qword [rsp + 0xa0]
call sym.curl_mfprintf
jmp 0x140192da5
mov rcx, qword [rsp + 0xb8]
call sym.fclose
test esi, esi
jne 0x140192f52
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
je 0x140192f64
mov rdx, rdi
call sym.Curl_rename
test eax, eax
je 0x140192f64
mov esi, 0x17
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
je 0x140192f64
call sym.unlink
mov rax, qword [0x140297ba0]
mov rcx, qword [rsp + 0xc0]
call qword [rax]
mov eax, esi
add rsp, 0x108
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14019c2d0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
mov esi, edx
mov rbp, r8
mov r12, r9
test byte [rcx + 0xa0e], 0x20
je 0x14019c391
cmp qword [rcx + 0x250], 0
je 0x14019c343
call sym.Curl_is_in_callback
mov rcx, rbx
mov edx, 1
mov edi, eax
call sym.Curl_set_in_callback
mov edx, esi
mov rcx, rbx
mov r9, r12
mov rax, qword [rbx + 0x1c8]
mov r8, rbp
mov qword [rsp + 0x20], rax
call qword [rbx + 0x250]
movzx edx, dil
mov rcx, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.Curl_set_in_callback
cmp edx, 2
ja 0x14019c391
mov ecx, edx
mov r9, qword [rbx + 0x1c0]
mov edx, 2
lea rax, [0x1402a1f80]
lea rcx, [rcx + rcx*2]
mov r8d, 1
add rcx, rax
call sub.msvcrt.dll_fwrite
mov r9, qword [rbx + 0x1c0]
mov rdx, r12
mov rcx, rbp
mov r8d, 1
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sub.msvcrt.dll_fwrite
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14019f8d0
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, r9
mov qword [rsp + 0x98], r9
xor r9d, r9d
mov qword [rax], r9
lea r9, [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x14019fa2a
mov rbx, qword [rsp + 0x28]
xor r13d, r13d
xor r12d, r12d
test rbx, rbx
je 0x14019f9e1
mov rcx, qword [rbx + 0x18]
xor ebp, ebp
test rcx, rcx
je 0x14019f92f
call sym.strlen
lea rbp, [rax + 1]
mov eax, dword [rbx + 4]
cmp eax, 2
je 0x14019f947
mov r15d, 0x1c
cmp eax, 0x17
je 0x14019f94d
jmp 0x14019f9d2
mov r15d, 0x10
cmp qword [rbx + 0x20], 0
je 0x14019f9d2
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14019f9d2
cmp rax, r15
jb 0x14019f9d2
mov rax, qword [0x140297bb0]
lea rcx, [r15 + rbp + 0x30]
call qword [rax]
test rax, rax
je 0x14019f9db
mov edx, dword [rbx]
mov rsi, qword [rbx + 0x20]
mov rcx, r15
mov dword [rax], edx
mov edx, dword [rbx + 4]
mov dword [rax + 4], edx
mov edx, dword [rbx + 8]
mov dword [rax + 8], edx
mov edx, dword [rbx + 0xc]
mov dword [rax + 0x10], r15d
mov dword [rax + 0xc], edx
xor edx, edx
mov qword [rax + 0x18], rdx
mov qword [rax + 0x28], rdx
lea rdx, [rax + 0x30]
mov qword [rax + 0x20], rdx
mov rdi, rdx
rep movsb byte [rdi], byte [rsi]
test rbp, rbp
je 0x14019f9bf
mov qword [rax + 0x18], rdi
mov rsi, qword [rbx + 0x18]
mov rcx, rbp
rep movsb byte [rdi], byte [rsi]
test r12, r12
cmove r12, rax
test r13, r13
je 0x14019f9cf
mov qword [r13 + 0x28], rax
mov r13, rax
mov rbx, qword [rbx + 0x28]
jmp 0x14019f912
mov r14d, 8
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14019f9f1
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x14019fa09
mov rcx, r12
mov r14d, 8
xor r12d, r12d
call sym.Curl_freeaddrinfo
jmp 0x14019fa1f
test r12, r12
jne 0x14019fa1f
mov ecx, 0x2af9
mov r14d, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rax, qword [rsp + 0x98]
mov qword [rax], r12
mov eax, r14d
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401a0c90
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
add rdx, rcx
cmp rcx, rdx
jae 0x1401a0cad
imul rax, rax, 0x21
movsx r9, byte [rcx]
inc rcx
xor rax, r9
jmp 0x1401a0c98
xor edx, edx
div r8
mov rax, rdx
ret

Function at 0x1401a11a0
Capabilities:
Convert ip address from string

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov rsi, qword [sym.imp.WS2_32.dll_inet_pton]
mov rdx, rcx
mov rbx, rcx
lea r8, [rsp + 0x2c]
mov ecx, 2
call rsi
mov edx, eax
mov al, 1
test edx, edx
jg 0x1401a11db
lea r8, [rsp + 0x30]
mov rdx, rbx
mov ecx, 0x17
call rsi
test eax, eax
setg al
add rsp, 0x48
pop rbx
pop rsi
ret