joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10045600
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1016d8d0
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x1017455c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov dword [ebp - 0x428], ebx
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov dword [ebp - 4], 0
test ebx, ebx
je 0x100457ab
test edi, edi
je 0x100457b4
test eax, eax
je 0x100457ab
mov esi, dword [eax]
mov dword [ebp - 0x430], esi
cmp esi, 0xffffffff
je 0x100457be
xor eax, eax
mov word [edi], ax
mov dword [ebp - 0x434], 0x2c
jmp 0x10045690
xor edx, edx
mov dword [ebp - 0x440], edx
movzx ecx, word [ebx + esi*2]
movzx eax, cx
mov dword [ebp - 0x43c], eax
test ax, ax
je 0x10045734
mov ebx, 0x2c
cmp ax, bx
je 0x1004572e
cmp ax, word [ebp - 0x434]
je 0x1004572e
mov word [edi + edx*2], cx
inc edx
mov dword [ebp - 0x440], edx
inc esi
mov dword [ebp - 0x430], esi
mov ecx, dword [ebp - 0x428]
movzx ecx, word [ecx + esi*2]
movzx eax, cx
mov dword [ebp - 0x43c], eax
cmp ax, bx
je 0x100456f4
cmp ax, word [ebp - 0x434]
jne 0x10045723
mov ebx, dword [ebp - 0x428]
cmp word [ebx + esi*2 - 2], 0x7b
jne 0x100456a5
cmp word [ebx + esi*2 + 2], 0x7d
jne 0x100456a5
mov word [edi + edx*2 - 2], ax
xor eax, eax
mov word [edi + edx*2], ax
add esi, 2
mov dword [ebp - 0x430], esi
jmp 0x10045698
mov ebx, dword [ebp - 0x428]
jmp 0x100456a5
mov ebx, dword [ebp - 0x428]
mov ecx, 0x2c
cmp ax, cx
je 0x10045747
cmp ax, word [ebp - 0x434]
jne 0x1004574e
inc esi
mov dword [ebp - 0x430], esi
xor ecx, ecx
mov word [edi + edx*2], cx
push edi
call fcn.10045390
add esp, 4
mov dword [ebp - 0x438], eax
cmp word [edi], 0
jne 0x100457a1
cmp word [ebx + esi*2], 0
je 0x1004577d
mov ecx, 1
cmp ecx, ecx
je 0x10045690
cmp word [edi], 0
jne 0x100457a1
cmp word [ebx + esi*2], 0
je 0x10045793
mov ecx, 1
test ecx, ecx
je 0x100457a1
mov edx, dword [ebp - 0x42c]
mov dword [edx], 0xffffffff
jmp 0x10045819
mov ecx, dword [ebp - 0x42c]
mov dword [ecx], esi
jmp 0x10045821
test edi, edi
je 0x100457b4
xor edx, edx
mov word [edi], dx
test eax, eax
je 0x100457be
mov dword [eax], 0xffffffff
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x10045828
xor eax, eax
mov dword [ebp - 0x438], eax
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1010d699
mov esp, ebp
pop ebp
ret
Function at 0x100462c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, ecx
mov ebx, 1
test edi, edi
je 0x100463fc
test ebp, ebp
je 0x100463fc
cmp byte [edi], 0
je 0x100463fc
push 0x101526b0
push edi
call fcn.1010ebfe
mov esi, eax
add esp, 8
test esi, esi
jne 0x10046322
push 0x1014a614
push edi
call fcn.1010ebfe
mov esi, eax
add esp, 8
test esi, esi
je 0x100463fc
push 2
push 0
push esi
call fcn.1010f167
add esp, 0xc
push esi
call fcn.1010f06f
add esp, 4
test eax, eax
je 0x100463cf
push 2
push 0xffffffffffffffff
push esi
xor edi, edi
call fcn.1010f167
add esp, 0xc
push esi
push 1
lea eax, [esp + 0x1b]
push 1
push eax
call fcn.1010eeb5
add esp, 0x10
test eax, eax
jne 0x10046397
push 2
push 0xfffffffffffffffe
push esi
call fcn.1010f167
add esp, 0xc
test eax, eax
jne 0x10046391
push esi
push 1
lea ecx, [esp + 0x1b]
push 1
push ecx
call fcn.1010eeb5
add esp, 0x10
cmp byte [esp + 0x13], 0xa
je 0x10046391
mov edi, ebx
push 2
push 0xffffffffffffffff
jmp 0x100463a4
cmp byte [esp + 0x13], 0xa
je 0x100463a0
mov edi, ebx
push 2
push 0
push esi
call fcn.1010f167
add esp, 0xc
test edi, edi
je 0x100463cf
push 0x10149d6c
push esi
call fcn.10110652
add esp, 8
mov eax, 0x10149d6c
mov ecx, ebp
call fcn.10031890
test eax, eax
je 0x100463de
push ebp
push 0x1013fb04
push esi
call fcn.10110652
add esp, 0xc
push esi
call fcn.1010f263
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1010d699
add esp, 8
ret
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.1010d699
add esp, 8
ret
Function at 0x10046420
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 8], 0
test esi, esi
je 0x10046572
test eax, eax
je 0x10046572
push ebp
push 0x101526b4
push eax
call fcn.1010ebfe
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x10046467
push 0x101526b0
push esi
call fcn.1010ebfe
mov esi, eax
add esp, 8
test esi, esi
jne 0x10046472
pop ebp
mov eax, 1
pop esi
add esp, 8
ret
push edi
push 2
push 0
push esi
call fcn.1010f167
push esi
call fcn.1010f06f
add esp, 0x10
test eax, eax
je 0x10046510
push 2
push 0xffffffffffffffff
push esi
xor edi, edi
call fcn.1010f167
push esi
push 1
lea eax, [esp + 0x23]
push 1
push eax
call fcn.1010eeb5
add esp, 0x1c
test eax, eax
jne 0x100464e5
push 2
push 0xfffffffffffffffe
push esi
call fcn.1010f167
add esp, 0xc
test eax, eax
jne 0x100464df
push esi
push 1
lea ecx, [esp + 0x17]
push 1
push ecx
call fcn.1010eeb5
add esp, 0x10
cmp byte [esp + 0xf], 0xa
je 0x100464df
mov edi, 1
push 2
push 0xffffffffffffffff
jmp 0x100464f5
cmp byte [esp + 0xf], 0xa
je 0x100464f1
mov edi, 1
push 2
push 0
push esi
call fcn.1010f167
add esp, 0xc
test edi, edi
je 0x10046510
push 0x10149d6c
push esi
call fcn.10110652
add esp, 8
push ebx
lea edi, [esp + 0x14]
call fcn.10045fe0
mov edi, dword [esp + 0x14]
push ebp
mov ebx, eax
push ebx
push 1
push edi
call fcn.1010eeb5
add esp, 0x10
test eax, eax
je 0x1004654c
push esi
push eax
push 1
push edi
call fcn.10110b60
push ebp
push ebx
push 1
push edi
call fcn.1010eeb5
add esp, 0x20
test eax, eax
jne 0x10046531
pop ebx
test edi, edi
je 0x1004655a
push edi
call fcn.1010dc10
add esp, 4
push esi
call fcn.1010f263
push ebp
call fcn.1010f263
add esp, 8
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 8
ret
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x10046870
Capabilities:
Delete directory
Set file attributes

Disassembly:
xor eax, eax
test esi, esi
je 0x1004688d
cmp byte [esi], al
je 0x1004688d
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
ret

Function at 0x10046890
Capabilities:
Delete directory
Set file attributes

Disassembly:
xor eax, eax
test esi, esi
je 0x100468cc
cmp byte [esi], al
je 0x100468cc
push edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edi, eax
test edi, edi
je 0x100468cb
test ebx, ebx
je 0x100468cb
push esi
push ebx
push str._MRX__FOLDER___u___s
push 0
call fcn.10053700
add esp, 0x10
mov eax, edi
pop edi
ret
Function at 0x10047600
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push ebx
push ebp
push 0
push eax
push ecx
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
test esi, esi
jne 0x10047672
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x10047642
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10047670
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push edi
push ebx
push ebp
push 0
push eax
push ecx
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop esi
pop ebp
ret
mov eax, esi
pop esi
pop ebp
ret

Function at 0x10047680
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 8]
push esi
push edi
push ebx
push ebp
push 0
push eax
push 0
push 0
push 0
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov esi, eax
test esi, esi
jne 0x100476f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x100476c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100476f4
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push edi
push ebx
push ebp
push 0
push eax
push 0
push 0
push 0
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
pop esi
pop ebp
ret
mov eax, esi
pop esi
pop ebp
ret
Function at 0x100480c0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x64
push 0x3c
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esp + 0x2c], 0
call fcn.10116880
mov eax, dword [0x1019e6ac]
add esp, 0xc
test eax, eax
jbe 0x100480ed
test esi, esi
je 0x1004817a
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x10048131
test esi, esi
je 0x10048119
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
shrd edx, eax, 0xa
shr eax, 0xa
mov dword [esi], edx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
shrd eax, ecx, 0xa
shr ecx, 0xa
mov dword [0x1019e6ac], eax
add esp, 0x64
ret
xor eax, eax
lea edx, [esp]
push edx
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
test esi, esi
je 0x1004816e
mov eax, dword [esp + 0xc]
shr eax, 0xa
mov dword [esi], eax
mov eax, dword [esp + 8]
shr eax, 0xa
mov dword [0x1019e6ac], eax
add esp, 0x64
ret

Function at 0x10048180
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
pop esi
je 0x100481b4
lea ecx, [esp]
push ecx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x100481ee
mov eax, dword [esp + 8]
mov ecx, dword [esp]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, 1
jne 0x100481e4
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret

Function at 0x10048200
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.10116880
add esp, 0xc
push 0x1014a848
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x104
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [esp]
test al, al
je 0x10048259
cmp byte [esp + 1], 0x3a
jne 0x10048259
mov byte [esi], al
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1010d699
add esp, 0x108
ret
Function at 0x10048270
Capabilities:
Create directory

Disassembly:
sub esp, 0x410
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
push edi
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x19]
push ebx
push eax
mov edi, ecx
mov byte [esp + 0x20], bl
call fcn.10116880
xor eax, eax
add esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
cmp esi, ebx
je 0x10048356
cmp edi, ebx
je 0x10048356
cmp byte [esi], bl
jne 0x100482cb
cmp byte [edi], bl
je 0x10048356
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 1
mov byte [esp + 0x1c], bl
call edi
cmp byte [esi], bl
je 0x10048306
lea ecx, [esp + 0x14]
call fcn.10049c40
push esi
lea edx, [esp + 0x18]
push edx
call edi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 1
jne 0x10048332
pop edi
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.1010d699
add esp, 0x410
ret
lea edx, [esp + 0x14]
push edx
call fcn.1005a190
add esp, 4
pop edi
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.1010d699
add esp, 0x410
ret
mov ecx, dword [esp + 0x414]
pop edi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1010d699
add esp, 0x410
ret
Function at 0x10048370
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x258
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x254], eax
push esi
push edi
push 0x103
lea eax, [esp + 0x155]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x14], 0
mov byte [esp + 0x15c], 0
call fcn.10116880
add esp, 0xc
test ebx, ebx
je 0x10048521
test esi, esi
je 0x10048521
cmp byte [ebx], 0
je 0x10048521
cmp byte [esi], 0
je 0x10048521
push ebx
lea ecx, [esp + 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x150]
call fcn.10049c40
push esi
lea edx, [esp + 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
lea eax, [esp + 0x154]
push eax
call sym.EncDec.dll_IsItEnvStringType
lea esi, [esp + 0x10]
lea ecx, [esp + 0x150]
mov edi, 1
call fcn.10033b80
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x10048509
test edi, edi
je 0x100484fe
test byte [esp + 0x10], 0x10
jne 0x100484ea
push ebx
lea ecx, [esp + 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x150]
call fcn.10049c40
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, 1
push esi
lea ecx, [esp + 0x154]
push ecx
call sym.EncDec.dll_IsItEnvStringType
test byte [esp + 0x10], 7
je 0x100484a0
push 0x80
lea edx, [esp + 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea eax, [esp + 0x154]
call fcn.1004b7d0
add esp, 4
test eax, eax
jne 0x100484e6
cmp dword [ebp + 8], esi
jne 0x100484ea
lea edi, [esp + 0x150]
call fcn.10046790
test eax, eax
jne 0x100484ea
push eax
mov ecx, edi
call fcn.100423c0
mov ecx, dword [esp + 0xc]
lea esi, [esp + 0x10]
call fcn.10033de0
mov edi, eax
jmp 0x10048432
mov dword [esp + 8], esi
mov ecx, dword [esp + 0xc]
lea esi, [esp + 0x10]
call fcn.10033de0
mov edi, eax
jmp 0x10048432
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
pop edi
pop esi
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.1010d699
mov esp, ebp
pop ebp
ret
Function at 0x10048980
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x113c
call fcn.10126240
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x1138], eax
push ebx
mov ebx, dword [esp + 0x114c]
push esi
mov esi, dword [esp + 0x1148]
push edi
mov edi, dword [esp + 0x1150]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], edi
test edi, edi
je 0x10048b37
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x10048b37
push ebp
lea eax, [esp + 0x10]
push eax
push 0x10008
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebp, eax
push ebp
call esi
test ebp, ebp
jne 0x10048aed
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x138]
push edx
push 0
push eax
mov byte [esp + 0x144], 0
mov dword [esp + 0x38], 0x1024
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebp, eax
cmp ebp, 0x103
je 0x10048a5c
test ebp, ebp
jne 0x10048ac7
mov edx, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0x128]
push ecx
push edx
call fcn.10048980
add esp, 0xc
mov ebp, eax
push ebp
call esi
test ebp, ebp
je 0x100489f7
jmp 0x10048ac7
test ebx, ebx
je 0x10048a6d
push 0
push edi
push str.Deleting_Registry_Hive__s
call ebx
add esp, 0xc
mov eax, dword [esp + 0x1c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebp, eax
push ebp
call esi
test ebp, ebp
je 0x10048ac7
test ebx, ebx
je 0x10048ac7
push 0x103
lea ecx, [esp + 0x25]
push 0
push ecx
call fcn.10116880
add esp, 0xc
mov byte [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x103
mov edi, eax
lea esi, [esp + 0x24]
call fcn.10049ce0
mov eax, dword [esp + 0x18]
mov edx, esi
push edx
push eax
push str.ERROR____Unable_to_delete_the_key__s__Reason:__s
call ebx
add esp, 0x10
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1138]
xor ecx, esp
call fcn.1010d699
add esp, 0x113c
ret
push ebp
call esi
test ebx, ebx
je 0x10048ad2
push 0x103
lea edx, [esp + 0x25]
push 0
push edx
call fcn.10116880
add esp, 0xc
mov byte [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x103
mov edi, eax
lea esi, [esp + 0x24]
call fcn.10049ce0
mov ecx, dword [esp + 0x18]
mov eax, esi
push eax
push ecx
push str.MyRegOpenKey_fails_on_key__s____Reason__s
call ebx
add esp, 0x10
jmp 0x10048ad2
mov ecx, dword [esp + 0x1144]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 0x3f2
call fcn.1010d699
add esp, 0x113c
ret

Function at 0x10048b60
Capabilities:
Check if file exists

Disassembly:
push esi
call fcn.10031720
cmp al, 1
je 0x10048b88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10048b8e
push esi
call fcn.1006ad20
cmp eax, 1
jne 0x10048b8e
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
ret
xor eax, eax
ret
Function at 0x10048ba0
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, eax
test edi, edi
je 0x10048c2d
cmp byte [edi], 0
je 0x10048c2d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + edi - 1], 0x5c
je 0x10048c2d
cmp dword [0x1017e8ec], 0xffffffff
jne 0x10048bea
push ebx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x1017e8ec
xor ebx, ebx
xor edx, edx
xor ecx, ecx
call fcn.10050110
add esp, 0x20
pop ebx
cmp dword [0x1017e8ec], 0
jne 0x10048c1f
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
cmp esi, 2
jne 0x10048c0f
push edi
call fcn.1006ad20
cmp eax, 1
jne 0x10048c0f
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test esi, esi
sete al
pop esi
ret
push 0
push edi
push esi
call fcn.10048980
add esp, 0xc
jmp 0x10048bfb
xor eax, eax
pop esi
ret
Function at 0x10048e10
Capabilities:
Enumerate services

Disassembly:
sub esp, 0x138
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x134], eax
push ebp
mov ebp, dword [esp + 0x140]
push esi
mov esi, ecx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
je 0x10048e54
mov eax, 1
jmp 0x10048f8a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xea
je 0x10048e8d
test ebx, ebx
je 0x10048ed1
call edi
push 0x100
mov edi, eax
lea esi, [esp + 0x44]
call fcn.10049ce0
push eax
push ebp
push str.EnumDependentServices_failed:__s___s___n
call ebx
add esp, 0x10
xor eax, eax
jmp 0x10048f89
mov edx, dword [esp + 0xc]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
jne 0x10048ed8
test ebx, ebx
je 0x10048ed1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100
mov edi, eax
lea esi, [esp + 0x44]
call fcn.10049ce0
push eax
push ebp
push str.HeapAlloc_failed:__s___s___n
call ebx
add esp, 0x10
xor eax, eax
jmp 0x10048f89
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push edx
push edi
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
jne 0x10048f33
test ebx, ebx
je 0x10048f1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100
mov edi, eax
lea esi, [esp + 0x44]
call fcn.10049ce0
push eax
push ebp
push str.EnumDependentServices_failed:__s___s___n
call ebx
mov edi, dword [esp + 0x28]
add esp, 0x10
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x10048f89
cmp dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
jbe 0x10048f74
mov ebp, edi
push 1
mov ecx, 9
mov esi, ebp
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x20]
push ebx
push eax
call fcn.10048fb0
mov eax, dword [esp + 0x14]
inc eax
add ebp, 0x24
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x10]
jb 0x10048f44
mov edi, dword [esp + 0x18]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 1
pop edi
mov ecx, dword [esp + 0x13c]
pop esi
pop ebp
xor ecx, esp
call fcn.1010d699
add esp, 0x138
ret 4
Function at 0x10049240
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x134
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push ebp
push esi
push edi
push 0xff
lea eax, [esp + 0x3d]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x44], 0
call fcn.10116880
add esp, 0xc
xor edi, edi
mov ecx, esi
call fcn.1004b160
test eax, eax
jne 0x10049287
xor eax, eax
jmp 0x10049360
mov ecx, esi
call fcn.1003a330
cmp eax, 1
jle 0x10049280
push 1
push 0
push 0
mov ebp, 0x12c
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x1004935c
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x10049355
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x1c]
push ecx
push esi
call ebx
cmp eax, 1
jne 0x100492f8
mov eax, dword [esp + 0x20]
cmp eax, 2
je 0x10049303
cmp eax, 3
je 0x10049341
cmp eax, 5
je 0x10049341
cmp eax, 6
je 0x10049341
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
test eax, eax
je 0x10049337
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x20]
cmp eax, 2
jne 0x1004933d
push 0x64
call edi
sub ebp, 1
je 0x10049333
lea eax, [esp + 0x1c]
push eax
push esi
call ebx
test eax, eax
jne 0x10049315
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
jmp 0x10049341
mov edi, dword [esp + 0x18]
cmp eax, 4
jne 0x1004934e
mov dword [esp + 0x14], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1010d699
add esp, 0x134
ret