joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b9e50
Capabilities:
Get common file path
Get graphical window text
Set current directory

Disassembly:
sub esp, 0x854
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push esi
push edi
mov edi, dword [esp + 0x868]
test edi, edi
jne 0x4b9e8d
mov eax, dword [0x5b5550]
push 0
push 9
push 0x110a
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x4b9e8d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x854
ret
push 1
lea ecx, [esp + 0x48]
push 0x104
push ecx
push edi
call fcn.00442210
mov esi, dword [esp + 0x880]
lea edx, [esp + 0x54]
push esi
push edx
call fcn.004d78c5
add esp, 0x18
test eax, eax
je 0x4ba0b3
push 0
lea eax, [esp + 0x48]
push 0x104
push eax
push edi
call fcn.00442210
lea ecx, [esp + 0x54]
push ecx
call fcn.004c99d0
lea edx, [esp + 0x58]
push edx
call fcn.004d6713
add esp, 0x18
dec eax
js 0x4b9ef7
mov ecx, 0x5c
cmp word [esp + eax*2 + 0x44], cx
je 0x4b9ef7
dec eax
jns 0x4b9eed
mov word [esp + eax*2 + 0x46], 0
lea eax, [esp + 0x44]
push esi
push eax
lea ecx, [esp + 0x254]
push str._s_s
push ecx
call fcn.004d5ee1
mov esi, dword [esp + 0x87c]
push esi
push 0x5b9040
call fcn.004d7652
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
add esp, 0x18
test eax, eax
jne 0x4b9f52
lea edx, [esp + 0x454]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x454]
push eax
call ebp
lea ecx, [esp + 0x24c]
push ecx
push esi
call fcn.004d7a37
add esp, 8
test eax, eax
je 0x4b9fa7
mov eax, dword [0x5b5574]
push 0
lea edx, [esp + 0x250]
push 0
push edx
push 0
push 0x4d8
push eax
call fcn.004cc7f0
push esi
push 0x5b9040
call fcn.004d631b
add esp, 0x20
push 0x5b9040
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x854
ret
mov ecx, dword [esp + 0x870]
push ecx
push edi
call fcn.00442c50
push esi
push 0x5b9040
call fcn.004d7652
add esp, 0x10
test eax, eax
jne 0x4ba0b3
lea edx, [esp + 0x24c]
push edx
push 0x5b9040
call fcn.004d631b
push 0x5b9040
call fcn.004c9990
add esp, 0xc
push 0x5b9040
call ebp
mov eax, dword [0x5b54fc]
xor esi, esi
push esi
mov ebp, 0x1004
push esi
push ebp
push eax
call ebx
test eax, eax
jle 0x4ba0a6
mov edx, dword [0x5b54fc]
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 4
push ecx
push eax
push 0x104b
push edx
mov dword [esp + 0x24], esi
call ebx
test eax, eax
je 0x4ba08f
mov edi, dword [esp + 0x30]
test edi, edi
je 0x4ba08f
lea eax, [esp + 0x65c]
push 0xc
push eax
push edi
call fcn.004c93e0
lea ecx, [esp + 0x668]
push ecx
push 0x5b9040
push str._s_s
push edi
call fcn.004d5ee1
mov eax, dword [0x5b54fc]
add esp, 0x1c
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ebp
push edx
push 0
push 0x104c
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x40], edi
call ebx
mov ecx, dword [0x5b54fc]
push 0
push 0
push ebp
push ecx
inc esi
call ebx
cmp esi, eax
jl 0x4ba00b
push 0x5b9040
call fcn.004ba940
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x854
ret
Function at 0x4ba0d0
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x1498
call fcn.004d6340
mov ecx, dword [esp + 0x14a0]
push ebp
push esi
lea eax, [esp + 0x258]
push 4
push eax
push ecx
call fcn.004c93e0
mov esi, dword [esp + 0x14b0]
lea edx, [esp + 0x264]
push edx
push esi
lea eax, [esp + 0x10a4]
push str._s_s.
push eax
call fcn.004d5ee1
add esp, 0x1c
lea ecx, [esp + 8]
lea edx, [esp + 0x1090]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4ba245
mov ecx, dword [esp + 0x14ac]
push ebx
push edi
lea eax, [esp + 0xa80]
push 4
push eax
push ecx
call fcn.004c93e0
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esp, 0xc
test byte [esp + 0x10], 0x12
jne 0x4ba22c
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x468]
lea edx, [esp + 0x260]
rep stosd dword es:[edi], eax
push edx
call fcn.004d6713
lea eax, [esp + eax*2 + 0x40]
lea ecx, [esp + 0x46c]
push eax
push ecx
call fcn.004d631b
lea edx, [esp + 0x48]
lea eax, [esp + 0xc94]
push edx
push esi
push str._s_s
push eax
call fcn.004d5ee1
lea ecx, [esp + 0x484]
lea edx, [esp + 0xa9c]
push ecx
push edx
push esi
lea eax, [esp + 0x698]
push 0x599f00
push eax
call fcn.004d5ee1
lea ecx, [esp + 0x6a0]
lea edx, [esp + 0xcb8]
push ecx
push edx
call fcn.004d7a37
add esp, 0x38
test eax, eax
je 0x4ba20d
mov ecx, dword [0x5b5574]
push 0
lea eax, [esp + 0x674]
push 0
push eax
push 0
push 0x4d8
push ecx
call fcn.004cc7f0
add esp, 0x18
jmp 0x4ba22c
mov ecx, dword [0x5b54fc]
lea edx, [esp + 0x670]
lea eax, [esp + 0xc88]
push edx
push eax
push ecx
call fcn.00475070
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push ebp
call ebx
test eax, eax
jne 0x4ba158
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x1498
ret
Function at 0x4ba250
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x34
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, dword [esp + 0x48]
push edi
push esi
call fcn.004d78c5
add esp, 8
test eax, eax
je 0x4ba41a
push 0
call fcn.00437cd0
push 0
call fcn.00476530
push edi
push esi
call fcn.004d7a37
add esp, 0x10
test eax, eax
je 0x4ba2ad
mov eax, dword [0x5b5574]
push 0
push 0
push edi
push 0
push 0x4d8
push eax
call fcn.004cc7f0
add esp, 0x18
xor eax, eax
pop edi
pop esi
add esp, 0x34
ret
mov ecx, dword [0x5b54fc]
push edi
push esi
push ecx
call fcn.00475070
mov eax, dword [esp + 0x5c]
add esp, 0xc
test eax, eax
je 0x4ba2d5
push edi
push esi
push 0x5b9040
call fcn.004ba0d0
add esp, 0xc
mov eax, dword [0x5b54fc]
lea edx, [esp + 8]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push edx
push 0xffffffffffffffff
push 0x102b
push eax
mov dword [esp + 0x2c], 2
mov dword [esp + 0x28], 0xfffffffd
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0x5b9260
push 0
push str.NotUpdateDirIndex
push str.Others
call esi
test eax, eax
jne 0x4ba405
mov ecx, dword [0x5b554c]
push ebp
mov ebp, dword [0x59f744]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4ba353
push 0x5b9260
push 1
push str.FullSort
push 0x59a1bc
call esi
test eax, eax
jne 0x4ba353
add ebp, 0x64
cmp dword [0x59f744], 0x1e
je 0x4ba370
mov edx, dword [0x5b54fc]
push fcn.00474430
push ebp
push 0x1030
push edx
call ebx
push 0x5b96e0
call fcn.004d6713
add esp, 4
test eax, eax
pop ebp
jbe 0x4ba3ea
push edi
push 0x5b96e0
call fcn.004d78c5
add esp, 8
test eax, eax
je 0x4ba3ea
push edi
push 0x5b96e0
call fcn.004d631b
mov eax, dword [0x5b54fc]
push 0x5b96e0
push eax
call fcn.00474f70
mov ecx, dword [0x5b5528]
add esp, 0x10
mov dword [0x5b5648], eax
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4ba3dd
mov edx, dword [0x5b5528]
push 0
push 0x472
push 0x111
push edx
call ebx
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
jmp 0x4ba40f
mov ecx, dword [0x5b54fc]
push 0x5b96e0
push ecx
call fcn.00474f70
add esp, 8
mov dword [0x5b5648], eax
jmp 0x4ba40f
mov edx, dword [esp + 0x50]
mov dword [0x5b5648], edx
push 2
call fcn.004c25a0
add esp, 4
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x34
ret
Function at 0x4ba430
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2410
call fcn.004d6340
mov eax, dword [0x59f780]
test ah, 0x20
je 0x4ba54f
push ebx
push 0
push 0x2000
lea eax, [esp + 0x214]
push 0x104
push eax
call fcn.00453850
lea ecx, [esp + 0x21c]
push 0x5a4d00
push ecx
call fcn.004d5ece
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x4ba545
push esi
push edi
push 0x5b9260
lea edx, [esp + 0x10]
push 0x104
push edx
push str._D_F__X_W_x__H_pixels_B_bpp_S_T_E36867
push str.Text
push 0x59a1bc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [0x5b54fc]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
push esi
push esi
push 0x1004
push eax
call edi
test eax, eax
jle 0x4ba53a
mov ecx, dword [0x5b54fc]
push 2
push esi
push 0x102c
push ecx
call edi
cmp eax, 2
jne 0x4ba523
mov ecx, dword [0x5b54fc]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x420]
push 0x1000
push eax
push esi
push ecx
call fcn.004751e0
push 0x7c
lea edx, [esp + 0x434]
push 0xa
push edx
call fcn.004c8760
lea eax, [esp + 0x43c]
push eax
push 0x5b9040
push str._s_s_n
push ebx
call fcn.004d7616
add esp, 0x30
mov ecx, dword [0x5b54fc]
push 0
push 0
push 0x1004
push ecx
inc esi
call edi
cmp esi, eax
jl 0x4ba4c2
push ebx
call fcn.004d5e20
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2410
ret
mov eax, 1
add esp, 0x2410
ret

Function at 0x4ba760
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x61c
mov eax, dword [0x5b5558]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x14b
push eax
call edi
push 0x5b9260
push 0x1e
push str.MRUDs
push 0x59a1bc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, eax
xor eax, eax
test ecx, ecx
mov dword [esp + 4], ecx
jl 0x4ba876
push ebx
push ebp
push esi
lea ebp, [eax + 1]
lea ecx, [esp + 0x21c]
push ebp
push 0x5a4d04
push ecx
call fcn.004d5ee1
add esp, 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0x21c]
push 0x5b9260
push 0x104
push edx
push 0x5aae60
push eax
push 0x59a1bc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0x14], 0
je 0x4ba865
mov ecx, dword [0x5b5558]
push 0
push 0
push 0x146
push ecx
call edi
mov ebx, eax
xor esi, esi
test ebx, ebx
jle 0x4ba83e
mov eax, dword [0x5b5558]
lea edx, [esp + 0x424]
push edx
push esi
push 0x148
push eax
call edi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x424]
push ecx
push edx
call fcn.004d7652
add esp, 8
test eax, eax
je 0x4ba865
inc esi
cmp esi, ebx
jl 0x4ba80a
mov ecx, dword [0x5b5558]
lea eax, [esp + 0x14]
push eax
push 0
push 0x14a
push ecx
call edi
mov edx, dword [0x5b5558]
push 0xa
push 0
push 0x151
push edx
call edi
mov ecx, dword [esp + 0x10]
mov eax, ebp
cmp eax, ecx
jle 0x4ba7a8
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x61c
ret
Function at 0x4ba940
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x414
push ebx
push ebp
push esi
push edi
push eax
call fcn.004d6713
add esp, 4
test eax, eax
je 0x4baaca
mov ecx, dword [0x5b5558]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x146
push ecx
call esi
mov ebp, eax
xor ebx, ebx
test ebp, ebp
jle 0x4ba9d9
mov edx, dword [0x5b5558]
xor eax, eax
push eax
mov ecx, 0x104
lea edi, [esp + 0x18]
push ebx
push 0x149
push edx
rep stosd dword es:[edi], eax
call esi
cmp eax, 0x208
jae 0x4ba9b7
mov ecx, dword [0x5b5558]
lea eax, [esp + 0x14]
push eax
push ebx
push 0x148
push ecx
call esi
mov edx, dword [esp + 0x428]
lea eax, [esp + 0x14]
push edx
push eax
call fcn.004d7652
add esp, 8
test eax, eax
je 0x4baa58
inc ebx
cmp ebx, ebp
jl 0x4ba97f
mov ecx, dword [esp + 0x428]
mov edx, dword [0x5b5558]
push ecx
push 0
push 0x14a
push edx
call esi
mov eax, dword [0x5b54fc]
push 0
push 0
push 0x1004
push eax
call esi
mov ecx, dword [0x5b5558]
push eax
push 0
push 0x151
push ecx
call esi
mov edx, dword [0x5b5558]
push 0
push 0
push 0x14e
push edx
call esi
mov eax, dword [0x5b54fc]
push 0
push 0
push 0x1004
push eax
call esi
test eax, eax
jle 0x4baa52
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x4ba880
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
jmp 0x4baabc
mov eax, dword [0x5b5558]
push 0
push ebx
push 0x150
push eax
call esi
test eax, eax
jne 0x4baab9
mov ecx, dword [0x5b54fc]
push eax
push eax
push 0x1004
push ecx
call esi
test eax, eax
jle 0x4baab9
mov edx, dword [0x5b54fc]
push 0
push 0
push 0x1004
push edx
call esi
push eax
mov eax, dword [0x5b5558]
push ebx
push 0x151
push eax
call esi
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x4ba880
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push ebx
mov edx, dword [0x5b5558]
push 0x14e
push edx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x414
ret
Function at 0x4bbbb0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x4c
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push esi
push edi
push 0x10
call ebx
mov esi, dword [esp + 0x5c]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
test ax, ax
jge 0x4bbc07
mov eax, dword [0x5b54fc]
push 2
push esi
push 0x102c
push eax
call edi
cmp eax, 2
jne 0x4bbc07
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], eax
mov eax, dword [0x5b54fc]
push ecx
push edx
push 0x102b
push eax
mov dword [esp + 0x40], 0xfffffffd
call edi
mov ecx, dword [esp + 0x68]
push ecx
push 0x10
call ebx
xor edx, edx
test ax, ax
setge dl
push edx
push esi
call fcn.004bc030
mov eax, dword [esp + 0x70]
mov ebx, 1
add esp, 0xc
cmp eax, ebx
jne 0x4bbcbd
mov ecx, dword [0x5b54fc]
lea eax, [esp + 0xc]
push eax
push esi
push 0x1010
push ecx
call edi
mov eax, dword [0x5b54fc]
lea edx, [esp + 0x14]
push edx
push esi
push 0x100e
push eax
mov dword [esp + 0x24], ebx
call edi
push 0xf
call fcn.004c5330
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
sub ecx, esi
push 0xf
sub ecx, eax
mov eax, dword [esp + 0x14]
add eax, ecx
mov dword [esp + 0x14], eax
call fcn.004c5330
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
sub edx, esi
mov ecx, dword [0x5b54fc]
sub edx, eax
mov eax, dword [esp + 0x18]
add eax, edx
add esp, 8
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_SetCursorPos]
pop edi
pop esi
pop ebx
add esp, 0x4c
ret

Function at 0x4bbcd0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x4c]
test eax, eax
mov dword [esp + 4], 0x3c
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], str.properties
pop edi
je 0x4bbd12
mov dword [esp + 0xc], str.explore
lea edx, [esp]
mov dword [esp + 4], 0xc
push edx
mov dword [esp + 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
add esp, 0x3c
ret
Function at 0x4bce40
Capabilities:
Delete file
Set current directory

Disassembly:
sub esp, 0xc50
mov ecx, 0x104
xor eax, eax
push ebx
push esi
mov esi, dword [esp + 0xc64]
push edi
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
cmp dword [esi], 1
jne 0x4bce7d
mov eax, dword [esp + 0xc64]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.004d631b
add esp, 8
xor ebx, ebx
mov dword [esi], ebx
jmp 0x4bce92
xor ebx, ebx
lea edx, [esp + 0x2c]
push ebx
push 0x104
push edx
call fcn.004427c0
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
call fcn.004bcdc0
add esp, 4
test eax, eax
je 0x4bd012
lea ecx, [esp + 0x2c]
push ecx
push 0x5b9040
call fcn.004d7652
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
add esp, 8
test eax, eax
jne 0x4bcee7
lea edx, [esp + 0x43c]
push 0x208
lea eax, [esp + 0x30]
push edx
push eax
call fcn.00442dd0
add esp, 0xc
lea ecx, [esp + 0x43c]
push ecx
call esi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0xc]
mov edx, dword [esp + 0xc60]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], edx
push eax
mov dword [esp + 0x14], 3
call fcn.004c99d0
add esp, 4
lea edx, [esp + 0xc]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], ebx
push edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x22], ebx
mov word [esp + 0x20], 0x40
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x4bd00b
cmp dword [esp + 0x1e], 1
je 0x4bd00b
lea eax, [esp + 0x2c]
push eax
call fcn.004c9990
lea ecx, [esp + 0x850]
push 0x208
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.00442d50
lea eax, [esp + 0x3c]
push eax
push 0x5b9040
call fcn.004d7652
add esp, 0x18
test eax, eax
jne 0x4bcff2
mov eax, dword [0x5b5510]
cmp eax, ebx
je 0x4bcfa5
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [0x5b5510]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x5b5510], ebx
lea edx, [esp + 0x84c]
push edx
push 0x5b9040
call fcn.004d631b
push 1
push ebx
mov word [0x5b96e0], bx
mov dword [0x5b5648], ebx
call fcn.0047a580
mov eax, dword [0x5b54fc]
push eax
call fcn.00475a60
mov ecx, dword [0x5b5528]
add esp, 0x14
push ebx
push 0x46e
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
call fcn.004c25a0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xc50
ret
push 0x5b9040
call esi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc50
ret
Function at 0x4bd560
Capabilities:
Hide graphical window
Read .ini file

Disassembly:
mov ecx, dword [0x5b5554]
sub esp, 0x50
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
push ecx
xor edi, edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
sub eax, ebp
mov ebp, dword [sym.imp.USER32.dll_GetParent]
cdq
mov esi, eax
mov eax, dword [0x5b5550]
xor esi, edx
sub esi, edx
lea edx, [esp + 0x10]
push edx
push eax
call ebp
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [0x5b5550]
mov ebx, dword [sym.imp.USER32.dll_IsWindowVisible]
push ecx
call ebx
test eax, eax
jne 0x4bd5f9
push 0x5b9260
push 0xffffffffffffffff
push str.TreeW
push 0x59a1bc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
test edi, edi
jg 0x4bd5f9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
sub eax, ecx
cdq
mov ecx, eax
mov eax, 0x66666667
xor ecx, edx
sub ecx, edx
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov edi, edx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [0x5b5550]
sub ecx, esi
push 1
add ecx, 2
add esi, 0xfffffffe
push ecx
push edi
push esi
push 0
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [0x5b5550]
push eax
call ebx
test eax, eax
je 0x4bd636
mov ecx, dword [0x5b5550]
push 0
push ecx
jmp 0x4bd63f
mov edx, dword [0x5b5550]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
lea eax, [esp + 0x24]
push 0x5985ac
push eax
call fcn.004d5ee1
add esp, 0xc
lea ecx, [esp + 0x20]
push 0x5b9260
push ecx
push str.TreeW
push 0x59a1bc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [0x5b5550]
push 0
push 0
push 5
push edx
call ebp
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x5b5550]
push eax
call ebx
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x4bd6a5
push 0x5b9040
call fcn.004b8230
add esp, 4
add esp, 0x50
ret
Function at 0x4c2060
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x5b66dc]
sub esp, 0x100
test eax, eax
jne 0x4c2074
call fcn.004c1230
mov ecx, dword [0x5b5574]
lea eax, [esp]
push 0x80
push eax
push 0x526
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
mov edx, dword [esp + 0x104]
push 0x7cf
lea eax, [esp + 4]
push edx
push eax
push 0x54000103
call dword [sym.imp.COMCTL32.dll_CreateStatusWindowW]
push 0x5b9260
push 1
push str.Active
push str.StatusBar
mov dword [0x5b5548], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x4c20d9
mov eax, dword [0x5b5650]
or al, 2
mov dword [0x5b5650], eax
mov eax, dword [0x5b561c]
test eax, eax
je 0x4c20fe
mov eax, dword [0x5b5620]
test eax, eax
je 0x4c20fe
mov eax, dword [0x5b5548]
push 1
push eax
push 0x4c1da0
push eax
call sub.COMCTL32.dll_SetWindowSubclass
add esp, 0x100
ret

Function at 0x4c2110
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x18
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp dword [0x5b5528], eax
jne 0x4c21df
mov eax, dword [0x5b553c]
test eax, eax
je 0x4c21df
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4c21df
mov eax, dword [esp + 0x20]
mov ecx, dword [0x5b553c]
cmp eax, ecx
jne 0x4c21df
push 0x5b9260
push 0
push str.KeepMouse
push str.Viewing
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x4c21df
mov edx, dword [esp + 0x1c]
mov eax, dword [0x5b553c]
lea ecx, [esp + 8]
and edx, 0xffff
push ecx
push edx
push 0x433
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4c21df
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [esp + 0xc]
mov dword [esp], eax
mov eax, dword [esp + 0x14]
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [0x5b553c]
sar eax, 1
add eax, ecx
lea ecx, [esp]
push ecx
push edx
mov dword [esp + 0xc], eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [esp + 4]
mov ecx, dword [esp]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetCursorPos]
add esp, 0x18
ret

Function at 0x4c35f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push ebp
push esi
push edi
and ecx, 0xffff
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4c3662
mov edx, dword [0x5b550c]
push edi
push edx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4c3662
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4c3654
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x5b550c]
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
call fcn.0040d780
add esp, 0xc
mov ebp, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
mov eax, ebp
pop esi
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebp
ret
Function at 0x4c4e30
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x114
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x128]
lea edx, [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x134]
push ebp
mov ebp, dword [esp + 0x12c]
push esi
mov esi, dword [esp + 0x128]
push edi
mov edi, dword [esp + 0x144]
push edi
push 0x80
push edx
mov dword [esi], 0xffffffff
push str.0_0_0_0_0_
mov dword [eax], 0
push ebx
mov dword [ebp], 0
push str.WinPosition
mov dword [ecx], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x24]
push eax
call fcn.004d6713
add esp, 4
test eax, eax
jle 0x4c4eeb
lea ecx, [esp + 0x24]
push str.0_0_0_0_0_
push ecx
call fcn.004d7652
add esp, 8
test eax, eax
je 0x4c4eeb
mov eax, dword [esp + 0x138]
mov edi, dword [esp + 0x130]
lea edx, [esp + 0x10]
lea ecx, [esp + 0x24]
push edx
push eax
push ebp
push edi
push esi
push str._d__d__d__d__d_
push ecx
call fcn.004d6c09
add esp, 0x1c
jmp 0x4c4f45
push edi
push 0xffffffffffffffff
push str.WindowX
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 0
push str.WindowY
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [esp + 0x130]
push edi
push 0
push str.WindowW
push ebx
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 0
push str.WindowH
push ebx
mov dword [ebp], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esp + 0x138]
mov edi, dword [esp + 0x130]
mov dword [ecx], eax
cmp dword [esi], 0xffffffff
jne 0x4c4f53
mov edx, dword [esp + 0x13c]
mov dword [esi], edx
mov eax, dword [ebp]
mov ebx, dword [esp + 0x128]
cmp eax, 0xa
jg 0x4c4fb2
mov eax, dword [edi]
mov ecx, dword [esi]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
push ebx
call fcn.004c4a40
push 0
call fcn.004c49a0
mov edx, dword [esi]
add esp, 0x14
sub eax, edx
mov dword [ebp], eax
mov eax, dword [esp + 0x14]
cmp dword [esi], eax
jge 0x4c4f8e
mov dword [esi], eax
mov ecx, dword [esi]
mov edx, dword [ebp]
mov eax, dword [esp + 0x1c]
add edx, ecx
cmp edx, eax
jle 0x4c4fa2
sub eax, ecx
mov dword [ebp], eax
cmp dword [ebp], 0xa
jg 0x4c4fb2
mov eax, dword [esp + 0x13c]
mov dword [ebp], eax
mov ecx, dword [esp + 0x138]
cmp dword [ecx], 0xa
jg 0x4c4fe6
push 0x3e
call fcn.004c53b0
mov ebp, eax
mov eax, dword [edi]
push 0x21
sub ebp, eax
call fcn.004c53b0
push 0x21
sub ebp, eax
call fcn.004c53b0
mov edx, dword [esp + 0x138]
sub ebp, eax
mov dword [edx], ebp
push edi
push esi
push ebx
call fcn.004c4de0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret