joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4903c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db1eb
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x511070]
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 dword [ebp - 0x244], edx
mov edi, ecx
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x248], 0
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x49041b
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x240], esi
push 0
push 2
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x490470
add esi, 0xfffffff0
mov ecx, esi
call fcn.0041c670
add eax, 0x10
mov dword [ebp - 4], ebx
mov dword [edi], eax
or eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4904f8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x4904f8
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4904ca
nop dword [eax]
mov eax, dword [ebp - 0x244]
cmp dword [ebp - 0x234], eax
je 0x4904b2
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x490490
jmp 0x4904ca
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.0041cd80
mov esi, dword [ebp - 0x240]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
mov ecx, esi
call fcn.0041c670
add eax, 0x10
mov dword [edi], eax
or eax, 0xffffffff
mov dword [ebp - 4], eax
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4904f8
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x490520
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db22b
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x511070]
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, ecx
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
call fcn.00421030
mov dword [ebp - 0x24c], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov dword [ebp - 0x244], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4905b6
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4905ff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x24c]
xor edi, edi
push esi
push dword [esi]
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00490810
push dword [ebp - 0x24c]
call fcn.004a5788
add esp, 4
mov eax, edi
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.004a578d
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop word [eax + eax]
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00490dc0
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 0x228]
mov dword [eax + 0x14], ecx
lea eax, [ebp - 0x240]
push eax
push esi
call edi
test eax, eax
jne 0x490610
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0xa
mov esi, dword [ebp - 0x24c]
mov ecx, esi
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4906cc
mov edx, dword [ebp - 0x244]
nop dword [eax]
cmp dword [eax + 0x10], edx
jae 0x49067a
mov eax, dword [eax + 8]
jmp 0x49067e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x490670
cmp ecx, esi
je 0x4906cc
cmp edx, dword [ecx + 0x10]
jb 0x4906cc
mov eax, edi
dec edi
test eax, eax
je 0x4906cc
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00490dc0
mov eax, dword [ebp - 0x254]
mov ecx, ebx
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x244]
push eax
call fcn.00490710
jmp 0x490652
mov edi, 1
jmp 0x4905be
Function at 0x491450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db2a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x511070]
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, ecx
cmp dword [ebx + 8], 0
jne 0x491548
mov edi, dword [ebp + 8]
test edi, edi
je 0x4914dd
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491493
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x4914dd
lea eax, [ecx + ecx]
mov dword [ebp - 0x14], eax
call fcn.004a61a0
mov esi, esp
test esi, esi
je 0x4914dd
push 0
push 0
push dword [ebp - 0x14]
mov byte [esi], 0
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x4914df
xor esi, esi
call fcn.0041bed0
push eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push esi
call fcn.00491680
push 2
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.004915c0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
push 0
push eax
push dword [esi - 0xc]
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x491525
call fcn.00433120
mov edi, eax
jmp 0x491527
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x491590
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x491590
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x14]
push 0
push eax
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call esi
test eax, eax
jne 0x491570
call fcn.00433120
mov edi, eax
test edi, edi
js 0x491590
push 0
lea eax, [ebp - 0x18]
push eax
push 4
push 0x4eec9c
push dword [ebx]
call esi
test eax, eax
jne 0x49158e
call fcn.00433120
mov edi, eax
jmp 0x491590
xor edi, edi
not edi
shr edi, 0x1f
mov eax, edi
lea esp, [ebp - 0x28]
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.004a578d
mov esp, ebp
pop ebp
ret 8
Function at 0x4937b0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db4d0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], eax
mov esi, dword [eax + 0x14]
mov esi, dword [esi]
cmp esi, dword [eax + 0x14]
je 0x4939af
nop dword [eax + eax]
lea ebx, [esi + 0x10]
push ebx
call fcn.004940c0
mov edi, eax
test edi, edi
je 0x4939a1
movzx ecx, word [esi + 0xa]
cmp ecx, dword [ebp + 8]
jne 0x4939a1
movzx eax, word [esi + 8]
sub eax, 0
je 0x4938de
sub eax, 1
jne 0x4939a1
mov dword [ebp - 4], 1
mov ebx, dword [esi + 0x14]
mov dword [ebp - 0x10], eax
cmp dword [esi + 0xc], eax
je 0x49383d
call fcn.0048a040
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4938bd
mov eax, dword [esi + 0x18]
cmp dword [eax - 0xc], 0
jle 0x4938bd
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
push str.HandleRegister_Write_key_s__subkey_s__name_s.
push 0x515488
call fcn.0048d1f0
add esp, 0x14
cmp dword [esi + 0x1c], 4
push dword [esi + 0x20]
jne 0x49389d
call fcn.004b0c59
add esp, 4
lea ecx, [ebp - 0x10]
push eax
push dword [esi + 0x18]
call fcn.00440840
jmp 0x4938a8
push dword [esi + 0x18]
lea ecx, [ebp - 0x10]
call fcn.00440870
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4938b6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x4938c0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4938d2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], 0
jmp 0x4939a1
mov eax, dword [esi + 0x18]
cmp dword [eax - 0xc], 0
jne 0x493910
push dword [esi + 0x14]
push dword [ebx]
push str.HandleRegister_DeleteSubKeyTree_key_s__subkey_s.
push 0x515488
call fcn.0048d1f0
push dword [esi + 0xc]
mov edx, dword [esi + 0x14]
mov ecx, edi
call fcn.0048bab0
add esp, 0x14
jmp 0x4939a1
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
push str.HandleRegister_DeleteValue_key_s__subkey_s__name_s.
push 0x515488
call fcn.0048d1f0
add esp, 0x14
mov dword [ebp - 4], 0
cmp dword [esi + 0xc], 0
mov ebx, dword [esi + 0x14]
mov dword [ebp - 0x14], 0
je 0x493945
call fcn.0048a040
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov eax, dword [ebp - 0x14]
jne 0x493988
test eax, eax
je 0x493983
push dword [esi + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x493983
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x49399a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x18]
mov esi, dword [esi]
cmp esi, dword [eax + 0x14]
jne 0x4937f0
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 0x4946a0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db640
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x4946e0
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
push 0xf003f
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, eax
or edi, 0xffffffff
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x494726
push str.UninstallDriver_Open_SCM_Failed
push 0x515488
call fcn.0048d1f0
add esp, 8
xor esi, esi
jmp 0x49480c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x494800
push dword [esi + 0x14]
push ecx
call fcn.00494840
push 0x22
push str.SystemCurrentControlSetServices_
lea ecx, [ebp - 0x10]
call fcn.0041ccd0
mov eax, dword [esi + 0x14]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.0041c490
mov ebx, dword [ebp - 0x10]
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [esi + 0x34]
push dword [esi + 0x14]
push str.UninstallDriver_name_s_del_d.
push 0x515488
call fcn.0048d1f0
add esp, 0x10
cmp dword [esi + 0x34], 0
je 0x4947ed
call fcn.0041bed0
test eax, eax
je 0x4946d6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 0x14]
mov byte [ebp - 4], 1
push eax
lea eax, [esi + 0x10]
push eax
push dword [esi + 0xc]
call fcn.00494180
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x4947d1
mov edx, 1
mov ecx, edi
call fcn.0048a090
mov byte [ebp - 4], 0
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4947ed
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov esi, dword [esi]
mov ecx, dword [ebp - 0x18]
cmp esi, dword [eax]
jne 0x494735
or edi, 0xffffffff
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, 1
mov dword [ebp - 4], 0xffffffff
add ebx, 0xfffffff0
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x494828
mov ecx, dword [ebx]
push ebx
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
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x494840
Capabilities:
Continue service
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push str.DeleteServices:_s
push 0x515488
call fcn.0048d1f0
add esp, 0xc
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x494910
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push eax
push str.Stop_Services_result:_d
push 0x515488
call fcn.0048d1f0
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
add esp, 0xc
push eax
push edi
call esi
push 0x1f4
mov dword [ebp - 0x1c], 3
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push edi
call esi
push dword [ebp - 0x1c]
push str.services_status_after_stop:_d
push 0x515488
call fcn.0048d1f0
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push eax
push str.Delete_services_result:_d
push 0x515488
call fcn.0048d1f0
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret 8
push str.Open_Services_Failed
push 0x515488
call fcn.0048d1f0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.004a578d
mov esp, ebp
pop ebp
ret 8
Function at 0x4955e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db89b
mov eax, dword fs:[0]
push eax
sub esp, 0x634
mov eax, dword [0x511070]
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, edx
mov dword [ebp - 0x638], ebx
mov edi, ecx
mov dword [ebp - 0x63c], edi
mov dword [ebp - 0x634], edi
mov dword [ebp - 0x640], 0
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x495643
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x634], esi
xor eax, eax
mov dword [ebp - 4], 0
mov word [ebp - 0x428], ax
test ebx, ebx
je 0x4957d3
lea eax, [ebp - 0x428]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4957d3
mov eax, dword [0x4fbf88]
lea edi, [ebp - 0x428]
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov ax, word [0x4fbf8c]
mov word [ebp - 0x14], ax
nop dword [eax]
mov ax, word [edi]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x220]
push 0x104
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x495782
push 0xffffffffffffffff
push str.0s
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.004bca88
lea esi, [ebp - 0x220]
add esp, 0x10
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4956f0
sub esi, ecx
sar esi, 1
cmp esi, 0x104
jae 0x495782
push esi
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x638]
call fcn.004ab340
add esp, 0xc
mov ebx, eax
neg ebx
sbb ebx, ebx
add ebx, 1
je 0x495782
mov eax, dword [ebp - 0x638]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4f0cf4
lea eax, [ebp - 0x630]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea ecx, [ebp - 0x630]
add esp, 0x14
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495760
sub ecx, edx
lea eax, [ebp - 0x630]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x634]
call fcn.0041ccd0
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x495782
test ebx, ebx
jne 0x49579a
cmp word [edi], bx
jne 0x4956a0
mov esi, dword [ebp - 0x634]
add esi, 0xfffffff0
mov ecx, esi
call fcn.0041c670
mov edi, dword [ebp - 0x63c]
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4957fe
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x4957fe
add esi, 0xfffffff0
mov ecx, esi
call fcn.0041c670
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4957fe
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x495820
Capabilities:
Enumerate processes
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db8e6
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x511070]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x458], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x495893
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x44c], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4958a0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x495a1d
cmp esi, dword [ebp - 0x444]
jne 0x4958c1
push dword [ebp - 0x434]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
jne 0x4958d8
lea eax, [ebp - 0x44c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4958a0
jmp 0x495a11
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x4958ed
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x450], esi
mov dword [ebp - 4], 0
call fcn.0048a040
test eax, eax
je 0x495988
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004a83c0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x4959f2
lea edx, [ebp - 0x21c]
lea ecx, [ebp - 0x454]
call fcn.004955e0
mov byte [ebp - 4], 1
push dword [ebp - 0x454]
push 0x4f0274
push 0x515488
call fcn.0048d1f0
mov ecx, dword [ebp - 0x458]
lea eax, [ebp - 0x454]
add esp, 0xc
push eax
call fcn.0041c6d0
lea ecx, [ebp - 0x454]
call fcn.0041cdd0
jmp 0x4959f2
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x4959b2
push 0x105
lea ecx, [ebp - 0x450]
call fcn.0041cb60
mov esi, dword [ebp - 0x450]
push 0x104
push esi
push 0
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
push ecx
lea ecx, [ebp - 0x450]
call fcn.00421f40
push esi
push 0x4f0274
push 0x515488
call fcn.0048d1f0
mov ecx, dword [ebp - 0x458]
lea eax, [ebp - 0x450]
add esp, 0xc
push eax
call fcn.0041c6d0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x495a11
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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 - 0x14]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret 4
Function at 0x496970
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dba10
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x511070]
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, ecx
cmp dword [edi + 4], 0
je 0x496ac3
lea ecx, [ebp - 0x28]
call fcn.0048bec0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 1
jb 0x4969f0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
movzx ecx, word [eax + ecx*2 - 2]
xor eax, eax
nop
cmp cx, word [eax + 0x4ec68c]
je 0x4969f0
add eax, 2
cmp eax, 4
jb 0x4969d0
push 1
push str.0s
lea ecx, [ebp - 0x28]
call fcn.004402a0
lea eax, [ebp - 0x40]
lea esi, [edi + 8]
push eax
mov ecx, esi
call fcn.0048d9f0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0048e790
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x496a24
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00433600
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x496a39
mov ecx, dword [esi]
jmp 0x496a3b
mov ecx, esi
push eax
push ecx
push str.Copy_File___s______s_
push 0x515488
call fcn.0048d1f0
add esp, 0x10
cmp dword [0x515488], 0
jne 0x496a8a
mov eax, dword [0x515494]
mov dword [0x515488], 1
test eax, eax
je 0x496a8a
mov ecx, dword [0x515490]
test ecx, ecx
je 0x496a81
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x515494]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x496a9d
mov esi, dword [esi]
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp - 0x14]
mov dword [edi + 4], 0
cmp eax, 8
jb 0x496ac3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00433600
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.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x497900
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbab8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x511070]
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 ecx, ebx
xor edi, edi
call fcn.0043eea0
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], edi
cmp esi, 0xffffffff
je 0x4979f3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp eax, 0x200000
ja 0x4979ec
lea edx, [eax + 1]
mov dword [ebp - 0x10], edi
mov edi, eax
test edx, edx
jns 0x497988
push 0x80070057
call fcn.0041cdf0
mov eax, dword [ebx]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x4979a3
push edx
mov ecx, ebx
call fcn.0043efd0
mov eax, dword [ebx]
mov ebx, eax
mov dword [ebp - 0x18], eax
nop word [eax + eax]
push 0
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4979ea
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4979ea
add ebx, eax
sub edi, eax
jne 0x4979b0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push ecx
mov byte [ecx + eax], 0
mov ecx, dword [ebp - 0x1c]
call fcn.00497e30
mov edi, 1
jmp 0x4979ec
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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