joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4108c0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xa8
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb8]
lea eax, [esp + 0xc]
push edi
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x38]
push 0x80
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
mov edi, eax
call ebx
push eax
mov esi, dword [esp + 0xc4]
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0x12
call ebx
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [0x57f098]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push esi
call ebp
push 0
push edi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
inc eax
dec ecx
inc edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
lea ecx, [esp + 0x40]
lea edx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
push edx
push 2
push 1
dec eax
push 4
push esi
mov dword [esp + 0x54], eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov eax, dword [0x57f0a0]
mov edx, dword [esp + 0x14]
sub edi, ebx
mov ebx, dword [esp + 0x1c]
push eax
push esi
sub ebx, edx
call ebp
mov ebp, dword [sym.imp.GDI32.dll_PatBlt]
push 0xf00021
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ebx
push 1
push ecx
push edx
push esi
mov dword [esp + 0x3c], eax
call ebp
push 0xf00021
push 1
mov eax, dword [esp + 0x1c]
push edi
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push esi
call ebp
mov edx, dword [0x57f094]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
dec ebx
push 0xf00021
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ebx
inc eax
push 1
dec ecx
push eax
push ecx
push esi
call ebp
push 0xf00021
dec edi
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push 1
dec edx
push edi
inc eax
push edx
push eax
push esi
call ebp
mov eax, dword [esp + 0x20]
test eax, eax
je 0x410a06
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x410a16
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret 8
Function at 0x413002
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4147a8
call fcn.004131ec
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x413055
mov eax, dword [0x40003c]
lea eax, [eax + 0x400000]
cmp dword [eax], 0x4550
jne 0x413055
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x41306d
cmp ecx, 0x20b
je 0x41305a
mov dword [ebp - 0x1c], ebx
jmp 0x413081
cmp dword [eax + 0x84], 0xe
jbe 0x413055
xor ecx, ecx
cmp dword [eax + 0xf8], ebx
jmp 0x41307b
cmp dword [eax + 0x74], 0xe
jbe 0x413055
xor ecx, ecx
cmp dword [eax + 0xe8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x57f79c], edi
mov dword [0x57f7a0], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x57f798]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x57f794]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x57f7a4], eax
call fcn.00413262
cmp dword [0x41a7c0], ebx
jne 0x4130de
push fcn.00413262
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00413250
push 0x414310
push 0x41430c
call sub.msvcrt.dll__initterm
mov eax, dword [0x57f790]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x57f78c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x414308
push 0x4142f0
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x413169
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x413149
cmp cl, 0x22
jne 0x41313a
cmp byte [eax], 0x22
jne 0x413152
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x41315d
cmp cl, 0x20
jbe 0x41314e
test byte [ebp - 0x54], 1
je 0x413174
movzx ecx, word [ebp - 0x50]
jmp 0x413177
cmp byte [eax], 0x20
jbe 0x413152
inc eax
mov dword [ebp - 0x20], eax
jmp 0x413169
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.00401ba0
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x413195
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x4131d1
mov eax, esi
jmp 0x4131e5
call fcn.00413227
ret
Function at 0x8c4058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008c41a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8c407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8c406a
add dl, dl
jne 0x8c4089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8c40dc
xor eax, eax
add dl, dl
jne 0x8c4096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8c417d
add dl, dl
jne 0x8c40a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8c40b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8c40bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8c40c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8c40d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8c4075
mov eax, 1
add dl, dl
jne 0x8c40ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8c40f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8c40e1
sub eax, ebx
mov ebx, 1
jne 0x8c4128
mov ecx, 1
add dl, dl
jne 0x8c410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8c4119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8c4105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8c4075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8c413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8c414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8c4136
cmp eax, 0x7d00
jae 0x8c416d
cmp eax, 0x500
jb 0x8c4168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8c4075
cmp eax, 0x7f
ja 0x8c4170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8c4075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8c419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8c4075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x3c
lea eax, [esp]
push str.HeroMp3.ini
push 0x3c
push eax
push str.LOGFONT
push str.ComMp3
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
je 0x401033
lea ecx, [esp]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [0x82f04c], eax
add esp, 0x3c
ret

Function at 0x401090
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
push ebp
call fcn.00401000
mov eax, dword [esp + 0x10c]
lea ecx, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 4]
push str.STHMP3AUDIO.INI
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [0x42d3c4]
xor ebp, ebp
test eax, eax
jle 0x401110
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, 0x954fa8
test byte [esi + 0x154], 1
je 0x4010e9
lea eax, [esp + 0xc]
push eax
push 1
jmp 0x4010f0
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
push str.DLLCHECKEDINFO
call edi
mov byte [esi + 0x155], al
mov eax, dword [0x42d3c4]
inc ebp
add esi, 0x17f
cmp ebp, eax
jl 0x4010d7
pop edi
pop esi
pop ebp
add esp, 0x104
ret
Function at 0x404b20
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
cdq
sub eax, edx
push esi
mov ebx, eax
mov eax, dword [0x97afe0]
cdq
and edx, 7
add eax, edx
mov esi, eax
mov eax, dword [0x97afe4]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [0x97afe4], eax
cdq
mov ecx, eax
sar esi, 3
xor ecx, edx
mov eax, esi
sub ecx, edx
mov dword [0x97afe0], esi
cdq
xor eax, edx
sub eax, edx
add ecx, eax
sar ebx, 1
sar ecx, 1
test ebx, ebx
jle 0x404bab
push ebp
push edi
mov edi, 0x97afec
mov esi, 0x97afe8
mov ebp, ebx
mov ebx, ecx
add esi, 8
sar ecx, 3
mov dword [edi - 8], ecx
mov eax, dword [esi - 4]
cdq
mov ecx, eax
mov eax, dword [esi - 8]
xor ecx, edx
add edi, 0x10
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
add ecx, eax
sar ecx, 1
add ebx, ecx
sar ebx, 4
mov dword [edi - 0x10], ebx
dec ebp
jne 0x404b7a
pop edi
pop ebp
pop esi
pop ebx
ret
Function at 0x404bb0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1000
call fcn.0041bc70
push ebx
push ebp
push esi
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov eax, dword [0x42d3d0]
test eax, eax
je 0x404c30
mov edi, dword [esp + 0x101c]
test edi, edi
je 0x404bfe
mov ecx, dword [esp + 0x1020]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x1028]
test ecx, ecx
je 0x404c20
mov edi, dword [esp + 0x1024]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1000
ret
push 0x240
push 0x97afe0
call fcn.00404870
mov edi, dword [esp + 0x1020]
mov edx, dword [esp + 0x1018]
test edi, edi
je 0x404c92
mov esi, dword [esp + 0x101c]
xor ecx, ecx
test edx, edx
setne cl
xor eax, eax
test edi, edi
jle 0x404c7c
lea ecx, [ecx*4 + 0x97afe0]
mov ebx, dword [ecx]
add ecx, 8
sar ebx, 8
mov byte [eax + esi], bl
inc eax
cmp eax, edi
jl 0x404c6c
mov ecx, 0x90
mov edi, 0x97ada0
rep movsd dword es:[edi], dword [esi]
mov dword [0x82d6b0], 1
mov ebp, dword [esp + 0x1028]
test ebp, ebp
jne 0x404cad
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1000
ret
xor eax, eax
lea ecx, [esp + 0x810]
test edx, edx
setne al
mov edx, 0x200
lea eax, [eax*4 + 0x97afe0]
mov esi, dword [eax]
add eax, 8
sar esi, 8
mov dword [ecx], esi
add ecx, 4
dec edx
jne 0x404cc7
lea eax, [esp + 0x10]
push 0x200
lea ecx, [esp + 0x814]
push eax
push ecx
call sub.FFT.dll_Ordinal_3
mov eax, dword [esp + 0x810]
mov esi, dword [esp + 0x1024]
cdq
mov ecx, eax
mov eax, dword [esp + 0x10]
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
add ecx, eax
mov eax, 0xcccccccd
mul ecx
mov ebx, edx
shr ebx, 4
cmp ebp, 0xff
jg 0x404d60
xor edi, edi
test ebp, ebp
jle 0x404d60
mov eax, dword [esp + edi*4 + 0x810]
cdq
mov ecx, eax
mov eax, dword [esp + edi*4 + 0x10]
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
add cl, al
mov eax, 0x66666667
and ecx, 0xff
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov byte [edi + esi], dl
inc edi
cmp edi, ebp
jl 0x404d28
mov edi, esi
xor ecx, ecx
mov eax, dword [esp + ecx + 0x814]
mov byte [edi], bl
cdq
mov ebp, eax
mov eax, dword [esp + ecx + 0x14]
xor ebp, edx
add ecx, 4
sub ebp, edx
add edi, 2
cdq
xor eax, edx
sub eax, edx
add ebp, eax
mov eax, 0xcccccccd
mul ebp
shr edx, 4
lea eax, [edx + ebx]
mov ebx, edx
shr eax, 1
mov byte [edi - 1], al
cmp ecx, 0x400
jl 0x404d64
mov ebx, 0x200
xor edi, edi
mov eax, dword [esp + edi + 0xb10]
add edi, 4
cdq
mov ecx, eax
mov eax, dword [esp + edi + 0x30c]
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
add ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov byte [ebx + esi], dl
inc ebx
cmp edi, 0x100
jl 0x404da8
mov eax, 1
mov ecx, 0x90
mov edi, 0x954ce0
mov dword [0x82d6ac], eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1000
ret
Function at 0x4052f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x358
mov ax, word [0x82d7a0]
push ebx
push ebp
push esi
push edi
mov word [esp + 0x5c], ax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x5e]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
rep stosd dword es:[edi], eax
mov cl, byte [0x82d6c0]
push str.HeroMp3.ini
stosw word es:[edi], ax
mov edi, 0x104
lea edx, [esp + 0x60]
push edi
push edx
push 0x82d6c0
push str.FaceBitmap
push str.SETTING
mov byte [esp + 0x74], cl
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test eax, eax
jne 0x405370
push str.HeroMp3.ini
lea eax, [esp + 0x164]
push edi
push eax
push 0x82d6c0
push str.INSTALLPATH
push str.INSTALL
call esi
jmp 0x40539c
lea ecx, [esp + 0x160]
lea edx, [esp + 0x264]
push ecx
lea eax, [esp + 0x60]
push edx
push eax
call fcn.00405520
add esp, 0xc
lea ecx, [esp + 0x264]
lea edx, [esp + 0x5c]
push ecx
push edx
call ebp
mov eax, dword [esp + 0x36c]
mov ecx, dword [0x82f33c]
lea edx, [esp + 0x5c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x10]
xor ebx, ebx
lea eax, [esp + 0x264]
lea ecx, [esp + 0x160]
push edx
mov dword [esp + 0x14], 0x4c
mov dword [esp + 0x20], str.Bitmap_.BMP_
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], str.Preview_File
mov word [esp + 0x4c], bx
mov word [esp + 0x4e], bx
mov dword [esp + 0x50], 0x426664
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], 0x405580
mov dword [esp + 0x5c], 0x9b
mov dword [esp + 0x48], 0x81864
mov dword [0x82d70c], ebx
call sub.comdlg32.dll_GetOpenFileNameA
test eax, eax
push str.HeroMp3.ini
push edi
je 0x4054a7
lea eax, [esp + 0x168]
push eax
push 0x82d6c0
push str.FaceBitmap
push str.SETTING
call esi
mov eax, dword [0x82d70c]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp eax, ebx
jne 0x40548b
lea ecx, [esp + 0x5c]
push str.HeroMp3.ini
push ecx
push str.FaceBitmap
push str.SETTING
call esi
cmp dword [0x82d70c], ebx
je 0x4054f7
push str.HeroMp3.ini
push 0x82d6c0
push str.FaceBitmap
push str.SETTING
call esi
mov byte [esp + 0x5c], bl
jmp 0x4054f7
lea edx, [esp + 0x168]
push edx
push 0x82d6c0
push str.FaceBitmap
push str.SETTING
call esi
cmp dword [0x82d70c], ebx
je 0x4054e8
push str.HeroMp3.ini
push 0x82d6c0
push str.FaceBitmap
push str.SETTING
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov byte [esp + 0x5c], bl
jmp 0x4054f7
lea eax, [esp + 0x160]
lea ecx, [esp + 0x5c]
push eax
push ecx
call ebp
lea edx, [esp + 0x5c]
lea eax, [esp + 0x160]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x358
ret
Function at 0x405d30
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, dword [esp + 0x44]
push edi
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x18], ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [0x82d714]
lea ecx, [esp + 0x2c]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebp
call esi
mov edi, eax
mov eax, dword [0x82d710]
test eax, eax
jne 0x405d84
push ebp
call esi
mov dword [0x82d710], eax
mov eax, dword [0x82d71c]
test eax, eax
je 0x405d94
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x82d714]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call esi
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
push edx
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [0x82d71c], eax
push eax
mov eax, dword [0x82d710]
push eax
call esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
xor ebx, ebx
test eax, eax
jle 0x405e29
mov ebp, dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
xor esi, esi
test ecx, ecx
jle 0x405e11
mov ecx, dword [esp + 0x30]
mov edx, dword [0x82d710]
push 0xcc0020
push 0
push 0
push edi
push eax
push ecx
push esi
push ebx
push edx
call ebp
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
add esi, eax
cmp esi, ecx
jl 0x405de8
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
add ebx, esi
cmp ebx, edx
jl 0x405de2
mov ebp, dword [esp + 0x10]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x14]
push eax
push edi
call esi
mov ecx, dword [esp + 0x18]
mov edx, dword [0x82d710]
push ecx
push edx
call esi
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x48]
push ebp
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x405ec0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x14
push ebx
push ebp
push edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00416740
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push str.HeroMp3.ini
push 1
push str.Face
push str.SETTING
mov dword [0x82d7c8], eax
call ebp
test eax, eax
je 0x406007
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x406007
push esi
push str.DllGetVersion
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [esp + 0x10], 0x14
cmp esi, ebx
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x405f44
lea eax, [esp + 0x10]
push eax
call esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, ebx
pop esi
jne 0x405f6a
push str.HeroMp3.ini
push 0x42677c
push str.Face
push str.SETTING
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp eax, 4
jne 0x405f7e
cmp ecx, 0x47
jge 0x405f83
jmp 0x405f8d
cmp eax, 4
jle 0x405f8d
mov dword [0x82d7d0], 1
cmp eax, 4
mov dword [0x82d7cc], 0xffffffff
jne 0x405fa4
mov dword [0x82d7cc], ebx
jmp 0x405fea
cmp eax, 5
jne 0x405fea
cmp ecx, ebx
jne 0x405fca
cmp dword [esp + 0x18], 0x206
jne 0x405fea
cmp dword [esp + 0x1c], 1
jne 0x405fea
mov dword [0x82d7cc], 2
jmp 0x405fea
cmp ecx, 0x50
jne 0x405fea
cmp dword [esp + 0x18], 0x3f4
jne 0x405fea
cmp dword [esp + 0x1c], 1
jne 0x405fea
mov dword [0x82d7cc], 3
push str.HeroMp3.ini
push 0xffffffffffffffff
push str.PaintOffset
push str.SETTING
call ebp
cmp eax, 0xffffffff
je 0x406007
mov dword [0x82d7cc], eax
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x406ee0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x34]
mov ecx, dword [0x82f33c]
push ebp
push 0xf1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edx, dword [0x82f33c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x406f1f
pop ebp
add esp, 0x2c
ret
xor eax, eax
xor ecx, ecx
mov ax, word [ebp + 4]
mov cx, word [ebp + 2]
shl eax, 0x10
push ebx
push esi
mov esi, dword [esp + 0x3c]
or eax, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0
push 0x420
push esi
call edi
push 0x160018
push 0
push 0x41f
push esi
call edi
push 0
push 0
push 0x418
push esi
call edi
mov edx, eax
dec eax
test edx, edx
je 0x406f7c
lea ebx, [eax + 1]
push 0
push 0
push 0x416
push esi
call edi
dec ebx
jne 0x406f6d
push 0x954400
push 1
mov ebx, 4
push 0x414
push esi
mov dword [esp + 0x50], 0
mov byte [0x954408], bl
mov byte [0x954409], 1
mov dword [0x954404], 0
mov dword [0x954400], ebx
call edi
cmp word [ebp + 6], 0
mov dword [esp + 0x14], 0
jbe 0x407048
lea eax, [ebp + 8]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
xor eax, eax
mov byte [0x954408], bl
mov ax, word [ecx]
mov ecx, dword [0x954404]
cmp ecx, eax
jne 0x406fee
inc dword [esp + 0x40]
jmp 0x40702a
test eax, eax
mov dword [0x954404], eax
je 0x40700e
mov eax, dword [esp + 0x40]
mov byte [0x954409], 0
mov dword [0x954400], eax
inc eax
mov dword [esp + 0x40], eax
jmp 0x40701b
mov byte [0x954409], 1
mov dword [0x954400], ebx
push 0x954400
push 1
push 0x414
push esi
call edi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add edx, 2
inc eax
mov dword [esp + 0x10], edx
xor edx, edx
mov dx, word [ebp + 6]
mov dword [esp + 0x14], eax
cmp eax, edx
jl 0x406fcf
push 0x954400
push 1
push 0x414
push esi
mov byte [0x954408], bl
mov byte [0x954409], 1
mov dword [0x954404], 0
mov dword [0x954400], ebx
call edi
push 0
push 0
push 0x418
push esi
call edi
mov eax, dword [esp + 0x44]
mov ecx, dword [0x82f33c]
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadBitmapA]
lea edx, [esp + 0x24]
mov ebx, eax
push edx
push 0x18
push ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [0x82f33c]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push ecx
xor ecx, ecx
mov dword [esp + 0x24], ebx
mov cx, word [ebp + 2]
cdq
idiv ecx
push eax
push 0x413
push esi
call edi
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
add esp, 0x2c
ret
Function at 0x408cd0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x110
lea eax, [esp]
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push edi
push 0xa
push eax
push ebp
call fcn.0041babc
mov eax, dword [0x9549a0]
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x1c]
push 0x97d000
push 0x100
push ecx
lea edx, [esp + 0x18]
push 0x82d6c0
lea ecx, [eax + 0x9548a0]
push edx
push ecx
call ebx
test eax, eax
jne 0x408d2e
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x110
ret
push esi
xor esi, esi
cmp byte [esp + esi + 0x20], 0x2c
je 0x408d42
inc esi
cmp esi, 0x10
jl 0x408d31
xor edi, edi
jmp 0x408d77
cmp esi, 0x10
jl 0x408d4b
xor edi, edi
jmp 0x408d77
lea edx, [esp + 0x20]
mov byte [esp + esi + 0x20], 0
push edx
call fcn.00408ca0
mov cl, byte [esp + esi + 0x25]
mov edi, eax
lea eax, [esp + esi + 0x25]
add esp, 4
test cl, cl
je 0x408d77
push eax
push 0x943ee0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x128]
pop esi
test eax, eax
jne 0x408e14
lea eax, [esp + 0xc]
push 0xa
dec ebp
push eax
push ebp
call fcn.0041babc
mov eax, dword [0x9549a0]
add esp, 0xc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0xc]
push 0x97d000
push 0x100
push ecx
push 0x82d6c0
lea ecx, [eax + 0x9548a0]
push edx
push ecx
call ebx
test eax, eax
jne 0x408dd0
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x110
ret
xor eax, eax
cmp byte [esp + eax + 0x1c], 0x2c
je 0x408ded
inc eax
cmp eax, 0x10
jl 0x408dd2
xor edi, edi
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x110
ret
cmp eax, 0x10
jl 0x408e00
xor edi, edi
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x110
ret
lea edx, [esp + 0x1c]
mov byte [esp + eax + 0x1c], 0
push edx
call fcn.00408ca0
add esp, 4
mov edi, eax
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x110
ret
Function at 0x40a9e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x110
lea eax, [esp + 0x10]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.HeroMp3.ini
push 0x80
push eax
push 0x82d6c0
push str.INSTALLPATH
push str.INSTALL
call esi
test eax, eax
jne 0x40aa23
lea ecx, [esp + 0x14]
push 0x80
push ecx
call fcn.0040f800
add esp, 8
lea edx, [esp + 0x14]
push str.HEROMP3CMD.INI
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x118]
lea ecx, [esp + 4]
push eax
push 0x4268c4
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0x94]
lea ecx, [esp + 4]
push edx
push 0x80
push eax
push 0x82d6c0
push ecx
push str.CommandID
call esi
test eax, eax
jne 0x40aa7d
pop esi
add esp, 0x110
ret
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
lea edx, [esp + 0x14]
push edx
push eax
push ecx
lea edx, [esp + 0xa0]
push 0x82d6c0
push edx
push str.CommandKey
call esi
pop esi
add esp, 0x110
ret