joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001dfd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x1001e001
mov esi, dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push esi
push 1
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ebp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x1001e01d
pop edi
xor eax, eax
pop esi
pop ebp
ret
mov esi, dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp + 0x10]
inc eax
push eax
push esi
push 1
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1001e04d
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0x1001e060
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x1001e070
xor eax, eax
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x1001e08b
xor eax, eax
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push 4
push eax
push 4
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1001e0b3
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ebp
ret

Function at 0x1001e140
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x1001e169
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
neg eax
sbb eax, eax
pop esi
inc eax
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x1001e184
xor eax, eax
pop esi
pop ebp
ret
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 8]
push edx
push eax
push 0
push esi
push ecx
mov dword [ebp + 8], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1001e1b7
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x18]
pop esi
pop ebp
ret
Function at 0x1001e1d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
push edi
jne 0x1001e1e6
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x1001e204
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 4
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
lea ecx, [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 4]
push ecx
push edx
push 0
push esi
push eax
mov dword [ebp + 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1001e244
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001e300
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x1001e31d
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x1001e33d
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebp
ret

Function at 0x1001e350
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x1001e36d
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x1001e38d
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebp
ret
Function at 0x1001e4d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push ebx
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [ebp + 0x10]
test eax, eax
jne 0x1001e578
push esi
push edi
xor esi, esi
push 0x104
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.1003da30
mov edx, dword [ebp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
add esp, 0xc
lea ecx, [ebp - 0x104]
push 0x103
push ecx
push esi
push edx
call edi
test eax, eax
jne 0x1001e56c
lea eax, [ebp - 0x104]
mov ecx, ebx
push eax
call fcn.10004ea0
push 0x104
lea ecx, [ebp - 0x104]
push 0
push ecx
inc esi
call fcn.1003da30
mov eax, dword [ebp + 0xc]
add esp, 0xc
lea edx, [ebp - 0x104]
push 0x103
push edx
push esi
push eax
call edi
test eax, eax
je 0x1001e530
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, ebx
call fcn.10007fa0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001e630
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10074b50
push eax
mov dword fs:[0], esp
push esi
push edi
call fcn.1001f6b0
cmp ax, 6
jb 0x1001e720
mov al, byte [ebp + 0x10]
test al, al
je 0x1001e720
mov esi, dword [ebp + 8]
push 0x104
push 0x104
mov ecx, esi
call fcn.1005bf75
push eax
push str._USERPROFILE_AppDataLocalLow
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.1005bfc4
mov al, byte [ebp + 0xc]
test al, al
je 0x1001e6de
push 0x100962d4
lea ecx, [ebp + 8]
call fcn.1005bbb3
push 0x100962c8
lea ecx, [ebp + 0xc]
push eax
push ecx
mov dword [ebp - 4], 0
call fcn.1005bdda
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.1005bf5d
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call fcn.1005bb45
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.1005bb45
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x1001e6f9
mov ecx, esi
call fcn.10002f50
push eax
call fcn.1001c1a0
add esp, 4
test al, al
jne 0x1001e70b
push 1
mov ecx, esi
call fcn.10002f50
push eax
call fcn.1001bf50
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jge 0x1001e747
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
push 1
push 0x1c
push 0x104
mov ecx, esi
call fcn.1005bf75
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0xffffffffffffffff
mov ecx, esi
mov edi, eax
call fcn.1005bfc4
test edi, edi
jne 0x1001e68d
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001ed00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10074ca8
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
push edi
call fcn.1001eac0
add esp, 4
lea ecx, [ebp + 0x14]
mov esi, eax
call fcn.10002f10
push edi
push esi
push esi
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], 0
call fcn.1005bf75
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
push 0xffffffffffffffff
lea ecx, [ebp + 0x14]
call fcn.1005bfc4
lea ecx, [ebp + 0x14]
call fcn.10002f50
mov esi, eax
cmp byte [esi], 0
je 0x1001edad
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call ebx
push 0x100962e8
push esi
mov edi, eax
call fcn.1003dc80
add esp, 8
test eax, eax
jne 0x1001ed8b
push 0x100a1944
jmp 0x1001ed90
mov byte [eax], 0
inc eax
push eax
mov ecx, dword [ebp + 0x10]
call fcn.10004ea0
mov ecx, dword [ebp + 0xc]
push esi
call fcn.10004ea0
mov al, byte [esi + edi + 1]
lea esi, [esi + edi + 1]
test al, al
jne 0x1001ed6d
mov ecx, dword [ebp + 0xc]
call fcn.10007fa0
lea ecx, [ebp + 0x14]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.1005bb45
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001ee30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10095904]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0xffffffff
je 0x1001ee54
call esi
sub eax, dword [0x10095904]
cmp eax, 0x2710
jbe 0x1001ee93
push str.debug
push 0x100962f4
lea eax, [ebp - 4]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.1001e260
add esp, 0x10
mov ecx, eax
call fcn.10002f50
push eax
call fcn.1003d71d
add esp, 4
lea ecx, [ebp - 4]
mov dword [0x10095900], eax
call fcn.1005bb45
call esi
mov dword [0x10095904], eax
mov eax, dword [0x10095900]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001f820
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, 0x55555556
push ebx
imul dword [ebp + 0xc]
mov eax, edx
push esi
shr eax, 0x1f
add edx, eax
push edi
mov ebx, edx
mov dword [ebp - 0xc], ebx
lea ecx, [ebx*4 + 8]
push ecx
call fcn.10056e50
add esp, 4
xor esi, esi
test ebx, ebx
mov edi, eax
jle 0x1001f8d1
mov edx, dword [ebp + 8]
mov dword [ebp - 8], ebx
lea eax, [edx + 2]
mov dword [ebp - 4], eax
jmp 0x1001f866
mov eax, dword [ebp - 4]
xor ebx, ebx
xor ecx, ecx
mov bh, byte [eax - 2]
mov cl, byte [eax]
mov bl, byte [eax - 1]
shl ebx, 8
or ebx, ecx
mov edx, ebx
sar edx, 0x12
and dl, 0x3f
push edx
call fcn.1001f7a0
mov byte [esi + edi], al
mov eax, ebx
sar eax, 0xc
and al, 0x3f
inc esi
push eax
call fcn.1001f7a0
mov ecx, ebx
mov byte [esi + edi], al
sar ecx, 6
and cl, 0x3f
inc esi
push ecx
call fcn.1001f7a0
and bl, 0x3f
mov byte [esi + edi], al
push ebx
inc esi
call fcn.1001f7a0
mov ecx, dword [ebp - 4]
mov byte [esi + edi], al
mov eax, dword [ebp - 8]
add esp, 0x10
inc esi
add ecx, 3
dec eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
jne 0x1001f863
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, 3
cdq
idiv ecx
test edx, edx
jle 0x1001f995
cmp edx, 1
jne 0x1001f935
mov edx, dword [ebp + 8]
xor ecx, ecx
lea eax, [edx + ebx*2]
mov cl, byte [ebx + eax]
mov ebx, ecx
shl ebx, 0x10
mov edx, ebx
sar edx, 0x12
and dl, 0x3f
push edx
call fcn.1001f7a0
sar ebx, 0xc
and bl, 0x3f
mov byte [esi + edi], al
push ebx
inc esi
call fcn.1001f7a0
add esp, 8
mov byte [esi + edi], al
inc esi
mov eax, edi
mov byte [esi + edi], 0x3d
inc esi
mov byte [esi + edi], 0x3d
mov byte [esi + edi + 1], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edx, 2
jne 0x1001f995
mov eax, dword [ebp + 8]
lea ecx, [eax + ebx*2]
lea eax, [ebx + ecx]
xor ebx, ebx
mov bl, byte [eax + 1]
mov bh, byte [eax]
shl ebx, 8
mov edx, ebx
sar edx, 0x12
and dl, 0x3f
push edx
call fcn.1001f7a0
mov byte [esi + edi], al
mov eax, ebx
sar eax, 0xc
and al, 0x3f
inc esi
push eax
call fcn.1001f7a0
sar ebx, 6
and bl, 0x3f
mov byte [esi + edi], al
push ebx
inc esi
call fcn.1001f7a0
add esp, 0xc
mov byte [esi + edi], al
inc esi
mov eax, edi
mov byte [esi + edi], 0x3d
mov byte [esi + edi + 1], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi + edi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001ffe0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10074e90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0
call fcn.10035da3
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.10002f20
test eax, eax
jne 0x100201aa
lea eax, [ebp + 8]
lea ecx, [ebp - 0x10]
push eax
call fcn.1005b8ba
mov bl, 2
push 0x100963c8
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.1005bf21
push 0
lea ecx, [ebp - 0x10]
call fcn.10002f50
push eax
lea ecx, [ebp - 0x4c]
call fcn.10035e66
test eax, eax
je 0x10020183
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x4c]
call fcn.10036086
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x2c], eax
call fcn.1003604d
test eax, eax
jne 0x10020178
lea ecx, [ebp - 0x4c]
call fcn.10020220
test eax, eax
jne 0x10020161
lea ecx, [ebp - 0x4c]
call fcn.10020210
test eax, eax
je 0x10020103
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.1003627e
mov esi, eax
lea edx, [ebp + 8]
push 0x100963d0
lea eax, [ebp - 0x18]
push edx
push eax
mov byte [ebp - 4], 3
call fcn.1005bdda
push esi
lea ecx, [ebp - 0x14]
push eax
push ecx
mov byte [ebp - 4], 4
call fcn.1005bd74
push 0
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.10002f50
push eax
call fcn.10023b10
add esp, 8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.1005bb45
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.1005bb45
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.1005bb45
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x4c]
push edx
call fcn.1003627e
mov esi, eax
lea eax, [ebp + 8]
push 0x100963d4
lea ecx, [ebp - 0x24]
push eax
push ecx
mov byte [ebp - 4], 6
call fcn.1005bdda
push esi
lea edx, [ebp - 0x20]
push eax
push edx
mov byte [ebp - 4], 7
call fcn.1005bd74
mov ecx, eax
call fcn.10002f50
push eax
call edi
lea ecx, [ebp - 0x20]
call fcn.1005bb45
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.1005bb45
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.1005bb45
jmp 0x10020178
push ecx
lea ecx, [ebp - 0x4c]
mov eax, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.10036155
call fcn.1001ffe0
add esp, 4
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x10020060
lea ecx, [ebp - 0x4c]
call fcn.10035e1c
lea ecx, [ebp + 8]
call fcn.10002f50
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
jne 0x100201d8
call fcn.1005bb45
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.10035de0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.1005bb45
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1005bb45
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.10035de0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.1005bb45
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10020230
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10074ec0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x100203bc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x100203bc
push ebx
push 0xa
lea ecx, [ebp - 0x50]
call fcn.1005680a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
test eax, eax
mov ebx, 1
je 0x10020292
lea ecx, [ebp - 0x50]
push ebx
push ecx
push eax
call fcn.10023ab0
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.10035da3
push 0
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.10035e66
test eax, eax
je 0x10020387
lea ecx, [ebp - 0x34]
call fcn.10036086
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.1003604d
test eax, eax
jne 0x1002037f
lea ecx, [ebp - 0x34]
call fcn.10020220
test eax, eax
jne 0x1002037f
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10020324
lea edx, [ebp + 8]
lea ecx, [ebp - 0x34]
push edx
call fcn.1003627e
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.1005c0d3
lea eax, [ebp - 0x10]
lea ecx, [ebp + 8]
push eax
mov dword [ebp - 0x10], 0
call fcn.10002f50
push eax
lea ecx, [ebp - 0x50]
call fcn.100569ee
test eax, eax
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
jne 0x1002037a
call fcn.1005bb45
lea ecx, [ebp - 0x34]
call fcn.10020210
test eax, eax
je 0x1002035d
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x34]
call fcn.10036155
push 0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.10002f50
push eax
call fcn.10023b10
add esp, 8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.1005bb45
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x34]
push edx
call fcn.10036155
mov ecx, eax
call fcn.10002f50
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x18]
call fcn.1005bb45
test esi, esi
jne 0x100202b0
lea ecx, [ebp - 0x34]
call fcn.10035e1c
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.10035de0
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
call fcn.100568e4
mov eax, ebx
pop ebx
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10020a90
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
cmp esi, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
je 0x10020bba
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 4]
push edi
mov edi, dword [ebp + 8]
push ecx
push 0x40000
push eax
push esi
push edi
call ebx
test eax, eax
jne 0x10020ba5
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
push edx
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x10020ba5
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10020b9e
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
push edx
push 0x20019
push 0
push esi
push edi
call ebx
test eax, eax
jne 0x10020ba5
push eax
push eax
lea eax, [ebp + 8]
lea ecx, [ebp - 0xc]
push eax
lea edx, [ebp - 0x10]
push ecx
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x14]
push 0
lea ecx, [ebp + 0xc]
push eax
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x10020ba5
push 0x105
call fcn.10056e50
mov esi, eax
mov eax, dword [ebp + 0xc]
add esp, 4
xor edi, edi
test eax, eax
jbe 0x10020b95
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov eax, dword [ebp - 4]
push 0x105
push esi
push edi
push eax
call ebx
test eax, eax
jne 0x10020b86
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
push 1
push ecx
push esi
push edx
call fcn.10020a90
add esp, 0x10
jmp 0x10020b8d
cmp eax, 0x103
je 0x10020b95
mov eax, dword [ebp + 0xc]
inc edi
cmp edi, eax
jb 0x10020b60
push esi
call fcn.10056e79
add esp, 4
mov esi, 1
jmp 0x10020ba8
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
pop edi
test eax, eax
pop ebx
je 0x10020bb8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100227e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov ax, word [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
xor edi, edi
xor ebx, ebx
cmp esi, edi
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov word [ebp - 0x30], ax
mov word [ebp - 0x2e], di
mov dword [ebp - 0x2c], edi
je 0x10022873
push 0xc
lea ecx, [ebp - 0xc]
push edi
push ecx
call fcn.1003da30
add esp, 0xc
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 1
push edi
push 0x80
push 2
push edx
push edi
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x34], 0x100
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x1c]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x60]
push eax
push ecx
push edi
push edi
push 8
push 1
push edi
push edi
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x100228ec
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, eax
cmp esi, edi
je 0x100228d4
cmp dword [ebp + 0xc], 0x103
jne 0x100228d4
mov edx, dword [ebp - 0x1c]
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, eax
cmp esi, edi
jne 0x100228ab
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x100228e0
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0x1c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp ebx, edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x100228f9
push ebx
call edi
mov ecx, dword [ebp - 0x18]
push ecx
call edi
mov edx, dword [ebp - 0x1c]
push edx
call edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret