joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4067a2
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004115a0
push esi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x4157c0
push esi
lea eax, [ebp - 0x1004]
push eax
push 0x412535
push dword [ebp + 8]
push 0x4158c8
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp byte [ebp - 0x1004], 0
pop esi
je 0x40680e
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_strcpy
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x406812
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004115a0
push esi
push edi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x4157c0
push edi
push esi
lea eax, [ebp - 0x1004]
push eax
push 0x412535
push dword [ebp + 8]
mov esi, 0x4158c8
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp byte [ebp - 0x1004], 0
jne 0x40687a
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
jmp 0x40687c
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x406b72
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.00404e4e
test eax, eax
pop ecx
je 0x406bf9
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x4157c0
push edi
call sub.msvcrt.dll_strcpy
push str.general
mov esi, 0x4158c8
push esi
call sub.msvcrt.dll_strcpy
add esp, 0x10
push edi
push 0
push 0x412bbc
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
dec eax
neg eax
sbb eax, eax
inc eax
push 0x3f
push str.charset
mov esi, 0x415910
mov dword [0x41590c], eax
call fcn.0040677e
push 0x3f
push str.TranslatorName
mov esi, 0x415950
call fcn.0040677e
push 0xff
push str.TranslatorURL
mov esi, 0x415990
call fcn.0040677e
add esp, 0x18
pop edi
pop esi
ret

Function at 0x4099a5
Capabilities:
Delete file
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
lea edi, [ebp - 0x104]
mov esi, eax
call fcn.00404cff
push 1
push 2
mov eax, edi
push eax
call fcn.0040971e
test eax, eax
je 0x409a07
push dword [esi + 0x108]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4099e8
mov eax, edi
push eax
call fcn.00404ba3
pop ecx
jmp 0x4099ee
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x4099fa
push eax
mov eax, esi
call fcn.00401a57
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop edi
pop esi
leave
ret
Function at 0x40a2bd
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push ebx
push esi
push edi
push 1
mov ebx, eax
call fcn.0040acf8
mov esi, 0x104
xor ebx, ebx
push esi
lea eax, [ebp - 0x267]
push ebx
push eax
mov byte [ebp - 0x268], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x15f]
push ebx
push eax
mov byte [ebp - 0x160], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x40
lea eax, [ebp - 0x54]
push ebx
push eax
mov dword [ebp - 0x58], ebx
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x268]
add esp, 0xc
push eax
call fcn.00404e63
pop ecx
lea eax, [ebp - 0x160]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x160]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x268]
push eax
mov dword [ebp - 0x58], 0x44
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40aab8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x46c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetSubMenu]
push edi
xor edi, edi
push edi
push dword [eax + 0x11c]
call esi
push 4
push eax
call esi
mov esi, eax
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp eax, edi
jle 0x40ab03
mov ebx, eax
push 0x400
push edi
push esi
call dword [sym.imp.USER32.dll_DeleteMenu]
dec ebx
jne 0x40aaf3
push 0x2c
lea eax, [esp + 0x20]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x30
pop edi
push 0x17
pop ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0x42
mov dword [esp + 0x28], 0xbdd7
call fcn.004062bc
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x18]
push eax
push 1
xor ebx, ebx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_InsertMenuItemA]
call esi
lea eax, [esp + 0x18]
push eax
push 1
push ebx
push dword [esp + 0x20]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x38], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x30], 0x800
call esi
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x550]
cmp edi, ebx
mov dword [esp + 0x10], ebx
jle 0x40ac45
push 0x2c
lea eax, [esp + 0x50]
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x1c]
add eax, 0xbd74
push 0x3ff
mov dword [esp + 0x68], eax
lea eax, [esp + 0x89]
push ebx
push eax
mov dword [esp + 0x60], 0x30
mov dword [esp + 0x64], 0x42
mov byte [esp + 0x90], bl
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 8]
sub edi, eax
add esp, 0x18
add ecx, 0x534
dec edi
call fcn.00405cb3
cmp edi, 0xa
push eax
jge 0x40ac07
push edi
push str._d____s
lea eax, [esp + 0x84]
push 0x3ff
push eax
call sub.msvcrt.dll__snprintf
add esp, 0x14
jmp 0x40ac18
mov ebx, 0x3ff
lea edi, [esp + 0x7c]
call fcn.00404c84
pop ecx
xor ebx, ebx
lea eax, [esp + 0x78]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x48]
push eax
push 1
push ebx
push dword [esp + 0x20]
call esi
mov eax, dword [ebp + 8]
inc dword [esp + 0x10]
mov edi, dword [eax + 0x550]
cmp dword [esp + 0x10], edi
jl 0x40ab88
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40acf8
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
cmp dword [ebx + 0x54e4], 0
push esi
push edi
je 0x40ad4b
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
mov edi, 0x4135b8
lea esi, [ebp - 0xc]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
call fcn.0040fb52
lea eax, [ebp - 4]
push eax
call fcn.0040f97c
pop ecx
mov eax, esi
push eax
push ebx
call fcn.0040a8a4
call fcn.0040fb52
mov dword [ebp - 0xc], edi
call fcn.0040fb52
jmp 0x40ae80
mov edi, 0x104
push edi
lea eax, [ebp - 0x117]
push 0
push eax
mov byte [ebp - 0x118], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea esi, [ebp - 0x118]
call fcn.00404e75
call fcn.00404946
mov eax, esi
push str.regscanner.cfg
push eax
call sub.msvcrt.dll_strcat
mov esi, dword [ebx + 0x54dc]
pop ecx
pop ecx
push str._cfg
call fcn.004060f2
test eax, eax
jl 0x40ae6e
push edi
lea ecx, [ebp - 0x118]
push ecx
mov ecx, dword [ebx + 0x54dc]
inc eax
call fcn.004060e2
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x118]
push 0x5c
push eax
call sub.msvcrt.dll_strchr
test eax, eax
pop ecx
pop ecx
jne 0x40ae6e
push edi
push eax
mov byte [ebp - 0x220], al
lea eax, [ebp - 0x21f]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 0x327]
push 0
push eax
mov byte [ebp - 0x328], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
lea eax, [ebp - 0x220]
push eax
call sub.msvcrt.dll_strlen
mov esi, eax
pop ecx
lea eax, [ebp - 0x118]
push eax
call sub.msvcrt.dll_strlen
lea eax, [esi + eax + 1]
cmp eax, edi
pop ecx
jae 0x40ae52
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x328]
call fcn.00404f84
pop ecx
pop ecx
jmp 0x40ae59
mov byte [ebp - 0x328], 0
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x118]
push eax
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
push 1
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
push ebx
call fcn.0040a96e
pop edi
pop esi
leave
ret 4
Function at 0x40f15c
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x378
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
add esi, 0x2c
call fcn.00406221
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
push 0x124
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x370]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x374]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x374], 0x128
call sub.KERNEL32.DLL_Process32First
jmp 0x40f33b
mov eax, dword [ebp - 0x36c]
mov ecx, dword [ebp - 0x35c]
mov esi, dword [sym.imp.KERNEL32.DLL_OpenProcess]
push eax
push ebx
push 0x410
mov byte [ebp - 0x140], bl
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x38], ecx
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40f222
call fcn.004059ef
test eax, eax
je 0x40f2e5
push dword [ebp - 0x144]
push ebx
push 0x1000
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x40f2e5
mov esi, 0x104
push esi
lea eax, [ebp - 0x24b]
push ebx
push eax
mov byte [ebp - 0x24c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.0040f362
cmp byte [ebp - 0x24c], bl
je 0x40f261
cmp byte [ebp - 0x24c], 0x3f
jne 0x40f2b0
cmp dword [0x415e78], ebx
mov dword [ebp - 0x10], esi
jne 0x40f296
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp eax, ebx
je 0x40f296
push str.QueryFullProcessImageNameA
push eax
mov dword [0x415e78], 1
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x415e7c], eax
mov eax, dword [0x415e7c]
cmp eax, ebx
je 0x40f2b0
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x24c]
push ecx
push ebx
push dword [ebp - 8]
call eax
lea esi, [ebp - 0x24c]
lea edi, [ebp - 0x140]
call fcn.0040ed6d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 8]
call fcn.0040f09d
add esp, 0x14
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x38]
add edi, 0x2c
cmp esi, ebx
jl 0x40f33b
cmp esi, 0xffffffff
mov eax, dword [edi + 8]
jne 0x40f303
push dword [edi]
call sub.msvcrt.dll_free
jmp 0x40f314
push eax
push 0x130
lea eax, [edi + 4]
mov edx, esi
call fcn.00404cae
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [esi + 1]
cmp dword [ecx + 0x38], eax
jge 0x40f323
mov dword [ecx + 0x38], eax
mov edi, esi
imul edi, edi, 0x130
lea eax, [ecx + 0x2c]
add edi, dword [eax]
push 0x4c
pop ecx
lea esi, [ebp - 0x144]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x374]
push eax
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x40f1b3
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40f38a
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x40f3ec
push edi
push str.psapi.dll
call fcn.00405b68
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp], str.GetModuleBaseNameA
push eax
mov dword [esi], eax
call edi
push str.EnumProcessModules
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.EnumProcessModulesEx
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.GetModuleFileNameExA
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.EnumProcesses
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.GetModuleInformation
push dword [esi]
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x10], eax
pop edi
ret
Function at 0x40f896
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004115a0
xor eax, eax
cmp dword [ebp + 8], eax
push ebx
mov byte [ebp - 0x2004], al
je 0x40f8ea
push 0x2000
push eax
lea eax, [ebp - 0x2003]
push eax
call sub.msvcrt.dll_memset
push dword [edi]
lea ebx, [ebp - 0x2004]
push dword [ebp + 0x14]
call fcn.00405589
add esp, 0x14
push dword [ebp + 0x18]
mov eax, ebx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
jmp 0x40f92f
push esi
mov esi, 0x2000
push esi
push eax
lea eax, [ebp - 0x2003]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x2004]
push esi
push eax
push 0x412535
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push dword [ebp + 0x14]
lea ebx, [ebp - 0x2004]
push edi
call fcn.00405602
pop ecx
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x40f932
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x40f950
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040f84a
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov dword [esi], eax
pop ebp
ret

Function at 0x40fa19
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
call sub.msvcrt.dll_strlen
pop ecx
inc eax
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret

Function at 0x40fa3c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
je 0x40fa62
mov eax, dword [esi]
push 4
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop ebp
ret
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040f9a8
add esp, 0xc
test eax, eax
je 0x40fa7c
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
xor eax, eax
pop ebp
ret
Function at 0x41009e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
push edi
mov edi, 0x104
xor ebx, ebx
push edi
lea eax, [ebp - 0x167]
push ebx
push eax
mov byte [ebp - 0x168], bl
call sub.msvcrt.dll_memset
push edi
lea eax, [ebp - 0x26f]
push ebx
push eax
mov byte [ebp - 0x270], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x168]
push eax
call fcn.00404ffc
push str.regedit.exe
call sub.msvcrt.dll_strlen
mov esi, eax
lea eax, [ebp - 0x168]
push eax
call sub.msvcrt.dll_strlen
lea eax, [esi + eax + 1]
add esp, 0x24
cmp eax, edi
jae 0x410123
lea eax, [ebp - 0x168]
push str.regedit.exe
push eax
lea eax, [ebp - 0x270]
call fcn.00404f84
pop ecx
pop ecx
jmp 0x410129
mov byte [ebp - 0x270], bl
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
add esp, 0xc
cmp dword [eax + 0xc], 0x40
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
mov word [ebp - 0x30], 5
mov dword [ebp - 8], ebx
jne 0x410199
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call fcn.00405b37
test eax, eax
pop ecx
je 0x410199
push str.Wow64DisableWow64FsRedirection
push str.kernel32.dll
call edi
push eax
call esi
cmp eax, ebx
je 0x410199
lea ecx, [ebp - 8]
push ecx
call eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0x40
jne 0x4101f0
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call fcn.00405b37
test eax, eax
pop ecx
je 0x4101f0
mov eax, dword [ebp - 8]
push str.Wow64RevertWow64FsRedirection
push str.kernel32.dll
mov dword [ebp - 0xc], eax
call edi
push eax
call esi
cmp eax, ebx
je 0x4101f0
push dword [ebp - 0xc]
call eax
cmp dword [ebp - 4], ebx
je 0x41020f
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov esi, dword [ebp + 8]
call fcn.00410081
test eax, eax
jne 0x41020f
inc ebx
cmp ebx, 0x64
jl 0x4101f5
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41046d
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4104b5
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
cmp esi, edi
je 0x4104ae
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
cmp eax, edi
je 0x4104a7
push edi
mov edi, dword [esp + 0x10]
push 0x412535
push eax
call fcn.004104bb
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop edi
ret 4
Function at 0x4104bb
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 4], ebx
je 0x41050b
call fcn.004059ef
test eax, eax
je 0x41050b
cmp dword [edi + 0x10], ebx
jne 0x410510
lea eax, [ebp + 0x10]
push eax
push 0x2011f
push ebx
push 0x412535
push CreateStatusWindowA
mov dword [ebp + 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4105c5
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi + 0x10], ebx
je 0x410529
call fcn.004059ef
test eax, eax
je 0x410529
push str.RunAsInvoker
push str.__COMPAT_LAYER
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
push esi
mov esi, edi
call fcn.00410081
test eax, eax
jne 0x41053b
push edi
call fcn.0041009e
call fcn.00410081
test eax, eax
je 0x4105a2
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x20000000
je 0x41055f
push 9
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [ebp + 8]
push edi
call fcn.00410345
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, edi
call fcn.0040ff73
test eax, eax
je 0x410593
push dword [edi + 8]
mov ebx, dword [ebp + 0xc]
or eax, 0xffffffff
call fcn.00410253
xor ebx, ebx
push dword [edi + 8]
call fcn.0041029b
mov dword [ebp - 4], 1
cmp dword [edi + 0x10], ebx
pop esi
je 0x4105bd
call fcn.004059ef
test eax, eax
je 0x4105bd
push ebx
push str.__COMPAT_LAYER
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0xc
push 0x3ff
lea eax, [ebp - 0x50b]
push ebx
push eax
mov byte [ebp - 0x50c], bl
call sub.msvcrt.dll_memset
push 0x104
lea eax, [ebp - 0x10b]
push ebx
push eax
mov byte [ebp - 0x10c], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x10c]
push eax
call fcn.00404e63
push dword [edi + 0xc]
lea eax, [ebp - 0x50c]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._RegEdit___s____s____d_
push eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004059ac
xor eax, eax
add esp, 0x38
inc eax
jmp 0x4105c0
Function at 0x411346
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x412450
call fcn.00411534
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x411383
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411383
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41139b
cmp eax, 0x20b
je 0x411388
mov dword [ebp - 0x1c], ebx
jmp 0x4113af
cmp dword [ecx + 0x84], 0xe
jbe 0x411383
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x4113a9
cmp dword [ecx + 0x74], 0xe
jbe 0x411383
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x415e8c], 0xffffffff
or dword [0x415e90], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41519c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x415198]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x415e88], eax
call fcn.00411530
cmp dword [section..data], ebx
jne 0x41140a
push fcn.00411530
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0041151e
push 0x412424
push 0x412420
call sub.msvcrt.dll__initterm
mov eax, dword [0x415194]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x415190]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x41241c
push 0x4123f8
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x4114a0
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x411474
cmp al, 0x22
jne 0x411466
cmp byte [esi], 0x22
jne 0x41147d
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x411487
cmp al, 0x20
jbe 0x411479
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x4114ab
movzx eax, word [ebp - 0x48]
jmp 0x4114ae
cmp byte [esi], 0x20
jbe 0x41147d
inc esi
mov dword [ebp - 0x34], esi
jmp 0x4114a0
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x4114cb
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x411500
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0041156d
ret
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40729f
nop
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
jmp 0x431219