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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4213b5
xor eax, eax
jmp 0x421468
push 0x28
push esi
push edi
call fcn.004923b0
add esp, 0xc
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.0040aafe
push esi
lea ecx, [ebp - 0x1c]
call fcn.0042725f
cmp eax, esi
je 0x4213f4
cmp byte [eax], 0
mov ecx, eax
je 0x4213f4
mov al, byte [ecx]
cmp al, 0x41
jl 0x4213ee
cmp al, 0x5a
jg 0x4213ee
add al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x4213e0
push ebx
push dword [ebp - 8]
lea ecx, [ebp - 0x1c]
push esi
call fcn.0042725f
call fcn.00421191
pop ecx
mov ecx, dword [ebp - 8]
push 0x25
movzx ebx, ax
pop eax
cmp ecx, eax
mov dword [ebp + 8], ecx
jbe 0x42141a
mov dword [ebp + 8], eax
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push 0
lea esi, [edi + 3]
call fcn.0042725f
push eax
push esi
call fcn.00492ac0
mov ecx, dword [ebp + 8]
mov al, cl
add esp, 0xc
add al, 2
test esi, esi
mov word [edi + 1], bx
mov byte [edi], al
pop ebx
je 0x421459
test ecx, ecx
je 0x421459
xor eax, eax
test ecx, ecx
jbe 0x421459
xor byte [eax + esi], 0x5a
inc eax
cmp eax, ecx
jb 0x421450
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040a9b2
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x42156a
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
mov esi, str.Global_
push esi
mov edi, eax
mov dword [ebp - 4], 7
mov dword [ebp - 8], ebx
mov word [ebp - 0x18], bx
call fcn.004926b1
pop ecx
mov ecx, esi
lea esi, [ebp - 0x1c]
call fcn.004011e2
cmp dword [0x5197d8], 8
mov eax, dword [0x5197c4]
jae 0x4215ae
mov eax, 0x5197c4
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00401061
cmp dword [ebp - 4], 8
mov eax, dword [ebp - 0x18]
jae 0x4215c4
lea eax, [ebp - 0x18]
cmp dword [edi + 4], ebx
jne 0x421600
push eax
push ebx
push 4
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingW]
cmp eax, ebx
mov dword [edi], eax
jne 0x4215dd
xor edi, edi
jmp 0x421603
push 0x3fe0
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, ebx
jne 0x4215fd
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [edi], ebx
jmp 0x4215d9
mov dword [edi + 4], eax
xor edi, edi
inc edi
push ebx
push 1
lea esi, [ebp - 0x1c]
call fcn.00401105
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421615
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 0x42162b
xor eax, eax
jmp 0x42168a
cmp dword [ebp + 8], ecx
lea esi, [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
je 0x421687
cmp esi, ecx
je 0x421687
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
call fcn.0042146b
pop ecx
lea eax, [ebp - 0x30]
push eax
lea edi, [ebp - 8]
lea ebx, [ebp - 4]
mov eax, esi
call fcn.004214b4
cmp dword [ebp - 4], 0
pop ecx
je 0x421687
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
push 0x10
add eax, 0x2c
push eax
push esi
call fcn.00492ac0
add esp, 0xc
test esi, esi
je 0x421687
xor eax, eax
xor byte [eax + esi], 0x7a
inc eax
cmp eax, 0x10
jb 0x42167d
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4216e8
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.004923b0
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x42171e
mov esi, dword [esi + 4]
jmp 0x421721
add esi, 4
cmp dword [0x51c110], 8
mov eax, dword [0x51c0fc]
jae 0x421734
mov eax, 0x51c0fc
push esi
push eax
push 0x4f5e40
lea eax, [ebp - 0x314]
push 0x104
push eax
call fcn.0042c1eb
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 0x42177c
mov eax, 0xe00c0012
jmp 0x421800
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.004923b0
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 0x4217ef
cmp dword [ebp - 8], 1
jne 0x4217ef
mov esi, str..Pipe_
push esi
call fcn.004926b1
pop ecx
mov ecx, esi
mov esi, dword [ebp + 8]
call fcn.004011e2
lea eax, [ebp - 0x10c]
push eax
push esi
call fcn.00401061
jmp 0x4217f4
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 0x421b6e
Capabilities:
Write file on windows

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
jmp 0x421be5
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 0x421bf1
add esi, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
jne 0x421bbc
xor eax, eax
pop esi
leave
ret 0xc
mov eax, 0xe00c000b
jmp 0x421bec
Function at 0x423093
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, eax
add esi, 4
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], esi
je 0x4230b5
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [esi], ebx
push 0x20
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.004923b0
add esp, 0xc
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], ebx
call dword [section..data]
xor edi, edi
cmp dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
je 0x423102
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea ecx, [ebp - 4]
inc eax
push ecx
mov dword [ebp - 4], eax
call fcn.004395ba
test eax, eax
pop ecx
jge 0x423107
mov dword [ebp + 8], ebx
jmp 0x42314a
mov ebx, dword [ebp - 4]
cmp ebx, 0x400
jg 0x423128
push ebx
call fcn.00439515
test al, al
pop ecx
je 0x423128
mov eax, ebx
call fcn.004a50d0
mov eax, esp
jmp 0x423134
push ebx
lea esi, [ebp - 8]
call fcn.004394dd
mov edi, dword [ebp - 8]
push dword [ebp - 0xc]
mov esi, eax
push ebx
push dword [ebp + 8]
call fcn.00439587
mov esi, dword [ebp - 0x10]
mov dword [ebp + 8], eax
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x42316a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea ecx, [ebp - 4]
inc eax
push ecx
mov dword [ebp - 4], eax
call fcn.004395ba
test eax, eax
pop ecx
jge 0x42316e
xor eax, eax
jmp 0x4231ae
mov ebx, dword [ebp - 4]
cmp ebx, 0x400
jg 0x42318f
push ebx
call fcn.00439515
test al, al
pop ecx
je 0x42318f
mov eax, ebx
call fcn.004a50d0
mov eax, esp
jmp 0x42319b
push ebx
lea esi, [ebp - 8]
call fcn.004394dd
mov edi, dword [ebp - 8]
push dword [ebp - 0xc]
mov esi, eax
push ebx
push dword [ebp + 0xc]
call fcn.00439587
mov esi, dword [ebp - 0x10]
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4231dd
cmp eax, ebx
je 0x4231dd
push esi
lea ecx, [ebp - 0x30]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
jmp 0x4231d5
mov eax, edi
mov edi, dword [edi]
push eax
call fcn.00492a2f
pop ecx
cmp edi, ebx
jne 0x4231ca
mov eax, esi
jmp 0x4231f9
push 8
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x4231f2
mov eax, edi
mov edi, dword [edi]
push eax
call fcn.00492a2f
pop ecx
cmp edi, ebx
jne 0x4231e7
or eax, 0xffffffff
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x423327
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
cmp byte [esi + 0x44], bl
je 0x423339
mov al, 1
jmp 0x4233ab
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
mov byte [ebp - 1], 1
jne 0x423349
xor al, al
jmp 0x4233ab
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 0x4233a5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x42339f
push dword [esi + 0x4c]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x4233a2
push 0x2c
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.004923b0
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 0x4233a5
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 0x4233b0
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 0x4233d7
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x42347e
push ebx
xor ebx, ebx
push ebx
push dword [esi + 8]
call edi
cmp eax, 0x102
jne 0x4233f5
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x42347d
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 0x42343d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x42346f
push dword [esi + 0x4c]
push dword [esi + 8]
call edi
test eax, eax
jne 0x423472
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 0x423469
mov bl, 1
jmp 0x423472
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 0x423483
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 0x4234a7
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x42356f
push ebx
xor ebx, ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x80
jne 0x4234c9
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x42356e
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.004923b0
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 0x42352c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x423560
push dword [esi + 0x4c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x423563
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 0x42355a
mov bl, 1
jmp 0x423563
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 0x423928
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.004019de
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42395d
xor esi, esi
inc esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040153b
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 0x423948
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x423948
lea eax, [ebp - 4]
call fcn.0042376c
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x423994
xor esi, esi
jmp 0x42394b
push eax
call fcn.00423928
test eax, eax
pop ecx
je 0x423990
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x423948
call edi
cmp eax, ebx
jne 0x423990
jmp 0x423948
Function at 0x4239b2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0xc]
call fcn.004019de
push 0x40
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.004923b0
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x519a54]
xor esi, esi
mov edi, 0x519a54
inc esi
add esp, 0xc
mov ecx, edi
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x48], esi
call dword [eax + 0xc]
push dword [ebp + 0xc]
add eax, 0x10
push dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push str.__s___s
push eax
call fcn.0041e7b9
mov eax, dword [ebp + 0x14]
add esp, 0x10
neg eax
sbb eax, eax
and eax, 0xa
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jne 0x423a7a
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call esi
push eax
push str.KFunction::RunApp_CreateProcessW_error:_d__wait:_d__show:_d__path:_ws__cmd:_ws
mov esi, 0x51b95c
call fcn.0044cc8c
add esp, 0x18
jmp 0x423af5
push str.kxescore.exe
push dword [ebp - 0xc]
call fcn.00493a74
test eax, eax
pop ecx
pop ecx
jne 0x423ad0
mov eax, dword [0x519a54]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push str.kxescore
lea eax, [ebp - 0x1c]
push eax
call fcn.00401b70
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x14], ebx
call fcn.00442d2d
mov edi, eax
call fcn.00442d6a
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040153b
cmp dword [ebp + 0x10], ebx
je 0x423af2
push dword [ebp + 0x10]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [ebp + 0x18], ebx
je 0x423af2
push dword [ebp + 0x18]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
mov dword [ebp - 0x10], esi
cmp dword [ebp - 0x2c], ebx
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x423b08
push dword [ebp - 0x2c]
call esi
mov dword [ebp - 0x2c], ebx
cmp dword [ebp - 0x28], ebx
je 0x423b15
push dword [ebp - 0x28]
call esi
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423b8f
Capabilities:
Enumerate processes
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x206
push edi
lea eax, [ebp - 0x446]
push ebx
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov word [ebp - 0x448], bx
call fcn.004923b0
push 0x228
lea eax, [ebp - 0x23c]
push ebx
push eax
mov dword [ebp - 0x240], ebx
call fcn.004923b0
mov eax, dword [0x519a54]
mov esi, 0x519a54
add esp, 0x18
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
call fcn.00423b33
call fcn.00424086
test eax, eax
je 0x423c93
mov eax, dword [0x519a54]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64e]
push ebx
push eax
mov word [ebp - 0x650], bx
call fcn.004923b0
mov eax, dword [ebp + 8]
movzx eax, word [eax]
push eax
lea eax, [ebp - 0xc]
push 0x4f6028
push eax
call fcn.0041e7b9
add esp, 0x18
mov edi, 0x104
push edi
lea eax, [ebp - 0x650]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceW]
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00401b70
lea esi, [ebp - 8]
call fcn.00423728
mov esi, dword [ebp + 8]
push esi
call fcn.004926b1
cmp eax, 3
pop ecx
jbe 0x423c86
add esi, 6
push esi
lea eax, [ebp - 8]
push eax
call fcn.0040554e
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040153b
jmp 0x423ca4
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.00401b70
mov edi, 0x104
push ebx
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x423d9c
lea ecx, [ebp - 0x240]
push ecx
push eax
mov dword [ebp - 0x240], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x423d97
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x238]
cmp eax, dword [ebp - 0x14]
je 0x423d6d
cmp eax, ebx
je 0x423d6d
cmp eax, 4
je 0x423d6d
push eax
push ebx
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x423d6d
call fcn.00424086
test eax, eax
je 0x423d2f
mov eax, dword [0x51ad7c]
cmp eax, ebx
je 0x423d2f
push edi
lea ecx, [ebp - 0x448]
push ecx
push dword [ebp - 4]
call eax
jmp 0x423d46
mov eax, dword [0x51ad78]
cmp eax, ebx
je 0x423d65
push edi
lea ecx, [ebp - 0x448]
push ecx
push ebx
push dword [ebp - 4]
call eax
cmp eax, ebx
je 0x423d65
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx - 0xc]
jne 0x423d65
lea eax, [ebp - 0x448]
push eax
push ecx
call fcn.00493a74
test eax, eax
pop ecx
pop ecx
je 0x423d86
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x423ce6
jmp 0x423d8d
mov dword [ebp - 0x10], 1
cmp dword [ebp - 4], ebx
je 0x423d97
push dword [ebp - 4]
call esi
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040153b
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423daf
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push edi
xor esi, esi
push 0x228
lea eax, [ebp - 0x22c]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x230], esi
call fcn.004923b0
add esp, 0xc
push esi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x423e5f
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x423e58
push ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov ebx, eax
cmp dword [ebp - 0x228], ebx
je 0x423e3d
cmp dword [ebp - 0x228], esi
je 0x423e3d
cmp dword [ebp - 0x228], 4
je 0x423e3d
lea eax, [ebp - 0x20c]
push str.kxetray.exe
push eax
call fcn.00493a74
test eax, eax
pop ecx
pop ecx
je 0x423e50
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x423e0d
jmp 0x423e57
mov dword [ebp - 4], 1
pop ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x423e66
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.004923b0
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 4]
call fcn.004019de
push esi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x423fca
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 0x423fc4
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 0x423f68
cmp eax, esi
je 0x423f68
cmp eax, 4
je 0x423f68
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0041e7cc
mov eax, dword [eax]
push esi
push eax
call fcn.0049472d
mov ebx, eax
mov eax, dword [ebp - 8]
add esp, 0xc
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.0040153b
test bl, bl
je 0x423f68
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 0x18]
call fcn.0041e7cc
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.0040153b
cmp ebx, 0xffffffff
je 0x423f81
push ebx
call edi
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x423edf
jmp 0x423fc3
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0041e7cc
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, 0x51b95c
call fcn.0044cc8c
mov eax, dword [ebp - 8]
add esp, 0x10
add eax, 0xfffffff0
call fcn.0040153b
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.0040153b
mov eax, dword [ebp - 0x10]
pop esi
leave
ret