joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439b10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x439b6c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x439b6c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x439b6c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x439b6c
cmp dword [ecx + 0x74], 0xe
jbe 0x439b6c
cmp dword [ecx + 0xe8], 0
je 0x439b6c
push dword [ebp + 8]
call fcn.004399e0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x44e1d4
call fcn.004397b0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x439ba1
push dword [ebp + 8]
call fcn.004399a0
mov esp, ebp
pop ebp
ret

Function at 0x439be0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x439c3c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x439c3c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x439c3c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x439c3c
cmp dword [ecx + 0x74], 0xe
jbe 0x439c3c
cmp dword [ecx + 0xe8], 0
je 0x439c3c
push dword [ebp + 8]
call fcn.004399e0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x44e1d4
call fcn.004397b0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x439c71
push dword [ebp + 8]
call fcn.004399a0
mov esp, ebp
pop ebp
ret
Function at 0x106bd41
Capabilities:
Parse pe header
Terminate process

Disassembly:
pushfd
pushal
call fcn.01003826
popal
popfd
push 0x70
push 0x1023770
call fcn.0106bf63
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x1000000], 0x5a4d
jne 0x106bd9d
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x106bd9d
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x106bdb5
cmp ecx, 0x20b
je 0x106bda2
mov dword [ebp - 0x1c], ebx
jmp 0x106bdc9
cmp dword [eax + 0x84], 0xe
jbe 0x106bd9d
xor ecx, ecx
cmp dword [eax + 0xf8], ebx
jmp 0x106bdc3
cmp dword [eax + 0x74], 0xe
jbe 0x106bd9d
xor ecx, ecx
cmp dword [eax + 0xe8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x10c6a24], edi
mov dword [0x10c6a28], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10bbf20]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10bbf1c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10c6a2c], eax
call fcn.01048367
cmp dword [0x1099a3c], ebx
jne 0x106be26
push fcn.01048367
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0106c1f3
push 0x1009208
push 0x1009204
call sub.msvcrt.dll__initterm
mov eax, dword [0x10bbf18]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10bbf14]
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 0x1009200
push 0x10091f8
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x106beb1
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x106be91
cmp cl, 0x22
jne 0x106be82
cmp byte [eax], 0x22
jne 0x106be9a
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x106bea5
cmp cl, 0x20
jbe 0x106be96
test byte [ebp - 0x54], 1
je 0x106bebc
movzx ecx, word [ebp - 0x50]
jmp 0x106bebf
cmp byte [eax], 0x20
jbe 0x106be9a
inc eax
mov dword [ebp - 0x20], eax
jmp 0x106beb1
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.0104a04a
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x106bedd
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x106bf19
mov eax, esi
jmp 0x106bf2d
call fcn.0106bf9e
ret
Function at 0x1070db7
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [ebp + 8]
push ebx
push esi
lea edx, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1070dc9
sub eax, edx
inc eax
push eax
call sub.msvcrt.dll_malloc
mov esi, eax
cmp esi, ebx
pop ecx
mov dword [ebp - 4], esi
jne 0x1070dfd
push 8
pop esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x1070df6
mov dword [eax], esi
xor eax, eax
jmp 0x1070e9b
mov eax, dword [ebp + 8]
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x1070e04
push edi
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
xor edi, edi
inc edi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x58], 0x44
je 0x1070e2f
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x28], bx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1070e63
push esi
call sub.msvcrt.dll_free
mov esi, dword [ebp + 0x10]
cmp esi, ebx
pop ecx
je 0x1070e5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor eax, eax
jmp 0x1070e9a
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x10], ebx
je 0x1070e7f
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 4]
call sub.msvcrt.dll_free
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1071051
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 2
push 0
push 0x1024398
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x10710a1
cmp dword [ebp + 8], eax
push 4
setne al
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x1024380
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret 4
Function at 0x1071ee5
Capabilities:
Extract resource via kernel32 functions
Get file version info

Disassembly:
push 0x2c
push 0x10246c8
call fcn.0106bf63
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jne 0x1071f0a
xor eax, eax
jmp 0x1072091
mov dword [edi], ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x1072052
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x1072052
push ebx
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x1072052
mov esi, eax
or esi, 1
mov dword [ebp - 4], ebx
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x30], eax
cmp eax, ebx
jne 0x1071fc1
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
mov dword [ebp - 0x38], esi
cmp esi, ebx
jne 0x1071fa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1072008
push 0x714
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1072008
push esi
call sub.msvcrt.dll_malloc
pop ecx
mov dword [edi], eax
cmp eax, ebx
je 0x1072008
push eax
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1072008
jmp 0x1072001
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp esi, ebx
je 0x1072008
movzx eax, word [esi]
mov ecx, eax
shr ecx, 1
add ecx, eax
push ecx
push 1
call sub.msvcrt.dll_calloc
pop ecx
pop ecx
mov dword [edi], eax
cmp eax, ebx
je 0x1072008
movzx ecx, word [esi]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x24], 1
or dword [ebp - 4], 0xffffffff
jmp 0x1072052
cmp dword [ebp - 0x28], ebx
je 0x1072060
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], ebx
je 0x107206e
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], ebx
je 0x107207c
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [edi]
cmp edi, ebx
je 0x107208e
cmp dword [ebp - 0x24], ebx
jne 0x107208e
push edi
call sub.msvcrt.dll_free
pop ecx
mov eax, dword [ebp - 0x24]
call fcn.0106bf9e
ret 8
Function at 0x107230a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push dword [ebp + 8]
xor ebx, ebx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1072337
xor eax, eax
jmp 0x107239a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp + 8], edi
push dword [ebp - 4]
call esi
cmp eax, edi
je 0x107235e
cmp eax, 0xea
jne 0x107238c
push dword [ebp + 8]
call sub.msvcrt.dll_malloc
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x107238e
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
test eax, eax
je 0x107238c
push ebx
call sub.msvcrt.dll_free
pop ecx
jmp 0x107238e
mov edi, ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret 8

Function at 0x107245e
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x1099a38]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
lea edx, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x107247a
sub eax, edx
cmp eax, 0x104
jb 0x1072491
xor eax, eax
jmp 0x1072514
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x108]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x107249c
push edi
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x15c]
rep stosd dword es:[edi], eax
xor edi, edi
inc edi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x15c], 0x44
je 0x10724d3
mov dword [ebp - 0x130], edi
mov word [ebp - 0x12c], bx
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1072513
push esi
push dword [ebp - 0x118]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x114]
call esi
mov eax, edi
pop esi
pop edi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0106bc50
leave
ret 8

Function at 0x1072521
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push 0
push 0x20000000
push 3
push 0
push 3
push 0x80000000
push dword [ebp + 8]
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
je 0x107255f
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x10734d3
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
push 0x1024b18
call fcn.0106bf63
xor esi, esi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x10734ed
mov dword [eax], esi
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x10734f6
mov dword [eax], esi
lea eax, [ebp - 0x24]
push eax
push 1
push esi
push 0x1024398
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x10735ad
mov dword [ebp - 4], esi
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push esi
mov ebx, 0x101534c
push ebx
push dword [ebp - 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x1073582
push dword [ebp - 0x20]
call sub.msvcrt.dll_malloc
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp eax, esi
jne 0x1073555
mov dword [ebp - 0x1c], 8
jmp 0x10735a4
lea ecx, [ebp - 0x20]
push ecx
push eax
push esi
push esi
push ebx
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x1073578
mov edi, dword [ebp + 8]
push dword [edi]
call sub.msvcrt.dll_free
pop ecx
mov dword [edi], esi
jmp 0x10735a4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x10735a4
cmp eax, 2
je 0x107358c
cmp eax, 3
jne 0x10735a4
push 1
push 2
call sub.msvcrt.dll_calloc
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov dword [ebp - 0x1c], esi
or dword [ebp - 4], 0xffffffff
call fcn.010735c7
push dword [ebp - 0x1c]
call fcn.01037f35
xor eax, eax
cmp dword [ebp - 0x1c], esi
sete al
call fcn.0106bf9e
ret 8
Function at 0x1073be6
Capabilities:
Delete file
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.010734d3
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
call fcn.01073ac4
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp + 0xc]
push dword [eax]
mov dword [ebp - 0x14], esi
call fcn.01073ac4
cmp esi, ebx
mov dword [ebp - 0x10], eax
je 0x1073c84
push edi
mov edi, dword [ebp - 0x10]
cmp edi, ebx
mov dword [ebp - 0xc], ebx
je 0x1073c62
push esi
call fcn.01070f95
push edi
mov ebx, eax
call fcn.01070f95
push eax
push ebx
call sub.msvcrt.dll__strcmpi
test eax, eax
pop ecx
pop ecx
jne 0x1073c53
mov dword [ebp - 0xc], 1
mov edi, dword [edi + 0x208]
test edi, edi
jne 0x1073c31
cmp dword [ebp - 0xc], edi
jne 0x1073c77
call fcn.01073b74
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call sub.msvcrt.dll_free
pop ecx
mov esi, dword [esi + 0x208]
xor ebx, ebx
cmp esi, ebx
jne 0x1073c27
pop edi
mov eax, dword [ebp - 0x10]
call fcn.01073aa8
mov eax, dword [ebp - 0x14]
call fcn.01073aa8
cmp dword [ebp + 8], ebx
je 0x1073cf1
lea eax, [ebp - 8]
push eax
push 2
push ebx
push 0x1024398
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1073cf1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, ebx
jne 0x1073cd0
push 0x101534c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x1073ce5
push eax
push dword [ebp + 8]
push 7
push ebx
push 0x101534c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call fcn.01037f35
xor eax, eax
cmp dword [ebp - 4], ebx
pop esi
sete al
pop ebx
leave
ret 8
Function at 0x107658e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 0xb
pop ecx
mov esi, 0x1025980
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x1099a38]
movsb byte es:[edi], byte [esi]
mov esi, 0x1025970
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, 0x104
push esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
call sub.msvcrt.dll_malloc
mov edi, eax
mov eax, dword [ebp - 0x50]
pop ecx
mov dword [eax], ebx
lea eax, [ebp - 0x4c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x44]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x107666e
lea eax, [ebp - 0x48]
push eax
push edi
lea eax, [ebp - 0x58]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x4c]
mov dword [ebp - 0x48], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call esi
cmp eax, 0xea
jne 0x107664a
push edi
call sub.msvcrt.dll_free
push dword [ebp - 0x48]
call sub.msvcrt.dll_malloc
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x107666e
lea eax, [ebp - 0x48]
push eax
push edi
lea eax, [ebp - 0x58]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x4c]
call esi
cmp eax, ebx
jne 0x107666e
mov eax, dword [ebp - 0x48]
push ebx
push ebx
push edi
mov byte [edi + eax - 1], bl
mov dword [ebp - 0x54], 1
call sub.msvcrt.dll_strtoul
mov ecx, dword [ebp - 0x50]
add esp, 0xc
mov dword [ecx], eax
jmp 0x1076673
mov eax, dword [ebp - 0x50]
mov dword [eax], ebx
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x54]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 4

Function at 0x1076695
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 8]
push eax
push 1
xor edi, edi
push edi
push 0x10259c0
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10766ff
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x10259b0
push dword [ebp - 8]
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10766f6
cmp dword [ebp - 0xc], 4
jne 0x10766f6
cmp dword [ebp - 4], 4
jne 0x10766f6
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
inc edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret 4
Function at 0x1077208
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push 0x100af40
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x1077248
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push dword [ebp + 8]
mov esi, 0x1106960
push 0x1026244
push esi
call sub.msvcrt.dll_sprintf
add esp, 0x10
push esi
call fcn.01071aad
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
leave
ret 4
Function at 0x1078ef9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1099a38]
push ebx
push esi
push edi
mov esi, 0x1026c50
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ebx
movsw word es:[edi], word [esi]
call fcn.010735d1
test eax, eax
je 0x1078f32
mov dword [ebp - 0x14], 0x40
jmp 0x1078fca
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push 0x1026c34
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1078fca
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
mov edi, 0x1026c28
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
call esi
test eax, eax
jne 0x1078fc1
push dword [ebp - 0x1c]
call sub.msvcrt.dll_malloc
pop ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
push dword [ebp - 0x18]
call esi
lea eax, [ebp - 0x10]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1078f94
sub eax, ecx
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
call sub.msvcrt.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x1078fb8
mov dword [ebp - 0x14], 0x62
push dword [ebp - 0x20]
call sub.msvcrt.dll_free
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret
Function at 0x107c899
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1099a38]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], ebx
call dword [sym.imp.UPDSPAPI.dll_UpdSpOpenInfFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x21c], eax
jne 0x107c8f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1027d6c
call fcn.01071ac0
add esp, 0xc
jmp 0x107ca66
push ebx
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1027d60
push 0x100d9dc
push dword [ebp - 0x21c]
push ebx
call dword [sym.imp.UPDSPAPI.dll_UpdSpGetLineTextA]
test eax, eax
jne 0x107c93c
push edi
push 0x1027d08
call fcn.01071ac0
mov dword [ebp - 0x218], 1
jmp 0x107ca64
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xfffa
mov edi, 0x1106960
push edi
push 0x100a5dc
lea eax, [ebp - 0x108]
push eax
call fcn.01070fc9
mov dword [ebp - 0x210], ebx
mov ebx, 0x1000
mov esi, 0x10f5820
push dword [ebp - 0x210]
push 0x1027cfc
push dword [ebp - 0x214]
call sub.msvcrt.dll_sprintf
add esp, 0xc
inc dword [ebp - 0x210]
push 0
push ebx
push esi
push dword [ebp - 0x214]
push 0x10f54c0
call fcn.01070fc9
push eax
call fcn.01073f21
test eax, eax
jne 0x107c976
push eax
push ebx
push esi
push dword [ebp - 0x214]
push edi
call fcn.01070fc9
push eax
call fcn.01073f21
test eax, eax
jne 0x107c976
push 0x5c
push dword [ebp - 0x220]
mov byte [0x1106960], al
call sub.msvcrt.dll_strrchr
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x210], eax
je 0x107ca0a
push 0xfffa
push dword [ebp - 0x220]
mov byte [eax], 0
push edi
call sub.msvcrt.dll_strncpy
mov eax, dword [ebp - 0x210]
add esp, 0xc
mov byte [eax], 0x5c
push ebx
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.01070fc9
push dword [ebp - 0x214]
push esi
push 0x1027ccc
call fcn.01071ac0
add esp, 0xc
push dword [ebp - 0x214]
push esi
call fcn.0107c534
test eax, eax
je 0x107ca53
push 0x1027c9c
call fcn.01071ac0
mov dword [ebp - 0x218], 1
jmp 0x107ca65
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1027c60
call fcn.01071ac0
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x21c], 0xffffffff
mov esi, eax
je 0x107ca83
push dword [ebp - 0x21c]
call dword [sym.imp.UPDSPAPI.dll_UpdSpCloseInfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 8