joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e3170
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x168
mov rax, qword [0x14025d030]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, qword [rsp + 0x1d0]
mov r14, rcx
mov rcx, qword [rcx + 0x18]
mov r15, r8
movsxd r8, edx
xor r13d, r13d
mov rax, r8
mov r12, r9
shl rax, 5
lea rbx, [rcx + 0x1e8]
mov rsi, qword [rcx + r8*8 + 0x1a8]
add rbx, rax
mov rax, qword [rcx + 0x328]
mov rbp, qword [rbx + 8]
sub rbp, qword [rbx + 0x10]
test dword [rax + 0x84], 0xc0000003
je 0x1400e32bf
lea rax, [0x1400e84a0]
cmp qword [rcx + r8*8 + 0x1b8], rax
jne 0x1400e32bf
cmp qword [rbx], r13
je 0x1400e320c
test rbp, rbp
je 0x1400e32bf
cmp rsi, 0xffffffffffffffff
je 0x1400e32bf
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], 0x700
lea edx, [r8 + 1]
call fcn.1400ffb40
mov edx, eax
test eax, eax
jle 0x1400e3262
movzx ecx, word [rsp + 0x2a]
mov eax, 0x303
test ax, cx
mov edx, 0x604
mov eax, r13d
setne al
and cx, dx
mov edx, eax
or edx, 4
test cx, cx
cmove edx, eax
mov eax, edx
cmp edx, 0xffffffff
je 0x1400e32bf
test al, 1
je 0x1400e32bf
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400e329e
mov eax, dword [r14 + 0x6c4]
lea ecx, [rax + rax]
mov qword [rbx + 8], rcx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x1400e32f4
mov rbp, qword [rbx + 8]
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, ebp
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1400e32bf
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
movsxd rsi, eax
mov dword [rdi], r13d
cmp rsi, 0xffffffffffffffff
jne 0x1400e332e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1400e3303
mov dword [rdi], 0x51
jmp 0x1400e332e
mov dword [rdi], reloc.WLDAP32.dll_Ordinal_27
mov rax, 0xffffffffffffffff
jmp 0x1400e3331
lea rdx, [rsp + 0x50]
mov ecx, ebx
call fcn.140109ce0
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, r14
call fcn.1400f1540
mov dword [r14 + 0xd64], ebx
mov dword [rdi], gethostname
mov rax, rsi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14013ea20
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400e3360
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x138
mov rax, qword [0x14025d030]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, qword [rsp + 0x1a0]
mov r15, r8
mov r8, qword [rcx + 0x18]
mov rbp, rcx
movsxd rax, edx
xor r13d, r13d
mov r14, r9
lea rbx, [r8 + 0x1e8]
mov r12, qword [r8 + rax*8 + 0x1a8]
shl rax, 5
add rbx, rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400e341a
mov rdi, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
cmp rdi, rax
jbe 0x1400e33ef
sub rdi, rax
lea rdx, [rax + rcx]
cmp r9, rdi
mov rcx, r15
cmovb rdi, r9
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x18], rdi
mov rax, qword [rbx + 0x18]
jmp 0x1400e33f2
mov rdi, r13
cmp rax, qword [rbx + 0x10]
jne 0x1400e3410
mov rcx, qword [rbx]
call qword [0x14025d0c8]
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
test rdi, rdi
jle 0x1400e341a
mov dword [rsi], r13d
jmp 0x1400e3479
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
mov rcx, r12
call qword [sym.imp.WS2_32.dll_recv]
movsxd rdi, eax
mov dword [rsi], r13d
cmp rdi, 0xffffffffffffffff
jne 0x1400e3479
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1400e344f
mov dword [rsi], 0x51
jmp 0x1400e3479
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.140109ce0
mov r8, rax
lea rdx, str.Recv_failure:__s
mov rcx, rbp
call fcn.1400f1540
mov dword [rbp + 0xd64], ebx
mov dword [rsi], gethostname
mov rax, rdi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14013ea20
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400e57a0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400e5870
lea r8, [rsp + 0x30]
mov rdx, rcx
call fcn.14012ff60
test eax, eax
jg 0x1400e5870
xor r8d, r8d
mov rdx, 0xffffffffffffffff
inc rdx
cmp byte [rbx + rdx], r8b
jne 0x1400e57d1
test rdx, rdx
je 0x1400e582c
lea rcx, [rbx - 1]
add rcx, rdx
cmp rcx, rbx
jb 0x1400e582c
nop dword [rax + rax]
cmp byte [rcx], 0x2e
je 0x1400e57ff
dec rcx
cmp rcx, rbx
jae 0x1400e57f0
jmp 0x1400e582c
cmp rcx, rbx
je 0x1400e582c
lea rax, [rcx - 1]
cmp rax, rbx
jb 0x1400e582c
nop dword [rax]
cmp byte [rax], 0x2e
je 0x1400e581f
dec rax
cmp rax, rbx
jae 0x1400e5810
jmp 0x1400e582c
lea r8, [rax + 1]
mov rax, rbx
sub rax, r8
add rdx, rax
test r8, r8
cmovne rbx, r8
lea r8, [rbx + rdx]
mov edx, 0x1505
cmp rbx, r8
jae 0x1400e5867
lea r9, [0x1401f42d0]
nop dword [rax + rax]
movzx eax, byte [rbx]
inc rbx
imul rdx, rdx, 0x21
movsx rcx, byte [rax + r9]
xor rdx, rcx
cmp rbx, r8
jb 0x1400e5850
movzx eax, dl
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400eb070
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movzx eax, byte [rdx + 0x24]
cmp byte [rcx + 0x24], al
jne 0x1400eb0f4
mov eax, dword [rdx + 0x20]
cmp dword [rcx + 0x20], eax
jne 0x1400eb0f4
mov r8, qword [rdx + 0x10]
mov rdx, qword [rcx + 0x10]
test rdx, rdx
je 0x1400eb0ec
test r8, r8
je 0x1400eb0f4
cmp byte [rdx], 0
je 0x1400eb0c1
lea r9, [0x1401f42d0]
nop
movzx eax, byte [r8]
test al, al
je 0x1400eb0c1
movzx ecx, byte [rdx]
movzx eax, byte [rax + r9]
cmp byte [rcx + r9], al
jne 0x1400eb0e2
inc rdx
inc r8
cmp byte [rdx], 0
jne 0x1400eb0a0
xor r9d, r9d
mov ecx, r9d
mov eax, r9d
cmp byte [rdx], cl
sete cl
cmp byte [r8], al
mov r9d, ecx
setne al
xor r9d, eax
test r9d, r9d
setne al
ret
xor r9d, r9d
test r9d, r9d
setne al
ret
test r8, r8
jne 0x1400eb0f4
mov al, 1
ret
xor al, al
ret
Function at 0x1400f13f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x30
cmp byte [rcx + 0xaa7], 0
mov rbp, r9
mov r14, r8
mov rbx, rcx
je 0x1400f14c6
cmp qword [rcx + 0x260], 0
je 0x1400f14d7
mov rax, qword [rcx + 0xd0]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rsi
test rax, rax
je 0x1400f144f
cmp byte [rax + 0x18b], 0
je 0x1400f144f
lea rdi, [rcx + 0xd8]
mov sil, 1
jmp 0x1400f146f
lea rdi, [rcx + 0xd8]
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400f146c
cmp byte [rcx + 0x18b], 0
je 0x1400f146c
mov sil, 1
jmp 0x1400f146f
xor sil, sil
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400f1480
mov byte [rcx + 0x18b], 1
jmp 0x1400f148c
test rax, rax
je 0x1400f148c
mov byte [rax + 0x18b], 1
mov rax, qword [rbx + 0x1d8]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [rbx + 0x260]
mov rax, qword [rdi]
mov rdi, qword [rsp + 0x48]
test rax, rax
jne 0x1400f14ba
mov rax, qword [rbx + 0xd0]
test rax, rax
je 0x1400f14c1
mov byte [rax + 0x18b], sil
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov ecx, edx
test edx, edx
je 0x1400f14e7
sub ecx, 1
je 0x1400f14e7
cmp ecx, 1
jne 0x1400f14c6
mov r9, qword [rbx + 0x1d0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x1401f4110]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbx + 0x1d0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
jmp qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
Function at 0x1400f4600
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x14025d030]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rdx
mov edx, Ordinal_46
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x1400f46eb
xor r14d, r14d
nop dword [rax + rax]
mov rax, qword [case.0x1400e58f8.2]
lea rdx, [rsp + 0x20]
mov edi, 4
mov r8d, 4
cmp rsi, rdi
mov rcx, rbp
cmovb rdi, rsi
call qword [rax + 0x50]
cmp eax, 4
je 0x1400f466d
mov edx, eax
jmp 0x1400f469b
cmp byte [0x14025f009], r14b
jne 0x1400f46a5
mov r9d, 2
mov dword [rsp + 0x20], r14d
lea rdx, [rsp + 0x20]
xor ecx, ecx
lea r8d, [r9 + 2]
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
neg eax
sbb edx, edx
and edx, 2
mov eax, edx
test eax, eax
jne 0x1400f46ed
mov eax, dword [rsp + 0x20]
jmp 0x1400f46c4
imul eax, dword [0x14025f018], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x14025f018], eax
ror eax, 0x10
mov dword [rsp + 0x20], eax
test rdi, rdi
je 0x1400f46e2
sub rsi, rdi
nop dword [rax]
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x1400f46d0
mov dword [rsp + 0x20], eax
test rsi, rsi
jne 0x1400f4640
mov eax, edx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14013ea20
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x1400f6430
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [0x14025d0c0]
mov rdi, rax
test rax, rax
je 0x1400f64ad
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x1400f64d8
cmp ebx, esi
je 0x1400f64d8
cmp ebx, 0x8000
ja 0x1400f64d8
cmp ebx, esi
jb 0x1400f64d3
mov edx, ebx
mov rcx, rdi
call qword [0x14025d0c0]
mov rdi, rax
test rax, rax
jne 0x1400f6470
mov rcx, rbp
call qword [0x14025d0c8]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x1400f64b8
mov rcx, rdi
jmp 0x1400f64b0
Function at 0x1400f9f30
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, qword [rsp + 0x50]
xor eax, eax
mov qword [r9], rax
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov qword [r14], rax
test r8, r8
jne 0x1400f9f78
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rdx + rbx], al
jne 0x1400f9f70
lea rcx, [rbx + 2]
movabs rbp, 0xaaaaaaaaaaaaaaab
mov rax, rbp
mul rcx
shr rdx, 1
lea rcx, [rdx*4 + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
mov r9, rax
test rax, rax
jne 0x1400f9fb1
lea eax, [r9 + 0x1b]
jmp 0x1400fa0a2
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp rbx, 3
jb 0x1400fa037
mov rax, rbp
mul rbx
mov r8, rdx
shr r8, 1
imul rax, r8, 0xfffffffffffffffd
add rbx, rax
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rcx], al
movzx edx, byte [rdi]
movzx eax, byte [rdi + 1]
and edx, 3
shr rax, 4
shl rdx, 4
or rdx, rax
movzx eax, byte [rdx + r10]
mov byte [rcx + 1], al
movzx edx, byte [rdi + 1]
movzx eax, byte [rdi + 2]
and edx, 0xf
shr rax, 6
shl rdx, 2
or rdx, rax
movzx eax, byte [rdx + r10]
mov byte [rcx + 2], al
movzx eax, byte [rdi + 2]
add rdi, 3
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [rcx + 3], al
add rcx, 4
sub r8, 1
jne 0x1400f9fd1
test rbx, rbx
je 0x1400fa094
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rcx], al
movzx edx, byte [rdi]
and edx, 3
shl rdx, 4
cmp rbx, 1
jne 0x1400fa06a
movzx eax, byte [rdx + r10]
mov byte [rcx + 1], al
mov word [rcx + 2], 0x3d3d
jmp 0x1400fa090
movzx eax, byte [rdi + 1]
shr rax, 4
or rax, rdx
movzx eax, byte [rax + r10]
mov byte [rcx + 1], al
movzx eax, byte [rdi + 1]
and eax, 0xf
movzx eax, byte [r10 + rax*4]
mov byte [rcx + 2], al
mov byte [rcx + 3], 0x3d
add rcx, 4
mov byte [rcx], 0
sub rcx, r9
mov qword [r14], rcx
xor eax, eax
mov qword [rsi], r9
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14010a770
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
mov eax, dword [rcx + 0xd74]
xor esi, esi
xor r12d, r12d
mov edi, r8d
mov r14d, edx
mov r13, rcx
cmp r8d, eax
jg 0x14010a7d8
cmp r8d, 0xffffffff
cmove edi, eax
test r9, r9
je 0x14010a7b5
mov r9, qword [r9 + 0x28]
test r9, r9
je 0x14010a7d8
mov r9, qword [r9 + 0x10]
jmp 0x14010a7bc
mov r9, qword [rcx + 0x1200]
test r9, r9
je 0x14010a7d8
mov rbx, qword [r9]
test byte [rbx + 0x2c], r14b
je 0x14010a7cf
cmp dword [rbx + 0x28], edi
je 0x14010a7ec
mov r9, qword [r9 + 0x10]
test r9, r9
jne 0x14010a7c1
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r14
pop r13
pop r12
pop rdi
ret
mov r10, qword [rcx + 0x1200]
mov qword [rsp + 0x30], r15
test r10, r10
je 0x14010a8a4
mov qword [rsp + 0x28], rbp
mov rbp, qword [rbx + 0x18]
nop word [rax + rax]
mov r11, qword [r10]
mov r8, qword [r11 + 0x18]
test rbp, rbp
je 0x14010a875
test r8, r8
je 0x14010a889
cmp byte [rbp], 0
mov rax, rbp
je 0x14010a85a
nop word [rax + rax]
movzx ecx, byte [r8]
test cl, cl
je 0x14010a85a
movzx edx, byte [rax]
lea rbp, [0x1401f42d0]
movzx ecx, byte [rcx + rbp]
cmp byte [rdx + rbp], cl
mov rbp, qword [rbx + 0x18]
jne 0x14010a871
inc rax
inc r8
cmp byte [rax], 0
jne 0x14010a830
xor edx, edx
cmp byte [r8], dl
setne dl
xor ecx, ecx
cmp byte [rax], cl
sete cl
xor edx, ecx
test edx, edx
je 0x14010a889
jmp 0x14010a87a
xor edx, edx
jmp 0x14010a86b
test r8, r8
jne 0x14010a889
cmp dword [r11 + 0x28], edi
jne 0x14010a889
test byte [r11 + 0x2c], r14b
je 0x14010a889
inc rsi
cmp r10, r9
jne 0x14010a892
lea r12, [rsi - 1]
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x14010a810
mov rbp, qword [rsp + 0x28]
mov rcx, qword [rbx + 0x18]
lea rax, [r13 + 0x1220]
mov r15, qword [rsp + 0x30]
mov qword [rax], rcx
mov rcx, qword [rbx + 0x20]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rsi
mov rsi, qword [rsp + 0x40]
mov qword [rax + 0x18], r12
movzx ecx, byte [rbx + 0x2c]
mov rbx, qword [rsp + 0x38]
bts ecx, 0x1b
mov dword [rax + 0x20], ecx
mov qword [rax + 0x28], r9
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14010c7b0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14025d030]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [0x14025f0f0]
mov rbx, rcx
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 4
test eax, eax
jne 0x14010c82c
xor r8d, r8d
mov dword [rsp + 0x20], 3
xor edx, edx
lea ecx, [rax + 6]
call fcn.1400f6210
test al, al
je 0x14010c820
mov dword [0x14025f0f0], 2
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14013ea20
add rsp, 0x50
pop rbx
ret
mov dword [0x14025f0f0], 1
jmp 0x14010c831
cmp eax, 2
je 0x14010c883
lea rax, [rsp + 0x38]
mov edx, 0xffff
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14010c862
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jg 0x14010c883
lea r9, [rsp + 0x34]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14013ea20
add rsp, 0x50
pop rbx
ret
Function at 0x14010d1a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x14025d030]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rdi, qword [rcx + 0x10]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], Ordinal_133
mov rsi, rdx
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
mov rcx, qword [rdi + 0x98]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14010d258
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rsp + 0xb0]
mov ebx, eax
call fcn.140109ce0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400f1540
mov eax, 2
jmp 0x14010d328
movzx ecx, word [rsp + 0x30]
mov edx, ecx
sub edx, 1
je 0x14010d2f1
cmp edx, 1
jne 0x14010d29a
lea r9d, [rdx + 0x2d]
lea rdx, [rsp + 0x34]
lea r8, [rdi + 0xd4]
call fcn.14010acf0
test rax, rax
je 0x14010d29a
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
jmp 0x14010d320
xor eax, eax
mov byte [rdi + 0xd4], 0
mov dword [rdi + 0x104], eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x273f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.140109ce0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1400f1540
mov eax, 2
jmp 0x14010d328
cmp dword [rsp + 0x20], 2
jle 0x14010d317
lea r9, [rsp + 0x32]
mov edx, reloc.WLDAP32.dll_Ordinal_46
lea r8, [0x1402303c8]
lea rcx, [rdi + 0xd4]
call sym.CheraxLoader.exe_curl_msnprintf
jmp 0x14010d31e
mov byte [rdi + 0xd4], 0
xor eax, eax
mov dword [rdi + 0x104], eax
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14013ea20
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140110640
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter
Move file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x14025d030]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [0x14025f3f0], 0
mov rbp, rdx
mov rbx, rcx
je 0x1401106a3
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r8, qword [0x14025f3e8]
mov rax, qword [rsp + 0x20]
cqo
idiv r8
mov rsi, rax
mov rax, qword [rsp + 0x20]
cqo
idiv r8
imul rax, rdx, 0xf4240
cqo
idiv r8
mov r14, rax
jmp 0x1401106c9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov esi, edx
imul edx, edx, 0x3e8
sub r8d, edx
imul r14d, r8d, 0x3e8
mov rcx, rbx
mov qword [rsp + 0x70], r15
call fcn.1400f47c0
mov rcx, rbp
mov rdi, rax
call fcn.1400f47c0
mov r8d, 1
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1401107d4
movabs rbp, 0x20c49ba5e353f6
movabs r15, 0x4189374bc6a7ec
cmp byte [0x14025f3f0], 0
je 0x14011074c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
cqo
idiv qword [0x14025f3e8]
mov r9, rax
imul rax, rdx, 0xf4240
cqo
idiv qword [0x14025f3e8]
mov rcx, rax
jmp 0x140110773
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
imul ecx, edx, 0x3e8
mov r9d, edx
sub r8d, ecx
imul ecx, r8d, 0x3e8
sub r9, rsi
lea rax, [r9 + rbp]
cmp rax, r15
ja 0x14011080f
sub ecx, r14d
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul rax, r9, 0x3e8
movsxd rcx, edx
add rcx, rax
js 0x14011080f
cmp rcx, 0x3e8
jg 0x14011080f
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140110712
test rdi, rdi
je 0x1401107e2
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x1401107f0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14013ea20
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
test rdi, rdi
je 0x14011081d
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x14011082b
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
jmp 0x1401107f2
Function at 0x14011d9b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x14025d030]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x18]
mov rdi, rcx
xor r9d, r9d
mov rbx, qword [rax + 0x610]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], Ordinal_133
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rbx + 0x144]
mov rdx, qword [rbx + 0x150]
add r8d, 4
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x138], 0
mov dword [rbx + 0x13c], eax
jne 0x14011da47
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xb8]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x138], eax
mov r8d, dword [rbx + 0x13c]
mov qword [rsp + 0xe8], rbp
mov qword [rsp + 0xf0], rsi
cmp r8d, 4
jge 0x14011daad
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400f1540
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0xf0]
mov rbp, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14013ea20
mov rbx, qword [rsp + 0xf8]
add rsp, 0xd0
pop rdi
ret
mov rdx, qword [rbx + 0x150]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x14011dae3.1
movsxd rax, ecx
lea r9, [0x140000000]
mov ecx, dword [r9 + rax*4 + 0x11dc04]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x14011dae3.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x14011dae3.4
lea eax, [r8 - 4]
mov rcx, rdi
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400e35a0
mov esi, eax
test eax, eax
je 0x14011db42
mov edx, 5
mov rcx, rbx
call fcn.14011d670
mov eax, esi
jmp 0x14011da7c
mov eax, dword [rbx + 0x13c]
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rax, qword [rdi + 0xf8]
mov qword [rdi + 0xaf8], rax
jmp case.0x14011dae3.4
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je case.0x14011dae3.4
sub rax, rsi
cmp rax, rbp
jae case.0x14011dae3.4
mov r8, rsi
lea rdx, str.TFTP_error:__s
mov rcx, rdi
call fcn.1400f1670
jmp case.0x14011dae3.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14011c3d0
test eax, eax
je case.0x14011dae3.4
jmp 0x14011da7c
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1402303c8]
call fcn.1400f1540
mov rcx, rdi
call fcn.1400fae20
test eax, eax
je 0x14011da7a
mov edx, 5
mov rcx, rbx
call fcn.14011d670
mov eax, Ordinal_46
jmp 0x14011da7c