joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8340
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5f8b2c]
cmp eax, 0x11
jne 0x4b84c5
push esi
push edi
push 0x9c
lea esi, [eax - 2]
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.005409b0
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 0x9c
call edi
test eax, eax
jne 0x4b83c3
lea edx, [ebp - 0xa0]
push edx
mov dword [ebp - 0xa0], 0x94
call edi
test eax, eax
jne 0x4b83c3
pop edi
lea eax, [esi + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x90]
push ebx
mov ebx, 1
sub eax, ebx
je 0x4b8490
sub eax, ebx
jne 0x4b84ba
mov eax, dword [ebp - 0x9c]
cmp eax, 4
ja 0x4b83ed
lea esi, [ebx + 2]
cmp eax, 5
jne 0x4b842b
mov eax, dword [ebp - 0x98]
test eax, eax
jne 0x4b8404
lea esi, [eax + 4]
jmp 0x4b84ba
cmp eax, ebx
jne 0x4b8412
mov esi, 5
jmp 0x4b84ba
cmp eax, 2
jne 0x4b84ba
xor eax, eax
cmp byte [ebp - 6], bl
setne al
lea esi, [eax + 5]
jmp 0x4b84ba
cmp eax, 6
jne 0x4b84ba
cmp dword [ebp - 0x98], 3
je 0x4b8482
push 3
call fcn.00403eae
add esp, 4
test eax, eax
jne 0x4b8482
mov eax, dword [ebp - 0x98]
cmp eax, 2
jne 0x4b8464
xor ecx, ecx
cmp byte [ebp - 6], bl
setne cl
lea esi, [ecx + ecx + 0xb]
jmp 0x4b84ba
cmp eax, ebx
jne 0x4b8475
xor edx, edx
cmp byte [ebp - 6], bl
sete dl
lea esi, [edx + 9]
jmp 0x4b84ba
xor eax, eax
cmp byte [ebp - 6], bl
setne al
lea esi, [eax + 7]
jmp 0x4b84ba
xor ecx, ecx
cmp byte [ebp - 6], bl
setne cl
lea esi, [ecx + ecx + 0xc]
jmp 0x4b84ba
cmp dword [ebp - 0x9c], 4
jne 0x4b84ba
mov eax, dword [ebp - 0x98]
test eax, eax
jne 0x4b84a7
xor esi, esi
jmp 0x4b84ba
cmp eax, 0xa
jne 0x4b84b0
mov esi, ebx
jmp 0x4b84ba
cmp eax, 0x5a
jne 0x4b84ba
mov esi, 2
pop ebx
pop edi
mov dword [0x5f8b2c], esi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret
Function at 0x4b9390
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x124
lea eax, [ebp - 0x128]
push ebx
push eax
mov dword [ebp - 0x12c], ebx
call fcn.005409b0
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b93e8
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x12c]
push ecx
push esi
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4b943a
lea edx, [ebp - 0x108]
push edi
push edx
call fcn.00564d4d
add esp, 8
test eax, eax
jne 0x4b9425
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x124], eax
jne 0x4b9438
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4b9403
jmp 0x4b943a
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0053fd20
mov esp, ebp
pop ebp
ret

Function at 0x4b96d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x124
lea eax, [ebp - 0x22c]
push 0
push eax
mov byte [ebp - 0x231], 0
mov dword [ebp - 0x230], 0
call fcn.005409b0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b972c
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x230]
push ecx
push esi
mov dword [ebp - 0x230], 0x128
xor bl, bl
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4b97a7
lea ebx, [ebx]
xor eax, eax
jmp 0x4b9760
mov cl, byte [ebp + eax - 0x20c]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x4b9760
cmp byte [ebp + 8], cl
jne 0x4b9796
lea edx, [ebp - 0x108]
push edx
push 0x5b9844
call fcn.00564d4d
add esp, 8
test eax, eax
jne 0x4b9796
test bl, bl
mov bl, 1
jne 0x4b97ad
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4b9750
mov bl, byte [ebp - 0x231]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
xor ecx, ebp
pop esi
call fcn.0053fd20
mov esp, ebp
pop ebp
ret
Function at 0x4b9990
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596932
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5fae30]
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 esi, dword [ebp + 8]
push 0x33
xor ebx, ebx
push str.ShutDownService___Trying_to_shutdown_service_status
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00402a36
push ebx
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x5fda4c
mov dword [ebp - 4], ebx
call fcn.005383c0
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x4b9a07
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0053ed60
add esp, 4
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebx
jne 0x4b9a66
push 0x28
push str.ShutDownService___Failed_getting_the_SCM
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00402a36
push 1
lea edx, [ebp - 0x2c]
push edx
mov ecx, 0x5fda4c
mov dword [ebp - 4], 1
call fcn.005383c0
cmp dword [ebp - 0x18], 0x10
jb 0x4b9a5f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0053ed60
add esp, 4
xor al, al
jmp 0x4b9ae8
push 0x20
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebx
jne 0x4b9ac6
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x2c
push str.ShutDownService___Failed_getting_the_service
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.00402a36
push 1
lea ecx, [ebp - 0x48]
push ecx
mov ecx, 0x5fda4c
mov dword [ebp - 4], 2
call fcn.005383c0
cmp dword [ebp - 0x34], 0x10
jb 0x4b9a5f
mov edx, dword [ebp - 0x48]
push edx
call fcn.0053ed60
add esp, 4
xor al, al
jmp 0x4b9ae8
lea eax, [ebp - 0x64]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x68], eax
call esi
push edi
call esi
cmp dword [ebp - 0x68], ebx
setne al
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.0053fd20
mov esp, ebp
pop ebp
ret
Function at 0x4c44b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push edi
or ecx, 0x2001f
push ecx
xor ebx, ebx
push eax
push edx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x108], ebx
call fcn.00403d5f
mov edi, eax
cmp edi, ebx
je 0x4c452a
mov eax, dword [ebp - 0x110]
cmp eax, ebx
je 0x4c4515
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x110]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x104]
push edx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [ebp - 0x114], 0x100
call ebx
test eax, eax
jne 0x4c45a8
lea ecx, [ebp - 0x104]
push ecx
lea ecx, [ebp - 0x110]
call fcn.00403788
mov edi, eax
test edi, edi
jne 0x4c45e1
lea edx, [ebp - 0x120]
push edx
mov edx, dword [ebp - 0x110]
push eax
push eax
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
push edx
mov dword [ebp - 0x114], 0x100
call ebx
test eax, eax
je 0x4c4560
mov eax, dword [ebp - 0x110]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp eax, edi
je 0x4c45c3
push eax
call ebx
mov dword [ebp - 0x110], edi
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x10c], edi
push eax
cmp ecx, edi
je 0x4c460b
mov edx, dword [esi]
push edx
call fcn.004050ab
jmp 0x4c4614
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x4c4515
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [ebp - 0x110]
cmp eax, edi
je 0x4c4623
push eax
call ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053fd20
mov esp, ebp
pop ebp
ret 4
Function at 0x4cf160
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597bb9
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x5fae30]
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 eax, dword [ebp + 8]
xor edi, edi
push 0x124
lea ecx, [ebp - 0x188]
push edi
push ecx
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x18c], edi
call fcn.005409b0
add esp, 0xc
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x194], esi
cmp esi, 0xffffffff
jne 0x4cf1d0
xor al, al
jmp 0x4cf340
lea edx, [ebp - 0x18c]
push edx
push esi
mov dword [ebp - 0x18c], 0x128
mov byte [ebp - 0x18d], 0
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4cf333
jmp 0x4cf200
lea eax, [ebp - 0x168]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4cf217
sub eax, edx
push eax
lea eax, [ebp - 0x168]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402a36
mov ecx, dword [ebp - 0x198]
push ecx
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 4], edi
call fcn.004069b0
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x64]
push ecx
mov byte [ebp - 4], 1
call fcn.004069b0
add esp, 0x10
mov ebx, dword [esi + 0x10]
mov edx, 0x10
cmp dword [esi + 0x14], edx
jb 0x4cf268
mov esi, dword [esi]
mov edi, dword [eax + 0x10]
mov ecx, edi
cmp ecx, edi
jae 0x4cf271
mov ecx, edi
cmp edi, ebx
jb 0x4cf279
mov ecx, ebx
cmp dword [eax + 0x14], edx
jb 0x4cf280
mov eax, dword [eax]
push ecx
push esi
push eax
call fcn.0040392c
add esp, 0xc
test eax, eax
jne 0x4cf2a1
cmp edi, ebx
jae 0x4cf298
or eax, 0xffffffff
jmp 0x4cf29f
xor eax, eax
cmp edi, ebx
setne al
test eax, eax
mov edi, 0x10
sete byte [ebp - 0x18e]
cmp dword [ebp - 0x50], edi
jb 0x4cf2be
mov edx, dword [ebp - 0x64]
push edx
call fcn.0053ed60
add esp, 4
xor ebx, ebx
mov esi, 0xf
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0x34], edi
jb 0x4cf2df
mov eax, dword [ebp - 0x48]
push eax
call fcn.0053ed60
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], edi
jb 0x4cf300
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0053ed60
add esp, 4
cmp byte [ebp - 0x18e], bl
jne 0x4cf326
mov eax, dword [ebp - 0x194]
lea edx, [ebp - 0x18c]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4cf32d
xor edi, edi
jmp 0x4cf200
mov byte [ebp - 0x18d], 1
mov esi, dword [ebp - 0x194]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x18d]
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.0053fd20
mov esp, ebp
pop ebp
ret 4
Function at 0x4d49a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5014
call fcn.00540100
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push 0
push 0x5bbd5c
mov dword [ebp - 0x5010], ecx
call fcn.00403594
cmp dword [esi + 0x14], 8
jb 0x4d49e0
mov esi, dword [esi]
lea eax, [ebp - 0x5008]
push eax
push 0x20019
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4d4a8c
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x500c], eax
mov dword [ebp - 0x5014], 0x4ffe
jb 0x4d4a16
mov edi, dword [edi]
lea ecx, [ebp - 0x5014]
push ecx
mov ecx, dword [ebp - 0x5008]
lea edx, [ebp - 0x5004]
push edx
lea eax, [ebp - 0x500c]
push eax
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x5008]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4d4a8c
lea eax, [ebp - 0x5004]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4d4a57
mov ecx, dword [ebp - 0x5010]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x5004]
push eax
call fcn.00403594
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0053fd20
mov esp, ebp
pop ebp
ret
Function at 0x4db040
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599000
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5fae30]
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
cmp dword [ecx + 0x28], 0
mov eax, dword [ebp + 8]
je 0x4db143
cmp byte [ecx + 4], 0
jne 0x4db143
cmp dword [eax + 0x10], 0
je 0x4db143
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00406569
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x14
mul edx
seto cl
mov dword [ebp - 4], 0
neg ecx
or ecx, eax
push ecx
call fcn.0053e9b3
mov esi, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, eax
xor edx, edx
mov dword [ebp - 0x34], ecx
test esi, esi
je 0x4db115
xor eax, eax
lea edi, [edx + 1]
mov word [ebp - 0x40], ax
mov word [ebp - 0x3e], ax
mov word [ebp - 0x3c], ax
xor esi, esi
cmp dword [ebp - 0x18], 0x10
mov word [ebp - 0x3a], si
mov esi, dword [ebp - 0x2c]
jae 0x4db0ea
lea esi, [ebp - 0x2c]
mov bl, byte [esi + edx]
mov esi, edi
mov word [ecx], si
mov esi, dword [ebp - 0x40]
mov dword [ecx + 4], edi
mov dword [ecx + 8], esi
mov byte [ebp - 0x3a], bl
mov esi, dword [ebp - 0x3c]
mov dword [ecx + 0xc], esi
mov dword [ecx + 0x10], eax
mov esi, dword [ebp - 0x1c]
inc edx
add ecx, 0x14
cmp edx, esi
jb 0x4db0d8
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
push edx
push esi
push ecx
push 0xfffffffffffffff6
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
cmp dword [ebp - 0x18], 0x10
jb 0x4db143
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0053ed60
add esp, 4
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.0053fd20
mov esp, ebp
pop ebp
ret 4

Function at 0x4dceb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5994b6
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x21c], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0x220], esi
mov word [esi], ax
lea ecx, [ebp - 0x218]
push ecx
push 0x104
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4dcf30
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
mov ecx, esi
call fcn.00403594
push 0xffffffffffffffff
push 0
push ebx
mov ecx, esi
call fcn.00402815
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret
Function at 0x4f0550
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b337
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5fae30]
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 esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
mov edi, dword [ebp + 0xc]
je 0x4f05e5
test edi, edi
je 0x4f058e
mov byte [edi], 1
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x54], ebx
test ebx, ebx
jne 0x4f05e9
push 0x27
push str.CWFP::UninstallWFP___Failed_to_open_SCM
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
call fcn.00402a36
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00404449
mov ecx, eax
call fcn.00403bd4
cmp dword [ebp - 0x18], 0x10
jb 0x4f05e5
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0053ed60
add esp, 4
xor al, al
jmp 0x4f0659
cmp dword [esi + 0x14], 8
jb 0x4f05f3
mov eax, dword [esi]
jmp 0x4f05f5
mov eax, esi
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4f0613
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x4f0659
lea edx, [ebp - 0x58]
push edx
push 0x24
lea eax, [ebp - 0x50]
push eax
push 0
push esi
xor bl, bl
mov dword [ebp - 0x58], 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4f0648
mov eax, dword [ebp - 0x4c]
cmp eax, 4
sete bl
test edi, edi
je 0x4f0648
cmp eax, 1
sete cl
mov byte [edi], cl
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov edx, dword [ebp - 0x54]
push edx
call esi
mov al, bl
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.0053fd20
mov esp, ebp
pop ebp
ret 8
Function at 0x4f7e50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59bfc0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5fae30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
push 0x34
call fcn.0053f7d7
mov esi, eax
xor eax, eax
add esp, 4
mov dword [ebp - 0x14], esi
cmp esi, eax
je 0x4f7ee9
mov ecx, dword [edi + 4]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov ecx, dword [edi + 4]
mov edx, dword [ebp + 8]
mov word [esi + 0x30], ax
mov dword [ebp - 4], eax
push edx
lea eax, [esi + 0xc]
push eax
add edi, 0xd
push edi
mov dword [esi + 8], ecx
call fcn.004f75d0
add esp, 0xc
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
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp + 8], eax
call fcn.0053eee0
push 0x5d17c8
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.0053f857
int3

Function at 0x4f8170
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c010
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5fae30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
push 0x34
call fcn.0053f7d7
mov esi, eax
xor eax, eax
add esp, 4
mov dword [ebp - 0x14], esi
cmp esi, eax
je 0x4f8209
mov ecx, dword [edi + 4]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov ecx, dword [edi + 4]
mov edx, dword [ebp + 8]
mov word [esi + 0x30], ax
mov dword [ebp - 4], eax
push edx
lea eax, [esi + 0xc]
push eax
add edi, 0xd
push edi
mov dword [esi + 8], ecx
call fcn.004f78e0
add esp, 0xc
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
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp + 8], eax
call fcn.0053eee0
push 0x5d17c8
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.0053f857
int3
Function at 0x4f8b00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c140
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5fae30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
push 0x34
call fcn.0053f7d7
mov esi, eax
xor eax, eax
add esp, 4
mov dword [ebp - 0x14], esi
cmp esi, eax
je 0x4f8b99
mov ecx, dword [edi + 4]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov ecx, dword [edi + 4]
mov edx, dword [ebp + 8]
mov word [esi + 0x30], ax
mov dword [ebp - 4], eax
push edx
lea eax, [esi + 0xc]
push eax
add edi, 0xd
push edi
mov dword [esi + 8], ecx
call fcn.004f87a0
add esp, 0xc
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
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp + 8], eax
call fcn.0053eee0
push 0x5d17c8
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.0053f857
int3