joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d960
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x512bb0
push 0x4a9460
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x51a3c4]
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 - 0x20], 0
mov dword [ebp - 0x2c], 0
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x47d9af
mov dword [eax], ebx
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x47da14
push 0
push 0
push 0
push 0x1000002
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x47da14
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x47da14
mov dword [ebp - 0x20], ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [ebp - 0x20], 0
je 0x47dac3
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x24], edi
push 0x10
push 1
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x47da93
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x47da93
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x47da93
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x47da93
movzx esi, word [eax]
cmp esi, dword [ebp - 0x1c]
ja 0x47da8b
mov dword [ebp - 0x1c], esi
add esi, 3
and esi, 0xfffffffc
mov dword [ebp - 0x1c], esi
cmp dword [eax + 0x28], 0xfeef04bd
je 0x47da98
mov edi, 0xd
mov dword [ebp - 0x24], edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x47dac8
mov edi, 0xd
test ebx, ebx
je 0x47dad3
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x47dae3
push eax
call ebx
mov eax, dword [ebp - 0x30]
cmp eax, 0xffffffff
je 0x47daee
push eax
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x47db12
lea eax, [esi*2 + 4]
mov ecx, dword [ebp - 0x10]
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 - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47db30
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x512bd0
push 0x4a9460
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x51a3c4]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
xor edi, edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x10], 2
jae 0x47db96
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x28], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x47dbfc
push 0
push 0
push 0
push 0x1000002
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x47dbfc
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x47dbfc
mov dword [ebp - 0x1c], edi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x47dcba
push 0x10
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x47dcb8
push eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, eax
test edx, edx
je 0x47dcb8
mov dword [ebp - 4], esi
movzx esi, word [edx]
mov dword [ebp - 0x28], esi
lea eax, [esi*2 + 4]
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jbe 0x47dc60
shr ecx, 1
lea esi, [ecx - 4]
mov dword [ebp - 0x28], esi
mov dword [ebp + 0x10], 1
jmp 0x47dc67
mov dword [ebp + 0x10], 0
mov eax, esi
push eax
push edx
push dword [ebp + 0x14]
call fcn.004a88a0
add esp, 0xc
mov eax, dword [str.FE2X]
mov ecx, dword [ebp + 0x14]
mov dword [esi + ecx], eax
cmp dword [ebp + 0x10], 0
je 0x47dc8a
mov word [ecx], si
mov esi, 1
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x47dcba
xor esi, esi
test edi, edi
je 0x47dcc5
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x47dcd2
push ebx
call edi
mov eax, dword [ebp - 0x30]
cmp eax, 0xffffffff
je 0x47dcdd
push eax
call edi
mov eax, esi
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 0x481e10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db445
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x51a3c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x481e54
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call fcn.004762a0
mov ecx, eax
test ecx, ecx
je 0x481f53
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test esi, esi
je 0x481ec1
test esi, 0xffff0000
jne 0x481eab
movzx eax, si
lea ecx, [ebp - 0x10]
push eax
call fcn.0047df50
jmp 0x481ecd
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x481eb0
sub ecx, edx
sar ecx, 1
jmp 0x481ec3
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.00476770
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00484230
mov edx, dword [ebp - 0x24]
or esi, 0xffffffff
add esp, 0x18
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x481f11
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x481f30
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
imul eax, dword [ebp - 0x14], 0x64
add eax, dword [ebp - 0x18]
imul eax, eax, 0x64
add eax, dword [ebp - 0x1c]
imul eax, eax, 0x64
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00475e90
int3
Function at 0x482b60
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x482bd2
push esi
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x482b82
push 9
push ebx
call esi
push 5
push ebx
call esi
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push eax
call esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call esi
pop esi
pop ebx
pop ebp
ret
Function at 0x484080
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db76b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x51a3c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.004a8e20
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
mov dword [ebp - 0x224], esi
test esi, esi
je 0x484205
push ebx
push dword [ebx + 4]
push dword [ebx]
call fcn.004777f0
mov eax, dword [ebx]
lea edi, [ebp - 0x218]
add esp, 0xc
mov dword [ebx + 4], eax
cmp word [ebp - 0x218], 0
je 0x484200
mov eax, edi
lea ecx, [ebp - 0x218]
sub eax, ecx
sar eax, 1
cmp eax, esi
jae 0x484200
call fcn.004762a0
test eax, eax
je 0x484221
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push edi
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.00475eb0
test al, al
jne 0x484181
test edi, edi
jne 0x484160
xor eax, eax
jmp 0x484174
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x484165
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x21c]
call fcn.00476770
mov eax, dword [ebx + 4]
mov esi, dword [ebp - 0x21c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x220], eax
cmp eax, dword [ebx + 8]
je 0x4841b9
lea eax, [esi - 0x10]
push eax
call fcn.00475f90
mov ecx, dword [ebp - 0x220]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
add dword [ebx + 4], 4
jmp 0x4841c8
lea ecx, [ebp - 0x21c]
push ecx
push eax
mov ecx, ebx
call fcn.0047efa0
mov eax, dword [esi - 0xc]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edi, [edi + eax*2]
or eax, 0xffffffff
add edi, 2
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4841f0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp word [edi], 0
mov esi, dword [ebp - 0x224]
jne 0x484110
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a44be
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00475e90
int3
Function at 0x484230
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db7ad
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x51a3c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004762a0
mov ecx, eax
test ecx, ecx
je 0x484397
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x484353
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x484353
lea eax, [ebp - 0x48]
xor esi, esi
push eax
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x10], esi
xor ebx, ebx
push dword [eax]
call fcn.004843b0
add esp, 8
test eax, eax
je 0x4842ce
mov eax, dword [ebp - 0x40]
mov esi, eax
movzx eax, ax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x3c]
mov edi, eax
shr esi, 0x10
shr edi, 0x10
movzx ebx, ax
push ebx
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push esi
push str._d._d._d._d
push eax
call fcn.004760e0
mov eax, dword [ebp + 0x10]
add esp, 0x18
test eax, eax
je 0x4842ee
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4842fa
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x484303
mov dword [eax], edi
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x48430c
mov dword [eax], ebx
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
push esi
call fcn.00475f90
mov edi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x484383
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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
add esi, 0xfffffff0
push esi
call fcn.00475f90
mov edi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x484383
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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.00475e90
int3
Function at 0x484a40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db862
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x51a3c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1a0]
mov esi, dword [ebp + 0xc]
push 0xc8
push 0
mov dword [ebp - 0x1ac], edi
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1a4], 0
call fcn.004a8e20
push 0xc8
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.004a8e20
add esp, 0x18
call fcn.004762a0
mov ecx, eax
test ecx, ecx
je 0x484b87
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 3
lea eax, [ebp - 0x1a8]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
mov dword [ebp - 0x1a4], 1
call fcn.0047c920
mov esi, dword [ebp - 0x1a8]
lea eax, [ebp - 0xd8]
push 0xc8
push eax
push 0
push 0
push 0
push 0xc8
lea eax, [ebp - 0x1a0]
mov dword [ebp - 4], 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x484b4e
lea ecx, [ebp - 0xd8]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x484b30
sub ecx, edx
lea eax, [ebp - 0xd8]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00476770
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x484b6a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a44be
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00475e90
int3
Function at 0x485110
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db960
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x51a3c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x485188
push 0x4e18f0
push eax
call fcn.004a95c0
mov ecx, eax
add esp, 8
mov eax, dword [esi]
test ecx, ecx
je 0x485167
sub ecx, eax
sar ecx, 1
cmp ecx, 1
je 0x48518f
cmp dword [eax - 0xc], 0
jl 0x485188
push 0x4e18f8
push eax
call fcn.004a95c0
add esp, 8
test eax, eax
je 0x485188
sub eax, dword [esi]
sar eax, 1
cmp eax, 1
je 0x48518f
xor eax, eax
jmp 0x48529c
push 2
lea eax, [ebp - 0x824]
mov ecx, esi
push eax
call fcn.0047c920
lea eax, [ebp - 0x824]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x820]
push 0x4e1900
push eax
call fcn.00483350
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x828], 0
push 0
push eax
call fcn.004a8e20
add esp, 0x18
push 0
push 0x80
push 3
push 0
push 1
push 0x20000
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x485256
push 0
lea eax, [ebp - 0x828]
mov dword [ebp - 0x81c], 0
push eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x818], 0
push eax
push 0xc
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x80c], 0x800
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4852b7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov edx, dword [ebp - 0x820]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x485278
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x824]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x48529a
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a44be
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x7f4]
xor esi, esi
cmp eax, 4
je 0x4852c9
cmp eax, 7
jne 0x4852ce
mov esi, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x485258
Function at 0x485e10
Capabilities:
Check if file exists
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbac0
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x51a3c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x485f3a
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x485f3a
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x485f3a
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.004a8e20
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x485f28
mov ecx, edi
call fcn.004861b0
nop
push dword [ebp - 0x234]
lea eax, [ebp - 0x240]
push eax
call fcn.00485f60
lea eax, [ebp - 0x240]
mov dword [ebp - 4], 0
push ebx
push eax
call fcn.004850d0
add esp, 0x10
test eax, eax
je 0x485ef2
lea eax, [ebp - 0x234]
mov ecx, edi
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00485d10
mov edx, dword [ebp - 0x240]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x485f17
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x485eb0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp eax, dword [edi + 4]
sbb eax, eax
neg eax
jmp 0x485f3c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a44be
mov esp, ebp
pop ebp
ret

Function at 0x486130
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ebx]
mov esi, dword [eax]
cmp esi, eax
je 0x4861a5
push edi
push dword [esi + 0x10]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x486164
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x48618a
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x486186
cmp esi, dword [eax + 8]
jne 0x486186
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x486176
mov esi, eax
jmp 0x4861a0
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4861a0
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x486194
cmp esi, dword [ebx]
jne 0x486141
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x487910
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x51a3c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x808], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x814], edi
test ebx, ebx
je 0x487ab2
mov esi, dword [esi]
cmp dword [esi - 0xc], 0
je 0x487ab2
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004a8e20
add esp, 0xc
mov dword [ebp - 0x80c], 0x400
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x810], 1
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x810]
push eax
mov eax, dword [ebp - 0x808]
push dword [eax]
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x487ab2
lea esi, [ebp - 0x804]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4879b2
sub esi, ecx
sar esi, 1
jne 0x4879dd
mov ecx, edi
call fcn.00478760
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a44be
mov esp, ebp
pop ebp
ret
mov edx, dword [edi]
lea ebx, [ebp - 0x804]
sub ebx, edx
sar ebx, 1
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x808], eax
test esi, esi
js 0x487ac5
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or ecx, eax
jge 0x487a15
push esi
mov ecx, edi
call fcn.004763d0
mov edx, dword [edi]
lea edi, [esi + esi]
mov eax, dword [edx - 8]
cmp ebx, dword [ebp - 0x808]
ja 0x487a4e
lea ecx, [edx + ebx*2]
test edi, edi
je 0x487a87
test ecx, ecx
jne 0x487a3b
call fcn.004b0efe
mov dword [eax], 0x16
jmp 0x487a82
add eax, eax
cmp eax, edi
jb 0x487a77
push edi
push ecx
push edx
call fcn.004a88a0
add esp, 0xc
jmp 0x487a87
add eax, eax
test edi, edi
je 0x487a87
cmp eax, edi
jb 0x487a6b
push edi
lea eax, [ebp - 0x804]
push eax
push edx
call fcn.004a88a0
add esp, 0xc
jmp 0x487a87
push eax
push 0
push edx
call fcn.004a8e20
add esp, 0xc
call fcn.004b0efe
mov dword [eax], 0x22
call fcn.004aba6f
mov eax, dword [ebp - 0x814]
mov ecx, dword [eax]
cmp esi, dword [ecx - 8]
jg 0x487ac5
mov dword [ecx - 0xc], esi
xor ecx, ecx
mov eax, dword [eax]
mov word [edi + eax], cx
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a44be
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a44be
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00475e90
int3