joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cd100
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], ecx
mov eax, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
test ecx, ecx
je 0x4cd249
test eax, eax
je 0x4cd249
push esi
push 0x2800
call fcn.00503856
mov esi, eax
add esp, 4
test esi, esi
jne 0x4cd164
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
push ebx
push edi
xor edi, edi
jmp 0x4cd170
push edi
push 0x5404d0
push 0x2800
push esi
call fcn.004cb100
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4cd220
push 0x2800
xorps xmm0, xmm0
mov dword [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
push 0
push esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call fcn.005091d0
add esp, 0xc
lea eax, [ebp - 0x20]
push 0
push eax
push 0x2800
push esi
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4cd210
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4cd210
mov edx, dword [ebp - 0x1c]
add eax, esi
push eax
push dword [ebp - 0x18]
mov ecx, str.DISKID:
call fcn.004ccec0
add esp, 8
mov dword [ebp - 0x14], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
jne 0x4cd22d
jmp 0x4cd223
mov ebx, dword [ebp - 0x14]
inc edi
cmp edi, 0x10
jl 0x4cd170
push esi
call fcn.00502847
add esp, 4
mov eax, ebx
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
Function at 0x4cd300
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov eax, ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], eax
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0
movlpd qword [ebp - 0x28], xmm0
push esi
push edi
test eax, eax
je 0x4cd343
test edx, edx
je 0x4cd343
push 0x200
call fcn.00503856
mov esi, eax
add esp, 4
test esi, esi
jne 0x4cd34d
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4cd49f
push eax
push eax
push eax
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push esi
push 0
push dword [ebp - 8]
mov dword [ebp - 4], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
test eax, eax
jne 0x4cd444
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov eax, dword [ebp - 8]
test eax, eax
cmove eax, ecx
lea ecx, [ebp - 0x10]
push ecx
push 0x20119
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4cd412
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 1
push eax
lea eax, [esi + 4]
mov dword [ebp - 4], 0x200
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push str.ServiceName
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4cd409
mov ecx, esi
mov dword [esi], 0x5c2e5c5c
call fcn.004cd260
cmp edx, ebx
jb 0x4cd409
ja 0x4cd405
cmp eax, edi
jbe 0x4cd409
mov edi, eax
mov ebx, edx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 4]
push 0
push 0
push 0
push 0
push ecx
inc eax
mov dword [ebp - 4], 0x100
push esi
push eax
push dword [ebp - 8]
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
test eax, eax
je 0x4cd3a1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x4cd455
test edi, edi
je 0x4cd49f
push ebx
push edi
push str._012I64X
push 0x200
push esi
call fcn.004cb100
add esp, 0x14
test eax, eax
jne 0x4cd488
push esi
mov dword [ebp - 0xc], 0xffffffff
call fcn.00502847
mov eax, dword [ebp - 0xc]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x20]
mov ecx, str.MAC:
push esi
push dword [ebp - 0x18]
call fcn.004ccec0
add esp, 8
mov dword [ebp - 0xc], eax
push esi
call fcn.00502847
mov eax, dword [ebp - 0xc]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cfb00
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533d6b
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 0x14], 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 [0x766d04], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
lea eax, [ebp - 0x98]
push 0x40
push eax
call fcn.005028f6
add esp, 0x14
xor eax, eax
mov word [ebp - 0x18], ax
xor esi, esi
lea eax, [ebp - 0x98]
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp - 0x9c], edi
test edi, edi
je 0x4cfc61
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4cfb9b
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], 0
call fcn.004cf960
test eax, eax
je 0x4cfbb5
mov dword [0x766d04], eax
jmp 0x4cfc42
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x4cfbd0
push 0x5c0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0xa8], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x4cfbe8
push edi
mov ecx, esi
call fcn.004cff00
jmp 0x4cfbea
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x766d04], eax
test eax, eax
jne 0x4cfc12
push 0x5bef2c
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 1
push eax
call fcn.0050a4ef
mov ecx, eax
mov esi, 1
call fcn.004cf9f0
test eax, eax
jne 0x4cfc3d
push 0x5bef2c
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 3
push eax
call fcn.0050a4ef
mov eax, dword [0x766d04]
inc dword [eax + 0x5bc]
push edi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
jne 0x4cfc61
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x766d04
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
Function at 0x4cfcc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533da0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5c2460]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x766d04]
test eax, eax
je 0x4cfdd8
mov ecx, dword [eax + 4]
cmp ecx, 0xffffffff
jne 0x4cfd09
mov dword [ebp - 0x14], 0
jmp 0x4cfd20
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4cfdda
mov eax, dword [0x766d04]
mov eax, dword [eax]
test eax, eax
je 0x4cfdd8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4cfdd8
mov ecx, 0x766d04
mov dword [ebp - 4], eax
call fcn.004cfdf0
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x4cfd66
push 0x5bef2c
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
call fcn.0050a4ef
mov eax, dword [0x766d04]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x4cfd7f
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4cfdaa
push 0x5bef2c
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
push eax
call fcn.0050a4ef
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4cfda1
push eax
call fcn.004d0170
mov eax, 0x4cfda7
ret
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x766d04]
mov eax, dword [ecx]
test eax, eax
je 0x4cfdc4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cfdf0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebx]
mov ecx, eax
add edx, 8
mov dword [ebp - 4], ecx
mov esi, dword [edx + 0x5a8]
mov dword [edx + 0x5b0], esi
cmp esi, edx
je 0x4cfed8
mov eax, dword [esi + 0x5a8]
mov dword [edx + 0x5b0], eax
test esi, esi
je 0x4cfed8
mov eax, dword [esi]
cmp ecx, eax
jne 0x4cfe3d
mov edi, esi
jmp 0x4cfea5
push eax
push 1
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
jne 0x4cfe9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4cfe91
mov ecx, dword [esi + 0x5ac]
mov eax, dword [esi + 0x5a8]
mov dword [ecx + 0x5a8], eax
mov ecx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [ecx + 0x5ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x4cfea5
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4cfea5
push 0x56786c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4cfea5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebx]
add edx, 8
mov esi, dword [edx + 0x5b0]
cmp esi, edx
je 0x4cfecb
mov ecx, dword [esi + 0x5a8]
mov dword [edx + 0x5b0], ecx
mov ecx, dword [ebp - 4]
test esi, esi
jne 0x4cfe33
test edi, edi
je 0x4cfed8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx]
add ecx, 8
call fcn.004d0080
test eax, eax
je 0x4cfeeb
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4cff00
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533dcb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5c2460]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 8]
mov dword [edi], 0
push 0x5a0
lea eax, [esi + 8]
mov dword [edi + 4], 0xffffffff
push 0
push eax
mov dword [esi], 0
call fcn.005091d0
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [ebp - 4], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x4cff99
push 0x5bef2c
lea eax, [ebp + 8]
mov dword [ebp + 8], 2
push eax
call fcn.0050a4ef
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4d0950
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0xca
jne 0x4d09a1
mov eax, dword [esi + 4]
push 0x1c
push 1
push esi
mov eax, dword [eax]
call eax
add esp, 0xc
mov dword [esi + 0x190], eax
mov ecx, esi
mov dword [eax], 0x4d48f0
mov dword [eax + 4], 0x4d4a50
mov byte [eax + 8], 0
call fcn.004d4720
cmp byte [esi + 0x40], 0
je 0x4d099a
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
push edi
cmp eax, 0xcb
jne 0x4d0a21
mov eax, dword [esi + 0x1a0]
cmp byte [eax + 0x10], 0
je 0x4d0a0f
mov eax, dword [esi + 8]
test eax, eax
je 0x4d09c7
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x1a0]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x4d0a0a
cmp eax, 2
je 0x4d0a0f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4d09b8
cmp eax, 3
je 0x4d09ef
cmp eax, 1
jne 0x4d09b8
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x4d09b8
mov eax, dword [esi + 0x120]
add eax, edi
mov dword [edx + 8], eax
jmp 0x4d09b8
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov ecx, esi
pop edi
mov dword [esi + 0x84], eax
pop esi
jmp 0x4d0a50
cmp eax, 0xcc
je 0x4d0a43
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x15
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
pop edi
mov ecx, esi
pop esi
jmp 0x4d0a50
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0xcc
je 0x4d0a7a
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x190]
cmp byte [eax + 8], 0
je 0x4d0b02
lea ebx, [esi + 0x78]
lea esp, [esp]
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x4d0ad6
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4d0ab5
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
push esi
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esi + 0x194]
mov edi, dword [ebx]
push 0
push ebx
mov eax, dword [eax + 4]
push 0
push esi
call eax
mov eax, dword [ebx]
add esp, 0x10
cmp eax, edi
je 0x4d0b18
cmp eax, dword [esi + 0x60]
jb 0x4d0a97
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
add esp, 8
mov eax, dword [esi + 0x190]
cmp byte [eax + 8], 0
jne 0x4d0a90
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x4d6b70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x18], edi
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1b8]
mov dword [ebp - 0x1c], esi
jne 0x4d6b98
mov eax, 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x4d6b9d
xor eax, eax
mov byte [esi + 0x1c], al
push dword [edi + 0x64]
mov ecx, dword [edi + 4]
mov dword [ebp - 4], eax
add eax, 0x100
push eax
push 1
mov eax, dword [ecx + 8]
push edi
call eax
xor ebx, ebx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
mov dword [ebp - 8], ebx
cmp dword [edi + 0x64], ebx
jle 0x4d6c9d
jmp 0x4d6bd0
mov ecx, dword [esi + ebx*4 + 0x20]
cdq
idiv ecx
cmp dword [ebp - 4], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
je 0x4d6bed
mov eax, dword [esi + 0x18]
add dword [eax + ebx*4], 0xff
mov eax, dword [esi + 0x18]
mov edi, dword [eax + ebx*4]
lea eax, [ecx + 0xfe]
lea ecx, [ecx*2 - 2]
cdq
idiv ecx
xor ebx, ebx
mov dword [ebp - 0x14], edi
mov edx, eax
xor esi, esi
lea esp, [esp]
cmp esi, edx
jle 0x4d6c45
mov ecx, dword [ebp - 0x10]
imul eax, ebx, 0x1fe
lea edi, [ecx*2 - 2]
add ecx, 0xfe
add ecx, eax
lea esp, [esp]
add ecx, 0x1fe
inc ebx
mov eax, ecx
cdq
idiv edi
mov edx, eax
cmp esi, edx
jg 0x4d6c30
mov edi, dword [ebp - 0x14]
mov al, byte [ebp - 0xc]
imul bl
mov byte [esi + edi], al
inc esi
cmp esi, 0xff
jle 0x4d6c10
cmp dword [ebp - 4], 0
je 0x4d6c84
mov ecx, 1
lea edx, [edi - 1]
movzx eax, byte [edi]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [edi + 0xff]
mov byte [edi + ecx + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x4d6c64
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x1c]
inc ebx
mov dword [ebp - 8], ebx
cmp ebx, dword [eax + 0x64]
mov eax, dword [ebp - 0xc]
jl 0x4d6bd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ec470
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
mov al, byte [edi + 8]
mov byte [ebp - 0x15], al
cmp al, 3
je 0x4ec652
xor edx, edx
test al, 2
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [edi]
je 0x4ec4d1
movzx edx, byte [edi + 9]
movzx eax, byte [eax]
mov ecx, edx
sub ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov ecx, edx
movzx eax, byte [eax + 1]
sub ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov ecx, 3
movzx eax, byte [eax + 2]
sub edx, eax
mov dword [ebp - 0xc], edx
xor edx, edx
jmp 0x4ec4e3
movzx eax, byte [eax + 3]
movzx ecx, byte [edi + 9]
sub ecx, eax
mov dword [ebp - 0x14], ecx
mov ecx, 1
test byte [ebp - 0x15], 4
mov dword [ebp - 0x1c], ecx
je 0x4ec506
mov eax, dword [ebp + 8]
movzx ecx, byte [edi + 9]
movzx eax, byte [eax + 4]
sub ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x14], ecx
mov ecx, eax
inc ecx
mov dword [ebp - 0x1c], ecx
xor eax, eax
test ecx, ecx
jle case.0x4ec54b.3
cmp dword [ebp + eax*4 - 0x14], 0
jg 0x4ec521
mov dword [ebp + eax*4 - 0x14], 0
jmp 0x4ec526
mov edx, 1
inc eax
cmp eax, ecx
jl 0x4ec510
test dx, dx
je case.0x4ec54b.3
movzx eax, byte [edi + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x4ec54b.3
movzx eax, byte [eax + 0x4ec678]
jmp dword [eax*4 + 0x4ec664]
mov ecx, dword [edi + 4]
test ecx, ecx
je case.0x4ec54b.3
lea ecx, [ecx]
mov al, byte [esi]
lea esi, [esi + 1]
shr al, 1
and al, 0x55
mov byte [esi - 1], al
dec ecx
jne 0x4ec560
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov ebx, 0xf0
mov edx, dword [edi + 4]
mov eax, 0xf
sar ebx, cl
and bl, 0xf0
sar eax, cl
or bl, al
test edx, edx
je case.0x4ec54b.3
mov al, byte [esi]
lea esi, [esi + 1]
shr al, cl
mov ecx, dword [ebp - 0x14]
and al, bl
mov byte [esi - 1], al
dec edx
jne 0x4ec5a1
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
imul ebx, ecx
xor edi, edi
test ebx, ebx
je case.0x4ec54b.3
mov eax, edi
lea esi, [esi + 1]
xor edx, edx
inc edi
div ecx
mov cl, byte [ebp + edx*4 - 0x14]
shr byte [esi - 1], cl
mov ecx, dword [ebp - 0x1c]
cmp edi, ebx
jb 0x4ec5d1
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
imul ebx, ecx
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je case.0x4ec54b.3
lea esp, [esp]
xor edx, edx
movzx edi, byte [esi]
div ecx
mov eax, 0x100
lea esi, [esi + 1]
imul di, ax
movzx eax, byte [esi]
lea esi, [esi + 1]
mov cx, word [ebp + edx*4 - 0x14]
add di, ax
shr di, cl
movzx ecx, di
mov eax, ecx
shr eax, 8
mov byte [esi - 2], al
mov eax, dword [ebp - 0x20]
inc eax
mov byte [esi - 1], cl
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x24]
jb 0x4ec610
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00501d03
mov esp, ebp
pop ebp
ret
Function at 0x4f0d10
Capabilities:
Terminate process

