joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140048978
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14031f010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400489e7
cmp byte [rcx + 0x71], 0
je 0x1400489e7
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x140048a3b
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x140048a01
sub eax, 1
je 0x140048a05
cmp eax, 2
jne 0x140048a3b
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005de20
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140048a32
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.1401389c0
cmp rdi, rax
jne 0x140048a3b
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400489e9
xor al, al
jmp 0x1400489e9

Function at 0x140059e84
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov rbx, rcx
mov esi, 0x7fffffff
mov ebp, 0x9908b0df
mov r9, qword [rbx]
mov r8d, dword [r9]
cmp r8d, 0x270
jne 0x140059ef4
lea r8, [r9 + 8]
mov r10d, 0x270
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
and edx, esi
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, ebp
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140059eb9
mov r8d, dword [r9]
jmp 0x140059fc2
cmp r8d, 0x4e0
jb 0x140059fc2
lea r10, [r9 + 0x9c4]
mov r11d, 0xe3
mov eax, dword [r10]
lea r8, [r10 + 4]
mov edx, dword [r8]
xor edx, eax
and edx, esi
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, ebp
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 - 0x9c0], ecx
lea r10, [r8]
sub r11, 1
jne 0x140059f11
lea r10, [r9 + 0xd50]
mov r11d, 0x18c
mov eax, dword [r10]
mov edx, eax
lea r8, [r10 + 4]
xor edx, dword [r8]
and edx, esi
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, ebp
xor ecx, dword [r10 - 0xd4c]
xor ecx, edx
mov dword [r10 - 0x9c0], ecx
lea r10, [r8]
sub r11, 1
jne 0x140059f56
mov edx, dword [r9 + 0x1380]
xor edx, dword [r9 + 4]
and edx, esi
xor edx, dword [r9 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, ebp
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
and dword [r9], 0
xor r8d, r8d
mov eax, r8d
mov edx, dword [r9 + rax*4 + 4]
mov ecx, edx
lea eax, [r8 + 1]
shr ecx, 0xb
mov dword [r9], eax
mov eax, dword [r9 + 0x1384]
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
cmp eax, dword [rbx + 0x10]
ja 0x140059ea0
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
ret
Function at 0x140079280
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x1400632b2
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140063295
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140063280
Function at 0x140090ec0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x30]
mov ecx, reloc.WS2_32.dll_recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x54], 4
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
mov r8d, 0x1008
mov edx, 0xffff
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140090f34
cmp dword [rsp + 0x34], 1
jne 0x140090f34
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WS2_32.dll_send]
mov rcx, rsp
lea rdx, reloc.XINPUT1_3.dll_Ordinal_2
call fcn.14019e3d0
add rsp, 0x70
pop rdi
ret

Function at 0x140097110
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x1505
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jae 0x14009719b
mov rax, qword [rsp + 0x28]
shl rax, 5
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax]
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
movzx ecx, byte [rsp + 0x30]
call fcn.1400b9780
movsx rax, al
mov rcx, qword [rsp + 0x28]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x14009713d
xor edx, edx
mov rax, qword [rsp + 0x28]
mov ecx, 0x100
div rcx
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400af1d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0xaa8]
test eax, eax
je 0x1400af2da
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x260], 0
je 0x1400af265
mov rcx, qword [rsp + 0x50]
call fcn.14008ee80
mov byte [rsp + 0x30], al
mov dl, 1
mov rcx, qword [rsp + 0x50]
call fcn.14008ee10
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x1d8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
call qword [rax + 0x260]
movzx edx, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.14008ee10
jmp 0x1400af2da
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x1400af284
cmp dword [rsp + 0x34], 1
je 0x1400af284
cmp dword [rsp + 0x34], 2
je 0x1400af284
jmp 0x1400af2da
movsxd rax, dword [rsp + 0x58]
imul rax, rax, 3
lea rcx, [0x1401ad870]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov r9, qword [rcx + 0x1d0]
mov r8d, 1
mov edx, 2
mov rcx, rax
call fcn.1401389c0
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x1d0]
mov r8d, 1
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.1401389c0
add rsp, 0x40
pop rdi
ret

