joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4964a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4e216c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xa
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x66796a6e
push eax
push 0x51a060
mov dword [ebp - 0xc], 0x66715073
mov word [ebp - 8], 0x6f
call fcn.004976b0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 0x51a060
call fcn.0047592d
mov esp, ebp
pop ebp
ret

Function at 0x4965a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4e216c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xd
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x666e6a75
push eax
push 0x51a0a0
mov dword [ebp - 0x10], 0x46756654
mov dword [ebp - 0xc], 0x756f6677
mov byte [ebp - 8], 0
call fcn.004976b0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 0x51a0a0
call fcn.0047592d
mov esp, ebp
pop ebp
ret

Function at 0x496640
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4e216c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xb
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x66776278
push eax
push 0x51a054
mov dword [ebp - 0xc], 0x71506f4a
mov word [ebp - 8], 0x6f66
mov byte [ebp - 6], 0
call fcn.004976b0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 0x51a054
call fcn.0047592d
mov esp, ebp
pop ebp
ret

Function at 0x4966e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4e216c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xb
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x71746f78
push eax
push 0x519f3c
mov dword [ebp - 0xc], 0x756f6a73
mov word [ebp - 8], 0x4267
mov byte [ebp - 6], 0
call fcn.004976b0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 0x519f3c
call fcn.0047592d
mov esp, ebp
pop ebp
ret

Function at 0x496730
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4e216c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xb
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x71746f78
push eax
push 0x519f48
mov dword [ebp - 0xc], 0x756f6a73
mov word [ebp - 8], 0x5867
mov byte [ebp - 6], 0
call fcn.004976b0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 0x519f48
call fcn.0047592d
mov esp, ebp
pop ebp
ret

Function at 0x496780
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4e216c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xa
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x73717478
push eax
push 0x51b108
mov dword [ebp - 0xc], 0x67756f6a
mov word [ebp - 8], 0x42
call fcn.004976b0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 0x51b108
call fcn.0047592d
mov esp, ebp
pop ebp
ret
Function at 0x4967d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4e216c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xa
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x73717478
push eax
push 0x51b0f0
mov dword [ebp - 0xc], 0x67756f6a
mov word [ebp - 8], 0x58
call fcn.004976b0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 0x51b0f0
call fcn.0047592d
mov esp, ebp
pop ebp
ret

Function at 0x4b4844
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b4504

Function at 0x4b4a74
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b4979
Function at 0x1004b4a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
je 0x1004c22
cmp byte [esi], 0
je 0x1004c22
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov dword [ebp + 0x10], eax
call edi
push esi
mov dword [ebp - 4], eax
call edi
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 0x1f]
push eax
push 0x40
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1004c2d
push dword [ebp + 0x10]
xor eax, eax
inc eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi], 0xdde1dde1
mov eax, dword [ebx + 0x20]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x24]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [esi + 0x14], eax
lea eax, [esi + 0x18]
push eax
call ebx
push dword [ebp + 0x10]
call edi
push dword [ebp + 0xc]
lea eax, [esi + eax + 0x19]
push eax
mov dword [ebp + 0x10], eax
call ebx
push dword [ebp + 0xc]
call edi
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx + 1], 0
mov eax, dword [ebp - 4]
push dword [0x1018058]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 8]
push 0x4a
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x101a4e0]
jmp 0x1004c30
push 0
push 0x1d
call fcn.0100b027
pop ecx
pop ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1004c3c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
push esi
push edi
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, 0x1e
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x1004c70
or eax, 0xffffffff
jmp 0x1004cdb
push dword [ebp + 0xc]
mov dword [esi], 0xdde1dde1
mov dword [esi + 4], 1
mov dword [esi + 8], 2
mov eax, dword [ebx + 0x20]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x24]
lea ebx, [esi + 0x18]
push ebx
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [eax + ebx + 1], 0
push dword [0x1018058]
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 8]
push 0x4a
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x101a4e0]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1008b93
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
call fcn.01009127
push 0x101a4a8
xor esi, esi
push esi
push esi
push 0x100a51d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x101a4ac], eax
je 0x1008bc6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10013ec
call fcn.0100b193
pop ecx
pop ecx
push eax
push 0x43
call fcn.0100b027
add esp, 0xc
xor eax, eax
pop esi
ret

Function at 0x1008bee
Capabilities:
Create thread

