joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403896
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040d480
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4038da
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.004065e8
test al, al
je 0x4038da
lea eax, [ebp - 0x1000]
push eax
call esi
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x4038e2
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040d480
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call esi
test eax, eax
setne bl
test bl, bl
jne 0x403931
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.004065e8
test al, al
je 0x403931
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
setne bl
pop esi
mov al, bl
pop ebx
leave
ret 8

Function at 0x403b1e
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040d480
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
mov edi, dword [ebp + 8]
push 0
push edi
call esi
test eax, eax
jne 0x403b6e
push edi
call fcn.00403afa
test al, al
jne 0x403b81
push 0x800
lea eax, [ebp - 0x1000]
push eax
push edi
call fcn.004065e8
test al, al
je 0x403b81
push 0
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x403b81
cmp byte [ebp + 0xc], 0
je 0x403b7d
push dword [ebp + 0x10]
push edi
call fcn.004038e2
xor eax, eax
jmp 0x403b99
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x403b96
cmp eax, 3
je 0x403b96
xor eax, eax
inc eax
jmp 0x403b99
push 2
pop eax
pop edi
pop esi
leave
ret 0xc
Function at 0x404731
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1250
call fcn.0040d480
cmp dword [ebp + 8], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
lea eax, [ebp - 0x250]
mov edi, 0x800
push eax
jne 0x4047c0
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x4047ed
push edi
lea eax, [ebp - 0x1250]
push eax
push dword [ebp + 0xc]
call fcn.004065e8
test al, al
je 0x404799
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x1250]
push eax
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x4047ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4047b3
cmp eax, 3
je 0x4047b3
cmp eax, 0x12
je 0x4047b3
xor eax, eax
inc eax
jmp 0x4047b5
xor eax, eax
mov byte [esi + 0x1044], al
jmp 0x4048b8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4047e3
or dword [ebp + 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [esi + 0x1044], al
cmp dword [ebp + 8], 0xffffffff
je 0x4048b8
push edi
push dword [ebp + 0xc]
push esi
call fcn.0040b6a0
push edi
lea eax, [ebp - 0x224]
push eax
push esi
call fcn.00406471
push 1
push 0
push 0
push dword [ebp - 0x234]
call fcn.0040e510
mov ecx, dword [ebp - 0x230]
xor edi, edi
add eax, ecx
mov dword [esi + 0x1000], eax
mov eax, dword [ebp - 0x250]
mov dword [esi + 0x1008], eax
mov eax, dword [ebp - 0x24c]
mov dword [esi + 0x1028], eax
mov eax, dword [ebp - 0x248]
mov dword [esi + 0x102c], eax
mov eax, dword [ebp - 0x244]
mov dword [esi + 0x1030], eax
mov eax, dword [ebp - 0x240]
mov dword [esi + 0x1034], eax
mov eax, dword [ebp - 0x23c]
mov dword [esi + 0x1038], eax
mov eax, dword [ebp - 0x238]
mov dword [esi + 0x103c], eax
lea eax, [ebp - 0x23c]
adc edx, edi
push eax
lea ecx, [esi + 0x1010]
mov dword [esi + 0x1004], edx
call fcn.0040ba05
lea eax, [ebp - 0x24c]
push eax
lea ecx, [esi + 0x1018]
call fcn.0040ba05
lea eax, [ebp - 0x244]
push eax
lea ecx, [esi + 0x1020]
call fcn.0040ba05
and dword [esi + 0x1040], 0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4065e8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040d480
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00406285
push esi
call fcn.0040d40a
pop ecx
push esi
mov ebx, eax
call fcn.00406524
test al, al
je 0x4066a2
push esi
call fcn.00406285
test al, al
je 0x406652
add ebx, 4
cmp dword [ebp + 0x10], ebx
jbe 0x40676b
mov edi, dword [ebp + 0xc]
push 4
push str.__
push edi
call fcn.0040e54f
push esi
add edi, 8
push edi
call fcn.0040d452
add esp, 0x14
mov al, 1
jmp 0x40676d
cmp word [esi], 0x5c
jne 0x40676b
add esi, 2
cmp word [esi], 0x5c
jne 0x40676b
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x40676b
mov edi, dword [ebp + 0xc]
push 4
push str.__
push edi
call fcn.0040e54f
lea eax, [edi + 8]
push 0x41a618
push eax
call fcn.0040d452
push esi
add edi, 0xe
push edi
call fcn.0040d452
add esp, 0x1c
jmp 0x40664b
lea eax, [ebp - 0x1000]
push eax
mov edi, 0x7ff
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40676b
cmp eax, edi
ja 0x40676b
movzx eax, word [esi]
push eax
call fcn.00406179
test al, al
je 0x406712
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x40676b
mov edi, dword [ebp + 0xc]
push 4
push str.__
push edi
call fcn.0040e54f
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0040e54f
push esi
add edi, 0xc
push edi
call fcn.0040d452
add esp, 0x20
jmp 0x40664b
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.00406191
lea eax, [ebp - 0x1000]
push eax
call fcn.0040d40a
lea eax, [eax + ebx + 4]
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x40676b
mov edi, dword [ebp + 0xc]
push 4
push str.__
push edi
call fcn.0040e54f
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0040d452
add esp, 0x14
push dword [ebp + 0x10]
push esi
push edi
call fcn.0040b6cd
jmp 0x40664b
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40845e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
cmp dword [0x4365ac], ebx
jne 0x408477
mov ecx, 0x4365a4
call fcn.0040841f
mov esi, dword [ebp + 0xc]
mov ecx, esi
and ecx, 0xf
mov eax, esi
sub eax, ecx
cmp byte [ebp + 0x10], bl
je 0x4084c1
mov ecx, dword [0x4365ac]
cmp ecx, ebx
je 0x4084dd
push ebx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x4084fe
push str.CryptProtectMemory_failed
mov esi, 0x43f61c
push esi
call fcn.0040176c
pop ecx
pop ecx
mov ecx, esi
call fcn.004157d7
push 2
mov ecx, esi
call fcn.00401828
jmp 0x4084fe
mov ecx, dword [0x4365b0]
cmp ecx, ebx
je 0x4084dd
push ebx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x4084fe
push str.CryptUnprotectMemory_failed
jmp 0x4084a2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
cmp esi, ebx
jbe 0x4084fe
mov dl, al
add dl, 0x4b
mov eax, dword [ebp + 8]
add eax, ecx
mov bl, dl
add bl, cl
xor byte [eax], bl
inc ecx
cmp ecx, esi
jb 0x4084ee
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x40863b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x41f03c], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x408686
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 [0x44ace4], ax
xor eax, eax
mov word [0x44ace6], ax
mov dword [0x41f03c], 0x44ace4
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b6fc
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x41f02c
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 0x4088e6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x43f5f0]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x43f5f4], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x408948
mov ecx, dword [0x4365bc]
call fcn.0040c5fc
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x41a684
push 0
push 0xc2
push edi
call esi
mov byte [0x43f5f4], 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 0x408998
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 0x4089e2
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 0x41a758
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x408e33
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0040d480
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x408e4e
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x408e58
mov byte [eax], 0
test edi, edi
je 0x408f01
movzx eax, word [edi]
test ax, ax
je 0x408f01
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x408e91
cmp dword [ebp + 0xc], 0
je 0x408e9d
test esi, esi
jne 0x408e9d
test ebx, ebx
je 0x408e8d
mov byte [ebx], 1
mov esi, edx
jmp 0x408eac
cmp ax, 0xd
je 0x408ebf
cmp ax, 0xa
je 0x408ec1
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x408eb7
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x408e71
jmp 0x408ec1
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x408ec1
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x408efc
mov word [ebx], ax
test esi, esi
je 0x408efc
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.0040b6a0
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x408f03
xor eax, eax
pop edi
pop ebx
leave
ret 0x10
Function at 0x408f48
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0040d480
push 0x800
lea eax, [ebp - 0x1020]
push eax
call fcn.0040d23e
cmp byte [0x43f5f5], 0
jne 0x408fdd
push 6
push dword [0x41f028]
lea eax, [ebp - 0x1020]
push eax
call fcn.00406307
push eax
call fcn.0040c101
test eax, eax
jne 0x408fdd
push 0x41a440
call fcn.0040d22b
lea eax, [ebp - 0x1020]
push eax
call fcn.0040d40a
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x101e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040d390
add esp, 0x10
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1020]
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 0x40913e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0040d480
push ebx
xor ebx, ebx
cmp byte [0x43f630], bl
je 0x4091c3
cmp word [0x4365c0], bx
je 0x4091c3
push esi
push 0x4365c0
lea esi, [ebp - 0x1008]
call fcn.00409101
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 0x4091c3
push dword [ebp + 8]
call fcn.0040d40a
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
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 0x4091c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0040d480
cmp byte [0x43f630], 0
je 0x40926f
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x200c]
call fcn.00409101
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 0x40926f
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409266
shr dword [ebp - 4], 1
mov eax, 0x7ff
cmp dword [ebp - 4], eax
jae 0x40924a
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0040b6a0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8
Function at 0x409d10
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x43f5de], 0
mov eax, dword [ebp + 0xc]
mov dword [0x43f5d0], eax
mov eax, dword [ebp + 0x10]
mov dword [0x43f5d4], eax
mov eax, dword [ebp + 0x14]
mov dword [0x43f5c8], eax
je 0x409d40
xor eax, eax
inc eax
jmp 0x409d69
cmp byte [0x43f5df], 0
je 0x409d4e
push 2
pop eax
jmp 0x409d69
push dword [ebp + 8]
push 0x40952b
push dword [0x43f5f0]
push str.REPLACEFILEDLG
push dword [0x43f5cc]
call esi
dec eax
je 0x409dbb
dec eax
je 0x409dcd
dec eax
je 0x409db4
dec eax
jne 0x409d98
push dword [ebp + 8]
push 0x408a3c
push dword [0x43f5f0]
push str.RENAMEDLG
push dword [0x43f5cc]
call esi
test eax, eax
je 0x409d1a
mov al, 0x52
jmp 0x409dc8
dec eax
je 0x409da9
dec eax
mov al, 0x4e
jne 0x409dc8
mov byte [0x43f5df], 1
jmp 0x409dc8
mov byte [0x43f5e2], 1
mov al, 0x43
jmp 0x409dc8
mov byte [0x43f5de], 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 0x409dc8
Function at 0x40bb34
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x434514]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x44cd00]
mov ecx, dword [0x43451c]
mov dword [0x434514], eax
movzx eax, al
add eax, dword [0x434518]
imul eax, eax, 0x8088405
inc eax
mov dword [0x434518], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44cd00]
mov eax, dword [esp + 4]
mov dword [0x43451c], ecx
ret 4

Function at 0x40bbd1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040bb8e
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040dbb0
add esp, 0xc
xor esi, esi
lea edx, [ebp + esi - 0xc]
call fcn.0040bb14
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.0040bb34
inc esi
cmp esi, 0xc
jl 0x40bbf3
movzx ax, byte [ebp - 1]
movzx ecx, ax
mov eax, dword [0x4233b0]
test byte [eax + 0x40], 2
movzx eax, byte [0x43342f]
jne 0x40bc2e
movzx eax, byte [0x433437]
movzx ecx, cx
cmp ecx, eax
je 0x40bc3a
or eax, 0xffffffff
jmp 0x40bc7f
mov ecx, dword [0x4333c8]
mov eax, ecx
cdq
cmp edx, dword [0x42218c]
push edi
jl 0x40bc5c
mov edx, dword [0x422188]
jg 0x40bc58
cmp eax, edx
jbe 0x40bc5c
mov edi, edx
jmp 0x40bc5e
mov edi, ecx
mov esi, dword [0x4333c0]
jmp 0x40bc78
dec edi
call fcn.0040bb14
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040bb34
inc esi
test edi, edi
jne 0x40bc66
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x40c613
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 0x40c645
cmp dword [ebp - 4], edi
jne 0x40c686
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x40c686
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 0x40c632
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 0x40c632
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
cmp esi, edi
jl 0x40c6dc
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x41ae30
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x40c6d3
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jl 0x40c6ca
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 0x40ce9a
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.0040ce33
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 0x40cf01
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 0x40cf83
cmp dword [ebp + 0xc], edi
je 0x40cfa6
cmp dword [esi + 0x14], edi
jne 0x40cfa6
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x40cfa6
push eax
mov ecx, esi
call fcn.0040cb0e
mov esi, eax
cmp esi, edi
je 0x40cfa6
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.0040d4ab
pop ecx
jmp 0x40cfa6
cmp eax, edi
je 0x40cf99
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 0x40cfa6
mov ecx, esi
call fcn.0040c818
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40d153
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x41ae20
push 1
xor ebx, ebx
push ebx
push 0x41aed0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40d224
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x41aec0
push eax
call dword [ecx]
test eax, eax
jl 0x40d21b
cmp byte [ebp + 8], bl
je 0x40d1a6
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 0x40d1c3
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 0x40d1d5
push 0x41a684
jmp 0x40d1d8
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x40d1ed
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 0x40d1fe
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 0x40d212
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 0x40d23e
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 0x412585
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f3dc]
jne 0x41258f
repz ret
jmp fcn.004166b5
Function at 0x417cf7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00412606
and dword [ebp - 4], 0
cmp dword [0x44dbe4], 0
mov ebx, eax
jne 0x417da8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x417e59
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x417e59
push eax
call fcn.00412594
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44dbe4], eax
call esi
push eax
call fcn.00412594
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44dbe8], eax
call esi
push eax
call fcn.00412594
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44dbec], eax
call esi
push eax
call fcn.00412594
pop ecx
mov dword [0x44dbf4], eax
test eax, eax
je 0x417da8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00412594
pop ecx
mov dword [0x44dbf0], eax
mov eax, dword [0x44dbf0]
cmp eax, ebx
je 0x417e00
cmp dword [0x44dbf4], ebx
je 0x417e00
push eax
call fcn.0041260f
push dword [0x44dbf4]
mov esi, eax
call fcn.0041260f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x417e00
test edi, edi
je 0x417e00
call esi
test eax, eax
je 0x417df7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x417df7
test byte [ebp - 0xc], 1
jne 0x417e00
or dword [ebp + 0x10], 0x200000
jmp 0x417e39
mov eax, dword [0x44dbe8]
cmp eax, ebx
je 0x417e39
push eax
call fcn.0041260f
pop ecx
test eax, eax
je 0x417e39
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x417e39
mov eax, dword [0x44dbec]
cmp eax, ebx
je 0x417e39
push eax
call fcn.0041260f
pop ecx
test eax, eax
je 0x417e39
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44dbe4]
call fcn.0041260f
pop ecx
test eax, eax
je 0x417e59
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x417e5b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret