joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c5e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43c613
push esi
call fcn.0043f6f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43c60c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43c699
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43c682
mov eax, dword [esi + 8]
test eax, eax
je 0x43c637
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43c67e
cmp eax, 2
je 0x43c682
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43c62a
cmp eax, 3
je 0x43c65d
cmp eax, 1
jne 0x43c62a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43c62a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43c62a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043c6c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43c6a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043c6c0
add esp, 4
pop esi
ret

Function at 0x44a770
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x52c8f8]
xor edx, edx
cmp eax, edx
jne 0x44a796
xor eax, eax
mov byte [eax + 0x52c7f8], al
inc eax
cmp eax, 0x100
jl 0x44a77e
mov dword [0x52c8f8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x52c7f8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x44a827
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x44a7fa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x44a7c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x44a8a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x44a8f3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x44a8da
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x451270
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47e0be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00451b90
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4ffefc
call fcn.0046fe13
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x451303
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0046fe13
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4512fc
push 0
mov ecx, eax
call fcn.004483a0
mov dword [esi + 0xc], eax
jmp 0x451305
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x451305
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x472479
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4724b1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047052d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00470505
jmp 0x4724bd
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x473b6b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x473bad
call fcn.00479625
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x473bad
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x473ba4
xor eax, eax
jmp 0x473bb5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00473bbb
pop edi
pop esi
pop ebx
ret 4
Function at 0x479b55
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x479b83
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x479ba1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00479abb
jmp 0x479ba1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x479ba1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00479abb
test edi, edi
mov eax, edi
jne 0x479b8b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402300
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x423370
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x432ab8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0x432ab8
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 0xffffffff
je 0x402351
test al, 0x10
jne 0x402385
push 0x432ab8
call ebp
jmp 0x402385
push 0x432ab8
lea ecx, [esp + 0x14]
call fcn.00413e2e
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0
push eax
call fcn.00404aa0
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00413e8c
mov edi, str.tbtemp
or ecx, 0xffffffff
xor eax, eax
push 0x432ab8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x432ab8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
cmp eax, 0xffffffff
je 0x4023d3
test al, 0x10
push 0x432ab8
jne 0x4023cb
call ebp
jmp 0x4023d3
call fcn.00402690
add esp, 4
push 0x432ab8
lea ecx, [esp + 0x1c]
call fcn.00413e2e
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 1
push eax
call fcn.00404aa0
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.00413e8c
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x402690
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4233ab
push eax
mov dword fs:[0], esp
sub esp, 0x750
or ecx, 0xffffffff
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x768]
push esi
push edi
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x25c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x25c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42a344
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x11c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4027fa
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42a310
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x148]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [esp + 0x11c]
mov ecx, edx
and ecx, 3
test al, 0x10
rep movsb byte es:[edi], byte [esi]
je 0x4027d1
cmp byte [esp + 0x148], 0x2e
je 0x4027dc
lea eax, [esp + 0x18]
push eax
call fcn.00402690
add esp, 4
jmp 0x4027dc
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x11c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40272e
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call fcn.0041a44a
add esp, 4
test eax, eax
je 0x402883
push ebp
push str.Unable_to_remove_directory__s
push 0
call fcn.0040f9a0
add esp, 8
push eax
lea eax, [esp + 0x368]
push eax
call fcn.00419bfc
add esp, 0xc
lea ecx, [esp + 0x360]
push ecx
lea ecx, [esp + 0x14]
call fcn.00413e2e
lea edx, [esp + 0x10]
push 5
push edx
mov dword [esp + 0x770], 0
call fcn.00406eb0
add esp, 8
cmp eax, 2
lea ecx, [esp + 0x10]
mov dword [esp + 0x768], 0xffffffff
sete bl
call fcn.00413e8c
test bl, bl
je 0x402876
call fcn.00407bd0
push ebp
call fcn.0041a44a
add esp, 4
test eax, eax
jne 0x402807
mov ecx, dword [esp + 0x760]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x75c
ret
Function at 0x402ae0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x4326b0]
push ebx
push ebp
push esi
push edi
push str.BINRES
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edx, dword [0x4326b0]
mov esi, eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
mov eax, dword [0x4326b0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, dword [esp + 0x18]
push 0
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov esi, eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll__hwrite]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
push ebp
call fcn.00402b60
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x402b60
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x18c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp]
push ebx
mov ebx, dword [esp + 0x194]
push ebp
push esi
push edi
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.__xxtmp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x118]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebx
call sub.LZ32.dll_LZOpenFileA
lea ecx, [esp + 0x114]
push 0x1000
lea edx, [esp + 0x14]
push ecx
push edx
mov esi, eax
call sub.LZ32.dll_LZOpenFileA
mov edi, eax
push edi
push esi
call sub.LZ32.dll_LZCopy
push esi
call sub.LZ32.dll_LZClose
push edi
call sub.LZ32.dll_LZClose
push 0
lea eax, [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18c
ret
Function at 0x402c30
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x27c
push ebx
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or ecx, 0xffffffff
mov edi, 0x432ab8
xor eax, eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x48], 1
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov word [esp + 0x4c], 0
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.expand__r
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x60]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x28c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x60]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42a3bc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x290]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x60]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x64]
push ecx
push 0x432ab8
push 0
push 0x200
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402d96
mov esi, 0x400
call fcn.00415668
test eax, eax
je 0x402d7c
mov esi, 0x100400
mov eax, dword [esp + 0x14]
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x61a80
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebx
add esp, 0x27c
ret
Function at 0x404690
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4046be
xor al, al
ret
mov edx, dword [esp + 0x10]
push esi
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop edi
pop esi
sete al
ret

Function at 0x404700
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x25c
push ebx
push ebp
push esi
lea eax, [esp + 0x1c]
push edi
push eax
mov ebx, 0x3d
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea ecx, [esp + 0x64]
push 0x208
xor ebp, ebp
push ecx
push str.UPDD_Folder
push ebp
mov dword [esp + 0x5c], 1
mov word [esp + 0x60], bp
call fcn.00410fa4
mov edi, str.keypadws__S__AUTO
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x68]
push ecx
push ebp
push ebp
push 0x200
push ebp
push ebp
push ebp
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4047f4
mov esi, 0x400
call fcn.00415668
test eax, eax
je 0x4047a3
mov esi, 0x100400
mov eax, dword [esp + 0x18]
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
push ebx
mov ecx, 0x432418
call fcn.00401160
push 0x3e8
push esi
inc ebx
call edi
cmp eax, 0x102
jne 0x4047dd
inc ebp
cmp ebp, 0x190
jl 0x4047b9
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallVirtual_Keypad
push 0x80000002
call fcn.00404a10
add esp, 8
call fcn.00404800
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x25c
ret
Function at 0x404800
Capabilities:
Check for time delay via gettickcount
Create service
Delete service
Query service status
Start service
Stop service

Disassembly:
sub esp, 0x38
push ebx
push esi
push edi
push 0xf003f
push str.ServicesActive
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x4049fc
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push 0x10020
push str.TBVKEYMP
push edi
call ebx
mov esi, eax
test esi, esi
je 0x404857
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0
push 0
push str.SystemRootSystem32DriversTBVKEYMP.SYS
push 1
push 0
push 1
push 0xf01ff
push str.TBVKEYMP
push str.TBVKEYMP
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x4048b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x10]
push 0x42a790
push ecx
call fcn.00419bfc
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x38
ret
push 0x14
push str.TBVKEYMP
push edi
call ebx
mov ebx, eax
test ebx, ebx
jne 0x4048e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x10]
push 0x42a790
push edx
call fcn.00419bfc
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x38
ret
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x4049fc
push str.Service_start_pending._n
call fcn.0041a7d0
add esp, 4
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4049fc
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
call edi
mov ebp, dword [esp + 0x40]
mov esi, eax
cmp dword [esp + 0x30], 2
jne 0x40497e
mov eax, 0xcccccccd
mul dword [esp + 0x44]
shr edx, 3
cmp edx, 0x3e8
jae 0x404944
mov edx, 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x2c]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40497e
cmp dword [esp + 0x40], ebp
jbe 0x40496b
call edi
mov ebp, dword [esp + 0x40]
mov esi, eax
jmp 0x404977
call edi
mov ecx, dword [esp + 0x44]
sub eax, esi
cmp eax, ecx
ja 0x40497e
cmp dword [esp + 0x30], 2
je 0x40492b
mov eax, dword [esp + 0x30]
pop ebp
cmp eax, 4
je 0x4049f5
push str._nService_not_started.__n
call fcn.0041a7d0
mov edx, dword [esp + 0x30]
add esp, 4
push edx
push str.__Current_State:__d_n
call fcn.0041a7d0
mov eax, dword [esp + 0x3c]
add esp, 8
push eax
push str.__Exit_Code:__d_n
call fcn.0041a7d0
mov ecx, dword [esp + 0x40]
add esp, 8
push ecx
push str.__Service_Specific_Exit_Code:__d_n
call fcn.0041a7d0
mov edx, dword [esp + 0x44]
add esp, 8
push edx
push str.__Check_Point:__d_n
call fcn.0041a7d0
mov eax, dword [esp + 0x48]
add esp, 8
push eax
push str.__Wait_Hint:__d_n
call fcn.0041a7d0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
add esp, 0x38
ret
Function at 0x404a10
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x108
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x114]
push ebp
mov ebp, dword [esp + 0x114]
push eax
push 0x20019
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404a88
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
xor esi, esi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
jne 0x404a73
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00404a10
add esp, 8
inc esi
jmp 0x404a48
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret