joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015f3
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
mov eax, dword [0x4110fc]
xor eax, esp
mov dword [esp + 0x150], eax
and dword [esp], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x104
push esi
call fcn.00402d80
pop ecx
push esi
mov edi, eax
call fcn.00402d80
pop ecx
push ebx
push str._s.
push edi
mov dword [esp + 0x20], eax
call fcn.00401cb9
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x4016e1
cmp byte [esp + 0x44], 0x2e
jne 0x401674
cmp byte [esp + 0x45], 0
je 0x4016bb
cmp byte [esp + 0x45], 0x2e
jne 0x401674
cmp byte [esp + 0x46], 0
je 0x4016bb
test byte [esp + 0x18], 0x10
je 0x4016bb
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x44]
push eax
push ebx
push str._s_s_
push esi
push edi
call fcn.00401d34
add esp, 0x14
push edi
call fcn.00401c0b
test eax, eax
pop ecx
je 0x4016ae
push edi
call fcn.004013e7
test eax, eax
pop ecx
je 0x4016ae
inc dword [esp + 0xc]
push 1
push 0
push edi
call fcn.004015f3
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4016d7
mov eax, dword [esp + 0xc]
cmp eax, dword [ebp + 0x10]
jl 0x401658
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x15c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401caa
mov esp, ebp
pop ebp
ret

Function at 0x401770
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
lea eax, [esi + 0x43]
push eax
lea eax, [ebp - 0xc]
push str._c:_
push eax
call fcn.00401cb9
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
je 0x4017af
inc esi
cmp esi, 0xd
jl 0x401783
jmp 0x4017bf
push 4
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.004015f3
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401caa
leave
ret
Function at 0x4017cc
Capabilities:
Get disk information
Write file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x4110fc]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x10]
add eax, 0x43
push eax
lea eax, [esp + 0x20]
push str._c:_
push eax
call fcn.00401cb9
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x4018c2
push 0x104
call fcn.00402d80
mov esi, eax
lea eax, [esp + 0x20]
push eax
push str._swindows_
push esi
call fcn.00401cb9
push esi
call fcn.00401ab2
add esp, 0x14
test eax, eax
je 0x4018c2
push esi
push str._sWallPapers.jpg
push esi
call fcn.00401cb9
add esp, 0xc
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push esi
call ebx
cmp eax, 0xffffffff
je 0x401881
push eax
call ebp
push esi
call fcn.004018e8
pop ecx
mov dword [esp + 0x14], 1
jmp 0x4018c2
push edi
push edi
push 1
push edi
push 2
push 0x40000000
push esi
call ebx
push 0
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push 0x21e7a
push 0x411fa0
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4018c0
push edi
call ebp
push esi
call fcn.004018e8
pop ecx
mov dword [esp + 0x14], 1
xor edi, edi
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xd
jl 0x4017f4
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401caa
add esp, 0x18
ret

Function at 0x401973
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x4110fc]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
xor edi, edi
mov dword [esp + 8], edi
lea eax, [edi + 0x43]
push eax
lea eax, [esp + 0x10]
push str._c:_
push eax
call fcn.00401cb9
add esp, 0xc
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x401a17
test ebx, ebx
je 0x4019db
push 0x104
call fcn.00402d80
mov esi, eax
push ebx
lea eax, [esp + 0x14]
push eax
push str._s_s_
push esi
call fcn.00401cb9
add esp, 0x14
jmp 0x4019fb
test edi, edi
je 0x401a17
push 5
call fcn.00402d80
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0x40fbe0
push esi
call fcn.00401cb9
add esp, 0x10
push esi
call fcn.00401ab2
test eax, eax
pop ecx
je 0x401a17
push 3
push 0
push esi
call fcn.004015f3
add esp, 0xc
test eax, eax
jne 0x401a23
inc edi
cmp edi, 0xd
jl 0x40198f
jmp 0x401a2b
mov dword [esp + 8], 1
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 8]
pop edi
pop esi
xor ecx, esp
call fcn.00401caa
mov esp, ebp
pop ebp
ret
Function at 0x401a40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
lea eax, [esi + 0x43]
push eax
lea eax, [ebp - 0xc]
push str._c:_
push eax
call fcn.00401cb9
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x401a7d
inc esi
cmp esi, 0xd
jl 0x401a53
lea eax, [ebp - 0xc]
push eax
call fcn.00401ab2
test eax, eax
pop ecx
pop esi
je 0x401aa4
push 2
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.004015f3
add esp, 0xc
neg eax
sbb eax, eax
neg eax
jmp 0x401aa6
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401caa
leave
ret