Disassembly:
push 0x101a49c
push 0
push dword [0x101a038]
push 0x10142cb
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x101a4a4], eax
je 0x1008c1e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
ret
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10013ec
call fcn.0100b193
pop ecx
pop ecx
push eax
push 0x44
call fcn.0100b027
add esp, 0xc
xor eax, eax
ret
Function at 0x100a0ac
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x20
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x100a0dc
push 0xf0026
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenWindowStationW]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x100a0e3
xor eax, eax
jmp 0x100a1cd
push edi
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
push dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_SetProcessWindowStation]
mov dword [ebp + 8], eax
call edi
push 0xf0087
push ebx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_OpenDesktopW]
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x100a124
push dword [ebp + 8]
call edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_CloseWindowStation]
xor eax, eax
jmp 0x100a1cc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
push dword [esi + 8]
mov ebx, dword [sym.imp.USER32.dll_SetThreadDesktop]
mov dword [ebp + 0xc], eax
call ebx
push 0x1001614
push 0x1001938
call dword [sym.imp.USER32.dll_FindWindowA]
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call ebx
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 4]
xor edi, edi
cmp eax, edi
jne 0x100a1cc
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x14], eax
lea eax, [esi + 0x18]
push eax
push edi
push esi
push fcn.01009e24
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
jne 0x100a1b0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_CloseWindowStation]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_CloseDesktop]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100a11d
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push 0xffffffffffffffff
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x14]
call edi
mov eax, dword [esi + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100acea
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10019b8
call fcn.0100aeb8
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x100ad27
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100ad27
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100ad3f
cmp eax, 0x20b
je 0x100ad2c
mov dword [ebp - 0x1c], ebx
jmp 0x100ad53
cmp dword [ecx + 0x84], 0xe
jbe 0x100ad27
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x100ad4d
cmp dword [ecx + 0x74], 0xe
jbe 0x100ad27
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x101a4f4], 0xffffffff
or dword [0x101a4f8], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1018528]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1018524]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x101a4fc], eax
call fcn.0100af44
cmp dword [0x1018148], ebx
jne 0x100adae
push fcn.0100af44
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100af2d
push 0x1018010
push 0x101800c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1018520]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x101851c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1018008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x100ae44
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x100ae18
cmp al, 0x22
jne 0x100ae0a
cmp byte [esi], 0x22
jne 0x100ae21
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x100ae2b
cmp al, 0x20
jbe 0x100ae1d
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x100ae4f
movzx eax, word [ebp - 0x50]
jmp 0x100ae52
cmp byte [esi], 0x20
jbe 0x100ae21
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100ae44
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100ae6f
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100aea4
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100aef3
ret

Function at 0x100b265
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019d4
push str.netdde.log
call dword [sym.imp.msvcrt.dll_fopen]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x100b297
push esi
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_fputs]
push esi
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 0xc
cmp dword [0x101913c], 0
pop esi
je 0x100b2a8
pop ebp
jmp dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebp
ret 4
Function at 0x100b3f9
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x1018144]
or dword [ebp - 0xa08], 0xffffffff
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 0x1001a14
push 0x1001a0c
lea eax, [ebp - 0xa04]
push 0x400
push eax
call fcn.010050d2
add esp, 0x14
push 0x200
lea eax, [ebp - 0x604]
push eax
push 0xffffffffffffffff
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 1
push 0
call esi
mov edi, eax
xor eax, eax
cmp edi, eax
je 0x100b4e5
lea ecx, [ebp - 0xa10]
push ecx
lea ecx, [ebp - 0xa0c]
push ecx
push eax
push 0xf003f
push eax
push 0x1001a3c
push eax
lea eax, [ebp - 0xa04]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov dword [ebp - 0xa08], eax
jne 0x100b4e5
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0xffffffffffffffff
push ebx
push 1
push 0
call esi
lea eax, [edi + edi]
push eax
lea eax, [ebp - 0x604]
push eax
push 1
push 0
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0xa0c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xa0c]
mov dword [ebp - 0xa08], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0xa08], eax
pop edi
pop esi
sete al
pop ebx
call fcn.0100abd2
leave
ret 0x10

Function at 0x100b504
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x1018144]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 0x1001a14
push 0x1001a0c
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.010050d2
add esp, 0x14
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x408]
push eax
push 0
push 0xf003f
push 0
push 0x1001a3c
push 0
lea eax, [ebp - 0x404]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x100b598
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push ebx
push esi
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x408]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
test ebx, ebx
pop esi
sete al
pop ebx
call fcn.0100abd2
leave
ret 0x10
Function at 0x100b5b2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1018144]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 0x1001a14
push 0x1001a0c
lea eax, [ebp - 0x404]
xor ebx, ebx
push 0x400
push eax
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x414], 4
mov dword [ebp - 0x410], ebx
call fcn.010050d2
add esp, 0x14
lea eax, [ebp - 0x40c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x404]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100b67b
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x410]
push eax
push ebx
push esi
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100b661
cmp dword [ebp - 0x410], 4
jne 0x100b661
mov dword [ebp - 0x408], 1
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x408], ebx
mov eax, dword [ebp - 0x418]
jne 0x100b67e
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0100abd2
leave
ret 0x10

Function at 0x100b691
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa1c
mov eax, dword [0x1018144]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push 0x1001a14
mov dword [ebp - 0xa18], eax
mov eax, 0x400
push 0x1001a0c
push eax
mov dword [ebp - 0xa08], eax
lea eax, [ebp - 0xa04]
xor ebx, ebx
push eax
mov dword [ebp - 0xa0c], ebx
mov dword [ebp - 0xa10], ebx
call fcn.010050d2
add esp, 0x14
lea eax, [ebp - 0xa14]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0xa04]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100b7af
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0xffffffffffffffff
push edi
xor edi, edi
inc edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0xa08]
push eax
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0xa10]
push eax
push ebx
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0xa14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100b79b
cmp dword [ebp - 0xa10], edi
jne 0x100b79b
lea eax, [ebp - 0xa1c]
push eax
mov eax, dword [ebp - 0xa08]
push ebx
push dword [ebp + 0x18]
shr eax, 1
push esi
push eax
lea eax, [ebp - 0x604]
push eax
push 0x200
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, ebx
mov dword [ebp - 0xa08], eax
je 0x100b79b
mov dword [ebp - 0xa0c], edi
push dword [ebp - 0xa14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa0c], ebx
jne 0x100b7c2
push dword [ebp + 0x18]
push dword [ebp - 0xa18]
push esi
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0xc
mov eax, dword [ebp + 0x18]
cmp eax, ebx
jbe 0x100b7cd
mov byte [esi + eax - 1], bl
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100abd2
leave
ret 0x18
Function at 0x100b7e8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0100b5b2

Function at 0x1011760
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1018144]
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 4], eax
je 0x1011791
push ebx
call fcn.010111ae
test eax, eax
jne 0x101178c
push 5
jmp 0x1011793
cmp dword [ebp + 0xc], edi
je 0x1011799
push 6
pop eax
jmp 0x1011894
lea eax, [ebp - 0x404]
push eax
push 0x200
push ebx
call fcn.01014365
cmp eax, edi
jne 0x1011894
push esi
lea eax, [ebp - 0x40c]
push eax
push 0x3001f
push edi
lea eax, [ebp - 0x404]
push eax
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10117e0
xor eax, eax
inc eax
jmp 0x1011893
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x40c]
call fcn.010145e8
push dword [ebp - 0x40c]
mov dword [ebp - 0x410], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x410], edi
jne 0x1011818
push 0x17
pop eax
jmp 0x1011893
push edi
push 1
push edi
push 2
push 0x10000
push dword [ebp - 0x408]
push ebx
push 1
call fcn.010110ff
push dword [ebp - 0x408]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp ebx, edi
je 0x1011847
mov eax, ebx
jmp 0x1011893
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
cmp ebx, edi
je 0x1011891
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0x1001d88
push esi
call fcn.0100b1db
pop ecx
pop ecx
push eax
push ebx
push esi
call fcn.0100b1db
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x404]
push eax
push 0x191
call fcn.0100b082
add esp, 0x14
jmp 0x1011813
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0100abd2
leave
ret 8
Function at 0x1011ac4
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1018144]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
mov dword [ebp - 0x414], eax
je 0x1011cb4
push ebx
push dword [ebp + 0x14]
push eax
call sub.ntdll.dll_RtlValidRelativeSecurityDescriptor
test al, al
je 0x1011cb4
test esi, esi
jne 0x1011b0f
push 6
jmp 0x1011cb6
push esi
call fcn.010111ae
test eax, eax
jne 0x1011b20
push 5
jmp 0x1011cb6
lea eax, [ebp - 0x404]
push eax
push 0x200
push esi
call fcn.01014365
test eax, eax
jne 0x1011cb7
lea eax, [ebp - 0x40c]
push eax
push 0x2001f
push 0
lea eax, [ebp - 0x404]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1011b66
xor eax, eax
inc eax
jmp 0x1011cb7
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x40c]
call fcn.010145e8
test eax, eax
jne 0x1011b8b
push 0x17
pop esi
jmp 0x1011c3e
test byte [ebp + 0xc], 4
je 0x1011b9a
mov eax, 0x40000
mov edi, eax
mov ebx, eax
test byte [ebp + 0xc], 3
je 0x1011ba9
mov eax, 0x80000
or edi, eax
or ebx, eax
test byte [ebp + 0xc], 8
je 0x1011bb8
mov eax, 0x1000000
or edi, eax
or ebx, eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0
push ebx
push edi
push dword [ebp - 0x408]
push esi
push 1
call fcn.010110ff
test eax, eax
je 0x1011bdb
mov esi, eax
jmp 0x1011c32
push dword [ebp - 0x410]
lea eax, [ebp - 0x408]
push 0x10182ec
push eax
push dword [ebp - 0x414]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_SetPrivateObjectSecurity]
push dword [ebp - 0x410]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x1011c11
inc esi
jmp 0x1011c32
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
mov esi, eax
lea eax, [ebp - 0x41c]
push eax
call fcn.01014550
test eax, eax
jne 0x1011c4e
push 0x17
pop esi
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1011cb7
cmp dword [ebp - 0x408], 0
je 0x1011ca4
push esi
push dword [ebp - 0x408]
push 3
push 0
push 0x1001da4
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.ADVAPI32.dll_DestroyPrivateObjectSecurity]
test esi, esi
jne 0x1011ca4
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x40c]
call fcn.01014518
neg eax
sbb eax, eax
and eax, 0xffffffe9
add eax, 0x17
jmp 0x1011cb7
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x17
jmp 0x1011cb6
push 0x1a
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100abd2
leave
ret 0x10