joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4264dd
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44acb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
push ebx
push esi
mov esi, ecx
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 8]
push 1
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x45d124
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 8]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x426533
push 0x45d124
lea ecx, [esp + 0x3c]
call fcn.00446216
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
mov ecx, dword [edx - 8]
test ecx, ecx
jne 0x426550
push str..dll
lea ecx, [esp + 0x3c]
call fcn.00446216
jmp 0x42655a
push eax
lea ecx, [esp + 0x3c]
call fcn.00446780
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [esp + 0x38]
push 0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x4265b7
push edi
mov bl, 2
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x40]
mov edi, eax
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x38], bl
call dword [edx + 0x24]
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::CString
test edi, edi
jne 0x42657f
pop edi
mov esi, dword [esi + 0x70]
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call fcn.00446a68
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x427b40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44ad7f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], ebx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 4]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, esi
lea ecx, [esp + 0xc]
sub eax, edi
mov dword [esp + 0x20], 1
inc eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
cmp edi, esi
mov dword [esp + 0x2c], eax
jg 0x427c36
push ebp
mov ecx, dword [esp + 0x14]
mov al, byte [edi + ecx]
lea ebp, [edi + ecx]
cmp al, 0x26
jne 0x427c0c
xor esi, esi
mov eax, dword [esi*4 + 0x45f4f4]
mov edx, dword [esp + 0x34]
sub edx, eax
cmp edi, edx
jg 0x427bda
mov ecx, dword [esi*4 + 0x45f4e0]
push eax
lea eax, [ebp + 1]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsnbcmp]
add esp, 0xc
test eax, eax
je 0x427bed
inc esi
cmp esi, 5
jl 0x427baf
mov edx, dword [esp + 0x30]
inc ebx
inc edi
mov byte [ebx + edx - 1], 0x26
jmp 0x427c2b
mov ecx, dword [0x45f508]
mov eax, dword [esp + 0x30]
inc ebx
mov dl, byte [ecx + esi]
mov byte [ebx + eax - 1], dl
mov ecx, dword [esi*4 + 0x45f4f4]
lea edi, [edi + ecx + 1]
jmp 0x427c2b
push ebp
call dword [sym.imp.MSVCRT.dll__mbclen]
mov esi, eax
mov eax, dword [esp + 0x34]
push ebp
lea ecx, [ebx + eax]
push ecx
call dword [sym.imp.MSVCRT.dll__mbccpy]
add esp, 0xc
add ebx, esi
add edi, esi
cmp edi, dword [esp + 0x34]
jle 0x427b9f
pop ebp
push ebx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov esi, dword [esp + 0x28]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc

Function at 0x428a70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44aee3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x450460
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov dword [esp + 0x18], edi
mov ecx, ebx
call sub.MFC42.DLL_CPtrArray::CPtrArray
mov dword [ebx], 0x451ab4
lea ebx, [esi + 0x1c]
mov byte [esp + 0x18], 1
mov ecx, ebx
call sub.MFC42.DLL_CPtrArray::CPtrArray
or eax, 0xffffffff
push 0x460938
mov dword [ebx], 0x451a78
push edi
mov dword [esi], 0x451a8c
mov dword [esi + 0x4c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], 0xc0c0c0
mov dword [esi + 0x34], edi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x50], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x42ad30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44b11b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x451b00
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x42adc0
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x42ad87
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x42adb1
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x42adc6
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x42adc6
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x44f038
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x44f060
mov dword [esp + 0x1c], 0xffffffff
call fcn.00446ba6
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x42c4d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x44b380
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x18], 0x451ac8
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x44]
mov dword [esp + 0x30], edi
push eax
push edi
push edi
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CGdiObject::Attach
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
cmp eax, edi
je 0x42c53d
mov dword [esp + 0x10], 1
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
lea edx, [esp + 0x20]
mov ecx, esi
lea eax, [ebp + 2]
push eax
push edi
push edx
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esp + 0x10]
mov ebx, ebp
sub ebx, edx
mov ecx, esi
lea eax, [ebx + 5]
push eax
push edi
mov dword [esp + 0x40], eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [ebp + 3]
lea ecx, [edi + 1]
push eax
lea eax, [esp + 0x24]
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [ebx + 6]
mov ecx, esi
mov dword [esp + 0x44], eax
push eax
lea eax, [edi + 1]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea ecx, [ebp + 4]
lea eax, [edi + 2]
push ecx
lea edx, [esp + 0x24]
push eax
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [ebx + 7]
mov ecx, esi
push eax
lea eax, [edi + 2]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [ebp + 3]
lea ecx, [edi + 3]
push eax
push ecx
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esp + 0x44]
lea eax, [edi + 3]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
lea eax, [ebp + 2]
lea ecx, [edi + 4]
push eax
lea eax, [esp + 0x24]
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x38]
lea eax, [edi + 4]
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
lea edx, [ebp + 1]
lea eax, [edi + 5]
push edx
push eax
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea ecx, [ebx + 4]
lea eax, [edi + 5]
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
add edi, 6
push ebp
lea edx, [esp + 0x24]
push edi
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
add ebx, 3
mov ecx, esi
push ebx
push edi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x14]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x18], 0x44f038
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x14
Function at 0x42d740
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44b500
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
mov eax, esi
mov ebp, ecx
push edi
xor edi, edi
mov ecx, dword [eax]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 0x451adc
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], edi
call fcn.00428bc0
test eax, eax
je 0x42d79e
push 0xf
jmp 0x42d7a0
push 4
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
call ebx
cmp dword [esp + 0x40], edi
jne 0x42d7c1
push 0x3fe33333
push 0x33333333
push eax
call fcn.00429ac0
add esp, 0xc
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
call fcn.00428bb0
test eax, eax
je 0x42d819
mov eax, dword [edi + 4]
push 0xf
lea edx, [esp + 0x1c]
push 2
push edx
push eax
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x42d83f
push 0
push 7
call ebx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
add ecx, 4
push eax
add edx, 4
push ecx
push edx
push edi
mov ecx, ebp
call fcn.0042c4d0
jmp 0x42d859
push 7
call ebx
mov ecx, dword [esi]
push eax
mov eax, dword [esi + 4]
add ecx, 5
add eax, 4
push eax
push ecx
push edi
mov ecx, ebp
call fcn.0042c3b0
mov dword [esp + 0x10], 0x44f038
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10

Function at 0x42df20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
and esi, 0xffff
push 2
push esi
call sub.MFC42.DLL_AfxFindResourceHandle
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push 2
push esi
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x42df5d
xor ebx, ebx
push 2
push esi
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x42df5d
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x42df6e
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x42df7e
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call fcn.0042dee0
add esp, 4
cmp ax, 0x10
je 0x42df94
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push edi
push ebx
call sub.MFC42.DLL_AfxLoadSysColorBitmap
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x42e060
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x46095c]
sub esp, 0x134
test eax, eax
jne 0x42e135
lea eax, [esp]
mov dword [0x46095c], 1
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42e135
push esi
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42e128
mov ecx, 5
mov esi, str.Windows_Classic.theme
lea edi, [esp + 0x14]
lea edx, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
call edi
cmp esi, eax
jl 0x42e128
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
call edi
sub esi, eax
lea eax, [esp + esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x42e128
mov dword [0x460958], 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [0x460958]
add esp, 0x134
ret

Function at 0x42ebd6
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44b678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
xor eax, eax
mov dword [esi], 0x451bd8
mov dword [esp + 0x10], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x30], eax
call fcn.0042f130
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4301b0
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4301f1
call fcn.00430e40
test eax, eax
je 0x4301f8
lea eax, [esp + 8]
push eax
push 4
push esi
push 0x430760
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x94], eax
test eax, eax
je 0x4301f1
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x4301f1
mov ecx, dword [eax]
lea edx, [esp + 8]
push edi
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0x9c]
lea edx, [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [esp + 8]
push 0
mov edi, ecx
mov eax, dword [esi + 0x9c]
neg edi
push edi
mov edi, dword [esp + 0x14]
push edi
push ecx
mov ecx, dword [esi + 0x54]
mov edx, dword [eax]
push 0
push ecx
mov ecx, dword [esi + 0x50]
push ecx
mov ecx, dword [esi + 0x7c]
push 0
push 0
push ecx
push eax
call dword [edx + 0x20]
test eax, eax
pop edi
jne 0x4301f1
mov edx, dword [esi + 0x20]
push eax
push eax
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x4310b0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push esi
push edi
push 0x45d900
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4310d8
pop edi
pop esi
pop ebx
add esp, 8
ret 4
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov ebx, eax
call edi
add esp, 0x1c
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push esi
test edi, edi
jne 0x43111c
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret 4
push ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [esp + 0x18]
push ecx
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x431158
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
lea edx, [esp + 0xc]
push edx
push 0x454278
push 0
push 0
push eax
call dword [sym.imp.OLEPRO32.DLL_OleLoadPicture]
mov eax, dword [esp + 0xc]
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x431191
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
mov edx, dword [eax]
push eax
call dword [edx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [esp + 0x10]
push 4
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_CopyImage]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret 4

Function at 0x4328f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44b971
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x30]
call sub.MFC42.DLL_CString::CString_2
lea edi, [esi + 0x34]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x38]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x20]
mov ecx, edi
push eax
mov byte [esp + 0x1c], 2
mov dword [esi], 0x45201c
mov dword [esi + 0x28], ebx
mov dword [esi + 0x24], ebx
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x20], ebx
mov dword [esi + 4], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x432ba0
Capabilities:
Move file

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [esi]
push ecx
push edi
mov ecx, esi
call dword [eax + 8]
test eax, eax
jne 0x432bc3
pop edi
mov eax, 1
pop esi
ret 8
push 0xb4
mov ecx, esi
call fcn.00432ac0
mov eax, dword [esi + 0x30]
push 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x432bec
mov ecx, esi
call fcn.00432a20
pop edi
pop esi
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
xor eax, eax
pop esi
ret 8
Function at 0x433fb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x12c
push ebx
push ebp
mov ebp, dword [esp + 0x138]
push esi
push edi
mov ebx, ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x434153
test al, 0x10
jne 0x434153
push 0x2e
push ebp
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x433fff
pop edi
pop esi
pop ebp
mov eax, 0xc3cb
pop ebx
add esp, 0x12c
ret 4
mov edi, dword [sym.imp.MSVCRT.dll__stricmp]
push str..wav
push esi
call edi
add esp, 8
test eax, eax
jne 0x434044
mov ecx, ebx
call fcn.00434170
push 0x20001
push 0
push ebp
call dword [sym.imp.WINMM.dll_PlaySoundA]
neg eax
sbb eax, eax
pop edi
and eax, 0xffff3c34
pop esi
pop ebp
add eax, 0xc3cc
pop ebx
add esp, 0x12c
ret 4
push str..mid
push esi
call edi
add esp, 8
test eax, eax
je 0x434083
push str..midi
push esi
call edi
add esp, 8
test eax, eax
je 0x434083
push str..rmi
push esi
call edi
add esp, 8
test eax, eax
je 0x434083
pop edi
pop esi
pop ebp
mov eax, 0xc3cb
pop ebx
add esp, 0x12c
ret 4
mov ecx, ebx
call fcn.00434170
mov esi, ebp
mov eax, 0x460974
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4340b9
test cl, cl
je 0x4340b5
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4340b9
add eax, 2
add esi, 2
test cl, cl
jne 0x434091
xor eax, eax
jmp 0x4340be
sbb eax, eax
sbb eax, 0xffffffff
mov ebx, dword [sym.imp.WINMM.dll_mciSendStringA]
test eax, eax
je 0x43411c
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, 0x460974
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push str.close_all
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
push ebp
lea ecx, [esp + 0x14]
push str.open___s__type_sequencer_alias_MidiDemo
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x10]
push 0
push 0
push 0
push edx
call ebx
test eax, eax
jne 0x434158
push 0
push 0
push 0
push str.play_MidiDemo_from_0
call ebx
test eax, eax
je 0x434144
cmp eax, 2
jne 0x434158
pop edi
pop esi
pop ebp
mov eax, 0x157
pop ebx
add esp, 0x12c
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x12c
ret 4
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret 4
Function at 0x435150
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x44bbc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x4522bc
mov eax, dword [esi + 0x10]
xor edi, edi
test eax, eax
mov dword [esp + 0x14], 1
je 0x4351e9
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4351a4
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
add eax, ecx
add eax, edx
test eax, eax
jg 0x4351a4
mov edi, 1
jmp 0x4351c0
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
push ecx
push edx
push eax
push 0x45f910
push 5
push esi
call fcn.00435220
add esp, 0x18
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [esi + 0x10], 0
test edi, edi
je 0x4351e9
mov eax, dword [esi + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4351e9
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 0xc]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret