joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d7d3d90
Capabilities:
Parse pe header

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

Function at 0x6d7d3db0
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 0x6d7d3df1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7d3de8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d3df3
add rax, 0x28
cmp rax, r9
jne 0x6d7d3dd4
xor eax, eax
ret

Function at 0x6d7d3e90
Capabilities:
Enumerate pe sections

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

Function at 0x6d7d4000
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f11f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d4020
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d4018
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d407d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d4074
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d4084
add rax, 0x28
cmp rax, r9
jne 0x6d7d4060
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d40a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f11f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d410e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d410e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d410e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d410e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7d4105
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d4115
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d40f0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d4128
jmp 0x6d7d410e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d4136
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d410e
test r9d, r9d
jg 0x6d7d4120
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d4470
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140c3fbaf
Capabilities:
Execute anti-debugging instructions

Disassembly:
rdtsc
sub rdi, 8
jmp 0x140c518a8
lea rsp, [rsp + 8]
jmp fcn.140c62264
mov dword [rdi + 4], eax
mov dword [rdi], edx
jmp 0x140c438ef

Function at 0x140c5f943
Capabilities:
Execute anti-debugging instructions

Disassembly:
add dil, 0xa8
call fcn.140c3cd0f
jmp 0x140c6c84d
mov edx, 0xd7bad21d
rdtsc
sub rdi, 8
mov dword [rdi + 4], eax
push 0xffffffff903e8694
mov dword [rdi], edx
not qword [rsp]
lea rsp, [rsp + 8]
jmp fcn.140c62264

Function at 0x140c607db
Capabilities:
Encode data using xor

Disassembly:
call fcn.140c37e6a
mov esi, 0xe4ad7416
mov r10, qword [rdi]
jmp 0x140c661ad
xor r8d, r8d
test rdx, rdx
lea rsp, [rsp + 8]
je 0x140c6083f
mov ecx, 0xa991f380
sar ecx, 0x67
push rbx
lea rbx, [0x140c6d4c8]
mov ecx, 0x10bf5328
movzx ecx, byte [rax + rcx - 0x10bf5328]
push 0xfffffffff6bafa8e
xor ecx, r8d
and ecx, 0xff
mov ecx, dword [rbx + rcx*4]
shr r8d, 8
ror qword [rsp], 0x7b
xor r8d, ecx
inc rax
xor r8d, 0x9b35a835
dec rdx
lea rsp, [rsp + 8]
jne 0x140c607fc
pop rbx
not r8d
jmp 0x140c3398d
mov si, word [rdi + 8]
call fcn.140c58740
Function at 0x140c44058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140c441df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140c44089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c4406f
add dl, dl
jne 0x140c44096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c440f6
xor eax, eax
add dl, dl
jne 0x140c440a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c441ad
add dl, dl
jne 0x140c440b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c440c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c440d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c440dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c440ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c4407e
mov eax, 1
add dl, dl
jne 0x140c44106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c44113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c440fb
sub eax, ebx
mov ebx, 1
jne 0x140c4414c
mov ecx, 1
add dl, dl
jne 0x140c4412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c4413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c44123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c4407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c44168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c44175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c4415d
cmp eax, 0x7d00
jae 0x140c4419b
cmp eax, 0x500
jb 0x140c44196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c4407e
cmp eax, 0x7f
ja 0x140c4419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c4407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c441d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140c4407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400015d0
Capabilities:
Hash data with md5

Disassembly:
sub rsp, 0x38
xor edx, edx
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
add rax, 0x10
mov qword [rsp + 0x28], rcx
mov rcx, rax
mov r8d, 8
call fcn.1400773b0
mov rax, qword [rsp + 0x28]
mov dword [rax], 0x67452301
mov dword [rax + 4], 0xefcdab89
mov dword [rax + 8], 0x98badcfe
mov dword [rax + 0xc], 0x10325476
add rsp, 0x38
ret

Function at 0x140005ef0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov ebp, r8d
mov r14, rdx
mov rbx, rcx
mov dword [rsp + 0x24], 0
mov qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 0
mov qword [rcx + 0x18], SafeArrayLock
mov qword [rcx + 0x10], 0
cmp qword [rcx + 0x18], 0x10
jb 0x140005f4f
mov rax, qword [rcx]
jmp 0x140005f52
mov rax, rbx
mov byte [rax], 0
mov dword [rsp + 0x24], 1
xor esi, esi
test r8d, r8d
je 0x140006110
xor ecx, ecx
nop word [rax + rax]
dec ebp
movzx eax, byte [r14]
mov byte [rsp + rcx + 0x88], al
inc esi
inc rcx
lea r14, [r14 + 1]
movzx r13d, byte [rsp + 0x8a]
movzx r15d, byte [rsp + 0x89]
movzx r12d, byte [rsp + 0x88]
cmp rcx, 3
jne 0x140006025
movzx eax, r12b
shr al, 2
mov byte [rsp + 0x20], al
movzx ecx, r12b
and cl, 3
shl cl, 4
movzx eax, r15b
shr al, 4
add cl, al
mov byte [rsp + 0x21], cl
movzx ecx, r15b
and cl, 0xf
shl cl, 2
movzx eax, r13b
shr al, 6
add cl, al
mov byte [rsp + 0x22], cl
movzx eax, r13b
and al, 0x3f
mov byte [rsp + 0x23], al
xor edi, edi
nop dword [rax]
movzx ecx, byte [rsp + rdi + 0x20]
lea rax, [0x1400f8258]
cmp qword [0x1400f8270], 0x10
cmovae rax, qword [0x1400f8258]
movzx edx, byte [rax + rcx]
mov rcx, rbx
call fcn.140006440
inc rdi
cmp rdi, 4
jl 0x140005ff0
xor esi, esi
xor ecx, ecx
test ebp, ebp
jne 0x140005f70
test esi, esi
je 0x140006110
mov r14d, 3
cmp esi, r14d
jge 0x140006075
mov eax, r14d
sub eax, esi
movsxd rcx, eax
movsxd rax, esi
lea rdi, [rsp + 0x88]
add rdi, rax
xor eax, eax
rep stosb byte [rdi], al
movzx r13d, byte [rsp + 0x8a]
movzx r15d, byte [rsp + 0x89]
movzx r12d, byte [rsp + 0x88]
movzx eax, r12b
shr al, 2
mov byte [rsp + 0x20], al
and r12b, r14b
shl r12b, 4
movzx eax, r15b
shr al, 4
add r12b, al
mov byte [rsp + 0x21], r12b
and r15b, 0xf
shl r15b, 2
movzx eax, r13b
shr al, 6
add r15b, al
mov byte [rsp + 0x22], r15b
and r13b, 0x3f
mov byte [rsp + 0x23], r13b
lea eax, [rsi + 1]
test eax, eax
jle 0x1400060f4
lea rdi, [rsp + 0x20]
mov ebp, eax
movzx ecx, byte [rdi]
lea rax, [0x1400f8258]
cmp qword [0x1400f8270], 0x10
cmovae rax, qword [0x1400f8258]
movzx edx, byte [rax + rcx]
mov rcx, rbx
call fcn.140006440
lea rdi, [rdi + 1]
sub rbp, 1
jne 0x1400060c4
cmp esi, r14d
jge 0x140006110
sub r14d, esi
movsxd rdi, r14d
nop
mov dl, 0x3d
mov rcx, rbx
call fcn.140006440
sub rdi, 1
jne 0x140006100
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000c3f0
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov qword [r11 - 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
mov dword [rsp + 0x30], 1
mov qword [r11 + 0x18], rbp
mov dword [r11 + 0x10], ebp
lea rax, [r11 + 0x10]
mov qword [r11 - 0x58], rax
lea r9, [r11 + 0x18]
xor edx, edx
xor ecx, ecx
lea r8d, [rbp + 1]
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesA]
test eax, eax
je 0x14000c5c7
mov esi, ebp
cmp dword [rsp + 0x88], ebp
jbe 0x14000c5c7
nop
mov eax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax + rcx*8 + 8]
test rdx, rdx
je 0x14000c59f
mov qword [rsp + 0x58], SafeArrayLock
mov qword [rsp + 0x50], rbp
mov byte [rsp + 0x40], 0
cmp byte [rdx], 0
jne 0x14000c499
mov r8, rbp
jmp 0x14000c4aa
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x14000c4a0
lea rcx, [rsp + 0x40]
call fcn.140006800
nop
lea rax, [rsp + 0x40]
cmp rax, qword [rbx + 8]
jae 0x14000c517
mov rax, qword [rbx]
lea rcx, [rsp + 0x40]
cmp rax, rcx
ja 0x14000c517
lea rdi, [rsp + 0x40]
sub rdi, rax
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 8], rax
jne 0x14000c4e7
mov rcx, rbx
call fcn.14000c6e0
and rdi, 0xffffffffffffffe0
add rdi, qword [rbx]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000c55a
mov qword [rcx + 0x18], SafeArrayLock
mov qword [rcx + 0x10], rbp
cmp qword [rcx + 0x18], 0x10
jb 0x14000c50f
mov rax, qword [rcx]
jmp 0x14000c512
mov rax, rcx
mov rdx, rdi
jmp 0x14000c552
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 8], rax
jne 0x14000c529
mov rcx, rbx
call fcn.14000c6e0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000c55a
mov qword [rcx + 0x18], SafeArrayLock
mov qword [rcx + 0x10], rbp
cmp qword [rcx + 0x18], 0x10
jb 0x14000c54a
mov rax, qword [rcx]
jmp 0x14000c54d
mov rax, rcx
lea rdx, [rsp + 0x40]
mov byte [rax], 0
call fcn.140006b70
add qword [rbx + 8], 0x20
mov rax, qword [rsp + 0x58]
cmp rax, 0x10
jb 0x14000c59f
mov rcx, qword [rsp + 0x40]
inc rax
cmp rax, 0x1000
jb 0x14000c59a
test cl, 0x1f
jne 0x14000c5c1
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14000c5bb
sub rcx, rax
cmp rcx, 8
jb 0x14000c5b5
cmp rcx, 0x27
ja 0x14000c5af
mov rcx, rax
call fcn.14002a780
inc esi
cmp esi, dword [rsp + 0x88]
jae 0x14000c5c7
jmp 0x14000c460
call fcn.140078f8c
int3
call fcn.140078f8c
int3
call fcn.140078f8c
int3
call fcn.140078f8c
int3
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x14000c5da
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov rax, rbx
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000d330
Capabilities:
Copy file
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
lea rbp, [rax - 0x1a8]
sub rsp, 0x2a0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov qword [rcx + 0x18], SafeArrayLock
mov qword [rcx + 0x10], rbx
cmp qword [rcx + 0x18], 0x10
jb 0x14000d37e
mov rax, qword [rcx]
jmp 0x14000d381
mov rax, rdi
mov byte [rax], bl
mov dword [rsp + 0x20], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x70]
call fcn.1400773b0
mov edx, 6
lea rcx, [rsp + 0x48]
call fcn.140027f10
nop
mov r8, rax
lea rdx, [0x1400c2180]
lea rcx, [rsp + 0x28]
call fcn.14000cee0
nop
lea r8, str..exe
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.14000cf40
nop
mov rax, qword [rsp + 0x40]
cmp rax, 0x10
jb 0x14000d42e
inc rax
mov rcx, qword [rsp + 0x28]
cmp rax, 0x1000
jb 0x14000d429
test cl, 0x1f
je 0x14000d3fc
call fcn.140078f8c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14000d40b
call fcn.140078f8c
int3
sub rcx, rax
cmp rcx, 8
jae 0x14000d41a
call fcn.140078f8c
int3
cmp rcx, 0x27
jbe 0x14000d426
call fcn.140078f8c
int3
mov rcx, rax
call fcn.14002a780
mov qword [rsp + 0x40], SafeArrayLock
mov qword [rsp + 0x38], rbx
mov byte [rsp + 0x28], 0
mov rax, qword [rsp + 0x60]
cmp rax, 0x10
jb 0x14000d499
inc rax
mov rcx, qword [rsp + 0x48]
cmp rax, 0x1000
jb 0x14000d494
test cl, 0x1f
je 0x14000d467
call fcn.140078f8c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14000d476
call fcn.140078f8c
int3
sub rcx, rax
cmp rcx, 8
jae 0x14000d485
call fcn.140078f8c
int3
cmp rcx, 0x27
jbe 0x14000d491
call fcn.140078f8c
int3
mov rcx, rax
call fcn.14002a780
mov qword [rsp + 0x60], SafeArrayLock
mov qword [rsp + 0x58], rbx
mov byte [rsp + 0x48], 0
xor r9d, r9d
lea r8d, [r9 + 0x1c]
lea rdx, [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae rdx, qword [rsp + 0x68]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
cmp qword [rsi + 0x18], 0x10
jb 0x14000d4e3
mov rsi, qword [rsi]
mov r8d, 1
lea rdx, [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x14000d529
cmp byte [rbp - 0x70], 0
je 0x14000d519
lea rax, [rbp - 0x70]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14000d510
mov r8, rbx
lea rdx, [rbp - 0x70]
mov rcx, rdi
call fcn.140006800
nop
mov rax, qword [rbp - 0x80]
cmp rax, 0x10
jb 0x14000d580
inc rax
mov rcx, qword [rsp + 0x68]
cmp rax, 0x1000
jb 0x14000d57b
test cl, 0x1f
je 0x14000d54e
call fcn.140078f8c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14000d55d
call fcn.140078f8c
int3
sub rcx, rax
cmp rcx, 8
jae 0x14000d56c
call fcn.140078f8c
int3
cmp rcx, 0x27
jbe 0x14000d578
call fcn.140078f8c
int3
mov rcx, rax
call fcn.14002a780
mov rax, rdi
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14000edc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x68
cmp qword [r8 + 0x18], 0x10
mov rsi, rdx
mov rbp, rcx
jb 0x14000eddf
mov r14, qword [r8]
jmp 0x14000ede2
mov r14, r8
mov r15d, dword [r8 + 0x10]
lea rcx, [0x1400c3648]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlNtStatusToDosError
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtResumeProcess
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbp
call rax
mov ecx, eax
call rdi
test rbp, rbp
je 0x14000ef74
mov qword [rsp + 0x60], r13
lea r8, [rsp + 0xa0]
xor r13d, r13d
lea rdx, [rsp + 0xb8]
mov ecx, r15d
mov qword [rsp + 0xa0], r13
mov qword [rsp + 0xb8], r13
mov qword [rsp + 0x50], r13
call fcn.14002c878
test eax, eax
jne 0x14000ef0c
lea rcx, [0x1400c3648]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0xb0], r13
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x1400c37f0]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlNtStatusToDosError
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0xa0]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x48], 0x40
mov rbx, rax
mov dword [rsp + 0x40], r13d
lea rax, [rsp + 0x58]
mov dword [rsp + 0x38], 2
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov rdx, rbp
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
call rdi
mov ecx, eax
call rbx
test eax, eax
jne 0x14000ef0c
mov rcx, qword [rsp + 0xb8]
mov r8d, r15d
mov rdx, r14
call fcn.140075800
test rsi, rsi
je 0x14000ef4f
lea rcx, [0x1400c3648]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, qword [rsp + 0x50]
lea rdx, [0x1400c3708]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [rsp + 0x60]
mov al, 1
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000f9f0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Initialize winsock library
Reference google public dns server

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x178]
sub rsp, 0x260
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x48], SafeArrayLock
mov qword [rsp + 0x40], rsi
mov byte [rsp + 0x30], sil
mov ecx, 0x202
lea rdx, [rbp - 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r8d, r8d
mov r14d, 2
mov edx, r14d
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
xor eax, eax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], r14w
lea rcx, str.8.8.8.8
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x24], eax
lea ecx, [rsi + 0x35]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x22], ax
lea r8d, [rsi + 0x10]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x14000fb2c
mov qword [rbx + 0x18], SafeArrayLock
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 0x10
jb 0x14000fabc
mov rax, qword [rbx]
jmp 0x14000fabf
mov rax, rbx
mov byte [rax], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140006b70
nop
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x14000fc36
inc rax
mov rcx, qword [rsp + 0x30]
cmp rax, 0x1000
jb 0x14000fc31
test cl, 0x1f
je 0x14000fafe
call fcn.140078f8c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14000fb0d
call fcn.140078f8c
int3
sub rcx, rax
cmp rcx, 8
jae 0x14000fb1c
call fcn.140078f8c
int3
cmp rcx, 0x27
jbe 0x14000fc2e
call fcn.140078f8c
nop
mov dword [rbp + 0x188], reloc.WS2_32.dll_recv
lea r8, [rbp + 0x188]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
xor edx, edx
lea r8d, [rdx + 0x50]
lea rcx, [rsp + 0x70]
call fcn.1400773b0
mov r9d, 0x50
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x64]
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_inet_ntop]
test rax, rax
je 0x14000fba9
cmp byte [rsp + 0x70], 0
jne 0x14000fb85
mov r8, rsi
jmp 0x14000fb9a
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x14000fb90
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140006800
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x18], SafeArrayLock
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 0x10
jb 0x14000fbca
mov rax, qword [rbx]
jmp 0x14000fbcd
mov rax, rbx
mov byte [rax], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140006b70
nop
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x14000fc36
inc rax
mov rcx, qword [rsp + 0x30]
cmp rax, 0x1000
jb 0x14000fc31
test cl, 0x1f
je 0x14000fc04
call fcn.140078f8c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14000fc13
call fcn.140078f8c
int3
sub rcx, rax
cmp rcx, 8
jae 0x14000fc22
call fcn.140078f8c
int3
cmp rcx, 0x27
jbe 0x14000fc2e
call fcn.140078f8c
int3
mov rcx, rax
call fcn.14002a780
mov rax, rbx
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140015440
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x280
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x290], rbx
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov edx, 0x208
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x140015484
lea rcx, str.GetSystemDirectory___failed
call fcn.140013ae0
int3
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x48], di
cmp word [rsp + 0x70], di
jne 0x1400154a3
mov r8, rdi
jmp 0x1400154ba
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], di
jne 0x1400154b0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140008660
nop
lea rcx, [rsp + 0x28]
call fcn.14001ad00
nop
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140015150
nop
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x140015505
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140008d60
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x140015535
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.140008d60
mov rax, rbx
mov rbx, qword [rsp + 0x290]
add rsp, 0x280
pop rdi
ret

Function at 0x140015d90
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp eax, 0xffffffff
jne 0x140015e1a
mov qword [rsp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140013d50
mov rsi, rax
xor eax, eax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
movabs rax, 0x4d54ee85da812030
mov rcx, qword [rsi + 8]
add rcx, rax
cmp rcx, 1
jbe 0x140015ded
mov r8, qword [rsi]
mov edx, ebx
mov rcx, rsi
call qword [r8 + 0x30]
jmp 0x140015df2
test ebx, ebx
setne al
movzx eax, al
add rax, 2
mov qword [rsp + 0x28], rsi
mov rsi, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], ebx
test al, 1
je 0x140015e1a
cmp rax, 1
jne 0x140015e27
test ebx, ebx
jne 0x140015e27
mov eax, edi
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
lea rdx, [0x1400c2c08]
lea rcx, [rsp + 0x20]
call fcn.140015b30
int3

Function at 0x140015f90
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1400f8480]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140015fc9
mov rdx, qword [rax + 8]
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.14001af40
xor edx, edx
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.14001af40