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

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x14010d268]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r12, qword [rsp + 0xe0]
mov rsi, r9
mov r14, r8
mov r15, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x1400044b8
mov eax, 0x1000000
jmp 0x1400046a6
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x1400044d4
mov eax, 0x200
jmp 0x1400046a6
mov r8d, dword [rsp + 0x40]
mov r9d, r8d
and r9d, 1
mov qword [rsp + 0x88], rbx
mov eax, r8d
mov qword [rsp + 0x80], rbp
mov ecx, r9d
or ecx, 2
and al, 2
mov eax, r8d
cmove ecx, r9d
mov edx, ecx
or edx, 4
and al, 4
cmove edx, ecx
mov ecx, r8d
mov eax, edx
or eax, 0x10
and ecx, 0x10
cmove eax, edx
mov edx, 0x81000000
mov ebx, eax
or ebx, 0x20
and r8b, 0x20
cmove ebx, eax
test ecx, ecx
mov eax, 0x41000000
cmove eax, edx
or ebx, eax
test r9d, r9d
jne 0x140004540
bts ebx, 0x17
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp eax, 0x28
jbe 0x140004629
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], 0
mov r8d, 2
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x24]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], 0
mov r8d, 4
lea rdx, [rsp + 0x34]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [rsp + 0x30], ax
jne 0x140004629
mov edx, dword [rsp + 0x34]
lea eax, [rdx + 0x34]
cmp ebp, eax
jbe 0x140004629
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], 0
mov r8d, 4
lea rdx, [rsp + 0x3c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x3c]
cmp eax, 0x5a4d
je 0x140004625
add eax, 0xffffbab4
cmp eax, 4
ja 0x140004629
mov ecx, reloc.WS2_32.dll_setsockopt
bt ecx, eax
jae 0x140004629
bts ebx, 0x16
test r15, r15
je 0x140004631
mov dword [r15], ebx
mov rbx, qword [rsp + 0x88]
test r14, r14
je 0x140004641
mov dword [r14], ebp
mov rbp, qword [rsp + 0x80]
test rsi, rsi
je 0x140004677
mov rcx, qword [rsp + 0x4c]
call fcn.140005f30
mov rcx, qword [rsp + 0x54]
mov qword [rsi], rax
call fcn.140005f30
mov rcx, qword [rsp + 0x44]
mov qword [rsi + 8], rax
call fcn.140005f30
mov qword [rsi + 0x10], rax
test r12, r12
je 0x1400046a4
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x54]
call qword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx ecx, word [rsp + 0x30]
movzx eax, word [rsp + 0x34]
shl ecx, 0x10
or ecx, eax
mov dword [r12], ecx
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14005f850
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140004900
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
movsxd r15, dword [rdx + 0x1c]
xor edi, edi
mov rsi, qword [rdx]
mov ebp, 0xffffffff
mov r11, qword [rdx + 8]
mov r14, rdx
mov dword [rcx + 0x192c], edi
mov rbx, rcx
mov dword [rcx + 0x1930], 0x23d
mov r8d, edi
lea r12d, [rbp + 2]
mov r9d, edi
test r15d, r15d
jle 0x14000499f
mov edx, edi
cmp word [rsi + rdx*4], di
je 0x140004982
movsxd rcx, dword [rbx + 0x192c]
mov ebp, r8d
lea eax, [rcx + 1]
mov dword [rbx + 0x192c], eax
mov dword [rbx + rcx*4 + 0x103c], r8d
mov byte [rdx + rbx + 0x1934], dil
jmp 0x140004987
mov word [rsi + rdx*4 + 2], di
inc r8d
inc rdx
cmp rdx, r15
jl 0x140004957
mov r9d, dword [rbx + 0x192c]
cmp r9d, 2
jge 0x140004a10
movsxd r10, ebp
cmp ebp, 2
lea rax, [r10 + 1]
mov edx, ebp
lea r8, [r10 + 1]
cmovge rax, r10
cmovge r8, rdi
mov r10, rax
lea eax, [rbp + 1]
cmovge eax, ebp
cmp edx, 2
mov ebp, eax
lea ecx, [rdx + 1]
cmovge ecx, edi
lea eax, [r9 + 1]
mov dword [rbx + 0x192c], eax
movsxd rax, r9d
mov dword [rbx + rax*4 + 0x103c], ecx
mov word [rsi + r8*4], r12w
mov byte [rbx + r8 + 0x1934], dil
dec dword [rbx + 0x1af70]
test r11, r11
je 0x140004a03
movzx eax, word [r11 + r8*4 + 2]
sub dword [rbx + 0x1af74], eax
mov r9d, dword [rbx + 0x192c]
cmp r9d, 2
jl 0x1400049a2
mov dword [r14 + 0x24], ebp
mov ecx, dword [rbx + 0x192c]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov edi, eax
cmp eax, r12d
jl 0x140004a50
nop dword [rax + rax]
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call fcn.140007420
dec edi
cmp edi, r12d
jge 0x140004a30
mov ecx, dword [rbx + 0x192c]
nop dword [rax + rax]
movsxd rdi, dword [rbx + 0x103c]
mov r8d, r12d
movsxd rax, ecx
mov rdx, rsi
mov ecx, dword [rbx + rax*4 + 0x1038]
mov dword [rbx + 0x103c], ecx
mov rcx, rbx
dec dword [rbx + 0x192c]
call fcn.140007420
movsxd rdx, dword [rbx + 0x103c]
movsxd rcx, dword [rbx + 0x1930]
mov r8, rdx
movsxd r9, r15d
lea eax, [rcx - 1]
mov dword [rbx + 0x1930], eax
mov dword [rbx + rcx*4 + 0x1034], edi
movsxd rcx, dword [rbx + 0x1930]
lea eax, [rcx - 1]
mov dword [rbx + 0x1930], eax
mov dword [rbx + rcx*4 + 0x1034], edx
mov rcx, rbx
movzx eax, word [rsi + rdx*4]
add ax, word [rsi + rdi*4]
mov word [rsi + r9*4], ax
movzx edx, byte [rdi + rbx + 0x1934]
movzx eax, byte [r8 + rbx + 0x1934]
cmp dl, al
cmovb edx, eax
inc dl
mov byte [rbx + r9 + 0x1934], dl
mov rdx, rsi
mov word [rsi + r8*4 + 2], r15w
mov r8d, r12d
mov word [rsi + rdi*4 + 2], r15w
mov dword [rbx + 0x103c], r15d
inc r15d
call fcn.140007420
mov ecx, dword [rbx + 0x192c]
cmp ecx, 2
jge 0x140004a50
movsxd rcx, dword [rbx + 0x1930]
mov rdx, r14
lea eax, [rcx - 1]
mov dword [rbx + 0x1930], eax
mov eax, dword [rbx + 0x103c]
mov dword [rbx + rcx*4 + 0x1034], eax
mov rcx, rbx
call fcn.1400066e0
mov r8d, ebp
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
jmp fcn.140006910
Function at 0x140004d00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10, r8
mov r9, rdx
test rdx, rdx
jne 0x140004d16
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
lea rbx, [0x1400c6950]
not ecx
cmp r10, 8
jb 0x140004e04
mov r11, r10
shr r11, 3
imul rax, r11, 0xfffffffffffffff8
add r10, rax
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 7]
add r9, 8
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
sub r11, 1
jne 0x140004d40
test r10, r10
je 0x140004e30
nop dword [rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
sub r10, 1
jne 0x140004e10
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret
Function at 0x140007f10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbp, rdx
mov rcx, qword [rcx + 0x88]
test rcx, rcx
je 0x140007f7c
mov eax, dword [rdi + 0x94]
mov esi, dword [rdi + 0x90]
cmp eax, esi
jae 0x140007fc0
sub esi, eax
lea rdx, [rcx + rax]
cmp esi, r8d
mov rcx, rbp
cmova esi, r8d
mov r8d, esi
call fcn.1400bd846
mov ecx, dword [rdi + 0x70]
mov rdx, rbp
add dword [rdi + 0x94], esi
add dword [rdi + 0x6c], esi
mov r8d, esi
call fcn.140004d00
mov dword [rdi + 0x70], eax
mov eax, esi
jmp 0x140007fc2
mov rcx, qword [rdi + 0x78]
test rcx, rcx
je 0x140007fb9
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140007fc0
mov ebx, dword [rsp + 0x40]
mov rdx, rbp
add dword [rdi + 0x6c], ebx
mov r8d, ebx
mov ecx, dword [rdi + 0x70]
call fcn.140004d00
mov dword [rdi + 0x70], eax
mov eax, ebx
jmp 0x140007fc2
mov dword [rdi + 0x14], 0x1000000
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140008720
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov r9, qword [rcx + 0x20]
mov rbx, rcx
mov edi, r8d
test r9, r9
je 0x140008773
mov ecx, dword [rcx + 0x28]
lea eax, [rcx + rdi]
cmp eax, dword [rbx + 0x2c]
jb 0x140008758
mov dword [rbx + 0x14], 0x30000
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov r8, rdi
add rcx, r9
call fcn.1400bd846
add dword [rbx + 0x28], edi
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400087a1
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov dword [rbx + 0x14], 0x1000000
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000b8c0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x14000b975
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x14000b941
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b960
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000b960
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rdi + 8], 0
je 0x14000b960
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp byte [0x140111360], 0
jne 0x14000b9c0
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b9b0
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140111358], rax
mov byte [0x140111360], 1
jmp 0x14000b9c7
mov rax, qword [0x140111358]
mov byte [0x140111360], 1
jmp 0x14000b9c7
mov rax, qword [0x140111358]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x14000b94a
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp rax

Function at 0x14000bda0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14010d268]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, r8
mov qword [rsp + 0x28], rdx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor edi, edi
mov dword [rsp + 0x20], 0x104
mov rdx, rax
mov word [rsp + 0x40], di
lea r9, [rsp + 0x40]
lea r8, [0x1400c70c0]
lea rcx, str.Bugsplat
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov qword [rbx + 0x10], rdi
lea rax, [rsp + 0x40]
mov qword [rbx + 0x18], 7
mov r8, 0xffffffffffffffff
mov word [rbx], di
inc r8
cmp word [rax + r8*2], di
jne 0x14000be15
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400143b0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14005f850
mov rbx, qword [rsp + 0x288]
add rsp, 0x260
pop rdi
ret
Function at 0x140010200
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set current directory

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x4a0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14010d268]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov rbx, rdx
mov rdi, rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x140010241
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400103dc
test al, 0x10
jne 0x1400103dc
xor esi, esi
mov qword [rsp + 0x20], rsi
cmp qword [rbx + 0x18], 8
jb 0x140010269
mov rbx, qword [rbx]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x280]
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
movdqa xmm0, xmmword [0x1400c8c30]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], si
lea rax, [rsp + 0x280]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x1400102a6
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x50]
call fcn.1400143b0
nop
mov rax, qword [rsp + 0x20]
mov word [rax], si
lea rdx, [rsp + 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop
movdqa xmm0, xmmword [0x1400c8c30]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], si
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400109a0
test al, al
jne 0x140010317
xor bl, bl
jmp 0x14001032d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000f2e0
movzx ebx, al
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140010372
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001036d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001036d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005f1b8
movdqa xmm0, xmmword [0x1400c8c30]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], si
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1400103d7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400103d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400103d1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005f1b8
nop
movzx eax, bl
jmp 0x140010422
add rdi, 0x18
xor r8d, r8d
lea rdx, [0x1400c70c0]
mov rcx, rdi
call fcn.1400143b0
mov r8d, reloc.WS2_32.dll_recv
lea rdx, str.File_not_found:
mov rcx, rdi
call fcn.1400140d0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140010414
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rdi
call fcn.1400140d0
xor al, al
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.14005f850
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140010ef0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14010d268]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x48], rbp
mov r8, rdx
mov dword [rsp + 0x50], ebp
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x58], rbp
lea rcx, [rsp + 0x48]
call fcn.14000f1e0
mov ebx, eax
test eax, eax
jne 0x140011007
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140010fe1
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140010ef0
mov ebx, eax
test eax, eax
jne 0x140011007
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140010f90
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140010ff6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rdx, rsi
mov dword [rsp + 0x50], ebp
mov rcx, rdi
call fcn.14000b8c0
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140011017
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14005f850
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140011520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x14010d268]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400115ae
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400115ae
call fcn.14000b3a0
mov ebx, eax
jmp 0x1400116d3
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400115cf
call fcn.14000b3a0
jmp 0x1400116c2
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400115f2
call fcn.14000b3a0
jmp 0x1400116c2
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140011614
mov ebx, 0x8007000e
jmp 0x1400116c4
mov ecx, eax
test eax, eax
je 0x140011649
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14001170b
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140011649
lea rcx, [rsp + 0x70]
call fcn.14000b280
jmp 0x140011653
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140011666
cmp qword [rsp + 0x70], 0
jne 0x140011675
mov ebx, 0x8007000e
jmp 0x1400116c4
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14001169f
call fcn.14000b3a0
jmp 0x1400116c2
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140011040
mov ebx, eax
test rdi, rdi
je 0x1400116d3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400116ea
lea rcx, [rsp + 0x70]
call fcn.14000bd30
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14005f850
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140001ff0
int3
Function at 0x140019ad0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push rdi
sub rsp, 0x2f0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x300], rbx
mov rax, qword [0x14010d268]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov rdi, rdx
mov qword [rsp + 0x20], rdx
call fcn.140002320
mov rcx, rax
test rax, rax
je 0x140019c6a
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rdx, str.0.0.0.0
lea rcx, [rsp + 0x20]
cmp rdx, 0x10000
jae 0x140019b43
movzx edx, dx
call fcn.1400027a0
jmp 0x140019b49
call fcn.1400181b0
nop
mov ecx, 2
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, 0x100
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x140019bbb
mov rbx, qword [rsp + 0x20]
lea rcx, [rbx - 0x18]
call fcn.140002030
add rax, 0x18
mov qword [rdi], rax
mov eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x140019c46
mov rcx, qword [rbx - 0x18]
mov r8, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rreloc.WS2_32.dll_htonl + 8]
jmp 0x140019c46
movsx r8, word [rax + 0x12]
mov rdx, qword [rax + 0x18]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x34]
call fcn.1400bd846
mov ecx, reloc.WS2_32.dll_recvfrom
call fcn.14005f8e4
mov rbx, rax
mov ecx, dword [rsp + 0x34]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, rax
mov edx, reloc.WS2_32.dll_recvfrom
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1400181b0
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, rbx
call fcn.14005f1b8
mov rbx, qword [rsp + 0x20]
lea rcx, [rbx - 0x18]
call fcn.140002030
add rax, 0x18
mov qword [rdi], rax
mov eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x140019c46
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, rdi
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.14005f850
mov rbx, qword [rsp + 0x300]
add rsp, 0x2f0
pop rdi
ret
mov ecx, 0x80004005
call fcn.140001ff0
int3
Function at 0x14001a240
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rdi, rcx
mov ecx, dword [rcx + 0x90]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x14001a2b5
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x30], rcx
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
movsxd rcx, eax
mov qword [rsp + 0x38], rcx
mov rcx, qword [rdi + 8]
mov dword [rsp + 0x40], 0xfffffffe
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov rcx, qword [rdi + 8]
movsxd rbx, eax
call qword [sym.imp.USER32.dll_GetParent]
mov r8, rbx
lea r9, [rsp + 0x30]
mov rcx, rax
mov edx, 0x4e
call qword [sym.imp.USER32.dll_SendMessageW]
mov al, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
shr ecx, 2
test cl, 1
je 0x14001a2f6
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov rcx, qword [rdi + 8]
mov ebx, eax
call qword [sym.imp.USER32.dll_GetParent]
mov r9, qword [rdi + 8]
mov edx, VarUI4FromDisp
mov rcx, rax
movzx r8d, bx
call qword [sym.imp.USER32.dll_SendMessageW]
mov al, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov r8, qword [rdi + 0x50]
lea rdx, str.open
mov dword [rsp + 0x28], 1
xor r9d, r9d
xor ecx, ecx
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
seta bl
jbe 0x14001a33d
or byte [rdi + 0x94], 2
xor edx, edx
mov rcx, qword [rdi + 8]
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
movzx eax, bl
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x14001b460
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14010d268]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001b50c
cmp byte [rcx + 0x71], 0
je 0x14001b50c
mov rax, qword [rcx]
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001b4cd
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14001b4d1
sub eax, 1
je 0x14001b4d5
sub eax, 2
je 0x14001b50c
xor al, al
jmp 0x14001b50e
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001b503
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14001b4cd
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001b50e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005f850
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret