joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001a8a0
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x18003db28]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r12, rdx
lea rdx, [rsp + 0x20]
mov r14, rcx
call fcn.18001a250
mov ebx, 0x40
lea rdx, [r14 + 0x98]
mov r8d, ebx
mov rcx, r14
mov qword [r14], 0
mov dword [r14 + 8], 0x67452301
mov dword [r14 + 0xc], 0xefcdab89
mov dword [r14 + 0x10], 0x98badcfe
mov dword [r14 + 0x14], 0x10325476
call fcn.18001a180
mov eax, dword [r14]
mov edi, 0x10
mov r15d, eax
lea rsi, [rsp + 0x20]
and r15d, 0x3f
add eax, edi
mov ebp, edi
sub ebx, r15d
mov dword [r14], eax
cmp eax, edi
jae 0x18001a939
inc dword [r14 + 4]
test r15d, r15d
je 0x18001a9a9
cmp rbx, rdi
ja 0x18001a9a9
mov eax, r15d
lea rcx, [r14 + 0x18]
lea rdx, [rsp + 0x20]
add rcx, rax
mov r8, rbx
call fcn.18001cfc0
lea rdx, [r14 + 0x18]
mov rcx, r14
call fcn.180019790
lea rsi, [rsp + 0x20]
sub rbp, rbx
add rsi, rbx
xor r15d, r15d
cmp rbp, 0x40
jb 0x18001a9a4
mov rbx, rbp
shr rbx, 6
imul rax, rbx, 0xffffffffffffffc0
add rbp, rax
nop dword [rax + rax]
mov rdx, rsi
mov rcx, r14
call fcn.180019790
add rsi, 0x40
dec rbx
jne 0x18001a990
test rbp, rbp
je 0x18001a9be
mov eax, r15d
lea rcx, [r14 + 0x18]
mov r8, rbp
add rcx, rax
mov rdx, rsi
call fcn.18001cfc0
mov rdx, r12
mov rcx, r14
call fcn.18001a250
lea rax, [rsp + 0x20]
nop
mov byte [rax], 0
lea rax, [rax + 1]
dec rdi
jne 0x18001a9d0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180023020
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x18001c5f0
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x110
mov rax, qword [0x18003db28]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rbp, rcx
mov rsi, r8
mov rdi, rdx
mov ebx, 0xdc
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, ebx
call fcn.18001cca0
xor eax, eax
mov dword [rsp + 0x28], 0x67452301
mov dword [rsp + 0x2c], 0xefcdab89
mov dword [rsp + 0x30], 0x98badcfe
mov dword [rsp + 0x34], 0x10325476
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], 0xc3d2e1f0
test rdi, rdi
je 0x18001c672
lea rcx, [rsp + 0x20]
mov r8, rdi
mov rdx, rbp
call fcn.18001c300
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.18001c3d0
lea rax, [rsp + 0x20]
mov byte [rax], 0
lea rax, [rax + 1]
dec rbx
jne 0x18001c684
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.180023020
mov rbx, qword [rsp + 0x148]
add rsp, 0x110
pop rdi
pop rsi
pop rbp
ret

Function at 0x18001c910
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x18003db28]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r10, r8
mov r9, rdx
mov rdi, rcx
mov ebx, 0x14
cmp r8, 0x40
jbe 0x18001c955
lea r8, [rsp + 0x20]
mov rdx, r10
mov rcx, r9
call fcn.18001c5f0
mov r10d, ebx
lea r9, [rsp + 0x20]
movabs rax, 0x3636363636363636
lea rdx, [rdi + 0x5c]
mov qword [rdx], rax
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rax
mov qword [rdx + 0x20], rax
mov qword [rdx + 0x28], rax
mov qword [rdx + 0x30], rax
mov qword [rdx + 0x38], rax
movabs rax, 0x5c5c5c5c5c5c5c5c
mov qword [rdi + 0x9c], rax
mov qword [rdi + 0xa4], rax
mov qword [rdi + 0xac], rax
mov qword [rdi + 0xb4], rax
mov qword [rdi + 0xbc], rax
mov qword [rdi + 0xc4], rax
mov qword [rdi + 0xcc], rax
mov qword [rdi + 0xd4], rax
test r10, r10
je 0x18001c9fc
mov rax, rdi
sub rax, r9
lea rcx, [rax + 0x5c]
lea r8, [rax + 0x9c]
nop word [rax + rax]
movzx eax, byte [r9]
lea r9, [r9 + 1]
xor byte [rcx + r9 - 1], al
movzx eax, byte [r9 - 1]
xor byte [r8 + r9 - 1], al
dec r10
jne 0x18001c9e0
mov rcx, rdi
mov dword [rdi + 4], 0
mov dword [rdi + 8], 0x67452301
mov dword [rdi + 0xc], 0xefcdab89
mov dword [rdi + 0x10], 0x98badcfe
mov dword [rdi + 0x14], 0x10325476
mov dword [rdi + 0x18], 0xc3d2e1f0
mov dword [rdi], 0x40
call fcn.18001aac0
lea rax, [rsp + 0x20]
nop dword [rax]
mov byte [rax], 0
lea rax, [rax + 1]
dec rbx
jne 0x18001ca40
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180023020
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x18001ca70
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x18003db28]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r12, rdx
lea rdx, [rsp + 0x20]
mov r14, rcx
call fcn.18001c3d0
mov ebx, 0x40
lea rdx, [r14 + 0x9c]
mov r8d, ebx
mov rcx, r14
mov qword [r14], 0
mov dword [r14 + 8], 0x67452301
mov dword [r14 + 0xc], 0xefcdab89
mov dword [r14 + 0x10], 0x98badcfe
mov dword [r14 + 0x14], 0x10325476
mov dword [r14 + 0x18], 0xc3d2e1f0
call fcn.18001c300
mov eax, dword [r14]
mov edi, 0x14
lea rsi, [rsp + 0x20]
mov r15d, eax
add eax, edi
mov ebp, edi
and r15d, 0x3f
mov dword [r14], eax
sub ebx, r15d
cmp eax, edi
jae 0x18001cb11
inc dword [r14 + 4]
test r15d, r15d
je 0x18001cb79
cmp rbx, rdi
ja 0x18001cb79
mov eax, r15d
lea rcx, [r14 + 0x1c]
lea rdx, [rsp + 0x20]
add rcx, rax
mov r8, rbx
call fcn.18001cfc0
lea rdx, [r14 + 0x1c]
mov rcx, r14
call fcn.18001aac0
lea rsi, [rsp + 0x20]
sub rbp, rbx
add rsi, rbx
xor r15d, r15d
cmp rbp, 0x40
jb 0x18001cb74
mov rbx, rbp
shr rbx, 6
imul rax, rbx, 0xffffffffffffffc0
add rbp, rax
mov rdx, rsi
mov rcx, r14
call fcn.18001aac0
add rsi, 0x40
dec rbx
jne 0x18001cb60
test rbp, rbp
je 0x18001cb8e
mov eax, r15d
lea rcx, [r14 + 0x1c]
mov r8, rbp
add rcx, rax
mov rdx, rsi
call fcn.18001cfc0
mov rdx, r12
mov rcx, r14
call fcn.18001c3d0
lea rax, [rsp + 0x20]
nop
mov byte [rax], 0
lea rax, [rax + 1]
dec rdi
jne 0x18001cba0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180023020
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400020b4
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x40
and qword [rax + 0x18], 0
xor r9d, r9d
mov qword [rax - 0x18], rdx
xor r8d, r8d
mov qword [rax - 0x20], rcx
mov edx, 0x10000000
and qword [rax - 0x28], 0
lea rcx, [rax + 0x18]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov ebx, eax
test eax, eax
js 0x1400020f4
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x140001000
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1c0
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
test eax, eax
jne 0x140001056
movzx eax, word [rsp + 0x20]
cmp al, 1
jne 0x140001050
shr ax, 8
cmp ax, 1
jne 0x140001050
mov ecx, 1
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
mov eax, ebx
add rsp, 0x1c0
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ebx, 0xffffffff
jmp 0x14000103c

Function at 0x140001290
Capabilities:
Resolve dns

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x1400012d0
cmp word [rax + 0x10], 2
jne 0x1400012d0
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rsi], eax
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rdx, [rbx + 1]
cmp byte [rbx], 0x30
mov edi, dword [0x14000a3e0]
mov qword [rsp + 0x28], rdx
jne 0x140001350
cmp byte [rdx], 0x2e
jne 0x140001478
lea rcx, [rdx + 2]
mov qword [rsp + 0x28], rcx
cmp byte [rdx + 1], 0x30
jne 0x140001398
cmp byte [rcx], 0x2e
jne 0x140001478
lea rdx, [rcx + 2]
mov qword [rsp + 0x28], rdx
cmp byte [rcx + 1], 0x30
jne 0x1400013e8
cmp byte [rdx], 0x2e
jne 0x140001478
lea rcx, [rdx + 2]
mov qword [rsp + 0x28], rcx
cmp byte [rdx + 1], 0x30
jne 0x140001430
cmp byte [rcx], 0
jne 0x140001478
xor eax, eax
mov dword [rsi], edi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rdx, [rsp + 0x28]
mov r8d, 0xa
mov rcx, rbx
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
cmp eax, 0xff
ja 0x140001478
mov rdx, qword [rsp + 0x28]
cmp rbx, rdx
je 0x140001478
mov rcx, rdx
sub rcx, rbx
cmp rcx, 3
jg 0x140001478
mov dil, al
jmp 0x1400012e4
lea rbx, [rdx + 1]
mov r8d, 0xa
lea rdx, [rsp + 0x28]
mov rcx, rbx
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
cmp eax, 0xff
ja 0x140001478
mov rcx, qword [rsp + 0x28]
cmp rbx, rcx
je 0x140001478
mov rdx, rcx
sub rdx, rbx
cmp rdx, 3
jg 0x140001478
mov ebx, edi
mov bh, al
mov edi, ebx
jmp 0x140001300
lea rbx, [rcx + 1]
lea rdx, [rsp + 0x28]
mov r8d, 0xa
mov rcx, rbx
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
cmp eax, 0xff
ja 0x140001478
mov rdx, qword [rsp + 0x28]
cmp rbx, rdx
je 0x140001478
mov rcx, rdx
sub rcx, rbx
cmp rcx, 3
jg 0x140001478
movzx eax, al
and edi, 0xff00ffff
shl eax, 0x10
or edi, eax
jmp 0x14000131c
lea rbx, [rdx + 1]
mov r8d, 0xa
lea rdx, [rsp + 0x28]
mov rcx, rbx
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
cmp eax, 0xff
ja 0x140001478
mov rcx, qword [rsp + 0x28]
cmp rcx, rbx
je 0x140001478
mov rdx, rcx
shl eax, 0x18
and edi, 0xffffff
sub rdx, rbx
or edi, eax
cmp rdx, 3
jle 0x140001338
nop dword [rax + rax]
mov eax, 0xffffffff
jmp 0x1400012bf
Function at 0x1400015d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rdx
mov dword [rsp + 0x2c], shutdown
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x2c]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14000160c
mov eax, dword [rsp + 0x34]
movzx ecx, word [rsp + 0x32]
mov dword [rbx], eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 4], ax
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x1400019e0
Capabilities:
Send data
Send data on socket

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
xor eax, eax
mov rsi, rcx
mov rbx, rdx
mov rdi, r8
mov rbp, r9
mov dword [rsp + 0x5c], 0
test rdx, rdx
je 0x140001a43
mov eax, 2
movzx ecx, word [rdx + 4]
lea r12, [rsp + 0x60]
mov qword [rsp + 0x62], 0
mov word [rsp + 0x60], ax
mov qword [rsp + 0x68], 0
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x62], ax
mov eax, dword [rbx]
mov rbx, r12
mov dword [rsp + 0x64], eax
mov eax, select
mov rdx, rdi
mov dword [rsp + 0x30], eax
lea r9, [rsp + 0x5c]
mov r8d, ebp
mov qword [rsp + 0x40], 0
mov rcx, rsi
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASendTo]
mov edx, eax
mov eax, dword [rsp + 0x5c]
cmp edx, 0xffffffff
je 0x140001a90
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
setne al
movzx eax, al
neg eax
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140001ab0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x70
xor r10d, r10d
mov rbx, rdx
lea rax, [rsp + 0x60]
mov rdx, r8
mov r8, r9
test rbx, rbx
lea r9, [rsp + 0x54]
mov dword [rsp + 0x54], shutdown
cmove rax, r10
cmove r9, r10
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], r9
lea r9, [rsp + 0x5c]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
je 0x140001b50
test byte [rsp + 0x59], 0x80
jne 0x140001b80
test rbx, rbx
je 0x140001b45
mov eax, dword [rsp + 0x64]
movzx ecx, word [rsp + 0x62]
mov dword [rbx], eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 4], ax
mov eax, dword [rsp + 0x5c]
add rsp, 0x70
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
cmp eax, 0x2738
je 0x140001b80
xor eax, eax
cmp edx, 0x2746
je 0x140001b49
xor eax, eax
cmp edx, 0x2733
setne al
neg eax
add rsp, 0x70
pop rbx
ret
mov eax, 0xfffffffe
jmp 0x140001b49
Function at 0x140001be0
Capabilities:
Get socket status

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x468
mov eax, r8d
mov dword [rsp + 0x40], 0
mov rbx, rcx
mov rsi, rdx
imul rax, rax, 0x10624dd3
mov dword [rsp + 0x250], 0
shr rax, 0x26
mov dword [rsp + 0x38], eax
imul eax, eax, 0x3e8
sub r8d, eax
mov eax, dword [rdx]
imul r8d, r8d, 0x3e8
mov dword [rsp + 0x3c], r8d
test al, 1
je 0x140001c44
mov qword [rsp + 0x258], rcx
mov dword [rsp + 0x250], 1
test al, 2
je 0x140001c55
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], 1
lea rbp, [rsp + 0x250]
lea rdi, [rsp + 0x40]
xor r9d, r9d
lea rax, [rsp + 0x38]
lea ecx, [rbx + 1]
mov r8, rbp
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x140001cc6
mov dword [rsi], 0
jne 0x140001ca0
xor eax, eax
add rsp, 0x468
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rdx, rbp
mov rcx, rbx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140001cb2
or dword [rsi], 1
mov rdx, rdi
mov rcx, rbx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140001c8a
or dword [rsi], 2
jmp 0x140001c8a
mov eax, 0xffffffff
jmp 0x140001c8c
Function at 0x1400042e0
Capabilities:
Enumerate pe sections

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov eax, edx
mov ecx, r8d
mov rbx, qword [rdi + 0xf0]
lea rsi, [rdi + 0xf0]
cmp rbx, rsi
jne 0x14000431c
jmp 0x1400043d8
mov rbx, qword [rbx]
cmp rbx, rsi
je 0x1400043d8
cmp word [rbx + 0x10], ax
jne 0x140004310
cmp byte [rbx + 0x29], cl
jne 0x140004310
cmp rsi, rbx
je 0x1400043d8
mov ebp, 1
movzx r8d, r8b
cmp r8, qword [rdi + 0x48]
jae 0x140004378
lea rax, [r8 + r8*4]
shr dx, 0xc
shl rax, 4
movzx ecx, dx
add rax, qword [rdi + 0x40]
and edx, 0xf
movzx r8d, word [rax + rdx*2 + 6]
test r8w, r8w
je 0x140004378
sub r8d, 1
mov word [rax + rdx*2 + 6], r8w
test r8w, r8w
je 0x140004431
nop dword [rax]
mov rcx, rbx
movzx r12d, byte [rbx + 0x28]
call fcn.140007320
mov rcx, qword [rbx + 0x58]
and r12d, 0xf
test rcx, rcx
je 0x1400043a6
test ebp, ebp
je 0x1400043a0
movzx eax, word [rbx + 0x24]
sub dword [rdi + 0xd8], eax
sub qword [rcx], 1
je 0x140004420
mov rcx, rbx
call fcn.1400072e0
mov rax, qword [rdi + 0xf0]
cmp rax, rsi
je 0x1400043c3
mov edx, dword [rax + 0x18]
add edx, dword [rax + 0x14]
mov dword [rdi + 0x70], edx
mov eax, r12d
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rbx, qword [rdi + 0x110]
lea r9, [rdi + 0x110]
cmp rbx, r9
jne 0x1400043f8
jmp 0x140004448
mov rbx, qword [rbx]
cmp rbx, r9
je 0x140004448
cmp byte [rbx + 0x28], 0
jns 0x1400043f0
cmp word [rbx + 0x26], 0
je 0x140004448
cmp ax, word [rbx + 0x10]
jne 0x1400043f0
cmp cl, byte [rbx + 0x29]
jne 0x1400043f0
xor ebp, ebp
jmp 0x140004335
or dword [rcx + 8], 0x100
call fcn.140007120
jmp 0x1400043a6
mov edx, 1
shl edx, cl
not edx
and word [rax + 4], dx
jmp 0x140004378
mov rbx, qword [rdi + 0x100]
lea r9, [rdi + 0x100]
cmp r9, rbx
jne 0x140004468
jmp 0x140004487
mov rbx, qword [rbx]
cmp r9, rbx
je 0x140004487
cmp byte [rbx + 0x28], 0
jns 0x140004460
cmp word [rbx + 0x26], 0
je 0x140004487
cmp ax, word [rbx + 0x10]
jne 0x140004460
cmp cl, byte [rbx + 0x29]
jne 0x140004460
xor ebp, ebp
jmp 0x140004335
xor r12d, r12d
jmp 0x1400043c3
Function at 0x180001000
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov rdi, rcx
mov rcx, rdx
mov rbp, rdx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x180036838]
lea r8d, [rax + rsi + 1]
xor edx, edx
mov r13d, eax
add r8, 5
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov r12, rax
je 0x18000122c
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [rsi + 1]
mov rdx, rdi
mov rcx, r12
mov byte [rsi + r12], 0x5c
mov byte [rax + r12], bl
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [0x180039eae]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rcx, qword [0x180036838]
lea r8d, [r13 + 1]
add r8, r8
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rbp, rax
je 0x18000121a
movsx eax, byte [rdi]
cmp ax, bx
mov word [rbp], ax
je 0x1800010d3
mov rcx, rbp
add rdi, 1
add rcx, 2
movsx eax, byte [rdi]
cmp ax, bx
mov word [rcx], ax
jne 0x1800010c0
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.CRYPT32.dll_CertOpenSystemStoreW]
cmp rax, rbx
mov rdi, rax
je 0x180001208
xor edx, edx
mov rcx, rax
mov esi, ebx
call qword [sym.imp.CRYPT32.dll_CertEnumCertificatesInStore]
cmp rax, rbx
je 0x1800011fd
mov rdx, rax
mov rcx, rdi
add esi, 1
call qword [sym.imp.CRYPT32.dll_CertEnumCertificatesInStore]
cmp rax, rbx
jne 0x180001100
cmp esi, ebx
je 0x1800011fd
xor eax, eax
lea r8, [0x1800399c0]
lea rdx, [rsp + 0x40]
lea esi, [rax + 4]
xor r9d, r9d
mov rcx, rdi
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], esi
call qword [sym.imp.CRYPT32.dll_PFXExportCertStoreEx]
cmp eax, ebx
je 0x1800011fd
mov r8d, dword [rsp + 0x40]
mov rcx, qword [0x180036838]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov qword [rsp + 0x48], rax
je 0x1800011fd
lea r8, [0x1800399c0]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov rcx, rdi
mov dword [rsp + 0x20], esi
call qword [sym.imp.CRYPT32.dll_PFXExportCertStoreEx]
cmp eax, ebx
je 0x1800011e9
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1800011e9
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
lea r9, [rsp + 0x80]
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rsp + 0x48]
mov rcx, qword [0x180036838]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov rcx, qword [0x180036838]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180036838]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x1800019a4
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
lea r9, [rsp + 0x30]
xor r8d, r8d
lea ecx, [rbx + 0x13]
mov dl, 1
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
cmp eax, ebx
jl 0x1800019dc
lea ecx, [rbx + 6]
xor edx, edx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
cmp eax, ebx
jne 0x1800019e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1800019e1
mov ebx, 0x522
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x1800019ec
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rcx, qword [0x180036838]
mov esi, 0x104
xor edx, edx
mov r8, rsi
mov ebx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180001af2
mov edx, esi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x180001ad8
mov dx, 0x3a
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrChrA]
lea rdx, [0x18003a8b0]
mov r8, rdi
lea rcx, [rax + 2]
mov rbx, rax
mov byte [rax + 1], 0
call qword [sym.imp.USER32.dll_wsprintfA]
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov r8d, 3
lea rcx, [rbx + 2]
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x180001ad8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov rdx, rax
mov r8d, 0x10000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180001abc
xor ebx, ebx
jmp 0x180001ac4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x180001ae0
call fcn.1800019a4
jmp 0x180001ade
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x180036838]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x180001b04
Capabilities:
Access pe header
Get common file path
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov esi, r9d
mov r13d, edx
mov rbp, rcx
mov ebx, 8
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x180001c35
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov rcx, qword [0x180036838]
xor edx, edx
lea r8d, [rax + 0x11]
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180001c3a
lea ecx, [r12 + 1]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rdi + rbx]
lea rdx, [0x1800391b0]
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfA]
xor r9d, r9d
mov r8d, r13d
mov rdx, rbp
mov rcx, rdi
mov dword [rsp + 0x20], 1
call fcn.180017764
test eax, eax
mov ebx, eax
jne 0x180001c21
test esi, esi
je 0x180001c21
lea r8, [rsp + 0x30]
lea rdx, [0x1800392fb]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
mov ebx, eax
jne 0x180001c21
movsx r8d, byte [0x1800392a4]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrRChrA]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsp + 0x30]
add eax, 1
lea rdx, [rbx + 1]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x180036838]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180001c3a
mov ebx, 0xb
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret

Function at 0x180001ea0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [0x180036990]
mov rdi, rcx
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov ebx, eax
jne 0x180001efd
mov rcx, qword [rsp + 0x38]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, rdi
mov ebx, eax
call fcn.180016c24
mov rcx, qword [rsp + 0x38]
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret