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

Disassembly:
mov al, byte [esp + 0x14]
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, ecx
push 0
push ebx
mov dword [esi + 8], ebx
mov byte [esi + 0x2d], al
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.004a7c20
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 8]
push ecx
push ebx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea edx, [esp + 0xc]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x4a7d09
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 8]
push ebp
push edi
mov edi, dword [esp + 0x18]
push esi
mov ebp, eax
sub edi, eax
mov eax, dword [esi]
push eax
push 0
push ebx
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
sub ecx, eax
push ecx
push edi
push eax
push ebp
push 0x40000000
push 0
push str.RarHtmlClassName
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp dword [esi + 0x10], 0
pop edi
mov dword [esi + 4], eax
pop ebp
jne 0x4a7d93
test ebx, ebx
je 0x4a7db7
cmp dword [esi + 0x20], 0
jne 0x4a7db7
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4a7db7
push eax
mov ecx, esi
call fcn.004a7070
mov esi, eax
test esi, esi
je 0x4a7db7
push 5
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.004e3342
add esp, 4
pop esi
pop ebx
add esp, 0x10
ret 0x14
test eax, eax
je 0x4a7daa
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x28], 0x64
jbe 0x4a7db7
mov ecx, esi
call fcn.004a6a80
pop esi
pop ebx
add esp, 0x10
ret 0x14

Function at 0x4a7dc0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x4a7e39
push ebx
push 0x800
push 0x54d7ae
push str.Rar_CM
call fcn.004b14c0
mov ebx, eax
test ebx, ebx
je 0x4a7e38
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a7df0
sub eax, edx
sar eax, 1
push esi
mov esi, eax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a7e07
sub eax, edx
push ebx
sar eax, 1
push eax
push 2
push edi
call fcn.004e8056
push ebx
call fcn.004e4b91
add esp, 0x14
test esi, esi
pop esi
jbe 0x4a7e38
mov dword [0x54e7b0], 3
pop ebx
pop edi
ret 4
Function at 0x4a8130
Capabilities:
Get disk information
Query environment variable

Disassembly:
mov eax, 0x5408
call fcn.004e3510
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x5404], eax
push edi
push ebx
call fcn.00451a10
push 0x3a
push eax
call fcn.004e66b5
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
add esp, 8
test eax, eax
je 0x4a8193
cmp byte [0x567dc8], 0
jne 0x4a8193
push 0x31
push 0x65
call fcn.00461b20
push eax
push 0x528
call fcn.00461b20
push eax
push esi
call edi
cmp eax, 1
jne 0x4a831e
mov byte [0x567dc8], al
lea edx, [esp + 0x1008]
mov eax, ebx
sub edx, ebx
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4a81a0
lea eax, [esp + 0x1008]
push eax
call fcn.00451d00
push 0x800
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1010]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [esp + 8]
xor eax, eax
push ecx
mov word [esp + 0x100a], ax
call fcn.00451a10
cmp word [eax], 0
je 0x4a8272
lea edx, [esp + 8]
push edx
call fcn.00443cc0
test al, al
jne 0x4a8272
push 0
lea eax, [esp + 0xc]
push eax
call fcn.00483210
test al, al
jne 0x4a8272
push 0x14d
call fcn.00461b20
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x4010]
push str.__s__n_s
push edx
mov edx, 0xa00
call fcn.00458640
add esp, 0x10
push 0x34
push 0x65
call fcn.00461b20
push eax
lea eax, [esp + 0x4010]
push eax
push esi
call edi
cmp eax, 6
jne 0x4a831e
push 0
lea ecx, [esp + 0xc]
push ecx
call fcn.004440b0
lea edx, [esp + 8]
push edx
call fcn.00443cc0
test al, al
je 0x4a8200
call fcn.00446760
cmp eax, 0x501
jb 0x4a8336
push 0x800
lea eax, [esp + 0x200c]
push eax
push ebx
mov ecx, 0x544c98
call fcn.0048d930
push 0x800
lea ecx, [esp + 0x300c]
push ecx
lea edx, [esp + 0x2010]
push edx
call fcn.00452350
push 0
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x3024]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4a8336
test dword [esp + 4], 0x80000
je 0x4a8336
lea edx, [esp + 0x3008]
push edx
push 0x65e
call fcn.00461b20
push eax
lea eax, [esp + 0x4010]
push eax
mov edx, 0xa00
call fcn.00458640
add esp, 0xc
push 0x30
push 0x65
call fcn.00461b20
push eax
lea ecx, [esp + 0x4010]
push ecx
push esi
call edi
xor al, al
pop edi
mov ecx, dword [esp + 0x5404]
xor ecx, esp
call fcn.004e34f4
add esp, 0x5408
ret
mov ecx, dword [esp + 0x5408]
pop edi
xor ecx, esp
mov al, 1
call fcn.004e34f4
add esp, 0x5408
ret
Function at 0x4afe50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1a0
mov al, byte [esp + 0x1ac]
mov edx, dword [esp + 0x1a4]
push ebx
mov bl, byte [esp + 0x1ac]
movzx ecx, bl
push esi
mov byte [0x567ded], al
mov eax, dword [0x52c134]
mov dword [esp + 0x58], ecx
mov esi, 0x34
push 1
mov ecx, 0x5496f0
mov dword [0x567dd0], 0
mov dword [0x567dcc], 0
mov dword [esp + 0x4c], str.GETARC
mov dword [esp + 0x58], 0x4ae740
mov dword [esp + 0x80], str.GETARCADV
mov dword [esp + 0x8c], 0x4ada90
mov dword [esp + 0xb4], str.GETARCOPT
mov dword [esp + 0xc0], 0x4a8eb0
mov dword [esp + 0xe8], str.GETARCFILES
mov dword [esp + 0xf4], 0x4a9360
mov dword [esp + 0x11c], str.GETARCBACKUP
mov dword [esp + 0x128], 0x4a9930
mov dword [esp + 0x150], str.GETARCTIME
mov dword [esp + 0x15c], 0x4ac690
mov dword [esp + 0x184], str.GETARCCMT
mov dword [esp + 0x190], 0x4a9bd0
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x28a
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
call fcn.004a1a70
cmp byte [esp + 0x1b4], 0
mov dword [esp + 0x18], eax
je 0x4aff60
push 0x3f6
jmp 0x4aff78
movzx ecx, byte [0x54f8bc]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffd08
add ecx, 0x3de
push ecx
call fcn.00461b20
mov ecx, 0x20
mov dword [esp + 0x1c], eax
mov eax, dword [0x52c134]
lea edx, [esp + 0x3c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x148], eax
mov dword [esp + 0x17c], eax
push 7
mov dword [esp + 0x44], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0xac], ecx
mov dword [esp + 0xe0], ecx
mov dword [esp + 0x114], ecx
mov dword [esp + 0x148], ecx
mov dword [esp + 0x17c], ecx
mov eax, edx
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x52c158
mov dword [esp + 0x2c], 7
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], edx
mov dword [esp + 0x48], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0xe4], esi
mov dword [esp + 0x118], esi
mov dword [esp + 0x14c], esi
mov dword [esp + 0x180], esi
call fcn.00461920
test bl, bl
jne 0x4b0062
lea edx, [esp + 8]
push edx
call dword [sym.imp.COMCTL32.dll_PropertySheetW]
test eax, eax
jle 0x4b005e
cmp word [0x555ba2], 0
jne 0x4b0062
cmp byte [esp + 0x1b4], bl
jne 0x4b0062
xor bl, bl
jmp 0x4b0064
mov bl, 1
push 7
lea eax, [esp + 0x40]
push eax
mov ecx, 0x52c158
call fcn.00460990
pop esi
mov al, bl
mov byte [0x53a494], 0
pop ebx
add esp, 0x1a0
ret 0xc
Function at 0x4b0b30
Capabilities:
Capture screenshot

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

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

Disassembly:
mov eax, 0x1004
call fcn.004e3510
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x1000], eax
cmp word [0x556d80], 0
push esi
mov esi, dword [esp + 0x100c]
push edi
mov edi, dword [esp + 0x1014]
push edi
je 0x4b0c63
push 0x556d80
push esi
call fcn.00467570
jmp 0x4b0cf5
push 0x4fdab8
push esi
push str.TempFolder
push 0x4ff860
call fcn.00499a60
xor eax, eax
mov word [esp + 8], ax
movzx eax, word [esi]
test ax, ax
je 0x4b0cb0
push 0x800
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4b0ca8
push edi
lea edx, [esp + 0xc]
push edx
push esi
call fcn.00467570
movzx eax, word [esi]
test ax, ax
jne 0x4b0cbf
cmp byte [esp + 0x1018], 0
je 0x4b0ccb
test ax, ax
je 0x4b0cf5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4b0cf5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4b0cdd
cmp word [esi], 0
jne 0x4b0cf5
mov eax, str._rartemp
mov edx, esi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4b0ce6
push edi
push esi
call fcn.00451500
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
call fcn.004e34f4
add esp, 0x1004
ret 0xc
Function at 0x4b1590
Capabilities:
Create directory

Disassembly:
mov eax, 0x2004
call fcn.004e3510
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x2000], eax
mov eax, dword [esp + 0x2008]
push edi
mov edi, dword [esp + 0x2010]
push 0x7ff
push eax
lea eax, [esp + 0x100c]
push eax
call fcn.00467570
cmp byte [esp + 0x2018], 0
je 0x4b1635
cmp byte [0x54714c], 0
jne 0x4b15ea
cmp byte [0x54709b], 0
jne 0x4b15ea
xor edx, edx
jmp 0x4b15ef
mov edx, 1
lea eax, [esp + 0x1004]
push esi
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b1600
sub eax, esi
xor ecx, ecx
sar eax, 1
test dl, dl
setne cl
lea edx, [esp + eax*2 + 0x1008]
add ecx, 0x61
push ecx
push 0x504848
push edx
mov edx, 2
call fcn.00458640
add esp, 0xc
pop esi
push 0
push 0x800
lea eax, [esp + 0xc]
push eax
call fcn.004b0c20
push 0x800
lea ecx, [esp + 8]
push ecx
call fcn.00451500
push 0x800
lea edx, [esp + 0x1008]
push edx
lea eax, [esp + 0xc]
push eax
call fcn.004675f0
push 0x800
lea ecx, [esp + 8]
push ecx
call fcn.004443f0
test eax, eax
je 0x4b16bd
push 0
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4b16bd
mov eax, dword [esp + 0x2014]
push eax
lea ecx, [esp + 8]
push ecx
push edi
call fcn.00467570
mov al, 1
pop edi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.004e34f4
add esp, 0x2004
ret 0x10
lea edx, [esp + 4]
push edx
push 0x1f7
call fcn.00461b20
push eax
call fcn.004bf990
add esp, 8
mov ecx, 0x52c138
call fcn.0043dd70
mov ecx, dword [esp + 0x2004]
pop edi
xor ecx, esp
xor al, al
call fcn.004e34f4
add esp, 0x2004
ret 0x10
Function at 0x4b1d80
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 8
push ebx
lea eax, [esp + 4]
push eax
push 0x506cd8
push 1
push 0
push 0x506dc8
xor bl, bl
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4b1e82
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x506d18
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x4b1e76
push esi
mov esi, dword [esp + 0x1c]
cmp byte [esp + 0x14], bl
je 0x4b1dde
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push 2
push esi
push eax
call edx
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4b1e04
mov ecx, dword [esp + 8]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x1c]
push ecx
call eax
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 8]
push 0
test ecx, ecx
jne 0x4b1e21
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0x4fdab8
push eax
call edx
jmp 0x4b1e2a
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x44]
call eax
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4b1e3f
mov eax, dword [esp + 8]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x2c]
call eax
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4b1e54
mov eax, dword [esp + 8]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x24]
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push esi
push eax
call edx
pop esi
test eax, eax
jl 0x4b1e6a
mov bl, 1
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, bl
pop ebx
add esp, 8
ret 0x1c

Function at 0x4b1eb0
Capabilities:
Set current directory

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x4b1ee4
push esi
push 0x627
call fcn.00461b20
push eax
call fcn.004bf990
add esp, 8
mov ecx, 0x52c138
call fcn.0043dd70
pop esi
mov al, bl
pop ebx
ret 4

Function at 0x4b2a30
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x1404
call fcn.004e3510
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x1400], eax
mov eax, dword [esp + 0x1408]
mov ecx, dword [0x538304]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xa00
lea edx, [esp + 8]
mov edi, eax
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 4]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4b2a9d
test dx, dx
je 0x4b2a99
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4b2a9d
add eax, 4
add ecx, 4
test dx, dx
jne 0x4b2a77
xor eax, eax
jmp 0x4b2aa2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4b2aae
push esi
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [esp + 0x1404]
pop edi
xor ecx, esp
call fcn.004e34f4
add esp, 0x1404
ret 4
Function at 0x4b2da0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x404
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
push 0x200
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [edi], 0x3b8
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x40
lea edx, [esp + 0xc]
push edx
call fcn.00494a40
cmp word [0x5690a0], 0
je 0x4b2e50
lea eax, [esp + 8]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4b2df0
mov ecx, dword [0x4fefd0]
mov dx, word [0x4fefd4]
mov dword [eax], ecx
mov word [eax + 4], dx
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b2e16
sub eax, edx
push 0x5690a0
sar eax, 1
push 0x5aa
mov esi, eax
call fcn.00461b20
push eax
lea eax, [esp + esi*2 + 0x10]
push str._s:__s
mov edx, 0x200
sub edx, esi
push eax
call fcn.00458640
add esp, 0x10
cmp byte [0x569074], 0
je 0x4b2ebe
lea eax, [esp + 8]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4b2e60
mov ecx, dword [0x4fefd0]
mov dx, word [0x4fefd4]
mov dword [eax], ecx
mov word [eax + 4], dx
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b2e86
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, dword [esp + 0x410]
push eax
push 0x2fd
call fcn.00461b20
push eax
lea ecx, [esp + esi*2 + 0x10]
mov edx, 0x200
sub edx, esi
push ecx
call fcn.00458640
add esp, 0xc
push 0x80
lea edx, [esp + 0xc]
push edx
add edi, 0x18
push edi
call fcn.00467570
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
call fcn.004e34f4
add esp, 0x404
ret 4
Function at 0x4b2ef0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4fb9ae
mov eax, dword fs:[0]
push eax
sub esp, 0x404
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
mov eax, dword [0x514bc0]
xor eax, esp
push eax
lea eax, [esp + 0x40c]
mov dword fs:[0], eax
mov eax, dword [0x538304]
test eax, eax
je 0x4b302b
push 0x200
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [0x56910c]
cmp esi, 8
je 0x4b2fa7
mov ecx, 0x569650
lea eax, [esp + 8]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4b2f86
test dx, dx
je 0x4b2f82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4b2f86
add eax, 4
add ecx, 4
test dx, dx
jne 0x4b2f60
xor eax, eax
jmp 0x4b2f8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4b2fa7
mov edx, dword [0x538304]
push 0x569650
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [0x56910c]
test esi, esi
je 0x4b2fba
cmp esi, 1
je 0x4b2fba
cmp esi, 2
je 0x4b2fba
cmp esi, 8
jne 0x4b2fdf
push 0x9c
mov esi, 0x569550
call fcn.004b2a30
push 0x56a750
call fcn.00451a10
push 0x9b
mov esi, eax
call fcn.004b2a30
test byte [0x56b758], 1
jne 0x4b300f
or dword [0x56b758], 1
mov dword [esp + 0x414], 0
mov dword [0x56b754], 0
mov dword [esp + 0x414], 0xffffffff
push 0x64
mov ecx, 0x56b754
call fcn.00494790
test al, al
je 0x4b302b
mov eax, dword [0x538304]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x40c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004e34f4
add esp, 0x410
ret
Function at 0x4b61c0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1004
call fcn.004e3510
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x1000], eax
cmp byte [esp + 0x1020], 0
push ebx
push ebp
mov ebp, dword [esp + 0x101c]
push esi
mov esi, dword [esp + 0x1014]
push edi
mov edi, dword [esp + 0x1020]
je 0x4b625f
push 0x800
push edi
push esi
push str.DefFolder
push str.Extraction
call fcn.00499a60
cmp word [esi], 0
jne 0x4b6231
mov edx, esi
mov eax, edi
sub edx, edi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4b6220
jmp 0x4b625f
push 0x800
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, dword [esp + 0x101c]
push edx
lea eax, [esp + 0x14]
push eax
xor ecx, ecx
push esi
mov word [esp + 0x101a], cx
call fcn.00467570
movzx eax, word [esi]
test ax, ax
setne bl
test ax, ax
jne 0x4b6280
mov ecx, dword [esp + 0x101c]
push ecx
push esi
mov ecx, 0x544c98
call fcn.0048d900
mov edx, dword [esp + 0x101c]
push edx
push esi
call fcn.00451500
cmp byte [esp + 0x1028], 0
jne 0x4b62a0
test bl, bl
je 0x4b63a2
push 1
push str.AppendName
push str.Extraction
call fcn.00499a90
test eax, eax
je 0x4b63a2
push 0x800
push ebp
lea eax, [esp + 0x18]
push eax
call fcn.00467570
xor ebx, ebx
cmp word [esp + 0x10], bx
je 0x4b6309
xor eax, eax
lea edi, [esp + 0x10]
cmp word [edi], 0x25
jne 0x4b62f9
lea ecx, [esp + eax + 0x12]
push 0x25
push ecx
call fcn.004e66b5
add esp, 8
test eax, eax
je 0x4b62f9
mov edx, 0x5f
mov word [edi], dx
inc ebx
lea eax, [ebx + ebx]
cmp word [esp + eax + 0x10], 0
lea edi, [esp + eax + 0x10]
jne 0x4b62d8
mov eax, dword [esp + 0x101c]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00451a10
push eax
push esi
call fcn.004675f0
push esi
call fcn.00451c10
mov edi, eax
test edi, edi
je 0x4b63a2
cmp edi, esi
jbe 0x4b63a2
xor edx, edx
push esi
mov word [edi], dx
call fcn.00451c10
mov ebx, eax
test ebx, ebx
je 0x4b6388
cmp ebx, esi
jbe 0x4b6388
cmp byte [esp + 0x102c], 0
je 0x4b6374
cmp word [edi + 2], 0
je 0x4b6374
movzx eax, word [edi + 4]
push eax
call fcn.00467210
test al, al
jne 0x4b6374
movzx ecx, word [edi - 2]
push ecx
call fcn.00467210
test al, al
jne 0x4b6383
push str..tar
push ebx
call fcn.0046a940
test eax, eax
jne 0x4b6388
xor edx, edx
mov word [ebx], dx
sub edi, 2
cmp edi, esi
jbe 0x4b63a2
nop
cmp word [edi], 0x2e
jne 0x4b63a2
xor eax, eax
mov word [edi], ax
sub edi, 2
cmp edi, esi
ja 0x4b6390
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b63a7
sub eax, edx
sar eax, 1
add eax, 0xffffffff
js 0x4b63d3
jmp 0x4b63c0
cmp word [esi + eax*2], 0x20
jne 0x4b63d3
xor ecx, ecx
sub eax, 1
mov word [esi + eax*2 + 2], cx
jns 0x4b63c0
push 0
push esi
call fcn.00451750
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e34f4
add esp, 0x1004
ret 0x1c
Function at 0x4b6400
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1008
call fcn.004e3510
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x1004], eax
mov eax, dword [esp + 0x100c]
push 0x800
lea ecx, [esp + 4]
push ecx
push eax
mov ecx, 0x544c98
call fcn.0048d930
push 0x802
lea edx, [esp + 4]
push edx
call fcn.00451500
push 0x802
push 0x4fe4d8
lea eax, [esp + 8]
push eax
call fcn.004675f0
push 1
push 0x4fdab8
push 0
lea ecx, [esp + 0xc]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x1004]
xor ecx, esp
call fcn.004e34f4
add esp, 0x1008
ret 4

Function at 0x4b7da0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push ebx
mov byte [edi], 0
call fcn.00451a10
push 3
mov esi, eax
push 0x504cd0
push esi
call fcn.0046a970
test eax, eax
je 0x4b7dce
push 3
push 0x504cc8
push esi
call fcn.0046a970
test eax, eax
jne 0x4b7dee
movzx eax, word [esi + 6]
push eax
call fcn.004e8722
add esp, 4
test eax, eax
je 0x4b7dee
movzx eax, word [esi + 8]
cmp ax, 0x2e
je 0x4b7e62
test ax, ax
je 0x4b7e62
push 3
push 0x504cc0
push esi
call fcn.0046a970
test eax, eax
je 0x4b7e32
push 3
push 0x504cb8
push esi
call fcn.0046a970
test eax, eax
je 0x4b7e32
push 3
push 0x504cb0
push esi
call fcn.0046a970
test eax, eax
je 0x4b7e32
push 3
push 0x4fec78
push esi
call fcn.0046a970
test eax, eax
jne 0x4b7e41
movzx eax, word [esi + 6]
cmp ax, 0x2e
je 0x4b7e62
test ax, ax
je 0x4b7e62
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4b7e5e
push ebx
call fcn.00443cc0
test al, al
je 0x4b7e5e
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
mov al, 1
mov byte [edi], al
pop esi
ret