joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48d7a0
Capabilities:
Delete file
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov ebx, dword [esi + 0xc]
mov ecx, ebx
and ebx, 0x100
and ecx, 0xfffffcff
neg ebx
mov dword [ebp - 8], ecx
sbb ebx, ebx
and ebx, 0xffffff00
add ebx, 0xf023f
test byte [esi + 8], 1
jne 0x48d833
lea eax, [ebp - 4]
push eax
push ebx
push edi
lea eax, [esi + 0x10]
push eax
push ecx
call edx
mov edi, eax
lea eax, [esi + 0x218]
test edi, edi
jne 0x48d815
push 2
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyExW]
mov edi, eax
test edi, edi
jne 0x48d80f
or dword [esi + 8], 1
jmp 0x48d81c
lea eax, [esi + 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x48d82a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 8]
test byte [esi + 8], 2
jne 0x48d89d
test edi, edi
jne 0x48d89d
lea eax, [ebp - 4]
push eax
push ebx
push edi
lea eax, [esi + 0x10]
push eax
push ecx
call edx
test eax, eax
jne 0x48d88f
push eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x48d876
or dword [esi + 8], 2
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 4]
mov esi, 0x15e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov eax, 0x15e
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48da10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
mov ecx, 0x108
push esi
push edi
mov esi, edx
lea edi, [ebx + 0x18]
lea eax, [ebx + 0x24]
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x434], 0
test eax, eax
je 0x48db54
mov ecx, 0x104
cmp word [eax], 0
je 0x48da4f
add eax, 2
sub ecx, 1
jne 0x48da41
test ecx, ecx
je 0x48db54
lea esi, [ebx + 0x22c]
test esi, esi
je 0x48db54
mov ecx, 0x104
mov eax, esi
nop dword [eax]
cmp word [eax], 0
je 0x48da7e
add eax, 2
sub ecx, 1
jne 0x48da70
test ecx, ecx
je 0x48db54
test byte [edx + 4], 1
je 0x48dac2
mov ecx, esi
call fcn.0048e570
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48daac
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov ecx, ebx
call fcn.0048df80
test eax, eax
je 0x48db42
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [edx + 0x41c]
test eax, eax
je 0x48db54
mov esi, 0x100
cmp word [eax], 0
je 0x48dae3
add eax, 2
sub esi, 1
jne 0x48dad5
xor eax, eax
mov edi, 0x80070057
test esi, esi
cmovne edi, eax
je 0x48db54
mov eax, 0x100
sub eax, esi
add eax, eax
neg esi
sbb esi, esi
and esi, eax
add esi, 2
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [ebx + 4], ecx
test ecx, ecx
je 0x48db4b
mov eax, dword [ebp + 8]
mov edx, esi
shr edx, 1
je 0x48db54
push ecx
push dword [eax + 0x41c]
push ecx
call fcn.0048c510
test eax, eax
js 0x48db54
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
mov dword [ebx + 0x434], eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 0x57
pop ebx
pop ebp
ret 4
Function at 0x48de70
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
and eax, 3
cmp al, 3
jne 0x48df1d
mov edx, dword [esi + 0x20]
lea eax, [ebp - 4]
push edi
push eax
mov eax, edx
mov dword [ebp - 4], 0
and eax, 0x100
neg eax
sbb eax, eax
and edx, 0xfffffcff
and eax, 0xffffff00
add eax, 0xf023f
push eax
push 0
lea eax, [esi + 0x24]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x48df05
cmp byte [ebp + 8], al
je 0x48deec
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [esi + 4]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48deec
lea edi, [eax + 0x50]
jmp 0x48df05
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 0x14]
push 0
push dword [esi + 4]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x48df13
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48df80
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0
push 0x80
push 3
push 0
mov ebx, ecx
push 1
push 0xc0000000
lea eax, [ebx + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x48dfbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48dfe7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x48e002
push dword [ebp - 8]
mov edi, 0x54f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 8]
mov dword [ebx + 4], edi
mov dword [ebx + 0x434], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48e044
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x48e0cc
jmp 0x48e06f
cmp dword [ebp - 4], esi
je 0x48e060
push dword [ebp - 8]
mov edi, 0x1e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov edx, edi
mov ecx, edi
call fcn.0048c560
add esp, 4
xor edi, edi
mov edx, dword [ebx + 4]
test edx, edx
je 0x48e0cc
mov ecx, esi
mov eax, edx
shr ecx, 1
mov dword [ebp - 4], ecx
je 0x48e08f
cmp word [eax], 0
je 0x48e08f
add eax, 2
sub ecx, 1
jne 0x48e081
sub dword [ebp - 4], ecx
xor edx, edx
test ecx, ecx
mov eax, edi
mov dword [ebp - 0xc], eax
cmovne edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov edx, dword [ebx + 4]
je 0x48e0cc
mov ecx, dword [ebp - 4]
add ecx, ecx
add ecx, 2
lea eax, [ecx + 4]
cmp eax, esi
ja 0x48e0cc
mov eax, dword [edx + ecx]
sub esi, ecx
mov dword [ebx + 0x14], eax
lea eax, [ecx + 4]
add eax, edx
sub esi, 4
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48e570
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x502054]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48e66d
test edi, edi
je 0x48e659
mov ecx, 0x104
mov eax, edi
cmp word [eax], 0
je 0x48e5b3
add eax, 2
sub ecx, 1
jne 0x48e5a5
test ecx, ecx
je 0x48e659
mov eax, 0x104
sub eax, ecx
add eax, eax
neg ecx
sbb ecx, ecx
and ecx, eax
shr ecx, 1
je 0x48e659
push esi
lea esi, [edi + ecx*2]
cmp word [esi], 0x5c
je 0x48e5f9
sub esi, 2
sub ecx, 1
jne 0x48e5d6
pop esi
mov eax, 3
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9913
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x48e5e4
push ecx
push 0x514ca8
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x20c]
call fcn.0048c510
push esi
lea ecx, [ebp - 0x20c]
call fcn.0048c4b0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48e5e4
push ecx
lea eax, [ebp - 0x20c]
mov edx, 0x104
push eax
push ecx
mov ecx, edi
call fcn.0048c510
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9913
mov esp, ebp
pop ebp
ret
mov eax, 3
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9913
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.004a9913
mov esp, ebp
pop ebp
ret
Function at 0x48ecd0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfc30
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x502054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
lea edx, [ebx + 0x18]
lea eax, [ebx + 0x30]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], eax
cmp dword [ebx + 0x14], edi
jbe 0x48ed47
nop dword [eax]
cmp byte [eax], 0
lea esi, [edi*4]
je 0x48ed29
mov eax, dword [edx]
mov ecx, dword [esi + eax]
mov eax, dword [ecx]
call dword [eax + 0x10]
lea edx, [ebx + 0x18]
mov eax, dword [edx]
mov ecx, dword [esi + eax]
test ecx, ecx
je 0x48ed3c
mov eax, dword [ecx]
push 1
call dword [eax + 0x18]
lea edx, [ebx + 0x18]
inc edi
lea eax, [ebx + 0x30]
cmp edi, dword [ebx + 0x14]
jb 0x48ed10
jmp 0x48ed4d
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], eax
mov eax, dword [edx]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x48ed70
push eax
push 0
call edi
push eax
call esi
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [ebx + 0x20]
cmp eax, 0xffffffff
je 0x48ed7f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0
jne 0x48ed8d
cmp dword [ebx + 0x14], 0
jne 0x48ed97
lea eax, [ebx + 0x32]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebx + 0x10], 0
lea eax, [ebx + 0x10]
je 0x48eda7
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
push ebx
push 0
call edi
push eax
call esi
mov eax, ebx
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 0x490de0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x502054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x24], 0
je 0x490e19
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9913
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
jne 0x490e42
mov eax, dword [0x502b60]
inc eax
mov dword [esi + 0xc], 0
mov dword [esi + 8], edi
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], ebx
mov dword [0x502b60], eax
mov dword [esi + 0x18], eax
jmp 0x490eb7
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004abb60
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x490e81
cmp dword [ebp - 0x114], 6
mov eax, 0x185
jae 0x490e86
mov eax, 0x85
mov dword [esi + 0xc], eax
mov dword [esi + 8], edi
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], ebx
cmp edi, 4
je 0x490eb0
cmp edi, 1
je 0x490eb0
mov eax, dword [0x502b60]
inc eax
mov dword [0x502b60], eax
mov dword [esi + 0x18], eax
jmp 0x490eb7
mov dword [esi + 0x18], 0
lea eax, [esi + 4]
push eax
push dword [esi + 0x20]
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov ecx, dword [ebp - 4]
test eax, eax
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.004a9913
mov esp, ebp
pop ebp
ret 0xc
Function at 0x493610
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d032d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x502054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x4937a5
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
call fcn.00456f20
mov ecx, eax
test ecx, ecx
je 0x493809
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x28], eax
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x28]
mov esi, dword [ebp + 0x14]
push esi
call fcn.00460eb0
test al, al
jne 0x4936a9
test esi, esi
jne 0x493684
xor ecx, ecx
jmp 0x49369f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x493690
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp + 0x28]
call fcn.00461210
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp + 0x28]
cmp edi, dword [ebp - 0x10]
je 0x4936d6
lea eax, [esi - 0x10]
mov dword [ebp + 0x18], edi
push eax
call fcn.00461130
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], 2
add dword [ebp - 0x14], 4
jmp 0x4936e3
lea eax, [ebp + 0x28]
push eax
push edi
lea ecx, [ebp - 0x18]
call fcn.0047ca50
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4936ff
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dl, 1
lea ecx, [ebp - 0x18]
call fcn.004808b0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4937f4
mov edi, dword [ebp - 0x14]
mov dword [ebp + 0x28], esi
cmp esi, edi
je 0x49375e
nop word [eax + eax]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [esi]
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x493751
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
mov dword [ebp + 0x28], esi
cmp esi, edi
jne 0x493730
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x493784
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x493813
push ecx
push esi
call fcn.004aa103
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jmp 0x4937f4
cmp eax, 1
jne 0x4937bb
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x4937f4
push 0x67
push ecx
lea ecx, [ebp + 0x20]
call fcn.00479190
mov dword [ebp - 4], 6
push dword [0x514c84]
mov eax, dword [eax + 8]
call eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x28], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x24
push 0x80004005
call fcn.00456c70
call fcn.004b3474
int3
Function at 0x4940a0
Capabilities:
Create thread
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d07cc
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x502054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x39
lea eax, [ebp - 0x10]
push eax
call fcn.0048bb10
mov dword [ebp - 4], 0
push dword [0x514fa4]
push 1
push dword [ebp - 0x10]
push 0x4ee6d8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x494112
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
sub esp, 8
mov dword [0x502b10], esi
lea ecx, [ebp - 0x1c]
call fcn.00482000
mov dword [ebp - 4], 2
mov eax, dword [eax + 8]
push 0
push 0
push 1
push 0
call eax
mov dword [0x514c84], eax
mov dword [ebp - 4], 0xffffffff
sub esp, 8
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00482000
mov dword [ebp - 4], 3
mov eax, dword [eax + 8]
push 0
push 0
push 1
push 0
call eax
mov dword [ebp - 4], 0xffffffff
sub esp, 8
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00482000
mov dword [ebp - 4], 4
mov eax, dword [eax + 8]
push 0
push 1
push 0
push 0
call eax
mov dword [0x514c88], eax
mov dword [ebp - 4], 0xffffffff
push 0
push 0
push 0
push 0x480d60
push 0
push 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.004b3b0d
add esp, 0x18
call fcn.004885b0
push 0
push 0
push 0x514fc0
push 0x464f60
push 0
push 0
call fcn.004b3b0d
push 0
push 0
push 0x514fc0
push 0x464fa0
push 0
push 0
mov dword [0x514c70], eax
call fcn.004b3b0d
push 4
call fcn.004a9d6b
mov esi, eax
add esp, 0x34
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 5
mov dword [esi], 0
push esi
push str.S_1_5_80_956008885_3418522649_1831038044_1853292631_2271478464
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
mov dword [ebp - 4], 0xffffffff
mov dword [0x514c6c], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x494df0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0a4d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x502054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.00456f20
mov ecx, eax
test ecx, ecx
je 0x494f47
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
push 0xc
mov dword [ebp - 0x10], 1
call fcn.004a9d6b
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 2
push 0x800
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.004b3b9e
mov edx, dword [esi + 4]
add esp, 0xc
mov dword [esi], eax
cmp edx, 0x400
jae 0x494eaf
mov ecx, 0x400
lea eax, [eax + edx*2]
sub ecx, edx
add ecx, ecx
push ecx
push 0
push eax
call fcn.004abb60
add esp, 0xc
mov dword [esi + 4], 0x400
mov byte [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 3
push 1
push ebx
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x494efc
mov edx, dword [esi]
test edx, edx
jne 0x494edf
xor ecx, ecx
jmp 0x494ef3
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494ee4
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00461210
mov byte [ebp - 4], 0
add dword [esi + 8], 0xffffffff
jne 0x494f33
cmp dword [esi + 4], 0
je 0x494f21
push 0
push dword [esi]
call fcn.004b3b9e
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004aa103
add esp, 8
mov dword [ebp - 0x14], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00456c70
int3
Function at 0x496320
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0f1c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x502054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], 0
call fcn.00456f20
mov ecx, eax
test ecx, ecx
je 0x496517
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push 0x4ec298
call fcn.00460eb0
test al, al
jne 0x496392
push 0
push 0x4ec298
lea ecx, [ebp - 0x10]
call fcn.00461210
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [edi + 0x25c]
call fcn.00460880
mov dword [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4963ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ebx, [edi + 0xc]
nop dword [eax]
cmp byte [edi + 8], 0
mov ecx, ebx
mov dword [ebp - 0x10], ecx
jne 0x496417
lea eax, [edi + 0xc]
mov byte [edi + 8], 1
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [edi + 0x260]
mov esi, eax
cmp esi, ecx
je 0x496403
cmp ecx, 0xffffffff
je 0x496403
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 0x260], esi
cmp esi, 0xffffffff
je 0x4964c2
lea ebx, [edi + 0xc]
jmp 0x496438
mov eax, dword [edi + 0x260]
cmp eax, 0xffffffff
je 0x4964c2
push ecx
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4964c2
lea edx, [edi + 0x38]
mov ecx, 0x4ee094
mov eax, edx
mov si, word [eax]
cmp si, word [ecx]
jne 0x496468
test si, si
je 0x496464
mov si, word [eax + 2]
cmp si, word [ecx + 2]
jne 0x496468
add eax, 4
add ecx, 4
test si, si
jne 0x496442
xor eax, eax
jmp 0x49646d
sbb eax, eax
or eax, 1
test eax, eax
je 0x4963d0
mov eax, 0x4ee098
nop word [eax + eax]
mov cx, word [edx]
cmp cx, word [eax]
jne 0x4964a6
test cx, cx
je 0x4964a2
mov cx, word [edx + 2]
cmp cx, word [eax + 2]
jne 0x4964a6
add edx, 4
add eax, 4
test cx, cx
jne 0x496480
xor eax, eax
jmp 0x4964ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x4963d0
lea eax, [edi + 4]
push eax
lea ecx, [edi + 0x25c]
call fcn.00460880
mov eax, dword [ebp - 0x10]
mov ecx, 0x94
mov ebx, dword [ebp + 8]
mov esi, eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x250]
mov dword [ebp - 0x10], esi
mov eax, dword [eax + 0x250]
sub eax, 0x10
push eax
call fcn.00461130
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
mov eax, ebx
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
push 0x80004005
call fcn.00456c70
int3
Function at 0x496530
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0f6d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x502054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x1c], ebx
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
push 0xc
mov dword [ebp - 0x18], 0
call fcn.004a9d6b
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 1
mov byte [ebp - 4], 0
mov dword [esi], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push 0
push eax
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 1
push ebx
movlpd qword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x496638
mov ebx, dword [esi]
mov edi, dword [ebp + 0x10]
cmp edi, dword [ebx + 4]
je 0x4965fb
push edi
push dword [ebx]
call fcn.004b3b9e
mov edx, dword [ebx + 4]
add esp, 8
mov dword [ebx], eax
cmp edi, edx
jbe 0x4965f8
mov ecx, edi
add eax, edx
sub ecx, edx
push ecx
push 0
push eax
call fcn.004abb60
add esp, 0xc
mov dword [ebx + 4], edi
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push 0
push ecx
push edi
mov dword [ebp - 0x14], edi
push dword [eax]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49661b
cmp dword [ebp - 0x14], edi
je 0x496638
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x496638
push 0
push dword [edi]
call fcn.004b3b9e
add esp, 8
mov dword [edi], eax
mov dword [edi + 4], 0
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