joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a4860
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0a68
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x68
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x65]
call fcn.0040b800
push eax
lea ecx, [ebp - 0x60]
call fcn.004148f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x66]
call fcn.0040b800
push eax
lea ecx, [ebp - 0x3c]
call fcn.004148f0
mov byte [ebp - 4], 2
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x60]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0049fc60
add esp, 0x14
cmp eax, 1
jne 0x4a490d
mov dword [ebp - 0x6c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00414a10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00414a10
mov eax, dword [ebp - 0x6c]
jmp 0x4a49e7
lea ecx, [ebp - 0x18]
push ecx
push 3
push 0
lea ecx, [ebp - 0x5c]
call fcn.00413e50
push eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4a4953
mov dword [ebp - 0x70], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00414a10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00414a10
mov eax, dword [ebp - 0x70]
jmp 0x4a49e7
lea ecx, [ebp - 0x38]
call fcn.00413e50
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
cmp dword [ebp - 0x40], 0
setne dl
mov dword [ebp - 0x74], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00414a10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00414a10
mov eax, dword [ebp - 0x74]
jmp 0x4a49e7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret
Function at 0x4a4d00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0af3
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x9c
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0x28], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x99]
call fcn.0040b800
push eax
lea ecx, [ebp - 0x90]
call fcn.004148f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x9a]
call fcn.0040b800
push eax
lea ecx, [ebp - 0x6c]
call fcn.004148f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00419540
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.004192f0
mov byte [ebp - 4], 4
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x90]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0049fc60
add esp, 0x14
cmp eax, 1
jne 0x4a4df5
mov dword [ebp - 0xa0], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.0042e490
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00419520
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
call fcn.00414a10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x90]
call fcn.00414a10
mov eax, dword [ebp - 0xa0]
jmp 0x4a4f71
push 0
push 0
push 3
push 0
push 0
lea ecx, [ebp - 0x8c]
call fcn.00413e50
push eax
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0041d020
test eax, eax
je 0x4a4e63
mov dword [ebp - 0xa4], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.0042e490
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00419520
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
call fcn.00414a10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x90]
call fcn.00414a10
mov eax, dword [ebp - 0xa4]
jmp 0x4a4f71
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x94], eax
cmp dword [ebp + 0x14], 1
jne 0x4a4ea1
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00432db0
lea ecx, [ebp - 0x48]
call fcn.00410bd0
lea edx, [eax + eax + 2]
mov dword [ebp - 0x94], edx
lea ecx, [ebp - 0x48]
call fcn.00413e50
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
lea ecx, [ebp - 0x68]
call fcn.00413e50
push eax
lea ecx, [ebp - 0x20]
call fcn.0040ae10
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x70], eax
xor eax, eax
cmp dword [ebp - 0x70], 0
setne al
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.0042e490
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00419520
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
call fcn.00414a10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x90]
call fcn.00414a10
mov eax, dword [ebp - 0xa8]
jmp 0x4a4f71
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret
Function at 0x4b2eb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0x80004005
push str.HTML
mov eax, dword [ebp + 0x10]
push eax
call fcn.0044b463
add esp, 8
test eax, eax
je 0x4b2eda
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], ecx
jmp 0x4b2ee1
mov dword [ebp - 0x1c], 0x17
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4b2fa8
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b2fa8
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4b2fa8
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4b2f9e
mov ecx, dword [ebp - 0xc]
add ecx, 1
push ecx
call fcn.0044899c
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], 0
je 0x4b2f9e
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
call fcn.00448f70
add esp, 0xc
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
mov byte [ecx + edx], 0
cmp dword [ebp + 0x18], 0
je 0x4b2f97
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4b5610
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec539
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x134
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x138], 0x104
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x18]
push eax
push 3
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4b5698
mov eax, dword [ebp - 0x134]
jmp 0x4b57e4
mov dword [ebp - 0x14], 2
lea ecx, [ebp - 0x138]
push ecx
lea edx, [ebp - 0x130]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x50e970
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx edx, byte [ebp - 0x130]
sub edx, 1
neg edx
sbb edx, edx
add edx, 1
mov dword [ebp - 0x20], edx
cmp dword [ebp + 8], 0
jne 0x4b56e5
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x134], eax
cmp dword [ebp + 8], 1
jne 0x4b572c
cmp dword [ebp - 0x20], 0
jne 0x4b572c
mov dword [ebp - 0x14], 3
mov byte [ebp - 0x130], 1
mov ecx, dword [ebp - 0x138]
push ecx
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0x50e990
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x134], 1
cmp dword [ebp + 8], 2
jne 0x4b5773
cmp dword [ebp - 0x20], 1
jne 0x4b5773
mov dword [ebp - 0x14], 4
mov byte [ebp - 0x130], 0
mov edx, dword [ebp - 0x138]
push edx
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
push str.EnableAutodial
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x134], 1
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 5
mov eax, dword [ebp - 0x134]
jmp 0x4b57e4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret 4

Function at 0x4b5a10
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec597
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5392a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x1f50], 0
je 0x4b5a5d
xor eax, eax
jmp 0x4b5abe
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x4b5abe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4b5ae0
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec5b2
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5392a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 4
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0x20000005
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4b5b48
mov eax, dword [ebp - 0x1c]
jmp 0x4b5b94
or eax, 0xffffffff
jmp 0x4b5b94
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4b5e20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push str.Close_con
mov eax, dword [ebp - 0xc]
push eax
call fcn.004b5c90
add esp, 8
cmp dword [ebp + 8], 0
je 0x4b5e5d
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x4b5e5d
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x1f58]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4b5e92
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x1f58]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1f54]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push str.Close_0x_p_0x_p
mov edx, dword [ebp - 0xc]
push edx
call fcn.004b5c90
add esp, 0x10
cmp dword [ebp - 8], 0
je 0x4b5ee0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1f54]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
call fcn.004b5810
mov eax, 0xc8
mov esp, ebp
pop ebp
ret 4
Function at 0x4b6090
Capabilities:
Allocate thread local storage
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0c8a
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x1a8
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1b8], ecx
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 4], 0
push 0
push 0x31
call fcn.004b4e10
add esp, 8
mov ecx, dword [ebp - 0x1b8]
mov dword [ecx + 0x1fb0], eax
push 0
push 0x32
call fcn.004b4e10
add esp, 8
mov edx, dword [ebp - 0x1b8]
mov dword [edx + 0x1fb4], eax
mov eax, dword [ebp - 0x1b8]
add eax, 0x1f78
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp - 0x1b8]
add ecx, 0x1f90
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edx, dword [ebp - 0x1b8]
add edx, 0x1f60
push edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov dword [ebp - 0x14], 1
mov eax, 2
mov word [ebp - 0x1ac], ax
lea ecx, [ebp - 0x1a8]
push ecx
movzx edx, word [ebp - 0x1ac]
push edx
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
add eax, 1
mov ecx, dword [ebp - 0x1b8]
mov dword [ecx], eax
mov edx, dword [ebp - 0x1b8]
cmp dword [edx], 0
jne 0x4b618d
xor eax, eax
jmp 0x4b6258
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [ebp - 0x1b8]
mov dword [ecx + 0x1f54], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edx, dword [ebp - 0x1b8]
mov dword [edx + 0x1f58], eax
mov eax, dword [ebp - 0x1b8]
cmp dword [eax + 0x1f54], 0xffffffff
je 0x4b61cf
mov ecx, dword [ebp - 0x1b8]
cmp dword [ecx + 0x1f58], 0xffffffff
jne 0x4b61e9
push 0
push str.Tls_Fail
mov edx, dword [ebp - 0x1b8]
push edx
call fcn.004b5c90
add esp, 0xc
xor eax, eax
jmp 0x4b6258
push str.Init_libs.
mov eax, dword [ebp - 0x1b8]
push eax
call fcn.004b5c90
add esp, 8
mov eax, 1
jmp 0x4b6258
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret
Function at 0x4b8750
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x4b878c
cmp dword [0x595bbc], 0
jne 0x4b877d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x4b86b0
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x595bb8], eax
mov eax, dword [0x595bbc]
add eax, 1
mov dword [0x595bbc], eax
jmp 0x4b87c4
cmp dword [0x595bbc], 1
jne 0x4b87b5
cmp dword [0x595bb8], 0
je 0x4b87ab
mov ecx, dword [0x595bb8]
push ecx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [0x595bb8], 0
mov edx, dword [0x595bbc]
sub edx, 1
mov dword [0x595bbc], edx
pop ebp
ret

