joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd651b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00d65140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00d65140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00d65140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00d65140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xd65bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xd65c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd7787c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xd65c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xd65c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401350
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x3c], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x24], ecx
jmp 0x401382
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x18], 0
je 0x4013bf
cmp dword [ebp - 0x3c], 0
jne 0x4013bf
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp + 0xc]
jne 0x4013a4
jmp 0x40137a
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401110
add esp, 0x10
mov dword [ebp - 0x3c], eax
jmp 0x40137a
cmp dword [ebp - 0x3c], 0
jne 0x40140d
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401420
add esp, 8
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x401406
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
call ecx
lea edx, [ebp - 0x3c]
push edx
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
call eax
jmp 0x40140d
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x3c]
mov esp, ebp
pop ebp
ret
Function at 0x401420
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x48], 0xffffffff
mov dword [ebp - 0x50], 0
jmp 0x401446
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x50]
movsx edx, byte [ecx]
test edx, edx
je 0x40146a
cmp dword [ebp - 0x50], 0x40
jae 0x40146a
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x50]
mov dl, byte [eax]
mov byte [ebp + ecx - 0x40], dl
jmp 0x40143d
mov eax, dword [ebp - 0x50]
mov byte [ebp + eax - 0x40], 0
mov ecx, dword [ebp - 0x50]
movsx edx, byte [ebp + ecx - 0x44]
cmp edx, 0x2e
je 0x4014d4
mov eax, dword [ebp - 0x50]
mov byte [ebp + eax - 0x40], 0x2e
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
mov byte [ebp + edx - 0x40], 0x64
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov byte [ebp + ecx - 0x40], 0x6c
mov edx, dword [ebp - 0x50]
add edx, 1
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov byte [ebp + eax - 0x40], 0x6c
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
mov byte [ebp + edx - 0x40], 0
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
mov ecx, dword fs:[0x30]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x6c], edx
jmp 0x4014fa
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax]
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x48], 0
je 0x401571
mov edx, dword [ebp - 0x6c]
cmp dword [edx + 0x18], 0
je 0x401571
cmp dword [ebp - 0x74], 0
jne 0x401571
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x5c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x78]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jne 0x40153b
jmp 0x4014f2
mov ecx, dword [ebp - 0x5c]
add ecx, dword [ebp - 0x70]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x5c]
add eax, dword [edx + 0xc]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
push ecx
lea edx, [ebp - 0x40]
push edx
call section..text
add esp, 8
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x40156f
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x74], eax
jmp 0x4014f2
cmp dword [ebp - 0x74], 0
jne 0x40159b
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x64]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
call ecx
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x64]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
call edx
mov eax, dword [ebp - 0x74]
mov esp, ebp
pop ebp
ret
Function at 0x401890
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
jmp 0x4018c2
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x18], 0
je 0x4018f9
cmp dword [ebp - 0x10], 0
jne 0x4018f9
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004015b0
add esp, 0x18
mov dword [ebp - 0x10], eax
jmp 0x4018ba
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x556203
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.005550f3
and dword [ebp - 4], 0
cmp dword [0x57a450], 0
mov ebx, eax
jne 0x5562b4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x556365
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x556365
push eax
call fcn.00555081
mov dword [esp], 0x55ae44
push edi
mov dword [0x57a450], eax
call esi
push eax
call fcn.00555081
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x57a454], eax
call esi
push eax
call fcn.00555081
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x57a458], eax
call esi
push eax
call fcn.00555081
pop ecx
mov dword [0x57a460], eax
test eax, eax
je 0x5562b4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00555081
pop ecx
mov dword [0x57a45c], eax
mov eax, dword [0x57a45c]
cmp eax, ebx
je 0x55630c
cmp dword [0x57a460], ebx
je 0x55630c
push eax
call fcn.005550fc
push dword [0x57a460]
mov esi, eax
call fcn.005550fc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x55630c
test edi, edi
je 0x55630c
call esi
test eax, eax
je 0x556303
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x556303
test byte [ebp - 0xc], 1
jne 0x55630c
or dword [ebp + 0x10], 0x200000
jmp 0x556345
mov eax, dword [0x57a454]
cmp eax, ebx
je 0x556345
push eax
call fcn.005550fc
pop ecx
test eax, eax
je 0x556345
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x556345
mov eax, dword [0x57a458]
cmp eax, ebx
je 0x556345
push eax
call fcn.005550fc
pop ecx
test eax, eax
je 0x556345
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x57a450]
call fcn.005550fc
pop ecx
test eax, eax
je 0x556365
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x556367
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x557d27
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x577688]
jne 0x557d31
repz ret
jmp fcn.00559225
Function at 0x4025f3
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp dword [ebp + 0x10], 0
je 0x402613
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
cmp dword [ebp + 0xc], 0
je 0x40261f
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
test ebx, ebx
je 0x402628
cmp byte [ebx], 0
jne 0x40262f
xor eax, eax
jmp 0x4026e9
xor ecx, ecx
mov dword [ebp - 8], ecx
xor esi, esi
jmp 0x402696
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x402661
cmp dword [ebp - 4], 0
je 0x402661
cmp dword [ebp - 8], 0
jne 0x402661
cmp dword [ebp + 0x10], 0
je 0x40265c
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov dword [ebp - 8], edx
jmp 0x402695
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x402673
xor ecx, ecx
mov cl, al
cmp ecx, 0xa
jne 0x402680
and eax, 0xff
cmp eax, 0xd
jne 0x40269b
inc ebx
jmp 0x40269b
mov byte [edx], al
inc edx
mov eax, dword [ebp + 8]
add eax, 0xfffffffe
cmp esi, eax
jle 0x402695
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 1
jmp 0x40269b
inc esi
cmp byte [ebx], 0
jne 0x402638
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x4026e7
mov edx, dword [ebp - 4]
mov byte [edx], 0
cmp dword [ebp - 8], 0
je 0x4026e7
push 0x1000
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 8]
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov ecx, dword [ebp + 8]
dec ecx
lea edx, [ebp - 0x1008]
mov eax, dword [ebp - 4]
call fcn.0041022c
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov byte [edx + ecx - 1], 0
mov eax, dword [ebp - 8]
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4026f1
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7c0
push ebx
push esi
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, ebx
call fcn.0041019c
cmp eax, 0x3f6
jae 0x402933
lea eax, [ebp - 0x40]
mov ecx, 0x3c
xor edx, edx
call fcn.00410114
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x5c0
xor eax, eax
mov al, byte [ebx]
cmp eax, 0x22
jne 0x40273e
lea edx, [ebx + 1]
jmp 0x402740
mov edx, ebx
mov dword [ebp - 0x30], edx
xor eax, eax
jmp 0x402797
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x22
jne 0x40276a
jmp 0x402763
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x402763
mov byte [ebx + eax], 0x20
jmp 0x40276a
inc eax
cmp byte [ebx + eax], 0
jne 0x402753
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x20
je 0x40277f
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x2f
jne 0x402796
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x20
jne 0x40278d
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [ebp - 0x2c], eax
jmp 0x40279d
inc eax
cmp byte [ebx + eax], 0
jne 0x402747
cmp byte [0x415d0a], 0
je 0x4027ad
mov dword [ebp - 0x2c], 0x415d0a
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x30]
call fcn.00406430
mov esi, eax
test esi, esi
je 0x4027d9
mov edx, str..inf
mov eax, esi
call fcn.00410298
test eax, eax
jne 0x4027d9
mov dword [ebp - 0x34], str.Install
xor edx, edx
mov eax, dword [ebp - 0x30]
call fcn.00407148
mov byte [ebp - 2], al
cmp byte [ebp - 2], 0
je 0x402803
lea edx, [ebp - 0x440]
mov eax, dword [ebp - 0x30]
call fcn.00407214
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x30], ecx
cmp byte [ebp - 1], 0
je 0x402842
cmp byte [ebp - 2], 0
jne 0x402842
lea eax, [ebp - 0x840]
mov edx, dword [ebp - 0x30]
call fcn.00410218
mov edx, str..exe
lea eax, [ebp - 0x840]
call fcn.004102e0
lea eax, [ebp - 0x840]
xor edx, edx
call fcn.00407148
test al, al
je 0x402933
lea ecx, [ebp - 0x40]
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x402872
and dword [ebp - 0x3c], 0xfffffbff
mov dword [ebp - 0x30], ebx
lea edx, [ebp - 0x40]
push edx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x402933
xor ebx, ebx
cmp byte [0x415900], 0
jne 0x40288b
cmp byte [ebp - 1], 0
je 0x4028d4
cmp dword [0x41618c], 0
je 0x4028a3
push dword [0x41618c]
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x4028a7
xor eax, eax
jmp 0x4028ac
mov eax, 1
test eax, eax
je 0x4028bf
push 0
push dword [0x41618c]
call sub.USER32.DLL_ShowWindow
mov bl, 1
push 0x7d0
push dword [ebp - 8]
call sub.USER32.DLL_WaitForInputIdle
mov eax, dword [ebp - 8]
call fcn.00402939
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
test esi, esi
je 0x4028f0
mov edx, str..exe
mov eax, esi
call fcn.00410298
test eax, eax
je 0x402922
cmp byte [0x415900], 0
je 0x40290b
cmp byte [ebp - 1], 0
jne 0x40290b
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x402922
cmp byte [ebp - 1], 0
mov edx, 0xc8
jne 0x40291c
add edx, 0x320
push edx
call sub.KERNEL32.DLL_Sleep
test bl, bl
je 0x402933
push 1
push dword [0x41618c]
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402969
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [0x415044], 0
jne 0x402a05
lea eax, [ebp - 0x400]
call fcn.004060f4
mov ecx, 6
mov edx, dword [str.RarSFX]
call fcn.004102bc
test eax, eax
jne 0x402a05
push 0x415248
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [ebp - 0x400]
call fcn.0041019c
mov byte [ebp + eax - 0x3ff], 0
lea eax, [ebp - 0x420]
mov ecx, 0x1e
xor edx, edx
call fcn.00410114
mov dword [ebp - 0x41c], 3
mov word [ebp - 0x410], 0x14
lea eax, [ebp - 0x400]
mov dword [ebp - 0x418], eax
lea edx, [ebp - 0x420]
push edx
call sub.SHELL32.DLL_SHFileOperationA
mov esp, ebp
pop ebp
ret

Function at 0x402b04
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
push ebx
mov ebx, eax
cmp byte [0x415908], 0
je 0x402b7f
cmp byte [0x417644], 0
je 0x402b7f
lea edx, [ebp - 0x408]
mov eax, 0x417644
call fcn.00402ac9
lea ecx, [ebp - 8]
lea eax, [ebp - 4]
push ecx
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
jne 0x402b7f
mov eax, ebx
call fcn.0041019c
inc eax
lea edx, [ebp - 0x408]
push eax
push ebx
push 1
push 0
push edx
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402b84
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f4
push ebx
mov ebx, eax
cmp byte [0x415908], 0
je 0x402c01
lea edx, [ebp - 0x40c]
mov eax, ebx
call fcn.00402ac9
lea ecx, [ebp - 4]
push ecx
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402c01
mov dword [ebp - 8], 0x400
lea eax, [ebp - 8]
lea edx, [ebp - 0x80c]
push eax
push edx
lea ecx, [ebp - 0xc]
lea eax, [ebp - 0x40c]
push ecx
push 0
push eax
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x402bf9
lea edx, [ebp - 0x80c]
mov eax, ebx
call fcn.00410218
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402cc8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push 0x64
lea eax, [ebp - 0x64]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [ebp - 0x64]
mov esp, ebp
pop ebp
ret
Function at 0x402e3c
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9ec
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
push 0
call sub.OLE32.DLL_OleInitialize
lea eax, [ebp - 8]
push eax
push 0x415850
push 1
push 0
push 0x415860
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x402f3b
push esi
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x50]
push edi
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp dword [ebp + 0xc], 0
je 0x402e9f
push 0
push dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x44]
cmp dword [ebp + 8], 0
je 0x402eb1
push dword [ebp + 8]
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x2c]
lea eax, [ebp - 0x40c]
mov edx, esi
call fcn.00410218
lea eax, [ebp - 0x40c]
call fcn.00406538
cmp byte [ebp - 0x40c], 0
je 0x402ee2
lea edx, [ebp - 0x40c]
push edx
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
lea edx, [ebp - 0xc]
push edx
push 0x415880
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x402f32
push 0x104
lea edx, [ebp - 0x614]
push edx
push 0xffffffffffffffff
push dword [ebp - 4]
push 0
push 0
call sub.KERNEL32.DLL_MultiByteToWideChar
push 1
lea ecx, [ebp - 0x614]
push ecx
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
test eax, eax
jl 0x402f29
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
call sub.OLE32.DLL_OleUninitialize
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402f4c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, edx
mov ebx, eax
lea eax, [ebp - 4]
push eax
call sub.SHELL32.DLL_SHGetMalloc
lea edx, [ebp - 8]
push edx
push esi
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
push ebx
push dword [ebp - 8]
call sub.SHELL32.DLL_SHGetPathFromIDListA
push dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4030b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
push 0x67
push dword [0x41618c]
call sub.USER32.DLL_GetDlgItem
mov esi, eax
cmp byte [0x415018], 0
jne 0x40310f
mov eax, dword [0x417a44]
call fcn.00404794
push 5
push esi
call sub.USER32.DLL_ShowWindow
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
push 0x415099
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
mov byte [0x415018], 1
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
mov dword [ebp - 0x3c], 0x3c
lea edx, [ebp - 0x3c]
push edx
push 0
push 0x43a
push esi
call sub.USER32.DLL_SendMessageA
mov byte [ebp - 0x23], 0
mov dword [ebp - 0x38], 1
test bl, bl
je 0x403164
and dword [ebp - 0x34], 0xbfffffff
or dword [ebp - 0x34], 1
mov dword [ebp - 0x28], 0xa0
or dword [ebp - 0x38], 0x40000000
lea ecx, [ebp - 0x3c]
push ecx
push 1
push 0x444
push esi
call sub.USER32.DLL_SendMessageA
push edi
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
test bl, bl
je 0x4031b8
or dword [ebp - 0x34], 0x40000000
and dword [ebp - 0x34], 0xfffffffe
lea eax, [ebp - 0x3c]
push eax
push 1
push 0x444
push esi
call sub.USER32.DLL_SendMessageA
push 0x4150c0
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403b74
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push 0
call sub.OLE32.DLL_OleInitialize
mov eax, 0x41c1c8
call fcn.00410af0
call sub.KERNEL32.DLL_GetCommandLineA
mov ebx, eax
test ebx, ebx
je 0x403ba9
mov eax, ebx
call fcn.00403d4c
push ebx
push str.sfxcmd
call sub.KERNEL32.DLL_SetEnvironmentVariableA
push 0x400
push 0x416a3c
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x416a3c
push str.sfxname
call sub.KERNEL32.DLL_SetEnvironmentVariableA
call fcn.00405830
test eax, eax
je 0x403be5
push 0x400
push 0x416e3c
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x403bee
mov word [0x416e3c], 0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
mov dword [0x41c1c0], eax
push 0x64
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x41763c], eax
push 0x65
push dword [0x41c1c0]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x417640], eax
lea eax, [ebp - 8]
call fcn.00405ab4
mov edx, 0x416a3c
mov eax, 0x41c1ac
call fcn.004050ac
lea eax, [ebp - 0x20]
call fcn.00404600
lea eax, [ebp - 0x38]
call fcn.00404600
push 0
push 0x40118b
lea edx, [ebp - 0x20]
push 0
mov dword [0x417a44], edx
lea ecx, [ebp - 0x38]
push str.STARTDLG
push ebx
mov dword [0x417a48], ecx
call sub.USER32.DLL_DialogBoxParamA
xor eax, eax
xor edx, edx
mov dword [0x41618c], eax
mov dword [0x417a48], edx
mov dword [0x417a44], edx
mov edx, 2
lea eax, [ebp - 0x38]
call fcn.00404624
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404624
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405b30
cmp byte [0x415900], 0
je 0x403cb2
call fcn.00402969
mov eax, 0x4169ac
mov ecx, 0x80
xor edx, edx
call fcn.00410114
cmp dword [0x415054], 0
jle 0x403cd6
mov eax, dword [0x415048]
call fcn.00410098
push dword [0x41763c]
call sub.GDI32.DLL_DeleteObject
cmp dword [0x417640], 0
je 0x403cf5
push dword [0x417640]
call sub.GDI32.DLL_DeleteObject
cmp dword [0x41c1a0], 0
jne 0x403d16
cmp dword [0x416194], 0
je 0x403d16
mov eax, 0x41c1a0
mov edx, 0xff
call fcn.0040d0b0
mov dword [0x416194], 2
cmp dword [0x41505c], 0
je 0x403d33
mov eax, dword [0x41505c]
call fcn.00402939
call sub.OLE32.DLL_OleUninitialize
push dword [0x41c1a0]
call sub.KERNEL32.DLL_ExitProcess
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403f1c
Capabilities:
Hide graphical window

Disassembly:
mov dword [0x41619c], 1
cmp dword [0x41618c], 0
je 0x403f47
mov eax, 0x7d
call fcn.00402c0c
push eax
push 1
push dword [0x41618c]
call sub.USER32.DLL_SetDlgItemTextA
xor edx, edx
mov dword [0x4161a0], edx
mov dword [0x4161a4], 1
cmp dword [0x41618c], 0
je 0x403fa5
push 1
push dword [0x41618c]
call sub.USER32.DLL_ShowWindow
cmp dword [0x415054], 0
jne 0x403f9c
cmp byte [0x415018], 0
jne 0x403f9c
push 0
push 1
push 0x111
push dword [0x41618c]
call sub.USER32.DLL_SendMessageA
jmp 0x403f9c
call fcn.00402c88
cmp dword [0x416194], 2
jne 0x403f97
cmp byte [0x415900], 0
je 0x403fb3
call fcn.00402969
ret