joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47c6c0
Capabilities:
Encode data using base64
Terminate process

Disassembly:
sub esp, 0x118
mov ecx, 0x3f
mov eax, 0x80808080
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x41
mov cl, al
sub cl, 0x41
mov byte [esp + eax + 0x28], cl
inc eax
cmp eax, 0x5a
jle 0x47c6e2
mov eax, 0x61
mov dl, al
sub dl, 0x47
mov byte [esp + eax + 0x28], dl
inc eax
cmp eax, 0x7a
jle 0x47c6f6
mov eax, 0x30
mov cl, al
add cl, 4
mov byte [esp + eax + 0x28], cl
inc eax
cmp eax, 0x39
jle 0x47c70a
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x53], 0x3e
mov byte [esp + 0x57], 0x3f
mov byte [esp + 0x65], 0
mov dword [esp + 0x18], ebp
je 0x47c89d
mov ebx, dword [esp + 0x130]
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 4
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x12c]
xor eax, eax
lea esi, [edx + ecx]
movsx ecx, byte [esi + eax]
mov dl, byte [esp + ecx + 0x28]
test dl, 0x80
jne 0x47c86e
mov byte [esp + eax + 0x20], cl
mov byte [esp + eax + 0x1c], dl
inc eax
cmp eax, 4
jl 0x47c76c
mov esi, dword [esp + 0x138]
mov edx, dword [esp + 0x10]
cmp edx, dword [esi]
jle 0x47c7d6
mov eax, dword [esp + 0x14]
push eax
call fcn.00486fc7
mov ecx, dword [esi]
mov esi, ebx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
mov dword [esp + 0x2c], eax
rep movsb byte es:[edi], byte [esi]
call fcn.00486ede
mov ecx, dword [esp + 0x140]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
add esp, 8
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov dl, ch
mov al, cl
sar dl, 4
shl al, 2
or dl, al
mov eax, dword [esp + 0x14]
mov byte [ebx + ebp], dl
inc ebp
inc eax
mov cl, ch
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x1e]
mov dl, al
inc edi
sar dl, 2
shl cl, 4
or dl, cl
mov ecx, dword [esp + 0x14]
shl al, 6
or al, byte [esp + 0x1f]
mov byte [ebx + ebp], dl
inc ebp
mov edx, edi
inc ecx
inc edx
mov byte [ebx + ebp], al
mov al, byte [esp + 0x22]
inc ebp
inc ecx
inc edx
mov dword [esp + 0x10], edi
cmp al, 0x3d
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
je 0x47c883
mov cl, byte [esp + 0x23]
xor eax, eax
cmp cl, 0x3d
setne al
add eax, 2
cmp eax, 3
jl 0x47c883
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
add edx, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], edx
cmp edx, ecx
jae 0x47c8a4
jmp 0x47c75c
push ecx
push str.Illegal_character__c_in_input._n
call fcn.00488777
add esp, 8
push 1
call fcn.00488d24
mov eax, dword [esp + 0x134]
mov byte [ebx + ebp], 0
pop edi
pop esi
mov dword [eax], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
mov ebx, dword [esp + 0x130]
mov ecx, dword [esp + 0x134]
mov byte [ebx + ebp], 0
pop edi
pop esi
mov dword [ecx], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
Function at 0x4887b8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4887d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00489db9
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4887fb
test byte [esp + 8], 2
je 0x4887fb
call fcn.00489e2c
mov dword [eax], 0xd
call fcn.00489e35
mov dword [eax], 5
jmp 0x4887d4
xor eax, eax
ret

Function at 0x499aac
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x499ae4
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.00497b63
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00497b3b
jmp 0x499af0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49b1a1
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 0x49b1e3
call fcn.004a1113
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49b1e3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49b1da
xor eax, eax
jmp 0x49b1eb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049b1f1
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a1643
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 0x4a1671
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a168f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a15a9
jmp 0x4a168f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a168f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a15a9
test edi, edi
mov eax, edi
jne 0x4a1679
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1004e08
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 4]
xor edi, edi
mov ecx, ebx
mov dword [esi], edi
call fcn.010031de
push 0x101a2cc
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push edi
push 0xa
mov ecx, ebx
call fcn.01003296
cmp eax, edi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jl 0x1004e98
mov ebx, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push edi
push 0x64
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi], eax
jne 0x1004e6b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x1004ea1
call edi
jmp 0x1004ead
push edi
push 1
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x48], eax
je 0x1004e5b
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1004df2
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x4c], eax
je 0x1004e5b
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
call edi
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x1004e98
Function at 0x1005726
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_malloc]
push edi
mov ebx, ecx
mov edi, 0x1000
push edi
mov dword [ebp - 0x18], ebx
call esi
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jne 0x1005756
mov eax, 0x8007000e
jmp 0x10058e2
push eax
mov ecx, ebx
call fcn.01005646
test eax, eax
jge 0x1005769
mov esi, eax
jmp 0x10058d2
lea eax, [ebp - 2]
push eax
push dword [ebp - 0x10]
call fcn.010054cb
test eax, eax
jne 0x1005783
mov esi, 0x80020009
jmp 0x10058d2
push edi
call esi
mov esi, eax
test esi, esi
pop ecx
mov dword [ebp - 8], esi
jne 0x100579a
mov esi, 0x8007000e
jmp 0x10058d2
mov ecx, ebx
call fcn.0100561d
push esi
mov ecx, ebx
call fcn.01005646
test eax, eax
jl 0x10058c6
movzx eax, word [ebp - 2]
sub eax, 8
je 0x10058ab
sub eax, 9
je 0x1005811
dec eax
dec eax
jne 0x10058b7
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.01007910
mov eax, esp
push esi
push dword [ebp - 8]
push eax
call fcn.01004fa8
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.0100518b
jmp 0x10058b7
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 0xc], eax
je 0x1005829
mov esi, 0x80004005
jmp 0x10058c8
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.01007910
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp esp, edi
mov dword [ebp - 4], esp
je 0x100581f
cmp dword [ebp - 0xc], edi
jle 0x1005892
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov eax, dword [ebp - 8]
movsx eax, byte [edi + eax]
push eax
call fcn.01005555
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0xc]
jl 0x100585f
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 4]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x10058b7
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
call fcn.010051ae
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
call fcn.01005646
test eax, eax
jge 0x10058e0
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, esi
jmp 0x10058e2
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100614f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x101a0bc]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x108], esi
call fcn.0100514f
cmp eax, esi
jne 0x10061f0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x10061a7
lea eax, [ebp - 0x104]
push eax
call fcn.0100614f
cmp eax, esi
jne 0x10061ef
lea eax, [ebp - 0x118]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp - 0x108]
mov dword [ebp - 0x10c], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x108]
je 0x1006197
call fcn.010050dc
push dword [ebp - 0x110]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x108]
mov esi, eax
call fcn.010050dc
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
call fcn.01007613
leave
ret 4
Function at 0x1007035
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edi
jne 0x1007050
xor eax, eax
jmp 0x1007076
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.01007910
mov eax, esp
push esi
push dword [ebp + 8]
push eax
call fcn.01004fc6
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
cmp ebx, edi
mov dword [ebp + 8], ebx
jne 0x10070b3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100709e
call esi
mov esi, eax
jmp 0x1007147
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1007147
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x10070d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x10070f6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10070e4
call esi
jmp 0x100713c
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x100713e
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov eax, esi
je 0x1007130
lea edi, [ebx + 1]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.01007910
mov ecx, edi
mov edx, ecx
mov eax, esp
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [eax + ebx], 0
push dword [ebp + 0x14]
lea ecx, [ebp - 8]
push eax
call fcn.01006c50
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x100772b
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10018c8
call fcn.010079dc
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1007768
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1007768
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1007780
cmp eax, 0x20b
je 0x100776d
mov dword [ebp - 0x1c], ebx
jmp 0x1007794
cmp dword [ecx + 0x84], 0xe
jbe 0x1007768
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x100778e
cmp dword [ecx + 0x74], 0xe
jbe 0x1007768
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 [0x101b5c4], 0xffffffff
or dword [0x101b5c8], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x101a368]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x101a364]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x101b5c0], eax
call fcn.01006016
cmp dword [0x101a0c0], ebx
jne 0x10077ef
push fcn.01006016
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010079c3
push 0x101a040
push 0x101a03c
call sub.msvcrt.dll__initterm
mov eax, dword [0x101a360]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x101a35c]
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 0x101a038
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 0x1007885
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1007859
cmp al, 0x22
jne 0x100784b
cmp byte [esi], 0x22
jne 0x1007862
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x100786c
cmp al, 0x20
jbe 0x100785e
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1007890
movzx eax, word [ebp - 0x50]
jmp 0x1007893
cmp byte [esi], 0x20
jbe 0x1007862
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1007885
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 0x10078b0
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10078e5
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01007a17
ret
Function at 0x100c4ca
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor esi, esi
push 0x101a3a0
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
mov dword [0x101a3a0], 0x114
call fcn.0100fb61
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x10020a4
push 0x80000001
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
push 4
pop edi
jne 0x100c55d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x100208c
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
jne 0x100c55d
cmp dword [ebp - 8], edi
jne 0x100c55d
cmp dword [ebp - 0xc], esi
je 0x100c55d
mov ebx, esi
jmp 0x100c5c2
cmp dword [0x101a3b0], 2
jne 0x100c57b
cmp dword [0x101a3a4], edi
jbe 0x100c57b
cmp dword [0x101a3a8], esi
jbe 0x100c57b
push 3
pop edi
jmp 0x100c5e0
push 0x1002080
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, esi
je 0x100c5c2
push 0x1002068
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [0x101a4c4], eax
je 0x100c5c2
lea eax, [ebp - 0x10]
push eax
call fcn.0100c467
test eax, eax
jl 0x100c5bc
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x100c5bc
call fcn.0100c4b2
jmp 0x100c5cd
mov dword [0x101a4c4], esi
xor edi, edi
cmp dword [0x101a3b0], 1
jne 0x100c5d0
xor edi, edi
inc edi
cmp ebx, esi
je 0x100c5e0
cmp edi, 1
je 0x100c5e0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x101a0d8], edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100d3ac
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push 0x1001558
push esi
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x100d402
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
push eax
push dword [ebp + 0x14]
push 3
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp dword [ebp - 4], esi
je 0x100d410
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 0x10
Function at 0x100d41d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0x14]
cmp esi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
je 0x100d440
mov eax, dword [ebp + 0x18]
cmp eax, ebx
jne 0x100d448
push 0x57
pop eax
jmp 0x100d504
push edi
mov dword [eax], ebx
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
je 0x100d482
cmp edi, 2
jne 0x100d4f3
push esi
mov dword [esi], ebx
call fcn.0100d0cf
mov edi, eax
cmp edi, ebx
jne 0x100d4f3
xor edi, edi
jmp 0x100d4ea
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call edi
cmp eax, ebx
je 0x100d4a3
cmp eax, 0x7a
jne 0x100d4dc
push dword [ebp - 8]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [esi], eax
jne 0x100d4b7
push 0xe
pop edi
jmp 0x100d4f3
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call edi
mov edi, eax
cmp edi, ebx
je 0x100d4f3
mov eax, dword [esi]
cmp eax, ebx
je 0x100d4dc
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push esi
mov dword [esi], ebx
call fcn.0100d0cf
mov edi, eax
cmp edi, ebx
jne 0x100d4f3
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
cmp dword [ebp - 4], ebx
je 0x100d501
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x100d9f2
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
je 0x100da0d
cmp dword [ebp + 0xc], esi
jne 0x100da12
push 0x57
pop eax
jmp 0x100da90
push 2
push 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
mov eax, dword [ebp - 0x18]
cmp eax, esi
jbe 0x100da8d
mov esi, dword [sym.imp.ADVAPI32.dll_DeleteAce]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
push edi
lea edi, [eax - 1]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x100da5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x100da85
mov eax, dword [ebp - 8]
mov cl, byte [eax]
test cl, cl
je 0x100da6e
cmp cl, 1
je 0x100da6e
cmp cl, 2
jne 0x100da85
add eax, 8
push eax
push dword [ebp + 0xc]
call ebx
test eax, eax
je 0x100da85
push edi
push dword [ebp + 8]
call esi
and dword [ebp - 4], 0
dec edi
dec dword [ebp - 0xc]
jne 0x100da3e
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
Function at 0x100f5e7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
call fcn.0100f387
test al, al
je 0x100f61d
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x100f738
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
je 0x100f733
mov esi, dword [ebp + 0x14]
cmp esi, ecx
je 0x100f733
mov ebx, dword [ebp + 0x24]
cmp ebx, ecx
jne 0x100f643
cmp dword [ebp + 0x20], ecx
jne 0x100f733
cmp dword [ebp + 0x1c], ecx
mov dword [ebp - 8], ecx
jne 0x100f651
lea eax, [ebp - 8]
mov dword [ebp + 0x1c], eax
cmp ebx, ecx
mov eax, dword [esi]
mov dword [ebp - 4], eax
je 0x100f65c
mov ecx, dword [ebx]
add eax, 3
and eax, 0xfffffffc
mov dword [ebp + 0x24], ecx
call fcn.01007910
mov edi, esp
push ebx
push dword [ebp + 0x20]
lea eax, [ebp - 4]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
mov dword [ebp + 0x14], eax
jne 0x100f72e
mov eax, dword [ebp - 4]
mov ecx, dword [esi]
inc eax
cmp ecx, eax
jae 0x100f69e
mov eax, ecx
push 0xffffffffffffffff
push eax
push edi
push dword [ebp + 0x10]
call fcn.0100daf2
dec eax
cmp dword [ebp + 0x20], 0
mov dword [esi], eax
je 0x100f715
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
test eax, eax
jbe 0x100f72e
cmp eax, 2
jbe 0x100f6cf
cmp eax, 7
jne 0x100f72e
mov dword [ebp + 0x14], 0x80004005
jmp 0x100f72e
mov esi, dword [ebx]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.01007910
mov edx, esp
mov ecx, esi
mov esi, dword [ebp + 0x20]
mov eax, ecx
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebx]
shr eax, 1
push eax
push edx
push dword [ebp + 0x20]
call fcn.0100daf2
shl eax, 1
mov dword [ebx], eax
jne 0x100f72e
mov dword [ebp + 0x14], 0xea
jmp 0x100f72e
test ebx, ebx
je 0x100f72e
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
test eax, eax
jbe 0x100f72e
cmp eax, 2
jbe 0x100f72c
cmp eax, 7
jne 0x100f72e
shl dword [ebx], 1
mov eax, dword [ebp + 0x14]
jmp 0x100f738
mov eax, 0x80004003
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x20

Function at 0x100f747
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
call fcn.0100f387
test al, al
je 0x100f765
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x100f7ab
cmp dword [ebp + 0xc], 0
jne 0x100f772
mov eax, 0x3f2
jmp 0x100f7ab
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01007910
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 0xc]
push edi
call fcn.0100dacc
neg eax
sbb eax, eax
and eax, edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 8