Function at 0x4b8970
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x4b89b6
cmp dword [0x595bc0], 0
jg 0x4b89a7
mov dword [0x595bc0], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x4b8650
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x595bc4], eax
mov eax, dword [0x595bc0]
add eax, 1
mov dword [0x595bc0], eax
jmp 0x4b8a03
cmp dword [0x595bc0], 1
jne 0x4b89df
cmp dword [0x595bc4], 0
je 0x4b89d5
mov ecx, dword [0x595bc4]
push ecx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [0x595bc4], 0
mov edx, dword [0x595bc0]
sub edx, 1
mov dword [0x595bc0], edx
mov eax, dword [0x595bc0]
push eax
push 0
call fcn.0042a620
add esp, 8
mov dword [0x595bc0], eax
pop ebp
ret
Function at 0x4bb7f0
Capabilities:
Check mutex on windows
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
push 0
push 0x50fbcc
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4bb933
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.0044aec0
add esp, 0xc
mov dword [ebp - 0x21c], 0xffffffff
mov dword [ebp - 0x220], 0
cmp dword [ebp + 8], 0
je 0x4bb875
push 0
push 0
push 0x4cc
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea edx, [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0x104
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x50fbdc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x4bb8c8
push str.Babylon_Enterprise
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4bb8cf
mov dword [ebp - 8], 1
push 0
push 0
push 0x10
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x21c]
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x4bb931
push 0x2710
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x224], eax
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x220], 0
jmp 0x4bb942
cmp dword [ebp + 8], 0
je 0x4bb942
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
jmp 0x4bb964
mov ecx, dword [ebp - 0x228]
add ecx, 1
mov dword [ebp - 0x228], ecx
cmp dword [ebp - 0x228], 0xa
jge 0x4bb99b
push str._BabylonSingleAppMutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4bb98e
jmp 0x4bb99b
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4bb955
cmp dword [ebp - 4], 0
je 0x4bb9ab
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret
Function at 0x4bc1f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f238f
mov eax, dword fs:[0]
push eax
sub esp, 0x4d0
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
je 0x4bc350
lea ecx, [ebp - 0x4b1]
call fcn.0040b800
push eax
lea ecx, [ebp - 0x444]
call fcn.004148f0
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.0044aec0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x424], dx
push 0x206
push 0
lea eax, [ebp - 0x422]
push eax
call fcn.0044aec0
add esp, 0xc
lea ecx, [ebp - 0x444]
push ecx
mov ecx, 0x595e28
call fcn.004e04c0
push 0x50fb3c
lea ecx, [ebp - 0x440]
call fcn.00410d00
push 0x104
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x440]
call fcn.00413e50
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0x104
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x424]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.rundll32.exe
lea edx, [ebp - 0x424]
push edx
call fcn.0044ac1a
add esp, 8
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x424]
push ecx
call fcn.0044ac1a
add esp, 8
push str._UnloadCaptlibDlls
lea edx, [ebp - 0x424]
push edx
call fcn.0044ac1a
add esp, 8
push 0
push 0
push 0
push 0
push 0xbb8
lea eax, [ebp - 0x424]
push eax
call fcn.00485910
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
call fcn.00414a10
jmp 0x4bc45d
cmp dword [ebp + 8], 0
je 0x4bc364
mov ecx, dword [ebp + 8]
add ecx, 4
mov dword [ebp - 0x4d4], ecx
jmp 0x4bc36e
mov dword [ebp - 0x4d4], 0
push 0x50fb9c
mov edx, dword [ebp - 0x4d4]
push edx
lea eax, [ebp - 0x4d0]
push eax
call fcn.00407a80
add esp, 0xc
mov dword [ebp - 0x4d8], eax
mov ecx, dword [ebp - 0x4d8]
mov dword [ebp - 0x4dc], ecx
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x4dc]
push edx
lea ecx, [ebp - 0x468]
call fcn.00417720
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4d0]
call fcn.00414bf0
lea ecx, [ebp - 0x464]
call fcn.00413e50
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
je 0x4bc44b
mov eax, dword [0x50fbb4]
mov dword [ebp - 0x4ac], eax
push 0x3c
push 0
lea ecx, [ebp - 0x4a8]
push ecx
call fcn.0044aec0
add esp, 0xc
push str.UnloadCaptlibDlls
mov edx, dword [ebp - 0x448]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x4b0], eax
cmp dword [ebp - 0x4b0], 0
je 0x4bc43e
push 0
lea eax, [ebp - 0x4ac]
push eax
mov ecx, dword [ebp - 0x448]
push ecx
push 0
call dword [ebp - 0x4b0]
add esp, 0x10
mov edx, dword [ebp - 0x448]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x468]
call fcn.00414a10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret