joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x403df0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x403d0d
dec eax
je 0x403d02
dec eax
jne 0x403d0d
push 0xfffffffffffffff4
jmp 0x403d04
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0xc], edi
je 0x403d5c
cmp dword [ebp + 0xc], edi
jbe 0x403d77
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x403d34
mov eax, ecx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
je 0x403d77
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x403d24
jmp 0x403d73
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
test al, al
jne 0x403dea
cmp byte [esi + 0x14], 0
je 0x403dea
cmp dword [esi + 0xc], 0
jne 0x403dea
push 0
lea eax, [esi + 0x41e]
push eax
lea eax, [esi + 0x1d]
mov edi, 0x42ddbc
push eax
mov ecx, edi
call fcn.00401ac1
test al, al
je 0x403dd4
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x403d15
test eax, eax
jbe 0x403d15
push 0
mov ecx, esi
call fcn.0040372b
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.00403c6f
jmp 0x403d15
lea eax, [esi + 0x41e]
push eax
lea eax, [esi + 0x1d]
push eax
push 0
push 0
mov ecx, edi
call fcn.00401d67
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

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

Disassembly:
call fcn.00406605
test eax, eax
je 0x403ef2
mov eax, dword [esp + 8]
test eax, eax
je 0x403ef2
cmp word [eax], 0
je 0x403ef2
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x403f0f
cmp dword [esp + 4], 0
je 0x403f0d
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403f0d
xor eax, eax
inc eax
jmp 0x403f0f
xor eax, eax
ret 8

Function at 0x403f6e
Capabilities:
Get file attributes

Disassembly:
call fcn.00406605
test eax, eax
je 0x403f8e
mov eax, dword [esp + 8]
test eax, eax
je 0x403f8e
cmp word [eax], 0
je 0x403f8e
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x403f98
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8

Function at 0x403f9b
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.00406605
test eax, eax
je 0x403fc0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x403fc0
cmp word [eax], 0
je 0x403fc0
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x403fd2
cmp dword [ebp + 8], 0
je 0x403fd9
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
jmp 0x403fdb
xor al, al
pop ebp
ret 0xc
Function at 0x404140
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.00406605
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x404166
cmp esi, ebx
je 0x404166
cmp word [esi], bx
je 0x404166
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x404175
cmp dword [ebp + 8], ebx
je 0x4041a3
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
je 0x40418e
cmp byte [ebp + 0x10], bl
je 0x40418a
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.00403f9b
xor eax, eax
jmp 0x4041a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4041a3
cmp eax, 3
je 0x4041a3
xor eax, eax
inc eax
jmp 0x4041a6
push 2
pop eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x408e1e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x408e56
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x408e5a
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret 0x10

Function at 0x40959c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
cmp dword [0x42754c], esi
jne 0x4095b5
mov ecx, 0x427544
call fcn.0040955d
cmp byte [ebp + 0x14], 0
mov ebx, dword [ebp + 0x10]
je 0x40960b
cmp dword [0x42754c], esi
je 0x40963c
test bl, 0xf
jne 0x40963c
add ebx, ebx
push ebx
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00408ed4
push esi
push ebx
push dword [ebp + 0xc]
call dword [0x42754c]
test eax, eax
jne 0x409664
push str.CryptProtectMemory_failed
mov esi, 0x42ddbc
mov ecx, esi
call fcn.00401ba4
mov ecx, esi
call fcn.00401a46
push 2
mov ecx, esi
call fcn.00401d41
jmp 0x409664
cmp dword [0x427550], esi
je 0x40963c
test bl, 0xf
jne 0x40963c
add ebx, ebx
push ebx
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00408ed4
push esi
push ebx
push dword [ebp + 0xc]
call dword [0x427550]
test eax, eax
jne 0x409664
push str.CryptUnprotectMemory_failed
jmp 0x4095ed
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
cmp ebx, esi
jbe 0x409664
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
sub esi, ecx
push edi
lea edi, [eax + edx + 0x4b]
xor di, word [esi + ecx]
inc edx
mov word [ecx], di
inc ecx
inc ecx
cmp edx, ebx
jb 0x409651
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x409753
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x411028], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x40979e
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x433f04], ax
xor eax, eax
mov word [0x433f06], ax
mov dword [0x411028], 0x433f04
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040c6e3
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x411018
mov word [esi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
pop edi
mov word [esi + ebx*2 - 2], ax
pop esi
pop ebx
leave
ret 0x10
Function at 0x409b1d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x42dd90]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x42dd94], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x409b7f
mov ecx, dword [0x42755c]
call fcn.0040d9cc
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x40f308
push 0
push 0xc2
push edi
call esi
mov byte [0x42dd94], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x60]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x60], 0x5c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x5c], eax
je 0x409bcf
mov ecx, dword [ebp - 0x58]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], 0xa0
mov dword [ebp - 0x5c], 0x40000001
lea ecx, [ebp - 0x60]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x409c19
mov eax, dword [ebp - 0x58]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x40f5d4
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40a497
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.004012c0
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x40a4b2
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40a4bc
mov byte [eax], 0
test edi, edi
je 0x40a565
movzx eax, word [edi]
test ax, ax
je 0x40a565
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40a4f5
cmp dword [ebp + 0xc], 0
je 0x40a501
test esi, esi
jne 0x40a501
test ebx, ebx
je 0x40a4f1
mov byte [ebx], 1
mov esi, edx
jmp 0x40a510
cmp ax, 0xd
je 0x40a523
cmp ax, 0xa
je 0x40a525
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40a51b
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40a4d5
jmp 0x40a525
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40a525
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40a560
mov word [ebx], ax
test esi, esi
je 0x40a560
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040c6b9
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40a567
xor eax, eax
pop edi
pop ebx
leave
ret 0x10
Function at 0x40a5ac
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.0040e5ef
cmp byte [0x42dd95], 0
jne 0x40a63a
push 6
push dword [0x411014]
lea eax, [ebp - 0x820]
push eax
call fcn.00406d99
push eax
call fcn.0040d437
test eax, eax
jne 0x40a63a
push 0x40f654
call fcn.0040e5dc
lea eax, [ebp - 0x820]
push eax
call fcn.0040918a
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.00408ea7
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x40a705
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x42dd81], 1
cmp dword [0x42dd90], ebx
je 0x40a72d
push 0x7d
call fcn.00408cd2
push eax
push 2
push dword [0x42dd90]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x42dd90]
mov dword [0x42dd84], ebx
mov byte [0x42dd80], 1
cmp eax, ebx
je 0x40a78e
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x42dda4], ebx
jne 0x40a75c
cmp byte [0x42dd94], bl
je 0x40a764
cmp dword [0x42dd88], ebx
jne 0x40a786
push ebx
push 1
push 0x111
push dword [0x42dd90]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40a786
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00409714
cmp dword [0x42dd90], ebx
jne 0x40a77a
cmp byte [0x42ddc8], bl
pop ebx
je 0x40a79c
jmp fcn.0040a5ac
ret

Function at 0x40a7d8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x42ddd0], bl
je 0x40a858
cmp word [0x427560], bx
je 0x40a858
push esi
push 0x427560
lea esi, [ebp - 0x808]
call fcn.0040a79d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x40a858
push dword [ebp + 8]
call fcn.0040918a
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x808]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4
Function at 0x40a85d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004012c0
cmp byte [0x42ddd0], 0
je 0x40a904
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x100c]
call fcn.0040a79d
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x40a904
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a8fb
shr dword [ebp - 4], 1
mov eax, 0x3ff
cmp dword [ebp - 4], eax
jae 0x40a8df
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x80c], cx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.0040c6b9
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8

Function at 0x40aa2c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x42dd7e], 0
mov eax, dword [ebp + 0xc]
mov dword [0x42dd70], eax
mov eax, dword [ebp + 0x10]
mov dword [0x42dd74], eax
mov eax, dword [ebp + 0x14]
mov dword [0x42dd68], eax
je 0x40aa5c
xor eax, eax
inc eax
jmp 0x40aa85
cmp byte [0x42dd7f], 0
je 0x40aa6a
push 2
pop eax
jmp 0x40aa85
push dword [ebp + 8]
push 0x409ced
push dword [0x42dd90]
push str.REPLACEFILEDLG
push dword [0x42dd6c]
call esi
dec eax
je 0x40aad7
dec eax
je 0x40aae9
dec eax
je 0x40aad0
dec eax
jne 0x40aab4
push dword [ebp + 8]
push 0x40a039
push dword [0x42dd90]
push str.RENAMEDLG
push dword [0x42dd6c]
call esi
test eax, eax
je 0x40aa36
mov al, 0x52
jmp 0x40aae4
dec eax
je 0x40aac5
dec eax
mov al, 0x4e
jne 0x40aae4
mov byte [0x42dd7f], 1
jmp 0x40aae4
mov byte [0x42dd82], 1
mov al, 0x43
jmp 0x40aae4
mov byte [0x42dd7e], 1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 0x59
pop esi
pop ebp
ret 0x10
mov al, 0x4e
jmp 0x40aae4
Function at 0x40ce05
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x4254ac]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x4130d0]
mov ecx, dword [0x4254b4]
mov dword [0x4254ac], eax
movzx eax, al
add eax, dword [0x4254b0]
imul eax, eax, 0x8088405
inc eax
mov dword [0x4254b0], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x4130d0]
mov eax, dword [esp + 4]
mov dword [0x4254b4], ecx
ret 4

Function at 0x40ce98
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040ce5f
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408ed4
xor esi, esi
lea edx, [ebp + esi - 0xc]
call fcn.0040cde5
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.0040ce05
inc esi
cmp esi, 0xc
jl 0x40ceb7
movzx ax, byte [ebp - 1]
movzx ecx, ax
mov eax, dword [0x414b48]
test byte [eax + 0x40], 2
movzx eax, byte [0x424bc7]
jne 0x40cef2
movzx eax, byte [0x424bcf]
movzx ecx, cx
cmp ecx, eax
je 0x40cefe
or eax, 0xffffffff
jmp 0x40cf43
mov ecx, dword [0x424b60]
mov eax, ecx
cdq
cmp edx, dword [0x413924]
push edi
jl 0x40cf20
mov edx, dword [0x413920]
jg 0x40cf1c
cmp eax, edx
jbe 0x40cf20
mov edi, edx
jmp 0x40cf22
mov edi, ecx
mov esi, dword [0x424b58]
jmp 0x40cf3c
dec edi
call fcn.0040cde5
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040ce05
inc esi
test edi, edi
jne 0x40cf2a
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x40d9e3
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
test eax, eax
jl 0x40da15
cmp dword [ebp - 4], edi
jne 0x40da56
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x40da56
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40da02
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40da02
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
cmp esi, edi
jl 0x40daac
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x40fcb0
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x40daa3
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jl 0x40da9a
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
cmp esi, edi
pop edi
pop esi
setge al
pop ebx
leave
ret 8
Function at 0x40e250
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0x18]
sub esp, 0x10
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
mov esi, ecx
mov byte [esi + 0x21], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.0040e1e9
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x40e2b7
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
push esi
push dword [esi]
sub edi, eax
push 0
push dword [ebp + 0xc]
lea ecx, [eax + 1]
dec edi
mov dword [ebp + 0x18], ecx
dec edi
call ebx
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
push edi
push dword [ebp - 0xc]
xor edi, edi
push dword [ebp + 0x18]
push 0x40000000
push edi
push str.RarHtmlClassName
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
cmp dword [esi + 0xc], edi
jne 0x40e338
cmp dword [ebp + 0xc], edi
je 0x40e35b
cmp dword [esi + 0x14], edi
jne 0x40e35b
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x40e35b
push eax
mov ecx, esi
call fcn.0040dec9
mov esi, eax
cmp esi, edi
je 0x40e35b
push 5
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.00408d67
jmp 0x40e35b
cmp eax, edi
je 0x40e34e
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x1c], 0x64
jbe 0x40e35b
mov ecx, esi
call fcn.0040dbde
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40e504
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x40fca0
push 1
xor ebx, ebx
push ebx
push 0x40fd50
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40e5d5
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x40fd40
push eax
call dword [ecx]
test eax, eax
jl 0x40e5cc
cmp byte [ebp + 8], bl
je 0x40e557
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x40e574
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x40e586
push 0x40f308
jmp 0x40e589
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x40e59e
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x40e5af
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x40e5c3
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x40e5ef
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 0x10001557
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
mov ebx, ecx
mov ecx, 0x1017c79c
push esi
push edi
mov dword [ebx], vtable.VthreadContext.0
mov word [ebx + 4], dx
mov dword [ebx + 8], 1
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], edx
mov word [ebx + 0x1c], 0x101
mov byte [ebx + 0x1e], dl
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x28], edx
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x50], edx
mov dword [ebx + 0x54], edx
mov dword [ebx + 0x58], edx
mov dword [ebx + 0x5c], edx
mov dword [ebx + 0x60], ecx
lock inc dword [0x1017c790]
xor eax, eax
mov dword [ebx + 0x64], edx
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x6c], ecx
lock inc dword [0x1017c790]
or dword [ebx + 0x70], 0xffffffff
lea edi, [ebx + 0x9c]
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebx + 0x78], eax
mov esi, 0x100ea4e4
mov dword [ebx + 0x74], edx
inc ecx
mov word [ebx + 0x7c], dx
mov dword [ebx + 0x80], 0x1017ccc8
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x84], ecx
mov dword [ebx + 0x88], edx
mov dword [ebx + 0x8c], edx
mov byte [ebx + 0x90], dl
mov dword [ebx + 0x94], edx
mov byte [ebx + 0x98], dl
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test cl, al
je 0x10001639
or eax, 2
mov dword [ebx + 0x2c], eax
mov cl, byte [ebx + 0x2c]
and cl, 1
mov byte [ebp + 0xf], cl
cmp byte [0x1017bdd8], dl
jne 0x10001678
mov esi, 0x1017bde0
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp byte [0x1017bdd8], 0
jne 0x1000166e
mov al, byte [ebp + 0xf]
mov byte [0x1017bdd7], al
mov byte [0x1017bdd8], 1
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0x2c]
shr eax, 1
mov ecx, 0x10178fec
and al, 1
movzx eax, al
push eax
call fcn.100aa27c
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8