joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140059ba0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140059d48
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140059c05
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140059c05
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140059c05
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x140059c3c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140059c92
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140059c92
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140059c92
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140059c92
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140059c92
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140059650
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140059cf4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140035a00
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140059a20
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140059d40
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140035a00
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14005b4b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140097080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x14005b545
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x14005b5a6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140035a00
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14006e730
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x14005b661
sub ecx, 1
je 0x14005b6d4
sub ecx, 1
je 0x14005b610
cmp ecx, 1
je 0x14005b5f3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x14007c8a0]
call fcn.140035a00
jmp 0x14005b6d4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14005b1e0
test eax, eax
je 0x14005b6d4
jmp 0x14005b57a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14005b6d4
sub rax, rsi
cmp rax, rbp
jae 0x14005b6d4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140035b80
jmp 0x14005b6d4
cmp r8d, 4
jle 0x14005b6d4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x14005b6d4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140035920
mov esi, eax
test eax, eax
je 0x14005b6b3
mov edx, 5
mov rcx, rbx
call fcn.14005c1a0
mov eax, esi
jmp 0x14005b57a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140044400
mov rcx, r14
call fcn.1400446e0
test eax, eax
je 0x14005b578
mov edx, 5
mov rcx, rbx
call fcn.14005c1a0
mov eax, Ordinal_45
jmp 0x14005b57a
Function at 0x14006e470
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 [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14006e4b2
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 0x14006e4f9
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 0x14006e552
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 0x14006e510
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14006e593
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14008201a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14008201b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14006e560
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 0x14006f5a4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006f5ee
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006f5ee
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006f5ee
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006f5ee
cmp dword [rcx + 0x84], 0xe
jbe 0x14006f5ee
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14006f5f0
xor al, al
add rsp, 0x28
ret
Function at 0x140001c30
Capabilities:
Read file via mapping

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x60
mov r9d, edx
mov rdi, rcx
xor edx, edx
mov eax, r9d
div dword [rcx + 0x10]
mov ebx, edx
sub r9d, edx
add r8d, edx
mov qword [r11 - 0x48], r8
xor r8d, r8d
lea edx, [r8 + 6]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbp, rax
add rbx, rax
add rdi, 0x20
mov rsi, qword [rdi]
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x40], rcx
and dword [rsp + 0x48], 0
mov rax, rsi
jmp 0x140001cb3
mov qword [rsp + 0x40], rcx
cmp qword [rcx + 0x20], rbx
jae 0x140001ca5
and dword [rsp + 0x48], 0
mov rcx, qword [rcx + 0x10]
jmp 0x140001cb3
mov dword [rsp + 0x48], 1
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x140001c8f
cmp byte [rax + 0x19], 0
jne 0x140001cc5
cmp rbx, qword [rax + 0x20]
jae 0x140001d1f
movabs rax, 0x555555555555555
cmp qword [rdi + 8], rax
je 0x140001d3c
mov qword [rsp + 0x30], rdi
and qword [rsp + 0x38], 0
mov ecx, 0x30
call fcn.140016c08
nop
mov qword [rax + 0x20], rbx
and qword [rax + 0x28], 0
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
and word [rax + 0x18], 0
movups xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rsp + 0x30], xmm0
mov r8, rax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140002274
mov qword [rax + 0x28], rbp
mov rax, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140001ad0
int3

Function at 0x140003370
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x858
mov rax, qword [0x140046010]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x38], rcx
and dword [rsp + 0x30], 0
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x40]
call fcn.140018c60
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x40]
lea r8, [0x14003e6d8]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.1400041b0
mov dword [rsp + 0x30], 1
lea r8, [0x14003e848]
lea rdx, [0x14003e84c]
mov rcx, rbp
call fcn.140003d90
mov rax, rbp
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140016970
add rsp, 0x858
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400035e4
Capabilities:
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
call fcn.1400016e0
mov rcx, rax
test rax, rax
je 0x1400037ac
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14001400b.0]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov rcx, qword [rsi]
or ebp, 0xffffffff
cmp dword [rcx - 0x10], 0
jle 0x140003638
lea edx, [rbp + 0x3b]
call fcn.1400185e8
test rax, rax
jne 0x14000363c
mov eax, ebp
jmp 0x140003642
sub rax, qword [rsi]
sar rax, 1
lea edi, [rax + 2]
test eax, eax
cmovs edi, eax
mov rcx, qword [rsi]
test edi, edi
js 0x1400036c2
cmp edi, dword [rcx - 0x10]
jge 0x1400036c2
movsxd rax, edi
lea rcx, [rcx + rax*2]
mov edx, 0x5c
call fcn.1400185e8
mov rbx, rax
test rax, rax
je 0x1400036c2
sub rbx, qword [rsi]
sar rbx, 1
mov edi, ebx
test ebx, ebx
js 0x1400036c4
mov r8d, ebx
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140003c14
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14000412c
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, ebp
test eax, eax
jg 0x1400036d1
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14001400b.0]
jmp 0x1400036d1
mov edi, ebp
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.14000412c
xor edx, edx
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400036f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140003757
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x140003757
cmp edi, ebp
je 0x14000370a
inc edi
jmp 0x14000364a
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, ebp
test eax, eax
jg 0x14000372c
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14001400b.0]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov ecx, ebp
lock xadd dword [rdx + 0x10], ecx
add ecx, ebp
test ecx, ecx
jg 0x140003750
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14001400b.0]
mov eax, 1
jmp 0x14000379f
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, ebp
test eax, eax
jg 0x140003779
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14001400b.0]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, ebp
test eax, eax
jg 0x14000379d
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14001400b.0]
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001558
int3
Function at 0x1400038bc
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm7
call fcn.140002cd8
mov rbx, rax
test rax, rax
je 0x140003a6f
lea rdx, str.PdhOpenQueryW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PdhAddCounterW
mov rcx, rbx
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PdhCollectQueryData
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PdhGetFormattedCounterValue
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PdhRemoveCounter
mov rcx, rbx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.PdhCloseQuery
mov rcx, rbx
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test r13, r13
je 0x140003a6f
test rsi, rsi
je 0x140003a6f
test rdi, rdi
je 0x140003a6f
test r12, r12
je 0x140003a6f
test r15, r15
je 0x140003a6f
test rax, rax
je 0x140003a6f
movsd xmm6, qword [0x1400408a8]
lea r8, [rbp + 0x40]
and qword [rbp + 0x40], 0
xor edx, edx
and qword [rbp + 0x48], 0
xor ecx, ecx
mov rax, r13
call qword [case.0x14001400b.0]
test eax, eax
jne 0x140003a46
mov rcx, qword [rbp + 0x40]
lea r9, [rbp + 0x48]
xor r8d, r8d
lea rdx, str.Processor__Total___Processor_Time
mov rax, rsi
call qword [case.0x14001400b.0]
test eax, eax
jne 0x140003a46
mov rcx, qword [rbp + 0x40]
mov rax, rdi
call qword [case.0x14001400b.0]
test eax, eax
jne 0x140003a46
xorps xmm7, xmm7
xor ebx, ebx
mov rcx, qword [rbp + 0x40]
mov rax, rdi
call qword [case.0x14001400b.0]
test eax, eax
jne 0x140003a46
mov rcx, qword [rbp + 0x48]
lea r9, [rbp - 0x30]
xor r8d, r8d
mov edx, 0x8200
mov rax, r12
call qword [case.0x14001400b.0]
test eax, eax
jne 0x140003a46
addsd xmm7, qword [rbp - 0x28]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jl 0x1400039f6
movaps xmm6, xmm7
divsd xmm6, qword [0x1400408a0]
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140003a58
mov rax, r15
call qword [case.0x14001400b.0]
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x140003a6a
mov rax, r14
call qword [case.0x14001400b.0]
movaps xmm0, xmm6
jmp 0x140003a72
xorps xmm0, xmm0
mov rbx, qword [rsp + 0xb0]
movaps xmm6, xmmword [rsp + 0x50]
movaps xmm7, xmmword [rsp + 0x40]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006cd0
Capabilities:
Get process image filename

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x140046010]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov ebx, edx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
and dword [rsp + 0x20], 0
mov rcx, qword [r8]
sub rcx, 0x18
call fcn.140001ea0
add rax, 0x18
mov qword [rdi], rax
mov dword [rsp + 0x20], 1
mov r8d, ebx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140006e12
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
je 0x140006e09
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.1400041b0
nop
mov edx, 0x5c
mov rcx, qword [rsp + 0x28]
call fcn.14001887c
mov rcx, rax
test rax, rax
je 0x140006de3
mov rax, qword [rsp + 0x28]
sub rcx, rax
sar rcx, 1
cmp ecx, 0xffffffff
je 0x140006de8
lea r8d, [rcx + 1]
mov r9d, dword [rax - 0x10]
sub r9d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.140003ca4
mov dword [rsp + 0x20], 3
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000412c
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140006de3
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14001400b.0]
mov rax, qword [rsp + 0x28]
lea rdx, [rax - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140006e09
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14001400b.0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140016970
add rsp, 0x260
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400092e4
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, rdx
xor esi, esi
call fcn.1400016e0
mov rcx, rax
test rax, rax
je 0x140009462
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14001400b.0]
add rax, 0x18
mov qword [rsp + 0x78], rax
mov rcx, qword [rbp + 0xc0]
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x140009431
lea rdi, [rbx + 0x30]
mov rdx, qword [rdi]
mov ecx, 1
sub ecx, dword [rdx - 8]
mov eax, dword [rdx - 0xc]
or eax, ecx
jge 0x140009357
xor edx, edx
mov rcx, rdi
call fcn.140001f48
mov rdx, qword [rdi]
lea rcx, [rsp + 0x60]
call fcn.1400041b0
nop
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400093b6
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rdi
test eax, eax
je 0x1400093af
add rsi, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400093dc
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14001400b.0]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x140009404
mov rax, qword [rbx + 8]
jmp 0x1400093f9
cmp rbx, qword [rax + 0x10]
jne 0x1400093ff
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400093ec
mov rbx, rax
jmp 0x14000941f
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x14000941f
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140009410
cmp rbx, qword [rbp + 0xc0]
jne 0x140009334
mov rax, qword [rsp + 0x78]
lea rdx, [rax - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140009452
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14001400b.0]
mov rax, rsi
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001558
int3
Function at 0x14000ae00
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x14000ae96
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x14000ae70
lea rcx, [0x14003e6a0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ae8f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000ae8f
mov rdx, qword [rdi]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call qword [case.0x14001400b.0]
jmp 0x14000ae7f
cmp dword [rdi + 8], 0
je 0x14000ae8f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov eax, 1
jmp 0x14000ae7f
cmp byte [0x140048190], 0
jne 0x14000aee1
lea rcx, [0x14003e6a0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000aecd
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x140048188], rax
jmp 0x14000aed4
mov r10, qword [0x140048188]
mov eax, 1
mov byte [0x140048190], al
jmp 0x14000aee8
mov r10, qword [0x140048188]
mov rcx, qword [rbx]
mov rdx, rsi
test r10, r10
je 0x14000ae79
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rax, r10
call qword [case.0x14001400b.0]
jmp 0x14000ae7f
Function at 0x14000b54c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x140046010]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rdi
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 0x14000b5d0
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 0x14000b5d0
call fcn.14000ab20
mov ebx, eax
jmp 0x14000b6db
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000b5f1
call fcn.14000ab20
jmp 0x14000b6ca
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 0x14000b5e7
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 0x14000b62c
mov ebx, 0x8007000e
jmp 0x14000b6cc
mov ecx, eax
test eax, eax
je 0x14000b65e
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14000b713
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000b65e
lea rcx, [rsp + 0x60]
call fcn.14000daa4
jmp 0x14000b668
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x14000b67a
cmp qword [rsp + 0x60], rdi
je 0x14000b622
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 0x14000b5e7
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 + 0x48]
call fcn.14000c3a4
mov ebx, eax
test rsi, rsi
je 0x14000b6db
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x14000b6f2
lea rcx, [rsp + 0x60]
call fcn.14000da9c
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140016970
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140001558
int3
Function at 0x14000e5a8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov dword [rcx + 0x260], edx
lea r8, [0x14000e600]
xor edi, edi
mov rbx, rcx
mov r9, rcx
mov qword [rsp + 0x28], rdi
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov qword [rbx + 0x1d0], rax
mov rbx, qword [rsp + 0x40]
setne dil
mov eax, edi
add rsp, 0x30
pop rdi
ret