joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10041ec60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x140
lea r12, [rcx + 0x3d8]
mov rbx, rcx
mov rcx, r12
call sub.cygwin1.dll_pthread_mutex_lock
test eax, eax
je 0x10041eca2
jmp 0x10041ece0
mov rdx, qword [rbx + 0x350]
xor r9d, r9d
mov r8d, 0x1ffc
call sub.cygwin1.dll_recv
test rax, rax
jle 0x10041ecae
mov rcx, qword [rbx + 0x348]
test rcx, rcx
jne 0x10041ec88
mov rcx, r12
call sub.cygwin1.dll_pthread_mutex_unlock
test eax, eax
jne 0x10041ed48
call qword [0x10043ff60]
mov rax, qword [rbx + 0x350]
test rax, rax
je 0x10041ecd3
mov byte [rax], 0
add rsp, 0x140
pop rbx
pop r12
pop r13
ret
call sub.cygwin1.dll___errno
lea rdx, str.clear_sock
mov dword [rsp + 0x30], 0x774
lea r13, [rsp + 0x40]
mov qword [rsp + 0x28], rdx
lea rdx, str.util.c
mov rcx, r13
lea r8, [0x100448240]
mov qword [rsp + 0x20], rdx
mov r9d, dword [rax]
mov edx, 0x100
call sub.cygwin1.dll_snprintf
mov r8d, 1
mov rdx, r13
mov ecx, 3
call fcn.100433050
mov ecx, 1
call fcn.10041d6a0
jmp 0x10041eca2
call sub.cygwin1.dll___errno
lea rdx, str.clear_sock
mov dword [rsp + 0x30], 0x77b
lea r12, [rsp + 0x40]
mov qword [rsp + 0x28], rdx
lea rdx, str.util.c
mov rcx, r12
lea r8, [0x100448270]
mov qword [rsp + 0x20], rdx
mov r9d, dword [rax]
mov edx, 0x100
call sub.cygwin1.dll_snprintf
mov r8d, 1
mov rdx, r12
mov ecx, 3
call fcn.100433050
mov ecx, 1
call fcn.10041d6a0
jmp 0x10041ecbe
Function at 0x100422100
Capabilities:
Get socket status

