joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406388
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040dac0
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x4063a6
xor al, al
jmp 0x406530
push ebx
push edi
push esi
call fcn.00406205
push esi
call fcn.0040da4a
pop ecx
push esi
mov ebx, eax
call fcn.004062fd
test al, al
je 0x406450
push esi
call fcn.00406205
test al, al
je 0x4063fd
add ebx, 4
cmp dword [ebp + 0x10], ebx
jbe 0x40652c
mov edi, dword [ebp + 0xc]
push 4
push 0x41d664
push edi
call fcn.0040e9d4
push esi
add edi, 8
push edi
call fcn.0040da92
add esp, 0x14
jmp 0x406528
cmp word [esi], 0x5c
jne 0x40652c
add esi, 2
cmp word [esi], 0x5c
jne 0x40652c
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x40652c
mov edi, dword [ebp + 0xc]
push 4
push 0x41d664
push edi
call fcn.0040e9d4
lea eax, [edi + 8]
push 0x41d65c
push eax
call fcn.0040da92
push esi
add edi, 0xe
push edi
call fcn.0040da92
add esp, 0x1c
jmp 0x406528
lea eax, [ebp - 0x1000]
push eax
mov edi, 0x7ff
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40652c
cmp eax, edi
ja 0x40652c
movzx eax, word [esi]
push eax
call fcn.004061ed
test al, al
je 0x4064bd
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x40652c
mov edi, dword [ebp + 0xc]
push 4
push 0x41d664
push edi
call fcn.0040e9d4
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0040e9d4
push esi
add edi, 0xc
push edi
call fcn.0040da92
add esp, 0x20
jmp 0x406528
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.00406231
lea eax, [ebp - 0x1000]
push eax
call fcn.0040da4a
lea eax, [eax + ebx + 4]
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x40652c
mov edi, dword [ebp + 0xc]
push 4
push 0x41d664
push edi
call fcn.0040e9d4
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0040da92
add esp, 0x14
cmp word [esi], 0x2e
jne 0x40651e
movzx eax, word [esi + 2]
push eax
call fcn.004061ed
test al, al
je 0x40651e
add esi, 4
push dword [ebp + 0x10]
push esi
push edi
call fcn.0040b53c
mov al, 1
jmp 0x40652e
xor al, al
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x40832e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
cmp dword [0x42747c], ebx
jne 0x408347
mov ecx, 0x427474
call fcn.004082ef
mov esi, dword [ebp + 0xc]
mov ecx, esi
and ecx, 0xf
mov eax, esi
xor edx, edx
sub eax, ecx
cmp byte [ebp + 0x14], bl
setne dl
cmp byte [ebp + 0x10], bl
je 0x408399
mov ecx, dword [0x42747c]
cmp ecx, ebx
je 0x4083b5
push edx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x4083d6
push str.CryptProtectMemory_failed
mov esi, 0x4325fc
push esi
call fcn.00401708
pop ecx
pop ecx
mov ecx, esi
call fcn.00410b98
push 2
mov ecx, esi
call fcn.00401685
jmp 0x4083d6
mov ecx, dword [0x427480]
cmp ecx, ebx
je 0x4083b5
push edx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x4083d6
push str.CryptUnprotectMemory_failed
jmp 0x40837a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
cmp esi, ebx
jbe 0x4083d6
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 0x4083c6
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x408526
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x422038], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x408571
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 [0x43bbc4], ax
xor eax, eax
mov word [0x43bbc6], ax
mov dword [0x422038], 0x43bbc4
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b56a
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x422028
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 0x408669
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x4304c4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x4304c8], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x4086cb
mov ecx, dword [0x42748c]
call fcn.0040c97d
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x41d44c
push 0
push 0xc2
push edi
call esi
mov byte [0x4304c8], 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 0x40871b
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 0x408765
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 0x41d798
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x408bf4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0040dac0
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x408c0f
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x408c19
mov byte [eax], 0
test edi, edi
je 0x408cc2
movzx eax, word [edi]
test ax, ax
je 0x408cc2
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x408c52
cmp dword [ebp + 0xc], 0
je 0x408c5e
test esi, esi
jne 0x408c5e
test ebx, ebx
je 0x408c4e
mov byte [ebx], 1
mov esi, edx
jmp 0x408c6d
cmp ax, 0xd
je 0x408c80
cmp ax, 0xa
je 0x408c82
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jge 0x408c78
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x408c32
jmp 0x408c82
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x408c82
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x408cbd
mov word [ebx], ax
test esi, esi
je 0x408cbd
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.0040b50f
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x408cc4
xor eax, eax
pop edi
pop ebx
leave
ret 0x10
Function at 0x408d09
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0040dac0
push 0x800
lea eax, [ebp - 0x1020]
push eax
call fcn.0040d48d
cmp byte [0x4304c9], 0
jne 0x408d9e
push 6
push dword [0x422024]
lea eax, [ebp - 0x1020]
push eax
call fcn.00406587
push eax
call fcn.0040c3b5
test eax, eax
jne 0x408d9e
push 0x41d490
call fcn.0040d47a
lea eax, [ebp - 0x1020]
push eax
call fcn.0040da4a
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x101e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040d9d0
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 0x408eff
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0040dac0
push ebx
xor ebx, ebx
cmp byte [0x4304f8], bl
je 0x408f84
cmp word [0x427490], bx
je 0x408f84
push esi
push 0x427490
lea esi, [ebp - 0x1008]
call fcn.00408ec2
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 0x408f84
push dword [ebp + 8]
call fcn.0040da4a
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 0x408f89
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0040dac0
cmp byte [0x4304f8], 0
je 0x409030
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x200c]
call fcn.00408ec2
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 0x409030
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 0x409027
shr dword [ebp - 4], 1
mov eax, 0x7ff
cmp dword [ebp - 4], eax
jae 0x40900b
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.0040b50f
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8
Function at 0x409873
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.0040dac0
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp word [esi], bx
je 0x409a8e
push esi
call fcn.0040da4a
pop ecx
cmp eax, 0x7f6
jae 0x409a8e
push edi
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.0040d9d0
movzx ecx, word [esi]
add esp, 0xc
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0x1c0
cmp cx, 0x22
jne 0x4098ce
lea eax, [esi + 2]
mov dword [ebp - 0x38], eax
jmp 0x4098d1
mov dword [ebp - 0x38], esi
xor eax, eax
cmp cx, bx
je 0x409927
mov ecx, esi
cmp word [ecx], 0x22
jne 0x4098f9
jmp 0x4098e9
cmp word [esi + eax*2], 0x22
je 0x4098f2
inc eax
cmp word [esi + eax*2], bx
jne 0x4098e2
jmp 0x4098f9
push 0x20
pop ecx
mov word [esi + eax*2], cx
cmp word [esi + eax*2], 0x20
je 0x409913
cmp word [esi + eax*2 + 2], 0x2f
je 0x409913
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x4098da
jmp 0x409927
lea eax, [esi + eax*2]
cmp word [eax], 0x20
jne 0x409921
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x409933
cmp word [eax], bx
jne 0x409948
cmp byte [ebp + 0xc], bl
jne 0x409948
cmp word [0x4314fa], bx
je 0x409948
mov dword [ebp - 0x34], 0x4314fa
push dword [ebp - 0x38]
mov dword [ebp - 0x2c], 1
call fcn.00406716
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x409974
push str..inf
push eax
call fcn.0040c394
test eax, eax
jne 0x409974
mov dword [ebp - 0x3c], str.Install
push dword [ebp - 0x38]
call fcn.00403af6
test al, al
je 0x40999d
push 0x800
lea eax, [ebp - 0x1048]
push eax
push dword [ebp - 0x38]
call fcn.004067a4
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x409a8d
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], bl
mov edi, 0x3e8
cmp byte [0x4304f0], bl
jne 0x4099d2
cmp byte [ebp + 0xc], bl
jne 0x4099d2
cmp byte [0x4304dd], bl
je 0x409a2f
cmp dword [ebp + 8], ebx
je 0x4099ee
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4099ee
push ebx
push dword [ebp + 8]
call esi
mov byte [ebp - 1], 1
push 0x7d0
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x10]
call fcn.00408cca
cmp byte [0x4304dd], bl
je 0x409a2f
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x409a2f
mov eax, dword [ebp - 0xc]
add eax, edi
cmp eax, dword [0x4304e0]
jbe 0x409a2f
mov dword [0x4304e0], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x409a4e
push 0x41d874
push dword [ebp - 8]
call fcn.0040c394
test eax, eax
je 0x409a7c
cmp byte [0x4304f0], bl
je 0x409a67
cmp byte [ebp + 0xc], bl
jne 0x409a67
mov dword [0x4304e4], 0x1b58
jmp 0x409a7c
xor eax, eax
cmp byte [ebp + 0xc], bl
sete al
dec eax
and eax, 0xfffffce0
add eax, edi
mov dword [0x4304e4], eax
cmp byte [ebp - 1], bl
je 0x409a8d
cmp byte [ebp + 0xc], bl
je 0x409a8d
push 1
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40ba09
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x44f26c]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x43dbe0]
mov ecx, dword [0x44f274]
mov dword [0x44f26c], eax
movzx eax, al
add eax, dword [0x44f270]
imul eax, eax, 0x8088405
inc eax
mov dword [0x44f270], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x43dbe0]
mov eax, dword [esp + 4]
mov dword [0x44f274], ecx
ret 4

Function at 0x40baa6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040ba63
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040e2b0
add esp, 0xc
xor esi, esi
lea edx, [ebp + esi - 0xc]
call fcn.0040b9e9
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.0040ba09
inc esi
cmp esi, 0xc
jl 0x40bac8
movzx ax, byte [ebp - 1]
movzx ecx, ax
mov eax, dword [0x43e134]
test byte [eax + 0x40], 2
movzx eax, byte [0x44e19f]
jne 0x40bb03
movzx eax, byte [0x44e1a7]
movzx ecx, cx
cmp ecx, eax
je 0x40bb0f
or eax, 0xffffffff
jmp 0x40bb54
mov ecx, dword [0x44e148]
mov eax, ecx
cdq
cmp edx, dword [0x43e114]
push edi
jl 0x40bb31
mov edx, dword [0x43e110]
jg 0x40bb2d
cmp eax, edx
jbe 0x40bb31
mov edi, edx
jmp 0x40bb33
mov edi, ecx
mov esi, dword [0x44e144]
jmp 0x40bb4d
dec edi
call fcn.0040b9e9
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040ba09
inc esi
test edi, edi
jne 0x40bb3b
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x40ce2d
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
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x48]
test eax, eax
jl 0x40ce61
cmp dword [ebp - 4], esi
jne 0x40cea2
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x7d0
ja 0x40cea2
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40ce4b
push esi
push esi
push esi
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 0x40ce4b
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x48]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x40cf0d
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x40cf03
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x41ded0
push eax
call dword [ecx]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x40cefa
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x40cef1
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp + 8], 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]
cmp dword [ebp + 8], esi
jl 0x40cf0d
cmp dword [ebp - 4], esi
jne 0x40cf5c
cmp dword [edi + 8], esi
je 0x40cf5c
cmp dword [edi + 0x18], esi
jne 0x40cf5c
mov eax, dword [edi + 0x14]
cmp eax, esi
je 0x40cf5c
push eax
mov ecx, edi
call fcn.0040cc6f
mov ebx, eax
cmp ebx, esi
je 0x40cf5c
push 0x204
push esi
push esi
push esi
push esi
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
call fcn.0040daeb
pop ecx
xor eax, eax
cmp dword [ebp + 8], esi
pop edi
pop esi
setge al
pop ebx
leave
ret 8
Function at 0x40d28f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0x18]
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0
push edi
mov dword [esi + 8], edi
mov byte [esi + 0x25], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.0040d228
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push edi
call ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x40d2f6
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 + 0x10], edi
jne 0x40d378
cmp dword [ebp + 0xc], edi
je 0x40d39b
cmp dword [esi + 0x18], edi
jne 0x40d39b
mov eax, dword [esi + 0x14]
cmp eax, edi
je 0x40d39b
push eax
mov ecx, esi
call fcn.0040cc6f
mov esi, eax
cmp esi, edi
je 0x40d39b
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.0040daeb
pop ecx
jmp 0x40d39b
cmp eax, edi
je 0x40d38e
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 + 0x20], 0x64
jbe 0x40d39b
mov ecx, esi
call fcn.0040cac2
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40d3a2
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x41dec0
push 1
xor ebx, ebx
push ebx
push 0x41df70
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40d473
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x41df60
push eax
call dword [ecx]
test eax, eax
jl 0x40d46a
cmp byte [ebp + 8], bl
je 0x40d3f5
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 0x40d412
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 0x40d424
push 0x41d44c
jmp 0x40d427
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x40d43c
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 0x40d44d
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 0x40d461
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 0x40d48d
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 0x412eb5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4223ec]
jne 0x412ebf
repz ret
jmp fcn.00417805
Function at 0x418e27
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.00412f36
and dword [ebp - 4], 0
cmp dword [0x44fcdc], 0
mov ebx, eax
jne 0x418ed8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x418f89
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x418f89
push eax
call fcn.00412ec4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44fcdc], eax
call esi
push eax
call fcn.00412ec4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44fce0], eax
call esi
push eax
call fcn.00412ec4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44fce4], eax
call esi
push eax
call fcn.00412ec4
pop ecx
mov dword [0x44fcec], eax
test eax, eax
je 0x418ed8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00412ec4
pop ecx
mov dword [0x44fce8], eax
mov eax, dword [0x44fce8]
cmp eax, ebx
je 0x418f30
cmp dword [0x44fcec], ebx
je 0x418f30
push eax
call fcn.00412f3f
push dword [0x44fcec]
mov esi, eax
call fcn.00412f3f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x418f30
test edi, edi
je 0x418f30
call esi
test eax, eax
je 0x418f27
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x418f27
test byte [ebp - 0xc], 1
jne 0x418f30
or dword [ebp + 0x10], 0x200000
jmp 0x418f69
mov eax, dword [0x44fce0]
cmp eax, ebx
je 0x418f69
push eax
call fcn.00412f3f
pop ecx
test eax, eax
je 0x418f69
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x418f69
mov eax, dword [0x44fce4]
cmp eax, ebx
je 0x418f69
push eax
call fcn.00412f3f
pop ecx
test eax, eax
je 0x418f69
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44fcdc]
call fcn.00412f3f
pop ecx
test eax, eax
je 0x418f89
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x418f8b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret