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

Disassembly:
jmp 0x14001c350
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140034040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x14003d108]
call fcn.140011b04
nop
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x14001c3b7
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001c3be
mov al, 1
jmp 0x14001c50e
call fcn.14001132a
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.14001132a
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.1400118c0
movzx eax, al
test eax, eax
je 0x14001c40f
xor al, al
jmp 0x14001c50e
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x14001c474
cmp dword [rbp + 0x154], 1
je 0x14001c47f
cmp dword [rbp + 0x154], 3
je 0x14001c4fd
jmp 0x14001c50c
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001c4cf
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001c4cf
xor al, al
jmp 0x14001c50e
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001c4ea
mov dword [rbp + 0x154], 1
jmp 0x14001c4f4
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14001c50e
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001c50e
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14002d340]
call fcn.140011924
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.14001155f
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x140021d70
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011b5e
movzx eax, al
test eax, eax
jne 0x140021d90
mov ecx, 7
call fcn.140011942
nop
mov byte [rsp + 0x20], 0
call fcn.140011983
mov byte [rsp + 0x21], al
cmp dword [0x140034740], 1
jne 0x140021db4
mov ecx, 7
call fcn.140011942
nop
jmp 0x140021e0c
cmp dword [0x140034740], 0
jne 0x140021e07
mov dword [0x140034740], 1
lea rdx, [0x14002b770]
lea rcx, [0x14002b440]
call fcn.140011532
test eax, eax
je 0x140021de8
mov eax, 0xff
jmp 0x140021f11
lea rdx, [0x14002b330]
lea rcx, [section..rdata]
call fcn.14001196a
mov dword [0x140034740], 2
jmp 0x140021e0c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011910
call fcn.1400117ee
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140021e69
mov rcx, qword [rsp + 0x30]
call fcn.140011438
movzx eax, al
test eax, eax
je 0x140021e69
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14003e020]
nop
call fcn.14001187f
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140021e9d
mov rcx, qword [rsp + 0x38]
call fcn.140011438
movzx eax, al
test eax, eax
je 0x140021e9d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011abe
nop
call fcn.140021fc0
mov dword [rsp + 0x28], eax
call fcn.1400117b7
movzx eax, al
test eax, eax
jne 0x140021ebc
mov ecx, dword [rsp + 0x28]
call fcn.1400110cd
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140021ecb
call fcn.140011ad2
nop
xor edx, edx
mov cl, 1
call fcn.1400113fc
mov eax, dword [rsp + 0x28]
jmp 0x140021f11
add rsp, 0x68
ret
Function at 0x2fc4c51b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4c6270
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4c5bb2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ea108]
test eax, eax
je 0x2fc4c5c4a
lea rax, [0x2fc4ea0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ea110]
mov qword [rbp - 8], rax
jmp 0x2fc4c5c2e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c5c22
cmp qword [rbp - 0x10], 0
je 0x2fc4c5c22
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c5be8
lea rax, [0x2fc4ea0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c5c4b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c5d50
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c5d78
mov eax, 0
jmp 0x2fc4c5dc6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c5da1
mov eax, 0
jmp 0x2fc4c5dc6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c5dc1
mov eax, 0
jmp 0x2fc4c5dc6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c5dcc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4c5e4a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c5e41
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4c5e41
mov rax, qword [rbp - 8]
jmp 0x2fc4c5e5f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4c5e14
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140005aa1
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
movzx eax, byte [rdx + 0x60]
test eax, eax
je 0x140005af4
cmp eax, 3
jne 0x140005dce
lea r14, [rsi + 0x20]
lea r12, [rsi + 0x58]
movzx eax, byte [rsi + 0x58]
test eax, eax
je 0x140005c2d
cmp eax, 3
jne 0x140005dce
mov rax, qword [rsi + 0x50]
jmp 0x140005c72
movzx r15d, word [rsi]
movzx eax, word [rsi + 0x12]
mov word [rsp + 0x60], ax
movups xmm0, xmmword [rsi + 2]
movaps xmmword [rsp + 0x50], xmm0
mov r12d, dword [rsi + 0x14]
mov eax, dword [rsi + 0x18]
mov dword [rsp + 0x2c], eax
movzx r13d, word [rsi + 0x1c]
test r15w, r15w
mov eax, 2
mov ebp, 0x17
cmove ebp, eax
mov rax, qword [0x1400e6a48]
cmp rax, 3
jne 0x140005d65
lea rax, [rsp + 0x80]
mov byte [rax], 1
Function at 0x14000f614
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x14005ff89
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r15, rdx
mov rbx, rcx
lea r12, [rsp + 0x3a]
lea r13, [rsp + 0x4a]
mov rbp, qword [rcx + 8]
mov r14, qword [r8 + 8]
mov rdi, qword [r8 + 0x10]
mov qword [rsp + 0x50], r8
mov rax, qword [r8]
add rax, rdi
mov qword [rsp + 0x68], rax
mov rcx, r14
sub rcx, rdi
mov eax, 0x7fffffff
cmp rcx, rax
cmovae rcx, rax
mov qword [rsp + 0x60], rcx
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x70], rax
mov rax, qword [rbx + 0x18]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x28], r14
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov r8, r15
xor r9d, r9d
call fcn.14005fd36
mov al, byte [rsp + 0x39]
cmp al, 3
je 0x140060120
mov rsi, qword [rsp + 0x30]
cmp al, 2
je 0x140060158
mov cl, byte [rsp + 0x38]
movzx edx, word [r12 + 4]
mov word [r13 + 4], dx
mov edx, dword [r12]
mov dword [r13], edx
mov qword [rsp + 0x40], rsi
mov byte [rsp + 0x48], cl
mov byte [rsp + 0x49], al
cmp r14, rdi
jb 0x14006016e
mov rcx, qword [rsp + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x14006016e
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x140060127
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
je 0x14006012c
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.1400297ef
cmp al, 0xd
jne 0x1400600fa
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x1400600fa
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x14006016e
mov r14, rbp
mov rbp, rbx
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call case.0x140015c7a.89
mov rbx, rax
xor ecx, ecx
call fcn.140003f7a
test rbx, rbx
je 0x1400600ef
mov ecx, 1
mov rdx, rsi
call fcn.140004063
mov rsi, rbx
mov rbx, rbp
mov rbp, r14
mov r14, qword [rsp + 0x28]
mov rcx, rsi
call fcn.14005c0f1
cmp al, 0xd
jne 0x140060158
mov rcx, rbx
lea rdx, [rsp + 0x40]
call fcn.14005f7c1
mov rcx, rsi
call fcn.1400038a6
jmp 0x14005fff3
mov eax, 1
jmp 0x14006015a
movsxd r8, eax
jmp 0x14006012f
xor r8d, r8d
lea rax, [rdi + r8]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rdx + 0x18]
cmp rax, rcx
jbe 0x140060148
mov qword [rdx + 0x18], rax
mov rcx, rax
add rdi, r8
jb 0x14006016e
cmp rcx, rax
jb 0x14006016e
mov qword [rdx + 0x10], rax
xor esi, esi
xor eax, eax
mov rdx, rsi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x14001e2ab
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov r10, qword [rsp + 0x68]
mov r11, qword [rsp + 0x60]
mov rax, qword [rsp + 0x58]
mov esi, ecx
shr esi, 8
lea r8, [rdx + r8*2]
xor edi, edi
cmp rdx, r8
je 0x14001e327
lea rbx, [rdx + 2]
movzx r15d, byte [rdx + 1]
lea r14, [rdi + r15]
cmp byte [rdx], sil
jne 0x14001e307
cmp rdi, r14
ja 0x14001e364
cmp r14, rax
ja 0x14001e364
add rdi, r9
xor edx, edx
cmp r15, rdx
je 0x14001e311
lea r12, [rdx + 1]
cmp byte [rdi + rdx], cl
mov rdx, r12
jne 0x14001e2f4
jmp 0x14001e319
mov rdx, rbx
mov rdi, r14
jbe 0x14001e2ce
jmp 0x14001e327
mov rdx, rbx
mov rdi, r14
jmp 0x14001e2ce
xor eax, eax
and al, 1
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
movzx ecx, cx
add r10, r11
mov al, 1
cmp r11, r10
je 0x14001e31b
lea r8, [r11 + 1]
movzx edx, byte [r11]
test dl, dl
js 0x14001e345
mov r11, r8
jmp 0x14001e35c
cmp r8, r10
je 0x14001e364
and edx, 0x7f
shl edx, 8
movzx r8d, byte [r11 + 1]
add r11, 2
or edx, r8d
sub ecx, edx
js 0x14001e31b
xor al, 1
jmp 0x14001e32f
ud2

Function at 0x1400287bd
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rbx, rcx
mov r12d, 0xffffffff
mov r13, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov rsi, qword [sym.imp.advapi32.dll_SystemFunction036]
test rdi, rdi
je 0x140028832
mov r14, rbx
cmp rdi, r12
mov r15d, 0xffffffff
cmovb r15, rdi
add rbx, r15
sub rdi, r15
xor ecx, ecx
mov rdx, r14
mov r8d, r15d
mov r9d, 2
call r13
cmp eax, 0xbfffffff
jbe 0x1400287e7
mov ebp, eax
mov rcx, r14
mov edx, r15d
call rsi
test al, al
jne 0x1400287e7
add ebp, 0x80000000
mov eax, ebp
jmp 0x140028834
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002abb0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
call fcn.14002a3c5
cmp eax, 1
je 0x14002abe6
mov eax, eax
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
cmp eax, 2
jne 0x14002abfb
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x14006a0e0
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x14006a480
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x140087140
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
lea rsp, [rsp - 0xb8]
movaps xmmword [rsp + 0x10], xmm6
movaps xmmword [rsp + 0x20], xmm7
movaps xmmword [rsp + 0x30], xmm8
movaps xmmword [rsp + 0x40], xmm9
movaps xmmword [rsp + 0x50], xmm10
movaps xmmword [rsp + 0x60], xmm11
movaps xmmword [rsp + 0x70], xmm12
movaps xmmword [rsp + 0x80], xmm13
movaps xmmword [rsp + 0x90], xmm14
movaps xmmword [rsp + 0xa0], xmm15
movdqu xmm0, xmmword [rdi]
call fcn.14006a340
call fcn.1400699c0
movdqu xmmword [rsi], xmm0
movaps xmm6, xmmword [rsp + 0x10]
movaps xmm7, xmmword [rsp + 0x20]
movaps xmm8, xmmword [rsp + 0x30]
movaps xmm9, xmmword [rsp + 0x40]
movaps xmm10, xmmword [rsp + 0x50]
movaps xmm11, xmmword [rsp + 0x60]
movaps xmm12, xmmword [rsp + 0x70]
movaps xmm13, xmmword [rsp + 0x80]
movaps xmm14, xmmword [rsp + 0x90]
movaps xmm15, xmmword [rsp + 0xa0]
lea rsp, [rsp + 0xb8]
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
ret
movups xmm2, xmmword [rcx]
mov eax, dword [r8 + 0xf0]
movups xmm0, xmmword [r8]
movups xmm1, xmmword [r8 + 0x10]
lea r8, [r8 + 0x20]
xorps xmm2, xmm0
aesenc xmm2, xmm1
dec eax
movups xmm1, xmmword [r8]
lea r8, [r8 + 0x10]
jne 0x14006a49a
aesenclast xmm2, xmm1
pxor xmm0, xmm0
pxor xmm1, xmm1
movups xmmword [rdx], xmm2
pxor xmm2, xmm2
ret
push rbx
push rsi
push rdi
sub rsp, 0x430
mov rax, qword [0x1400e6058]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rsi, rdx
mov rbx, rcx
mov rdx, r8
lea rcx, [rsp + 0x60]
mov rdi, r8
call fcn.140086200
mov r8d, 1
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140086d98
mov edx, dword [rdi + 0xf0]
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.140086130
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rsi
call fcn.140086294
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.14008fa10
add rsp, 0x430
pop rdi
pop rsi
pop rbx
ret
Function at 0x14002ac6f
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x660
movaps xmmword [rsp + 0x650], xmm6
mov rsi, rcx
mov rax, r8
shr rax, 0x3d
jne 0x14002acfc
movzx ebx, r9b
shl rbx, 7
sub rbx, 0xffffffffffffff80
shl r8, 3
cmp r8, rbx
jne 0x14002acfc
mov rdi, rdx
lea rcx, [rsp + 0x140]
mov r8d, 0xf4
xor edx, edx
call fcn.140090b60
call fcn.14002a3c5
cmp eax, 3
je 0x14002acdf
mov eax, eax
lea r8, [rsp + 0x140]
mov rcx, rdi
mov edx, ebx
cmp eax, 2
jne 0x14002acf3
call fcn.14006a000
jmp 0x14002acf8
lea r8, [rsp + 0x140]
mov rcx, rdi
mov edx, ebx
call fcn.1400871c8
jmp 0x14002acf8
call fcn.14006b250
test eax, eax
je 0x14002ad15
mov dword [rsi], 2
movaps xmm6, xmmword [rsp + 0x650]
add rsp, 0x660
pop rbx
pop rdi
pop rsi
ret
lea rdi, [rsp + 0x358]
lea rdx, [rsp + 0x140]
mov r8d, 0xf4
mov rcx, rdi
call fcn.1400904c0
xorps xmm6, xmm6
lea r8, [rsp + 0x450]
movaps xmmword [r8], xmm6
lea rbx, [rsp + 0x140]
mov rcx, rbx
mov rdx, rdi
call fcn.14002abb0
movaps xmm0, xmmword [rbx]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea rcx, [rsp + 0x20]
call fcn.14002a7cd
xor eax, eax
cmp rax, 0x100
je 0x14002ad82
movups xmmword [rsp + rax + 0x140], xmm6
add rax, 0x10
jmp 0x14002ad6c
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x140]
mov r8d, pe_nt_image_headers64
call fcn.1400904c0
call fcn.14002a7b5
test al, al
je 0x14002adda
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdx, rax
shld rdx, rcx, 1
shld rcx, rax, 1
sar rax, 0x3f
movabs r8, 0xc200000000000000
and r8, rax
xor r8, rdx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], rcx
jmp 0x14002adff
mov eax, dword [0x1400e6b8c]
not eax
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x20]
test eax, 0x10400000
jne 0x14002adfa
call fcn.1400690a0
jmp 0x14002adff
call fcn.140068680
lea rdi, [rsp + 0x450]
lea rdx, [rsp + 0x40]
mov r8d, pe_nt_image_headers64
mov rcx, rdi
call fcn.1400904c0
lea rcx, [rsp + 0x550]
lea rdx, [rsp + 0x358]
mov r8d, 0xf4
call fcn.1400904c0
lea rcx, [rsp + 0x14c]
mov r8d, 0x200
mov rdx, rdi
call fcn.1400904c0
and dword [rsi], 0
add rsi, 4
lea rdx, [rsp + 0x140]
mov r8d, 0x20c
mov rcx, rsi
call fcn.1400904c0
jmp 0x14002ad02
Function at 0x14002fc0f
Capabilities:
Hash data using sha512

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x1d0
mov rbx, r9
mov r15, r8
mov r12, rdx
mov rsi, rcx
mov r14, qword [rsp + 0x230]
movups xmm0, xmmword [0x1400a3740]
lea rdi, [rsp + 0x20]
movups xmmword [rdi + 0x38], xmm0
movups xmm0, xmmword [0x1400a3730]
movups xmmword [rdi + 0x28], xmm0
movups xmm0, xmmword [0x1400a3720]
movups xmmword [rdi + 0x18], xmm0
movups xmm0, xmmword [0x1400a3710]
movups xmmword [rdi + 8], xmm0
lea r13, [0x1400a36e0]
call case.0x14002092c.25
xorps xmm0, xmm0
movups xmmword [rdi + 0xc0], xmm0
movups xmmword [rdi + 0xb0], xmm0
movups xmmword [rdi + 0xa0], xmm0
movups xmmword [rdi + 0x90], xmm0
movups xmmword [rdi + 0x80], xmm0
movups xmmword [rdi + 0x70], xmm0
movups xmmword [rdi + 0x60], xmm0
movups xmmword [rdi + 0x50], xmm0
mov qword [rdi], r13
and qword [rdi + 0x48], 0
and qword [rdi + 0xd0], 0
mov r8d, 0x20
mov rcx, rdi
mov rdx, r12
call fcn.14002e079
mov r8d, 0x20
mov rcx, rdi
mov rdx, r15
call fcn.14002e079
mov rcx, rdi
mov rdx, rbx
mov r8, r14
call fcn.14002e079
lea rbx, [rsp + 0xf8]
mov r8d, 0xd8
mov rcx, rbx
mov rdx, rdi
call fcn.1400904c0
mov rcx, rsi
mov rdx, rbx
call case.0x140029697.135
nop
add rsp, 0x1d0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14005a129
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1400a7358]
lea rax, [rsp + 0x60]
movaps xmmword [rax], xmm0
add byte [rcx - 1], bh

Function at 0x14005ac98
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rax, r8
mov edi, edx
mov rsi, rcx
xorps xmm0, xmm0
lea r8, [rsp + 0x30]
movaps xmmword [r8], xmm0
movaps xmmword [r8 + 0x20], xmm0
movaps xmmword [r8 + 0x10], xmm0
mov dword [r8 + 8], 1
lea r9, [rsp + 0x28]
and qword [r9], 0
mov rcx, rax
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x14005acec
call fcn.140057aaa
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x14005acff
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
add rsp, 0x68
pop rdi
pop rsi
ret

Function at 0x14005ad23
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rdi
sub rsp, 0x1b8
mov rax, qword [rcx]
mov rdi, qword [rax]
and qword [rax], 0
test rdi, rdi
je 0x14005ad75
lea rsi, [rsp + 0x20]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call fcn.140090b60
mov cx, 0x202
mov rdx, rsi
call qword [sym.imp.ws2_32.dll_WSAStartup]
test eax, eax
jne 0x14005ad75
mov rax, qword [sym.imp.ws2_32.dll_WSACleanup]
mov qword [rdi], rax
add rsp, 0x1b8
pop rdi
pop rsi
ret
ud2

Function at 0x14005aedb
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x14005af08
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.140028fb0
ud2

Function at 0x14005b0d2
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
test rcx, rcx
je 0x14005b0f1
mov rax, qword [rcx]
and qword [rcx], 0
test rax, rax
je 0x14005b0f1
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
jmp 0x14005b125
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x14005b120
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14005b125
call fcn.14005aedb
mov ecx, dword [0x1400e6b98]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov qword [rcx + 0x50], 1
mov qword [rcx + 0x58], rax
mov qword [rcx + 0x60], rdx
add rsp, 0x38
ret
Function at 0x14005e342
Capabilities:
Create thread
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x528
movdqa xmmword [rsp + 0x510], xmm8
movdqa xmmword [rsp + 0x500], xmm7
movdqa xmmword [rsp + 0x4f0], xmm6
mov rbp, r8
mov rdi, rdx
mov r14, rcx
add rcx, 0x40
call fcn.14005e2a5
mov rsi, rax
mov ebx, edx
cmp byte [rax + 0x8c], 0
je 0x14005e3a6
mov rcx, rdi
call fcn.14005bd6f
mov r15d, 1
xor edi, edi
jmp 0x14005ea29
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsi + 0x28]
cmp rax, rcx
jne 0x14005e3c4
lea rcx, [rsi + 0x10]
call fcn.14005d7a6
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsi + 0x28]
mov rdx, qword [rsi + 0x20]
add rdx, rax
xor r8d, r8d
cmp rdx, rcx
cmovae r8, rcx
sub rdx, r8
mov rcx, qword [rsi + 0x10]
shl rdx, 4
mov qword [rcx + rdx], rdi
mov byte [rcx + rdx + 8], 1
inc rax
mov qword [rsi + 0x28], rax
lock inc qword [r14 + 0x110]
mov rax, qword [r14 + 0x108]
test rax, rax
je 0x14005e427
lock dec qword [r14 + 0x108]
inc dword [rsi + 0x88]
add r14, 0xd0
mov rcx, r14
call qword [sym.imp.kernel32.dll_WakeConditionVariable]
jmp 0x14005ea26
mov rax, qword [r14 + 0x100]
cmp rax, qword [r14 + 0xf8]
je 0x14005ea26
mov rax, qword [rsi + 0x60]
test rax, rax
je 0x14005ec10
lock inc qword [rax]
jle 0x14005ec10
mov qword [rsp + 0x58], rax
mov rax, qword [rsi + 0x80]
mov qword [rsp + 0x70], rax
mov rax, qword [r14 + 0x30]
mov r8, qword [r14 + 0x38]
mov rcx, qword [r8 + 0x10]
dec rcx
and rcx, 0xfffffffffffffff0
lea rdx, [rcx + rax]
add rdx, 0x10
lea r15, [rsp + 0xf0]
mov rcx, r15
call qword [r8 + 0x28]
mov rdi, qword [r15]
mov r8, qword [r15 + 8]
mov r9, qword [r15 + 0x10]
cmp qword [r14 + 0x10], 0
je 0x14005e4bb
mov r13, qword [r14 + 0x18]
mov rax, qword [rbp]
mov qword [rsp + 0x50], rax
mov rax, qword [rbp]
mov qword [rsp + 0x50], rax
lock inc qword [rax]
jle 0x14005ec10
mov r13, qword [0x1400e6ad0]
test r13, r13
je 0x14005e4e2
dec r13
jmp 0x14005e721
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x68], r8
lea rdx, [0x1400a7201]
lea r15, [rsp + 0xf0]
mov r8d, 0xe
mov rcx, r15
call fcn.1400599d6
mov rax, qword [r15]
mov qword [rsp + 0x48], rax
test rax, rax
ror byte [rdi], 0x84
add dword [r8], r8d
invalid
mov qword [rsp + 0x78], rdi
mov byte [rsp + 0x37], bl
lea rcx, [rsp + 0xf0]
call fcn.140059acf
mov byte [rsp + 0x98], 2
jmp 0x14005e706

Function at 0x14005eeac
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x14005eeaf
test al, 1
je 0x14005eeca
test al, 2
jne 0x14005eeca
xor rax, 3
ret
ud2

Function at 0x14005ff42
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
cmp rcx, 0xffffffffffffffff
je 0x14005ff85
lea r9, [rsp + 0x34]
mov dword [r9], 1
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14005ff7a
xor eax, eax
jmp 0x14005ff7f
call fcn.140057aaa
nop
add rsp, 0x38
ret
ud2