joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4138c0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x288
call fcn.00432a9d
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov esi, eax
add esp, 4
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], 0x288
call ebx
push esi
call fcn.00432b31
mov eax, dword [ebp - 4]
lea ecx, [eax - 1]
add esp, 4
cmp ecx, 0x752e
ja 0x41394b
push eax
call fcn.00432a9d
add esp, 4
lea edx, [ebp - 4]
mov edi, eax
push edx
push edi
call ebx
test eax, eax
jne 0x41394b
mov esi, edi
test edi, edi
je 0x413942
lea ebx, [eax + 6]
lea eax, [esi + 0x10c]
push 0x450140
push eax
call fcn.00432b70
add esp, 8
cmp dword [esi + 0x190], ebx
jae 0x413954
mov esi, dword [esi]
test esi, esi
jne 0x413920
push edi
call fcn.00432b31
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x194]
mov dword [0x45c8d8], ecx
mov edx, dword [esi + 0x198]
push edi
mov dword [0x45c8dc], edx
call fcn.00432b31
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414a40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446590
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4590c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
test edi, edi
je 0x414acc
cmp dword [esi], 0
jne 0x414acc
push 0x10
mov dword [ebp - 4], 0
call fcn.004310d9
add esp, 4
test eax, eax
je 0x414a9a
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
jmp 0x414a9c
xor eax, eax
mov dword [esi], eax
test eax, eax
je 0x414acc
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esi]
mov dword [ecx + 4], eax
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x414ae0
push eax
call fcn.00430f33
add esp, 4
mov dword [esi], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
add eax, 8
push eax
push 0
push edx
push edi
push 0
push 0
call fcn.00432e91
mov ecx, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi]
add esp, 0x18
cmp dword [eax], 0
je 0x414abd
mov dword [eax + 0xc], 0x7d0
mov edx, dword [esi]
mov eax, dword [edx + 4]
test eax, eax
je 0x414b1b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414b40
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi]
test eax, eax
je 0x414bbe
mov ecx, dword [eax + 0xc]
mov edx, dword [eax]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x414b67
mov eax, dword [esi]
mov ecx, dword [eax]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi]
cmp dword [eax], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x414b88
cmp dword [eax + 8], 0
je 0x414b88
mov edx, dword [eax]
push edx
call edi
mov eax, dword [esi]
mov dword [eax], 0
mov ecx, dword [esi]
mov dword [ecx + 8], 0
mov edx, dword [esi]
mov eax, dword [edx + 4]
test eax, eax
je 0x414ba6
push eax
call edi
mov eax, dword [esi]
mov dword [eax + 4], 0
mov ecx, dword [esi]
push ecx
call fcn.00430f33
add esp, 4
mov dword [esi], 0
mov eax, 1
pop edi
ret
xor eax, eax
ret

Function at 0x414ce0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446b88
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4590c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
lea esi, [edi + 0x18]
mov dword [ebp - 0x10], eax
push esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x30]
sub eax, 0x10
call fcn.00401a60
add eax, 0x10
mov dword [ebx], eax
test esi, esi
je 0x414d3d
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4171c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4487bb
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4590c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, 1
cmp dword [edi + 0x1e8], ebx
je 0x417363
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_KillTimer]
push 9
push eax
mov dword [edi + 0x1e8], ebx
call esi
mov ecx, dword [edi + 4]
push 6
push ecx
call esi
mov edx, dword [edi + 4]
push ebx
push edx
call esi
mov eax, dword [edi + 4]
push 2
push eax
call esi
mov ecx, dword [edi + 4]
push 3
push ecx
call esi
mov edx, dword [edi + 4]
push 4
push edx
call esi
mov eax, dword [edi + 4]
push 5
push eax
call esi
mov ecx, dword [edi + 4]
push 7
push ecx
call esi
mov edx, dword [edi + 4]
push 9
push edx
call esi
cmp dword [edi + 0x94], 0
lea esi, [edi + 0x94]
je 0x41726b
call fcn.00414b40
mov dword [esi], 0
cmp dword [edi + 0x98], 0
lea esi, [edi + 0x98]
je 0x417285
call fcn.00414b40
mov dword [esi], 0
cmp dword [edi + 0x9c], 0
lea esi, [edi + 0x9c]
je 0x41729f
call fcn.00414b40
mov dword [esi], 0
lea eax, [edi + 0xe8]
call fcn.00428270
lea esi, [edi + 0x78]
push esi
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
call fcn.004317a6
cmp dword [0x45c8cc], 0
je 0x417336
push ebx
call fcn.0041d9f0
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0
push 0x21
lea eax, [ebp - 0x218]
push eax
push 0
call ebx
test eax, eax
je 0x41730a
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
mov ecx, edi
call fcn.0041dab0
push 0
call fcn.0041d9f0
push 0
push 0x20
lea edx, [ebp - 0x218]
push edx
push 0
call ebx
test eax, eax
je 0x417336
push 0
push 0
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.0041dab0
cmp dword [edi + 0x60], 0
jbe 0x417351
mov ecx, dword [edi + 4]
push 0
push 0x3e8
push 0xa
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x417358
mov ecx, edi
call fcn.00415d40
test esi, esi
je 0x417363
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.00430f3e
mov esp, ebp
pop ebp
ret
Function at 0x4182e0
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, eax
test edi, edi
je 0x418376
mov eax, dword [esi + 0x74]
test eax, eax
je 0x418378
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
cmp eax, edi
je 0x41831d
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41831a
mov ecx, dword [esi + 0x74]
mov edx, dword [ecx + 8]
push 0
push edx
call ebx
mov dword [esi + 0x74], edi
mov eax, dword [esi + 0x74]
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x418375
mov eax, dword [esi + 0xac]
mov edx, dword [esi + 0xb4]
mov ecx, dword [esi + 0xa8]
push 1
sub edx, eax
push edx
mov edx, dword [esi + 0xb0]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x74]
push ecx
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esi + 0x74]
mov eax, dword [edx + 8]
push 5
push eax
call ebx
mov ecx, dword [esi + 0x74]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
pop ebx
pop edi
ret
mov dword [esi + 0x74], edi
mov eax, dword [edi + 8]
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push eax
call edi
test eax, eax
je 0x418376
mov eax, dword [esi + 0xac]
mov edx, dword [esi + 0xb4]
mov ecx, dword [esi + 0xa8]
push 1
sub edx, eax
push edx
mov edx, dword [esi + 0xb0]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x74]
push ecx
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esi + 0x74]
mov edx, dword [eax + 8]
push edx
call edi
test eax, eax
je 0x4183d6
mov eax, dword [esi + 0x74]
mov ecx, dword [eax + 8]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 0x74]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
ret
Function at 0x41d9f0
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
push ebx
mov dword [ebp - 4], ebx
call edi
mov ecx, dword [ebp - 4]
push ecx
call fcn.00430f28
add esp, 4
lea edx, [ebp - 4]
push edx
mov esi, eax
push esi
push ebx
call edi
mov edi, eax
test edi, edi
je 0x41da91
mov ebx, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
lea esp, [esp]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x41da46
test dword [esi + 0xc], 0x100000
jne 0x41da5e
mov eax, dword [esi + 4]
push eax
jmp 0x41da58
cmp eax, 1
jne 0x41da5e
test dword [esi + 0xc], 0x100000
je 0x41da5e
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
lea edx, [ebp - 4]
push edx
push 0
push edi
mov dword [ebp - 4], 0
call ebx
push esi
call fcn.0043160d
mov eax, dword [ebp - 4]
push eax
call fcn.00430f28
add esp, 8
lea ecx, [ebp - 4]
push ecx
mov esi, eax
push esi
push edi
call ebx
test eax, eax
jne 0x41da30
lea ebx, [eax + 1]
test esi, esi
je 0x41da9e
push esi
call fcn.0043160d
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41de40
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447e4b
mov eax, dword fs:[0]
push eax
mov eax, 0x271c
call fcn.0043df90
mov eax, dword [0x4590c0]
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 [section..data]
mov esi, ecx
mov edi, edx
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x2724], eax
push 0x2710
lea eax, [ebp - 0x2720]
push 0
push eax
mov dword [ebp - 4], 0
call fcn.00433910
add esp, 0xc
test esi, esi
jne 0x41deb3
xor eax, eax
jmp 0x41decf
mov eax, esi
lea edx, [eax + 2]
jmp 0x41dec0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41dec0
sub eax, edx
sar eax, 1
push esi
lea ecx, [ebp - 0x2724]
push ecx
mov ebx, eax
call fcn.00402080
mov eax, dword [ebp - 0x2724]
mov ebx, dword [eax - 0xc]
lea esi, [ebx + 1]
test esi, esi
jns 0x41def8
push 0x80070057
call fcn.00402060
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x41df1c
mov eax, esi
lea ecx, [ebp - 0x2724]
call fcn.00402000
mov eax, dword [ebp - 0x2724]
mov edx, 0x5c
mov word [eax + ebx*2], dx
cmp esi, dword [eax - 8]
jg 0x41deee
xor ecx, ecx
mov dword [eax - 0xc], esi
mov word [eax + esi*2], cx
test edi, edi
jne 0x41df3b
xor eax, eax
jmp 0x41df4f
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41df40
sub eax, edx
sar eax, 1
push eax
push edi
lea ebx, [ebp - 0x2724]
call fcn.004019a0
mov edi, dword [ebp - 0x2724]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41dfa7
mov dword [ebp - 4], eax
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41dfa0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41e041
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0x40
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub edi, 0x40
je 0x41e00c
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [ebx]
push 0
cmp edi, 0x2710
jbe 0x41dffa
lea ecx, [ebp - 0x2728]
push ecx
push 0x2710
lea edx, [ebp - 0x2720]
push edx
push esi
call ebx
sub edi, 0x2710
jne 0x41dfd0
jmp 0x41e00c
lea eax, [ebp - 0x2728]
push eax
push edi
lea ecx, [ebp - 0x2720]
push ecx
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2724]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41e03c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
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.00430f3e
mov esp, ebp
pop ebp
ret
Function at 0x4278f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447c13
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4590c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi], eax
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
lea ebx, [esi + 0x44]
call edx
add eax, 0x10
mov dword [ebx], eax
push 0x450cbc
mov byte [ebp - 4], 1
push ebx
lea ebx, [edi + 0xf]
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.00402080
xor eax, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
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
Function at 0x428ad0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448650
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
mov eax, dword [0x4590c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov esi, 1
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x10], 0
call fcn.00428390
add esp, 4
test eax, eax
jne 0x428b6f
mov byte [ebp - 4], al
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428b37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428b5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x44
lea ecx, [ebp - 0x68]
push 0
push ecx
call fcn.00433910
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x60], str.winsta0default
cmp dword [eax - 4], esi
jle 0x428ba5
mov edx, dword [eax - 0xc]
push edx
lea eax, [ebp + 0xc]
push eax
call fcn.00401f30
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x68]
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004316dd
add esp, 8
test eax, eax
js 0x428c57
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx - 8]
jg 0x428c57
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov word [ecx + eax*2], dx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428c1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428c45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402060
int3
Function at 0x429150
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x644
mov eax, dword [0x4590c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4291a6
push 1
push str.Service_Keep
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x42919b
push eax
mov edi, 1
call ebx
push esi
call ebx
test edi, edi
jne 0x429249
xor eax, eax
push 0x63e
push eax
lea ecx, [ebp - 0x642]
push ecx
mov word [ebp - 0x644], ax
call fcn.00433910
add esp, 0xc
push 0x320
lea edx, [ebp - 0x644]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x429249
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x429249
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x644]
push eax
push 1
push 2
push 0x110
push 0xf01ff
push str.Service_Keep
push str.Service_Keep
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x429230
push edi
call ebx
push esi
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430f3e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00430f3e
mov esp, ebp
pop ebp
ret
Function at 0x429260
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4590c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x4292af
push 1
push str.Service_Keep
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x4292a8
push eax
mov edi, 1
call ebx
push esi
call ebx
test edi, edi
jne 0x4292c5
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430f3e
mov esp, ebp
pop ebp
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4292fa
push str.OpenSCManager_failed_
call fcn.0043331a
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430f3e
mov esp, ebp
pop ebp
ret
push 0x10020
push str.Service_Keep
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x429334
push edi
call ebx
push str.OpenService_failed_
call fcn.0043331a
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430f3e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call ebx
push edi
call ebx
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x24], eax
pop edi
setne al
pop esi
xor ecx, ebp
pop ebx
call fcn.00430f3e
mov esp, ebp
pop ebp
ret
Function at 0x42c490
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4590c0]
xor eax, ebp
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
mov ecx, dword [edi]
xor esi, esi
lea ebx, [ebp - 0x210]
push ebx
or eax, 0x2001f
push eax
push esi
push edx
push ecx
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x21c]
mov ebx, eax
cmp ebx, esi
jne 0x42c517
xor eax, eax
cmp ecx, esi
je 0x42c4ff
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x210]
mov dword [ebp - 0x218], esi
mov ebx, eax
mov dword [ebp - 0x21c], ecx
cmp eax, esi
je 0x42c537
cmp ecx, esi
je 0x42c522
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00430f3e
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x22c]
push eax
push esi
push esi
push esi
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x20c]
push eax
push esi
push ecx
mov dword [ebp - 0x220], 0x100
call ebx
test eax, eax
jne 0x42c5c0
jmp 0x42c570
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.0042c490
mov dword [ebp - 0x210], eax
cmp eax, esi
jne 0x42c612
lea edx, [ebp - 0x22c]
push edx
mov edx, dword [ebp - 0x21c]
push esi
push esi
push esi
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push esi
push edx
mov dword [ebp - 0x220], 0x100
call ebx
test eax, eax
je 0x42c570
mov eax, dword [ebp - 0x21c]
cmp eax, esi
je 0x42c5d7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x21c], esi
mov ebx, dword [ebp - 0x224]
mov eax, edi
mov dword [ebp - 0x218], esi
call fcn.0042c6b0
mov edi, eax
mov eax, dword [ebp - 0x21c]
cmp eax, esi
je 0x42c5fd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00430f3e
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x21c]
cmp ecx, esi
je 0x42c5ff
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00430f3e
mov esp, ebp
pop ebp
ret 4