Function at 0x401ab2
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x108]
push str._sreadme.1xt
push eax
xor esi, esi
call fcn.00401cb9
add esp, 0xc
push esi
push esi
push 1
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x401afe
inc esi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00401caa
leave
ret

Function at 0x401b21
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x4348f4]
push ebx
push ebp
push esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.00402ce6
push dword [esp + 0x24]
call fcn.00401df1
pop ecx
pop ecx
call fcn.00401dfe
xor edx, edx
mov ecx, 0x4538
div ecx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push dword [esp + 0x44]
mov esi, edx
add esi, 0x8ff1
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push eax
mov dword [esp + 0x1c], eax
call ebp
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x401b91
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push edi
push 3
push edi
push 2
push 0x40000000
push dword [esp + 0x30]
call ebx
mov ebx, eax
push edi
push ebx
call ebp
mov ecx, 0x16e360
cmp dword [esp + 0x10], ecx
jbe 0x401bc4
sub esi, eax
add esi, ecx
jmp 0x401bcd
cmp dword [esp + 0x10], eax
ja 0x401bcd
xor esi, esi
inc esi
push esi
call fcn.00402d80
pop ecx
push 2
push edi
push edi
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [esp + 0x20]
push eax
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401bfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x401c0b
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x258]
push ecx
push eax
lea eax, [ebp - 0x114]
push str._s_s
push eax
xor ebx, ebx
mov dword [ebp - 0x258], 0x2a2e2a
call fcn.00401cb9
add esp, 0x10
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401c99
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [ebp - 0x254]
push eax
push edi
call esi
test eax, eax
je 0x401c99
cmp ebx, 4
jge 0x401c94
lea eax, [ebp - 0x254]
push eax
push edi
inc ebx
call esi
test eax, eax
jne 0x401c7b
cmp ebx, 4
jl 0x401c99
xor eax, eax
inc eax
jmp 0x401c9b
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401caa
leave
ret

Function at 0x401caa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4110fc]
jne 0x401cb4
repz ret
jmp fcn.00403039
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
xor ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40b525
xor eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
test eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
test eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x101ccdc
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1027018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
xor esi, esi
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x101cd4c
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x101cd4c
cmp dword [ebp - 0x14], ebx
je 0x101cd4c
call fcn.0101cc21
mov esi, eax
cmp dword [ebp - 0x10], ebx
je 0x101cd5a
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0102302f
leave
ret

Function at 0x101cde1
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x1027018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x10013b4
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0x3e9
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jle 0x101ce7d
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x101ce51
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x204]
push eax
push 1
push 0
push 0x10013b0
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x101ce83
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0102302f
leave
ret 4
Function at 0x101d0b2
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x1027018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x218
mov dword [ebp - 0x444], eax
xor ebx, ebx
lea eax, [ebp - 0x438]
push ebx
push eax
mov dword [ebp - 0x43c], 0x40
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0xc]
mov esi, 0x10e
push esi
lea eax, [ebp - 0x43c]
push eax
call fcn.0101d01b
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
jne 0x101d15c
push 0x1001440
push esi
lea eax, [ebp - 0x43c]
push eax
call fcn.0101d01b
cmp eax, ebx
jne 0x101d15c
lea eax, [ebp - 0x43c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x101d132
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x43c]
push eax
push 2
push ebx
push 0x1001420
push dword [ebp - 0x444]
call edi
mov dword [ebp - 0x440], eax
cmp eax, ebx
jne 0x101d263
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x444]
push eax
push ebx
push 0xf003f
push ebx
push 0x1001410
push ebx
push 0x10013fc
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x440], eax
cmp eax, ebx
jne 0x101d263
push 4
lea eax, [ebp - 0x448]
push eax
push 4
push ebx
push 0x10013ec
push dword [ebp - 0x444]
mov dword [ebp - 0x448], 1
call edi
mov dword [ebp - 0x440], eax
cmp eax, ebx
jne 0x101d257
push 0x218
lea eax, [ebp - 0x21c]
push ebx
push eax
mov dword [ebp - 0x220], 0x40
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.0101d01b
cmp eax, ebx
jne 0x101d251
push 0x10013dc
push esi
lea eax, [ebp - 0x220]
push eax
call fcn.0101d01b
cmp eax, ebx
jne 0x101d251
lea eax, [ebp - 0x220]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x101d227
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x220]
push eax
push 2
push ebx
push 0x10013c0
push dword [ebp - 0x444]
call edi
mov dword [ebp - 0x440], eax
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x440]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0102302f
leave
ret 8
Function at 0x101d60b
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp dword [ebp + 0xc], edi
jbe 0x101d6cd
push ebx
push esi
lea eax, [ebp - 8]
push eax
push 0x2001f
push edi
mov esi, 0x1001450
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x101d659
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp eax, edi
jne 0x101d6a0
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
sub eax, esi
mov dword [ebp + 8], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp + 0x14], eax
mov ebx, 0x10013b0
jmp 0x101d677
mov eax, dword [ebp + 0x14]
mov ecx, dword [esi]
test ecx, ecx
je 0x101d724
mov eax, dword [eax + esi]
test eax, eax
jne 0x101d6d5
push 1
push ebx
push 1
push eax
push ecx
push dword [ebp - 8]
call edi
test eax, eax
je 0x101d724
xor edi, edi
cmp eax, edi
jle 0x101d6ac
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0xc], eax
pop esi
pop ebx
cmp dword [ebp - 4], edi
je 0x101d6bf
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], edi
je 0x101d6cd
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop edi
leave
ret 0x10
lea ecx, [ebp - 4]
push ecx
push 0x2001f
push 0
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x101d705
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
push dword [eax + esi]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x101d69c
push 1
push ebx
push 1
push 0
push dword [esi]
push dword [ebp - 4]
call edi
test eax, eax
jne 0x101d69c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 4], 0
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add esi, 4
cmp eax, dword [ebp + 0xc]
jb 0x101d674
xor edi, edi
jmp 0x101d6af

Function at 0x101d742
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
xor ebx, ebx
inc edi
mov dword [ebp - 4], esi
cmp dword [ebp + 0xc], esi
jbe 0x101d7be
test edi, edi
je 0x101d776
lea eax, [ebp - 4]
push eax
push 0x100145c
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x101d7a1
xor edi, edi
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x101d799
push 1
push 0x10013b0
push 1
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x101d7a1
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x101d75a
jmp 0x101d7af
jle 0x101d7ad
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x101d7be
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x101da83
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
xor edi, edi
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
call fcn.01023c03
mov dword [ebp - 0x10], eax
cmp eax, edi
jne 0x101db36
lea eax, [ebp - 4]
push eax
push 0x2001f
push edi
mov esi, 0x10014c8
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x101dae5
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp eax, edi
jne 0x101db27
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101db07
inc dword [ebp - 8]
jmp 0x101db0e
mov dword [ebp - 8], 1
push 4
lea eax, [ebp - 8]
push eax
push 4
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, edi
je 0x101db36
jle 0x101db33
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], edi
pop edi
pop esi
je 0x101db46
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x101e676
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.0101d394
test eax, eax
jne 0x101e6a9
mov dword [ebp - 4], 0x8007000e
jmp 0x101e79e
cmp dword [esi + 0x1c], 7
jge 0x101e6bb
mov dword [ebp - 4], 0x8007139f
jmp 0x101e79e
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x101e797
cmp dword [ebp + 0x10], ebx
je 0x101e797
mov eax, dword [esi + 0x24]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x101e6f8
cmp dx, bx
je 0x101e6f4
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x101e6f8
add ecx, 4
add eax, 4
cmp dx, bx
jne 0x101e6d2
xor eax, eax
jmp 0x101e6fd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x101e70d
mov dword [ebp - 4], 0x80070005
jmp 0x101e79e
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push 0x10015c4
push 0x80000000
call esi
cmp eax, ebx
jne 0x101e786
lea eax, [ebp - 0xc]
push eax
mov edi, 0x2001f
push edi
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call esi
cmp eax, ebx
jne 0x101e786
lea eax, [ebp - 8]
push eax
push edi
push ebx
mov edi, 0x100159c
push edi
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x101e76b
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp eax, ebx
jne 0x101e786
push 4
lea eax, [ebp + 0x18]
push eax
push 4
push ebx
push 0x1001580
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x101e79e
jle 0x101e792
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x101e79e
mov dword [ebp - 4], 0x80070057
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], ebx
je 0x101e7ae
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], ebx
je 0x101e7b8
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 0x10], ebx
je 0x101e7c2
push dword [ebp - 0x10]
call esi
mov ecx, dword [ebp + 8]
call fcn.0101d3ad
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x101f2e7
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
xor ebx, ebx
call fcn.0101d394
test eax, eax
jne 0x101f305
mov ebx, 0x8007000e
jmp 0x101f349
cmp dword [esi + 0x1c], 4
jge 0x101f312
mov ebx, 0x8007139f
jmp 0x101f349
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x101f321
mov ebx, 0x80070057
jmp 0x101f348
push dword [esi + 0x4c]
push edi
call fcn.0102091d
test eax, eax
jne 0x101f335
mov ebx, 0x80070005
jmp 0x101f348
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
mov ecx, esi
call fcn.0101d3ad
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8