joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c87a0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x518334]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x25c]
mov dx, word [ecx + 4]
mov word [ebp + eax*2 - 0x18], dx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x25c]
mov ax, word [edx + 8]
mov word [ebp + ecx*2 - 0x18], ax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultLangID]
mov edx, dword [ebp - 4]
mov word [ebp + edx*2 - 0x18], ax
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x25c]
mov ax, word [edx + 8]
mov word [ebp + ecx*2 - 0x18], ax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x25c]
mov cx, word [eax + 4]
mov word [ebp + edx*2 - 0x18], cx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x18], 0x4e4
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultLangID]
mov edx, dword [ebp - 4]
mov word [ebp + edx*2 - 0x18], ax
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov word [ebp + ecx*2 - 0x18], 0x4e4
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 8
jae 0x4c8930
mov eax, dword [ebp - 4]
mov cx, word [ebp + eax*2 - 0x18]
mov word [ebp - 0x2c], cx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov cx, word [ebp + eax*2 - 0x18]
mov word [ebp - 0x1c], cx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
push eax
movzx ecx, word [ebp - 0x1c]
push ecx
movzx edx, word [ebp - 0x2c]
push edx
push 0x4ecf28
push 0x104
push 0x104
lea eax, [ebp - 0x238]
push eax
call fcn.0049b80f
add esp, 0x1c
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x25c]
mov edx, dword [ecx]
push edx
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4c892b
cmp dword [ebp - 0x20], 0
je 0x4c892b
mov eax, dword [ebp - 0x20]
push eax
mov esi, dword [ebp + 0xc]
call fcn.0040bb2a
mov al, 1
jmp 0x4c8932
jmp 0x4c8888
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0049c88a
mov esp, ebp
pop ebp
ret 8
Function at 0x4c8a70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5085e8
push 0x49ff20
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, dword [0x518334]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x4c8aca
cmp dword [ebp + 0xc], 0
je 0x4c8aca
cmp dword [ebp + 0x10], 1
jae 0x4c8acf
jmp 0x4c8bad
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jb 0x4c8af1
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp dword [ebp - 0x1c], ecx
jbe 0x4c8af6
jmp 0x4c8bad
mov dword [ebp - 4], 0
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004938b2
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4c8b31
mov dword [ebp - 4], 0xfffffffe
jmp 0x4c8bad
mov ecx, dword [ebp - 0x1c]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
call fcn.00497210
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4c8b8d
mov eax, dword [ebp + 0x10]
sub eax, 1
cmp dword [ebp - 0x1c], eax
ja 0x4c8b8d
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0x10]
sub eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0049aa24
add esp, 0x10
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x4c8bad
cmp dword [ebp - 0x20], 0
je 0x4c8bcc
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00494fb5
add esp, 4
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c8c40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x518334]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, dword [ebp + 8]
call fcn.00407b4d
movzx eax, al
test eax, eax
je 0x4c8c6a
xor eax, eax
jmp 0x4c8ed2
mov word [ebp - 0x218], 0
push 0x208
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.00497210
add esp, 0xc
push 0x4ecf68
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0040b343
cmp eax, 0xffffffff
je 0x4c8cdb
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x4ecf8c
call fcn.004c8a70
add esp, 0xc
test eax, eax
jne 0x4c8cc1
xor eax, eax
jmp 0x4c8ed2
lea eax, [ebp - 0x218]
push eax
push 0x4ecfb0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00455c3b
jmp 0x4c8ec1
push 0x4ecfd4
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0040b343
cmp eax, 0xffffffff
je 0x4c8d2d
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x4ecfe8
call fcn.004c8a70
add esp, 0xc
test eax, eax
jne 0x4c8d13
xor eax, eax
jmp 0x4c8ed2
lea eax, [ebp - 0x218]
push eax
push 0x4ecffc
mov ecx, dword [ebp + 8]
push ecx
call fcn.00455c3b
jmp 0x4c8ec1
push 0x4ed010
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0040b343
cmp eax, 0xffffffff
je 0x4c8d7f
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x4ed020
call fcn.004c8a70
add esp, 0xc
test eax, eax
jne 0x4c8d65
xor eax, eax
jmp 0x4c8ed2
lea eax, [ebp - 0x218]
push eax
push 0x4ed030
mov ecx, dword [ebp + 8]
push ecx
call fcn.00455c3b
jmp 0x4c8ec1
push 0x4ed040
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0040b343
cmp eax, 0xffffffff
je 0x4c8dca
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
ja 0x4c8db0
xor eax, eax
jmp 0x4c8ed2
lea eax, [ebp - 0x218]
push eax
push 0x4ed054
mov ecx, dword [ebp + 8]
push ecx
call fcn.00455c3b
jmp 0x4c8ec1
push 0x4ed068
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0040b343
cmp eax, 0xffffffff
je 0x4c8e15
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
ja 0x4c8dfb
xor eax, eax
jmp 0x4c8ed2
lea eax, [ebp - 0x218]
push eax
push 0x4ed07c
mov ecx, dword [ebp + 8]
push ecx
call fcn.00455c3b
jmp 0x4c8ec1
push 0x4ed090
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0040b343
cmp eax, 0xffffffff
je 0x4c8e77
push 0x20a
push 0
lea edx, [ebp - 0x218]
push edx
call fcn.00497210
add esp, 0xc
push 0x105
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x218]
push edx
push 0x4ed0a4
mov eax, dword [ebp + 8]
push eax
call fcn.00455c3b
jmp 0x4c8ec1
push 0x4ed0b8
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0040b343
cmp eax, 0xffffffff
je 0x4c8ec1
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x4ed0d4
call fcn.004c8a70
add esp, 0xc
test eax, eax
jne 0x4c8eac
xor eax, eax
jmp 0x4c8ed2
lea edx, [ebp - 0x218]
push edx
push str._Systemroot_
mov eax, dword [ebp + 8]
push eax
call fcn.00455c3b
mov ecx, dword [ebp + 8]
push ecx
call fcn.004c8bf0
add esp, 4
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049c88a
mov esp, ebp
pop ebp
ret
Function at 0x4c91e0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x518334]
xor eax, ebp
mov dword [ebp - 8], eax
mov word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.00497210
add esp, 0xc
mov byte [ebp - 1], 0
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
ja 0x4c9236
jmp 0x4c92e3
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 0x21c], 0
jmp 0x4c925e
mov eax, dword [ebp - 0x21c]
add eax, 1
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 1
jae 0x4c92e3
mov word [ebp - 0x430], 0
push 0x208
push 0
lea ecx, [ebp - 0x42e]
push ecx
call fcn.00497210
add esp, 0xc
push 0xffffffffffffffff
lea edx, [ebp - 0x218]
push edx
push 0x104
lea eax, [ebp - 0x430]
push eax
call fcn.0049aa24
add esp, 0x10
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx*4 + 0x51e2e0]
push edx
push 0x104
lea eax, [ebp - 0x430]
push eax
call fcn.004c72d6
add esp, 0x10
lea ecx, [ebp - 0x430]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c92de
mov byte [ebp - 1], 1
jmp 0x4c92e3
jmp 0x4c924f
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0049c88a
mov esp, ebp
pop ebp
ret

