joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401fe1c7
Capabilities:
Hash data using sha256

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
movups xmm0, xmmword [0x1404b8a60]
movups xmmword [rcx + 0x30], xmm0
movups xmm0, xmmword [0x1404b8a50]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [0x1404b8a40]
movups xmmword [rcx + 0x10], xmm0
movups xmm0, xmmword [0x1404b8a30]
movups xmmword [rcx], xmm0
mov rax, qword [0x14051f0c8]
test rax, rax
jne 0x1401fe23b
mov ecx, 1
xor eax, eax
lock cmpxchg qword [0x14051f0c8], rcx
jne 0x1401fe23b
call fcn.1402df230
mov byte [0x14051f0d0], 1
mov eax, 2
xchg qword [0x14051f0c8], rax
jmp 0x1401fe247
pause
mov rax, qword [0x14051f0c8]
cmp rax, 1
je 0x1401fe232
cmp rax, 2
jne 0x1401fe260
mov qword [rsi + 0x40], 0
lea rax, [0x1404b8a30]
mov qword [rsi + 0x48], rax
add rsp, 0x20
pop rsi
ret
test rax, rax
jne 0x1401fe27a
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, [0x1404b8808]
mov edx, 0x28
jmp 0x1401fe28d
lea rcx, [0x1404b8789]
lea r8, [0x1404b87f0]
mov edx, 0x11
call fcn.1403af950
ud2
Function at 0x1401fff43
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x148
movaps xmmword [rsp + 0x130], xmm6
mov rdi, r9
test dil, 0xf
je 0x1401fff74
mov qword [rcx + 8], 0
jmp 0x140200178
mov rsi, r8
mov rbx, rdx
mov qword [rsp + 0x50], rcx
mov rcx, rdi
xor edx, edx
call fcn.14027db2d
mov qword [rsp + 0x48], rax
mov rbp, rdx
mov rcx, rdx
mov rdx, rsi
mov r8, rdi
call fcn.1403abad0
mov r12d, edi
shr r12d, 4
and r12d, 7
mov rsi, rdi
and rsi, 0xffffffffffffff80
mov qword [rsp + 0x28], rbp
add rsi, rbp
lea rbp, [rsp + 0xb0]
mov rcx, rbp
call fcn.14000327f
lea rdx, [rbx + 0x3c0]
mov rcx, rbp
mov qword [rsp + 0x40], rdx
call fcn.1402818c4
mov qword [rsp + 0x58], rdi
cmp rdi, 0x80
jb 0x1402000a0
lea r15, [rsp + 0x70]
mov r13, qword [rsp + 0x28]
mov r8d, 0x70
lea rcx, [rsp + 0xc0]
mov rdx, r13
call fcn.1403abad0
lea rdx, [r13 + 0x70]
mov rcx, r15
call fcn.1402818c4
mov r14d, 8
mov rdx, r13
cmp r14, 4
mov ebp, 4
cmovb rbp, r14
mov rdi, rbp
shl rdi, 4
add rdi, rdx
mov rcx, rbx
mov r8, rbp
call fcn.14002e15d
mov rdx, rdi
sub r14, rbp
jne 0x140200024
lea rbp, [r13 + 0x80]
lea rcx, [rsp + 0xb0]
xor edx, edx
inc rdx
xor edi, edi
mov al, byte [rcx + rdi]
xor byte [r13 + rdi], al
lea rax, [rdi + 1]
mov rdi, rax
cmp rax, 0x10
jne 0x140200064
add rcx, 0x10
add r13, 0x10
cmp rdx, 8
jne 0x14020005f
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0xb0], xmm0
mov r13, rbp
cmp rbp, rsi
jne 0x1401ffff9
lea rdi, [rsp + 0x70]
lea rdx, [rsp + 0xb0]
mov rcx, rdi
call fcn.1402818c4
movups xmm0, xmmword [rdi]
mov r15, qword [rsp + 0x40]
movups xmmword [r15], xmm0
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.1402818c4
test r12, r12
je 0x140200150
shl r12, 4
add r12, rsi
lea r14, [rsp + 0x60]
xorps xmm6, xmm6
lea rdi, [rsp + 0x70]
mov rcx, r14
mov rdx, rsi
call fcn.1402818c4
xor eax, eax
movups xmmword [rsp + rax + 0x70], xmm6
add rax, 0x10
cmp rax, 0x40
jne 0x1402000f4
lea rbp, [rsi + 0x10]
movups xmm0, xmmword [rsi]
movaps xmmword [rsp + 0x70], xmm0
mov r8d, 4
mov rcx, rbx
mov rdx, rdi
call fcn.14002e15d
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [rsi], xmm0
xor eax, eax
mov cl, byte [rsp + rax + 0x30]
xor byte [rsi + rax], cl
lea rcx, [rax + 1]
mov rax, rcx
cmp rcx, 0x10
jne 0x14020012a
movups xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x30], xmm0
mov rsi, rbp
cmp rbp, r12
jne 0x1402000e7
movaps xmm0, xmmword [rsp + 0x30]
movups xmmword [r15], xmm0
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x48]
mov qword [rcx], rax
mov rax, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x58]
mov qword [rcx + 0x10], rax
movaps xmm6, xmmword [rsp + 0x130]
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14021cd02
Capabilities:
Get token membership

Disassembly:
push rsi
sub rsp, 0x70
xor eax, eax
lea rcx, [rsp + 0x68]
mov dword [rcx], eax
mov word [rcx + 4], 0x500
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x50], rdx
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dl, 2
mov r8d, 0x20
mov r9d, 0x220
call qword [sym.imp.advapi32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14021cd59
mov byte [rsp + 0x5f], 1
mov al, 1
jmp 0x14021cd96
call sub.KERNEL32.DLL_GetLastError
lea r8, [rsp + 0x5f]
mov byte [r8], 0
mov rsi, qword [rsp + 0x60]
xor ecx, ecx
mov rdx, rsi
call qword [sym.imp.advapi32.dll_CheckTokenMembership]
test eax, eax
jne 0x14021cd85
call sub.KERNEL32.DLL_GetLastError
mov byte [rsp + 0x5f], 0
mov rcx, rsi
call qword [sym.imp.advapi32.dll_FreeSid]
cmp byte [rsp + 0x5f], 0
setne al
add rsp, 0x70
pop rsi
ret
Function at 0x140223d9b
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret

Function at 0x14022e430
Capabilities:
Encode data using xor

Disassembly:
cmp rdx, 0x20
jae 0x14022e43b
jmp fcn.140061a40
jmp fcn.140058900
Function at 0x14022e720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rdi, qword [rcx]
test rdi, rdi
je 0x14022e772
mov r11, qword [rsi + 8]
mov r9, qword [rsi + 0x10]
cmp r9, r11
jae 0x14022e772
movzx eax, byte [rdi + r9]
cmp eax, 0x49
je 0x14022e78d
cmp eax, 0x42
jne 0x14022e772
lea rcx, [r9 + 1]
mov qword [rsi + 0x10], rcx
cmp rcx, r11
jae 0x14022e7ca
cmp byte [rdi + rcx], 0x5f
jne 0x14022e7ca
lea rax, [r9 + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14022e8c2
mov rcx, rsi
xor edx, edx
call fcn.14022a310
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc r9
mov qword [rsi + 0x10], r9
mov rcx, rsi
xor edx, edx
call fcn.14022a310
test al, al
jne 0x14022e7c5
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14022e83c
lea rdx, [0x1404bc8ba]
mov r8d, 1
call fcn.140059d90
test al, al
je 0x14022e83c
mov dil, 2
jmp 0x14022e781
xor eax, eax
mov r10d, 0x3e
nop word cs:[rax + rax]
mov r8b, 1
cmp rcx, r11
jae 0x14022e91c
movzx edx, byte [rdi + rcx]
cmp dl, 0x5f
je 0x14022e8b6
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14022e81f
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14022e80e
add dl, 0xa9
jmp 0x14022e81d
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14022e91c
add dl, 0xe3
mov ebx, edx
inc rcx
mov qword [rsi + 0x10], rcx
mul r10
jo 0x14022e91c
movzx edx, bl
add rax, rdx
jae 0x14022e7e0
jmp 0x14022e91c
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14022e781
xor ebx, ebx
lea r14, [0x1404bcc96]
nop word cs:[rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14022e874
cmp byte [rax + rcx], 0x45
je 0x14022e974
sub rbx, 1
jb 0x14022e899
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14022e899
mov r8d, 2
mov rdx, r14
call fcn.140059d90
test al, al
jne 0x14022e7c5
mov rcx, rsi
call fcn.14022e980
test al, al
jne 0x14022e7c5
mov rax, qword [rsi]
test rax, rax
jne 0x14022e860
jmp 0x14022e781
inc rcx
mov qword [rsi + 0x10], rcx
inc rax
je 0x14022e91c
cmp rax, r9
jae 0x14022e919
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14022e96d
cmp qword [rsi + 0x20], 0
je 0x14022e966
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.14022e720
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14022e783
mov r8b, 1
xor ebx, ebx
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14022e95c
lea rax, [0x1404bcc61]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.140059d90
mov dil, 2
test al, al
jne 0x14022e781
mov qword [rsi], 0
mov byte [rsi + 8], bl
xor edi, edi
jmp 0x14022e781
mov bl, 1
xor r8d, r8d
jmp 0x14022e91e
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14022e781
Function at 0x140231144
Capabilities:
Get remote cert context via schannel

Disassembly:
sub rsp, 0x28
lea r8, [rsp + 0x20]
mov qword [r8], 0
mov edx, 0x53
call qword [sym.imp.secur32.dll_QueryContextAttributesW]
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x140231171
mov rdx, qword [rsp + 0x20]
jmp 0x140231179
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret

Function at 0x14023164b
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x60], 4
mov dword [rsp + 0xa8], 0x400010
mov rax, qword [rcx + 8]
test rax, rax
je 0x1402316ac
mov edx, dword [rcx + 0x10]
mov dword [rsp + 0x88], edx
mov qword [rsp + 0x90], rax
mov rax, qword [rcx + 0x20]
test rax, rax
je 0x1402316e4
mov rdx, qword [rcx + 0x28]
test rdx, rdx
je 0x1402316db
xor edi, edi
lea r8, [0x1404f14c8]
xor ebx, ebx
movzx esi, byte [rax + rdi]
or ebx, dword [r8 + rsi*4]
inc rdi
cmp rdx, rdi
jne 0x1402316c9
jmp 0x1402316dd
xor ebx, ebx
mov dword [rsp + 0x98], ebx
mov r14, qword [rcx + 0x40]
test r14, r14
je 0x140231728
xor r15d, r15d
mov rax, r14
shr rax, 0x3c
sete al
jne 0x14023180c
mov rbx, qword [rcx + 0x38]
lea rdi, [r14*8]
mov r15b, al
shl r15, 3
test rdi, rdi
je 0x140231731
mov rcx, rdi
mov rdx, r15
call fcn.14002c720
mov rsi, rax
jmp 0x140231734
xor eax, eax
mov esi, 8
jmp 0x140231750
mov rsi, r15
test rsi, rsi
je 0x140231813
xor eax, eax
mov rcx, qword [rbx + rax*8]
mov qword [rsi + rax*8], rcx
inc rax
add rdi, 0xfffffffffffffff8
jne 0x14023173f
lea rcx, [rsp + 0x60]
mov dword [rcx + 4], eax
mov qword [rcx + 8], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x40], 0
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.secur32.dll_AcquireCredentialsHandleA]
test eax, eax
je 0x1402317a9
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov ebx, 1
jmp 0x1402317e0
mov rbx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x58]
mov ecx, 0x20
mov edx, 8
call fcn.14002c720
test rax, rax
je 0x14023181b
mov rdi, rax
mov eax, 1
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], r15
xor ebx, ebx
test r14, r14
je 0x1402317f7
mov rcx, qword [0x14051f200]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov rax, rbx
mov rdx, rdi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400535c0
ud2
mov rcx, rdi
mov rdx, r15
jmp 0x140231825
mov ecx, 0x20
mov edx, 8
call fcn.1403af440
ud2
Function at 0x14023b349
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov eax, edx
lea r9, [rsp + 0x34]
mov dword [r9], r8d
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, eax
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14023b376
xor eax, eax
jmp 0x14023b383
call sub.KERNEL32.DLL_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x14023b388
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x28
mov r8d, dword [rdx + 0x80]
call qword [sym.imp.ws2_32.dll_connect]
test eax, eax
je 0x14023b3ac
call sub.KERNEL32.DLL_GetLastError
shl rax, 0x20
or rax, 2
jmp 0x14023b3ae
xor eax, eax
add rsp, 0x28
ret

Function at 0x140241320
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
movzx ebx, byte [rdx + 0x38]
xor r15d, r15d
cmp bl, 1
setne dl
mov eax, 0
sbb eax, eax
mov r14, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140241353
test ecx, ecx
jne 0x1402413a2
movzx r15d, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140241360
test ecx, ecx
jne 0x1402413a2
mov rcx, rdi
call fcn.140241200
movzx r10d, al
test bl, bl
jne 0x1402413a9
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x140241396.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x14024151c]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x140241396.2
xor r10d, r10d
test bl, bl
je 0x140241370
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x1402414fe
mov r11, qword [rdi]
lea r9, [r11 + rcx]
movzx r8d, byte [rdi + 0x10]
cmp rdx, rcx
jne 0x1402413db
xor edi, edi
jmp 0x140241458
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x140241420
nop word cs:[rax + rax]
cmp byte [rax], 0x5c
je 0x14024143b
inc rsi
dec rax
cmp rsi, 1
jne 0x140241400
jmp 0x140241458
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x14024143b
cmp ebx, 0x5c
je 0x14024143b
inc rsi
dec rax
cmp rsi, 1
jne 0x140241420
jmp 0x140241458
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x14024150c
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x140241482
mov al, 9
cmp rdx, 2
je 0x140241486
cmp rdx, 1
jne 0x140241496
cmp byte [r9], 0x2e
jne 0x140241496
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140241496
mov al, 0xa
jmp 0x140241496
cmp byte [r9], 0x2e
jne 0x140241496
cmp byte [r9 + 1], 0x2e
sete al
xor al, 9
add rdi, rdx
mov qword [r14], rdi
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], rdx
mov byte [r14 + 0x18], al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 8
jmp case.0x140241396.2
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 2
jmp case.0x140241396.2
mov esi, 2
jmp case.0x140241396.2
lea r8, str.library_std_srcpath.rs
call fcn.1403af930
ud2
lea r8, str.library_std_srcpath.rs
call fcn.1403af930
ud2
Function at 0x1402461a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4f0
mov rbx, rdx
mov rsi, rcx
mov eax, dword [rdx + 0x10]
movzx ebp, word [rdx + 0x40]
movzx r15d, word [rdx + 0x42]
movzx r12d, word [rdx + 0x44]
mov dword [rdx + 0x10], 0
cmp eax, 1
jne 0x1402461fd
mov r14, qword [rbx + 8]
cmp bp, 0x2e
jne 0x1402462fe
test r15w, r15w
je 0x1402461fd
cmp r15w, 0x2e
jne 0x1402462fe
test r12w, r12w
jne 0x1402462fe
lea r14, [rsp + 0x80]
mov r8d, 0x250
mov rcx, r14
xor edx, edx
call fcn.1403ac180
mov rdi, qword [rbx]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
je 0x1402462e4
mov r14, qword [rbx + 8]
lea rbx, [rsp + 0x80]
mov rbp, qword [sym.imp.KERNEL32.DLL_FindNextFileW]
jmp 0x140246260
mov rcx, rdi
mov rdx, rbx
call rbp
test eax, eax
je 0x1402462e4
cmp word [rsp + 0xac], 0x2e
jne 0x140246289
movzx eax, word [rsp + 0xae]
test ax, ax
je 0x140246250
cmp ax, 0x2e
jne 0x140246289
cmp word [rsp + 0xb0], 0
je 0x140246250
lock inc qword [r14]
jle 0x1402463e9
mov rdi, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x40], eax
movzx ebp, word [rsp + 0xac]
movzx r15d, word [rsp + 0xae]
movzx r12d, word [rsp + 0xb0]
lea rdx, [rsp + 0xb2]
jmp 0x140246329
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x12
jne 0x140246375
mov qword [rsi], 0
jmp 0x1402463d7
lock inc qword [r14]
jle 0x1402463e9
lea rdx, [rbx + 0x46]
mov rdi, qword [rbx + 0x14]
mov eax, dword [rbx + 0x3c]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rbx + 0x2c]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rbx + 0x1c]
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x2d2]
mov r8d, 0x21e
call fcn.1403abad0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x70], eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x2d2]
mov r8d, 0x21e
call fcn.1403abad0
jmp 0x140246387
call sub.KERNEL32.DLL_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
xor r14d, r14d
mov qword [rsi + 8], rdi
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x20], xmm1
mov eax, dword [rsp + 0x70]
mov dword [rsi + 0x30], eax
mov word [rsi + 0x34], bp
mov word [rsi + 0x36], r15w
mov word [rsi + 0x38], r12w
lea rcx, [rsi + 0x3a]
lea rdx, [rsp + 0x80]
mov r8d, 0x21e
call fcn.1403abad0
mov qword [rsi + 0x258], r14
mov qword [rsi], 1
add rsp, 0x4f0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2
Function at 0x140247450
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
test cl, cl
je 0x14024746d
mov rcx, rdx
mov rdx, r8
add rsp, 0x40
pop rbx
pop rdi
pop rsi
jmp fcn.1402474e0
lea rcx, [rsp + 0x28]
call fcn.140245580
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x1402474b6
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x1402474c1
xor ebx, ebx
test rdi, rdi
mov edi, 0
je 0x1402474b6
mov rcx, qword [0x14051f200]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov rdi, rbx
mov rax, rdi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
mov rdi, rbx
jne 0x1402474a1
jmp 0x1402474b6

Function at 0x14024c9e0
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1e8
mov rsi, rcx
mov rdi, qword [rdx]
mov rbx, qword [rdx + 8]
movzx ebp, word [rdx + 0x10]
mov rax, qword [0x14051f208]
cmp rax, 3
jne 0x14024cb08
cmp rbx, 0x17f
ja 0x14024cb1a
lea rcx, [rsp + 0x68]
mov rdx, rdi
mov r8, rbx
call fcn.1403abad0
mov byte [rsp + rbx + 0x68], 0
lea r8, [rbx + 1]
cmp rbx, 0xe
ja 0x14024ca59
lea rcx, [rbx + 1]
xor eax, eax
xor edx, edx
nop
cmp byte [rsp + rdx + 0x68], 0
je 0x14024ca6c
inc rdx
cmp rcx, rdx
jne 0x14024ca40
mov rdx, r8
test rax, rax
jne 0x14024ca76
jmp 0x14024cad2
lea rdx, [rsp + 0x68]
xor ecx, ecx
call fcn.14005ebe0
test rax, rax
jne 0x14024ca76
jmp 0x14024cad2
mov eax, 1
test rax, rax
je 0x14024cad2
cmp rdx, rbx
jne 0x14024cad2
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x68]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x14024cae6
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x14024caf9
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14024cafc
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
add rsp, 0x1e8
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.1403b9df0
cmp rbx, 0x17f
jbe 0x14024ca17
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
mov r9d, ebp
add rsp, 0x1e8
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.1403b9e50
Function at 0x14024d5e0
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, r8d
mov rsi, rcx
test dx, dx
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14024d631
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14024d6a2
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x14024d645
cmp eax, 0x2739
jne 0x14024d68f
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14024d689
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.DLL_SetHandleInformation]
test eax, eax
je 0x14024d6aa
mov qword [rsi + 8], rdi
jmp 0x14024d628
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.DLL_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.ws2_32.dll_closesocket]
Function at 0x140254e50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov r14, rcx
lea rcx, [rbp - 0x30]
call fcn.140245580
mov rdi, qword [rbp - 0x28]
test rdi, rdi
je 0x140254ea3
mov rbx, qword [rbp - 0x30]
mov rsi, qword [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140254f1c
mov qword [r14], rbx
mov qword [r14 + 8], rdi
mov qword [r14 + 0x10], rsi
jmp 0x140254f11
mov rdx, qword [rbp - 0x30]
mov eax, edx
and eax, 3
cmp eax, 1
jne 0x140254f09
lea rax, [rdx - 1]
mov qword [rbp - 0x18], rax
mov rcx, qword [rdx - 1]
mov qword [rbp - 0x10], rdx
mov rax, qword [rdx + 7]
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 7]
cmp qword [rax + 8], 0
mov rsi, qword [rbp - 0x18]
je 0x140254ef7
mov r8, qword [rsi]
cmp qword [rax + 0x10], 0x11
jb 0x140254ee8
mov r8, qword [r8 - 8]
mov rcx, qword [0x14051f200]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov rcx, qword [0x14051f200]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov qword [r14 + 8], 0
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [r14 + 8], 0
test rbx, rbx
je 0x140254f11
mov rcx, qword [0x14051f200]
xor edx, edx
mov r8, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp qword [sym.imp.KERNEL32.DLL_HeapFree]
Function at 0x140257270
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], r8
mov ecx, 0x10
mov edx, 8
call fcn.14002c720
mov rsi, rax
test rax, rax
je 0x140257357
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140257710]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140257349
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov qword [rbp - 0x10], rsi
call qword [rax]
mov rsi, qword [rbp - 0x10]
mov rax, qword [rsi + 8]
cmp qword [rax + 8], 0
je 0x140257323
mov r8, qword [rsi]
cmp qword [rax + 0x10], 0x11
jb 0x140257314
mov r8, qword [r8 - 8]
mov rcx, qword [0x14051f200]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov rcx, qword [0x14051f200]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.DLL_HeapFree]
call sub.KERNEL32.DLL_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], rsi
mov ecx, 0x10
mov edx, 8
call fcn.1403af440
ud2