Disassembly:
push esi
push edx
push str.libpng_error:__s
mov esi, ecx
call fcn.00505c60
add eax, 0x40
push eax
call fcn.0052151c
add esp, 0xc
push 0x55017c
call fcn.00505c60
add eax, 0x40
push eax
call fcn.0052151c
add esp, 8
test esi, esi
je 0x4f0d53
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4f0d53
push 1
push esi
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4ff4ef
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
and dword [ebp - 4], 0
mov ebx, ecx
push 7
pop ecx
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
or dword [ebx + 0x18], 0xffffffff
xor edi, edi
push edi
push 0x10000080
push 3
push edi
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, 0xffffffff
jne 0x4ff535
xor al, al
jmp 0x4ff5ba
push 1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4ff576
push edi
push edi
push 1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x4ff576
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
xor edi, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], edi
jmp 0x4ff579
mov eax, dword [ebp - 4]
push edi
push edi
push edi
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
call edi
test esi, esi
je 0x4ff52e
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 4], eax
test eax, eax
jne 0x4ff5b5
push esi
call edi
jmp 0x4ff52e
mov dword [ebx + 0x14], esi
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51a3da
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c2460]
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.00508e98
mov dword [ebp - 0x14], eax
cmp dword [0x5d6d50], esi
jne 0x51a4cd
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x51a45a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x51a5ad
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x51a5ad
push 0x53a3b4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x51a5ad
push eax
call ebx
push 0x53a3c0
push edi
mov dword [0x5d6d50], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x5d6d54], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5d6d58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5d6d60], eax
test eax, eax
je 0x51a4ca
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5d6d5c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x51a4f2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x51a4e5
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x51a507
push 4
pop eax
jmp 0x51a5af
cmp dword [ebp - 0x14], esi
je 0x51a507
push dword [0x5d6d50]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x51a4ec
mov eax, dword [0x5d6d5c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x51a565
cmp dword [0x5d6d60], edi
je 0x51a565
push eax
call ebx
push dword [0x5d6d60]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x51a565
test eax, eax
je 0x51a565
call ecx
test eax, eax
je 0x51a55a
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 0x51a55a
test byte [ebp - 8], 1
jne 0x51a565
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x51a595
mov eax, dword [0x5d6d54]
cmp eax, edi
je 0x51a592
push eax
call ebx
test eax, eax
je 0x51a592
call eax
mov esi, eax
test esi, esi
je 0x51a592
mov eax, dword [0x5d6d58]
cmp eax, edi
je 0x51a592
push eax
call ebx
test eax, eax
je 0x51a592
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5d6d50]
call ebx
test eax, eax
je 0x51a5ad
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x51a5af
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret
Function at 0x526ba0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x526bac
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00526bc0