Function at 0x4c9300
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 0xd], 0
push 0x288
call fcn.0049a73b
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4c9327
xor al, al
jmp 0x4c9411
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0x288
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.iphlpapi.dll_GetAdaptersInfo
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x6f
jne 0x4c938a
mov edx, dword [ebp - 0x14]
push edx
call fcn.00494c70
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.0049a73b
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4c937a
xor al, al
jmp 0x4c9411
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call sub.iphlpapi.dll_GetAdaptersInfo
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x4c93ee
cmp dword [ebp - 0x14], 0
je 0x4c93ee
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x190], 3
ja 0x4c93b2
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
jmp 0x4c9396
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x194]
cmp edx, 0x52
jne 0x4c93e4
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x195]
cmp ecx, 0x54
jne 0x4c93e4
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 0x196]
test eax, eax
jne 0x4c93e4
mov byte [ebp - 0xd], 1
jmp 0x4c93ee
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
jmp 0x4c9396
cmp dword [ebp - 8], 0
je 0x4c940e
mov eax, dword [ebp - 8]
push eax
call fcn.00494c70
add esp, 4
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x4c9420
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov byte [ebp - 9], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c9460
mov byte [ebp - 9], 0
jmp 0x4c94dd
push 0x80
call fcn.0049a73b
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], 0x50
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4c94a9
mov byte [ebp - 9], 0
jmp 0x4c94c1
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00458038
add esp, 8
test eax, eax
je 0x4c94c1
mov byte [ebp - 9], 1
cmp dword [ebp - 0x18], 0
je 0x4c94d3
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00494c70
add esp, 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x4cd620
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], 0x10325476
pop ebp
ret
Function at 0x4ce620
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x518334]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0x80004005
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0xffffffff
mov byte [ebp - 0xc], 0
xor eax, eax
mov dword [ebp - 0xb], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
cmp dword [ebp + 8], 0
je 0x4ce681
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
test edx, edx
jne 0x4ce68b
jmp 0x4ce7ae
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x4ce6ba
jmp 0x4ce7ae
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
ja 0x4ce6d9
jmp 0x4ce7ae
push 0
lea edx, [ebp - 0x1c]
push edx
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4ce702
jmp 0x4ce7ae
lea edx, [ebp - 0xc]
push edx
call fcn.004ce540
add esp, 4
test eax, eax
jne 0x4ce71c
jmp 0x4ce7ae
mov eax, dword [ebp - 0x14]
sub eax, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 1
push ecx
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4ce741
jmp 0x4ce7ae
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x2c]
mov dword [edx], eax
push 0
push 0
push 4
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4ce77e
jmp 0x4ce7ae
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004ce570
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4ce7ae
cmp dword [ebp - 0x24], 0
je 0x4ce7ae
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x28], 0xffffffff
je 0x4ce7c5
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049c88a
mov esp, ebp
pop ebp
ret

Function at 0x4cf0a0
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.SbieDll.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], 0
setne al
mov esp, ebp
pop ebp
ret
Function at 0x4d13f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x508608
push 0x49ff20
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, dword [0x518334]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x4d144a
cmp dword [ebp + 0xc], 0
je 0x4d144a
cmp dword [ebp + 0x10], 1
jae 0x4d144f
jmp 0x4d152d
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jb 0x4d1471
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp dword [ebp - 0x1c], ecx
jbe 0x4d1476
jmp 0x4d152d
mov dword [ebp - 4], 0
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004938b2
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4d14b1
mov dword [ebp - 4], 0xfffffffe
jmp 0x4d152d
mov ecx, dword [ebp - 0x1c]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
call fcn.00497210
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4d150d
mov eax, dword [ebp + 0x10]
sub eax, 1
cmp dword [ebp - 0x1c], eax
ja 0x4d150d
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0x10]
sub eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0049aa24
add esp, 0x10
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x4d152d
cmp dword [ebp - 0x20], 0
je 0x4d154c
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00494fb5
add esp, 4
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
call fcn.00408545
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4d1610
xor eax, eax
jmp 0x4d1621
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x4d161c
xor eax, eax
jmp 0x4d1621
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4d2b60
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbcf1
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x518334]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
call fcn.0040ab9a
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0xffffffff
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
mov eax, dword [ebp + 8]
push eax
push str._s_del__x
lea eax, [ebp - 0x14]
call fcn.00408fb3
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x4d2c4a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
call fcn.00408545
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0049c029
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4d2c18
push 4
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040853b
mov eax, dword [ebp - 0x1c]
jmp 0x4d2c63
push 4
push 0
lea eax, [ebp - 0x14]
call fcn.00408545
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
test eax, eax
jne 0x4d2c4a
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040853b
mov eax, dword [ebp - 0x20]
jmp 0x4d2c63
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040853b
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4d2c80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x518334]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x244], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00407fa9
mov dword [ebp - 0x240], 0
push 0x228
push 0
lea edx, [ebp - 0x23c]
push edx
call fcn.00497210
add esp, 0xc
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4d2cde
jmp 0x4d2d47
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.DLL_Process32FirstW
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
jne 0x4d2d09
jmp 0x4d2d47
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 8]
call fcn.0045132c
test eax, eax
jne 0x4d2d33
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x238]
mov dword [eax], ecx
mov dword [ebp - 0x244], 1
jmp 0x4d2d47
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x4d2d09
cmp dword [ebp - 4], 0xffffffff
je 0x4d2d57
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [ebp - 0x244]
mov dword [ebp - 0x24c], edx
lea ecx, [ebp - 8]
call fcn.0040853b
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0049c88a
mov esp, ebp
pop ebp
ret
Function at 0x4d2d80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbd1f
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x518334]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x228], 0
lea eax, [ebp - 0x230]
call fcn.004603e1
mov dword [ebp - 4], 0
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x224], 0
push 0x206
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.00497210
add esp, 0xc
lea eax, [ebp - 0x14]
call fcn.0040ab9a
mov byte [ebp - 4], 1
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4d2e70
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4d2e70
push 0x4ee958
mov ecx, dword [ebp + 8]
push ecx
call fcn.00407fa9
mov edx, dword [ebp - 0x234]
or edx, 1
mov dword [ebp - 0x234], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040853b
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x230]
call fcn.00448fac
mov eax, dword [ebp + 8]
jmp 0x4d2f58
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp dword [ebp - 0x22c], 0
jne 0x4d2e91
jmp 0x4d2f17
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea ecx, [ebp - 0x224]
push ecx
call fcn.0049795c
add esp, 4
test eax, eax
je 0x4d2ed5
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.004080a1
lea eax, [ebp - 0x230]
call fcn.00468212
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4d2f17
lea eax, [ebp - 0x230]
call fcn.00408545
mov dword [ebp - 0x260], eax
mov edx, dword [ebp - 0x22c]
push edx
mov eax, dword [ebp - 0x260]
push eax
mov ecx, dword [ebp - 0x260]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [ebp - 0x14]
mov esi, dword [ebp + 8]
call fcn.00407654
mov ecx, dword [ebp - 0x234]
or ecx, 1
mov dword [ebp - 0x234], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040853b
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x230]
call fcn.00448fac
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0049c88a
mov esp, ebp
pop ebp
ret