joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b790
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, 0x514ff8
call fcn.00408de0
test eax, eax
lea ebx, [edi + 0x37fbc]
jne 0x49b7b0
lea ebx, [edi + 0x2c2a0]
push 0xa
mov ecx, ebx
call fcn.004d59a0
mov esi, dword [esp + 0x14]
mov ecx, ebx
push esi
push 0xa
mov ebp, eax
call fcn.004d4130
test ebp, ebp
je 0x49b81b
lea ebx, [edi + 0x2e464]
mov ecx, ebx
call fcn.00405680
mov ebp, dword [esi + 4]
mov ecx, eax
mov eax, dword [esi + 0xc]
push 0x40
sub eax, ebp
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esi]
mov esi, dword [esi + 8]
sar eax, 1
add eax, ebp
sub esi, edx
add ecx, eax
sub ecx, eax
push ecx
push esi
push eax
mov eax, dword [edi + 0x2e468]
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, ebx
call fcn.00403a80
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov ecx, dword [edi + 0x2e468]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x49b840
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, 0x514ff8
call fcn.00408de0
test eax, eax
lea ebx, [edi + 0x39090]
jne 0x49b860
lea ebx, [edi + 0x2c2a0]
push 0x13
mov ecx, ebx
call fcn.004d59a0
mov esi, dword [esp + 0x14]
mov ecx, ebx
push esi
push 0x13
mov ebp, eax
call fcn.004d4130
test ebp, ebp
je 0x49b8cb
lea ebx, [edi + 0x2b160]
mov ecx, ebx
call fcn.004867b0
mov ebp, dword [esi + 4]
mov ecx, eax
mov eax, dword [esi + 0xc]
push 0x40
sub eax, ebp
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esi]
mov esi, dword [esi + 8]
sar eax, 1
add eax, ebp
sub esi, edx
add ecx, eax
sub ecx, eax
push ecx
push esi
push eax
mov eax, dword [edi + 0x2b164]
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, ebx
call fcn.004867d0
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov ecx, dword [edi + 0x2b164]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4a0160
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x1048
call fcn.004d9670
push esi
mov esi, ecx
mov ecx, dword [esp + 0x1050]
xor eax, eax
shr ecx, 0x10
cmp ecx, 0x13
jne 0x4a021e
push edi
mov ecx, 0x411
lea edi, [esp + 0xa]
mov word [esp + 8], ax
rep stosd dword es:[edi], eax
lea ecx, [esi + 0x2b160]
stosw word es:[edi], ax
call fcn.00486790
test eax, eax
pop edi
je 0x4a01ca
cmp word [eax], 0
je 0x4a01ca
push 1
push 1
lea edx, [esp + 0xc]
push 0x824
push edx
push eax
push 0xffffffffffffffff
call fcn.00486ab0
mov ecx, eax
call fcn.00486f90
jmp 0x4a01e4
push 1
lea eax, [esp + 8]
push 0x824
push eax
push 0xffffffffffffffff
call fcn.00486ab0
mov ecx, eax
call fcn.004870b0
cmp word [esp + 4], 0
je 0x4a0219
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [0x5edf9c]
push 0
push ecx
push 0
push 0
push 1
push 1
push 8
lea edx, [esp + 0x20]
push 0
push edx
lea ecx, [esi + 0xca6c]
call fcn.00475b10
mov eax, 1
pop esi
add esp, 0x1048
ret 4
Function at 0x4a04a0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x28]
push 0x2008
push 1
push 0x9d99
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
ret

Function at 0x4a0620
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push ebp
push esi
push edi
mov ebp, ecx
push 0x10
call ebx
mov si, ax
push 0x12
shr esi, 8
and esi, 0xff
call ebx
mov di, ax
push 0x11
shr edi, 8
and edi, 0xff
call ebx
shr eax, 8
and eax, 0xff
test esi, esi
jne 0x4a06b4
test edi, edi
jne 0x4a06b4
test eax, eax
jne 0x4a06b4
mov eax, dword [esp + 0x14]
add eax, 0xffffff90
mov ecx, eax
shl ecx, 6
add ecx, eax
lea eax, [eax + ecx*8]
cmp word [eax*8 + 0x5f68b0], di
lea esi, [eax*8 + 0x5f68b0]
je 0x4a06b4
push edi
call dword [sym.imp.USER32.dll_InSendMessageEx]
and eax, 9
cmp al, 1
jne 0x4a069c
push 1
call dword [sym.imp.USER32.dll_ReplyMessage]
push esi
lea ecx, [ebp + 0xca6c]
call fcn.00475480
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
Function at 0x4a5da0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x4a5ecd
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4a5ecd
push 0
push str.cachesnap
mov ecx, 0x514ff8
call fcn.00407d70
mov esi, eax
test esi, esi
mov dword [ebp - 4], esi
je 0x4a5ecd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4a5df1
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call fcn.004a5f60
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4a5e35
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004d9670
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp - 4]
mov eax, edi
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push eax
push esi
push str._s_s.png
lea ebx, [ecx - 1]
push ebx
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a5eb7
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4a5eb7
xor esi, esi
mov eax, dword [0x5ee744]
test eax, eax
je 0x4a5eb0
mov edx, dword [0x5ee748]
sub edx, eax
sar edx, 2
cmp esi, edx
jae 0x4a5eb0
mov ecx, dword [ebp + 8]
mov eax, dword [eax + esi*4]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x4a5e91
inc esi
jmp 0x4a5e61
push 0x5133b4
push 0x4f6170
push ebx
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.null
jmp 0x4a5e96
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4a5ecd
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a60e0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x684
mov ax, word [0x514ff0]
push ebp
mov ebp, ecx
push edi
mov word [esp + 0x484], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x486]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x94
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp + 8]
lea ecx, [esp + 0x484]
push eax
push str._s.
push 0x104
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea edx, [esp + 0x2c]
lea eax, [esp + 0x484]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x27e]
mov word [esp + 0x27c], 0
cmp edx, 0xffffffff
rep stosd dword es:[edi], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0xffffffff
stosw word es:[edi], ax
je 0x4a632a
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_time]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea ecx, [esp + 0x60]
push 0x4f7314
push ecx
call esi
add esp, 8
test eax, eax
je 0x4a6305
lea edx, [esp + 0x60]
push 0x4f9b08
push edx
call esi
add esp, 8
test eax, eax
je 0x4a6305
test byte [esp + 0x34], 0x12
jne 0x4a6305
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x4a6305
push str..png
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4a6305
mov ecx, 0x82
lea edi, [esp + 0x284]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x60]
lea eax, [ebp + 8]
push ecx
push eax
push 0x4f8944
lea edx, [esp + 0x290]
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea eax, [esp + 0x14]
lea ecx, [esp + 0x60]
push eax
push ecx
mov ecx, ebp
call fcn.004a6340
test eax, eax
jne 0x4a62f3
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
jne 0x4a624d
xor edx, edx
jmp 0x4a62bf
lea edx, [esp + 0x1c]
lea eax, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x4a6265
xor edx, edx
jmp 0x4a62bf
mov eax, dword [esp + 0x1c]
cmp ax, 0x76c
jae 0x4a6273
xor edx, edx
jmp 0x4a62bf
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x26]
and ecx, 0xffff
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x2c]
and edx, 0xffff
and ecx, 0xffff
push edx
mov edx, dword [esp + 0x2e]
push ecx
mov ecx, dword [esp + 0x2e]
and edx, 0xffff
and ecx, 0xffff
push edx
and eax, 0xffff
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.004a6800
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [ebp + 4]
lea esi, [eax + eax*4]
shl esi, 4
add esi, ecx
mov dword [esi + 0x22c], edx
call ebx
mov edx, dword [esi + 0x22c]
add esp, 4
sub eax, edx
cmp eax, 0x7e900
jle 0x4a6305
lea edx, [esp + 0x284]
push 0
push edx
call fcn.00433910
add esp, 8
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4a6184
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x684
ret
Function at 0x4a66d0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, ecx
push ebp
push 0x5067c4
lea eax, [ebx + 8]
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4a6773
push esi
push edi
push ebp
lea esi, [ebx + 4]
push 1
push 4
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x4a675f
mov eax, dword [esi]
test eax, eax
je 0x4a675f
mov ecx, eax
shl ecx, 5
add ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebx], edi
je 0x4a675f
mov eax, dword [esi]
push ebp
mov ecx, eax
shl ecx, 5
add ecx, eax
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 eax, dword [esi]
mov ecx, dword [ebx]
push eax
push 0x21
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [esi]
add esp, 0x10
cmp eax, ecx
je 0x4a675f
mov ecx, ebx
call fcn.004a64f0
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x4a6780
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, ecx
push esi
push edi
lea eax, [ebx + 8]
xor esi, esi
push 0x5067cc
push eax
mov dword [esp + 0x14], esi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x4a67ed
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
push edi
lea esi, [ebx + 4]
push 1
push 4
push esi
call ebp
add esp, 0x10
cmp eax, 1
jne 0x4a67d7
mov ecx, dword [esi]
mov edx, dword [ebx]
push edi
push ecx
push 0x21
push edx
call ebp
mov ecx, dword [esi]
add esp, 0x10
cmp eax, ecx
mov esi, 1
je 0x4a67db
mov esi, dword [esp + 0x10]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4a8390
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [edx]
push edi
mov edi, dword [esp + 0x14]
mov ecx, esi
xor ecx, eax
and ecx, 0xff
shr esi, 8
mov ecx, dword [edi + ecx*4]
xor ecx, esi
mov esi, dword [edx + 4]
mov dword [edx], ecx
and ecx, 0xff
add ecx, esi
mov esi, dword [edx + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov ebx, esi
mov dword [edx + 4], ecx
and ebx, 0xff
shr ecx, 0x18
xor ecx, ebx
shr esi, 8
mov ecx, dword [edi + ecx*4]
pop edi
xor ecx, esi
pop esi
mov dword [edx + 8], ecx
pop ebx
ret
Function at 0x4a9d10
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4df4f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.004ccba0
lea ebx, [esi + 4]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x1c], edi
call fcn.004d7b60
lea ecx, [esi + 0x94]
mov byte [esp + 0x1c], 1
call fcn.0047d280
lea ecx, [esi + 0x2d8]
mov byte [esp + 0x1c], 2
call fcn.004d0f30
mov al, byte [esp + 0xf]
lea edx, [esi + 0x2d0]
mov byte [esi + 0x13bc], al
mov dword [esi + 0x13c0], edi
mov dword [esi + 0x13c4], edi
mov dword [esi + 0x13c8], edi
xor ecx, ecx
mov dword [esi], 0x4e7504
mov dword [ebx], 0x4e74f8
mov dword [edx], ecx
mov eax, esi
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x13ac], edi
mov dword [esi + 0x13b0], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x13b4], edi
mov dword [esi + 0x13b8], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x13d4], edi
mov dword [esi + 0x13d8], edi
mov dword [esi + 0x28], 0x64
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4ab9d0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4ab9ee
mov eax, dword [ecx + 8]
push 5
push eax
mov dword [ecx + 0x2c], 0
call dword [sym.imp.USER32.dll_ShowWindow]
ret 4
mov dword [ecx + 0x2c], 1
mov ecx, dword [ecx + 8]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
ret 4
Function at 0x4ac010
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi + 0x13b0]
test eax, eax
je 0x4ac0ec
mov eax, dword [esi + 0x13ac]
test eax, eax
je 0x4ac0ec
mov dword [esi + 0x40], 1
mov eax, dword [eax + 4]
test eax, eax
je 0x4ac04c
push 0x4001
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esi + 0x13ac]
call fcn.0045b540
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0xf8]
mov ecx, dword [esi + 0x13ac]
mov edx, dword [ecx]
call dword [edx + 0x68]
cmp eax, 0x64
mov dword [esi + 0x28], eax
je 0x4ac085
mov ecx, dword [esi + 0x13ac]
push 0x64
mov eax, dword [ecx]
call dword [eax + 0x9c]
mov ecx, esi
call fcn.004ac730
mov ecx, esi
call fcn.004ac5b0
xor ecx, ecx
mov edx, dword [esi + 0x34]
mov dword [esp + 4], ecx
mov eax, dword [esi + 0x30]
mov dword [esp + 8], ecx
push 0x14
mov dword [esp + 0x10], ecx
push 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 8]
lea edx, [esp + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x13ac]
push edx
push 0x53
mov dword [esp + 0x24], eax
call fcn.0040db20
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x7d0
mov ecx, esi
call fcn.004ab8e0
pop esi
add esp, 0x14
ret

Function at 0x4af240
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x50]
test eax, eax
jne 0x4af279
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x50], 1
test ecx, ecx
je 0x4af279
push 2
call fcn.0040ef80
mov eax, dword [esi + 0x28]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x58]
push 0
push 0
push 1
call fcn.0040ecc0
pop esi
ret

Function at 0x4b7970
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4dfa98
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
call fcn.004d7b60
lea ebx, [esi + 0x24]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x18], edi
call fcn.004ccba0
mov dword [esi + 0x28], 0x4e1b90
mov dword [esi + 0x2c], 0x64
lea eax, [esi + 0x1094]
mov dword [ebx], 0x4e787c
mov ebx, dword [sym.imp.MSVCRT.dll_wcscpy]
push str.BG_EDIT
push eax
mov dword [esi], 0x4e7870
mov dword [esi + 0x28], 0x4e7868
mov dword [esi + 0x1088], edi
call ebx
lea ecx, [esi + 0x10d4]
push str.LeftPad
push ecx
call ebx
lea edx, [esi + 0x1114]
push str.RightPad
push edx
call ebx
add esp, 0x18
mov dword [esi + 0x1160], edi
mov dword [esi + 0x1158], edi
mov dword [esi + 0x115c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x1090], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x1154], edi
mov ecx, 0x412
xor eax, eax
lea edi, [esi + 0x40]
mov dword [esi + 0x1164], 8
mov dword [esi + 0x1168], 5
mov dword [esi + 0x108c], 0x12
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4ba480
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4ba628
mov ecx, dword [esi + 4]
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push ecx
call edi
mov ebx, dword [esi + 0xc798]
xor eax, eax
test ebx, ebx
sete al
push eax
lea ecx, [esi + 0x28]
mov dword [esi + 0xc798], eax
call fcn.004c27b0
mov edx, dword [esi + 0xc798]
lea ecx, [esi + 0xd08]
push edx
call fcn.004c27b0
mov eax, dword [esi + 0xc798]
test eax, eax
je 0x4ba5ab
mov eax, dword [esi + 4]
push ebp
mov ebp, dword [sym.imp.USER32.dll_IsZoomed]
push eax
call ebp
mov edx, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esi + 0xca2c]
mov dword [esi + 0xca28], eax
push ecx
push edx
call ebx
mov eax, dword [esi + 4]
push 0xfffffffffffffff0
push eax
call edi
mov ecx, dword [esi + 4]
mov dword [esi + 0xca24], eax
and eax, 0xff3bffff
push eax
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi + 4]
push 0
lea edx, [esp + 0x14]
push 0
push edx
push eax
call fcn.004930e0
add esp, 0x10
test eax, eax
jne 0x4ba551
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call ebx
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
sub edi, edx
mov edx, dword [esi + 4]
push edx
sub ebx, ecx
call ebp
test eax, eax
pop ebp
je 0x4ba58a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 4]
push 0x60
push ebx
push edi
push eax
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 4]
push 3
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
push 0
push 0x190
push 1
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x4ba616
mov edx, dword [esi + 4]
push 1
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi + 0xca24]
mov ecx, dword [esi + 4]
push eax
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi + 0xca30]
mov edx, dword [esi + 0xca38]
mov ecx, dword [esi + 0xca2c]
sub edx, eax
push 0x60
push edx
mov edx, dword [esi + 0xca34]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 4]
push ecx
push 0xfffffffffffffffe
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 0xca28]
test eax, eax
je 0x4ba60a
mov ecx, dword [esi + 4]
push 3
push ecx
jmp 0x4ba610
mov edx, dword [esi + 4]
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
push 1
push 0
push eax
call fcn.004d7ff0
add esp, 0xc
pop edi
pop ebx
pop esi
add esp, 0x10
ret

Function at 0x4ba8a0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
push 6
push eax
call edi
mov ecx, dword [esi + 4]
push 0
push ecx
call edi
pop edi
pop esi
ret
Function at 0x4c0650
Capabilities:
Check if file exists
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x410
mov edx, dword [esp + 0x420]
push ebx
push esi
push edi
mov edi, dword [esp + 0x428]
mov esi, ecx
push edi
mov ecx, dword [esp + 0x428]
push eax
push ecx
push 0x46000000
push edx
push str.XToolBar
push 0
mov ecx, esi
call fcn.004d7c50
lea ebx, [esi + 0xac4]
mov dword [esi + 0x2c], eax
push ebx
mov dword [esi + 0x30], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c072d
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x216]
mov word [esp + 0x214], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x30]
lea ecx, [esp + 0xc]
push eax
push str.RebarC_d
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea edx, [esp + 0x214]
lea eax, [esp + 0xc]
push ebx
push 0x104
push edx
push 0x514ff0
push eax
push str.ToolBar
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x4c072d
lea ecx, [esp + 0x214]
push ecx
call dword [sym.imp.MSVCRT.dll__wtol]
add esp, 4
mov dword [esi + 0xaa0], eax
mov ecx, esi
call fcn.004c0b30
mov eax, dword [esi + 0x2c]
pop edi
pop esi
pop ebx
add esp, 0x410
ret 0x10

Function at 0x4c0a20
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x24c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x938]
cmp eax, 0x10
jle 0x4c0a3c
mov eax, 0x10
mov ecx, dword [esi + 0x30]
lea edx, [esp + 0x54]
push ecx
push str.RebarB_d
shl eax, 2
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea ebx, [esi + 0xac4]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c0b1b
lea eax, [esp + 0x10]
lea ebp, [esi + 0x8f8]
push ebx
push eax
lea ecx, [esp + 0x5c]
push ebp
push ecx
push str.ToolBar
call fcn.00492e90
add esp, 0x14
test eax, eax
je 0x4c0b1b
mov edx, dword [esi + 0x30]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0
push edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x58]
push str.RebarA_d
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
lea ecx, [esp + 0x1c]
push ebx
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x68]
push edx
push eax
push str.ToolBar
call fcn.00492e90
add esp, 0x20
test eax, eax
je 0x4c0b1b
mov edi, dword [esp + 0x10]
shr edi, 2
test edi, edi
jle 0x4c0b0d
lea ecx, [esp + 0x14]
mov edx, ebp
mov eax, dword [edx]
add ecx, 4
mov ebx, eax
add edx, 4
shl ebx, 4
add ebx, eax
mov eax, dword [ecx - 4]
dec edi
mov dword [esi + ebx*8 + 0x80], eax
jne 0x4c0af1
mov ecx, esi
call fcn.004c1c90
mov ecx, esi
call fcn.004c20b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret