joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b0c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402b65
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.KERNEL32.DLL_GetCommandLineA
lea edx, [ebp - 8]
call fcn.004029a8
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004029a8
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402b4f
inc ebx
jmp 0x402b38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402b6c
lea eax, [ebp - 8]
call fcn.004038b0
ret

Function at 0x402b74
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004038b0
test esi, esi
jne 0x402bab
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004039a0
jmp 0x402bcc
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.004029a8
mov dword [esp], eax
test esi, esi
je 0x402bcc
cmp dword [ebx], 0
je 0x402bcc
dec esi
jmp 0x402bb3
add esp, 0x10c
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40d008], 0x8088405
inc edx
mov dword [ebx + 0x40d008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402e0c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40d014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402ea4
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402e84
xor eax, eax
push ebp
push 0x402e7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402ec0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e84
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x40d014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40d014], ax
mov esp, ebp
pop ebp
ret

Function at 0x4036b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x418034], 0
je 0x403711
cmp word [0x418208], 0xd7b2
jne 0x4036d9
cmp dword [0x418210], 0
jbe 0x4036d9
mov eax, 0x418204
call dword [fcn.00418220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40d05c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403738
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x40d020], 0
jne 0x40372d
push 0
push 0x40d054
push 0x40d05c
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x40386c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402854
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x418035], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403834
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x404790
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4047f6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403af4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d00
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4047e0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4047fd
lea eax, [ebp - 0x10]
call fcn.004038b0
ret

Function at 0x4051fc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00403d10
xor eax, eax
push ebp
push 0x405307
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.00405198
mov esi, eax
test esi, esi
jle 0x4052e9
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00403d80
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403d20
push eax
push edi
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
jne 0x4052e9
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00403b20
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.00403d80
cmp dword [ebp - 0xc], 0
jne 0x4052bb
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
sete bl
jmp 0x4052e0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403d20
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0x14]
push eax
call sub.ADVAPI32.DLL_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40530e
lea eax, [ebp - 0xc]
call fcn.004038b0
lea eax, [ebp - 4]
call fcn.004038b0
ret
Function at 0x405418
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00403d10
xor eax, eax
push ebp
push 0x4054db
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.00405198
mov esi, eax
test esi, esi
jle 0x4054c0
lea eax, [ebp - 8]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00403d80
lea eax, [ebp - 0xc]
push eax
push 0x20006
push 0
mov eax, dword [ebp - 8]
call fcn.00403d20
push eax
push edi
call sub.ADVAPI32.DLL_RegOpenKeyExA_1
test eax, eax
jne 0x4054c0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00403b20
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.00403d80
mov eax, dword [ebp - 8]
call fcn.00403d20
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegDeleteValueA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4054e2
lea eax, [ebp - 8]
mov edx, 2
call fcn.004038d4
ret

Function at 0x405550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x40563d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x405654
call fcn.00403f20
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call fcn.004054ec
push eax
push esi
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x40561e
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.004040cc
mov esi, eax
push esi
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x40561e
mov eax, dword [ebp - 0x14]
dec eax
sub eax, 2
jae 0x40561e
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004042c8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x40561e
mov eax, dword [ebp - 0x10]
call fcn.004040cc
call fcn.0040553c
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.004042c8
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.00403f20
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405644
lea eax, [ebp - 0x10]
call fcn.00403ee4
ret
Function at 0x405fc4
Capabilities:
Create thread

Disassembly:
ret
call fcn.004060b3
pop eax
pop edx
pop dword [0x41a838]
pop ecx
test edx, edx
push eax
je 0x405fc3
push ebx
push esi
push edi
push ebp
mov ebx, 0x418828
mov ebp, 0x41a84c
xor eax, eax
mov dword [ebp - 0x10], eax
test cl, 1
mov esi, 0x405dd0
jne 0x405fff
test cl, 2
lea esi, [esi + 0xc]
jne 0x405fff
lea esi, [esi - 0x14]
test cl, 8
setne byte [ebp - 0x18]
and cl, 0x10
mov byte [ebp - 0x17], cl
mov edi, ebp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, edx
cmp dword [ebp - 4], eax
jne 0x40601e
mov word [ebp - 4], 0x8000
push eax
push eax
push eax
push eax
push eax
push eax
push 0x405db8
push 0xffffffffffffffff
push ebx
call sub.WINMM.DLL_waveOutOpen
call sub.KERNEL32.DLL_HeapCreate
test eax, eax
mov dword [ebx - 8], eax
je 0x40604b
mov dword [ebp - 0xc], esi
call fcn.00406840
xchg edi, eax
call dword [ebp + 8]
test edi, edi
je 0x4060b7
mov esi, 0x42a85c
mov dword [esi + 4], 0x10000
or dword [esi + 0x14], 0xffffffff
push 0xc
mov dword [esi], 0x41a85c
pop dword [esi + 0x10]
push 0x20
push esi
push dword [ebx]
call sub.WINMM.DLL_waveOutPrepareHeader
xor edi, edi
call fcn.00406174
cmp dword [ebx + 4], edi
jne 0x406074
mov dword [ebx + 8], edi
push 0x20
push esi
push dword [ebx]
call sub.WINMM.DLL_waveOutWrite
test eax, eax
jne 0x4060b7
push ebp
push edi
push edi
push 0x406120
push edi
push edi
call sub.KERNEL32.DLL_CreateThread_1
test eax, eax
mov dword [ebx - 4], eax
je 0x4060b7
push 0xf
push eax
call sub.KERNEL32.DLL_SetThreadPriority
xchg ebx, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov ebp, 0x418824
mov eax, dword [ebp]
test eax, eax
je 0x4060d3
mov dword [ebp + 0xc], eax
push eax
push ebp
push eax
call sub.KERNEL32.DLL_WaitForSingleObject_1
call sub.KERNEL32.DLL_CloseHandle_1
xor ebx, ebx
mov dword [ebp], ebx
mov edi, dword [ebp + 4]
mov dword [ebp + 8], ebx
test edi, edi
je 0x4060fe
mov dword [ebp + 4], ebx
push edi
push 0x20
push 0x42a85c
push edi
push edi
call sub.WINMM.DLL_waveOutReset
call sub.WINMM.DLL_waveOutUnprepareHeader
call sub.WINMM.DLL_waveOutClose
mov eax, dword [ebp - 4]
test eax, eax
je 0x40611b
mov dword [ebp - 4], ebx
push eax
call sub.KERNEL32.DLL_HeapDestroy
xchg ebx, eax
mov ecx, 0x23
mov edi, 0x42a87c
rep stosd dword es:[edi], eax
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x407b70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
mov ebx, eax
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x44
call fcn.00402c58
mov dword [ebp - 0x44], 0x44
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
mov eax, ebx
call fcn.004040cc
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessW
test eax, eax
je 0x407bf9
xor eax, eax
push ebp
push 0x407bf2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffffffffffffffff
mov eax, dword [ebp - 0x54]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407bf9
mov eax, dword [ebp - 0x54]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x50]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004040cc
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov dword [0x42a93c], eax
cmp dword [0x42a93c], 0xffffffff
je 0x407cd3
test byte [0x42a93c], 0x10
je 0x407cd7
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x407cdc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00404310
mov eax, dword [ebp - 8]
call fcn.00403d10
xor eax, eax
push ebp
push 0x407d83
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.004040cc
push eax
call sub.KERNEL32.DLL_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407d5e
push 0
push 0
push 0
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00403b20
push eax
lea eax, [ebp - 8]
call fcn.00403d78
push eax
push ebx
call sub.KERNEL32.DLL_WriteFile_1
push ebx
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0xc], 0
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407d8a
lea eax, [ebp - 8]
call fcn.004038b0
lea eax, [ebp - 4]
call fcn.00403ee4
ret

Function at 0x407ee4
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push 0xffffffffffffffff
push 0x26
lea eax, [esp + 8]
push eax
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderPathW
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.004040a0
add esp, 0x20c
pop ebx
ret

Function at 0x407f14
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push esp
push 0x104
call sub.KERNEL32.DLL_GetTempPathW
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.004040a0
add esp, 0x20c
pop ebx
ret
Function at 0x407f40
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403d10
xor eax, eax
push ebp
push 0x40808b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x40809c
call sub.USER32.DLL_FindWindowA
mov esi, eax
test esi, esi
jne 0x407fcd
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.00402c58
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov eax, 0x4080ac
mov dword [ebp - 0x34], eax
mov eax, 0x4080b4
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x40]
push eax
call sub.SHELL32.DLL_ShellExecuteExA
push 0xc8
mov eax, dword [ebp - 8]
push eax
call sub.USER32.DLL_WaitForInputIdle
push 0
push 0x40809c
call sub.USER32.DLL_FindWindowA
mov esi, eax
push 1
push esi
call sub.USER32.DLL_ShowWindow
push 0
push 0x4080c0
push 0
push esi
call sub.USER32.DLL_FindWindowExA
mov esi, eax
push esi
call sub.USER32.DLL_SetForegroundWindow
mov ebx, 0x1e
push 0
push 0x25
push pe_nt_image_headers32
push esi
call sub.USER32.DLL_SendMessageA
dec ebx
test ebx, ebx
jne 0x407ff1
push 0x1f4
call sub.KERNEL32.DLL_Sleep
push 0
push 0x27
push pe_nt_image_headers32
push esi
call sub.USER32.DLL_SendMessageA
push 0x1f4
call sub.KERNEL32.DLL_Sleep
mov ebx, 1
mov eax, dword [ebp - 4]
call fcn.00403b20
mov edi, eax
mov eax, dword [ebp - 4]
mov al, byte [eax + ebx - 1]
cmp al, 0x5c
jne 0x40805d
push 0
push 0x27
push pe_nt_image_headers32
push esi
call sub.USER32.DLL_SendMessageA
push 0x1f4
call sub.KERNEL32.DLL_Sleep
jmp 0x408070
push 0
and eax, 0xff
push eax
push 0x102
push esi
call sub.USER32.DLL_SendMessageA
inc ebx
cmp edi, ebx
jne 0x408037
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408092
lea eax, [ebp - 4]
call fcn.004038b0
ret

Function at 0x4080d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403d10
xor eax, eax
push ebp
push 0x408177
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004038b0
push 0x408188
lea eax, [ebp - 4]
call fcn.00403d78
push eax
mov eax, dword [0x418650]
push eax
call sub.KERNEL32.DLL_FindResourceA
mov ebx, eax
push ebx
mov eax, dword [0x418650]
push eax
call sub.KERNEL32.DLL_SizeofResource
mov edi, eax
push ebx
mov eax, dword [0x418650]
push eax
call sub.KERNEL32.DLL_LoadResource
mov ebx, eax
push ebx
call sub.KERNEL32.DLL_LockResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x408161
mov eax, esi
mov edx, edi
call fcn.00403e50
mov eax, esi
call fcn.00403d78
mov ecx, edi
mov edx, dword [ebp - 8]
call fcn.00404d6c
push ebx
call sub.KERNEL32.DLL_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40817e
lea eax, [ebp - 4]
call fcn.004038b0
ret
Function at 0x408694
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00404310
xor eax, eax
push ebp
push 0x408713
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x42a94c]
xor edx, edx
call fcn.004041f8
jne 0x4086dc
push 9
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004040cc
push eax
push 0x408720
push 0
call sub.SHELL32.DLL_ShellExecuteW
jmp 0x4086fd
push 9
push 0
mov eax, dword [ebp - 4]
call fcn.004040cc
push eax
mov eax, dword [0x42a94c]
call fcn.004040cc
push eax
push 0
push 0
call sub.SHELL32.DLL_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40871a
lea eax, [ebp - 4]
call fcn.00403ee4
ret

Function at 0x40872c
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xffffff7c
mov ebx, eax
mov dword [esp], 0x80
push esp
lea eax, [esp + 8]
push eax
call sub.ADVAPI32.DLL_GetUserNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x80
call fcn.00403af4
add esp, 0x84
pop ebx
ret

Function at 0x408760
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x103
lea eax, [esp + 4]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
mov eax, esp
call fcn.00405700
mov edx, eax
mov eax, ebx
call fcn.00403e50
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00403af4
add esp, 0x108
pop ebx
ret
Function at 0x40890c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403d10
xor eax, eax
push ebp
push 0x408acc
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
xor edx, edx
mov eax, 2
call fcn.004050a0
mov esi, eax
mov dword [ebp - 0x12c], 0x128
lea edx, [ebp - 0x12c]
mov eax, esi
call fcn.004050c0
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x408a78
lea eax, [ebp - 0x13c]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00404088
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x138]
call fcn.00407e34
mov edx, dword [ebp - 0x138]
lea eax, [ebp - 0x134]
call fcn.00403b0c
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00407a5c
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x140]
mov eax, dword [ebp - 4]
call fcn.00407a5c
mov edx, dword [ebp - 0x140]
pop eax
call fcn.00403c6c
je 0x408a4b
lea eax, [ebp - 0x148]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00403af4
mov eax, dword [ebp - 0x148]
lea edx, [ebp - 0x144]
call fcn.00407a5c
mov eax, dword [ebp - 0x144]
push eax
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 4]
call fcn.00407a5c
mov edx, dword [ebp - 0x14c]
pop eax
call fcn.00403c6c
jne 0x408a65
push 0
mov eax, dword [ebp - 0x124]
push eax
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
push eax
call sub.KERNEL32.DLL_TerminateProcess
mov edi, eax
lea edx, [ebp - 0x12c]
mov eax, esi
call fcn.004050e0
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x408995
push esi
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ad3
lea eax, [ebp - 0x14c]
mov edx, 4
call fcn.004038d4
lea eax, [ebp - 0x13c]
mov edx, 2
call fcn.00403efc
lea eax, [ebp - 0x134]
mov edx, 2
call fcn.004038d4
lea eax, [ebp - 4]
call fcn.004038b0
ret
Function at 0x408bc4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00404310
xor eax, eax
push ebp
push 0x408cff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004040cc
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x408c22
mov eax, ebx
mov edx, 0x408d18
call fcn.00403904
jmp 0x408cdc
mov eax, esi
call fcn.00402854
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push esi
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x408d20
mov eax, dword [ebp - 8]
push eax
call sub.VERSION.DLL_VerQueryValueW
mov edi, dword [ebp - 0xc]
mov edx, ebx
mov eax, dword [edi + 8]
shr eax, 0x10
call fcn.00407afc
push dword [ebx]
push 0x408d2c
lea edx, [ebp - 0x1c]
mov eax, dword [edi + 8]
and eax, 0xffff
call fcn.00407afc
push dword [ebp - 0x1c]
mov eax, ebx
mov edx, 3
call fcn.00403be0
push dword [ebx]
push 0x408d2c
lea edx, [ebp - 0x20]
mov eax, dword [edi + 0xc]
shr eax, 0x10
call fcn.00407afc
push dword [ebp - 0x20]
mov eax, ebx
mov edx, 3
call fcn.00403be0
push dword [ebx]
push 0x408d2c
lea edx, [ebp - 0x24]
mov eax, dword [edi + 0xc]
and eax, 0xffff
call fcn.00407afc
push dword [ebp - 0x24]
mov eax, ebx
mov edx, 3
call fcn.00403be0
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00402884
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d06
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004038d4
lea eax, [ebp - 4]
call fcn.00403ee4
ret
Function at 0x409dec
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x409df4
xor eax, eax
push ebp
push 0x409f97
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x1c]
mov eax, 0x409fac
call fcn.004080d0
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
call fcn.004040bc
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00408228
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.00403b0c
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
call fcn.0040872c
mov ecx, dword [ebp - 0x20]
mov edx, 0x409fbc
pop eax
call fcn.004087a0
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00408f80
lea eax, [ebp - 0x24]
call fcn.00407f14
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 4]
mov ecx, 0x409fcc
call fcn.00404148
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
call fcn.00403b0c
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00407cdc
test al, al
je 0x409ef0
lea eax, [ebp - 0x30]
call fcn.00408760
lea eax, [ebp - 0x30]
mov edx, 0x409ff4
call fcn.00403b28
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
call fcn.004040bc
mov eax, dword [ebp - 0x2c]
call fcn.00407cac
test al, al
je 0x409ed8
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 4]
mov edx, 0x40a004
call fcn.00404148
mov eax, dword [ebp - 0x34]
call fcn.00407b70
jmp 0x409ef0
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 4]
mov edx, 0x40a028
call fcn.00404148
mov eax, dword [ebp - 0x38]
call fcn.00407b70
push 0x37
call sub.KERNEL32.DLL_Sleep
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 4]
call fcn.00403b0c
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.004046ec
mov eax, dword [ebp - 0x3c]
call fcn.004040cc
push eax
call sub.KERNEL32.DLL_DeleteFileW
call fcn.00409cb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409f9e
lea eax, [ebp - 0x40]
call fcn.004038b0
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00403efc
lea eax, [ebp - 0x30]
call fcn.004038b0
lea eax, [ebp - 0x2c]
call fcn.00403ee4
lea eax, [ebp - 0x28]
call fcn.004038b0
lea eax, [ebp - 0x24]
call fcn.00403ee4
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004038d4
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00403efc
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004038d4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403efc
ret