joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc5a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x34
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [esp + 0x4c]
push esi
mov esi, dword [esp + 0x4c]
push edi
mov edi, dword [esp + 0x58]
mov dword [esp + 0x14], eax
cmp dword [esi + 0xa0], 0xffffffff
mov dword [esp + 0x10], edi
je 0x4bc5e1
push 0
push 0
push esi
push 0
push 0
call fcn.004bc470
lea eax, [esp + 0x18]
push eax
lea ebx, [esi + 0x40]
push ebx
call fcn.00493380
mov eax, dword [esp + 0x18]
bswap eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
bswap eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
bswap eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
bswap eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
bswap eax
mov dword [esp + 0x3c], eax
test ebp, ebp
je 0x4bc63b
cmp byte [edi], 0
je 0x4bc63b
mov ecx, 0x18
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
jmp 0x4bc659
xor eax, eax
lea ecx, [ecx]
xor byte [esi + eax], 0x6a
inc eax
cmp eax, 0x40
jb 0x4bc640
push ebx
call fcn.004934a0
push 0x40
push esi
push ebx
call fcn.004934e0
test ebp, ebp
je 0x4bc674
cmp byte [edi], 0
jne 0x4bc674
mov eax, dword [esp + 0x10]
mov ecx, 0x18
mov esi, ebx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x14
lea eax, [esp + 0x30]
push eax
push ebx
call fcn.004934e0
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00493380
mov eax, dword [esp + 0x18]
bswap eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
bswap eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
bswap eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
bswap eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
pop edi
bswap eax
pop esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
pop ebp
pop ebx
test eax, eax
je 0x4bc6dc
push eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0xc]
call fcn.004fa2e0
add esp, 0xc
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004f833c
add esp, 0x34
ret 0x14
Function at 0x4c0490
Capabilities:
Hide graphical window

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
mov edx, dword [eax]
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x10], 0
call dword [edx + 0x48]
mov ebx, eax
test ebx, ebx
js 0x4c0519
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4c0511
mov eax, dword [ecx]
lea edx, [esp + 8]
push edx
push 0x52b478
push ecx
call dword [eax]
mov ebx, eax
test ebx, ebx
js 0x4c0503
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov ebx, eax
test ebx, ebx
js 0x4c04f9
mov eax, dword [esp + 8]
push dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ebx, eax
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0xc]
test ebx, ebx
js 0x4c0519
test ecx, ecx
jne 0x4c0572
cmp dword [esi + 8], 0
je 0x4c0572
cmp dword [esi + 0x20], 0
jne 0x4c0572
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4c0572
push edi
push eax
mov ecx, esi
call fcn.004c0ea0
mov edi, eax
test edi, edi
je 0x4c0571
push 0x204
push 0
push 0
push 0
push 0
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call fcn.004fe8b9
add esp, 4
pop edi
not ebx
shr ebx, 0x1f
pop esi
mov al, bl
pop ebx
add esp, 8
ret 8
Function at 0x4c11f0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x14
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x10], eax
mov al, byte [esp + 0x28]
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov ebx, ecx
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x30]
push 0
push ebp
mov dword [ebx + 8], ebp
mov byte [ebx + 0x26], al
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
mov ecx, ebx
call fcn.004c0d70
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x4c123b
push eax
call fcn.004fe8b9
add esp, 4
test edi, edi
jne 0x4c1243
xor eax, eax
jmp 0x4c124c
push edi
call fcn.004fe8d4
add esp, 4
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x20], eax
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebx + 4]
test eax, eax
je 0x4c1287
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
sub esi, edi
push ebx
push dword [ebx]
push 0
push ebp
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x2c]
sub eax, ecx
push eax
push esi
push ecx
push edi
push 0x40000000
push 0
push 0x528140
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp dword [ebx + 0x10], 0
mov dword [ebx + 4], eax
jne 0x4c1318
test ebp, ebp
je 0x4c132f
cmp dword [ebx + 0x20], 0
jne 0x4c132f
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x4c132f
push eax
mov ecx, ebx
call fcn.004c0ea0
mov esi, eax
test esi, esi
je 0x4c132f
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push ebp
call eax
push esi
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.004fe8b9
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004f833c
add esp, 0x14
ret 0x14
test eax, eax
je 0x4c132f
push 5
push eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f833c
add esp, 0x14
ret 0x14
Function at 0x4c21c0
Capabilities:
Get disk information
Query environment variable

Disassembly:
mov eax, 0x4408
call fcn.004f8350
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x4404], eax
mov eax, dword [esp + 0x4410]
lea ecx, [esp + 0x1004]
push esi
mov esi, dword [esp + 0x4410]
push 0x800
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4c23cd
cmp eax, 0x800
jae 0x4c23cd
push 0x800
lea eax, [esp + 0x100c]
mov ecx, 0x570db0
push eax
push eax
call fcn.004417b0
lea eax, [esp + 0x1008]
push eax
call fcn.0047d830
push 0x3a
push eax
call fcn.004f961b
add esp, 8
test eax, eax
je 0x4c2274
cmp byte [0x5a133e], 0
jne 0x4c2274
push 0x31
push 0x65
call fcn.0048e4c0
push eax
push 0x528
call fcn.0048e4c0
push eax
push esi
call fcn.004cd560
cmp eax, 1
jne 0x4c23b3
mov byte [0x5a133e], al
push 0x800
lea eax, [esp + 0x100c]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004947d0
lea eax, [esp + 8]
push eax
call fcn.0047d890
lea eax, [esp + 8]
push eax
call fcn.0047d830
cmp word [eax], 0
je 0x4c232c
lea eax, [esp + 8]
push eax
call fcn.0046cad0
test al, al
jne 0x4c232c
push 0
lea eax, [esp + 0xc]
push eax
call fcn.0040fb40
test al, al
jne 0x4c232c
push 0x14d
call fcn.0048e4c0
push eax
lea eax, [esp + 0xc]
push eax
push str.__s__n_s
lea eax, [esp + 0x3014]
push 0xa00
push eax
call fcn.00402720
add esp, 0x14
push 0x34
push 0x65
call fcn.0048e4c0
push eax
lea eax, [esp + 0x3010]
push eax
push esi
call fcn.004cd560
cmp eax, 6
jne 0x4c23b3
push 0
lea eax, [esp + 0xc]
push eax
call fcn.0046c530
lea eax, [esp + 8]
push eax
call fcn.0046cad0
test al, al
je 0x4c22b7
push 0x800
lea eax, [esp + 0x200c]
push eax
lea eax, [esp + 0x1010]
push eax
call fcn.0047cc90
push 0
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2024]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4c23cd
test dword [esp + 4], 0x80000
je 0x4c23cd
lea eax, [esp + 0x2008]
push eax
push 0x65e
call fcn.0048e4c0
push eax
lea eax, [esp + 0x3010]
push 0xa00
push eax
call fcn.00402720
add esp, 0x10
push 0x30
push 0x65
call fcn.0048e4c0
push eax
lea eax, [esp + 0x3010]
push eax
push esi
call fcn.004cd560
xor al, al
pop esi
mov ecx, dword [esp + 0x4404]
xor ecx, esp
call fcn.004f833c
add esp, 0x4408
ret 8
mov ecx, dword [esp + 0x4408]
mov al, 1
pop esi
xor ecx, esp
call fcn.004f833c
add esp, 0x4408
ret 8
Function at 0x4c48d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1a4
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x1a0], eax
mov ecx, dword [esp + 0x1a8]
push ebx
mov bh, byte [esp + 0x1b0]
mov bl, byte [esp + 0x1b4]
movzx eax, bh
mov dword [esp + 0x54], eax
mov eax, dword [0x57f310]
mov dword [esp + 0xc], ecx
mov ecx, 0x572f10
push 1
mov dword [0x5a132c], 0
mov dword [0x5a1330], 0
mov byte [0x5a1325], bl
mov dword [esp + 0x48], str.GETARC
mov dword [esp + 0x54], 0x4c4b50
mov dword [esp + 0x7c], str.GETARCADV
mov dword [esp + 0x88], 0x4c3920
mov dword [esp + 0xb0], str.GETARCOPT
mov dword [esp + 0xbc], 0x4c62d0
mov dword [esp + 0xe4], str.GETARCFILES
mov dword [esp + 0xf0], 0x4c5c90
mov dword [esp + 0x118], str.GETARCBACKUP
mov dword [esp + 0x124], 0x4c4160
mov dword [esp + 0x14c], str.GETARCTIME
mov dword [esp + 0x158], 0x4c6600
mov dword [esp + 0x180], str.GETARCCMT
mov dword [esp + 0x18c], 0x4c4400
mov dword [esp + 8], 0x34
mov dword [esp + 0xc], 0x28a
mov dword [esp + 0x14], eax
call fcn.004af6d0
mov dword [esp + 0x14], eax
test bl, bl
je 0x4c49e4
push 0x3f1
jmp 0x4c49fa
movzx eax, byte [0x55c5f0]
neg eax
sbb eax, eax
and eax, 0xfffffd08
add eax, 0x3de
push eax
call fcn.0048e4c0
mov dword [esp + 0x18], eax
mov ecx, 0x57f3a0
lea eax, [esp + 0x38]
mov dword [esp + 0x1c], 7
mov dword [esp + 0x24], eax
mov eax, dword [0x57f310]
mov dword [esp + 0x40], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0x110], eax
mov dword [esp + 0x144], eax
mov dword [esp + 0x178], eax
lea eax, [esp + 0x38]
push 7
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x28], 0
push eax
mov dword [esp + 0x44], 0x34
mov dword [esp + 0x48], 0x20
mov dword [esp + 0x78], 0x34
mov dword [esp + 0x7c], 0x20
mov dword [esp + 0xac], 0x34
mov dword [esp + 0xb0], 0x20
mov dword [esp + 0xe0], 0x34
mov dword [esp + 0xe4], 0x20
mov dword [esp + 0x114], 0x34
mov dword [esp + 0x118], 0x20
mov dword [esp + 0x148], 0x34
mov dword [esp + 0x14c], 0x20
mov dword [esp + 0x17c], 0x34
mov dword [esp + 0x180], 0x20
call fcn.0048d9b0
test bh, bh
jne 0x4c4b1c
lea eax, [esp + 4]
push eax
call dword [sym.imp.COMCTL32.dll_PropertySheetW]
test eax, eax
jle 0x4c4b18
cmp word [0x562a1a], 0
jne 0x4c4b1c
cmp byte [0x5619e5], bh
jne 0x4c4b1c
test bl, bl
jne 0x4c4b1c
xor bl, bl
jmp 0x4c4b1e
mov bl, 1
push 7
lea eax, [esp + 0x3c]
mov ecx, 0x57f3a0
push eax
call fcn.0048d960
mov ecx, dword [esp + 0x1a4]
mov al, bl
pop ebx
xor ecx, esp
mov byte [0x5709ac], 0
call fcn.004f833c
add esp, 0x1a4
ret 0xc
Function at 0x4cb4c0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x4cb536
push ebx
push 0x800
push 0x55a4de
push str.Rar_CM
call fcn.004cc240
mov ebx, eax
test ebx, ebx
je 0x4cb535
push esi
mov esi, edi
lea ecx, [esi + 2]
lea ebx, [ebx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4cb4f0
sub esi, ecx
mov ecx, edi
sar esi, 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cb504
sub ecx, edx
push ebx
sar ecx, 1
push ecx
push 2
push edi
call fcn.004ff1cc
push ebx
call fcn.004fede7
add esp, 0x14
test esi, esi
pop esi
je 0x4cb535
mov dword [0x55b4e0], 3
pop ebx
pop edi
ret 4

Function at 0x4cbf30
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query environment variable

Disassembly:
mov eax, 0x1004
call fcn.004f8350
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x1000], eax
cmp word [0x54cfb0], 0
push esi
mov esi, dword [esp + 0x100c]
push edi
mov edi, dword [esp + 0x1014]
push edi
je 0x4cbf6d
push 0x54cfb0
jmp 0x4cbff4
push 0x51787c
push esi
push str.TempFolder
push 0x517afc
call fcn.004a5ee0
xor eax, eax
mov word [esp + 8], ax
lea eax, [esp + 8]
push 0x800
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
movzx ecx, word [esi]
test cx, cx
je 0x4cbfc1
test eax, eax
je 0x4cbfb9
cmp eax, 0x800
jae 0x4cbfb9
push edi
lea eax, [esp + 0xc]
push eax
push esi
call fcn.004947d0
movzx ecx, word [esi]
test cx, cx
jne 0x4cbfd0
cmp byte [esp + 0x1018], 0
je 0x4cbfdc
test cx, cx
je 0x4cbffa
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4cbffa
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4cbfee
cmp word [esi], 0
jne 0x4cbffa
push edi
push str._rartemp
push esi
call fcn.004947d0
push edi
push esi
call fcn.0047bc90
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
call fcn.004f833c
add esp, 0x1004
ret 0xc
Function at 0x4cc310
Capabilities:
Create directory

Disassembly:
mov eax, 0x2004
call fcn.004f8350
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x2000], eax
mov eax, dword [esp + 0x2008]
push esi
mov esi, dword [esp + 0x2010]
push 0x7ff
push eax
lea eax, [esp + 0x100c]
push eax
call fcn.004947d0
cmp byte [esp + 0x2018], 0
je 0x4cc3b5
cmp byte [0x56e45c], 0
jne 0x4cc36a
cmp byte [0x56e3ab], 0
jne 0x4cc36a
xor edx, edx
jmp 0x4cc36f
mov edx, 1
lea ecx, [esp + 0x1004]
push edi
lea edi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cc380
xor eax, eax
sub ecx, edi
sar ecx, 1
test dl, dl
setne al
add eax, 0x61
push eax
push 0x529380
lea eax, [esp + 0x1010]
lea eax, [eax + ecx*2]
push 2
push eax
call fcn.00402720
add esp, 0x10
pop edi
push 0
push 0x800
lea eax, [esp + 0xc]
push eax
call fcn.004cbf30
push 0x800
lea eax, [esp + 8]
push eax
call fcn.0047bc90
push 0x800
lea eax, [esp + 0x1008]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00494790
push 0x800
lea eax, [esp + 8]
push eax
call fcn.0046d160
test eax, eax
je 0x4cc43c
push 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4cc43c
push dword [esp + 0x2014]
lea eax, [esp + 8]
push eax
push esi
call fcn.004947d0
mov al, 1
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.004f833c
add esp, 0x2004
ret 0x10
lea eax, [esp + 4]
push eax
push 0x1f7
call fcn.0048e4c0
push eax
call fcn.004d1700
add esp, 8
mov ecx, 0x57f41c
call fcn.00466a60
mov ecx, dword [esp + 0x2004]
xor al, al
pop esi
xor ecx, esp
call fcn.004f833c
add esp, 0x2004
ret 0x10
Function at 0x4cc480
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, eax
push ebp
mov dword [esp + 0x1c], ebp
call esi
mov ebx, eax
push ebp
mov dword [esp + 0x18], ebx
call esi
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
push dword [esp + 0x28]
push dword [esp + 0x28]
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push esi
push ebx
mov dword [esp + 0x44], edi
call ebp
push edi
push dword [esp + 0x14]
mov ebx, eax
call ebp
mov edx, dword [esp + 0x24]
mov edi, eax
mov esi, dword [esp + 0x28]
mov ecx, edx
push 0xcc0020
push esi
neg ecx
push ecx
push 0
lea ecx, [edx - 1]
push ecx
push dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x2c]
push edx
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
push 0xcc0020
push 0
push 0
push esi
push dword [esp + 0x38]
mov esi, dword [esp + 0x28]
push dword [esp + 0x38]
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
push ebx
push esi
call ebp
mov ebx, dword [esp + 0x10]
push edi
push ebx
call ebp
push dword [esp + 0x3c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push ebx
call esi
push dword [esp + 0x18]
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x4ccdc0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 8
lea eax, [esp]
push ebx
push eax
push 0x52b318
push 1
push 0
push 0x52b418
xor bl, bl
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4ccea4
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x52b368
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x4cce9a
cmp byte [esp + 0x10], bl
je 0x4cce17
mov eax, dword [esp + 8]
push 2
push dword [esp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 4]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [esp + 0x20]
test edx, edx
je 0x4cce38
mov eax, dword [esp + 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x24]
push 0
mov ecx, dword [eax]
test edx, edx
jne 0x4cce4f
push 0x51787c
jmp 0x4cce50
push edx
push eax
call dword [ecx + 0x44]
mov edx, dword [esp + 0x28]
test edx, edx
je 0x4cce67
mov eax, dword [esp + 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x4cce7a
mov eax, dword [esp + 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esp + 8]
push 1
push dword [esp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x4cce90
mov bl, 1
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 4]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov al, bl
pop ebx
add esp, 8
ret 0x1c

Function at 0x4cd210
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x4cd360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push esi
push 0x526e40
push dword [esp + 0x14]
push dword [0x57f310]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4cd386
pop esi
add esp, 8
ret 4
push edi
push esi
push dword [0x57f310]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4cd3ab
push esi
push dword [0x57f310]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4cd3b5
pop edi
xor eax, eax
pop esi
add esp, 8
ret 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4cd3cc
pop ebx
pop edi
pop esi
add esp, 8
ret 4
push edi
push 2
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4cd46e
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4cd467
push edi
push ebx
push eax
call fcn.004fa2e0
add esp, 0xc
mov dword [esp + 0x18], 0
lea eax, [esp + 0x18]
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4cd460
push eax
push dword [esp + 0x1c]
call fcn.004cd160
mov ecx, dword [esp + 0x18]
mov edi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test edi, edi
je 0x4cd460
mov eax, dword [edi + 8]
mov dword [edi + 8], 0
test eax, eax
jne 0x4cd458
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0xffffff
push eax
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.004cd230
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0xc]
pop ebx
pop edi
pop esi
add esp, 8
ret 4

Function at 0x4cd940
Capabilities:
Set current directory

Disassembly:
push ebx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x4cd975
push dword [esp + 8]
push 0x627
call fcn.0048e4c0
push eax
call fcn.004d1700
add esp, 8
mov ecx, 0x57f41c
call fcn.00466a60
mov al, bl
pop ebx
ret 4
Function at 0x4d0190
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x404
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x400], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x414]
lea eax, [esp + 0xc]
push 0x200
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x40
lea eax, [esp + 0x10]
push eax
call fcn.00447480
cmp word [0x5a59d8], 0
mov ebx, 0x200
je 0x4d022c
push ebx
push 0x51b4bc
lea eax, [esp + 0x14]
push eax
call fcn.00494790
lea esi, [esp + 0xc]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4d01f3
push 0x5a59d8
sub esi, ecx
push 0x5aa
sar esi, 1
call fcn.0048e4c0
push eax
mov eax, ebx
sub eax, esi
push 0x52649c
push eax
lea eax, [esp + 0x1c]
lea eax, [eax + esi*2]
push eax
call fcn.00402720
add esp, 0x14
cmp byte [0x5a59d0], 0
je 0x4d0284
push 0x200
push 0x51b4bc
lea eax, [esp + 0x14]
push eax
call fcn.00494790
lea esi, [esp + 0xc]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4d0250
push dword [esp + 0x418]
sub esi, ecx
push 0x2fd
sar esi, 1
call fcn.0048e4c0
push eax
sub ebx, esi
lea eax, [esp + 0x14]
lea eax, [eax + esi*2]
push ebx
push eax
call fcn.00402720
add esp, 0x10
push 0x80
lea eax, [esp + 0x10]
push eax
lea eax, [edi + 0x18]
push eax
call fcn.004947d0
mov ecx, dword [esp + 0x40c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f833c
add esp, 0x404
ret 8

Function at 0x4d0a80
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x1404
call fcn.004f8350
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x1400], eax
mov eax, dword [esp + 0x1408]
push esi
mov esi, dword [esp + 0x1410]
push edi
push eax
push dword [0x54b9d4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
lea eax, [esp + 8]
push 0xa00
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 8]
mov ecx, esi
mov edi, edi
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4d0af6
test ax, ax
je 0x4d0af2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4d0af6
add ecx, 4
add edx, 4
test ax, ax
jne 0x4d0ad0
xor eax, eax
jmp 0x4d0afb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4d0b07
push esi
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [esp + 0x1408]
pop edi
pop esi
xor ecx, esp
call fcn.004f833c
add esp, 0x1404
ret 8