joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180003720
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rax, qword [0x18003edf0]
test rax, rax
jne 0x18000386b
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
call fcn.180006f30
lea rdx, [0x18002f7f8]
lea rcx, [rsp + 0x40]
call fcn.180005e20
mov rcx, qword [rsp + 0x40]
call fcn.180006b20
test eax, eax
je 0x180003846
mov rcx, qword [rsp + 0x40]
lea rdx, [0x18002f814]
call fcn.180006a80
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180003846
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x20], rbx
lea r8d, [rdx + 2]
call fcn.180008ae8
mov rcx, qword [rsp + 0x30]
call fcn.180008e70
mov rcx, qword [rsp + 0x30]
movsxd rbx, eax
call fcn.1800090e8
cmp ebx, 0x32
jg 0x180003841
lea rcx, [rsp + 0x38]
mov edx, ebx
call fcn.180005a40
mov r9, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov r8, rbx
mov edx, 1
call fcn.180008974
mov rax, qword [rsp + 0x38]
mov byte [rbx + rax], 0
mov rdx, qword [rsp + 0x38]
test rbx, rbx
jle 0x180003835
mov r9, rdx
mov r8, rdx
movabs r10, 0x21ffffff80ffd
neg r9
nop dword [rax + rax]
movzx ecx, byte [r8]
lea eax, [rcx - 0x2e]
cmp al, 0x31
ja 0x180003821
bt r10, rax
jb 0x180003829
sub cl, 0x61
cmp cl, 0x19
ja 0x180003841
inc r8
lea rax, [r9 + r8]
cmp rax, rbx
jl 0x180003810
lea rcx, [0x18003edf0]
call fcn.180005f00
mov rbx, qword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.180006af0
lea rcx, [rsp + 0x38]
call fcn.180005a80
lea rcx, [rsp + 0x40]
call fcn.180005cb0
mov rax, qword [0x18003edf0]
add rsp, 0x28
ret

Function at 0x180003b60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
lea r8, [0x18002f910]
movzx edx, dx
mov ebx, r9d
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x180003ba5
imul eax, ebx, 0x64
inc eax
mov dword [0x18003e86c], eax
xor eax, eax
jmp 0x180003c03
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x180003bc6
imul eax, ebx, 0x64
add eax, 2
mov dword [0x18003e86c], eax
xor eax, eax
jmp 0x180003c03
mov rcx, rax
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x180003bec
imul eax, ebx, 0x64
add eax, 3
mov dword [0x18003e86c], eax
xor eax, eax
jmp 0x180003bfe
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [r14], eax
mov rax, rdi
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180003cf0
Capabilities:
Move file
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
imul edi, r9d, 0x64
mov rbx, r8
lea r8, [rbp + 0x38]
lea r9d, [rdi + 1]
or esi, 0xffffffff
mov qword [rbp - 0x10], 0
call fcn.180003b60
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov r14, rax
test rax, rax
je 0x180003e7f
lea rcx, [rbp - 0x20]
call fcn.180006f30
lea rdx, [0x18002f5c0]
lea rcx, [rbp - 0x20]
call fcn.180005e20
cmp dword [section..data], 0
je 0x180003d78
mov rcx, qword [rbp - 0x20]
call fcn.180006ba0
test eax, eax
jne 0x180003d78
lea rcx, [rbp - 0x20]
call fcn.180003170
lea rdx, [0x18002f5fc]
lea rcx, [rbp - 0x20]
call fcn.180005e20
lea rcx, [rbp - 0x20]
mov rdx, rbx
call fcn.180005e20
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x18]
call fcn.180005d00
lea rdx, [0x18002f920]
lea rcx, [rbp - 0x18]
call fcn.180005e20
mov rcx, qword [rbp - 0x18]
call fcn.180009b18
mov rcx, qword [rbp - 0x20]
call fcn.180006b20
movsxd rbx, dword [rbp + 0x38]
test eax, eax
je 0x180003e1d
mov rcx, qword [rbp - 0x20]
mov r8d, ebx
mov rdx, r14
call fcn.180003c20
test eax, eax
jne 0x180003e7d
mov rcx, qword [rbp - 0x20]
call fcn.180009b18
mov rcx, qword [rbp - 0x20]
call fcn.180006b20
test eax, eax
je 0x180003e05
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
call fcn.180009b20
mov rcx, qword [rbp - 0x20]
call fcn.180006b20
test eax, eax
je 0x180003e1d
lea eax, [rdi + 2]
mov dword [0x18003e86c], eax
jmp 0x180003e7f
mov rcx, qword [rbp - 0x20]
lea rdx, [0x18002f930]
call fcn.180006a80
mov qword [rbp - 0x10], rax
test rax, rax
jne 0x180003e5a
mov rcx, qword [rbp - 0x20]
lea rdx, [0x18002f940]
call fcn.180006a80
mov qword [rbp - 0x10], rax
test rax, rax
jne 0x180003e5a
lea eax, [rdi + 3]
mov dword [0x18003e86c], eax
jmp 0x180003e7f
mov r9, rax
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.180009058
cmp rax, rbx
je 0x180003e7d
lea eax, [rdi + 4]
mov dword [0x18003e86c], eax
jmp 0x180003e7f
xor esi, esi
lea rcx, [rbp - 0x20]
call fcn.180005cb0
lea rcx, [rbp - 0x18]
call fcn.180005cb0
lea rcx, [rbp - 0x10]
call fcn.180006af0
mov rbx, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x180004a60
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
xor ebx, ebx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
call fcn.180005e20
lea rdx, str.kbasnthasciateuhant98437uau
lea rcx, [rsp + 0x38]
call fcn.180005e20
mov rcx, qword [rsp + 0x38]
call fcn.180009b18
xor ecx, ecx
call fcn.180009958
mov rcx, qword [rsp + 0x38]
lea rdx, str.rbe
call fcn.180006a80
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x180004ae3
mov rcx, qword [rsp + 0x38]
lea rdx, str.wbe
call fcn.180006a80
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x180004ae3
call fcn.180009834
imul ebx, dword [rax], 0x64
inc ebx
jmp 0x180004b14
xor ecx, ecx
call fcn.180009958
mov r9, qword [rsp + 0x40]
mov edx, 1
lea rcx, [0x18002f7f4]
mov r8d, edx
call fcn.180009058
cmp rax, 1
je 0x180004b14
call fcn.180009834
imul ebx, dword [rax], 0x64
add ebx, 2
lea rcx, [rsp + 0x40]
call fcn.180006af0
mov rcx, qword [rsp + 0x38]
call fcn.180009b18
lea rcx, [rsp + 0x38]
call fcn.180005cb0
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x1800065f0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rdi
push r14
push r15
sub rsp, 0x68
mov r14, rcx
mov rcx, qword [r8]
mov ebp, edx
mov edx, 2
mov rdi, r8
call fcn.18000bdf8
xor r15d, r15d
xor r9d, r9d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rdi], rax
mov qword [rsp + 0x40], r15
mov word [rax], r15w
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa8]
xor r8d, r8d
xor edx, edx
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x180006675
or eax, 0xffffffff
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rbp
ret
cmp dword [rsp + 0xa8], ebp
jg 0x18000668e
mov eax, 1
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rbp
ret
mov qword [rsp + 0x90], rbx
mov ebx, dword [rsp + 0xa0]
xor ecx, ecx
inc ebx
mov qword [rsp + 0x60], rsi
lea eax, [rbx + 1]
mov dword [rsp + 0xa0], ebx
movsxd rdx, eax
add rdx, rdx
call fcn.18000bdf8
mov qword [rsp + 0x38], r15
movsxd rcx, ebx
mov word [rax], r15w
mov word [rax + rcx*2], r15w
mov qword [rsp + 0x30], r15
lea r9, [rsp + 0xa0]
mov rcx, r14
mov r8, rax
mov edx, ebp
mov qword [rsp + 0x28], r15
mov rsi, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov rbx, qword [rsp + 0x90]
test eax, eax
je 0x180006713
or eax, 0xffffffff
mov rsi, qword [rsp + 0x60]
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rbp
ret
mov rcx, qword [rdi]
test rcx, rcx
je 0x180006723
call fcn.1800099d8
mov qword [rdi], r15
mov qword [rdi], rsi
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rbp
ret
Function at 0x180006870
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r15, r8
xor ebx, ebx
lea r8, [0x180030e44]
mov rsi, r9
or edi, 0xffffffff
mov ebp, ebx
mov dword [rsp + 0x60], ebx
call fcn.180006350
mov r14, rax
test rax, rax
je 0x180006923
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r15
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x180006923
mov ecx, dword [rsp + 0x60]
add rcx, 2
call fcn.18000bd40
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rbx, rax
mov byte [rax], bpl
mov eax, dword [rsp + 0x60]
mov byte [rax + rbx], bpl
mov eax, dword [rsp + 0x60]
mov rdx, r15
inc eax
mov rcx, r14
mov byte [rax + rbx], bpl
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x180006923
cmp dword [rsp + 0x78], 4
jne 0x180006923
mov ebp, dword [rbx]
test rsi, rsi
je 0x18000692a
mov dword [rsi], edi
mov rcx, rbx
call fcn.1800099d8
mov rbx, qword [rsp + 0x68]
mov eax, ebp
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180006c00
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rbx
push rsi
sub rsp, 0xa8
mov rax, qword [0x18003d1b0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
mov qword [r11 - 0x30], r14
or ebx, 0xffffffff
xor r13d, r13d
mov rdi, rcx
mov qword [r11 - 0x38], r15
mov r12d, r8d
mov r10d, r13d
mov r14, rdx
movsxd r15, r9d
lea rcx, [0x180030e48]
nop dword [rax + rax]
movzx eax, word [r10 + rcx]
lea r10, [r10 + 2]
mov word [rsp + r10 + 0x56], ax
test ax, ax
jne 0x180006c50
lea rcx, [rsp + 0x58]
mov qword [rsp + 0xd8], rbp
call fcn.1800069d0
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.180007df0
mov rsi, rax
test rax, rax
je 0x180006d5c
mov rcx, rax
call fcn.18000c78c
lea rdx, [rsp + 0x20]
mov ecx, eax
mov ebp, eax
call fcn.18000c7b4
test eax, eax
jne 0x180006d5c
lea eax, [r12*2 - 2]
mov r8d, 2
mov ecx, ebp
movsxd rdi, eax
cmp qword [rsp + 0x38], rdi
cmovl rdi, qword [rsp + 0x38]
mov rax, rdi
cqo
sub rax, rdx
mov rdx, rdi
sar rax, 1
neg rdx
mov rbx, rax
call fcn.18000cb80
lea rcx, [rdi + 2]
call fcn.18000bd40
mov r9, rsi
mov r8, rdi
mov rcx, rax
mov edx, 1
mov qword [r14], rax
call fcn.180008974
mov rax, qword [r14]
movsxd r8, ebx
mov word [rax + r8*2], r13w
cmp ebx, r15d
jle 0x180006d57
mov rcx, qword [r14]
mov rax, r15
mov rdx, rcx
test r15, r15
je 0x180006d57
cmp word [rdx], 0xa
je 0x180006d35
add rdx, 2
dec rax
jne 0x180006d21
mov ebx, r13d
jmp 0x180006d6c
test rdx, rdx
je 0x180006d57
mov rax, rdx
sub rax, rcx
sar rax, 1
sub r8, rax
cmp r8, r15
jle 0x180006d57
add r8, r8
add rdx, 2
call fcn.18000ade0
mov ebx, r13d
jmp 0x180006d6c
mov rcx, qword [r14]
test rcx, rcx
je 0x180006d6c
call fcn.1800099d8
mov qword [r14], r13
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xd8]
test rsi, rsi
je 0x180006da9
mov rcx, rsi
call fcn.18000c724
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180009cc0
add rsp, 0xa8
pop rsi
pop rbx
ret
mov r9d, 0x400
jmp 0x180006c00
Function at 0x180006dd0
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rbx
push rsi
sub rsp, 0xa8
mov rax, qword [0x18003d1b0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
mov qword [r11 - 0x30], r14
or ebx, 0xffffffff
xor r13d, r13d
mov rdi, rcx
mov qword [r11 - 0x38], r15
mov r12d, r8d
mov r10d, r13d
mov r14, rdx
movsxd r15, r9d
lea rcx, [0x180030e48]
nop dword [rax + rax]
movzx eax, word [r10 + rcx]
lea r10, [r10 + 2]
mov word [rsp + r10 + 0x56], ax
test ax, ax
jne 0x180006c50
lea rcx, [rsp + 0x58]
mov qword [rsp + 0xd8], rbp
call fcn.1800069d0
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.180007df0
mov rsi, rax
test rax, rax
je 0x180006d5c
mov rcx, rax
call fcn.18000c78c
lea rdx, [rsp + 0x20]
mov ecx, eax
mov ebp, eax
call fcn.18000c7b4
test eax, eax
jne 0x180006d5c
lea eax, [r12*2 - 2]
mov r8d, 2
mov ecx, ebp
movsxd rdi, eax
cmp qword [rsp + 0x38], rdi
cmovl rdi, qword [rsp + 0x38]
mov rax, rdi
cqo
sub rax, rdx
mov rdx, rdi
sar rax, 1
neg rdx
mov rbx, rax
call fcn.18000cb80
lea rcx, [rdi + 2]
call fcn.18000bd40
mov r9, rsi
mov r8, rdi
mov rcx, rax
mov edx, 1
mov qword [r14], rax
call fcn.180008974
mov rax, qword [r14]
movsxd r8, ebx
mov word [rax + r8*2], r13w
cmp ebx, r15d
jle 0x180006d57
mov rcx, qword [r14]
mov rax, r15
mov rdx, rcx
test r15, r15
je 0x180006d57
cmp word [rdx], 0xa
je 0x180006d35
add rdx, 2
dec rax
jne 0x180006d21
mov ebx, r13d
jmp 0x180006d6c
test rdx, rdx
je 0x180006d57
mov rax, rdx
sub rax, rcx
sar rax, 1
sub r8, rax
cmp r8, r15
jle 0x180006d57
add r8, r8
add rdx, 2
call fcn.18000ade0
mov ebx, r13d
jmp 0x180006d6c
mov rcx, qword [r14]
test rcx, rcx
je 0x180006d6c
call fcn.1800099d8
mov qword [r14], r13
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xd8]
test rsi, rsi
je 0x180006da9
mov rcx, rsi
call fcn.18000c724
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180009cc0
add rsp, 0xa8
pop rsi
pop rbx
ret
mov r9d, 0x400
jmp 0x180006c00

Function at 0x180006ea0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, rdx
mov r14, rcx
test rdx, rdx
jne 0x180006ec6
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
movsxd rdi, dword [rsp + 0x30]
lea edx, [rdi + 1]
mov rsi, rax
movsxd rcx, edx
mov edx, 1
shl rcx, 3
call fcn.180009994
mov r8, rdi
mov rdx, rsi
mov rcx, rax
shl r8, 3
mov rbx, rax
call fcn.18000ade0
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov qword [r14], rbx
mov rbx, qword [rsp + 0x38]
mov rax, r14
add rsp, 0x20
pop r14
ret
Function at 0x1800075c0
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x1070
call fcn.18000d0d0
sub rsp, rax
mov rax, qword [0x18003d1b0]
xor rax, rsp
mov qword [rsp + 0x1060], rax
xor ebp, ebp
mov rbx, rcx
mov rcx, qword [rdx]
or esi, 0xffffffff
mov rdi, rdx
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rbp
test rcx, rcx
je 0x18000760c
call fcn.1800099d8
mov qword [rdi], rbp
mov rdx, rbp
lea rcx, [0x180030f18]
nop word [rax + rax]
movzx eax, word [rdx + rcx]
lea rdx, [rdx + 2]
mov word [rsp + rdx + 0x46], ax
test ax, ax
jne 0x180007620
lea rcx, [rsp + 0x48]
call fcn.1800069d0
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.180007df0
mov rbx, rax
test rax, rax
je 0x18000775e
lea rcx, [rsp + 0x40]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x180007756
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x180007756
lea rcx, [rsp + 0x60]
mov r9, rbx
mov edx, 1
mov r8d, 0x1000
call fcn.180008974
mov dword [rsp + 0x30], eax
test eax, eax
jle 0x18000770a
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x60]
xor r9d, r9d
mov r8d, eax
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x180007756
lea rcx, [rsp + 0x60]
mov r9, rbx
mov edx, 1
mov r8d, 0x1000
call fcn.180008974
mov dword [rsp + 0x30], eax
test eax, eax
jg 0x1800076d0
mov edx, 1
mov dword [rsp + 0x30], 0x14
lea ecx, [rdx + 0x13]
call fcn.180009994
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov r8, rax
mov edx, 2
mov qword [rdi], rax
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x180007754
mov rcx, qword [rdi]
test rcx, rcx
je 0x180007756
call fcn.1800099d8
mov qword [rdi], rbp
jmp 0x180007756
mov esi, ebp
mov rcx, rbx
call fcn.18000c724
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180007770
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180007780
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, esi
mov rcx, qword [rsp + 0x1060]
xor rcx, rsp
call fcn.180009cc0
mov rbx, qword [rsp + 0x10a0]
add rsp, 0x1070
pop rdi
pop rsi
pop rbp
ret
Function at 0x140fc6058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140fc61df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140fc6089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140fc606f
add dl, dl
jne 0x140fc6096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140fc60f6
xor eax, eax
add dl, dl
jne 0x140fc60a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140fc61ad
add dl, dl
jne 0x140fc60b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fc60c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fc60d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fc60dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140fc60ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140fc607e
mov eax, 1
add dl, dl
jne 0x140fc6106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fc6113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140fc60fb
sub eax, ebx
mov ebx, 1
jne 0x140fc614c
mov ecx, 1
add dl, dl
jne 0x140fc612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140fc613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140fc6123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140fc607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140fc6168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140fc6175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140fc615d
cmp eax, 0x7d00
jae 0x140fc619b
cmp eax, 0x500
jb 0x140fc6196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140fc607e
cmp eax, 0x7f
ja 0x140fc619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140fc607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140fc61d2
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 0x140fc607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001680
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x60
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor esi, esi
mov rbx, rcx
mov ecx, esi
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], cl
jne 0x1400016a7
cmp rax, 0xff
jbe 0x1400016bd
mov byte [rbx + 0xff], cl
movzx eax, byte [rbx]
mov r8d, esi
test al, al
je 0x1400016f1
mov rdx, rbx
nop word [rax + rax]
cmp al, 0x2e
jne 0x1400016dd
inc ecx
cmp ecx, 3
jg 0x1400016f1
jmp 0x1400016e3
sub al, 0x30
cmp al, 9
ja 0x1400016f1
movzx eax, byte [rdx + 1]
inc rdx
inc r8d
test al, al
jne 0x1400016d0
movsxd rax, r8d
mov qword [rsp + 0x78], rdi
cmp byte [rax + rbx], sil
jne 0x14000176e
cmp ecx, 3
jne 0x14000176e
lea rax, [rsp + 0x54]
mov rcx, rbx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x44]
lea rax, [rsp + 0x4c]
lea rdx, str._u._u._u._u__u
mov qword [rsp + 0x20], rax
call fcn.140001300
mov edi, eax
cmp eax, 4
jl 0x14000176e
mov ecx, dword [rsp + 0x44]
shl ecx, 8
xor ecx, dword [rsp + 0x48]
shl ecx, 8
xor ecx, dword [rsp + 0x4c]
shl ecx, 8
xor ecx, dword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x40], eax
cmp edi, 4
je 0x1400017f4
mov rdi, qword [0x140041950]
test rdi, rdi
je 0x1400017bc
lea r8, [rsp + 0x40]
mov rdx, rbx
mov ecx, 2
call rdi
test eax, eax
je 0x140001793
mov eax, dword [rsp + 0x40]
jmp 0x1400017f4
mov rcx, qword [0x14003eec8]
test rcx, rcx
je 0x1400017a4
call fcn.140012e54
lea r8, [rsp + 0x40]
mov rdx, rbx
mov ecx, 2
call rdi
test eax, eax
cmovne esi, dword [rsp + 0x40]
jmp 0x1400017f2
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x1400017e9
mov rcx, qword [0x14003eec8]
test rcx, rcx
je 0x1400017f2
call fcn.140012e54
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x1400017f2
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov esi, dword [rcx]
mov eax, esi
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000ad40
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret
Function at 0x140003890
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, 0xffffffffffffffff
lea rax, [0x1400036e0]
mov qword [rcx], rdi
mov r14, rcx
mov ecx, 0x128
mov qword [rdx], rdi
mov rsi, rdx
mov qword [rsp + 0x30], rax
call fcn.14000afc8
xor edx, edx
mov r8d, 0x128
mov rcx, rax
mov rbx, rax
call fcn.14000e090
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140005d70
mov rbx, rax
test rax, rax
je 0x140003aef
mov qword [rsp + 0xb0], rbp
lock inc dword [rax + 8]
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14000393f
mov rcx, qword [rbx + 0xd0]
test rcx, rcx
je 0x140003932
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
jmp 0x14000393f
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov edx, 1
lea ecx, [rdx + 1]
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, rdi
je 0x140003a74
mov ecx, 0x7f000001
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x58], 0x23290002
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [rsi]
lea r9, [rsp + 0x50]
mov edx, 6
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi]
cmp eax, edi
je 0x140003a6b
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 0x20000
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi]
cmp eax, edi
je 0x140003a6b
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x140003a01
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rsi], rdi
test rbx, rbx
je 0x140003ad7
cmp byte [rbx + 0xc0], 0
jne 0x140003ad7
mov rax, qword [rbx]
mov dl, 1
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
mov rbp, qword [rax]
lock xadd dword [rbx + 8], edi
cmp edi, 1
jne 0x140003a52
mov rcx, qword [rbx + 0xd0]
test rcx, rcx
je 0x140003a45
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
jmp 0x140003a52
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov qword [r14], rbp
cmp rbp, 0xffffffffffffffff
je 0x140003a66
cmp qword [rsi], 0xffffffffffffffff
je 0x140003a66
mov sil, 1
jmp 0x140003aaa
xor sil, sil
jmp 0x140003aaa
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rsi], rdi
xor sil, sil
test rbx, rbx
je 0x140003aaa
lock xadd dword [rbx + 8], edi
cmp edi, 1
jne 0x140003aaa
mov rcx, qword [rbx + 0xd0]
test rcx, rcx
je 0x140003a9c
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
jmp 0x140003aaa
mov r8, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [r8]
mov rbp, qword [rsp + 0xb0]
movzx eax, sil
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000ad40
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop r14
pop rdi
pop rsi
ret
mov edx, 4
lea rcx, [rsp + 0x30]
call fcn.1400035f0
mov rcx, rax
call fcn.14000cf40
int3
mov edx, 4
lea rcx, [rsp + 0x40]
call fcn.1400035f0
mov rcx, rax
call fcn.14000cf40
int3