Function at 0x1400b2d30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x20
mov rcx, qword [rsp + 0x40]
call fcn.1400b2b90
mov r8d, eax
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x30]
call fcn.140174c40
cdqe
add rsp, 0x20
pop rdi
ret
Function at 0x1400b32a0
Capabilities:
Initialize winsock library

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x220
lea rdi, [rsp + 0x30]
mov ecx, 0x7c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x230]
mov rax, qword [0x14031f010]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov eax, dword [rsp + 0x230]
and eax, 2
test eax, eax
je 0x1400b3377
mov eax, 0x202
mov word [rsp + 0x30], ax
lea rdx, [rsp + 0x50]
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x1f4], eax
cmp dword [rsp + 0x1f4], 0
je 0x1400b331d
mov eax, 2
jmp 0x1400b342f
movzx eax, word [rsp + 0x50]
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x30]
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
jne 0x1400b3367
movzx eax, word [rsp + 0x50]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x30]
shr rcx, 8
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
je 0x1400b3377
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x1400b342f
call fcn.140113df0
mov dword [rsp + 0x1f8], eax
cmp dword [rsp + 0x1f8], 0
je 0x1400b3399
mov eax, dword [rsp + 0x1f8]
jmp 0x1400b342f
lea rcx, str.iphlpapi.dll
call fcn.1400b34d0
mov qword [0x140335178], rax
cmp qword [0x140335178], 0
je 0x1400b33ec
lea rdx, str.if_nametoindex
mov rcx, qword [0x140335178]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x200], rax
cmp qword [rsp + 0x200], 0
je 0x1400b33ec
mov rax, qword [rsp + 0x200]
mov qword [0x140335170], rax
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.140113940
movzx eax, al
test eax, eax
je 0x1400b3419
mov byte [0x140339f3c], 1
jmp 0x1400b3420
mov byte [0x140339f3c], 0
lea rcx, [0x140339f40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.14019e3d0
mov rax, rdi
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.14005de20
add rsp, 0x220
pop rdi
ret
Function at 0x1400b34d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400b350d
xor eax, eax
jmp 0x1400b36a9
lea rdx, str.LoadLibraryExA
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
lea rdx, [0x140322c34]
mov rcx, qword [rsp + 0x70]
call fcn.14016de20
test rax, rax
je 0x1400b3579
cmp qword [rsp + 0x28], 0
je 0x1400b355a
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x50], rax
jmp 0x1400b356a
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
jmp 0x1400b36a4
cmp qword [rsp + 0x28], 0
je 0x1400b35b3
lea rdx, str.AddDllDirectory
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400b35b3
mov r8d, 0x800
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x20], rax
jmp 0x1400b36a4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1400b36a4
mov rcx, qword [rsp + 0x70]
call fcn.14016d750
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x38]
inc eax
mov eax, eax
add rax, qword [rsp + 0x40]
mov rcx, rax
call qword [fcn.14014f3a0]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1400b3699
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400b3699
mov rcx, qword [rsp + 0x48]
call fcn.14016d750
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
lea rdx, [0x140322c58]
mov rcx, rax
call fcn.14016db40
mov rcx, qword [rsp + 0x48]
call fcn.14016d750
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov rdx, qword [rsp + 0x70]
mov rcx, rax
call fcn.14016db40
cmp qword [rsp + 0x28], 0
je 0x1400b367f
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x58], rax
jmp 0x1400b368f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x48]
call qword [fcn.140145500]
mov rax, qword [rsp + 0x20]
add rsp, 0x60
pop rdi
ret
Function at 0x1400be400
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
lea rdi, [rsp + 0x50]
mov ecx, reloc.WS2_32.dll_sendto
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x84]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4004747b
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1400be4a1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x64]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, rsp
lea rdx, reloc.XINPUT1_3.dll_Ordinal_2
call fcn.14019e3d0
add rsp, 0xa0
pop rdi
ret
Function at 0x1400c4a30
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
add rax, 0xe8
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x60]
mov dword [rax + 0x1350], ecx
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x70f]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x1358], eax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1161]
test eax, eax
je 0x1400c4aa5
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1161]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x70f]
cmp eax, ecx
jle 0x1400c4abc
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x70f]
mov byte [rax + 0x1161], cl
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1170], 0
je 0x1400c4af5
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x11e8]
test eax, eax
jne 0x1400c4af5
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x60], 0x1a0
jne 0x1400c4af5
mov rax, qword [rsp + 0x20]
mov byte [rax + 0xdd], 1
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x70f]
cmp eax, 0xa
jne 0x1400c4b28
lea rdx, str.HTTP_1.0__assume_close_after_body
mov rcx, qword [rsp + 0x50]
call fcn.1400aef00
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.1400b0310
jmp 0x1400c4b90
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x70f]
cmp eax, 0x14
je 0x1400c4b4f
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x7c], 2
jne 0x1400c4b69
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x60], 0x65
jne 0x1400c4b69
xor eax, eax
test eax, eax
jne 0x1400c4b4f
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x6d0]
mov dword [rax], 2
jmp 0x1400c4b90
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x70f]
cmp eax, 0xb
jl 0x1400c4b90
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x2ce]
test eax, eax
jne 0x1400c4b90
xor eax, eax
test eax, eax
jne 0x1400c4b8a
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x60], 0x64
jl 0x1400c4bb3
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x60], 0xc8
jge 0x1400c4bb3
mov dword [rsp + 0x28], 1
jmp 0x1400c4bbb
mov dword [rsp + 0x28], 0
cmp dword [rsp + 0x28], 0
jne 0x1400c4bcc
mov dword [rsp + 0x2c], 0
jmp 0x1400c4bd4
mov dword [rsp + 0x2c], 1
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x2c]
mov byte [rax + 0xde], cl
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x60]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xcc
je 0x1400c4c22
cmp dword [rsp + 0x30], 0x130
je 0x1400c4c06
jmp 0x1400c4c47
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x528]
test eax, eax
je 0x1400c4c22
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x1434], 1
mov rax, qword [rsp + 0x20]
mov qword [rax], 0
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x20]
mov byte [rax + 0xde], 1
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x1400d0b90
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x30]
mov ecx, reloc.WS2_32.dll_recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
cmp qword [rsp + 0x88], 0
je 0x1400d0bda
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
jne 0x1400d0c1c
cmp qword [rsp + 0x90], 0
je 0x1400d0bf2
mov rax, qword [rsp + 0x90]
cmp dword [rax], 0
jne 0x1400d0c1c
cmp qword [rsp + 0x98], 0
je 0x1400d0c0a
mov rax, qword [rsp + 0x98]
cmp dword [rax], 0
jne 0x1400d0c1c
mov rcx, qword [rsp + 0xa0]
call fcn.1400d0b10
jmp 0x1400d0ced
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x38]
call fcn.14011e010
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x98], 0
je 0x1400d0c5a
mov rax, qword [rsp + 0x98]
cmp dword [rax], 0
je 0x1400d0c5a
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x50], rax
jmp 0x1400d0c63
mov qword [rsp + 0x50], 0
cmp qword [rsp + 0x90], 0
je 0x1400d0c8a
mov rax, qword [rsp + 0x90]
cmp dword [rax], 0
je 0x1400d0c8a
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
jmp 0x1400d0c93
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0x88], 0
je 0x1400d0cba
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
je 0x1400d0cba
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x60], rax
jmp 0x1400d0cc3
mov qword [rsp + 0x60], 0
mov eax, dword [rsp + 0x80]
inc eax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.14019e3d0
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x1400d2560
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xd8
lea rdi, [rsp + 0x20]
mov ecx, reloc.WLDAP32.dll_Ordinal_46
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x14031f010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x20], 0x3e8
lea rcx, [rsp + 0x78]
call fcn.1400981a0
lea rcx, [rsp + 0x38]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0xf0]
call fcn.1401a0b80
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0xf8]
call fcn.1401a0b80
mov qword [rsp + 0x60], rax
mov r8d, 1
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x1400d2647
cmp qword [rsp + 0x58], 0
je 0x1400d261b
mov rcx, qword [rsp + 0x58]
call fcn.140145500
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x1400d2600
cmp qword [rsp + 0x60], 0
je 0x1400d263c
mov rcx, qword [rsp + 0x60]
call fcn.140145500
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x1400d2621
jmp 0x1400d270a
lea rax, [rsp + 0xb0]
lea rcx, [rsp + 0x38]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x88]
call fcn.1400981a0
lea rcx, [rsp + 0xa0]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xa0]
call fcn.1400982b0
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jl 0x1400d26b1
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + 0x68], rax
jle 0x1400d26fa
cmp qword [rsp + 0x58], 0
je 0x1400d26cc
mov rcx, qword [rsp + 0x58]
call fcn.140145500
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x1400d26b1
cmp qword [rsp + 0x60], 0
je 0x1400d26ed
mov rcx, qword [rsp + 0x60]
call fcn.140145500
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x1400d26d2
mov eax, 1
jmp 0x1400d270c
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400d25e6
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.14019e3d0
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14005de20
add rsp, 0xd8
pop rdi
pop rsi
ret
Function at 0x1400d39b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
xor edx, edx
xor ecx, ecx
call fcn.140152400
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400d3a0b
mov ecx, 0xffffffff
call fcn.1400d3ac0
cmp qword [rsp + 0x30], rax
jne 0x1400d3a0f
xor eax, eax
jmp 0x1400d3a14
mov rax, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret

Function at 0x1400d3dc0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov r8, qword [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.14012dfc0
mov r9d, 2
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x1400d3e02
mov eax, 2
jmp 0x1400d3e04
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1400d9ad0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x30]
mov ecx, Ordinal_41
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x94], 4
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0xb4], eax
mov r8, qword [rsp + 0xf8]
xor edx, edx
mov rcx, qword [rsp + 0xf0]
call fcn.14012dfc0
mov dword [rsp + 0x20], 0xf0000040
mov r9d, dword [rsp + 0x100]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1400d9b78
jmp 0x1400d9c62
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x108]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1400d9ba3
jmp 0x1400d9c3a
xor r9d, r9d
mov r8d, dword [rsp + 0xe8]
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1400d9bc7
jmp 0x1400d9c3a
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x94]
lea r8, [rsp + 0x74]
mov edx, 4
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1400d9bf2
jmp 0x1400d9c3a
mov eax, dword [rsp + 0x74]
cmp qword [rsp + 0xf8], rax
jae 0x1400d9c02
jmp 0x1400d9c3a
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xb4]
mov r8, qword [rsp + 0xf0]
mov edx, 2
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400d9c30
jmp 0x1400d9c3a
xor eax, eax
test eax, eax
jne 0x1400d9b78
cmp qword [rsp + 0x58], 0
je 0x1400d9c4d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp qword [rsp + 0x38], 0
je 0x1400d9c62
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_getpeername
call fcn.14019e3d0
add rsp, 0xd0
pop rdi
ret