joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c570
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x485273
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00478a8f
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047e124
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047f683
test eax, eax
je 0x43c68c
mov ecx, dword [esp + 0x3c]
call fcn.0047e151
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43c650
push edi
mov ecx, esi
call fcn.0047b7b8
mov ecx, esi
call fcn.0043c7f0
cmp dword [esp + 0x38], 1
jne 0x43c685
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0047b8f3
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4519e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4ca280]
xor edx, edx
cmp eax, edx
jne 0x451a06
xor eax, eax
mov byte [eax + 0x4ca180], al
inc eax
cmp eax, 0x100
jl 0x4519ee
mov dword [0x4ca280], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4ca180
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x451a97
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x451a6a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x451a38
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x451aa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x451af3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x451ada
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x458470
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48573e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00458d90
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x490504
call fcn.0047721e
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x458503
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0047721e
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4584fc
push 0
mov ecx, eax
call fcn.0044f610
mov dword [esi + 0xc], eax
jmp 0x458505
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x458505
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x479884
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4798bc
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00477938
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00477910
jmp 0x4798c8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47af72
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47afb4
call fcn.00480a6e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47afb4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47afab
xor eax, eax
jmp 0x47afbc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047afc2
pop edi
pop esi
pop ebx
ret 4

Function at 0x480f9e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x480fcc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x480fea
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00480f04
jmp 0x480fea
mov eax, dword [esi + 0x14]
test eax, eax
je 0x480fea
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00480f04
test edi, edi
mov eax, edi
jne 0x480fd4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4077c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x51f584]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4077f2
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482239
mov esp, ebp
pop ebp
ret
push edi
mov edx, esi
call fcn.00407920
push 0x103
xor edi, edi
lea eax, [ebp - 0x107]
push edi
push eax
mov byte [ebp - 0x108], 0
call fcn.00486830
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407820
sub eax, edx
inc eax
cmp eax, edi
je 0x407846
cmp eax, 0x7fffffff
ja 0x407846
push esi
mov edx, bind
lea ecx, [ebp - 0x108]
call fcn.00406ed0
mov edx, 0x104
lea eax, [ebp - 0x108]
cmp byte [eax], 0
je 0x40785c
inc eax
dec edx
jne 0x407851
jmp 0x407884
cmp edx, edi
je 0x407884
mov ecx, 0x104
sub ecx, edx
mov eax, 0x104
sub eax, ecx
push 0x50e3e0
lea ecx, [ebp + ecx - 0x108]
mov edx, bind
call fcn.00406ed0
mov ecx, 0x414
lea edx, [ebp - 0x108]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov word [ebp - 0x118], cx
mov dword [ebp - 0x112], edi
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x10e], edi
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x124], 3
xor esi, esi
jmp 0x4078d0
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov edi, eax
test edi, edi
je 0x4078f5
cmp edi, 0x20
jne 0x40790d
push 0x3e8
inc esi
call ebx
cmp esi, 5
jl 0x4078d0
xor eax, eax
pop ebx
test edi, edi
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482239
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.00482239
mov esp, ebp
pop ebp
ret
Function at 0x4200e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec970
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x51f584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
movzx ecx, cl
push ebx
neg ecx
sbb ecx, ecx
lea eax, [ebp - 0x10]
push eax
push ebx
and ecx, 0x100
add ecx, 0xf003f
push ecx
push ebx
push ebx
push ebx
push str.SOFTWARETpspCln
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea esi, [ebx + 0x10]
cmp eax, ebx
je 0x42018c
mov byte [ebp - 4], bl
cmp dword [ebp + 0x1c], esi
jb 0x420152
mov edx, dword [ebp + 8]
push edx
call fcn.004825e4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], esi
jb 0x420177
mov eax, dword [ebp + 0x24]
push eax
call fcn.004825e4
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38
mov ecx, dword [ebp + 0x24]
cmp dword [ebp + 0x38], esi
jae 0x420197
lea ecx, [ebp + 0x24]
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x4201a2
lea eax, [ebp + 8]
mov edx, dword [ebp + 0x34]
push edx
push ecx
push 1
push ebx
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
je 0x420207
mov byte [ebp - 4], bl
cmp dword [ebp + 0x1c], esi
jb 0x4201cd
mov ecx, dword [ebp + 8]
push ecx
call fcn.004825e4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], esi
jb 0x420177
mov edx, dword [ebp + 0x24]
push edx
call fcn.004825e4
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
cmp dword [ebp + 0x1c], esi
jb 0x420225
mov ecx, dword [ebp + 8]
push ecx
call fcn.004825e4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], esi
jb 0x42024a
mov edx, dword [ebp + 0x24]
push edx
call fcn.004825e4
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38
Function at 0x44b790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed33e
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x51f584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 1
test byte [0x527408], al
jne 0x44b7fe
or dword [0x527408], eax
push 0x4f9920
mov dword [0x527400], 0xf
mov dword [0x5273fc], 0
mov byte [0x5273ec], 0
call fcn.00482da7
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [0x5273fc], 0
je 0x44b817
push 0xffffffffffffffff
push 0
push 0x5273ec
mov ecx, esi
call fcn.00402c50
push 0x103
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.00486830
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesEyooClientSVC
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44b926
mov ecx, dword [ebp - 0x118]
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push str.ImagePath
push ecx
mov dword [ebp - 0x11c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x118]
push edx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x44b8a2
mov eax, edi
jmp 0x44b926
lea eax, [ebp - 0x114]
push 0x5c
push eax
call fcn.00485a9f
add esp, 8
test eax, eax
je 0x44b8ba
mov byte [eax], 0
cmp byte [ebp - 0x114], 0x22
jne 0x44b8e3
lea eax, [ebp - 0x113]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44b8d0
sub eax, edx
push eax
lea ecx, [ebp - 0x113]
push ecx
jmp 0x44b901
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44b8f0
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
mov ecx, esi
call fcn.00402a60
cmp dword [esi + 0x10], 0
jne 0x44b915
mov eax, 3
jmp 0x44b926
push 0xffffffffffffffff
push 0
push esi
mov ecx, 0x5273ec
call fcn.00402c50
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00482239
mov esp, ebp
pop ebp
ret
Function at 0x44b940
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x51f584]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x525bc4]
cmp eax, 0xfffffc19
jne 0x44babf
push ebx
push esi
xor ebx, ebx
push str.kernel32
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
jne 0x44b97a
xor eax, eax
jmp 0x44b99c
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x44b999
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [ebp - 0x24]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x28]
push ecx
and eax, 0x100
add eax, 0x20019
push eax
push ebx
push str.SOFTWAREEYOOCLIENTSTATUS
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44ba6a
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, 4
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push ebx
push str.BootFrom
push edx
call esi
test eax, eax
jne 0x44ba11
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x2c]
push edx
push ebx
push str.MixedMode
push eax
call esi
test eax, eax
je 0x44ba24
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482239
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x34], ebx
je 0x44ba52
cmp dword [ebp - 0x30], ebx
jne 0x44ba52
mov eax, 1
pop esi
mov dword [0x525bc4], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482239
mov esp, ebp
pop ebp
ret
pop esi
mov dword [0x525bc4], ebx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482239
mov esp, ebp
pop ebp
ret
push 0x1a
push str.D:_syssetmenu_setmenu.dat
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
call fcn.00402a60
mov eax, dword [ebp - 0x20]
mov esi, 0x10
cmp dword [ebp - 0xc], esi
jae 0x44ba96
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
inc eax
mov dword [0x525bc4], eax
cmp dword [ebp - 0xc], esi
jb 0x44babd
mov edx, dword [ebp - 0x20]
push edx
call fcn.004825e4
mov eax, dword [0x525bc4]
add esp, 4
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482239
mov esp, ebp
pop ebp
ret
Function at 0x472110
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.00470fc0
test eax, eax
je 0x472126
xor eax, eax
jmp 0x4721c5
mov dword [ebp - 0xc], 0
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
push 0x8000
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 3
push 0
push 1
push bind
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], 0xffffffff
je 0x4721c2
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4721b8
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x472750
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
push 0
push 0
push 3
push 0
push 1
push bind
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x47281a
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x472810
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x472806
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x4727fc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0x4550
jne 0x4727fc
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0x18]
cmp ecx, 0x20b
jne 0x4727fc
mov dword [ebp - 8], 1
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x10001600
Capabilities:
Allocate or change rwx memory
Check os version
Execute shellcode via indirect call
Print debug messages

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x1002c2e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x100529c0], 0
push esi
push edi
jne 0x1000180f
lea eax, [ebp - 0x138]
mov dword [ebp - 0x138], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [0x100529b8]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmovne ecx, dword [ebp - 0x134]
push str.InitializeSoundHack__
mov dword [0x100529b8], ecx
call edi
mov eax, dword [0x100529b8]
test eax, eax
je 0x10001805
cmp eax, 6
jae 0x10001805
push 0x1002677c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x100016a6
push 0x1002677c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x100016fc
push str.waveOutWrite
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x10001390
mov dword [0x100529b0], eax
mov ecx, 0x100529b0
call fcn.100024a0
test eax, eax
je 0x100016d1
push str.waveOutWrite_Hook_OK
call edi
push str.midiStreamOut
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x100013d0
mov dword [0x100529bc], eax
mov ecx, 0x100529bc
call fcn.100024a0
test eax, eax
je 0x100016fc
push str.midiStreamOut_Hook_OK
call edi
push str.dsound.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x1000171e
push str.dsound.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x10001805
push 0
lea eax, [ebp - 0x178]
push eax
push 0
call dword [sym.imp.DSOUND.dll_DirectSoundCreate]
test eax, eax
jne 0x10001805
xorps xmm0, xmm0
mov dword [ebp - 0x150], eax
movdqa xmmword [ebp - 0x160], xmm0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x160], eax
lea edx, [ebp - 0x174]
mov eax, dword [ebp - 0x178]
movdqa xmmword [ebp - 0x20], xmm0
push 0
movdqa xmmword [ebp - 0x170], xmm0
push edx
mov dword [ebp - 0x20], 0x20001
lea edx, [ebp - 0x170]
mov dword [ebp - 0x1c], 0x5622
mov dword [ebp - 0x14], 0x100004
mov dword [ebp - 0x18], 0x15888
mov dword [ebp - 0x170], 0x24
mov dword [ebp - 0x16c], 0x80e0
mov dword [ebp - 0x168], 0x15888
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x100017f9
mov eax, dword [ebp - 0x174]
mov esi, dword [eax]
lea eax, [ebp - 0x17c]
push eax
push 0x40
push 4
add esi, 0x30
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100017ed
mov eax, dword [esi]
push str.IDirectSoundBuffer::Play_Hook_OK
mov dword [0x100529b4], eax
mov dword [esi], 0x100013e0
call edi
mov eax, dword [ebp - 0x174]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x178]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [0x100529c0], 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001147c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret