joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426ed0
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 0x426ee6
xor eax, eax
jmp 0x426f45
cmp dword [ebp + 8], ecx
lea esi, [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
je 0x426f42
cmp esi, ecx
je 0x426f42
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
call fcn.00426d2f
pop ecx
lea eax, [ebp - 0x30]
push eax
lea edi, [ebp - 8]
lea ebx, [ebp - 4]
mov eax, esi
call fcn.00426d78
cmp dword [ebp - 4], 0
pop ecx
je 0x426f42
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
push 0x10
add eax, 0x2c
push eax
push esi
call fcn.00484d60
add esp, 0xc
test esi, esi
je 0x426f42
xor eax, eax
xor byte [eax + esi], 0x7a
inc eax
cmp eax, 0x10
jb 0x426f38
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x426f99
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.004857c0
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x426fcf
mov esi, dword [esi + 4]
jmp 0x426fd2
add esi, 4
cmp dword [0x50ba28], 8
mov eax, dword [0x50ba14]
jae 0x426fe5
mov eax, 0x50ba14
push esi
push eax
push 0x4ecbdc
lea eax, [ebp - 0x314]
push 0x104
push eax
call fcn.0042f31e
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 0x42702a
mov eax, 0xe00c0012
jmp 0x4270a5
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.004857c0
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 0x427094
cmp dword [ebp - 8], 1
jne 0x427094
mov esi, dword [ebp + 8]
mov eax, str..Pipe_
call fcn.0042c8b0
lea eax, [ebp - 0x10c]
push eax
push esi
call fcn.0042be63
jmp 0x427099
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 0x427407
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
jmp 0x427439
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 0x427445
add esi, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
jne 0x427410
xor eax, eax
pop esi
leave
ret 0xc
mov eax, 0xe00c0009
jmp 0x427440
Function at 0x42744c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
jmp 0x42747e
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 0x42748a
add esi, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
jne 0x427455
xor eax, eax
pop esi
leave
ret 0xc
mov eax, 0xe00c000b
jmp 0x427485
Function at 0x428921
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 0x428943
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.004857c0
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 0x4289a2
push dword [ebp + 8]
call edi
push esi
inc eax
cdq
push 2
push edx
push eax
call fcn.00494c60
mov ecx, eax
add eax, ebx
adc edx, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
jne 0x4289a2
cmp eax, 0xffffffff
jbe 0x4289a7
mov dword [ebp + 8], esi
jmp 0x4289e6
cmp ecx, 0x400
jg 0x4289c6
push ecx
call fcn.0043506f
test al, al
pop ecx
je 0x4289c6
mov eax, dword [ebp - 0x18]
call fcn.00493d50
mov eax, esp
jmp 0x4289d1
push dword [ebp - 0x18]
lea esi, [ebp - 4]
call fcn.00435015
push dword [ebp - 8]
mov esi, eax
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.004350e1
mov dword [ebp + 8], eax
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x428a0c
push dword [ebp + 0xc]
call edi
push esi
inc eax
cdq
push 2
push edx
push eax
call fcn.00494c60
mov edi, eax
add eax, ebx
adc edx, esi
mov dword [ebp - 0x1c], edx
jne 0x428a0c
cmp eax, 0xffffffff
jbe 0x428a10
xor eax, eax
jmp 0x428a47
cmp edi, 0x400
jg 0x428a2e
push edi
call fcn.0043506f
test al, al
pop ecx
je 0x428a2e
mov eax, edi
call fcn.00493d50
mov eax, esp
jmp 0x428a37
push edi
lea esi, [ebp - 4]
call fcn.00435015
push dword [ebp - 8]
mov esi, eax
push edi
push dword [ebp + 0xc]
call fcn.004350e1
xor esi, esi
cmp dword [ebp + 8], esi
je 0x428a7f
cmp eax, esi
je 0x428a7f
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 0x428a7b
mov eax, dword [ebp - 4]
mov edi, dword [eax]
push eax
mov dword [ebp - 4], edi
call fcn.00485474
cmp edi, esi
pop ecx
jne 0x428a68
mov eax, ebx
jmp 0x428aa2
push 8
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp dword [ebp - 4], esi
je 0x428a9f
mov eax, dword [ebp - 4]
mov edi, dword [eax]
push eax
mov dword [ebp - 4], edi
call fcn.00485474
cmp edi, esi
pop ecx
jne 0x428a8c
or eax, 0xffffffff
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x428bd0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
cmp byte [esi + 0x44], bl
je 0x428be2
mov al, 1
jmp 0x428c54
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
mov byte [ebp - 1], 1
jne 0x428bf2
xor al, al
jmp 0x428c54
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 0x428c4e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x428c48
push dword [esi + 0x4c]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x428c4b
push 0x2c
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.004857c0
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 0x428c4e
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 0x428c59
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 0x428c80
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x428d27
push ebx
xor ebx, ebx
push ebx
push dword [esi + 8]
call edi
cmp eax, 0x102
jne 0x428c9e
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x428d26
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 0x428ce6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x428d18
push dword [esi + 0x4c]
push dword [esi + 8]
call edi
test eax, eax
jne 0x428d1b
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 0x428d12
mov bl, 1
jmp 0x428d1b
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 0x428d2c
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 0x428d50
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x428e18
push ebx
xor ebx, ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x80
jne 0x428d72
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x428e17
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.004857c0
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 0x428dd5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x428e09
push dword [esi + 0x4c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x428e0c
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 0x428e03
mov bl, 1
jmp 0x428e0c
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 0x429065
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.00423484
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42909a
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 0x429085
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x429085
lea eax, [ebp - 4]
call fcn.00428fc6
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x4290d1
xor esi, esi
jmp 0x429088
push eax
call fcn.00429065
test eax, eax
pop ecx
je 0x4290cd
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x429085
call edi
cmp eax, ebx
jne 0x4290cd
jmp 0x429085
Function at 0x4290ef
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 0x429106
xor eax, eax
jmp 0x429205
push 0x40
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0xc], ebx
call fcn.004857c0
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 [0x509500]
inc esi
add esp, 0xc
mov ecx, 0x509500
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 0x42914f
mov eax, 0x4e9bdc
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push str.__s___s
call fcn.00422cb5
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 0x4291b5
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, 0x50b3f4
call fcn.00445464
add esp, 0x18
jmp 0x4291da
cmp dword [ebp + 0x10], ebx
je 0x4291d7
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [ebp + 0x18], ebx
je 0x4291d7
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 0x4291ed
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x18], ebx
je 0x4291fa
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 0x429266
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.004857c0
push 0x228
lea eax, [ebp - 0x238]
push edi
push eax
mov dword [ebp - 0x23c], edi
call fcn.004857c0
mov eax, dword [0x509500]
mov esi, 0x509500
add esp, 0x18
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
call fcn.0042920a
call fcn.0042960d
test eax, eax
je 0x429376
mov eax, dword [0x509500]
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.004857c0
mov eax, dword [ebp + 8]
movzx eax, word [eax]
push eax
push 0x4ecdf0
lea eax, [ebp - 0xc]
call fcn.00422cb5
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.00483779
pop ecx
lea ecx, [ebp - 0x64c]
mov ebx, eax
push ecx
lea eax, [ebp - 8]
call fcn.00414fca
lea esi, [ebp - 8]
call fcn.00428f82
mov esi, dword [ebp + 8]
push esi
call fcn.00483779
cmp eax, 3
pop ecx
jbe 0x429369
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 0x429382
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.00414fa4
push edi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x429485
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 0x429482
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x234]
cmp eax, dword [ebp - 0xc]
je 0x42945a
cmp eax, edi
je 0x42945a
cmp eax, 4
je 0x42945a
push eax
push edi
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x42945a
call fcn.0042960d
test eax, eax
je 0x429418
mov eax, dword [0x50a82c]
cmp eax, edi
je 0x429418
push 0x104
lea ecx, [ebp - 0x444]
push ecx
push dword [ebp - 4]
call eax
jmp 0x429433
mov eax, dword [0x50a828]
cmp eax, edi
je 0x429452
push 0x104
lea ecx, [ebp - 0x444]
push ecx
push edi
push dword [ebp - 4]
call eax
cmp eax, edi
je 0x429452
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx - 0xc]
jne 0x429452
lea eax, [ebp - 0x444]
push eax
push ecx
call fcn.00483df2
test eax, eax
pop ecx
pop ecx
je 0x429471
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 0x4293c3
jmp 0x429478
mov dword [ebp - 0x10], 1
cmp dword [ebp - 4], edi
je 0x429482
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 0x429498
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.004857c0
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 4]
call fcn.00423484
push esi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x4295fc
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 0x4295f6
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 0x42959a
cmp eax, esi
je 0x42959a
cmp eax, 4
je 0x42959a
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00415037
mov eax, dword [eax]
push esi
push eax
call fcn.00483a77
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 0x42959a
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 0x18]
call fcn.00415037
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 0x4295b3
push ebx
call edi
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x429511
jmp 0x4295f5
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00415037
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, 0x50b3f4
call fcn.00445464
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 0x429995
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 0x4299b4
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, 0x50b3f4
call fcn.00445464
add esp, 0x10
mov eax, edi
pop edi
pop esi
ret
Function at 0x42a13a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
test byte [0x50b90c], 1
jne 0x42a173
mov eax, dword [0x509500]
or dword [0x50b90c], 1
mov ecx, 0x509500
call dword [eax + 0xc]
add eax, 0x10
push 0x4d963e
mov dword [0x50b908], eax
call fcn.00485bce
pop ecx
mov eax, dword [0x50b908]
cmp dword [eax - 0xc], 0
jne 0x42a1cf
push 0x104
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x42a1ca
push ebx
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.00483779
pop ecx
lea ecx, [ebp - 0x208]
mov ebx, eax
mov esi, 0x50b908
push ecx
mov eax, esi
call fcn.00414fca
call fcn.00428f82
push str.drivers_
push esi
call fcn.00401000
pop esi
pop ebx
mov eax, dword [0x50b908]
add eax, 0xfffffff0
call fcn.004244f5
add eax, 0x10
mov dword [edi], eax
mov eax, edi
leave
ret

Function at 0x42a221
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.004857c0
push str.ALLUSERSPROFILE
call fcn.00486265
add esp, 0x10
call fcn.0042c8b0
cmp dword [esi + 0x14], edi
jne 0x42a285
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.0042c8b0
cmp dword [esi + 0x14], edi
je 0x42a309
mov eax, dword [esi + 0x14]
push ebx
lea ebx, [eax - 1]
cmp eax, ebx
ja 0x42a295
call fcn.00482800
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x42a2a2
mov eax, dword [edi]
jmp 0x42a2a4
mov eax, edi
movzx eax, word [eax + ebx*2]
cmp ax, 0x5c
pop ebx
je 0x42a2c0
cmp ax, 0x2f
je 0x42a2c0
push 0x4e26ac
push esi
call fcn.0042be63
call dword [sym.imp.KERNEL32.DLL_GetVersion]
cmp al, 5
jne 0x42a2ed
push str.Application_Data
call fcn.00483779
pop ecx
push eax
mov eax, esi
call fcn.0042c91c
cmp eax, 0xffffffff
jne 0x42a2ed
push str.Application_Data_
push esi
call fcn.0042be63
push str.kcmcm_
push esi
call fcn.0042be63
cmp dword [esi + 0x18], 8
jb 0x42a300
mov edi, dword [edi]
push edi
call fcn.00429065
pop ecx
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret