joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ff40
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x70
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x46ff5b
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 4], 0
push 1
push str.ViewSmall
push str.GeneralToolbar
call fcn.0045ba60
test eax, eax
je 0x470113
mov eax, dword [0x4d76ac]
mov ecx, dword [0x4eacd4]
push ebx
push ebp
push edi
push 0
push eax
push 0xd
push ecx
push 0
push 0
push 0
push 0
push 0x56000944
push 0
push str.ToolbarWindow32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x14
push 0x41e
push eax
mov dword [esi + 4], eax
call ebp
call fcn.00485510
mov ebx, 0x10
mov byte [esp + 0x13], al
mov dword [esp + 0x14], ebx
test al, al
je 0x46ffe2
push ebx
call fcn.00485470
push 0x10
mov ebx, eax
call fcn.00485470
mov dword [esp + 0x14], eax
movzx edi, word [esp + 0x14]
mov eax, dword [esi + 4]
movzx edx, bx
shl edi, 0x10
or edi, edx
push edi
push 0
push 0x41f
push eax
call ebp
mov ecx, dword [esi + 4]
push edi
push 0
push 0x420
push ecx
call ebp
push 0
push 0xf
push str.FolderUp.bmp
mov ecx, 0x4f23e0
call fcn.0046d240
mov edi, eax
test edi, edi
jne 0x470027
mov edi, dword [esi + 0x18]
cmp byte [esp + 0x13], 0
je 0x470047
mov edx, dword [esp + 0x14]
push edx
push ebx
push edi
call fcn.00484ba0
mov edi, eax
push edi
mov ecx, 0x4f23e0
call fcn.0046d020
mov ecx, dword [esi + 4]
lea eax, [esp + 0x18]
push eax
push 1
push 0x413
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], edi
call ebp
mov edx, dword [esi + 4]
push 0x4cba50
push 1
push 0x444
push edx
call ebp
lea eax, [esp + 0x30]
push eax
push 2
mov ecx, esi
call fcn.0046f210
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], 0x38
mov dword [esp + 0x34], 0x173
test eax, eax
jne 0x4700a2
mov eax, 1
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
or eax, 4
push 0x12
mov dword [esp + 0x3c], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x68], 2
mov dword [esp + 0x58], 0
call edi
push 0xf
mov dword [esp + 0x40], eax
call edi
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x40], eax
jne 0x4700e5
mov dword [esp + 0x5c], 0x28
mov eax, dword [0x4f0498]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x30]
push edx
push 0xffffffffffffffff
push 0x40a
push eax
mov dword [esp + 0x68], ecx
call ebp
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x70
ret

