joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c164
Capabilities:
Check for time delay via gettickcount
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
and qword [rbp + 0x28], 0
mov r14, r8
and qword [rbp + 0x38], 0
mov rbx, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov r9, qword [rbx]
lea rdx, [rbp + 0x28]
mov rcx, rbx
call qword [r9 + 0x90]
test eax, eax
js 0x14001c1b0
cmp qword [rbp + 0x28], 0
jne 0x14001c202
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x7d0
ja 0x14001c202
and dword [rsp + 0x20], 0
lea rcx, [rbp - 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14001c194
xor r9d, r9d
lea rcx, [rbp - 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x14001c194
mov rax, qword [rbx]
lea rdx, [rbp + 0x28]
mov rcx, rbx
call qword [rax + 0x90]
mov ebx, eax
test eax, eax
js 0x14001c277
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14001c26e
mov rax, qword [rcx]
lea r8, [rbp + 0x38]
lea rdx, [0x140037580]
call qword [rax]
mov ebx, eax
test eax, eax
js 0x14001c260
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov ebx, eax
test eax, eax
js 0x14001c256
mov rcx, qword [rbp + 0x38]
mov rdx, r14
mov rax, qword [rcx]
call qword [rax + 0x28]
mov ebx, eax
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x28]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x28]
test ebx, ebx
js 0x14001c277
test rcx, rcx
jne 0x14001c2e8
cmp qword [rdi + 0x10], 0
je 0x14001c2e8
cmp qword [rdi + 0x30], 0
jne 0x14001c2e8
mov rdx, qword [rdi + 0x28]
test rdx, rdx
je 0x14001c2e8
mov rcx, rdi
call fcn.14001c924
mov rsi, rax
test rax, rax
je 0x14001c2e8
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov dword [rsp + 0x30], 0x204
xor r8d, r8d
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea edx, [r9 + 1]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rdi + 0x10]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rdi + 0x10]
mov rdx, rsi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rsi
call fcn.1400263f4
not ebx
lea r11, [rsp + 0x70]
mov rsi, qword [r11 + 0x30]
shr ebx, 0x1f
mov al, bl
mov rbx, qword [r11 + 0x20]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x14001d314
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
mov rax, rdx
mov rdx, rcx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14001d374
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rdx, rcx
lea r8, [0x140036f40]
mov rcx, qword [0x140047f68]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14001d3a2
xor eax, eax
jmp 0x14001d4d9
mov rcx, qword [0x140047f68]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x14001d39b
mov rcx, qword [0x140047f68]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001d39b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14001d39b
and qword [rsp + 0x58], 0
mov edx, edi
mov ecx, 2
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x14001d4d4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14001d4cb
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call fcn.140024ac0
and qword [rsp + 0x48], 0
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x14001d4c2
mov rsi, qword [rsp + 0x48]
lea ecx, [rax + 0x18]
call sub.gdiplus.dll_GdipAlloc
mov rbx, rax
test rax, rax
je 0x14001d47d
and qword [rsp + 0x50], 0
lea rax, [0x140036f10]
lea rdx, [rsp + 0x50]
mov qword [rbx], rax
mov rcx, rsi
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [rbx + 0x10], eax
mov rax, qword [rsp + 0x50]
mov qword [rbx + 8], rax
jmp 0x14001d47f
xor ebx, ebx
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
test rbx, rbx
je 0x14001d4c2
mov eax, dword [rbx + 0x10]
and dword [rbx + 0x10], 0
test eax, eax
jne 0x14001d4b5
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x58]
mov r8d, 0xffffff
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x14001d4b5
mov dword [rbx + 0x10], eax
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rax, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x14001d8e8
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14001db14
Capabilities:
Delete file

Disassembly:
push rbx
mov eax, 0x1070
call fcn.1400226f0
sub rsp, rax
xor ebx, ebx
cmp word [0x14004e5b2], bx
je 0x14001dbbc
lea rcx, [0x14004e5b2]
call fcn.14000cf84
mov rdx, qword [str.RarSFX]
lea r8d, [rbx + 6]
mov rcx, rax
call fcn.140012c30
test eax, eax
jne 0x14001dbbc
lea rcx, [0x14004d5b0]
call fcn.14001d8e8
mov r8d, 0x800
lea rdx, [0x14004e5b2]
lea rcx, [rsp + 0x60]
call fcn.140010e74
lea rcx, [rsp + 0x60]
call fcn.1400263d8
xor edx, edx
lea r8d, [rbx + 0x38]
lea rcx, [rsp + 0x20]
mov word [rsp + rax*2 + 0x62], bx
call fcn.140023460
lea eax, [rbx + 0x14]
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
add rsp, 0x1070
pop rbx
ret
Function at 0x14001dc24
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x170
xor ebp, ebp
mov rdi, r8
cmp qword [0x140045188], rbp
mov rbx, rdx
mov rsi, rcx
jne 0x14001dc8c
lea r9d, [rbp + 0x64]
mov ecx, 0x400
lea r8, [rax - 0xd8]
lea edx, [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx eax, word [rsp + 0xa0]
mov word [0x140063ff8], ax
lea rax, [0x140063ff8]
mov qword [0x140045188], rax
mov word [0x140063ffa], bp
mov r8d, 0x32
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140010d5c
lea r9, [0x140045170]
mov dword [rsp + 0x28], edi
lea r8, [rsp + 0x30]
mov word [rbx], bp
xor edx, edx
mov qword [rsp + 0x20], rbx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea r11, [rsp + 0x170]
mov word [rbx + rdi*2 - 2], bp
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14001ded8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1f40]
mov eax, 0x2040
call fcn.1400226f0
sub rsp, rax
xor esi, esi
mov rdi, rdx
cmp byte [0x14004f5b8], sil
mov rbx, rcx
je 0x14001dfbf
mov r8d, 0x800
lea rdx, [rbp + 0xf40]
call fcn.14001f79c
lea rax, [rsp + 0x30]
xor r8d, r8d
lea r9d, [rsi + 1]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareWinRAR_SFX
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001dfbf
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x1f70]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x1f78]
lea rax, [rsp + 0x40]
mov dword [rbp + 0x1f70], 0x1000
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xf40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001dfb4
mov edx, dword [rbp + 0x1f70]
mov ecx, 0x7ff
shr edx, 1
mov r8, rdi
cmp edx, ecx
mov eax, edx
mov dword [rbp + 0x1f70], edx
lea rdx, [rsp + 0x40]
cmovb ecx, eax
mov word [rsp + rcx*2 + 0x40], si
mov rcx, rbx
call fcn.140010e74
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x2060]
add rsp, 0x2040
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001e0ac
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
mov eax, 0x2020
call fcn.1400226f0
sub rsp, rax
xor r14d, r14d
mov rsi, r8
mov rbx, rcx
test r9, r9
je 0x14001e0df
mov byte [r9], r14b
mov rcx, qword [rsp + 0x2050]
test rcx, rcx
je 0x14001e0ef
mov byte [rcx], r14b
test rbx, rbx
je 0x14001e1a4
movzx eax, word [rbx]
test ax, ax
je 0x14001e1a4
movsxd rbp, dword [rsp + 0x2058]
mov rdi, r14
mov r8d, r14d
add rbx, 2
cmp ax, 0x3d
jne 0x14001e134
test rsi, rsi
je 0x14001e140
test rdi, rdi
jne 0x14001e140
test r9, r9
je 0x14001e12f
mov byte [r9], 1
mov rdi, rdx
jmp 0x14001e14f
cmp ax, 0xd
je 0x14001e161
cmp ax, 0xa
je 0x14001e165
mov word [rdx], ax
add rdx, 2
lea eax, [rbp - 2]
cmp r8d, eax
jge 0x14001e15c
movzx eax, word [rbx]
inc r8d
test ax, ax
jne 0x14001e112
jmp 0x14001e165
mov byte [rcx], 1
jmp 0x14001e165
add rbx, 2
mov word [rdx], r14w
test rsi, rsi
je 0x14001e19f
mov word [rsi], r14w
test rdi, rdi
je 0x14001e19f
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r8, rbp
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140010e74
mov word [rdi], r14w
mov rax, rbx
jmp 0x14001e1a6
xor eax, eax
lea r11, [rsp + 0x2020]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x14001e1c4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ebx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
xor ecx, ecx
test eax, eax
sete bl
test bl, bl
je 0x14001e229
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x58]
cmp eax, 1
mov rdx, qword [rsp + 0x50]
sete bl
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x14001e22c
mov word [rdi], cx
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140020cdc
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x20
and dword [0x14004d5a0], 0
mov edx, 1
mov rbx, rcx
mov byte [0x14004d590], 1
mov byte [0x14004d591], 1
call qword [sym.imp.USER32.dll_ShowWindow]
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 2]
call fcn.14000137c
cmp qword [0x14004d568], 0
jne 0x140020d27
cmp byte [0x14004d596], 0
je 0x140020d30
cmp dword [0x14004d584], 0
jne 0x140020d45
xor r9d, r9d
mov edx, 0x111
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageW]
add rsp, 0x20
pop rbx
ret

Function at 0x140020e20
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1050
call fcn.1400226f0
sub rsp, rax
xor edi, edi
mov rbx, rcx
cmp byte [0x14004f5b8], dil
je 0x140020ef2
cmp word [0x14004f5ba], di
je 0x140020ef2
mov r8d, 0x800
lea rdx, [rsp + 0x50]
lea rcx, [0x14004f5ba]
call fcn.14001f79c
lea rax, [rsp + 0x1068]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SoftwareWinRAR_SFX
lea rax, [rsp + 0x1070]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140020ef2
mov rcx, rbx
call fcn.1400263d8
lea r9d, [rdi + 1]
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x1070]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x1070]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x1060]
add rsp, 0x1050
pop rdi
ret

Function at 0x140020f04
Capabilities:
Set environment variable

Disassembly:
push rbx
mov eax, 0x2020
call fcn.1400226f0
sub rsp, rax
mov rbx, rcx
mov rdx, rcx
lea rcx, str.sfxcmd
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140010c18
mov rbx, rax
test rax, rax
je 0x140020f66
movzx ecx, word [rax]
jmp 0x140020f4d
add rbx, 2
movzx ecx, word [rbx]
call fcn.140010d34
test al, al
jne 0x140020f46
mov rdx, rbx
lea rcx, str.sfxpar
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x2020
pop rbx
ret
Function at 0x1400291b8
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140028f8c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140028f8c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140028f8c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140028f8c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140028f8c
cmp dword [rcx + 0x84], 0xe
jbe 0x140028f8c
cmp dword [rcx + 0xf8], esi
je 0x140028f8c
mov ecx, r14d
call fcn.1400290d4
mov ecx, 2
call fcn.14002c544
nop
cmp byte [0x1400662b8], 0
jne 0x140029056
mov r15d, 1
mov eax, r15d
xchg dword [0x1400662a8], eax
test ebx, ebx
jne 0x140028fff
mov rdi, qword [0x140045228]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400662b0]
cmp rcx, rax
je 0x140028ff6
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14000ab50]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400663e8]
jmp 0x14002900b
cmp ebx, r15d
jne 0x140029011
lea rcx, [0x140066400]
call fcn.140029b48
nop
test ebx, ebx
jne 0x140029028
lea rdx, [0x1400355a8]
lea rcx, [0x140035588]
call fcn.140029e80
lea rdx, [0x1400355b8]
lea rcx, [0x1400355b0]
call fcn.140029e80
movzx eax, byte [0x1400662b8]
test esi, esi
cmove eax, r15d
mov byte [0x1400662b8], al
jmp 0x140029056
mov ecx, 2
call fcn.14002c598
test esi, esi
jne 0x14002906d
mov ecx, r14d
call fcn.140029088
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140028f1c
Function at 0x140003250
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, qword [0x140006a30]
mov rax, qword [rbx]
mov qword [rsp + 0x58], rax
xor eax, eax
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x48], 1
setbe al
mov rdx, qword [rsp + 0x58]
sub rdx, qword [rbx]
je 0x140003288
call fcn.1400028b0
add rsp, 0x60
pop rbx
ret

Function at 0x140003290
Capabilities:
Get local ipv4 addresses

Disassembly:
sub rsp, 0x28
lea rcx, [0x140006090]
call fcn.140002fc0
test al, al
jne 0x140003304
lea rcx, [0x140006094]
call fcn.140002fc0
test al, al
jne 0x140003304
lea rcx, [0x140006098]
call fcn.140002fc0
test al, al
jne 0x140003304
lea rcx, [0x14000609c]
call fcn.140002fc0
test al, al
jne 0x140003304
lea rcx, [0x1400060a0]
call fcn.140002fc0
test al, al
jne 0x140003304
lea rcx, [0x1400060a4]
call fcn.140002fc0
test al, al
jne 0x140003304
lea rcx, [0x1400060a8]
add rsp, 0x28
jmp fcn.140002fc0
mov al, 1
add rsp, 0x28
ret

Function at 0x140003310
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x70
mov rbx, qword [0x140006a30]
mov rax, qword [rbx]
mov qword [rsp + 0x68], rax
xor eax, eax
mov dword [rsp + 0x28], 0x40
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp qword [rsp + 0x30], 0x7fffffff
setbe al
mov rdx, qword [rsp + 0x68]
sub rdx, qword [rbx]
je 0x140003354
call fcn.1400028b0
add rsp, 0x70
pop rbx
ret

Function at 0x1400035b0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x250
mov rbx, qword [0x140006a30]
lea rsi, section..rdata
mov rax, qword [rbx]
mov qword [rsp + 0x248], rax
xor eax, eax
lea rdi, [rsp + 0x28]
mov r9, rcx
mov ecx, 8
rep movsd dword [rdi], dword [rsi]
lea r10, [rsp + 0x148]
mov r11, rdx
lea rbp, [rsp + 0x48]
mov rdx, rax
mov byte [rax + r10], al
inc rax
and edx, 0x1f
mov dl, byte [rsp + rdx + 0x28]
mov byte [rax + rbp - 1], dl
cmp rax, 0x100
jne 0x1400035fb
mov r12, r10
xor esi, esi
xor r13d, r13d
mov edi, 0x100
movzx eax, byte [r12]
movzx edx, byte [rbp + rsi]
inc rsi
add eax, r13d
add eax, edx
cdq
idiv edi
movsxd rcx, edx
mov rdx, r12
inc r12
mov r13, rcx
add rcx, r10
call fcn.140002f40
cmp rsi, 0x100
jne 0x140003625
lea rdi, [r9 + r11]
xor ebp, ebp
xor r12d, r12d
cmp rdi, r9
je 0x1400036b5
lea eax, [rbp + 1]
cdq
idiv esi
movsxd r13, edx
movzx eax, byte [rsp + r13 + 0x148]
lea rcx, [r10 + r13]
mov rbp, r13
add eax, r12d
cdq
idiv esi
movsxd r14, edx
lea rdx, [r10 + r14]
mov r12, r14
call fcn.140002f40
mov cl, byte [rsp + r14 + 0x148]
add cl, byte [rsp + r13 + 0x148]
movzx ecx, cl
mov al, byte [rsp + rcx + 0x148]
xor byte [r9], al
inc r9
jmp 0x140003660
mov rax, qword [rsp + 0x248]
sub rax, qword [rbx]
je 0x1400036c7
call fcn.1400028b0
mov rax, r11
add rsp, 0x250
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x2d9e3b13b0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x80], 0
lea rax, [0x2d9e406050]
mov qword [rcx], rax
mov rbx, rcx
mov qword [rsp + 0x30], rsi
mov ebp, 2
je 0x2d9e3b1434
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.WINMM.dll_waveInStop]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.WINMM.dll_waveInReset]
lea rdi, [rbx + 0x58]
mov esi, ebp
nop dword [rax]
mov rdx, qword [rdi]
mov r8d, 0x30
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.WINMM.dll_waveInUnprepareHeader]
lea rdi, [rdi + 8]
sub rsi, 1
jne 0x2d9e3b1400
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.WINMM.dll_waveInClose]
mov rcx, qword [rbx + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
cmp byte [rbx + 0x81], 0
je 0x2d9e3b1477
mov rcx, qword [rbx + 0x78]
call qword [sym.imp.WINMM.dll_waveOutReset]
lea rdi, [rbx + 0x58]
mov rsi, rbp
nop
mov rdx, qword [rdi]
mov r8d, 0x30
mov rcx, qword [rbx + 0x78]
call qword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
lea rdi, [rdi + 8]
sub rsi, 1
jne 0x2d9e3b1450
mov rcx, qword [rbx + 0x78]
call qword [sym.imp.WINMM.dll_waveOutClose]
mov rsi, qword [rsp + 0x30]
lea rdi, [rbx + 0x58]
mov rcx, qword [rdi - 0x48]
call fcn.2d9e3da7f4
mov rcx, qword [rdi]
mov edx, 0x30
call fcn.2d9e3da7f4
mov rcx, qword [rdi - 0x38]
call fcn.2d9e3da7f4
mov rcx, qword [rdi + 0x10]
mov edx, 0x30
call fcn.2d9e3da7f4
lea rdi, [rdi + 8]
sub rbp, 1
jne 0x2d9e3b1480
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x50]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
Function at 0x2d9e3b15a0
Capabilities:
Capture microphone audio
Create thread
Resume thread

Disassembly:
push rdi
sub rsp, 0x40
mov rdi, rcx
call qword [sym.imp.WINMM.dll_waveInGetNumDevs]
test eax, eax
jne 0x2d9e3b15b9
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x60], rbp
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [0x2d9e3b17e0]
xor ebp, ebp
mov dword [rsp + 0x20], 4
mov r9, rdi
mov dword [rsp + 0x58], ebp
xor edx, edx
mov qword [rsp + 0x30], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
movsxd r9, dword [rsp + 0x58]
lea r8, [rdi + 0x82]
mov edx, 0xffff
mov dword [rsp + 0x28], 0x20000
lea rcx, [rdi + 0x30]
mov qword [rdi + 0x50], rax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
je 0x2d9e3b1631
mov rbp, qword [rsp + 0x60]
xor al, al
mov r14, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x50], rbx
lea rbx, [rdi + 0x58]
mov qword [rsp + 0x38], rsi
mov esi, 2
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx - 0x48]
mov r8d, 0x30
mov rcx, qword [rbx]
mov qword [rcx], rax
mov rcx, qword [rbx]
mov eax, dword [rdi + 8]
mov dword [rcx + 8], eax
mov rax, qword [rbx]
mov dword [rax + 0x18], ebp
mov rax, qword [rbx]
mov dword [rax + 0x1c], ebp
mov rdx, qword [rbx]
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.WINMM.dll_waveInPrepareHeader]
lea rbx, [rbx + 8]
sub rsi, 1
jne 0x2d9e3b1650
movsxd rdx, dword [rdi + 0x38]
lea r8d, [rsi + 0x30]
mov rcx, qword [rdi + 0x30]
mov rdx, qword [rdi + rdx*8 + 0x58]
call qword [sym.imp.WINMM.dll_waveInAddBuffer]
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.WINMM.dll_waveInStart]
mov rsi, qword [rsp + 0x38]
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x30]
mov byte [rdi + 0x80], 1
add rsp, 0x40
pop rdi
ret
Function at 0x2d9e3b25f0
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rcx + 8], rdx
lea rax, [0x2d9e408cf8]
mov qword [rcx], rax
xor r9d, r9d
mov qword [rdx + 0x68], rcx
mov rdi, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x10], rax
lea rax, [0x2d9e407738]
mov qword [rdi], rax
call qword [sym.imp.WINMM.dll_waveInGetNumDevs]
test eax, eax
je 0x2d9e3b270c
cmp byte [0x2d9e419c10], 0
jne 0x2d9e3b270c
mov ecx, 0x98
mov qword [rsp + 0x68], rbx
call fcn.2d9e3da7fc
mov rcx, rax
call fcn.2d9e3b1260
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x60]
mov r9b, 0x3f
mov qword [rdi + 0x18], rax
mov r8d, 1
mov byte [0x2d9e419c10], 1
mov byte [rsp + 0x60], 0x7c
call fcn.2d9e3b1ff0
mov rcx, qword [rdi + 0x10]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x96
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [0x2d9e3b2890]
mov qword [rsp + 0x38], rdi
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov byte [rsp + 0x40], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x30]
lea r8, [0x2d9e3c8af0]
xor edx, edx
xor eax, eax
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
call fcn.2d9e3e4db4
mov rcx, qword [rsp + 0x48]
or edx, 0xffffffff
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x20], rbx
mov rbx, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x50
pop rdi
ret

Function at 0x2d9e3b4610
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov rbx, rcx
movzx edx, byte [rax]
test edx, edx
je 0x2d9e3b463e
sub edx, 1
je 0x2d9e3b4643
sub edx, 1
je 0x2d9e3b4643
sub edx, 2
je 0x2d9e3b4643
cmp edx, 1
je 0x2d9e3b4643
add rsp, 0x30
pop rbx
ret
call fcn.2d9e3b4690
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x40]
mov r9b, 0x3f
mov word [rsp + 0x40], 0x167
mov r8d, 2
call fcn.2d9e3b1ff0
xor eax, eax
lea r8, [0x2d9e3b4410]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x30], rax
add rsp, 0x30
pop rbx
ret
Function at 0x2d9e3b4690
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov rbx, rcx
mov rcx, 0xffffffffffffffff
movzx edx, word [rax + 0x12]
mov eax, 8
mul rdx
cmovo rax, rcx
mov rcx, rax
call fcn.2d9e3da838
mov qword [rbx + 0x50], rax
xor ebp, ebp
mov rax, qword [rbx + 8]
mov esi, ebp
cmp bp, word [rax + 0x12]
jae 0x2d9e3b471d
mov qword [rsp + 0x40], rdi
mov edi, ebp
nop
mov qword [rsp + 0x28], rbp
lea r8, [0x2d9e3b4730]
mov r9, rbx
mov dword [rsp + 0x20], ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rbx + 0x50]
lea rdi, [rdi + 8]
inc esi
mov qword [rdi + rcx - 8], rax
mov rax, qword [rbx + 8]
movzx ecx, word [rax + 0x12]
cmp esi, ecx
jl 0x2d9e3b46e0
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret