joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427397
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [eax + 4]
sub esp, 0x34
push ebx
xor ecx, ecx
cmp eax, ecx
push esi
push edi
jne 0x4273ad
xor eax, eax
jmp 0x42740c
cmp dword [ebp + 8], ecx
lea esi, [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
je 0x427409
cmp esi, ecx
je 0x427409
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
call fcn.004271f6
pop ecx
lea eax, [ebp - 0x30]
push eax
lea edi, [ebp - 8]
lea ebx, [ebp - 4]
mov eax, esi
call fcn.0042723f
cmp dword [ebp - 4], 0
pop ecx
je 0x427409
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
push 0x10
add eax, 0x2c
push eax
push esi
call fcn.004870c0
add esp, 0xc
test esi, esi
je 0x427409
xor eax, eax
xor byte [eax + esi], 0x7a
inc eax
cmp eax, 0x10
jb 0x4273ff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x427460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push esi
push edi
xor edi, edi
push 0x206
mov esi, eax
lea eax, [ebp - 0x312]
push edi
push eax
mov word [ebp - 0x314], di
call fcn.00486d70
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x427496
mov esi, dword [esi + 4]
jmp 0x427499
add esi, 4
cmp dword [0x510ae8], 8
mov eax, dword [0x510ad4]
jae 0x4274ac
mov eax, 0x510ad4
push esi
push eax
push 0x4f10dc
lea eax, [ebp - 0x314]
push 0x104
push eax
call fcn.0042f878
add esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x20219
push edi
lea eax, [ebp - 0x314]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4274f1
mov eax, 0xe00c0012
jmp 0x42756c
push ebx
mov esi, 0xfe
push esi
lea eax, [ebp - 0x10a]
push edi
push eax
mov dword [ebp - 8], edi
mov word [ebp - 0x10c], di
call fcn.00486d70
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.Name
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp ebx, edi
jne 0x42755b
cmp dword [ebp - 8], 1
jne 0x42755b
mov esi, dword [ebp + 8]
mov eax, str..Pipe_
call fcn.0042cdeb
lea eax, [ebp - 0x10c]
push eax
push esi
call fcn.0042c38c
jmp 0x427560
mov ebx, 0xe00c001f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x4278ce
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
jmp 0x427900
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x42790c
add esi, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
jne 0x4278d7
xor eax, eax
pop esi
leave
ret 0xc
mov eax, 0xe00c0009
jmp 0x427907
Function at 0x427913
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
jmp 0x427945
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x427951
add esi, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
jne 0x42791c
xor eax, eax
pop esi
leave
ret 0xc
mov eax, 0xe00c000b
jmp 0x42794c
Function at 0x428de8
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov edi, eax
add edi, 4
mov eax, dword [edi]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0xc], edi
je 0x428e0a
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [edi], esi
push 0x20
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.00486d70
add esp, 0xc
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], esi
call dword [section..data]
cmp dword [ebp + 8], esi
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
mov ebx, SysReAllocString
je 0x428e69
push dword [ebp + 8]
call edi
push esi
inc eax
cdq
push 2
push edx
push eax
call fcn.00497940
mov ecx, eax
add eax, ebx
adc edx, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
jne 0x428e69
cmp eax, 0xffffffff
jbe 0x428e6e
mov dword [ebp + 8], esi
jmp 0x428ead
cmp ecx, 0x400
jg 0x428e8d
push ecx
call fcn.004356ac
test al, al
pop ecx
je 0x428e8d
mov eax, dword [ebp - 0x18]
call fcn.00496a60
mov eax, esp
jmp 0x428e98
push dword [ebp - 0x18]
lea esi, [ebp - 4]
call fcn.00435652
push dword [ebp - 8]
mov esi, eax
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.0043571e
mov dword [ebp + 8], eax
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x428ed3
push dword [ebp + 0xc]
call edi
push esi
inc eax
cdq
push 2
push edx
push eax
call fcn.00497940
mov edi, eax
add eax, ebx
adc edx, esi
mov dword [ebp - 0x1c], edx
jne 0x428ed3
cmp eax, 0xffffffff
jbe 0x428ed7
xor eax, eax
jmp 0x428f0e
cmp edi, 0x400
jg 0x428ef5
push edi
call fcn.004356ac
test al, al
pop ecx
je 0x428ef5
mov eax, edi
call fcn.00496a60
mov eax, esp
jmp 0x428efe
push edi
lea esi, [ebp - 4]
call fcn.00435652
push dword [ebp - 8]
mov esi, eax
push edi
push dword [ebp + 0xc]
call fcn.0043571e
xor esi, esi
cmp dword [ebp + 8], esi
je 0x428f46
cmp eax, esi
je 0x428f46
push dword [ebp - 0xc]
lea ecx, [ebp - 0x40]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x428f42
mov eax, dword [ebp - 4]
mov edi, dword [eax]
push eax
mov dword [ebp - 4], edi
call fcn.00486f20
cmp edi, esi
pop ecx
jne 0x428f2f
mov eax, ebx
jmp 0x428f69
push 8
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp dword [ebp - 4], esi
je 0x428f66
mov eax, dword [ebp - 4]
mov edi, dword [eax]
push eax
mov dword [ebp - 4], edi
call fcn.00486f20
cmp edi, esi
pop ecx
jne 0x428f53
or eax, 0xffffffff
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x429097
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
cmp byte [esi + 0x44], bl
je 0x4290a9
mov al, 1
jmp 0x42911b
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
mov byte [ebp - 1], 1
jne 0x4290b9
xor al, al
jmp 0x42911b
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
je 0x429115
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x42910f
push dword [esi + 0x4c]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x429112
push 0x2c
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00486d70
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x429115
mov dword [esi + 0x48], eax
mov byte [ebp - 1], bl
mov al, byte [ebp - 1]
mov byte [esi + 0x44], al
pop ebx
leave
ret 8

Function at 0x429120
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
push dword [esi + 0x4c]
mov edi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [esi + 0xc]
call edi
test eax, eax
je 0x429147
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x4291ee
push ebx
xor ebx, ebx
push ebx
push dword [esi + 8]
call edi
cmp eax, 0x102
jne 0x429165
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x4291ed
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
lea eax, [esi + 0x28]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 8]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x4291ad
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x4291df
push dword [esi + 0x4c]
push dword [esi + 8]
call edi
test eax, eax
jne 0x4291e2
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x40]
mov dword [ebp + 0xc], ebx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x4291d9
mov bl, 1
jmp 0x4291e2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x48], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov al, bl
pop ebx
pop edi
leave
ret 0xc
Function at 0x4291f3
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [esi + 0x4c]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x429217
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x4292df
push ebx
xor ebx, ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x80
jne 0x429239
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x4292de
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [edi]
push 0x14
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push ebx
push eax
mov dword [edi], ebx
mov dword [ebp - 4], ebx
call fcn.00486d70
lea eax, [esi + 0x10]
add esp, 0xc
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 1
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x42929c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x4292d0
push dword [esi + 0x4c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x4292d3
lea eax, [ebp - 4]
push eax
push ebx
push edi
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x40]
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x4292ca
mov bl, 1
jmp 0x4292d3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x48], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov al, bl
pop ebx
leave
ret 4

Function at 0x42952c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 4]
call fcn.00423978
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x429561
xor esi, esi
inc esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
mov esi, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x42954c
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x42954c
lea eax, [ebp - 4]
call fcn.0042948d
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x429598
xor esi, esi
jmp 0x42954f
push eax
call fcn.0042952c
test eax, eax
pop ecx
je 0x429594
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x42954c
call edi
cmp eax, ebx
jne 0x429594
jmp 0x42954c
Function at 0x4295b6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
jne 0x4295cd
xor eax, eax
jmp 0x4296cc
push 0x40
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0xc], ebx
call fcn.00486d70
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
stosd dword es:[edi], eax
mov eax, dword [0x50e594]
inc esi
add esp, 0xc
mov ecx, 0x50e594
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x38], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x429616
mov eax, 0x4ee0dc
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push str.__s___s
call fcn.0042318c
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov edi, dword [ebp - 8]
neg eax
sbb eax, eax
and eax, 0xa
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jne 0x42967c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.KFunction::RunApp_CreateProcessW_error:_d__wait:_d__show:_d__path:_ws__cmd:_ws
mov esi, 0x51049c
call fcn.004452e2
add esp, 0x18
jmp 0x4296a1
cmp dword [ebp + 0x10], ebx
je 0x42969e
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [ebp + 0x18], ebx
je 0x42969e
push dword [ebp + 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x1c], ebx
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x4296b4
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x18], ebx
je 0x4296c1
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
lea eax, [edi - 0x10]
call fcn.00401023
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42972d
Capabilities:
Enumerate processes
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
push ebx
push esi
push edi
xor edi, edi
mov ebx, 0x206
push ebx
lea eax, [ebp - 0x442]
push edi
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov word [ebp - 0x444], di
call fcn.00486d70
push 0x228
lea eax, [ebp - 0x238]
push edi
push eax
mov dword [ebp - 0x23c], edi
call fcn.00486d70
mov eax, dword [0x50e594]
mov esi, 0x50e594
add esp, 0x18
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
call fcn.004296d1
call fcn.00429b7f
test eax, eax
je 0x42983d
mov eax, dword [0x50e594]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
push ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64a]
push edi
push eax
mov word [ebp - 0x64c], di
call fcn.00486d70
mov eax, dword [ebp + 8]
movzx eax, word [eax]
push eax
push 0x4f12f0
lea eax, [ebp - 0xc]
call fcn.0042318c
add esp, 0x14
push 0x104
lea eax, [ebp - 0x64c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceW]
lea eax, [ebp - 0x64c]
push eax
call fcn.0048650a
pop ecx
lea ecx, [ebp - 0x64c]
mov ebx, eax
push ecx
lea eax, [ebp - 8]
call fcn.004152f3
lea esi, [ebp - 8]
call fcn.00429449
mov esi, dword [ebp + 8]
push esi
call fcn.0048650a
cmp eax, 3
pop ecx
jbe 0x429830
add esi, 6
push esi
lea eax, [ebp - 8]
push eax
call fcn.00401000
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
jmp 0x429849
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.004152cd
push edi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42994c
lea eax, [ebp - 0x23c]
push eax
push ebx
mov dword [ebp - 0x23c], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x429949
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x234]
cmp eax, dword [ebp - 0xc]
je 0x429921
cmp eax, edi
je 0x429921
cmp eax, 4
je 0x429921
push eax
push edi
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x429921
call fcn.00429b7f
test eax, eax
je 0x4298df
mov eax, dword [0x50f8d4]
cmp eax, edi
je 0x4298df
push 0x104
lea ecx, [ebp - 0x444]
push ecx
push dword [ebp - 4]
call eax
jmp 0x4298fa
mov eax, dword [0x50f8d0]
cmp eax, edi
je 0x429919
push 0x104
lea ecx, [ebp - 0x444]
push ecx
push edi
push dword [ebp - 4]
call eax
cmp eax, edi
je 0x429919
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx - 0xc]
jne 0x429919
lea eax, [ebp - 0x444]
push eax
push ecx
call fcn.004879bc
test eax, eax
pop ecx
pop ecx
je 0x429938
push dword [ebp - 4]
call esi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x23c]
push eax
push ebx
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x42988a
jmp 0x42993f
mov dword [ebp - 0x10], 1
cmp dword [ebp - 4], edi
je 0x429949
push dword [ebp - 4]
call esi
push ebx
call esi
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42995f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push esi
xor esi, esi
push 0x228
lea eax, [ebp - 0x240]
push esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x244], esi
call fcn.00486d70
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 4]
call fcn.00423978
push esi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x429ac3
push edi
lea ecx, [ebp - 0x244]
push ecx
push eax
mov dword [ebp - 0x244], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x429abd
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [ebp - 0x14], eax
push ebx
mov eax, dword [ebp - 0x23c]
cmp eax, dword [ebp - 0x14]
je 0x429a61
cmp eax, esi
je 0x429a61
cmp eax, 4
je 0x429a61
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00415360
mov eax, dword [eax]
push esi
push eax
call fcn.004876c4
mov ebx, eax
mov eax, dword [ebp - 8]
add esp, 0xc
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00401023
test bl, bl
je 0x429a61
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 0x18]
call fcn.00415360
mov eax, dword [eax]
pop ecx
push esi
push 0x80
push 3
push esi
push esi
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401023
cmp ebx, 0xffffffff
je 0x429a7a
push ebx
call edi
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x4299d8
jmp 0x429abc
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00415360
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0xffffffffffffffff
push str.IsProcessRunningByDirectory_CreateFile_return:_d__error:_d__path:_ws
mov esi, 0x51049c
call fcn.004452e2
mov eax, dword [ebp - 8]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00401023
mov dword [ebp - 0x10], 1
pop ebx
push dword [ebp - 0xc]
call edi
pop edi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [ebp - 0x10]
pop esi
leave
ret
Function at 0x429ad4
Capabilities:
Acquire debug privileges

Disassembly:
push 0x28
push 0x501f90
call fcn.004da380
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
mov dword [ebp - 0x38], esi
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, esi
je 0x429b59
lea eax, [ebp - 0x28]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, esi
je 0x429b59
xor edi, edi
inc edi
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 2
push esi
push esi
push esi
lea eax, [ebp - 0x38]
push eax
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, esi
je 0x429b59
mov dword [ebp - 0x20], edi
or dword [ebp - 4], 0xffffffff
call fcn.00429b6d
mov eax, dword [ebp - 0x20]
call fcn.004da3bb
ret
Function at 0x429f07
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor edi, edi
push edi
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, edi
je 0x429f26
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov edi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push edi
push str.KillProcessByPid_TerminateProcess_return:_d__error:_d__pid:_d
mov esi, 0x51049c
call fcn.004452e2
add esp, 0x10
mov eax, edi
pop edi
pop esi
ret
Function at 0x42a6ac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
test byte [0x5109cc], 1
jne 0x42a6e5
mov eax, dword [0x50e594]
or dword [0x5109cc], 1
mov ecx, 0x50e594
call dword [eax + 0xc]
add eax, 0x10
push 0x4ddd3e
mov dword [0x5109c8], eax
call fcn.00486f0e
pop ecx
mov eax, dword [0x5109c8]
cmp dword [eax - 0xc], 0
jne 0x42a741
push 0x104
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x42a73c
push ebx
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.0048650a
pop ecx
lea ecx, [ebp - 0x208]
mov ebx, eax
mov esi, 0x5109c8
push ecx
mov eax, esi
call fcn.004152f3
call fcn.00429449
push str.drivers_
push esi
call fcn.00401000
pop esi
pop ebx
mov eax, dword [0x5109c8]
add eax, 0xfffffff0
call fcn.004249f2
add eax, 0x10
mov dword [edi], eax
mov eax, edi
leave
ret

Function at 0x42a793
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
xor edi, edi
push 0x206
mov esi, eax
lea eax, [ebp - 0x206]
push edi
push eax
mov word [ebp - 0x208], di
call fcn.00486d70
push str.ALLUSERSPROFILE
call fcn.00488f6b
add esp, 0x10
call fcn.0042cdeb
cmp dword [esi + 0x14], edi
jne 0x42a7f7
push edi
push 0x23
lea eax, [ebp - 0x208]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x208]
call fcn.0042cdeb
cmp dword [esi + 0x14], edi
je 0x42a87b
mov eax, dword [esi + 0x14]
push ebx
lea ebx, [eax - 1]
cmp eax, ebx
ja 0x42a807
call fcn.00485511
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x42a814
mov eax, dword [edi]
jmp 0x42a816
mov eax, edi
movzx eax, word [eax + ebx*2]
cmp ax, 0x5c
pop ebx
je 0x42a832
cmp ax, 0x2f
je 0x42a832
push 0x4e66bc
push esi
call fcn.0042c38c
call dword [sym.imp.KERNEL32.DLL_GetVersion]
cmp al, 5
jne 0x42a85f
push str.Application_Data
call fcn.0048650a
pop ecx
push eax
mov eax, esi
call fcn.0042ce57
cmp eax, 0xffffffff
jne 0x42a85f
push str.Application_Data_
push esi
call fcn.0042c38c
push str.kcmcm_
push esi
call fcn.0042c38c
cmp dword [esi + 0x18], 8
jb 0x42a872
mov edi, dword [edi]
push edi
call fcn.0042952c
pop ecx
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret