joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eb86
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 0x40eb9b
xor eax, eax
jmp 0x40ec4e
push 0x28
push esi
push edi
call fcn.0046eea0
add esp, 0xc
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.0040665f
push esi
lea ecx, [ebp - 0x1c]
call fcn.004242f6
cmp eax, esi
je 0x40ebda
cmp byte [eax], 0
mov ecx, eax
je 0x40ebda
mov al, byte [ecx]
cmp al, 0x41
jl 0x40ebd4
cmp al, 0x5a
jg 0x40ebd4
add al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x40ebc6
push ebx
push dword [ebp - 8]
lea ecx, [ebp - 0x1c]
push esi
call fcn.004242f6
call fcn.0040e977
pop ecx
mov ecx, dword [ebp - 8]
push 0x25
movzx ebx, ax
pop eax
cmp ecx, eax
mov dword [ebp + 8], ecx
jbe 0x40ec00
mov dword [ebp + 8], eax
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push 0
lea esi, [edi + 3]
call fcn.004242f6
push eax
push esi
call fcn.0046f3a0
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 0x40ec3f
test ecx, ecx
je 0x40ec3f
xor eax, eax
test ecx, ecx
jbe 0x40ec3f
xor byte [eax + esi], 0x5a
inc eax
cmp eax, ecx
jb 0x40ec36
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.004045c5
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x40ed50
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.00470006
pop ecx
mov ecx, esi
lea esi, [ebp - 0x1c]
call fcn.00415f20
cmp dword [0x4cd1b8], 8
mov eax, dword [0x4cd1a4]
jae 0x40ed94
mov eax, 0x4cd1a4
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00413eb0
cmp dword [ebp - 4], 8
mov eax, dword [ebp - 0x18]
jae 0x40edaa
lea eax, [ebp - 0x18]
cmp dword [edi + 4], ebx
jne 0x40ede6
push eax
push ebx
push 4
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingW]
cmp eax, ebx
mov dword [edi], eax
jne 0x40edc3
xor edi, edi
jmp 0x40ede9
push 0x3fe0
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, ebx
jne 0x40ede3
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [edi], ebx
jmp 0x40edbf
mov dword [edi + 4], eax
xor edi, edi
inc edi
push ebx
push 1
lea esi, [ebp - 0x1c]
call fcn.0041490f
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40edfb
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 0x40ee11
xor eax, eax
jmp 0x40ee70
cmp dword [ebp + 8], ecx
lea esi, [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
je 0x40ee6d
cmp esi, ecx
je 0x40ee6d
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
call fcn.0040ec51
pop ecx
lea eax, [ebp - 0x30]
push eax
lea edi, [ebp - 8]
lea ebx, [ebp - 4]
mov eax, esi
call fcn.0040ec9a
cmp dword [ebp - 4], 0
pop ecx
je 0x40ee6d
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
push 0x10
add eax, 0x2c
push eax
push esi
call fcn.0046f3a0
add esp, 0xc
test esi, esi
je 0x40ee6d
xor eax, eax
xor byte [eax + esi], 0x7a
inc eax
cmp eax, 0x10
jb 0x40ee63
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40eece
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.0046eea0
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x40ef04
mov esi, dword [esi + 4]
jmp 0x40ef07
add esi, 4
cmp dword [0x4ced58], 8
mov eax, dword [0x4ced44]
jae 0x40ef1a
mov eax, 0x4ced44
push esi
push eax
push 0x4b3500
lea eax, [ebp - 0x314]
push 0x104
push eax
call fcn.00417329
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 0x40ef62
mov eax, 0xe00c0012
jmp 0x40efe6
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.0046eea0
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 0x40efd5
cmp dword [ebp - 8], 1
jne 0x40efd5
mov esi, str..Pipe_
push esi
call fcn.00470006
pop ecx
mov ecx, esi
mov esi, dword [ebp + 8]
call fcn.00415f20
lea eax, [ebp - 0x10c]
push eax
push esi
call fcn.00413eb0
jmp 0x40efda
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 0x40f354
Capabilities:
Write file on windows

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
jmp 0x40f3cb
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 0x40f3d7
add esi, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
jne 0x40f3a2
xor eax, eax
pop esi
leave
ret 0xc
mov eax, 0xe00c000b
jmp 0x40f3d2
Function at 0x410879
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 0x41089b
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.0046eea0
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 0x4108fa
push dword [ebp + 8]
call edi
push esi
inc eax
cdq
push 2
push edx
push eax
call fcn.0047eb40
mov ecx, eax
add eax, ebx
adc edx, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
jne 0x4108fa
cmp eax, 0xffffffff
jbe 0x4108ff
mov dword [ebp + 8], esi
jmp 0x41093e
cmp ecx, 0x400
jg 0x41091e
push ecx
call fcn.0041d100
test al, al
pop ecx
je 0x41091e
mov eax, dword [ebp - 0x18]
call fcn.0047d9b0
mov eax, esp
jmp 0x410929
push dword [ebp - 0x18]
lea esi, [ebp - 4]
call fcn.0041d0a6
push dword [ebp - 8]
mov esi, eax
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.0041d172
mov dword [ebp + 8], eax
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x410964
push dword [ebp + 0xc]
call edi
push esi
inc eax
cdq
push 2
push edx
push eax
call fcn.0047eb40
mov edi, eax
add eax, ebx
adc edx, esi
mov dword [ebp - 0x1c], edx
jne 0x410964
cmp eax, 0xffffffff
jbe 0x410968
xor eax, eax
jmp 0x41099f
cmp edi, 0x400
jg 0x410986
push edi
call fcn.0041d100
test al, al
pop ecx
je 0x410986
mov eax, edi
call fcn.0047d9b0
mov eax, esp
jmp 0x41098f
push edi
lea esi, [ebp - 4]
call fcn.0041d0a6
push dword [ebp - 8]
mov esi, eax
push edi
push dword [ebp + 0xc]
call fcn.0041d172
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4109d7
cmp eax, esi
je 0x4109d7
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 0x4109d3
mov eax, dword [ebp - 4]
mov edi, dword [eax]
push eax
mov dword [ebp - 4], edi
call fcn.0046f308
cmp edi, esi
pop ecx
jne 0x4109c0
mov eax, ebx
jmp 0x4109fa
push 8
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp dword [ebp - 4], esi
je 0x4109f7
mov eax, dword [ebp - 4]
mov edi, dword [eax]
push eax
mov dword [ebp - 4], edi
call fcn.0046f308
cmp edi, esi
pop ecx
jne 0x4109e4
or eax, 0xffffffff
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x410b28
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
cmp byte [esi + 0x44], bl
je 0x410b3a
mov al, 1
jmp 0x410bac
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
mov byte [ebp - 1], 1
jne 0x410b4a
xor al, al
jmp 0x410bac
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 0x410ba6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x410ba0
push dword [esi + 0x4c]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x410ba3
push 0x2c
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.0046eea0
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 0x410ba6
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 0x410bb1
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 0x410bd8
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x410c7f
push ebx
xor ebx, ebx
push ebx
push dword [esi + 8]
call edi
cmp eax, 0x102
jne 0x410bf6
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x410c7e
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 0x410c3e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x410c70
push dword [esi + 0x4c]
push dword [esi + 8]
call edi
test eax, eax
jne 0x410c73
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 0x410c6a
mov bl, 1
jmp 0x410c73
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 0x410c84
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 0x410ca8
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x410d70
push ebx
xor ebx, ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x80
jne 0x410cca
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x410d6f
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.0046eea0
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 0x410d2d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x410d61
push dword [esi + 0x4c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x410d64
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 0x410d5b
mov bl, 1
jmp 0x410d64
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 0x411010
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.0040d2a4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x411045
xor esi, esi
inc esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00405cc6
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 0x411030
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x411030
lea eax, [ebp - 4]
call fcn.00410f1d
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x41107c
xor esi, esi
jmp 0x411033
push eax
call fcn.00411010
test eax, eax
pop ecx
je 0x411078
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x411030
call edi
cmp eax, ebx
jne 0x411078
jmp 0x411030
Function at 0x41109a
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 0x4110b1
xor eax, eax
jmp 0x4111b0
push 0x40
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0xc], ebx
call fcn.0046eea0
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 [0x4cd420]
inc esi
add esp, 0xc
mov ecx, 0x4cd420
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 0x4110fa
mov eax, 0x4b3bf8
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push str.__s___s
call fcn.0040cd21
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 0x411160
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, 0x4ce834
call fcn.00426876
add esp, 0x18
jmp 0x411185
cmp dword [ebp + 0x10], ebx
je 0x411182
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [ebp + 0x18], ebx
je 0x411182
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 0x411198
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x18], ebx
je 0x4111a5
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
lea eax, [edi - 0x10]
call fcn.00405cc6
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411211
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.0046eea0
push 0x228
lea eax, [ebp - 0x23c]
push ebx
push eax
mov dword [ebp - 0x240], ebx
call fcn.0046eea0
mov eax, dword [0x4cd420]
mov esi, 0x4cd420
add esp, 0x18
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
call fcn.004111b5
call fcn.004115a5
test eax, eax
je 0x411314
mov eax, dword [0x4cd420]
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.0046eea0
mov eax, dword [ebp + 8]
movzx eax, word [eax]
push eax
push 0x4b3688
lea eax, [ebp - 0xc]
call fcn.0040cd21
add esp, 0x14
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.0040d2cf
lea esi, [ebp - 8]
call fcn.00410ed9
mov esi, dword [ebp + 8]
push esi
call fcn.00470006
cmp eax, 3
pop ecx
jbe 0x411307
add esi, 6
push esi
lea eax, [ebp - 8]
push eax
call fcn.00401d83
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00405cc6
jmp 0x411325
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.0040d2cf
mov edi, 0x104
push ebx
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x41141d
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 0x411418
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x238]
cmp eax, dword [ebp - 0x14]
je 0x4113ee
cmp eax, ebx
je 0x4113ee
cmp eax, 4
je 0x4113ee
push eax
push ebx
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4113ee
call fcn.004115a5
test eax, eax
je 0x4113b0
mov eax, dword [0x4ce514]
cmp eax, ebx
je 0x4113b0
push edi
lea ecx, [ebp - 0x448]
push ecx
push dword [ebp - 4]
call eax
jmp 0x4113c7
mov eax, dword [0x4ce510]
cmp eax, ebx
je 0x4113e6
push edi
lea ecx, [ebp - 0x448]
push ecx
push ebx
push dword [ebp - 4]
call eax
cmp eax, ebx
je 0x4113e6
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx - 0xc]
jne 0x4113e6
lea eax, [ebp - 0x448]
push eax
push ecx
call fcn.0046f814
test eax, eax
pop ecx
pop ecx
je 0x411407
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 0x411367
jmp 0x41140e
mov dword [ebp - 0x10], 1
cmp dword [ebp - 4], ebx
je 0x411418
push dword [ebp - 4]
call esi
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00405cc6
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411430
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.0046eea0
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 4]
call fcn.0040d2a4
push esi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x411594
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 0x41158e
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 0x411532
cmp eax, esi
je 0x411532
cmp eax, 4
je 0x411532
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00407392
mov eax, dword [eax]
push esi
push eax
call fcn.0046efa1
mov ebx, eax
mov eax, dword [ebp - 8]
add esp, 0xc
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00405cc6
test bl, bl
je 0x411532
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 0x18]
call fcn.00407392
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.00405cc6
cmp ebx, 0xffffffff
je 0x41154b
push ebx
call edi
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x4114a9
jmp 0x41158d
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00407392
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, 0x4ce834
call fcn.00426876
mov eax, dword [ebp - 8]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00405cc6
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.00405cc6
mov eax, dword [ebp - 0x10]
pop esi
leave
ret
Function at 0x411923
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 0x411942
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, 0x4ce834
call fcn.00426876
add esp, 0x10
mov eax, edi
pop edi
pop esi
ret
Function at 0x4120d3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
test byte [0x4cec38], 1
jne 0x41210c
mov eax, dword [0x4cd420]
or dword [0x4cec38], 1
mov ecx, 0x4cd420
call dword [eax + 0xc]
add eax, 0x10
push 0x4a8c37
mov dword [0x4cec34], eax
call fcn.0046f9c9
pop ecx
mov eax, dword [0x4cec34]
cmp dword [eax - 0xc], 0
jne 0x412156
push 0x104
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x412151
push esi
lea eax, [ebp - 0x208]
push eax
mov esi, 0x4cec34
push esi
call fcn.0040d2cf
call fcn.00410ed9
push str.drivers_
push esi
call fcn.00401d83
pop esi
mov eax, dword [0x4cec34]
add eax, 0xfffffff0
call fcn.0040d24c
add eax, 0x10
mov dword [edi], eax
mov eax, edi
leave
ret

Function at 0x4121a8
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.0046eea0
push str.ALLUSERSPROFILE
call fcn.00470882
add esp, 0x10
push eax
call fcn.00413e9a
cmp dword [esi + 0x14], edi
jne 0x41221a
push edi
push 0x23
lea eax, [ebp - 0x208]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x208]
push eax
call fcn.00470006
pop ecx
lea ecx, [ebp - 0x208]
call fcn.00415f20
cmp dword [esi + 0x14], edi
je 0x41229e
mov eax, dword [esi + 0x14]
push ebx
lea ebx, [eax - 1]
cmp eax, ebx
ja 0x41222a
call fcn.0046d2a3
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x412237
mov eax, dword [edi]
jmp 0x412239
mov eax, edi
movzx eax, word [eax + ebx*2]
cmp ax, 0x5c
pop ebx
je 0x412255
cmp ax, 0x2f
je 0x412255
push 0x4b2530
push esi
call fcn.00413eb0
call dword [sym.imp.KERNEL32.DLL_GetVersion]
cmp al, 5
jne 0x412282
push str.Application_Data
call fcn.00470006
pop ecx
push eax
mov eax, esi
call fcn.00414870
cmp eax, 0xffffffff
jne 0x412282
push str.Application_Data_
push esi
call fcn.00413eb0
push str.kcmcm_
push esi
call fcn.00413eb0
cmp dword [esi + 0x18], 8
jb 0x412295
mov edi, dword [edi]
push edi
call fcn.00411010
pop ecx
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret