joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9ffe00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0xa158f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x9ffed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.009fc7a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x9ffe61
mov edx, dword [eax]
jmp 0x9ffe63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.009fe050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x9ffebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x9ffebf
cmp esi, edi
je 0x9ffebf
mov ecx, esi
call fcn.009f7a00
push esi
call fcn.00a051c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.009fc990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x9ffef5
mov eax, dword [eax]
jmp 0x9ffef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.009fb640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x9fff25
mov eax, dword [eax]
jmp 0x9fff27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0x9fff76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x9fff76
cmp esi, edi
je 0x9fff76
mov eax, dword [esi]
cmp eax, edi
je 0x9fff5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x9fff6d
push eax
call fcn.00a051c8
add esp, 4
push esi
call fcn.00a051c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x9fff90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x9ffffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xa00035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.009ffe00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x9fffc5
mov edi, 0xa1a8b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xa00035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.009ffe00
add edi, 4
add esp, 0xc
cmp edi, 0xa1a8c0
jb 0xa00000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0xa00070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00a06082
mov esi, eax
add esp, 8
test esi, esi
je 0xa00107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0xa00102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00a05946
add esp, 8
test eax, eax
je 0xa000e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0xa000e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00a05946
add esp, 8
test eax, eax
jne 0xa000c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0xa00102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0xa00f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xa159fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xa01002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00a04dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xa01002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.009fc6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00a0520b
push 0x10
call fcn.00a051d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xa00fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.009f11c0
jmp 0xa00fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00a00b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xa00ff0
mov ecx, edi
call fcn.009f12c0
push edi
call fcn.00a051c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xa01021
inc ebx
cmp ebx, 0x20
jb 0xa00f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xa02250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa16808
push 0xa06288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xa02329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xa02329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00a051d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xa02329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xa02329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xa0232c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00a02351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xa02d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xa02d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xa02d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xa02d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xa02d94
push eax
push esi
call fcn.00a0520b
add esp, 8
pop esi
ret 0x10

Function at 0xa02da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xa02e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xa02e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xa1b320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00a04dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xa02dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xa02e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xa02ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xa02eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xa1b320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00a04dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xa02eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xa02e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xa03000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xa03131
push esi
call fcn.00a06145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.009f5080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xa03131
push 0
push ebp
call fcn.009f53a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.009f5260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xa0308b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.009f52f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xa03121
push 0xa1b918
push edi
call fcn.00a043f0
push eax
push ebx
push esi
call fcn.00a02f60
push 0xa1b8f8
push edi
call fcn.00a043f0
push eax
push ebx
push esi
call fcn.00a02f60
push 0xa1b8d8
push edi
call fcn.00a043f0
push eax
push ebx
push esi
call fcn.00a02f60
push 0xa1b8c0
push edi
call fcn.00a043f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00a02f60
push 0xa1b8a0
push edi
call fcn.00a043f0
push eax
push ebx
push esi
call fcn.00a02f60
push 0xa1b888
push edi
call fcn.00a043f0
push eax
push ebx
push esi
call fcn.00a02f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xa041b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00a04140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00a04140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00a04140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00a04140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xa04bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xa04c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xa1687c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xa04c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xa04c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x401443
pop dword [ebp - 8]
mov eax, 0xd9fe8e44
sub eax, 0xd9be7a01
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xe0eea389
add dword [ebp - 0x18], 0x6d63a1c2
mov dword [ebp - 0x14], 0x11df1601
sub dword [ebp - 0x14], 0xdfabc9bc
mov dword [ebp - 0x10], 0x7fc14af6
sub dword [ebp - 0x10], 0x337506c8
mov dword [ebp - 0xc], 0x1bd0e135
add dword [ebp - 0xc], 0xe42f1ecb
lea eax, [ebp - 0x18]
push eax
mov eax, 0x37aa08b0
sub eax, 0x3769976c
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x9811e7c4
add dword [ebp - 0x18], 0xdc608192
mov dword [ebp - 0x14], 0x95721f6
sub dword [ebp - 0x14], 0xc7eac081
mov dword [ebp - 0x10], 0xfb7281b4
sub dword [ebp - 0x10], 0x98031548
mov dword [ebp - 0xc], 0x5afb8603
sub dword [ebp - 0xc], 0x5afb8603
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x1c7a915b
add eax, 0xe3c5dfb5
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x38195
push 0
call eax
mov ecx, 0xbdd43f21
add ecx, 0x422c08e3
mov esi, eax
mov edi, 0x8fee4a04
add edi, 0x705515fc
add edi, dword [ebp - 8]
mov edx, 0x173dacff
mov ebx, dword [edi]
xor dword [ebp - 4], 0xc4ba273a
xor ebx, edx
add dword [ebp - 4], ebx
mov dword [esi], ebx
xor dword [ebp - 4], eax
add esi, 0xab9ca574
sub esi, 0xab9ca570
add edi, 4
loop 0x40155f
add eax, 0x112e3
mov ebx, eax
add eax, 0xcfe9f6a
add eax, 0xf301609b
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x402a69
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x424010]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402afd
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402aba
cmp dword [ebp + 0x10], ebx
jne 0x402af1
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402acc
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402aa1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
call fcn.004060b1
cmp eax, ebx
je 0x402b04
push ebx
push dword [0x424010]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402afd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x424010], ebx
jne 0x402afa
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402afa
jmp 0x402afd
Function at 0x406120
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422af4], 0
push esi
jne 0x406157
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406131
mov dword [ecx*4 + 0x422af0], eax
inc ecx
cmp ecx, 0x100
jl 0x40612c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406188
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422af0]
xor eax, esi
inc ecx
dec edx
jne 0x40616a
pop edi
not eax
pop esi
ret 0xc
Function at 0x402360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xafcc0
call fcn.004039d0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xafca0], 0
push eax
push eax
push eax
mov word [ebp - 0xafc8c], ax
lea eax, [ebp - 0xafc9c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xafca0]
mov dword [ebp - 0xafc9c], 0x10001
push eax
mov dword [ebp - 0xafc98], 0x5dc0
mov dword [ebp - 0xafc94], 0x5dc0
mov dword [ebp - 0xafc90], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0xafc80
lea eax, [ebp - 0xafc88]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ecx, ecx
cmp dword [0x40e3c4], 2
jl 0x402520
movaps xmm4, xmmword [0x40c950]
lea eax, [ecx + 4]
movaps xmm3, xmmword [0x40c980]
movd xmm0, ecx
add ecx, 8
pshufd xmm1, xmm0, 0
paddd xmm1, xmm4
movaps xmm0, xmm1
movaps xmm2, xmm1
psrld xmm0, 5
psrld xmm2, 8
orps xmm0, xmm1
xorps xmm2, xmm1
pmulld xmm2, xmm0
movaps xmm0, xmm1
psrld xmm0, 7
orps xmm0, xmm1
paddd xmm2, xmm0
movaps xmm0, xmm1
pslld xmm0, 4
orps xmm0, xmm1
paddd xmm2, xmm0
movaps xmm0, xmm2
punpckldq xmm0, xmm2
pmuludq xmm0, xmm3
punpckhdq xmm2, xmm2
pmuludq xmm2, xmm3
shufps xmm0, xmm2, 0xdd
psrld xmm0, 6
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
andps xmm0, xmmword [0x40c970]
packuswb xmm0, xmm0
movd dword [ebp + eax - 0xafc8c], xmm0
movd xmm0, eax
pshufd xmm1, xmm0, 0
paddd xmm1, xmm4
movaps xmm0, xmm1
movaps xmm2, xmm1
psrld xmm0, 5
psrld xmm2, 8
orps xmm0, xmm1
xorps xmm2, xmm1
pmulld xmm2, xmm0
movaps xmm0, xmm1
psrld xmm0, 7
orps xmm0, xmm1
paddd xmm2, xmm0
movaps xmm0, xmm1
pslld xmm0, 4
orps xmm0, xmm1
paddd xmm2, xmm0
movaps xmm0, xmm2
punpckldq xmm0, xmm2
pmuludq xmm0, xmm3
punpckhdq xmm2, xmm2
pmuludq xmm2, xmm3
shufps xmm0, xmm2, 0xdd
psrld xmm0, 6
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
andps xmm0, xmmword [0x40c970]
packuswb xmm0, xmm0
movd dword [ebp + eax - 0xafc88], xmm0
add eax, 8
cmp eax, 0xafc84
jb 0x402401
jmp 0x40255d
mov edx, ecx
mov eax, ecx
shr eax, 5
or eax, ecx
shr edx, 8
xor edx, ecx
imul edx, eax
mov eax, ecx
shr eax, 7
or eax, ecx
add edx, eax
mov eax, ecx
shl eax, 4
or eax, ecx
add edx, eax
mov eax, 0x10624dd3
mul edx
shr edx, 6
mov byte [ebp + ecx - 0xafc88], dl
inc ecx
cmp ecx, 0xafc80
jb 0x402520
lea eax, [ebp - 0xafc88]
mov dword [ebp - 0xafcbc], 0xafc80
mov dword [ebp - 0xafcc0], eax
lea eax, [ebp - 0xafcc0]
push 0x20
push eax
push dword [ebp - 0xafca0]
mov dword [ebp - 0xafcb8], 0
mov dword [ebp - 0xafcb4], 0
mov dword [ebp - 0xafcb0], 0
mov dword [ebp - 0xafcac], 0
mov dword [ebp - 0xafca8], 0
mov dword [ebp - 0xafca4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0xafcc0]
push eax
push dword [ebp - 0xafca0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0xafcc0]
push eax
push dword [ebp - 0xafca0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0xafca0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402d28
mov esp, ebp
pop ebp
ret
Function at 0x402610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xafcc0
call fcn.004039d0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xafca0], 0
push eax
push eax
push eax
mov word [ebp - 0xafc8c], ax
lea eax, [ebp - 0xafc9c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xafca0]
mov dword [ebp - 0xafc9c], 0x10001
push eax
mov dword [ebp - 0xafc98], 0x5dc0
mov dword [ebp - 0xafc94], 0x5dc0
mov dword [ebp - 0xafc90], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0xafc80
lea eax, [ebp - 0xafc88]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov edx, eax
mov ecx, eax
shr ecx, 5
or cl, al
shr edx, 8
xor dl, al
movsx ecx, cl
movsx edx, dl
imul edx, ecx
mov ecx, eax
shr ecx, 7
or cl, al
add dl, cl
mov cl, al
shl cl, 4
or cl, al
add dl, cl
mov byte [ebp + eax - 0xafc88], dl
inc eax
cmp eax, 0xafc80
jb 0x402693
lea eax, [ebp - 0xafc88]
mov dword [ebp - 0xafcbc], 0xafc80
mov dword [ebp - 0xafcc0], eax
lea eax, [ebp - 0xafcc0]
push 0x20
push eax
push dword [ebp - 0xafca0]
mov dword [ebp - 0xafcb8], 0
mov dword [ebp - 0xafcb4], 0
mov dword [ebp - 0xafcb0], 0
mov dword [ebp - 0xafcac], 0
mov dword [ebp - 0xafca8], 0
mov dword [ebp - 0xafca4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0xafcc0]
push eax
push dword [ebp - 0xafca0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0xafcc0]
push eax
push dword [ebp - 0xafca0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0xafca0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402d28
mov esp, ebp
pop ebp
ret
Function at 0x402780
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xafcc0
call fcn.004039d0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xafca0], 0
push eax
push eax
push eax
mov word [ebp - 0xafc8c], ax
lea eax, [ebp - 0xafc9c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xafca0]
mov dword [ebp - 0xafc9c], 0x10001
push eax
mov dword [ebp - 0xafc98], 0x5dc0
mov dword [ebp - 0xafc94], 0x5dc0
mov dword [ebp - 0xafc90], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0xafc80
lea eax, [ebp - 0xafc88]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov edx, eax
mov ecx, eax
shr ecx, 5
or cl, al
shr edx, 7
or dl, al
add dl, cl
mov cl, al
shl cl, 4
or cl, al
add dl, cl
mov ecx, eax
shr ecx, 8
xor cl, al
or dl, cl
mov byte [ebp + eax - 0xafc88], dl
inc eax
cmp eax, 0xafc80
jb 0x402803
lea eax, [ebp - 0xafc88]
mov dword [ebp - 0xafcbc], 0xafc80
mov dword [ebp - 0xafcc0], eax
lea eax, [ebp - 0xafcc0]
push 0x20
push eax
push dword [ebp - 0xafca0]
mov dword [ebp - 0xafcb8], 0
mov dword [ebp - 0xafcb4], 0
mov dword [ebp - 0xafcb0], 0
mov dword [ebp - 0xafcac], 0
mov dword [ebp - 0xafca8], 0
mov dword [ebp - 0xafca4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0xafcc0]
push eax
push dword [ebp - 0xafca0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0xafcc0]
push eax
push dword [ebp - 0xafca0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0xafca0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402d28
mov esp, ebp
pop ebp
ret