joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416ec0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x426480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408d85
mov dword [ebp - 0x14], eax
cmp dword [0x442d20], esi
jne 0x416fb3
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x416f40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x417093
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x417093
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417093
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x442d20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x442d24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x442d28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x442d30], eax
test eax, eax
je 0x416fb0
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x442d2c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x416fd8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x416fcb
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x416fed
push 4
pop eax
jmp 0x417095
cmp dword [ebp - 0x14], esi
je 0x416fed
push dword [0x442d20]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x416fd2
mov eax, dword [0x442d2c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41704b
cmp dword [0x442d30], edi
je 0x41704b
push eax
call ebx
push dword [0x442d30]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41704b
test eax, eax
je 0x41704b
call ecx
test eax, eax
je 0x417040
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x417040
test byte [ebp - 8], 1
jne 0x41704b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41707b
mov eax, dword [0x442d24]
cmp eax, edi
je 0x417078
push eax
call ebx
test eax, eax
je 0x417078
call eax
mov esi, eax
test esi, esi
je 0x417078
mov eax, dword [0x442d28]
cmp eax, edi
je 0x417078
push eax
call ebx
test eax, eax
je 0x417078
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x442d20]
call ebx
test eax, eax
je 0x417093
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x417095
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406fb0
mov esp, ebp
pop ebp
ret
Function at 0x401540
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0x162
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x1000
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._VirtualAlloc_16
sub esp, 0x10
mov dword [ebp - 0x10], eax
mov edx, 0x4014ff
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._reverse
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
call eax
nop
leave
ret
Function at 0x401de0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x41c02c
call sym._EnterCriticalSection_4
mov ebx, dword [0x41c024]
sub esp, 4
test ebx, ebx
je 0x401e2b
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 0x401e24
test esi, esi
je 0x401e24
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e00
mov dword [esp], 0x41c02c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402010
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 0x402060
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 0x402134
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x40209e
cmp eax, 4
jne 0x4020c0
test esi, esi
je 0x4020b2
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x4020a4
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 0x4020ff
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x4020f1
cmp ecx, 0x40
je 0x4020b2
cmp ecx, 4
je 0x4020b2
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.00402010
lea esi, [esi]
Function at 0x409fc0
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 0x40a094
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.00402340
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], 0x416680
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 0x40a0a0
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 0x40a090
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 0x40a090
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x40a0e0
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 0x40a052
mov dword [esp], str.LC_CTYPE
call sym._getenv
test eax, eax
jne 0x40a052
mov dword [esp], str.LANG
call sym._getenv
test eax, eax
jne 0x40a052
mov eax, esi
jmp 0x40a052
mov esp, ebx
jmp 0x40a094

Function at 0x40c400
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 8
mov eax, dword [0x41ca80]
test eax, eax
je 0x40c480
mov edx, dword [eax + 0x18]
test edx, edx
jne 0x40c4a0
mov dword [eax + 0x18], 0x415078
mov ebx, 0x415078
call sym._TlsAlloc_0
mov dword [ebx], eax
mov eax, dword [0x41ca80]
test eax, eax
je 0x40c458
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x40c478
mov dword [eax + 0x18], 0x415078
mov eax, 0x415078
cmp dword [eax], 0xffffffff
je sym._pthread_tls_init.cold
add esp, 8
pop ebx
ret
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x41ca80]
mov edx, dword [edx + 0x18]
test edx, edx
je 0x40c43b
test eax, eax
jne 0x40c478
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov eax, dword [eax + 0x18]
jmp 0x40c447
call sym.___shmem3_winpthreads_tdm_init_local_region
mov ebx, dword [eax + 0x18]
mov eax, dword [0x41ca80]
test ebx, ebx
je 0x40c418
test eax, eax
jne 0x40c4a0
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov ebx, dword [eax + 0x18]
jmp 0x40c424
Function at 0x40c4b0
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push edi
xor eax, eax
mov ecx, 0x10
sub esp, 0x88
lea edi, [esp + 0x40]
mov dword [esp + 0x15], 0x6f727245
mov dword [esp + 0x19], 0x6c632072
mov dword [esp + 0x1d], 0x696e6165
mov dword [esp + 0x21], 0x7520676e
mov dword [esp + 0x25], 0x70732070
mov dword [esp + 0x29], 0x6b5f6e69
mov dword [esp + 0x2d], 0x20737965
mov dword [esp + 0x31], 0x20726f66
mov dword [esp + 0x35], 0x65726874
mov dword [esp + 0x39], 0x206461
mov dword [esp + 0x3d], 0
mov dword [esp + 0x7c], 0
rep stosd dword es:[edi], eax
call sym._GetCurrentThreadId_0
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.__ultoa
cmp byte [esp + 0x3c], 0
je 0x40c58a
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x40c55d
cmp eax, 0x6a
je 0x40c57a
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x40c558
cmp eax, 0x6a
je 0x40c57a
add ecx, 2
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + ecx + 0x15], 0
mov dword [esp], edx
call sym._OutputDebugStringA_4
sub esp, 4
call sym._abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x40c570
Function at 0x40f790
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call sym.___pthread_self_lite
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x40f7b2
call sym.__pthread_cleanup_dest.part.0
test byte [ebx + 0x20], 0x30
je 0x40f957
mov eax, dword [0x41ca80]
test eax, eax
je 0x40f838
mov ebx, dword [eax + 0x18]
test ebx, ebx
jne 0x40f858
mov dword [eax + 0x18], 0x415078
mov eax, 0x415078
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
test eax, eax
je 0x40f823
mov edx, dword [ebx + 0x14]
mov eax, dword [eax + 0x18]
test edx, edx
je 0x40f860
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x40f812
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov dword [ebx + 0x18], 0
test byte [ebx + 0x24], 4
jne 0x40f908
mov dword [esp + 0x20], esi
add esp, 0x14
pop ebx
pop esi
jmp sym.__endthreadex
call sym.___shmem3_winpthreads_tdm_init_local_region
mov ecx, dword [eax + 0x18]
mov eax, dword [0x41ca80]
test ecx, ecx
je 0x40f7d0
test eax, eax
jne 0x40f858
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov eax, dword [eax + 0x18]
jmp 0x40f7dc
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x40f875
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebx + 0xb0]
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], 0
test eax, eax
je 0x40f8f8
mov eax, dword [0x41ca80]
test eax, eax
je 0x40f8d0
mov edx, dword [eax + 0x18]
test edx, edx
jne 0x40f8f0
mov dword [eax + 0x18], 0x415078
mov eax, 0x415078
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
mov dword [esp + 0x20], esi
add esp, 0x14
pop ebx
pop esi
jmp sym.__endthreadex
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x41ca80]
mov ebx, dword [edx + 0x18]
test ebx, ebx
je 0x40f899
test eax, eax
jne 0x40f8f0
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov eax, dword [eax + 0x18]
jmp 0x40f8a5
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x40f889
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call sym._CloseHandle_4
mov ecx, dword [ebx + 0xb0]
mov dword [ebx + 0x14], 0
sub esp, 4
test ecx, ecx
jne 0x40f934
mov eax, ebx
call sym._push_pthread_mem.part.0
mov eax, dword [0x41ca80]
test eax, eax
jne 0x40f892
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x18]
test eax, eax
mov eax, dword [0x41ca80]
jne 0x40f8e3
jmp 0x40f899
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._longjmp
lea esi, [esi]
Function at 0x4111b0
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x38
call sym._GetLastError_0
test eax, eax
jne 0x4111c8
add esp, 0x38
pop ebx
ret
lea edx, [esp + 0x2c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1100
call sym._FormatMessageA_28
sub esp, 0x1c
test eax, eax
jne 0x411218
call sym._IsDebuggerPresent_0
test eax, eax
je 0x4111bf
int3
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym._OutputDebugStringA_4
sub esp, 4
mov dword [esp], ebx
call sym._OutputDebugStringA_4
sub esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym._LocalFree_4
sub esp, 4
jmp 0x411207

Function at 0x411250
Capabilities:
Check mutex on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp + 8], 0x41cae0
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateMutexA_12
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
test eax, eax
jne 0x411318
mov edx, dword [0x41ca80]
mov eax, dword [edx + 4]
test eax, eax
je 0x4112e0
cmp edx, 0x41ca80
jne 0x4112c5
mov dword [0x41ca80], eax
cmp eax, 0x41ca80
je 0x4112cc
lea esi, [esi]
test eax, eax
je 0x4112f4
mov edx, dword [edx]
mov dword [eax], edx
mov edx, eax
mov eax, dword [edx + 4]
cmp eax, 0x41ca80
jne 0x4112b8
mov eax, dword [0x41ca84]
mov dword [edx + 4], eax
test eax, eax
je 0x4112f4
mov edx, eax
jmp 0x4112c2
mov dword [esp], 0x41cb20
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x411334
mov dword [esp], ebx
call sym._ReleaseMutex_4
sub esp, 4
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
mov eax, str.failed_to_to_lock_cleanup_mutex_n
call sym.___shmem_get_error
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
movzx eax, ax
mov dword [esp], eax
call sym._DeleteAtom_4
sub esp, 4
jmp 0x4112f4
Function at 0x411350
Capabilities:
Check mutex on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call sym._GetCurrentProcessId_0
xor edx, edx
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + edx + 0x1c]
mov ecx, eax
and eax, 0xf
shr cl, 4
add eax, 0x61
add ecx, 0x41
mov byte [edx + edx + 0x41cae1], al
mov byte [edx + edx + 0x41cae0], cl
add edx, 1
cmp edx, 4
jne 0x411362
xor eax, eax
mov edx, 0x5f
jmp 0x41139f
movzx edx, byte [eax + str.__shmem3_winpthreads_tdm_]
mov byte [eax + 0x41cae8], dl
add eax, 1
cmp eax, 0x1a
jne 0x411398
xor eax, eax
mov edx, 0x5f
jmp 0x4113c7
movzx edx, byte [eax + str.__shmem3_winpthreads_tdm_]
mov byte [eax + 0x41cb20], dl
add eax, 1
cmp eax, 0x19
jne 0x4113c0
mov dword [esp + 8], 0x41cae0
mov dword [esp + 4], 0
mov dword [esp], 0
mov byte [0x41cb39], 0x2d
mov dword [0x41cb3a], 0x61616161
mov dword [0x41cb3e], 0x61616161
mov dword [0x41cb42], 0x61616161
mov dword [0x41cb46], 0x61616161
mov dword [0x41cb4a], 0x61616161
mov dword [0x41cb4e], 0x61616161
mov dword [0x41cb52], 0x61616161
mov dword [0x41cb56], 0x61616161
mov byte [0x41cb5a], 0
call sym._CreateMutexA_12
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov esi, eax
test eax, eax
jne 0x4115aa
mov dword [esp], 0x41cb20
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x411500
mov edx, 0x41ca80
mov eax, 0x20
nop
bt edx, eax
jae 0x4114a0
mov ecx, eax
neg ecx
mov byte [ecx + 0x41cb5a], 0x41
sub eax, 1
jne 0x411490
mov dword [esp], 0x41cb20
call sym._AddAtomA_4
sub esp, 4
test ax, ax
je 0x411599
mov dword [esp], sym.___shmem3_winpthreads_tdm_cleanup_local_region
mov dword [0x41ca80], 0x41ca80
call sym.__onexit
mov dword [esp], ebx
call sym._ReleaseMutex_4
sub esp, 4
mov dword [esp], ebx
call sym._CloseHandle_4
mov eax, dword [0x41ca80]
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, ax
mov ebp, 0x20
mov edi, 1
mov dword [esp + 8], 0x3b
mov dword [esp + 4], 0x41cb20
mov dword [esp], eax
call sym._GetAtomNameA_12
mov edx, eax
sub esp, 0xc
xor eax, eax
test edx, edx
je 0x4115c9
lea esi, [esi]
cmp byte [eax + 0x41cb3a], 0x41
jne 0x41154b
mov ecx, ebp
mov edx, edi
sub ecx, eax
shl edx, cl
or esi, edx
add eax, 1
cmp eax, 0x20
jne 0x411538
mov eax, esi
mov dword [0x41ca80], eax
jmp 0x41156c
cmp edx, 0x41ca80
je 0x4114d3
mov edx, eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x411560
cmp edx, 0x41ca80
je 0x4114d3
mov dword [edx + 4], 0x41ca80
mov dword [esp], sym.___shmem3_winpthreads_tdm_cleanup_local_region
call sym.__onexit
jmp 0x4114d3
mov eax, str.failed_to_add_string_to_atom_table_n
call sym.___shmem_get_error
xor eax, eax
jmp 0x4114ee
mov eax, str.failed_to_to_lock_creation_mutex_n
call sym.___shmem_get_error
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, str.failed_to_get_string_from_atom_n
call sym.___shmem_get_error
xor eax, eax
jmp 0x411555
Function at 0x40618d
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
push str.PECMD:MSGSVR:HWND
xor ebx, ebx
push ebx
call fcn.004042db
pop ecx
pop ecx
call fcn.00403e63
mov byte [0x4dbc46], 1
call fcn.004062f5
call fcn.004405b8
push str.TaskbarButtonCreated
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push ebx
push 0x24
pop edi
mov dword [0x4dbc48], eax
push edi
lea eax, [ebp - 0x12c]
push eax
push ebx
mov byte [ebp - 0x12c], bl
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.System32Kernel32
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.user32
mov dword [0x4dbff8], eax
mov dword [ebp - 4], eax
call esi
push str.GDI32
mov dword [0x4dbff4], eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4c13e0
push dword [ebp - 4]
mov dword [0x4dbffc], eax
call esi
push 7
pop ecx
mov dword [ebp - 0x28], edi
push 0x4c13cc
push dword [ebp - 4]
mov dword [0x4dbbe4], eax
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
call esi
cmp eax, ebx
je 0x406265
lea ecx, [ebp - 0x28]
push ecx
call eax
call fcn.004414d2
shrd eax, edx, 0x10
shr edx, 0x10
cmp word [ebp - 0x28], bx
je 0x4062b5
cmp eax, 0x50000
jbe 0x4062b5
push str.Wow64RevertWow64FsRedirection
push dword [ebp - 4]
call esi
push str.Wow64DisableWow64FsRedirection
push dword [ebp - 4]
mov dword [0x4dbc40], eax
call esi
cmp dword [0x4dbc40], ebx
mov dword [0x4dbc3c], eax
jne 0x4062aa
mov dword [0x4dbc3c], ebx
mov bl, 1
mov word [0x4dbc28], 0x100
movsx eax, bl
push str.bX64
push eax
mov esi, 0x4dc0f8
push esi
mov byte [0x4dbc45], bl
call fcn.0044749d
push str.ptrlen
push 4
push esi
call fcn.0044749d
push str.WM_TASKBARBUTTONCREATED
push dword [0x4dbc48]
push esi
call fcn.0044749d
add esp, 0x24
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b8ea8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4db34c]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4db360]
je 0x4b8edf
inc eax
cmp eax, 0x13
jb 0x4b8ed0
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4db360]
jne 0x4b9002
mov eax, dword [0x4dcf58]
cmp eax, 1
je 0x4b8fdd
cmp eax, edx
jne 0x4b8f0f
cmp dword [0x4da94c], 1
je 0x4b8fdd
cmp ecx, 0xfc
je 0x4b9002
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b8f45
lea eax, [ebp - 0x7c]
push 0x4d4bac
push eax
call fcn.004adbf0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004b1ec0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4b8f79
mov eax, edi
push eax
call fcn.004b1ec0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4d4ba8
push edi
call fcn.004b0430
add esp, 0x10
push edi
call fcn.004b1ec0
push dword [esi + 0x4db364]
mov ebx, eax
call fcn.004b1ec0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004ade80
mov ebx, esp
push 0x4d4b8c
push ebx
call fcn.004adbf0
push edi
push ebx
call fcn.004adc00
push 0x4d4b88
push ebx
call fcn.004adc00
push dword [esi + 0x4db364]
push ebx
call fcn.004adc00
push 0x12010
push 0x4d4b60
push ebx
call fcn.004bcab3
add esp, 0x2c
jmp 0x4b9002
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x4db364]
push dword [esi]
call fcn.004b1ec0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.004b9cde
add ebp, 0x90
leave
ret
Function at 0x4b9636
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4dd468]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x4b9676
call esi
test eax, eax
je 0x4b965b
mov dword [0x4dd468], 1
jmp 0x4b967b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4b9672
mov dword [0x4dd468], 2
jmp 0x4b9684
xor eax, eax
jmp 0x4b96d2
cmp eax, 1
jne 0x4b967f
call esi
jmp 0x4b96d2
cmp eax, 2
jne 0x4b9672
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x4b96ca
lea eax, [esi + esi]
push eax
call fcn.004aefd4
mov ebp, eax
test ebp, ebp
pop ecx
je 0x4b96ca
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x4b96ce
push ebp
call fcn.004aeb6f
pop ecx
xor eax, eax
jmp 0x4b96d0
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x4bcab3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4dd4f4], ebx
push esi
push edi
jne 0x4bcb33
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4bcb6e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4d66c8
push edi
call esi
test eax, eax
mov dword [0x4dd4f4], eax
je 0x4bcb6e
push 0x4d66b8
push edi
call esi
push 0x4d66a4
push edi
mov dword [0x4dd4f8], eax
call esi
cmp dword [0x4dcf60], 2
mov dword [0x4dd4fc], eax
jne 0x4bcb33
push 0x4d6688
push edi
call esi
test eax, eax
mov dword [0x4dd504], eax
je 0x4bcb33
push 0x4d6670
push edi
call esi
mov dword [0x4dd500], eax
mov eax, dword [0x4dd500]
test eax, eax
je 0x4bcb78
call eax
test eax, eax
je 0x4bcb5f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4dd504]
test eax, eax
je 0x4bcb5f
test byte [ebp - 8], 1
jne 0x4bcb78
cmp dword [0x4dcf6c], 4
jb 0x4bcb72
or byte [ebp + 0x12], 0x20
jmp 0x4bcb97
xor eax, eax
jmp 0x4bcba7
or byte [ebp + 0x12], 4
jmp 0x4bcb97
mov eax, dword [0x4dd4f8]
test eax, eax
je 0x4bcb97
call eax
mov ebx, eax
test ebx, ebx
je 0x4bcb97
mov eax, dword [0x4dd4fc]
test eax, eax
je 0x4bcb97
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4dd4f4]
pop edi
pop esi
pop ebx
leave
ret