Disassembly:
mov rax, qword [rcx + 0x350]
cmp byte [rax], 0
je 0x100422118
mov eax, 1
ret
mov rcx, qword [rcx + 0x348]
xor edx, edx
jmp fcn.10041ebe0
Function at 0x100425310
Capabilities:
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x398
mov eax, 0x104
mov rbx, rcx
mov rcx, qword [rcx + 0x340]
mov esi, edx
mov edi, r8d
mov word [rsp + 0x180], ax
lea r12, [rsp + 0x180]
lea r13, [rsp + 0x80]
call sub.cygwin1.dll_atoi
mov rcx, qword [rbx + 0x360]
rol ax, 8
mov word [rsp + 0x182], ax
movabs rax, 0x52454e494d4743
mov qword [rsp + 0x188], rax
call sub.cygwin1.dll_inet_addr
bswap eax
cmp eax, 0xffffffff
je 0x100425480
xor r9d, r9d
mov r8d, 0x10
mov rdx, r12
mov ecx, esi
bswap eax
mov dword [rsp + 0x184], eax
call sub.cygwin1.dll_send
xor r9d, r9d
mov r8d, 1
mov rdx, r13
mov ecx, esi
call sub.cygwin1.dll_recv
cmp rax, 0xffffffffffffffff
je 0x1004253c5
cmp byte [rsp + 0x80], 0
je 0x100425430
mov rax, qword [0x10044d200]
cmp byte [rax], 0
jne 0x1004253e1
mov rax, qword [0x10044cf80]
cmp byte [rax], 0
je 0x100425568
mov rax, qword [rbx + 0x370]
lea r8, str.Bad_response_from__s:_s_SOCKS4_server
mov edx, 0x100
mov rcx, r13
mov qword [rsp + 0x20], rax
mov r9, qword [rbx + 0x368]
call sub.cygwin1.dll_snprintf
xor r8d, r8d
mov rdx, r13
mov ecx, 4
call fcn.100433050
xor eax, eax
add rsp, 0x398
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
xor r9d, r9d
mov r8d, 1
mov rdx, r13
mov ecx, esi
call sub.cygwin1.dll_recv
cmp rax, 0xffffffffffffffff
je 0x1004253c5
cmp byte [rsp + 0x80], 0x5a
jne 0x1004253c5
mov ebx, 6
xor r9d, r9d
mov r8d, 1
mov rdx, r13
mov ecx, esi
call sub.cygwin1.dll_recv
sub ebx, 1
jne 0x100425460
mov eax, 1
jmp 0x10042541a
lea rax, [rsp + 0x50]
xor edx, edx
lea r9, [rsp + 0x48]
mov r8, r13
mov rcx, qword [rbx + 0x360]
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0x84], 2
call sub.cygwin1.dll_getaddrinfo
test eax, eax
jne 0x100425580
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx + 0x20]
mov eax, dword [rax + 4]
bswap eax
mov dword [rsp + 0x3c], eax
call sub.cygwin1.dll_freeaddrinfo
mov eax, dword [rsp + 0x3c]
cmp eax, 0xffffffff
jne 0x100425386
mov rax, qword [0x10044d200]
cmp byte [rax], 0
jne 0x100425543
mov rax, qword [0x10044cf80]
cmp byte [rax], 0
jne 0x100425543
mov rax, qword [0x10044cf70]
cmp dword [rax], 3
jle 0x100425578
mov r9, qword [rbx + 0x360]
lea r8, str.Invalid_IP_address_specified_for_socks4_proxy:__s
mov edx, 0x100
mov rcx, r13
call sub.cygwin1.dll_snprintf
jmp 0x100425408
mov rax, qword [0x10044cf70]
cmp dword [rax], 3
jg 0x1004253e1
xor eax, eax
jmp 0x10042541a
test dil, dil
je 0x10042551f
mov r14, qword [rbx + 0x360]
mov edi, 0xff
mov dword [rsp + 0x184], 0x1000000
mov rcx, r14
call sub.cygwin1.dll_strlen
mov dword [rsp + 0x28], 0xb98
mov rdx, r14
lea rcx, [rsp + 0x190]
cmp eax, 0xff
lea r9, str.util.c
cmovle edi, eax
lea rax, str.socks4_negotiate
mov qword [rsp + 0x20], rax
mov r8d, edi
call fcn.100423600
lea eax, [rdi + 0x10]
lea r8d, [rdi + 0x11]
xor r9d, r9d
cdqe
movsxd r8, r8d
mov rdx, r12
mov ecx, esi
mov byte [rsp + rax + 0x180], 0
call sub.cygwin1.dll_send
jmp 0x1004253a2
Function at 0x100428730
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x158
mov qword [rsp + 0x1a0], rcx
mov qword [rsp + 0x1a8], rdx
mov dword [rsp + 0x1b0], r8d
test r8d, r8d
jle 0x10042898b
lea rax, [rsp + 0x90]
mov dword [rsp + 4], 0
lea r12, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea r13, [0x10043ff80]
mov qword [rsp + 8], rax
mov rax, rcx
lea r14, [rsp + 0x110]
add rax, 0x88
mov qword [rsp + 0x20], rax
nop dword [rax]
mov ecx, dword [rsp + 4]
mov r10, qword [rsp + 0x28]
mov rdx, r12
mov r8, r12
shl ecx, 6
movsxd rcx, ecx
add rcx, qword [rsp + 0x1a8]
nop dword [rax]
movzx eax, byte [rcx + 2]
movzx r9d, byte [rcx + 1]
add r8, 4
add rcx, 4
shl r9d, 0x10
shl eax, 8
or eax, r9d
movzx r9d, byte [rcx - 1]
or eax, r9d
movzx r9d, byte [rcx - 4]
shl r9d, 0x18
or eax, r9d
mov dword [r8 - 4], eax
cmp r10, r8
jne 0x1004287c8
mov eax, dword [rdx + 0x38]
mov r9d, dword [rdx + 4]
add rdx, 4
mov ecx, eax
mov r8d, eax
shr eax, 0xa
rol r8d, 0xd
rol ecx, 0xf
xor ecx, r8d
mov r8d, r9d
xor ecx, eax
mov eax, dword [rdx - 4]
add eax, dword [rdx + 0x20]
rol r8d, 0xe
add ecx, eax
mov eax, r9d
shr r9d, 3
ror eax, 7
xor eax, r8d
xor eax, r9d
add eax, ecx
mov dword [rdx + 0x3c], eax
cmp rdx, r14
jne 0x100428800
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 8]
xor r10d, r10d
mov rax, qword [rdi]
mov rdx, qword [rdi + 8]
mov qword [rsi], rax
mov r9d, eax
mov ebx, dword [rsp + 0x34]
mov qword [rsi + 8], rdx
movdqu xmm0, xmmword [rdi + 0x10]
mov r11d, dword [rsp + 0x38]
mov ebp, dword [rsp + 0x3c]
movaps xmmword [rsi + 0x10], xmm0
mov edx, dword [rsp + 0x4c]
mov r8d, dword [rsp + 0x40]
mov edi, dword [rsp + 0x44]
mov esi, dword [rsp + 0x48]
movaps xmmword [rsp + 0x10], xmm0
jmp 0x1004288a9
mov r11d, ebx
mov esi, edi
mov ebx, r9d
mov edi, r8d
mov r9d, eax
mov r8d, r15d
mov ecx, r8d
mov r15d, r8d
mov eax, r8d
ror r15d, 0xb
ror ecx, 6
not eax
xor ecx, r15d
mov r15d, r8d
and eax, esi
rol r15d, 7
xor r15d, ecx
mov ecx, dword [r12 + r10]
add ecx, dword [r13 + r10]
add r10, 4
add ecx, r15d
mov r15d, r8d
and r15d, edi
xor eax, r15d
mov r15d, r11d
add eax, ecx
mov ecx, r9d
and r15d, ebx
add eax, edx
mov edx, r9d
ror ecx, 0xd
ror edx, 2
xor edx, ecx
mov ecx, r9d
rol ecx, 0xa
xor edx, ecx
mov ecx, r11d
xor ecx, ebx
and ecx, r9d
xor ecx, r15d
lea r15d, [rbp + rax]
mov ebp, r11d
add edx, ecx
add eax, edx
mov edx, esi
cmp r10, 0x100
jne 0x100428898
mov dword [rsp + 0x44], r8d
mov rcx, qword [rsp + 0x1a0]
xor edx, edx
mov dword [rsp + 0x4c], esi
mov r8, qword [rsp + 8]
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x3c], r11d
jmp 0x100428964
mov eax, dword [r8 + rdx]
add dword [rcx + rdx + 0x88], eax
add rdx, 4
cmp rdx, 0x20
jne 0x100428960
add dword [rsp + 4], 1
mov eax, dword [rsp + 4]
cmp eax, dword [rsp + 0x1b0]
jne 0x1004287a8
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1004289a0
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
lea r8, [0x100440080]
nop dword [rax]
mov edx, dword [r8 + rax]
mov dword [rcx + rax + 0x88], edx
add rax, 4
cmp rax, 0x20
jne 0x1004289b0
mov qword [rcx], 0
ret

Function at 0x100428c50
Capabilities:
Hash data using sha256

Disassembly:
push r13
push r12
sub rsp, 0xd8
movdqa xmm0, xmmword [0x100440080]
movdqa xmm1, xmmword [0x100440090]
lea r13, [rsp + 0x20]
mov r12, r8
mov r8d, edx
mov rdx, rcx
mov rcx, r13
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0xb8], xmm1
mov qword [rsp + 0x20], 0
call fcn.1004289d0
mov rdx, r12
mov rcx, r13
call fcn.100428b30
nop
add rsp, 0xd8
pop r12
pop r13
ret

Function at 0x100429410
Capabilities:
Convert ip address from string
Resolve dns

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
mov r9d, 0x1216
mov rbx, rcx
mov rsi, rdx
mov ecx, 0x2e
mov rdi, r8
lea rdx, str.api.c
lea r8, str.check_connect
call fcn.10041f2e0
mov r9d, 0x2e
mov edx, pe_nt_image_headers64
mov rcx, rbx
mov qword [rsi], rax
mov r8, rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call sub.cygwin1.dll_getnameinfo
cmp word [rbx], 2
je 0x10042951d
lea rbx, [rsp + 0x40]
mov rdx, qword [rsi]
mov ecx, 0x17
mov r8, rbx
call sub.cygwin1.dll_inet_pton
call sub.cygwin1.dll___locale_ctype_ptr
mov ecx, 0x52
call sub.cygwin1.dll_toupper
mov byte [rdi], al
mov rax, qword [0x10044ce30]
cmp qword [rax], 0
je 0x10042954e
mov eax, dword [0x100454c00]
test eax, eax
jle 0x100429511
mov rcx, qword [0x100454c08]
sub eax, 1
lea rax, [rax + rax*8]
lea r9, [rcx + rax*4 + 0x24]
xor eax, eax
nop word [rax + rax]
movzx edx, byte [rbx + rax]
and dl, byte [rcx + rax + 0x10]
cmp dl, byte [rcx + rax]
jne 0x100429508
add rax, 1
cmp rax, 0x10
jne 0x1004294d8
movzx eax, byte [rcx + 0x20]
mov byte [rdi], al
mov eax, 1
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
ret
add rcx, 0x24
cmp rcx, r9
jne 0x1004294d0
xor eax, eax
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
ret
mov r8, qword [rsi]
lea r12, [rsp + 0x50]
lea rbx, [rsp + 0x40]
mov rcx, r12
lea rdx, str.::ffff:_s
call sub.cygwin1.dll_sprintf
mov r8, rbx
mov rdx, r12
mov ecx, 0x17
call sub.cygwin1.dll_inet_pton
jmp 0x100429491
mov rax, qword [0x10044ced0]
movzx eax, byte [rax]
test al, al
jne 0x1004294fa
mov rsi, qword [rsi]
mov ecx, 0xa
lea rdi, str.127.0.0.1
repe cmpsb byte [rsi], byte [rdi]
seta dl
sbb dl, 0
test dl, dl
je 0x1004294f5
mov edx, dword [rsp + 0x40]
or edx, dword [rsp + 0x44]
or edx, dword [rsp + 0x48]
jne 0x1004294fa
cmp dword [rsp + 0x4c], 0x1000000
sete al
jmp 0x1004294fa
Function at 0xc6f450
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xc6f45d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xc6f46d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xc6f455
lea eax, [rcx + 1]
jmp 0xc6f47b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xc6f48e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xc6f474
sub eax, 3
jb 0xc6f4ae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xc6f4fd
sar eax, 1
movsxd rbp, eax
jb 0xc6f4e4
jmp 0xc6f4bc
add ebx, ebx
jne 0xc6f4ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xc6f4e4
inc ecx
add ebx, ebx
jne 0xc6f4ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xc6f4e4
call r11
adc ecx, ecx
add ebx, ebx
jne 0xc6f4dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xc6f4cc
add ecx, 2
jmp 0xc6f4e9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00c6f412
jmp 0xc6f45d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x338400
mov dl, 0x8c
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xc6f549
cmp rsi, rcx
jae 0xc6f551
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xc6f530
cmp al, 0x8f
ja 0xc6f530
cmp byte [rsi - 2], 0xf
je 0xc6f536
sub al, 0xe8
cmp al, 1
ja 0xc6f51a
cmp rsi, rcx
jae 0xc6f551
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xc6f520
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xc6f551
lodsb al, byte [rsi]
jmp 0xc6f530
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x866000]
mov eax, dword [rdi]
or eax, eax
je 0xc6f5ae
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x86f000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xc6f55e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xc6f5a8
mov qword [rbx], rax
add rbx, 8
jmp 0xc6f57e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xc6f5f2
cmp al, 0xef
ja 0xc6f5da
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xc6f5ba
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xc6f5c9
mov eax, dword [rdi]
add rdi, 4
jmp 0xc6f5c9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xc6f646
sub rsp, 0xffffffffffffff80
jmp 0x468c20
Function at 0x140001330
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
lea rcx, str.test
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
xor al, al
add rsp, 0x28
ret

Function at 0x140001350
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor ecx, ecx
mov dword [rsp + 0x20], ecx
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi], rcx
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rcx
mov dword [rsp + 0x20], 1
lea rdx, [rsp + 0x50]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea rbx, [rsp + 0x50]
cmp byte [rsp + 0x50], 0
je 0x140001468
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x140001448
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140002470
nop
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140001402
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [rdx + 0x10], xmm1
mov edx, 0xf
mov byte [rsp + 0x28], 0
add qword [rdi + 8], 0x20
jmp 0x140001414
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.140003400
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140001448
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001443
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000148c
call fcn.1400039c8
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rbx + rax], 0
jne 0x140001450
inc rbx
add rbx, rax
cmp byte [rbx], 0
jne 0x1400013b6
mov rax, rdi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140003720
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400014a0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x1060
call fcn.140004760
sub rsp, rax
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
lea rcx, str.Downloader
mov edx, 1
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rsi, rax
test rax, rax
jne 0x14000150d
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.InternetOpen_failed._n
call fcn.1400029b0
xor al, al
jmp 0x14000163f
cmp qword [rbx + 0x18], 0xf
jbe 0x140001517
mov rbx, qword [rbx]
mov qword [rsp + 0x28], rbp
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x80000000
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbx, rax
test rax, rax
jne 0x140001561
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.InternetOpenUrl_failed._n
call fcn.1400029b0
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x14000163f
cmp qword [rdi + 0x18], 0xf
jbe 0x14000156b
mov rdi, qword [rdi]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400015c6
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.CreateFile_failed._n
call fcn.1400029b0
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x14000163f
lea r9, [rsp + 0x40]
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140001622
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x140001622
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rbp
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x40]
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1400015e3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140003720
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1060
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004170
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x20
mov edi, ecx
mov ecx, 0xa2
call fcn.180020580
call rax
mov ecx, 0xd4
mov rbx, rax
call fcn.180020580
lea r8, [rbp + 0x18]
mov edx, 0x28
mov rcx, rbx
call rax
mov ebx, eax
test eax, eax
je 0x180003cfb
mov rbx, qword [rbp + 0x18]
mov ecx, 0xcc
call fcn.180020580
lea r8, [rbp + 0x20]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call rax
test eax, eax
je 0x180003c58
lea r8, [rbp + 0x20]
mov edx, edi
mov rcx, rbx
call fcn.180003a6c
mov rbx, qword [rbp + 0x18]
mov ecx, 0xcc
call fcn.180020580
lea r8, [rbp + 0x20]
xor ecx, ecx
lea rdx, str.SeImpersonatePrivilege
call rax
test eax, eax
je 0x180003c87
lea r8, [rbp + 0x20]
mov edx, edi
mov rcx, rbx
call fcn.180003a6c
mov rbx, qword [rbp + 0x18]
mov ecx, 0xcc
call fcn.180020580
lea r8, [rbp + 0x20]
xor ecx, ecx
lea rdx, str.SeAssignPrimaryTokenPrivilege
call rax
test eax, eax
je 0x180003cb6
lea r8, [rbp + 0x20]
mov edx, edi
mov rcx, rbx
call fcn.180003a6c
mov rbx, qword [rbp + 0x18]
mov ecx, 0xcc
call fcn.180020580
lea r8, [rbp + 0x20]
xor ecx, ecx
lea rdx, str.SeTcbPrivilege
call rax
test eax, eax
je 0x180003ce9
lea r8, [rbp + 0x20]
mov edx, edi
mov rcx, rbx
call fcn.180003a6c
mov ebx, eax
jmp 0x180003ceb
xor ebx, ebx
mov ecx, 0x40
call fcn.180020580
mov rcx, qword [rbp + 0x18]
call rax
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rbp
ret

Function at 0x180007204
Capabilities:
Enumerate gui resources

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
lea rdx, [rsp + 0x20]
lea rcx, [0x1800071a4]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret
Function at 0x18000955c
Capabilities:
Enumerate processes

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x280
mov dword [rsp + 0x20], 0
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x180009627
mov dword [rsp + 0x40], 0
lea rax, [rsp + 0x44]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
mov dword [rsp + 0x40], 0x238
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x18000961c
lea rdx, [rsp + 0x6c]
mov rcx, qword [rsp + 0x290]
call fcn.180034910
test eax, eax
jne 0x180009608
lea rdx, [rsp + 0x30]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x180009608
mov eax, dword [rsp + 0x298]
cmp dword [rsp + 0x30], eax
jne 0x180009608
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
jmp 0x18000961c
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1800095c8
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x20]
add rsp, 0x280
pop rdi
ret
Function at 0x18000d1f4
Capabilities:
Allocate or change rwx memory
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov edx, 0x1340
xor ecx, ecx
mov r8d, 0x3000
mov ebp, r15d
lea r9d, [r15 + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor edx, edx
mov rbx, rax
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18000d248
or eax, 0xffffffff
jmp 0x18000d331
lea rsi, [rbx + 0x1108]
mov rcx, rdi
mov rdx, rsi
mov dword [rsi], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x18000d315
mov rcx, rbx
call fcn.18000d054
cmp dword [rbx + 0x1110], 8
jbe 0x18000d301
lea r8, [rbx + 0x1134]
mov r10d, r15d
cmp word [r8], r15w
je 0x18000d2b9
mov r9, r8
mov rcx, r8
movzx edx, word [r9]
lea eax, [rdx - 0x41]
cmp ax, 0x19
ja 0x18000d2a9
add dx, 0x20
mov word [r9], dx
add rcx, 2
inc r10d
mov r9, rcx
cmp word [rcx], r15w
jne 0x18000d294
mov qword [rsp + 0x38], r15
lea r14, [rbx + 0x1000]
mov qword [rsp + 0x30], r15
mov r9d, r10d
mov dword [rsp + 0x28], r10d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdx, eax
test eax, eax
je 0x18000d301
mov r8, rbx
mov byte [rdx + rbx + 0x1000], r15b
mov rcx, r14
call fcn.18000cf20
mov ebp, eax
test eax, eax
jne 0x18000d315
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x18000d271
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, ebp
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x18000ffe0
Capabilities:
Encrypt data using aes via x86 extensions
Resolve function by parsing pe exports

Disassembly:
add edx, 0xfffffff0
cmp edx, 0xf0
ja case.0x180010009.17
movsxd rax, edx
lea r9, [0x180000000]
movzx eax, byte [r9 + rax + 0x1003c]
mov edx, dword [r9 + rax*4 + 0x1002c]
add rdx, r9
jmp rdx
mov rdx, r8
jmp fcn.180010280
mov rdx, r8
jmp fcn.180010550
mov rdx, r8
jmp fcn.1800108a0
mov eax, 1
ret