joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140045080
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1410
call fcn.1401d8990
sub rsp, rax
mov rax, qword [0x14024b028]
xor rax, rsp
mov qword [rsp + 0x1400], rax
mov edi, edx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
movups xmm0, xmmword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]
movups xmmword [rsp + 0x13c0], xmm0
movups xmm1, xmmword [0x14022b888]
movups xmmword [rsp + 0x13d0], xmm1
movups xmm0, xmmword [0x14022b898]
movups xmmword [rsp + 0x13e0], xmm0
movsd xmm0, qword [0x14022b8a8]
movsd qword [rsp + 0x13f0], xmm0
mov eax, dword [0x14022b8b0]
mov dword [rsp + 0x13f8], eax
movzx eax, word [0x14022b8b4]
mov word [rsp + 0x13fc], ax
movzx eax, byte [0x14022b8b6]
mov byte [rsp + 0x13fe], al
mov qword [rcx], rbp
xorps xmm0, xmm0
movups xmmword [rcx + 8], xmm0
mov qword [rcx + 0x18], rbp
mov qword [rcx + 0x20], rbp
lea ecx, [rbp + 0x10]
call fcn.140075d20
mov qword [rax + 8], rbp
mov qword [rbx], rax
mov qword [rax], rbx
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], reloc.WS2_32.dll_ntohs
mov byte [rbx + 8], bpl
mov dword [rsp + 0x20], 1
call fcn.14007e080
mov dword [rsp + 0x13b4], 0xffffffff
mov dword [rsp + 0x34], eax
lea edx, [rbp + 1]
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x34], eax
inc rdx
cmp rdx, 0x270
jb 0x140045180
mov dword [rsp + 0x30], 0x270
test edi, edi
jle 0x14004522d
nop
lea rcx, [rsp + 0x30]
call fcn.14006d440
mov ecx, eax
imul rax, rcx, 0x3e
cmp eax, 3
ja 0x1400451da
lea rcx, [rsp + 0x30]
call fcn.14006d440
mov ecx, eax
imul rax, rcx, 0x3e
cmp eax, 4
jb 0x1400451c5
shr rax, 0x20
movsxd rcx, eax
movzx r9d, byte [rsp + rcx + 0x13c0]
mov rcx, qword [rbx + 0x18]
mov rdx, qword [rbx + 0x20]
cmp rcx, rdx
jae 0x140045218
lea rax, [rcx + 1]
mov qword [rbx + 0x18], rax
lea rax, [rbx + 8]
cmp rdx, 0x10
jb 0x14004520d
mov rax, qword [rbx + 8]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140045227
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.14005f800
sub rdi, 1
jne 0x1400451b0
mov rax, rbx
mov rcx, qword [rsp + 0x1400]
xor rcx, rsp
call fcn.1400753c0
lea r11, [rsp + 0x1410]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400560d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140056101
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x14005617b
mov rdi, r14
mov rcx, rbx
call fcn.14005abb0
test rax, rax
jle 0x140056153
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.14015bc10
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14005616b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x140056173
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140056115
sub r14, rdi
jmp 0x14005625f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140056192
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140056194
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400561c6
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14015bc10
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14005625c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140056201
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14005623d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14017c630
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14005625c
cmp rbp, rax
ja 0x140056210
test rbp, rbp
je 0x14005625c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14017c630
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14006d440
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14006d4a1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14006d460
mov ecx, dword [r9]
jmp 0x14006d588
cmp ecx, 0x4e0
jb 0x14006d588
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x14006d4c0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x14006d510
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
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
add rsp, 8
ret
Function at 0x1400aea40
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
lea rcx, [rsp + 0x20]
call fcn.1400aea30
mov dword [rsp + 0x28], eax
call fcn.14019a610
mov ecx, 8
imul rcx, rcx, 5
mov rax, qword [rax + rcx]
mov qword [rsp + 0x30], rax
mov r9d, dword [rsp + 0x28]
lea r8, [rsp + 0x20]
mov edx, Ordinal_35
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x20]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x30
je 0x1400aeabf
cmp dword [rsp + 0x24], 0x31
je 0x1400aeac6
cmp dword [rsp + 0x24], 0x32
je 0x1400aeacd
jmp 0x1400aead4
mov eax, 2
jmp 0x1400aead6
mov eax, 1
jmp 0x1400aead6
mov eax, 3
jmp 0x1400aead6
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x1400bd7c0
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 0x1400bd834
cmp dword [rsp + 0x34], 1
jne 0x1400bd834
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.WS2_32.dll_bind
call fcn.1401d88f0
add rsp, 0x70
pop rdi
ret

Function at 0x1400c3a10
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 0x1400c3a9b
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.1400e3020
movsx rax, al
mov rcx, qword [rsp + 0x28]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x1400c3a3d
xor edx, edx
mov rax, qword [rsp + 0x28]
mov ecx, 0x100
div rcx
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400df630
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.1400df490
mov r8d, eax
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x30]
call fcn.1401ab5f0
cdqe
add rsp, 0x20
pop rdi
ret

Function at 0x1400dfba0
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 [0x14024b028]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov eax, dword [rsp + 0x230]
and eax, 2
test eax, eax
je 0x1400dfc77
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 0x1400dfc1d
mov eax, 2
jmp 0x1400dfd2f
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 0x1400dfc67
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 0x1400dfc77
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x1400dfd2f
call fcn.1401423d0
mov dword [rsp + 0x1f8], eax
cmp dword [rsp + 0x1f8], 0
je 0x1400dfc99
mov eax, dword [rsp + 0x1f8]
jmp 0x1400dfd2f
lea rcx, str.iphlpapi.dll
call fcn.1400dfdd0
mov qword [0x140342078], rax
cmp qword [0x140342078], 0
je 0x1400dfcec
lea rdx, str.if_nametoindex
mov rcx, qword [0x140342078]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x200], rax
cmp qword [rsp + 0x200], 0
je 0x1400dfcec
mov rax, qword [rsp + 0x200]
mov qword [0x140342070], rax
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.140141f20
movzx eax, al
test eax, eax
je 0x1400dfd19
mov byte [0x140347f94], 1
jmp 0x1400dfd20
mov byte [0x140347f94], 0
lea rcx, [0x140347f98]
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.1401d88f0
mov rax, rdi
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1400753c0
add rsp, 0x220
pop rdi
ret
Function at 0x1400dfdd0
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 0x1400dfe0d
xor eax, eax
jmp 0x1400dffa9
lea rdx, str.LoadLibraryExA
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
lea rdx, [0x14024ca24]
mov rcx, qword [rsp + 0x70]
call fcn.1401a3a20
test rax, rax
je 0x1400dfe79
cmp qword [rsp + 0x28], 0
je 0x1400dfe5a
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x50], rax
jmp 0x1400dfe6a
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 0x1400dffa4
cmp qword [rsp + 0x28], 0
je 0x1400dfeb3
lea rdx, str.AddDllDirectory
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400dfeb3
mov r8d, 0x800
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x20], rax
jmp 0x1400dffa4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1400dffa4
mov rcx, qword [rsp + 0x70]
call fcn.140199be0
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.1401858d0]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1400dff99
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400dff99
mov rcx, qword [rsp + 0x48]
call fcn.140199be0
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
lea rdx, [0x14024ca48]
mov rcx, rax
call fcn.1401a3740
mov rcx, qword [rsp + 0x48]
call fcn.140199be0
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov rdx, qword [rsp + 0x70]
mov rcx, rax
call fcn.1401a3740
cmp qword [rsp + 0x28], 0
je 0x1400dff7f
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x58], rax
jmp 0x1400dff8f
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.14017bc50]
mov rax, qword [rsp + 0x20]
add rsp, 0x60
pop rdi
ret
Function at 0x1400e7ca0
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 0x1400e7d41
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.WS2_32.dll_bind
call fcn.1401d88f0
add rsp, 0xa0
pop rdi
ret
Function at 0x1400ee2d0
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 0x1400ee345
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1161]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x70f]
cmp eax, ecx
jle 0x1400ee35c
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 0x1400ee395
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x11e8]
test eax, eax
jne 0x1400ee395
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x60], 0x1a0
jne 0x1400ee395
mov rax, qword [rsp + 0x20]
mov byte [rax + 0xdd], 1
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x70f]
cmp eax, 0xa
jne 0x1400ee3c8
lea rdx, str.HTTP_1.0__assume_close_after_body
mov rcx, qword [rsp + 0x50]
call fcn.1400db800
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.1400dcc10
jmp 0x1400ee430
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x70f]
cmp eax, 0x14
je 0x1400ee3ef
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x7c], 2
jne 0x1400ee409
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x60], 0x65
jne 0x1400ee409
xor eax, eax
test eax, eax
jne 0x1400ee3ef
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x6d0]
mov dword [rax], 2
jmp 0x1400ee430
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x70f]
cmp eax, 0xb
jl 0x1400ee430
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x2ce]
test eax, eax
jne 0x1400ee430
xor eax, eax
test eax, eax
jne 0x1400ee42a
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x60], 0x64
jl 0x1400ee453
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x60], 0xc8
jge 0x1400ee453
mov dword [rsp + 0x28], 1
jmp 0x1400ee45b
mov dword [rsp + 0x28], 0
cmp dword [rsp + 0x28], 0
jne 0x1400ee46c
mov dword [rsp + 0x2c], 0
jmp 0x1400ee474
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 0x1400ee4c2
cmp dword [rsp + 0x30], 0x130
je 0x1400ee4a6
jmp 0x1400ee4e7
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x528]
test eax, eax
je 0x1400ee4c2
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 0x1400fa430
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 0x1400fa47a
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
jne 0x1400fa4bc
cmp qword [rsp + 0x90], 0
je 0x1400fa492
mov rax, qword [rsp + 0x90]
cmp dword [rax], 0
jne 0x1400fa4bc
cmp qword [rsp + 0x98], 0
je 0x1400fa4aa
mov rax, qword [rsp + 0x98]
cmp dword [rax], 0
jne 0x1400fa4bc
mov rcx, qword [rsp + 0xa0]
call fcn.1400fa3b0
jmp 0x1400fa58d
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x38]
call fcn.14014c5f0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x98], 0
je 0x1400fa4fa
mov rax, qword [rsp + 0x98]
cmp dword [rax], 0
je 0x1400fa4fa
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x50], rax
jmp 0x1400fa503
mov qword [rsp + 0x50], 0
cmp qword [rsp + 0x90], 0
je 0x1400fa52a
mov rax, qword [rsp + 0x90]
cmp dword [rax], 0
je 0x1400fa52a
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
jmp 0x1400fa533
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0x88], 0
je 0x1400fa55a
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
je 0x1400fa55a
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x60], rax
jmp 0x1400fa563
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.1401d88f0
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x140100b40
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 [0x14024b028]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x20], 0x3e8
lea rcx, [rsp + 0x78]
call fcn.1400c4aa0
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.1401db120
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0xf8]
call fcn.1401db120
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 0x140100c27
cmp qword [rsp + 0x58], 0
je 0x140100bfb
mov rcx, qword [rsp + 0x58]
call fcn.14017bc50
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x140100be0
cmp qword [rsp + 0x60], 0
je 0x140100c1c
mov rcx, qword [rsp + 0x60]
call fcn.14017bc50
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x140100c01
jmp 0x140100cea
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.1400c4aa0
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.1400c4bb0
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jl 0x140100c91
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + 0x68], rax
jle 0x140100cda
cmp qword [rsp + 0x58], 0
je 0x140100cac
mov rcx, qword [rsp + 0x58]
call fcn.14017bc50
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x140100c91
cmp qword [rsp + 0x60], 0
je 0x140100ccd
mov rcx, qword [rsp + 0x60]
call fcn.14017bc50
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x140100cb2
mov eax, 1
jmp 0x140100cec
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140100bc6
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401d88f0
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400753c0
add rsp, 0xd8
pop rdi
pop rsi
ret
Function at 0x140101f90
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.14018a2b0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140101feb
mov ecx, 0xffffffff
call fcn.1401020a0
cmp qword [rsp + 0x30], rax
jne 0x140101fef
xor eax, eax
jmp 0x140101ff4
mov rax, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret

Function at 0x1401023a0
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.14015c2b0
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 0x1401023e2
mov eax, 2
jmp 0x1401023e4
xor eax, eax
add rsp, 0x20
pop rdi
ret