Function at 0x472980
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x4e9920]
mov eax, dword [esp + 4]
mov edx, ecx
shr ecx, 8
xor edx, eax
and edx, 0xff
xor ecx, dword [edx*4 + 0x4d3b58]
mov edx, dword [0x4e9928]
mov dword [0x4e9920], ecx
movzx ecx, cl
add ecx, dword [0x4e9924]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [0x4e9924], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
shr edx, 8
xor edx, dword [ecx*4 + 0x4d3b58]
mov dword [0x4e9928], edx
ret 4
Function at 0x4729e0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov eax, 0x12345678
mov edx, 0x23456789
mov esi, 0x34567890
mov dword [0x4e9920], eax
mov dword [0x4e9924], edx
mov dword [0x4e9928], esi
mov cl, byte [edi]
test cl, cl
je 0x472a60
lea esp, [esp]
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4d3b58]
inc edi
movzx ecx, al
add ecx, edx
imul ecx, ecx, 0x8088405
inc ecx
mov edx, ecx
shr ecx, 0x18
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x4d3b58]
mov dword [0x4e9920], eax
mov dword [0x4e9924], edx
mov dword [0x4e9928], esi
mov cl, byte [edi]
test cl, cl
jne 0x472a10
pop edi
pop esi
ret 4
Function at 0x475df0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x408
push ebx
push ebp
push esi
mov esi, dword [esp + 0x418]
push edi
mov ebx, ecx
movzx edi, word [ebx]
sub edi, dword [esi + 0x654]
mov dword [esp + 0x14], ebx
push edi
push esi
call fcn.00475be0
mov dl, byte [esi + 0xa6c]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
sub eax, 6
lea ebp, [esp + 0x18]
xor ecx, ecx
lea ecx, [ecx]
movzx ebx, byte [eax + 6]
add eax, 6
cmp byte [ebx + esi + 0x66c], dl
je 0x475e30
movzx ebx, byte [eax + 1]
mov dword [ebp], eax
add ecx, ebx
add ebp, 4
sub edi, 1
jne 0x475e30
add dword [esi + 0x4a84], ecx
mov eax, dword [esi + 0x4a78]
xor edx, edx
div dword [esi + 0x4a84]
xor edx, edx
mov edi, eax
mov eax, dword [esi + 0x4a74]
sub eax, dword [esi + 0x4a70]
mov dword [esi + 0x4a78], edi
div edi
mov ebx, dword [esi + 0x4a84]
cmp eax, ebx
jl 0x475e96
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x408
ret 4
cmp eax, ecx
mov edx, dword [esp + 0x18]
lea edi, [esp + 0x18]
jge 0x475f13
movzx ecx, byte [edx + 1]
cmp ecx, eax
jg 0x475ec0
lea ebx, [ebx]
mov edx, dword [edi + 4]
movzx ebx, byte [edx + 1]
add edi, 4
add ecx, ebx
cmp ecx, eax
jle 0x475eb0
mov edi, dword [esp + 0x10]
mov dword [esi + 0x4a80], ecx
movzx eax, byte [edx + 1]
sub ecx, eax
mov dword [esi + 0x4a7c], ecx
mov cl, byte [edi + 2]
cmp cl, 7
jae 0x475ef9
add byte [edi + 3], 0xff
jne 0x475ef9
mov ax, word [edi]
add ax, ax
mov word [edi], ax
mov al, 3
shl al, cl
inc cl
mov byte [edi + 2], cl
mov byte [edi + 3], al
mov ecx, dword [esp + 0x14]
push edx
push esi
call fcn.00475ba0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x408
ret 4
mov edi, dword [esp + 0x14]
mov dword [esi + 0x4a7c], ecx
mov dword [esi + 0x4a80], ebx
movzx ecx, word [edi]
sub ecx, dword [esi + 0x654]
lea eax, [esp + 0x18]
sub eax, 4
mov edx, dword [eax + 4]
movzx edx, byte [edx]
mov bl, byte [esi + 0xa6c]
add eax, 4
sub ecx, 1
mov byte [edx + esi + 0x66c], bl
jne 0x475f33
mov cx, word [esi + 0x4a84]
mov eax, dword [esp + 0x10]
add word [eax], cx
movzx edx, word [edi]
pop edi
mov dword [esi + 0x654], edx
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x408
ret 4
Function at 0x47cc00
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x47cc72
push ebx
push 0x4f4ce0
push str.Rar_CMXXXXXX
call fcn.004855b0
mov ebx, eax
test ebx, ebx
je 0x47cc71
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47cc24
sub eax, edx
sar eax, 1
push esi
mov esi, eax
mov eax, edi
lea edx, [eax + 2]
jmp 0x47cc40
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47cc40
sub eax, edx
push ebx
sar eax, 1
push eax
push 2
push edi
call fcn.004a6ea4
push ebx
call fcn.004a6c75
add esp, 0x14
test esi, esi
pop esi
jbe 0x47cc71
mov dword [0x4f54e0], 3
pop ebx
pop edi
ret 4

Function at 0x47cc80
Capabilities:
Get memory capacity

Disassembly:
mov eax, dword [0x50d77c]
sub esp, 0x20
test eax, eax
jne 0x47ccc8
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 8]
mov eax, 0x400000
mov dword [0x50d77c], eax
cmp ecx, 0x8000000
ja 0x47ccb6
mov eax, 0x200000
mov dword [0x50d77c], eax
cmp ecx, 0x4000000
ja 0x47ccc8
mov eax, 0x100000
mov dword [0x50d77c], eax
add esp, 0x20
ret
Function at 0x47ce50
Capabilities:
Get disk information
Query environment variable

Disassembly:
mov eax, 0x2c08
call fcn.004a53e0
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x2c04], eax
push edi
push ebx
call fcn.00451bd0
push 0x3a
push eax
call fcn.004a5b50
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
add esp, 8
test eax, eax
je 0x47ceb3
cmp byte [0x50d7a4], 0
jne 0x47ceb3
push 0x31
push 0x65
call fcn.004612e0
push eax
push 0x528
call fcn.004612e0
push eax
push esi
call edi
cmp eax, 1
jne 0x47d01f
mov byte [0x50d7a4], al
lea edx, [esp + 0x808]
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 0x47cec0
lea eax, [esp + 0x808]
push eax
call fcn.00452150
push 0x400
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x810]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [esp + 8]
xor eax, eax
push ecx
mov word [esp + 0x80a], ax
call fcn.00451bd0
cmp word [eax], 0
je 0x47cf82
lea edx, [esp + 8]
push edx
call fcn.00431770
test al, al
jne 0x47cf82
lea esp, [esp]
push 0x14d
call fcn.004612e0
push eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1010]
push str.__s__n_s
push ecx
mov edx, 0x600
call fcn.0049c880
add esp, 0x10
push 0x34
push 0x65
call fcn.004612e0
push eax
lea edx, [esp + 0x1010]
push edx
push esi
call edi
cmp eax, 6
jne 0x47d01f
push 0
lea eax, [esp + 0xc]
push eax
call fcn.00432220
lea ecx, [esp + 8]
push ecx
call fcn.00431770
test al, al
je 0x47cf20
call fcn.0043ee10
cmp eax, 0x501
jb 0x47d037
lea edx, [esp + 0x2408]
push edx
push ebx
call fcn.00451890
lea eax, [esp + 0x1c08]
push eax
lea ecx, [esp + 0x240c]
push ecx
call fcn.00452f40
push 0
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0
push 0
lea eax, [esp + 0x1c24]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x47d037
test dword [esp + 4], 0x80000
je 0x47d037
lea ecx, [esp + 0x1c08]
push ecx
push 0x3b6
call fcn.004612e0
push eax
lea edx, [esp + 0x1010]
push edx
mov edx, 0x600
call fcn.0049c880
add esp, 0xc
push 0x30
push 0x65
call fcn.004612e0
push eax
lea eax, [esp + 0x1010]
push eax
push esi
call edi
xor al, al
pop edi
mov ecx, dword [esp + 0x2c04]
xor ecx, esp
call fcn.004a4bb3
add esp, 0x2c08
ret
mov ecx, dword [esp + 0x2c08]
pop edi
xor ecx, esp
mov al, 1
call fcn.004a4bb3
add esp, 0x2c08
ret
Function at 0x484ab0
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 0x484c80
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query environment variable

Disassembly:
sub esp, 0x804
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x800], eax
cmp byte [0x4f98a0], 0
push esi
mov esi, dword [esp + 0x80c]
je 0x484cbd
mov eax, dword [esp + 0x810]
push eax
push esi
push 0x4f98a0
call fcn.00473290
jmp 0x484d45
push edi
mov edi, dword [esp + 0x814]
push edi
push 0x4bad38
push esi
push str.TempFolder
push 0x4baa0c
call fcn.0045ba30
xor ecx, ecx
mov word [esp + 8], cx
cmp word [esi], cx
je 0x484d1a
push 0x400
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x484d08
push edi
lea eax, [esp + 0xc]
push eax
push esi
call fcn.0046ac00
cmp word [esi], 0
je 0x484d1a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x484d44
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x484d2c
cmp word [esi], 0
jne 0x484d44
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 0x484d35
pop edi
push esi
call fcn.00451670
mov ecx, dword [esp + 0x804]
pop esi
xor ecx, esp
call fcn.004a4bb3
add esp, 0x804
ret 8
Function at 0x4856a0
Capabilities:
Create directory

Disassembly:
sub esp, 0x804
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x800], eax
push ebx
mov ebx, dword [esp + 0x810]
push esi
mov esi, dword [esp + 0x810]
push 0x400
lea eax, [esp + 0xc]
push eax
call fcn.00484c80
lea ecx, [esp + 8]
push ecx
call fcn.00451670
mov eax, esi
mov edx, esi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4856e1
push edi
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4856f6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.004326c0
pop edi
test eax, eax
je 0x485753
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x485753
lea eax, [esp + 8]
mov edx, ebx
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x485740
mov al, 1
jmp 0x485777
lea edx, [esp + 8]
push edx
push 0x1f7
call fcn.004612e0
push eax
call fcn.00493500
add esp, 8
mov ecx, 0x4d76b4
call fcn.00428fc0
xor al, al
mov ecx, dword [esp + 0x808]
pop esi
pop ebx
xor ecx, esp
call fcn.004a4bb3
add esp, 0x804
ret 8

Function at 0x485ca0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ecx
push ebx
lea eax, [esp + 4]
push eax
push 0x4c1d3c
push 1
push 0
push 0x4c1dcc
xor bl, bl
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x485d76
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x485ceb
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x1c]
push ecx
call eax
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x485d02
mov eax, dword [esp + 4]
mov edx, dword [eax]
push 0
push ecx
push eax
mov eax, dword [edx + 0x44]
call eax
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x485d17
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x2c]
call eax
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x485d2c
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x24]
call eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push 0x4c1d7c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x485d6a
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jl 0x485d5e
mov bl, 1
mov eax, dword [esp + 0xc]
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
pop ecx
ret 0x18
Function at 0x486410
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x1804
call fcn.004a53e0
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x1800], eax
mov eax, dword [esp + 0x1808]
mov ecx, dword [0x4e9b84]
push ebx
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x600
lea edx, [esp + 0xc08]
mov ebx, eax
push edx
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x600
lea eax, [esp + 8]
push eax
push edi
push esi
call fcn.00451a80
lea ecx, [esp + 0xc04]
lea eax, [esp + 4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x486496
test dx, dx
je 0x486492
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x486496
add eax, 4
add ecx, 4
test dx, dx
jne 0x486470
xor eax, eax
jmp 0x48649b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4864ab
lea ecx, [esp + 4]
push ecx
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [esp + 0x1804]
pop ebx
xor ecx, esp
call fcn.004a4bb3
add esp, 0x1804
ret 4

Function at 0x486700
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4b86fe
mov eax, dword fs:[0]
push eax
sub esp, 0x404
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
push edi
mov eax, dword [0x4cc3b0]
xor eax, esp
push eax
lea eax, [esp + 0x410]
mov dword fs:[0], eax
mov eax, dword [0x4e9b84]
test eax, eax
je 0x486849
push 0x200
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [0x50fd00]
cmp esi, 8
je 0x4867b7
mov ecx, 0x50e800
lea eax, [esp + 0xc]
jmp 0x486770
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x486796
test dx, dx
je 0x486792
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x486796
add eax, 4
add ecx, 4
test dx, dx
jne 0x486770
xor eax, eax
jmp 0x48679b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4867b7
mov edx, dword [0x4e9b84]
push 0x50e800
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [0x50fd00]
test esi, esi
je 0x4867ca
cmp esi, 1
je 0x4867ca
cmp esi, 2
je 0x4867ca
cmp esi, 8
jne 0x4867fd
push 0x9c
mov edi, 0x50e700
xor esi, esi
call fcn.00486410
push 0x50f100
call fcn.00451bd0
push 0x50f900
mov edi, eax
call fcn.00451b50
push 0x9b
mov esi, eax
call fcn.00486410
test byte [0x50fd0c], 1
jne 0x48682d
or dword [0x50fd0c], 1
mov dword [esp + 0x418], 0
mov dword [0x50fd08], 0
mov dword [esp + 0x418], 0xffffffff
push 0x64
mov ecx, 0x50fd08
call fcn.00446750
test al, al
je 0x486849
mov eax, dword [0x4e9b84]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x410]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004a4bb3
add esp, 0x410
ret
Function at 0x486bf0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x404
mov eax, dword [0x4cc3b0]
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], 0x3a8
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x40
lea edx, [esp + 0xc]
push edx
call fcn.00446b80
cmp word [0x50e250], 0
je 0x486ca0
lea eax, [esp + 8]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x486c40
mov ecx, dword [0x4be198]
mov dx, word [0x4be19c]
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 0x486c66
sub eax, edx
push 0x50e250
sar eax, 1
push 0x5aa
mov esi, eax
call fcn.004612e0
push eax
lea eax, [esp + esi*2 + 0x10]
push str._s:__s
mov edx, 0x200
sub edx, esi
push eax
call fcn.0049c880
add esp, 0x10
cmp byte [0x50e2b6], 0
je 0x486d0e
lea eax, [esp + 8]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x486cb0
mov ecx, dword [0x4be198]
mov dx, word [0x4be19c]
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 0x486cd6
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, dword [esp + 0x410]
push eax
push 0x2fd
call fcn.004612e0
push eax
lea ecx, [esp + esi*2 + 0x10]
mov edx, 0x200
sub edx, esi
push ecx
call fcn.0049c880
add esp, 0xc
push 0x80
lea edx, [esp + 0xc]
push edx
add edi, 0x18
push edi
call fcn.0046ac00
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
call fcn.004a4bb3
add esp, 0x404
ret 4
Function at 0x489c30
Capabilities:
Get common file path
Query environment variable

Disassembly:
sub esp, 0x804
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x800], eax
cmp byte [esp + 0x81c], 0
push ebx
push ebp
mov ebp, dword [esp + 0x810]
push esi
mov esi, dword [esp + 0x818]
push edi
mov edi, dword [esp + 0x820]
je 0x489cd7
push 0x400
push esi
push ebp
push str.DefFolder
push str.Extraction
call fcn.0045ba30
cmp word [ebp], 0
jne 0x489ca1
mov edx, ebp
mov eax, esi
sub edx, esi
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x489c90
jmp 0x489cdd
push 0x400
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
lea eax, [esp + 0x10]
mov word [esp + 0x80e], cx
mov edx, ebp
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x489cc6
jmp 0x489cdd
xor edx, edx
mov word [ebp], dx
movzx eax, word [ebp]
test ax, ax
setne bl
test ax, ax
jne 0x489cf8
push ebp
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebp
call fcn.00451670
cmp byte [esp + 0x824], 0
jne 0x489d10
test bl, bl
je 0x489e42
push 1
push str.AppendName
push str.Extraction
call fcn.0045ba60
test eax, eax
je 0x489e42
push 0x400
push edi
lea eax, [esp + 0x18]
push eax
call fcn.0046ac00
xor edi, edi
cmp word [esp + 0x10], di
je 0x489d79
xor eax, eax
lea esi, [esp + 0x10]
cmp word [esi], 0x25
jne 0x489d69
lea ecx, [esp + eax + 0x12]
push 0x25
push ecx
call fcn.004a5b50
add esp, 8
test eax, eax
je 0x489d69
mov edx, 0x5f
mov word [esi], dx
inc edi
lea eax, [edi + edi]
cmp word [esp + eax + 0x10], 0
lea esi, [esp + eax + 0x10]
jne 0x489d48
lea eax, [esp + 0x10]
push eax
call fcn.00451bd0
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x489d85
mov edi, ebp
sub eax, edx
add edi, 0xfffffffe
jmp 0x489da0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x489da0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call fcn.00451f60
mov esi, eax
test esi, esi
je 0x489e42
cmp esi, ebp
jbe 0x489e42
xor ecx, ecx
push ebp
mov word [esi], cx
call fcn.00451f60
mov edi, eax
test edi, edi
je 0x489e22
cmp edi, ebp
jbe 0x489e22
cmp byte [esp + 0x828], 0
je 0x489e0e
cmp word [esi + 2], 0
je 0x489e0e
movzx edx, word [esi + 4]
push edx
call fcn.0046a9d0
test al, al
jne 0x489e0e
movzx eax, word [esi - 2]
push eax
call fcn.0046a9d0
test al, al
jne 0x489e1d
push str..tar
push edi
call fcn.00473580
test eax, eax
jne 0x489e22
xor ecx, ecx
mov word [edi], cx
sub esi, 2
cmp esi, ebp
jbe 0x489e42
lea esp, [esp]
cmp word [esi], 0x2e
jne 0x489e42
xor edx, edx
mov word [esi], dx
sub esi, 2
cmp esi, ebp
ja 0x489e30
push 0
push ebp
call fcn.004516c0
mov ecx, dword [esp + 0x810]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a4bb3
add esp, 0x804
ret 0x18
Function at 0x489e70
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x804], eax
mov eax, dword [esp + 0x80c]
push edi
lea ecx, [esp + 4]
push ecx
push eax
call fcn.00451890
lea edx, [esp + 4]
push edx
call fcn.00451670
lea edi, [esp + 4]
add edi, 0xfffffffe
jmp 0x489eb0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x489eb0
mov eax, dword [0x4bb6fc]
push 1
push 0x4bad38
push 0
lea ecx, [esp + 0x10]
push ecx
push str.open
push 0
mov dword [edi], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x808]
pop edi
xor ecx, esp
call fcn.004a4bb3
add esp, 0x808
ret 4