joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463a10
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x10
xor eax, eax
push ebp
mov dword [esp + 4], eax
mov ebp, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], eax
push esi
push edi
mov dword [esp + 0x14], eax
push ecx
mov dword [esp + 0x1c], eax
mov word [esp + 0x10], 2
call sub.WSOCK32.dll_htons
mov edi, dword [esp + 0x20]
mov word [esp + 0xe], ax
cmp byte [edi], 0
je 0x463ad1
push ebx
mov esi, str.localhost
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x463a7d
test cl, cl
je 0x463a79
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x463a7d
add eax, 2
add esi, 2
test cl, cl
jne 0x463a55
xor eax, eax
jmp 0x463a82
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop ebx
je 0x463ad1
push edi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x463adf
push edi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x463aab
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x10
ret 0x10
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
lea edi, [esp + 0x10]
mov esi, dword [edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ax, word [eax + 8]
mov word [esp + 0xc], ax
jmp 0x463adf
push 0x7f000001
call sub.WSOCK32.dll_htonl
mov dword [esp + 0x10], eax
mov edx, dword [ebp]
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edx
call dword [0x4b05b4]
test eax, eax
je 0x463aff
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x10
ret 0x10
mov al, byte [esp + 0x28]
test al, al
jne 0x463b23
mov ecx, dword [ebp]
lea eax, [esp + 0x28]
push 4
push eax
push 1
push 6
push ecx
mov dword [esp + 0x3c], 1
call sub.WSOCK32.dll_setsockopt
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x10
ret 0x10
Function at 0x465220
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x465394
mov eax, dword [ebp]
push esi
push eax
mov ecx, 0x4afb50
call fcn.004161f0
mov eax, dword [esp + 0xc]
mov dword [ebp], 0
cmp eax, 5
jle 0x46530a
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x465281
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x4652ab
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
push eax
call fcn.00452590
jmp 0x46529e
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x4652ab
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 6
push eax
call fcn.004526d0
add esp, 8
mov dword [ebp], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, dword [ebp]
test esi, esi
je 0x465386
cmp byte [esi], 0
je 0x465386
lea ecx, [esp + 0xc]
push ecx
push esi
call fcn.004521e0
add esp, 8
cmp word [esp + 0xc], 0xd
jne 0x4652f5
mov cl, byte [esi]
mov eax, esi
test cl, cl
je 0x4652f0
mov cl, byte [eax + 1]
test cl, cl
je 0x4652f0
mov dl, cl
mov byte [eax], dl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4652dd
mov byte [eax], 0
jmp 0x4652f7
add esi, eax
cmp byte [esi], 0
jne 0x4652bf
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp]
pop esi
pop ebp
ret 4
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x465354
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, 0x4afb50
call fcn.00416190
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [ebp]
test eax, eax
je 0x465386
mov ecx, eax
mov al, byte [ecx]
test al, al
je 0x465386
cmp al, 0xd
jne 0x46537f
mov eax, ecx
mov dl, byte [eax + 1]
test dl, dl
je 0x46537a
mov byte [eax], dl
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x465369
mov byte [eax], 0
jmp 0x465380
inc ecx
mov al, byte [ecx]
test al, al
jne 0x465363
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp]
pop esi
pop ebp
ret 4
mov eax, dword [ebp]
pop ebp
ret 4
Function at 0x4655c0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push esi
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4655f5
push edi
mov edi, dword [sym.imp.USER32.dll_GetClipboardData]
push 1
call edi
test eax, eax
jne 0x4655e5
push 0xd
call edi
test eax, eax
je 0x4655ea
mov esi, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop edi
pop esi
ret
mov eax, esi
pop esi
ret

Function at 0x465c10
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x120
push ebx
push esi
push edi
mov edi, dword [esp + 0x13c]
test edi, edi
jne 0x465cda
mov eax, dword [esp + 0x138]
mov edi, dword [esp + 0x130]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0xc], 0x114
test eax, eax
mov byte [esp + 0x18], 0
je 0x465cad
lea eax, [esp + 0x14]
push eax
push 1
push 0
push edi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x465cad
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push 0
push edi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x18]
push ecx
call ebx
test eax, eax
je 0x465c99
cmp dword [esp + 0x10], 1
jne 0x465c99
xor esi, esi
jmp 0x465c9e
mov esi, 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x465ccb
mov esi, dword [esp + 0x134]
push esi
call ebx
push eax
push esi
push 1
push edi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
jne 0x465d3b
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x120
ret
mov ecx, dword [esp + 0x130]
lea eax, [esp + 0xc]
push eax
push ecx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x465d3b
mov esi, dword [esp + 0x134]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0xc]
inc eax
push eax
push esi
push 1
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x465d3b
test esi, esi
jne 0x465d3b
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x120
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x120
ret
Function at 0x466840
Capabilities:
Copy file
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x114
push esi
push edi
lea eax, [esp + 0x18]
push 0x104
push eax
mov edi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [esp + 0x120]
push 0
lea ecx, [esp + 0x1c]
push esi
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x466981
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x466981
push ebx
push ebp
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
push 0
push 0
lea edx, [ebx - 8]
push edx
push esi
call ebp
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
push 8
push ecx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], 8
jne 0x466962
cmp dword [esp + 0x18], 0xfa123456
jne 0x4668fe
mov ecx, dword [esp + 0x1c]
mov edx, 0xfffffff8
sub edx, ecx
add ebx, edx
push 0
push 0
push ebx
push esi
call ebp
mov ecx, dword [edi + 0x228]
mov edx, dword [edi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push edx
push esi
call ebx
mov eax, dword [edi + 0x228]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jne 0x466962
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
push 8
push ecx
push esi
mov dword [esp + 0x2c], 0xfa123456
call ebx
cmp dword [esp + 0x10], 8
jne 0x466962
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [esp + 0x14], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
pop ebx
jne 0x466981
mov edx, dword [esp + 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
add esp, 0x114
ret 4

Function at 0x4670a0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4670ce
mov al, byte [esi + 1]
inc esi
cmp al, 0x22
je 0x4670c6
test al, al
je 0x4670c6
mov al, byte [esi + 1]
inc esi
cmp al, 0x22
jne 0x4670ba
cmp byte [esi], 0x22
jne 0x4670da
inc esi
jmp 0x4670da
cmp al, 0x20
jle 0x4670da
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
jg 0x4670d2
mov al, byte [esi]
test al, al
je 0x4670ec
cmp al, 0x20
jg 0x4670ec
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4670e0
lea eax, [esp + 4]
mov dword [esp + 0x30], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [esp + 0x30], 1
je 0x467111
mov eax, dword [esp + 0x34]
and eax, 0xffff
jmp 0x467116
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x47dd20
Capabilities:
Enumerate devices by category

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x20]
push eax
call fcn.004143a0
mov ebx, eax
mov eax, dword [esi + 0x2c]
xor ebp, ebp
add esp, 4
cmp eax, ebp
mov dword [esp + 0x18], ebx
jne 0x47ddbc
mov eax, dword [esi + 0x18]
lea edi, [esi + 0x18]
cmp eax, ebp
je 0x47dd5e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], ebp
push ebp
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebp
push edx
push 0x49ae40
push 1
push ebp
push 0x49aa28
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x47dda0
mov eax, dword [esp + 0x20]
push ebp
push edi
push 0x49aa18
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [esp + 0x20]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push ebp
push str.999999
call fcn.004143a0
add esp, 4
mov ecx, esi
push eax
call fcn.0047dcb0
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebp
mov edi, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
cmp edi, eax
jge 0x47ded2
mov ecx, dword [esi + 0x2c]
dec ecx
cmp ebx, ecx
jle 0x47ded2
cmp edi, eax
mov dword [esp + 0x14], edi
jge 0x47ded2
mov ecx, dword [esi + 0x20]
lea edx, [esp + 0x10]
inc ecx
push edx
mov dword [esi + 0x20], ecx
push edi
mov ecx, esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], ebp
call fcn.0047dcb0
cmp eax, edi
jne 0x47de18
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
push 0x49aef0
mov ecx, dword [eax]
push ebp
push ebp
push eax
call dword [ecx + 0x20]
cmp dword [esp + 0x20], ebp
je 0x47deaf
mov eax, dword [esi + 0x28]
lea edi, [esi + 0x28]
cmp eax, ebp
je 0x47de34
mov edi, eax
mov eax, dword [edi]
cmp eax, ebp
jne 0x47de2c
mov eax, dword [esi + 0x2c]
push 0xa
push eax
call fcn.00440dd0
push 0xa0
mov ebx, eax
call fcn.00416550
add esp, 0xc
cmp eax, ebp
je 0x47de5c
push ebx
mov ecx, eax
call fcn.0046a010
mov ebp, eax
push ebx
mov ecx, 0x4afb50
call fcn.004161f0
push 0x3c
call fcn.00416550
add esp, 4
test eax, eax
je 0x47de88
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x24]
push ecx
push ebp
push edx
mov ecx, eax
call fcn.0047d2c0
jmp 0x47de8a
xor eax, eax
push eax
mov ecx, ebp
mov dword [edi], eax
call fcn.0046a0e0
mov edi, dword [esi + 0x2c]
mov eax, dword [esp + 0x20]
inc edi
push eax
mov dword [esi + 0x2c], edi
mov ecx, dword [eax]
call dword [ecx + 8]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
xor ebp, ebp
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x47debd
mov edx, dword [eax]
push eax
call dword [edx + 8]
cmp ebx, dword [esi + 0x2c]
jl 0x47ded2
mov eax, dword [esi + 0x1c]
inc edi
cmp edi, eax
mov dword [esp + 0x14], edi
jl 0x47dde2
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x47e040
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x74
push ebp
push esi
lea eax, [esp + 8]
push edi
xor ebp, ebp
push eax
push 1
push ebp
push str.SoftwareMicrosoftMultimediaSound_Mapper
push 0x80000001
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47e1b0
mov edi, dword [esp + 0x84]
mov eax, str.Record
test edi, edi
jne 0x47e095
mov eax, str.Playback
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
push eax
push edx
call esi
test eax, eax
jne 0x47e1b0
mov eax, dword [esp + 0x14]
inc eax
push eax
call fcn.00416550
add esp, 4
mov ebp, eax
test edi, edi
mov eax, str.Record
jne 0x47e0d4
mov eax, str.Playback
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push ebp
push 0
push 0
push eax
push edx
call esi
test eax, eax
jne 0x47e1b0
test edi, edi
je 0x47e0fa
call dword [sym.imp.WINMM.dll_waveInGetNumDevs]
jmp 0x47e100
call dword [sym.imp.WINMM.dll_waveOutGetNumDevs]
xor edi, edi
mov dword [esp + 0x18], eax
test eax, eax
jle 0x47e1b0
mov eax, dword [esp + 0x84]
test eax, eax
je 0x47e15c
lea eax, [esp + 0x1c]
push 0x30
push eax
push edi
call dword [sym.imp.WINMM.dll_waveInGetDevCapsA]
mov esi, ebp
lea eax, [esp + 0x24]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x47e151
test cl, cl
je 0x47e14d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x47e151
add eax, 2
add esi, 2
test cl, cl
jne 0x47e12d
xor eax, eax
jmp 0x47e156
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x47e1ac
jmp 0x47e19d
lea eax, [esp + 0x4c]
push 0x34
push eax
push edi
call dword [sym.imp.WINMM.dll_waveOutGetDevCapsA]
mov esi, ebp
lea eax, [esp + 0x54]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x47e194
test cl, cl
je 0x47e190
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x47e194
add eax, 2
add esi, 2
test cl, cl
jne 0x47e170
xor eax, eax
jmp 0x47e199
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x47e1ac
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jl 0x47e10e
jmp 0x47e1b0
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x47e1bf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
je 0x47e1cc
push ebp
call fcn.00416560
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x74
ret
Function at 0x47e4d0
Capabilities:
Capture microphone audio

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
mov ecx, dword [ebp + 4]
add ecx, 0x24
call fcn.0047e9c0
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
mov byte [eax], 0
inc esi
mov dword [esp + 8], esi
je 0x47e5e6
mov cl, byte [ebp + 0x2aa]
test cl, cl
jne 0x47e5bb
mov ecx, dword [ebp + 0x28c]
test ecx, ecx
jle 0x47e5bb
mov byte [eax], 1
push ebx
mov ebx, dword [ebp + 0x24c]
lea eax, [ebp + 0x290]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 0x48]
mov esi, dword [ebp + ebx*4 + 8]
mov edi, dword [esp + 0x18]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x28c]
xor ecx, ecx
dec esi
mov eax, esi
mov dword [ebp + 0x28c], esi
test eax, eax
jle 0x47e573
lea eax, [ebp + 0x24c]
mov edx, dword [eax + 4]
inc ecx
mov dword [eax], edx
mov edx, dword [ebp + 0x28c]
add eax, 4
cmp ecx, edx
jl 0x47e560
lea eax, [ebp + 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp]
push 0x20
shl ebx, 5
lea eax, [ebx + ebp + 0x4c]
push eax
push ecx
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
mov al, byte [ebp + 0x2a8]
pop edi
test al, al
pop ebx
je 0x47e5b1
mov edx, dword [ebp]
push edx
call dword [sym.imp.WINMM.dll_waveInStart]
mov byte [ebp + 0x2a8], 0
mov eax, dword [esp + 8]
pop esi
pop ebp
pop ecx
ret 8
mov al, byte [ebp + 0x2a9]
test al, al
je 0x47e5de
mov eax, dword [ebp]
push eax
call dword [sym.imp.WINMM.dll_waveInStart]
mov eax, esi
mov byte [ebp + 0x2a9], 0
pop esi
pop ebp
pop ecx
ret 8
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x47e680
Capabilities:
Capture microphone audio

Disassembly:
sub esp, 0x18
lea eax, [esp + 4]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
push eax
mov ecx, dword [ebp + 4]
add ecx, 0x9c
push ecx
call fcn.0047dfc0
mov edx, dword [esp + 0x34]
lea edi, [ebp + 8]
add esp, 8
mov dword [ebp + 0x28c], 0
mov byte [ebp + 0x2a8], 0
mov dword [ebp + 0x48], edx
mov esi, edi
mov ebx, 0x10
mov eax, dword [esp + 0x2c]
push eax
call fcn.00416550
mov dword [esi], eax
add esp, 4
add esi, 4
dec ebx
jne 0x47e6c2
mov edx, dword [ebp + 4]
push 0x30000
push ebp
lea ecx, [esp + 0x1c]
mov eax, dword [edx + 0x50]
push 0x47e5f0
push ecx
push eax
push ebp
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
jne 0x47e75b
xor ebx, ebx
lea esi, [ebp + 0x4c]
mov dword [esp + 0x10], edi
mov ecx, 8
xor eax, eax
mov edi, esi
push 0x20
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
push esi
mov edx, dword [ecx]
mov dword [esi], edx
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
mov edx, dword [ebp]
push 0x20
push esi
push edx
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
mov edi, dword [esp + 0x10]
inc ebx
add edi, 4
add esi, 0x20
cmp ebx, 0x10
mov dword [esp + 0x10], edi
jl 0x47e702
mov byte [ebp + 0x2a9], 1
mov byte [ebp + 0x2aa], 0
xor ecx, ecx
pop edi
test eax, eax
sete cl
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x18
ret 4

Function at 0x47e8b0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov dword [esi + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esi + 0x28]
mov dword [esi + 0x20], eax
push edx
push 0
push esi
push 0x47e9e0
push 0
push 0
mov dword [esi + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov eax, dword [esp + 0x14]
dec eax
je 0x47e900
dec eax
jne 0x47e909
push 1
jmp 0x47e902
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test esi, esi
je 0x47e914
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 0xc

Function at 0x47e920
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
mov dword [edi], 1
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x47e977
push esi
call ebx
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebp
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
sub eax, edx
cmp eax, ecx
jae 0x47e989
jmp 0x47e94c
push esi
mov edi, 1
call ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
Function at 0x48e4e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push eax
push esi
xor edi, edi
call dword [0x572c18]
mov ecx, eax
add esp, 8
add ecx, 0x20
mov ebx, 8
sar ecx, 6
xor eax, eax
mov al, byte [esi + 7]
sub eax, ecx
cdq
mov ebp, eax
xor eax, eax
mov al, byte [esi + 6]
xor ebp, edx
sub eax, ecx
sub ebp, edx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
xor eax, eax
mov al, byte [esi + 5]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
xor eax, eax
mov al, byte [esi + 4]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
xor eax, eax
mov al, byte [esi + 3]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
xor eax, eax
mov al, byte [esi + 2]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
xor eax, eax
mov al, byte [esi + 1]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
xor eax, eax
mov al, byte [esi]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x18]
add eax, edi
add esi, edx
dec ebx
lea edi, [eax + ebp]
jne 0x48e506
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x48ea80
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
mov eax, 2
sub eax, edi
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, 3
sub eax, edi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, 4
sub eax, edi
mov ebp, 1
mov dword [esp + 0x14], eax
mov eax, 5
sub eax, edi
sub ebp, edi
mov dword [esp + 0x18], eax
mov eax, 6
sub eax, edi
lea ecx, [ebx + edi + 1]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], 8
xor eax, eax
xor edx, edx
mov al, byte [ecx - 1]
mov dl, byte [ebx]
lea eax, [eax + edx + 1]
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov byte [esi], al
mov dl, byte [ecx]
xor eax, eax
mov al, byte [ebx + 1]
add ebx, edi
lea eax, [eax + edx + 1]
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov byte [esi + 1], al
mov dl, byte [ecx + 1]
xor eax, eax
mov al, byte [ecx + ebp]
lea eax, [eax + edx + 1]
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
mov byte [esi + 2], al
xor eax, eax
mov al, byte [edx + ecx]
xor edx, edx
mov dl, byte [ecx + 2]
lea eax, [eax + edx + 1]
cdq
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
mov byte [esi + 3], al
xor eax, eax
mov al, byte [ecx + edx]
xor edx, edx
mov dl, byte [ecx + 3]
lea eax, [eax + edx + 1]
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
mov byte [esi + 4], al
xor eax, eax
mov al, byte [ecx + edx]
xor edx, edx
mov dl, byte [ecx + 4]
lea eax, [eax + edx + 1]
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
mov byte [esi + 5], al
xor eax, eax
mov al, byte [ecx + edx]
xor edx, edx
mov dl, byte [ecx + 5]
lea eax, [eax + edx + 1]
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
mov byte [esi + 6], al
xor eax, eax
mov al, byte [ecx + edx]
xor edx, edx
mov dl, byte [ecx + 6]
add ecx, edi
lea eax, [eax + edx + 1]
cdq
sub eax, edx
sar eax, 1
mov byte [esi + 7], al
mov eax, dword [esp + 0x24]
add esi, edi
dec eax
mov dword [esp + 0x24], eax
jne 0x48eadd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x490120
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
shl esi, 0xe
mov eax, dword [edi]
xor ebp, ebp
add eax, 4
add esi, 0x4b2acc
sar eax, 3
cmp eax, 1
jge 0x49014b
mov eax, 1
jmp 0x490157
cmp eax, 0xfe
jle 0x490157
mov eax, 0xfe
mov edx, dword [esp + 0x18]
mov ebx, 0x3f
sub edi, edx
mov dword [edx], eax
lea ecx, [edx + 4]
mov eax, dword [edi + ecx]
add ecx, 4
mov eax, dword [esi + eax*4]
mov dword [ecx - 4], eax
cdq
xor eax, edx
sub eax, edx
add ebp, eax
dec ebx
jne 0x490167
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

Function at 0x490470
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
shl esi, 0xe
add esi, 0x4b2acc
sub edi, ecx
mov ebp, 0x40
mov eax, dword [edi + ecx]
add ecx, 4
mov eax, dword [esi + eax*4]
mov dword [ecx - 4], eax
cdq
xor eax, edx
sub eax, edx
add ebx, eax
dec ebp
jne 0x490492
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret