joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10049f70
Capabilities:
Inspect section memory permissions
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x1005e0dc], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x1004a0db
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0x41c
push dword [ebx + 0x18]
call esi
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push 0
push 0x1f
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0x590
push dword [0x1005dc0c]
call esi
push 0xffffffffffffffec
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
test al, 8
jne 0x1004a00b
push 0x213
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebx + 0x10]
call esi
push 0x213
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebx + 0x14]
call esi
mov ecx, dword [0x1005e0dc]
push 0x13
push 0
push 0
mov eax, dword [ecx]
push 0
push 0
push 1
call dword [eax]
push eax
call esi
mov ecx, dword [0x1005e0dc]
push 0x13
push 0
push 0
mov eax, dword [ecx]
push 0
push 0
push 0xffffffffffffffff
call dword [eax]
push eax
call esi
mov ecx, dword [ebx + 0x10]
call fcn.10040270
test eax, eax
jne 0x1004a050
mov edi, 0x40000000
jmp 0x1004a06c
cmp eax, 2
jne 0x1004a05c
mov edi, 0x60000000
jmp 0x1004a06c
cmp eax, 1
mov edi, SHChangeNotifyRegister
mov ecx, 0x20000000
cmove edi, ecx
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 0x14]
call esi
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 0x10]
call esi
mov edx, dword [ebp - 8]
mov ecx, edx
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 0x10]
sub ecx, esi
sub eax, dword [ebp - 0xc]
cmp eax, ecx
jl 0x1004a0a0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edx
jmp 0x1004a0ac
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call esi
test ax, ax
js 0x1004a0c7
push 2
call esi
test ax, ax
js 0x1004a0c7
or edi, 0x10
mov ecx, dword [0x1005e0dc]
lea eax, [ebp - 0x20]
push edi
push eax
lea eax, [ebx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x6c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004a0f0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
push ebx
mov ebx, ecx
lea eax, [esp + 0xc]
push edi
mov edi, dword [sym.imp.USER32.dll_GetCursorPos]
push eax
mov dword [esp + 0x10], ebx
mov dword [ebx + 0x5c], 1
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x24], 0
call edi
push 1
lea eax, [esp + 0x14]
push eax
push dword [ebx + 0x14]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
movzx ecx, word [esp + 0x14]
movzx eax, word [esp + 0x10]
shl ecx, 0x10
or ecx, eax
push ecx
push 0
push 0x200
push dword [ebx + 0x14]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
call ebx
lea eax, [esp + 0x10]
push eax
call edi
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push 1
push eax
push dword [edi + 0x10]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
movzx ecx, word [esp + 0x14]
movzx eax, word [esp + 0x10]
shl ecx, 0x10
or ecx, eax
push ecx
push 0
push 0x200
push dword [edi + 0x10]
call ebx
push 0
push 0
push 0xf3
push dword [edi + 0x14]
call ebx
push 0
push 0x2000
lea eax, [esp + 0x20]
mov dword [0x1005e0c0], 0
push eax
mov dword [edi + 0x20], 0
call dword [sym.imp.SHELL32.dll_SHGetSetSettings]
mov eax, dword [esp + 0x18]
shl eax, 0x14
push 0
sar eax, 0x1f
push eax
push 0x401
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004a830
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x248
lea eax, [esp]
push esi
push edi
push eax
push eax
mov edi, ecx
push 0
push 1
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_MonitorFromWindow]
push eax
call dword [sym.imp.api_ms_win_shcore_scaling_l1_1_1.dll_GetDpiForMonitor]
test eax, eax
js 0x1004a863
mov eax, dword [esp + 8]
jmp 0x1004a891
mov eax, dword [0x1005e1fc]
test eax, eax
jne 0x1004a891
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x58
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
push 0
mov dword [0x1005e1fc], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x1005e1fc]
push dword [edi + 0x3c]
mov dword [edi + 0x64], eax
mov dword [edi + 0x60], 0
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [edi + 0x1c], 0
je 0x1004a8c6
mov eax, 0xd
mov dword [edi + 0x34], 0xd
mov ecx, edi
mov dword [edi + 0x38], eax
call fcn.1004a280
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esp + 8], 0x104
mov word [esp + 0x48], ax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
push 2
push str.OrbBitmap
push str.SoftwareStartIsBack
push SHChangeNotifyRegister
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
mov edx, str.Orbs
lea ecx, [esp + 0x48]
call fcn.1001ba00
mov esi, dword [sym.imp.USER32.dll_LoadImageW]
lea eax, [esp + 0x48]
push 0x2010
push 0
push 0
push 0
push eax
push 0
call esi
mov dword [edi + 0x3c], eax
test eax, eax
jne 0x1004aa0f
push 2
push eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edx, dword [edi + 0x64]
mov ecx, 0x1a95
mov dword [esp + 0xc], eax
cmp edx, 0xc0
jb 0x1004a954
mov ecx, 0x1a98
jmp 0x1004a973
cmp edx, 0x90
jb 0x1004a963
mov ecx, 0x1a97
jmp 0x1004a973
cmp edx, 0x78
mov dword [esp + 8], 0x1a96
cmovae ecx, dword [esp + 8]
push 0x2000
push 0
push 0
push 0
push ecx
push eax
call esi
cmp dword [edi + 0x64], 0xc0
mov dword [edi + 0x3c], eax
jbe 0x1004a9ec
lea ecx, [esp + 0x10]
xorps xmm0, xmm0
push ecx
push 0x18
push eax
movaps xmmword [esp + 0x1c], xmm0
movq qword [esp + 0x2c], xmm0
call dword [sym.imp.GDI32.dll_GetObjectW]
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
push 0xc0
push dword [edi + 0x64]
push dword [esp + 0x20]
call esi
push eax
push 0xc0
push dword [edi + 0x64]
push dword [esp + 0x20]
call esi
mov ecx, dword [edi + 0x3c]
mov edx, eax
call fcn.1004cc80
mov esi, eax
add esp, 4
test esi, esi
je 0x1004a9ec
push dword [edi + 0x3c]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [edi + 0x3c], esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [edi + 0x3c]
test eax, eax
jne 0x1004aa0f
lea ecx, [edi + 0x54]
mov dword [edi + 0x60], 1
call fcn.10048440
mov dword [edi + 0x3c], eax
lea ecx, [esp + 0x30]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esp + 0x34]
mov ecx, edi
mov dword [edi + 0x34], eax
mov eax, 0x55555556
imul dword [esp + 0x38]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [edi + 0x38], eax
call fcn.1004a280
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1004ba90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov edi, dword [ebp + 8]
test edi, edi
je 0x1004bac2
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1004bacc
push eax
push edi
call dword [sym.imp.SHELL32.dll_ILIsEqual]
test eax, eax
jne 0x1004bb64
jmp 0x1004bacc
cmp dword [esi + 0x18], 0
je 0x1004bb64
mov eax, dword [esi + 0x20]
test eax, eax
je 0x1004baec
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x20], 0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1004bb01
push eax
call dword [sym.imp.SHELL32.dll_ILFree]
mov dword [esi + 0x18], 0
test edi, edi
je 0x1004bb0f
push edi
call dword [sym.imp.SHELL32.dll_ILClone]
mov dword [esi + 0x18], eax
xor eax, eax
test edi, edi
sete al
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp + 0xc], 0
je 0x1004bb5b
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x1000
call edi
test eax, eax
jne 0x1004bb5b
push 0x2001
call edi
test eax, eax
jne 0x1004bb5b
push eax
push eax
push esi
push 0x1004bb70
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20], eax
pop edi
pop esi
pop ebp
ret 8
push 0
mov ecx, esi
call fcn.1004bba0
pop edi
pop esi
pop ebp
ret 8
Function at 0x1004c820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
push 0
push 0x10
push str.EnableTransparency
push str.SOFTWAREMicrosoftWindowsCurrentVersionThemesPersonalize
push SHChangeNotifyRegister
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
push 0
push 0x10
push str.ColorPrevalence
push str.SOFTWAREMicrosoftWindowsCurrentVersionThemesPersonalize
push SHChangeNotifyRegister
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
cmp dword [0x1005dc18], 0
je 0x1004c896
mov eax, 0xeeeeee
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 8], 0
lea eax, [ebp - 0x14]
push 0
push eax
je 0x1004c8df
cmp dword [ebp - 4], 0
je 0x1004c8c2
call dword [0x1005dc7c]
push 0
push 0
push 7
lea eax, [ebp - 0x14]
push eax
call dword [0x1005dc78]
mov esp, ebp
pop ebp
ret
call dword [0x1005dc7c]
push 0
push 0
push 0x136
lea eax, [ebp - 0x14]
push eax
call dword [0x1005dc78]
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 0
je 0x1004c8ff
call dword [0x1005dc7c]
push 0
push 0
push 6
lea eax, [ebp - 0x14]
push eax
call dword [0x1005dc78]
mov esp, ebp
pop ebp
ret
call dword [0x1005dc7c]
push 0
push 0
push 0x137
lea eax, [ebp - 0x14]
push eax
call dword [0x1005dc78]
mov esp, ebp
pop ebp
ret
Function at 0x1004c970
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push ebx
push esi
push edi
push 0x214
lea eax, [ebp - 0x21c]
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0x220], 0x218
push 0
push eax
mov dword [ebp - 4], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x4000
push 3
call dword [sym.imp.SHELL32.dll_SHGetStockIconInfo]
test eax, eax
jne 0x1004caca
cmp dword [0x1005d4fc], 0xffffffff
jne 0x1004ca8b
cmp dword [ebp - 0x214], 0xfffffffd
mov dword [0x1005d4fc], eax
jne 0x1004ca8b
push str.imageres.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1004ca8b
push 0x802
push eax
push str.imageres.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push 0xe
push 3
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
push ebx
call edi
push 0
push 0x10
push 0x10
push 1
push eax
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
push 3
push eax
push ebx
call esi
mov esi, eax
push esi
push ebx
call edi
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor edx, edx
mov esi, 0x811c9dc5
test eax, eax
je 0x1004ca71
nop word [eax + eax]
movsx ecx, byte [edx + edi]
inc edx
xor ecx, esi
imul esi, ecx, 0x1000193
cmp edx, eax
jb 0x1004ca60
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [ebp - 4]
xor eax, eax
cmp esi, 0x321826c2
sete al
mov dword [0x1005d4fc], eax
cmp dword [0x1005d4fc], 0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x218]
mov dword [ecx], eax
je 0x1004cad1
push 0x104
lea eax, [ebp - 0x428]
push eax
push dword [0x1005dc3c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.SHELL32.dll_Shell_GetCachedImageIndexW]
mov dword [ebx], eax
cmp dword [0x1005d4fc], 0
pop edi
pop esi
setg al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004cae0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1005e670]
sub esp, 0x120
test al, 1
jne 0x1004cba7
or eax, 1
mov dword [ebp - 0x120], 0x114
push pe_nt_image_headers32
mov dword [0x1005e670], eax
lea eax, [ebp - 0x11c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, 0x534d
mov dword [ebp - 8], 4
cmp eax, dword [ebp - 0x114]
sbb eax, eax
neg eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x10
push str.FluentIcons
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerAdvanced
push SHChangeNotifyRegister
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x10
push str.FluentIcons
push str.SoftwareStartIsBack
push SHChangeNotifyRegister
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
cmp dword [ebp - 4], 0
mov eax, str.Segoe_Fluent_Icons
mov ecx, str.Segoe_MDL2_Assets
cmove eax, ecx
mov dword [0x1005e674], eax
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1005e674]
mov esp, ebp
pop ebp
ret
Function at 0x1004d0c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x20], 0
jne 0x1004d10d
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x24]
push eax
push 0
push esi
push 0x1004cdb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20], eax
test eax, eax
je 0x1004d10d
push 0xffffffffffffffff
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esi + 4]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
push ebx
push dword [esi + 0x28]
call dword [sym.imp.COMCTL32.dll_DSA_GetItemPtr]
mov edi, eax
test edi, edi
je 0x1004d153
nop dword [eax]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1004d1c7
inc ebx
push ebx
push dword [esi + 0x28]
call dword [sym.imp.COMCTL32.dll_DSA_GetItemPtr]
mov edi, eax
test edi, edi
jne 0x1004d130
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call sub.msvcrt.dll_memset
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x214]
add esp, 0xc
push 0x100
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x214]
mov dword [ebp - 0x14], 0
push eax
push SHChangeNotifyRegister
push dword [esi + 0x28]
mov dword [ebp - 0x10], 0
call dword [sym.imp.COMCTL32.dll_DSA_InsertItem]
push 4
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
mov edi, eax
add esp, 4
test edi, edi
je 0x1004d1e1
mov dword [edi], 0
test ebx, ebx
je 0x1004d1e3
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHStrDupW]
jmp 0x1004d1e3
push dword [ebp - 8]
mov esi, dword [edi + 0x204]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor edi, edi
push edi
push 0
push 0x8000
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push dword [ebp - 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f2820
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb4000]
push edi
or ebp, 0xffffffff
jmp 0x4f2842
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4f2849
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f2838
mov eax, 1
add ebx, ebx
jne 0x4f285b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4f286c
jne 0x4f288b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f288b
dec eax
add ebx, ebx
jne 0x4f2878
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4f2850
add ebx, ebx
jne 0x4f2887
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4f28dd
xor ecx, ecx
sub eax, 3
jb 0x4f28a3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4f2912
sar eax, 1
mov ebp, eax
jmp 0x4f28ae
add ebx, ebx
jne 0x4f28ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f287c
inc ecx
add ebx, ebx
jne 0x4f28bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f287c
add ebx, ebx
jne 0x4f28c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4f28be
jne 0x4f28da
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4f28be
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4f28fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4f28ee
jmp 0x4f283e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4f28fc
add edi, ecx
jmp 0x4f283e
pop esi
mov edi, esi
mov ecx, 0x4d24
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4f291a
cmp byte [edi], 0x13
jne 0x4f291a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4f291f
lea edi, [esi + 0xee000]
mov eax, dword [edi]
or eax, eax
je 0x4f298e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12feec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1300a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4f294c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1300a8]
or eax, eax
je 0x4f2988
mov dword [ebx], eax
add ebx, 4
jmp 0x4f2969
call dword [esi + 0x1300b8]
mov ebp, dword [esi + 0x1300ac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4f29c2
sub esp, 0xffffff80
jmp 0x48f888
Function at 0x402f30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00421db0
mov eax, dword [0x44764c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1010], ecx
mov dword [ebp - 0x100c], 0
mov ecx, dword [ebp - 0x1010]
add ecx, 4
call fcn.00402700
push eax
push 0x1000
lea eax, [ebp - 0x1008]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea ecx, [ebp - 0x1008]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402b40
mov edx, dword [ebp - 0x100c]
or edx, 1
mov dword [ebp - 0x100c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ff10
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402ff0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436b98
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x44764c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], 0
push 0x4001
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
call fcn.00403b90
mov ecx, dword [ebp - 0x20]
add ecx, 4
call fcn.00402700
push eax
push 0x4000
mov ecx, dword [ebp - 0x10]
push ecx
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
je 0x4030c1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx]
test edx, edx
je 0x4030c1
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402b40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00403a90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402ca0
mov edx, dword [ebp - 0x18]
push edx
call fcn.0041ff9a
add esp, 4
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0x18], edx
jmp 0x403071
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov ecx, dword [ebp + 0xc]
call fcn.00403a70
xor edx, edx
test eax, eax
setg dl
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x405813
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x40585b
call fcn.00410d2a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x40585b
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40589e
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x405887
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x405887
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40589b
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x406ccb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x406cef
cmp dword [edi + 0x54], 0
jne 0x406cef
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00410d2a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00406c8c
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40d8e7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40d92e
call fcn.00410d2a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x40d92e
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40d94a
push ebx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040d45f
mov esi, eax
test edi, edi
je 0x40d948
test ebx, ebx
je 0x40d948
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4