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

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1800d5100]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x18]
mov rsi, rcx
xor r9d, r9d
mov rdi, qword [rax + 0x6d0]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], pe_nt_image_headers64
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
mov rdx, qword [rdi + 0x150]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x138], 0
mov dword [rdi + 0x13c], eax
jne 0x18004c947
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call fcn.180073fd0
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r8d, dword [rdi + 0x13c]
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xf0], rbp
cmp r8d, 4
jge 0x18004c9ad
lea rdx, [0x1800aa908]
mov rcx, rsi
call fcn.18002f380
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.180071b80
mov rsi, qword [rsp + 0xf8]
add rsp, 0xd0
pop rdi
ret
mov rdx, qword [rdi + 0x150]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rdi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x18004c9e3.1
movsxd rax, ecx
lea r9, sym.usermode.dll__q_Qc_aAjQz7hd_8AArZ1jhGIM:9enOvl_
mov ecx, dword [r9 + rax*4 + 0x4cafc]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x18004c9e3.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x18004c9e3.4
lea eax, [r8 - 4]
mov rcx, rsi
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.18002f2a0
mov ebx, eax
test eax, eax
je 0x18004ca42
mov edx, 5
mov rcx, rdi
call fcn.18004d510
mov eax, ebx
jmp 0x18004c97c
mov eax, dword [rdi + 0x13c]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.18003f6f0
jmp case.0x18004c9e3.4
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbx, eax
lea rbp, [rdx + 4]
movzx eax, byte [rdx + 3]
mov rdx, rbx
shl ecx, 8
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, rbp
call fcn.18004d580
cmp rax, rbx
jae case.0x18004c9e3.4
mov r8, rbp
lea rdx, [0x1800aa928]
mov rcx, rsi
call fcn.18002f4f0
jmp case.0x18004c9e3.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rdi
call fcn.18004c600
test eax, eax
je case.0x18004c9e3.4
jmp 0x18004c97c
lea r8, [0x1800aa938]
mov rcx, rsi
lea rdx, [0x1800a1c90]
call fcn.18002f380
mov rcx, rsi
call fcn.18003fa00
test eax, eax
je 0x18004c97a
mov edx, 5
mov rcx, rdi
call fcn.18004d510
mov eax, Ordinal_45
jmp 0x18004c97c
Function at 0x180054cb0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1800d5100]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rcx + 0x18]
lea r8, [rsp + 0x20]
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
mov rbp, qword [rsi + 0x1d8]
mov rcx, rbp
mov dword [rsp + 0x20], pe_nt_image_headers64
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x180054d2b
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], pe_nt_image_headers64
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.18002fd60
mov rcx, rdi
cmp rbx, 0xffffffffffffffff
jne 0x180054d53
lea rdx, [0x1800aba90]
call fcn.18002f380
lea eax, [rbx + 0x1f]
jmp 0x180054dcf
lea rdx, [0x1800abab8]
call fcn.18002f4f0
mov edx, 1
mov byte [rsi + 0x3b1], 0
mov rcx, rbx
mov qword [rsi + 0x1d8], rbx
call fcn.180060a40
mov byte [rsi + 0x3c4], 1
cmp qword [rdi + 0x280], 0
je 0x180054dcd
mov dl, 1
mov rcx, rdi
call fcn.18001eab0
mov rcx, qword [rdi + 0x288]
mov r8d, 1
mov rdx, rbx
call qword [rdi + 0x280]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.18001eab0
test ebx, ebx
je 0x180054dcd
mov rdx, rsi
mov rcx, rdi
call fcn.1800552d0
mov eax, Ordinal_45
jmp 0x180054dcf
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.180071b80
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180056870
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
mov rbx, rcx
mov rdx, qword [rcx + 0x18]
cmp dword [rax + 0x10], 0
je 0x1800568a6
mov dword [rdx + 0x7a0], 0xd
mov r8d, reloc.WS2_32.dll_listen
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.180056990
cmp byte [rcx + 0xad4], 0
je 0x1800568bb
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.180057400
cmp byte [rcx + 0xad7], 0
je 0x18005693c
mov r9, qword [rdx + 0x760]
test r9, r9
jne 0x1800568fe
mov r9, qword [rcx + 0x780]
test r9, r9
jne 0x1800568f5
cmp byte [rbx + 0x1320], 0
lea rcx, [0x1800abe30]
lea r9, [0x1800aaf1c]
cmovne r9, rcx
lea r8, [0x1800abe38]
jmp 0x180056915
cmp byte [rcx + 0xae4], 0
lea r8, [0x1800abe40]
jne 0x180056915
lea r8, [0x1800abe50]
add rdx, 0x6d0
mov rcx, rbx
call fcn.18006b510
test eax, eax
jne 0x180056946
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7a0], 0x1d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.180057350
add rsp, 0x20
pop rbx
ret

Function at 0x180056c60
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
add rdx, 0x6d0
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x180056cae
cmp qword [rdx + 0x90], 0
je 0x180056cae
xor r9d, r9d
lea r8, [0x1800abe60]
call fcn.18006b510
test eax, eax
jne 0x180056cb8
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7a0], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.180056870
add rsp, 0x20
pop rbx
ret
Function at 0x180056f80
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
mov esi, r8d
mov rbx, rcx
cmp eax, 0x64
jb 0x180056fbf
lea rdx, [0x1800ac160]
call fcn.18002f380
lea eax, [rdi + 0x11]
jmp 0x180057125
cmp edx, 0xc8
je 0x180056fd6
mov r8d, edx
lea rdx, [0x1800ac180]
call fcn.18002f4f0
cmp esi, 0x13
jne 0x180056feb
mov rdx, rbp
mov rcx, rbx
call fcn.180056e80
jmp 0x180057121
cmp esi, 0x14
jne 0x180057103
cmp byte [rbx + 0x718], 2
mov rbp, qword [rbx + 0x18]
jne 0x180057068
mov rax, qword [rbx + 0x1b0]
mov rcx, qword [rax]
test rcx, rcx
je 0x180057068
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.18005fab0
test eax, eax
jne 0x180057121
mov rcx, qword [rsp + 0x40]
lea edx, [rsi + 0x1b]
call fcn.180074810
test rax, rax
je 0x18005705d
mov rdi, qword [rsp + 0x40]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], 0
jmp 0x180057068
mov rcx, qword [rsp + 0x40]
call qword [fcn.180079934]
mov rdx, qword [rbx + 0x780]
test rdx, rdx
jne 0x18005708d
cmp byte [rbx + 0x1320], 0
lea rax, [0x1800abe30]
lea rdx, [0x1800aaf1c]
cmovne rdx, rax
lea r8, [0x1800c7553]
test rdi, rdi
mov r9, r8
lea rax, [0x1800a29fc]
cmovne r9, rdi
lea rcx, [0x1800a3164]
cmovne r8, rax
call fcn.180041fe0
mov rcx, rdi
mov rsi, rax
call qword [fcn.180079934]
test rsi, rsi
jne 0x1800570cb
lea edi, [rsi + 0x1b]
jmp 0x180057123
lea rdx, [rbp + 0x6d0]
mov r9, rsi
lea r8, [0x1800a1c90]
mov rcx, rbx
call fcn.18006b510
mov rcx, rsi
mov edi, eax
call qword [fcn.180079934]
test edi, edi
jne 0x180057123
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7a0], 0x1f
jmp 0x180057123
cmp esi, 0x15
jne 0x18005710e
lea r8d, [rsi - 8]
jmp 0x180057117
cmp esi, 0x16
jne 0x180057123
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rbx
call fcn.180056990
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180067110
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x1800d5100]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call case.0x180024099.0
mov r13, rax
test rax, rax
jne 0x18006718e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.180043dc0
mov r9, rax
lea rdx, [0x1800ae348]
mov r8, r12
mov rcx, r15
call fcn.18002f380
xor ecx, ecx
lea ebx, [rbp + 0x4d]
call qword [fcn.180079934]
jmp 0x180067348
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, 0x80000000
mov rcx, r13
mov qword [rsp + 0x170], r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x180067201
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.180043dc0
mov r9, rax
lea rdx, [0x1800ae380]
mov r8, r12
mov rcx, r15
call fcn.18002f380
xor ecx, ecx
lea ebx, [r14 + 0x4e]
jmp 0x180067332
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x18006724a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.180043dc0
mov r9, rax
lea rdx, [0x1800ae3b0]
mov r8, r12
mov rcx, r15
call fcn.18002f380
mov ebx, Ordinal_79
jmp 0x180067326
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x18006727f
mov r8d, 0x100000
lea rdx, [0x1800ae3e8]
mov rcx, r15
call fcn.18002f380
mov ebx, Ordinal_79
jmp 0x18006731e
lea rcx, [rdi + 1]
call qword [section.el___6]
mov rbp, rax
test rax, rax
jne 0x180067299
lea ebx, [rax + 0x1b]
jmp 0x18006731e
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x1800672f8
nop word [rax + rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18006736a
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x1800672ef
mov edi, esi
jmp 0x1800672f1
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x1800672b0
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.180066e70
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [fcn.180079934]
mov rcx, r13
call fcn.180079934
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180071b80
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.180043dc0
mov r9, rax
lea rdx, [0x1800ae418]
mov r8, r12
mov rcx, r15
call fcn.18002f380
mov ebx, Ordinal_79
jmp 0x180067316
Function at 0x18006e5f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [section.el___6]
mov rdi, rax
test rax, rax
jne 0x18006e632
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x18006e679
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x18006e6d2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x18006e690
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x18006e713
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1800af8cc]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1800af8cd]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x18006e6e0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x180078e84
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180078ea4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800805d8
or eax, 0xffffffff
jmp 0x180078ea6
xor eax, eax
add rsp, 0x28
ret
Function at 0x140439310
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14043931d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14043932d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140439315
lea eax, [rcx + 1]
jmp 0x14043933b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14043934e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140439334
sub eax, 3
jb 0x14043936e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1404393bd
sar eax, 1
movsxd rbp, eax
jb 0x1404393a4
jmp 0x14043937c
add ebx, ebx
jne 0x14043937a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1404393a4
inc ecx
add ebx, ebx
jne 0x14043938a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1404393a4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14043939d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14043938c
add ecx, 2
jmp 0x1404393a9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1404392d2
jmp 0x14043931d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x8a800
mov dl, 0x13
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140439409
cmp rsi, rcx
jae 0x140439411
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1404393f0
cmp al, 0x8f
ja 0x1404393f0
cmp byte [rsi - 2], 0xf
je 0x1404393f6
sub al, 0xe8
cmp al, 1
ja 0x1404393da
cmp rsi, rcx
jae 0x140439411
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1404393e0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140439411
lodsb al, byte [rsi]
jmp 0x1404393f0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x436000]
mov eax, dword [rdi]
or eax, eax
je 0x14043947a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4391fc]
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 0x14043941e
jns 0x140439453
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14043945d
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 0x140439474
mov qword [rbx], rax
add rbx, 8
jmp 0x14043943e
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 0x1404394b4
cmp al, 0xef
ja 0x1404394a6
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140439486
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140439495
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 + 0x1a7]
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 0x140439508
sub rsp, 0xffffffffffffff80
jmp 0x14003faf0
Function at 0x1400062c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r12, r9
mov r13, r8
mov rbx, rdx
mov rsi, rcx
call fcn.14001289c
xor r14d, r14d
mov rdx, rbx
mov rcx, rsi
lea r8d, [r14 + 5]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400063d1
mov r8d, 0xf0
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r15d, r15d
test rax, rax
je 0x14000633e
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
mov rdx, rdi
mov rcx, rsi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400063bd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x1400063bd
mov rdx, r15
mov rcx, rax
call fcn.140010fb8
mov rdi, rax
mov r9, r12
mov rax, qword [rsp + 0x80]
mov rdx, rdi
mov r8, r13
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov r14, rax
test rax, rax
jne 0x14000639f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rdi, rbp
je 0x1400063c5
test rdi, rdi
je 0x1400063c5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1400063c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x1400063d1
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x60]
mov rax, r14
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000b704
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14000b72a
mov r8, rdx
mov rdx, qword [rbx]
call fcn.14000f8cc
jmp 0x14000b795
cmp byte [0x14008a168], 0
jne 0x14000b76e
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b75e
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14008a160], rax
jmp 0x14000b765
mov rax, qword [0x14008a160]
mov byte [0x14008a168], 1
jmp 0x14000b775
mov rax, qword [0x14008a160]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14000b78f
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [0x140063a18]
jmp 0x14000b795
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000f488
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140086e08]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r9d, dword [rcx + 8]
xor r14d, r14d
mov rsi, rdx
mov qword [rsp + 0x48], r14
mov r8, rdx
mov qword [rsp + 0x40], r14
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x50], r14
lea rcx, [rsp + 0x40]
call fcn.14000e28c
jmp 0x14000f4fa
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.14000f488
mov ebx, eax
test eax, eax
jne 0x14000f563
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x58], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14000f4eb
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000f551
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r14
mov rdx, rsi
mov dword [rsp + 0x48], r14d
mov rcx, rdi
call fcn.14000b704
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000f573
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14002a660
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000f8cc
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14000f933
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f947
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000f947
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call qword [0x140063a18]
jmp 0x14000f94c
cmp dword [rcx + 8], 0
je 0x14000f947
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x14000f94c
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14000fc3c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x140086e08]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rdi
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x60]
call fcn.14002de80
mov qword [rsp + 0x60], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000fcd2
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000fcd2
call fcn.140008ed4
mov ebx, eax
jmp 0x14000fde3
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000fcf3
call fcn.140008ed4
jmp 0x14000fdd2
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000fce9
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x14000fd2e
mov ebx, 0x8007000e
jmp 0x14000fdd4
mov ecx, eax
test eax, eax
je 0x14000fd63
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14000fe1b
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000fd63
lfence
lea rcx, [rsp + 0x60]
call fcn.140008274
jmp 0x14000fd6d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x14000fd7f
cmp qword [rsp + 0x60], rdi
je 0x14000fd24
lfence
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14000fce9
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14000fa18
mov ebx, eax
test rsi, rsi
je 0x14000fde3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x14000fdfa
lea rcx, [rsp + 0x60]
call fcn.14000bce4
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14002a660
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
lfence
mov ecx, 0x80070216
call fcn.1400099c0
int3