joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013d0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push str.ApplicationsVMwareHostOpen.exe
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401414
push 0x401230
push 0x4033c4
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call section..text
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call edi
push 0
call edi
push 0
call edi
push 0
call edi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x405058], eax
test eax, eax
jne 0x401448
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push 0
push 0
push 0x40000
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov esi, eax
test esi, esi
jne 0x401471
push dword [0x405058]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push 0x200000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x40149f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x405058]
call esi
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push 0xffffffffffffffff
push dword [0x405058]
mov ebx, eax
call esi
push 0xffffffffffffffff
push dword [0x405058]
call esi
mov esi, section..data
push 0
call edi
push 0
call edi
push 0
call edi
push 0
call edi
push ebx
push dword [esi]
call dword [sym.imp.RPCRT4.dll_UuidFromStringA]
test eax, eax
jne 0x40151e
add esi, 4
add ebx, 0x10
cmp esi, 0x405038
jl 0x4014c1
pop ebx
push dword [0x405058]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [ebp - 4]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x405058]
call esi
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x405058]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x401d4e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401d8d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401d8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401d8d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401d8d
cmp dword [ecx + 0x74], 0xe
jbe 0x401d8d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40c020
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4f804c
call sym._EnterCriticalSection_4
mov ebx, dword [0x4f8044]
sub esp, 4
test ebx, ebx
je 0x40c06b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x40c064
test esi, esi
je 0x40c064
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40c040
mov dword [esp], 0x4f804c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40c250
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x40c2a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40c374
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x40c2de
cmp eax, 4
jne 0x40c300
test esi, esi
je 0x40c2f2
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x40c2e4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x40c33f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x40c331
cmp ecx, 0x40
je 0x40c2f2
cmp ecx, 4
je 0x40c2f2
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040c250
lea esi, [esi]
Function at 0x415c00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._setlocale
test eax, eax
je 0x415cd4
mov dword [esp], eax
mov esi, eax
mov ebx, esp
call sym._strlen
lea edx, [eax + 1]
add eax, 0x10
shr eax, 4
shl eax, 4
call fcn.00417b50
sub esp, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
mov dword [esp + 4], 0x4b4f44
mov dword [esp], 2
mov esi, eax
call sym._setlocale
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._strcmp
test eax, eax
je 0x415ce0
mov dword [esp + 4], esi
mov dword [esp], 2
call sym._setlocale
mov eax, esi
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call sym._strchr
test eax, eax
je 0x415cd0
add eax, 1
mov dword [esp], eax
call sym._atoi
mov edi, eax
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._GetCPInfo_8
sub esp, 8
test eax, eax
je 0x415cd0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x415d20
xor edi, edi
mov esp, ebx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.LC_ALL
call sym._getenv
test eax, eax
jne 0x415c92
mov dword [esp], str.LC_CTYPE
call sym._getenv
test eax, eax
jne 0x415c92
mov dword [esp], str.LANG
call sym._getenv
test eax, eax
jne 0x415c92
mov eax, esi
jmp 0x415c92
mov esp, ebx
jmp 0x415cd4

Function at 0x417ed0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym._GetLastError_0
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sym._SetLastError_4
mov eax, ebx
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x417f00
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x417f28
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sym._GetLastError_0
Function at 0x41c110
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x4f8a64], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateSemaphoreW_16
sub esp, 0x10
mov dword [0x4f8a68], eax
call sym._TlsAlloc_0
cmp eax, 0xffffffff
je 0x41c178
mov dword [esp + 4], dbg.emutls_destroy
mov dword [esp], eax
mov dword [0x4f8a60], eax
call sym.___mingwthr_key_dtor
test eax, eax
jne sym._emutls_init.cold
add esp, 0x1c
ret
call sym._GetLastError_0
jmp 0x41c168
Function at 0x41c180
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebp, dword [0x4f8030]
mov esi, dword [esp + 0x40]
test ebp, ebp
jne 0x41c1a8
mov eax, dword [esi + 8]
test eax, eax
je 0x41c200
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esi + 8]
test edi, edi
je 0x41c210
mov ebx, dword [0x4f8a60]
call sym._GetLastError_0
mov dword [esp], ebx
mov ebp, eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], ebp
call sym._SetLastError_4
sub esp, 4
test ebx, ebx
je 0x41c2a0
mov ebp, dword [ebx]
cmp ebp, edi
jb 0x41c2f0
lea ebx, [ebx + edi*4]
mov eax, dword [ebx]
test eax, eax
jne 0x41c19c
mov eax, esi
call sym._emutls_alloc
mov dword [ebx], eax
jmp 0x41c19c
mov eax, esi
call sym._emutls_alloc
mov dword [esi + 8], eax
jmp 0x41c19c
mov edi, dword [0x4f8030]
test edi, edi
je 0x41c378
mov ebx, dword [0x4af0a8]
test ebx, ebx
je 0x41c348
mov dword [esp], 0x4f8a64
call sym._InterlockedIncrement_4
sub esp, 4
test eax, eax
jne 0x41c3bb
mov edi, dword [esi + 8]
test edi, edi
je 0x41c383
mov eax, dword [0x4f8030]
test eax, eax
je 0x41c1af
mov dword [esp], 0x4f8a64
call sym._InterlockedDecrement_4
sub esp, 4
test eax, eax
js 0x41c1af
mov eax, dword [0x4f8a68]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._ReleaseSemaphore_12
sub esp, 0xc
jmp 0x41c1af
lea eax, [edi + 0x21]
mov dword [esp + 4], 4
lea ebp, [edi + 0x20]
mov dword [esp], eax
call sym._calloc
mov ebx, eax
test eax, eax
je sym.___emutls_get_address.cold
mov dword [eax], ebp
mov eax, dword [0x4f8a60]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
jne 0x41c1e6
call sym._GetLastError_0
jmp 0x41c1e6
lea edx, [ebp + ebp]
cmp edi, edx
jbe 0x41c2fb
lea edx, [edi + 0x20]
lea eax, [edx*4 + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 0x1c], edx
call sym.___mingw_realloc
mov ebx, eax
test eax, eax
je sym.___emutls_get_address.cold
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
sub edx, ebp
lea eax, [eax + ebp*4 + 4]
shl edx, 2
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._memset
jmp 0x41c2c2
mov dword [esp], 0x4af0ac
call sym._InterlockedIncrement_4
sub esp, 4
test eax, eax
jne 0x41c3af
call sym._emutls_init
mov dword [0x4af0a8], 1
mov edx, dword [0x4f8030]
test edx, edx
jne 0x41c22c
mov edi, dword [esi + 8]
test edi, edi
jne 0x41c1af
mov eax, dword [0x4f8a5c]
lea edi, [eax + 1]
mov dword [0x4f8a5c], edi
mov dword [esi + 8], edi
jmp 0x41c24e
mov dword [esp], 0
call sym._Sleep_4
sub esp, 4
mov ecx, dword [0x4af0a8]
test ecx, ecx
je 0x41c3a0
jmp 0x41c36a
mov eax, dword [0x4f8a68]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
test eax, eax
je 0x41c243
mov dword [esp], 0x4f8a64
call sym._InterlockedDecrement_4
sub esp, 4
jmp 0x41c243
Function at 0x41f330
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4b0b1c], 0
jne method.__gnu_cxx.__verbose_terminate_handler____clone_.cold_
mov byte [0x4b0b1c], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x4a826a
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sym.___cxa_demangle
mov edi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov dword [esp + 4], 1
mov esi, eax
lea ebp, [edi + 0x40]
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
mov dword [esp + 0xc], ebp
call sym._fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp + 4], ebp
test edx, edx
jne 0x41f408
mov dword [esp], esi
call sym._fputs
lea eax, [edi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4b2d99
call sym._fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4a8265
mov dword [esp], esi
call sym.___mingw_aligned_free
jmp 0x4a8265
mov dword [esp], ebx
call sym._fputs
jmp 0x41f3cc
Function at 0x401030
Capabilities:
Delete file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov ecx, dword [0x426068]
push ebx
mov ebx, dword [0x42606c]
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
xor esi, esi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x34], 0x9e3779b9
mov dword [ebp - 0x30], ecx
call fcn.00401020
mov edx, dword [0x426070]
mov eax, dword [0x426074]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0x20
jmp 0x401092
xor esi, esi
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov ecx, dword [0x84507c]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x4010ec
push esi
lea ecx, [ebp - 0x38]
push ecx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
xor edx, edx
xor eax, eax
lea ecx, [ebp - 0x3c]
push ecx
mov word [ebp - 0x1c], dx
mov word [ebp - 0x1a], ax
mov edx, dword [ebp - 0x1c]
push edx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov eax, dword [ebp - 4]
mov ecx, dword [0x84507c]
add eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x401106
mov dword [0x845078], 0xedeb2e40
jmp 0x401122
cmp ecx, 0x3eb
jne 0x401122
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [0x844a2c], esi
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov edx, edi
shr edx, cl
add eax, edi
mov dword [ebp - 0x14], eax
mov dword [0x845074], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov ecx, dword [ebp - 0xc]
shl ecx, 4
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 8]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
nop
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
shr esi, cl
add esi, ebx
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
cmp dword [0x84507c], 0xb03
jne 0x4011a1
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 4]
xor eax, esi
mov dword [ebp - 4], eax
sub edi, eax
mov eax, dword [ebp - 0x34]
sub dword [ebp - 8], eax
sub dword [ebp - 0x20], 1
jne 0x401090
cmp dword [0x84507c], 0xa6d
mov esi, dword [ebp + 8]
mov dword [esi], edi
jne 0x4011e9
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp - 0xc]
pop edi
mov dword [esi + 4], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0xc]
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401590
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x84507c], 0x400
push esi
push edi
jne 0x4015b4
lea eax, [ebp - 0x24]
call fcn.00401670
lea esi, [ebp - 0x24]
call fcn.00401690
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov ebx, dword [ebp - 4]
xor esi, esi
call edi
cmp esi, 0x2af054
jle 0x4015d2
cmp ebx, 0x787e04e5
jne 0x4015db
inc esi
cmp esi, 0x1d8b
jl 0x4015c0
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
lea esp, [esp]
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x206d47
jg 0x40160d
inc esi
cmp esi, 0x4f6a4
jl 0x4015f0
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
pop ebx
push 0
call edi
cmp esi, 0x2b2589
jg 0x40162b
inc esi
cmp esi, 0x11915
jl 0x401616
mov eax, dword [0x426694]
mov dword [0x84507c], eax
call fcn.00401340
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, 0x3078f
jmp 0x401650
cmp dword [0x84507c], 0x51f
jne 0x401660
push 0
call esi
sub edi, 1
jne 0x401650
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x407700
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425a68]
jne 0x40770a
repz ret
jmp fcn.0040af96
Function at 0x40aa0d
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.004039e2
and dword [ebp - 4], 0
cmp dword [0x428024], 0
mov ebx, eax
jne 0x40aabe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ab6f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40ab6f
push eax
call fcn.00403970
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x428024], eax
call esi
push eax
call fcn.00403970
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x428028], eax
call esi
push eax
call fcn.00403970
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42802c], eax
call esi
push eax
call fcn.00403970
pop ecx
mov dword [0x428034], eax
test eax, eax
je 0x40aabe
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403970
pop ecx
mov dword [0x428030], eax
mov eax, dword [0x428030]
cmp eax, ebx
je 0x40ab16
cmp dword [0x428034], ebx
je 0x40ab16
push eax
call fcn.004039eb
push dword [0x428034]
mov esi, eax
call fcn.004039eb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ab16
test edi, edi
je 0x40ab16
call esi
test eax, eax
je 0x40ab0d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ab0d
test byte [ebp - 0xc], 1
jne 0x40ab16
or dword [ebp + 0x10], 0x200000
jmp 0x40ab4f
mov eax, dword [0x428028]
cmp eax, ebx
je 0x40ab4f
push eax
call fcn.004039eb
pop ecx
test eax, eax
je 0x40ab4f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ab4f
mov eax, dword [0x42802c]
cmp eax, ebx
je 0x40ab4f
push eax
call fcn.004039eb
pop ecx
test eax, eax
je 0x40ab4f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x428024]
call fcn.004039eb
pop ecx
test eax, eax
je 0x40ab6f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ab71
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409190
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x4b6
push edi
mov esi, ecx
call fcn.00407925
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
add eax, 2
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.004079b7
push 1
inc edi
push edi
mov ecx, esi
call fcn.004079b7
and dword [ebp - 0x2c4], 0
push 0x2b0
lea eax, [ebp - 0x2c0]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push 0
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2c4]
push edi
push dword [esi + 4]
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x40808c
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00408e57
mov ecx, esi
mov edi, eax
call fcn.004085bd
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x409e06
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
call fcn.00409b6b
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00409b20
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x409e49
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
invalid
inc ebp
int3

Function at 0x409f61
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ecx
call fcn.00409b6b
push eax
push esi
push dword [ebp + 8]
call fcn.00409b20
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00409b6b
push eax
push esi
push dword [ebp + 8]
call fcn.00409b20
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00409b5b
mov ecx, 0x88e091d7
popfd
jl 0x409fe0
invalid
invalid
Function at 0x10005b00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
mov dword [ebp - 0x14], 0
cmp byte [ebp + 0xc], 0
mov eax, ecx
push edi
mov edi, edx
mov dword [ebp - 4], eax
cmovne esi, edi
test esi, esi
jne 0x10005b29
mov byte [ebp - 8], 0
jmp 0x10005b49
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
mov eax, dword [ebp - 4]
setne byte [ebp - 8]
push edi
push eax
push dword [ebp + 8]
call fcn.100326a0
add esp, 0xc
cmp byte [ebp - 8], 0
je 0x10005b73
mov eax, dword [ebp - 0xc]
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10005b80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], ecx
cmp byte [ebp + 0xc], 0
mov eax, edx
push edi
cmovne esi, eax
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x18], edi
test esi, esi
jne 0x10005ba7
xor bl, bl
jmp 0x10005bcc
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push esi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebp - 0x18]
test eax, eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
setne bl
push eax
push dword [ebp + 8]
mov byte [ebp - 0xc], bl
push ecx
call fcn.100326a0
add esp, 0xc
test bl, bl
je 0x10005bf5
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret