joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cb450
Capabilities:
Get disk information
Query environment variable

Disassembly:
mov eax, 0x4408
call fcn.00502fa0
mov eax, dword [0x5513d4]
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 0x4cb65d
cmp eax, 0x800
jae 0x4cb65d
push 0x800
lea eax, [esp + 0x100c]
mov ecx, 0x57de98
push eax
push eax
call fcn.00447a80
lea eax, [esp + 0x1008]
push eax
call fcn.00485280
push 0x3a
push eax
call fcn.005042eb
add esp, 8
test eax, eax
je 0x4cb504
cmp byte [0x5ae226], 0
jne 0x4cb504
push 0x31
push 0x65
call fcn.00496b20
push eax
push 0x528
call fcn.00496b20
push eax
push esi
call fcn.004d6c50
cmp eax, 1
jne 0x4cb643
mov byte [0x5ae226], al
push 0x800
lea eax, [esp + 0x100c]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.0049ce90
lea eax, [esp + 8]
push eax
call fcn.004852e0
lea eax, [esp + 8]
push eax
call fcn.00485280
cmp word [eax], 0
je 0x4cb5bc
lea eax, [esp + 8]
push eax
call fcn.00474160
test al, al
jne 0x4cb5bc
push 0
lea eax, [esp + 0xc]
push eax
call fcn.004123b0
test al, al
jne 0x4cb5bc
push 0x14d
call fcn.00496b20
push eax
lea eax, [esp + 0xc]
push eax
push str.__s__n_s
lea eax, [esp + 0x3014]
push 0xa00
push eax
call fcn.004027c0
add esp, 0x14
push 0x34
push 0x65
call fcn.00496b20
push eax
lea eax, [esp + 0x3010]
push eax
push esi
call fcn.004d6c50
cmp eax, 6
jne 0x4cb643
push 0
lea eax, [esp + 0xc]
push eax
call fcn.00473bc0
lea eax, [esp + 8]
push eax
call fcn.00474160
test al, al
je 0x4cb547
push 0x800
lea eax, [esp + 0x200c]
push eax
lea eax, [esp + 0x1010]
push eax
call fcn.004846e0
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 0x4cb65d
test dword [esp + 4], 0x80000
je 0x4cb65d
lea eax, [esp + 0x2008]
push eax
push 0x65e
call fcn.00496b20
push eax
lea eax, [esp + 0x3010]
push 0xa00
push eax
call fcn.004027c0
add esp, 0x10
push 0x30
push 0x65
call fcn.00496b20
push eax
lea eax, [esp + 0x3010]
push eax
push esi
call fcn.004d6c50
xor al, al
pop esi
mov ecx, dword [esp + 0x4404]
xor ecx, esp
call fcn.00502f8e
add esp, 0x4408
ret 8
mov ecx, dword [esp + 0x4408]
mov al, 1
pop esi
xor ecx, esp
call fcn.00502f8e
add esp, 0x4408
ret 8
Function at 0x4cdce0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1a4
mov eax, dword [0x5513d4]
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 [0x58c1f8]
mov dword [esp + 0xc], ecx
mov ecx, 0x57fff8
push 1
mov dword [0x5ae214], 0
mov dword [0x5ae218], 0
mov byte [0x5ae20d], bl
mov dword [esp + 0x48], str.GETARC
mov dword [esp + 0x54], 0x4cdf80
mov dword [esp + 0x7c], str.GETARCADV
mov dword [esp + 0x88], 0x4cccd0
mov dword [esp + 0xb0], str.GETARCOPT
mov dword [esp + 0xbc], 0x4cf770
mov dword [esp + 0xe4], str.GETARCFILES
mov dword [esp + 0xf0], 0x4cf130
mov dword [esp + 0x118], str.GETARCBACKUP
mov dword [esp + 0x124], 0x4cd530
mov dword [esp + 0x14c], str.GETARCTIME
mov dword [esp + 0x158], 0x4cfad0
mov dword [esp + 0x180], str.GETARCCMT
mov dword [esp + 0x18c], 0x4cd7f0
mov dword [esp + 8], 0x34
mov dword [esp + 0xc], 0x28a
mov dword [esp + 0x14], eax
call fcn.004b7fc0
mov dword [esp + 0x14], eax
test bl, bl
je 0x4cddf4
push 0x3f1
jmp 0x4cde0a
movzx eax, byte [0x5696d0]
neg eax
sbb eax, eax
and eax, 0xfffffd08
add eax, 0x3de
push eax
call fcn.00496b20
mov dword [esp + 0x18], eax
mov ecx, 0x58c288
lea eax, [esp + 0x38]
mov dword [esp + 0x1c], 7
mov dword [esp + 0x24], eax
mov eax, dword [0x58c1f8]
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.00496000
test bh, bh
jne 0x4cdf2c
lea eax, [esp + 4]
push eax
call dword [sym.imp.COMCTL32.dll_PropertySheetW]
test eax, eax
jle 0x4cdf28
cmp word [0x56fafa], 0
jne 0x4cdf2c
cmp byte [0x56eac5], bh
jne 0x4cdf2c
test bl, bl
jne 0x4cdf2c
xor bl, bl
jmp 0x4cdf2e
mov bl, 1
push 7
lea eax, [esp + 0x3c]
mov ecx, 0x58c288
push eax
call fcn.00495fb0
mov ecx, dword [esp + 0x1a4]
mov al, bl
pop ebx
xor ecx, esp
mov byte [0x57da94], 0
call fcn.00502f8e
add esp, 0x1a4
ret 0xc
Function at 0x4d4a60
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x4d4ad6
push ebx
push 0x800
push 0x5675be
push str.Rar_CM
call fcn.004d5850
mov ebx, eax
test ebx, ebx
je 0x4d4ad5
push esi
mov esi, edi
lea ecx, [esi + 2]
lea ebx, [ebx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4d4a90
sub esi, ecx
mov ecx, edi
sar esi, 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d4aa4
sub ecx, edx
push ebx
sar ecx, 1
push ecx
push 2
push edi
call fcn.0050a0c5
push ebx
call fcn.00509ce0
add esp, 0x14
test esi, esi
pop esi
je 0x4d4ad5
mov dword [0x5685c0], 3
pop ebx
pop edi
ret 4

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

Disassembly:
mov eax, 0x1004
call fcn.00502fa0
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x1000], eax
cmp word [0x55a090], 0
push esi
mov esi, dword [esp + 0x100c]
push edi
mov edi, dword [esp + 0x1014]
push edi
je 0x4d555d
push 0x55a090
jmp 0x4d55e4
push 0x52452c
push esi
push str.TempFolder
push 0x5247ac
call fcn.004ae6d0
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 0x4d55b1
test eax, eax
je 0x4d55a9
cmp eax, 0x800
jae 0x4d55a9
push edi
lea eax, [esp + 0xc]
push eax
push esi
call fcn.0049ce90
movzx ecx, word [esi]
test cx, cx
jne 0x4d55c0
cmp byte [esp + 0x1018], 0
je 0x4d55cc
test cx, cx
je 0x4d55ea
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4d55ea
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4d55de
cmp word [esi], 0
jne 0x4d55ea
push edi
push str._rartemp
push esi
call fcn.0049ce90
push edi
push esi
call fcn.004836c0
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
call fcn.00502f8e
add esp, 0x1004
ret 0xc
Function at 0x4d5920
Capabilities:
Create directory

Disassembly:
mov eax, 0x2004
call fcn.00502fa0
mov eax, dword [0x5513d4]
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.0049ce90
cmp byte [esp + 0x2018], 0
je 0x4d59c5
cmp byte [0x57b544], 0
jne 0x4d597a
cmp byte [0x57b493], 0
jne 0x4d597a
xor edx, edx
jmp 0x4d597f
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 0x4d5990
xor eax, eax
sub ecx, edi
sar ecx, 1
test dl, dl
setne al
add eax, 0x61
push eax
push 0x536240
lea eax, [esp + 0x1010]
lea eax, [eax + ecx*2]
push 2
push eax
call fcn.004027c0
add esp, 0x10
pop edi
push 0
push 0x800
lea eax, [esp + 0xc]
push eax
call fcn.004d5520
push 0x800
lea eax, [esp + 8]
push eax
call fcn.004836c0
push 0x800
lea eax, [esp + 0x1008]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.0049ce50
push 0x800
lea eax, [esp + 8]
push eax
call fcn.004747e0
test eax, eax
je 0x4d5a4c
push 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4d5a4c
push dword [esp + 0x2014]
lea eax, [esp + 8]
push eax
push esi
call fcn.0049ce90
mov al, 1
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.00502f8e
add esp, 0x2004
ret 0x10
lea eax, [esp + 4]
push eax
push 0x1f7
call fcn.00496b20
push eax
call fcn.004db310
add esp, 8
mov ecx, 0x58c304
call fcn.0046df00
mov ecx, dword [esp + 0x2004]
xor al, al
pop esi
xor ecx, esp
call fcn.00502f8e
add esp, 0x2004
ret 0x10
Function at 0x4d5a90
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 ebp, eax
push ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
push ebp
mov dword [esp + 0x14], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, dword [esp + 0x3c]
mov edi, eax
lea eax, [esp + 0x20]
mov dword [esp + 0x14], edi
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]
push esi
push ebx
mov ebp, eax
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
push edi
mov ebx, eax
call dword [sym.imp.GDI32.dll_SelectObject]
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 + 0x24]
push esi
mov esi, dword [esp + 0x30]
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]
push dword [esp + 0x38]
push 0
push 0
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_BitBlt]
push ebx
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
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 0x4d63f0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0xc
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 8], eax
push ebx
lea eax, [esp + 4]
xor bl, bl
push eax
push 0x5381e4
push 1
push 0
push 0x5382e4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4d6546
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push esi
push ecx
push 0x538234
mov esi, dword [eax]
push eax
mov esi, dword [esi]
mov ecx, esi
call dword [0x523720]
call esi
test eax, eax
js 0x4d6531
cmp byte [esp + 0x18], bl
je 0x4d6468
mov eax, dword [esp + 0xc]
push 2
push dword [esp + 0x24]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x523720]
call esi
mov eax, dword [esp + 8]
push dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x523720]
call esi
mov edx, dword [esp + 0x28]
test edx, edx
je 0x4d649d
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x523720]
call esi
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push 0
mov ecx, dword [eax]
mov esi, dword [ecx + 0x44]
mov ecx, esi
test edx, edx
jne 0x4d64b9
push 0x52452c
jmp 0x4d64ba
push edx
push eax
call dword [0x523720]
call esi
mov edx, dword [esp + 0x30]
test edx, edx
je 0x4d64e0
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x2c]
mov ecx, esi
call dword [0x523720]
call esi
mov edx, dword [esp + 0x24]
test edx, edx
je 0x4d64fd
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x523720]
call esi
mov eax, dword [esp + 0xc]
push 1
push dword [esp + 0x24]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x523720]
call esi
test eax, eax
js 0x4d651d
mov bl, 1
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x523720]
call esi
mov ecx, dword [esp + 8]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x523720]
call esi
pop esi
mov ecx, dword [esp + 0xc]
mov al, bl
pop ebx
xor ecx, esp
call fcn.00502f8e
add esp, 0xc
ret 0x1c

Function at 0x4d68b0
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 0x4d6a10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push 0x533d00
push dword [esp + 0x1c]
push dword [0x58c1f8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4d6a4c
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00502f8e
add esp, 0x10
ret 4
push ebx
push esi
push dword [0x58c1f8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4d6a7e
push esi
push dword [0x58c1f8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4d6a7e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4d6a93
pop ebx
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00502f8e
add esp, 0x10
ret 4
push edi
push ebx
push 2
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4d6b4e
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4d6b47
push ebx
push esi
push eax
call fcn.00504fb0
add esp, 0xc
mov dword [esp + 0xc], 0
lea eax, [esp + 0xc]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4d6b40
push eax
push dword [esp + 0x10]
call fcn.004d6800
mov ecx, dword [esp + 0xc]
mov ebx, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x523720]
call esi
test ebx, ebx
je 0x4d6b40
mov eax, dword [ebx + 8]
mov dword [ebx + 8], 0
test eax, eax
jne 0x4d6b2e
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0xffffff
push eax
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
call fcn.004d68d0
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x523720]
mov ecx, ebx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
pop edi
pop ebx
pop esi
xor ecx, esp
call fcn.00502f8e
add esp, 0x10
ret 4

Function at 0x4d70e0
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 0x4d7115
push dword [esp + 8]
push 0x627
call fcn.00496b20
push eax
call fcn.004db310
add esp, 8
mov ecx, 0x58c304
call fcn.0046df00
mov al, bl
pop ebx
ret 4
Function at 0x4d9e00
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x404
mov eax, dword [0x5513d4]
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.0044e1c0
cmp word [0x5b28c0], 0
mov ebx, 0x200
je 0x4d9e9c
push ebx
push 0x528238
lea eax, [esp + 0x14]
push eax
call fcn.0049ce50
lea esi, [esp + 0xc]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4d9e63
push 0x5b28c0
sub esi, ecx
push 0x5aa
sar esi, 1
call fcn.00496b20
push eax
mov eax, ebx
sub eax, esi
push 0x53335c
push eax
lea eax, [esp + 0x1c]
lea eax, [eax + esi*2]
push eax
call fcn.004027c0
add esp, 0x14
cmp byte [0x5b2871], 0
je 0x4d9ef4
push 0x200
push 0x528238
lea eax, [esp + 0x14]
push eax
call fcn.0049ce50
lea esi, [esp + 0xc]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4d9ec0
push dword [esp + 0x418]
sub esi, ecx
push 0x2fd
sar esi, 1
call fcn.00496b20
push eax
sub ebx, esi
lea eax, [esp + 0x14]
lea eax, [eax + esi*2]
push ebx
push eax
call fcn.004027c0
add esp, 0x10
push 0x80
lea eax, [esp + 0x10]
push eax
lea eax, [edi + 0x18]
push eax
call fcn.0049ce90
mov ecx, dword [esp + 0x40c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00502f8e
add esp, 0x404
ret 8

Function at 0x4da690
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x1404
call fcn.00502fa0
mov eax, dword [0x5513d4]
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 [0x558ab4]
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 0x4da706
test ax, ax
je 0x4da702
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4da706
add ecx, 4
add edx, 4
test ax, ax
jne 0x4da6e0
xor eax, eax
jmp 0x4da70b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4da717
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.00502f8e
add esp, 0x1404
ret 8
Function at 0x4da730
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52113c
mov eax, dword fs:[0]
push eax
sub esp, 0x7bc
mov eax, dword [0x5513d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x558ab4], 0
je 0x4da95a
mov eax, dword fs:[0x2c]
mov ecx, dword [0x5ee5e0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5b3e34]
cmp eax, dword [ecx + 4]
jle 0x4da7c0
push 0x5b3e34
call fcn.005039c4
add esp, 4
cmp dword [0x5b3e34], 0xffffffff
jne 0x4da7c0
mov dword [ebp - 4], 0
mov dword [0x5b3e30], 0
mov dword [ebp - 4], 0xffffffff
push 0x5b3e34
call fcn.00503985
add esp, 4
push 0x64
mov ecx, 0x5b3e30
call fcn.0044db50
test al, al
jne 0x4da7dc
mov byte [0x5b2870], 1
jmp 0x4da95a
push 0x200
lea eax, [ebp - 0x410]
mov byte [0x5b2870], 0
push eax
push dword [0x558ab4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [0x5af26c]
cmp eax, 0xa
je 0x4da8e0
cmp eax, 9
je 0x4da8e0
mov edx, 0x5b1270
lea ecx, [ebp - 0x410]
lea ecx, [ecx]
mov si, word [ecx]
cmp si, word [edx]
jne 0x4da846
test si, si
je 0x4da842
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4da846
add ecx, 4
add edx, 4
test si, si
jne 0x4da820
xor ecx, ecx
jmp 0x4da84b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x4da8e0
push 0x5b1270
push dword [0x558ab4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [0x5af26c]
cmp eax, 3
jne 0x4da8f9
cmp dword [0x5af268], 0
je 0x4da8e5
push 0x3b8
lea eax, [ebp - 0x7c8]
push 0
push eax
call fcn.00505530
mov eax, dword [0x558ab4]
add esp, 0xc
mov dword [ebp - 0x7c4], eax
lea eax, [ebp - 0x7c8]
mov dword [ebp - 0x7c8], 0x3b8
mov dword [ebp - 0x7c0], 0x7b
push dword [0x5b2924]
mov dword [ebp - 0x7bc], 4
push eax
call fcn.004d9e00
lea eax, [ebp - 0x7c8]
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov eax, dword [0x5af26c]
cmp eax, 3
jne 0x4da8f9
push 0x5b2370
push 0x9d
call fcn.004da690
mov eax, dword [0x5af26c]
test eax, eax
je 0x4da90c
cmp eax, 1
je 0x4da90c
cmp eax, 2
je 0x4da90c
cmp eax, 0xa
jne 0x4da94e
push 0x5b2370
push 0x9d
call fcn.004da690
push 0x5af270
call fcn.00485280
push eax
push 0x9c
push dword [0x558ab4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0x9c
push dword [0x558ab4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.0044dfc0
push dword [0x558ab4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00502f8e
mov esp, ebp
pop ebp
ret
Function at 0x4deb20
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2008
call fcn.00502fa0
mov eax, dword [0x5513d4]
xor eax, esp
mov dword [esp + 0x2004], eax
cmp byte [esp + 0x2024], 0
push ebx
mov ebx, dword [esp + 0x201c]
push ebp
mov ebp, dword [esp + 0x2018]
push esi
mov esi, dword [esp + 0x2020]
push edi
mov edi, dword [esp + 0x201c]
je 0x4debbd
push 0x800
push esi
push edi
push str.DefFolder
push str.Extraction
call fcn.004ae6d0
cmp word [edi], 0
jne 0x4deb88
push ebp
push esi
push edi
call fcn.0049ce90
jmp 0x4debbd
push 0x800
lea eax, [esp + 0x1018]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4debb8
cmp eax, 0x800
jae 0x4debb8
push ebp
lea eax, [esp + 0x1018]
push eax
push edi
call fcn.0049ce90
jmp 0x4debbd
xor eax, eax
mov word [edi], ax
movzx eax, word [edi]
mov ecx, eax
mov dword [esp + 0x10], ecx
test ax, ax
jne 0x4debd7
push ebp
push edi
mov ecx, 0x57de98
call fcn.00446fa0
push ebp
push edi
call fcn.004836c0
push 0x800
push ebx
lea eax, [esp + 0x1c]
push eax
call fcn.0049ce90
xor ebx, ebx
cmp word [esp + 0x14], bx
je 0x4dec33
xor eax, eax
lea esi, [esp + 0x14]
lea ecx, [ecx]
cmp word [esi], 0x25
jne 0x4dec23
lea ecx, [esp + 0x16]
add eax, ecx
push 0x25
push eax
call fcn.005042eb
add esp, 8
test eax, eax
je 0x4dec23
mov ecx, 0x5f
mov word [esi], cx
inc ebx
lea esi, [esp + 0x14]
lea eax, [ebx + ebx]
add esi, eax
cmp word [esi], 0
jne 0x4dec00
lea eax, [esp + 0x14]
push eax
call fcn.00484630
mov esi, eax
test esi, esi
je 0x4decce
lea eax, [esp + 0x14]
cmp esi, eax
jbe 0x4decce
xor eax, eax
mov word [esi], ax
lea eax, [esp + 0x14]
push eax
call fcn.00484630
mov ebx, eax
test ebx, ebx
je 0x4decad
lea eax, [esp + 0x14]
cmp ebx, eax
jbe 0x4decad
cmp byte [esp + 0x2030], 0
je 0x4dec99
cmp word [esi + 2], 0
je 0x4dec99
movzx eax, word [esi + 4]
push eax
call fcn.0049ca50
test al, al
jne 0x4dec99
movzx eax, word [esi - 2]
push eax
call fcn.0049ca50
test al, al
jne 0x4deca8
push str..tar
push ebx
call fcn.004a05e0
test eax, eax
jne 0x4decad
xor eax, eax
mov word [ebx], ax
sub esi, 2
lea eax, [esp + 0x14]
cmp esi, eax
jbe 0x4decce
cmp word [esi], 0x2e
jne 0x4decce
xor eax, eax
mov word [esi], ax
sub esi, 2
lea eax, [esp + 0x14]
cmp esi, eax
ja 0x4decb8
push 0x800
lea eax, [esp + 0x18]
push eax
call fcn.00485280
push eax
push 0x5b86a0
call fcn.0049ce90
push 0x5b86a0
call fcn.004d5e20
push 0
push 0x5b86a0
call fcn.00484fd0
cmp byte [esp + 0x202c], 0
jne 0x4ded10
cmp word [esp + 0x10], 0
je 0x4ded37
push 1
push str.AppendName
push str.Extraction
call fcn.004ae540
test eax, eax
je 0x4ded37
push ebp
lea eax, [esp + 0x18]
push eax
call fcn.00485280
push eax
push edi
call fcn.0049ce50
push edi
call fcn.004d5e20
push 0
push edi
call fcn.00484fd0
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00502f8e
add esp, 0x2008
ret 0x1c