joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001592
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 8
pop ebp
mov esi, 0x104
push esi
xor ebx, ebx
push ebx
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x10001651
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1000163b
push 0x3a
push edi
call dword [sym.imp.SHLWAPI.dll_StrChrA]
mov esi, eax
mov byte [esi + 1], bl
push edi
inc esi
inc esi
push 0x1002e93a
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000163b
push ebx
lea eax, [esp + 0x14]
push eax
push 0x10000
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10001621
xor ebp, ebp
jmp 0x10001629
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, ebx
jne 0x10001643
call fcn.10001559
jmp 0x10001641
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push edi
push ebx
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret

Function at 0x10001659
Capabilities:
Access pe header
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], 8
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x10001743
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor esi, esi
push esi
push esi
call edi
mov ebx, eax
lea eax, [ebx + 0x11]
push eax
push esi
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1000174a
push esi
inc ebx
push ebx
call edi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [esi + edi]
push 0x1002d176
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 1
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.1001206e
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x10001733
cmp dword [ebp + 0x10], ebx
je 0x10001733
lea eax, [ebp + 8]
push eax
push 0x1002d2c1
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x10001733
movsx ax, byte [0x1002d26a]
movzx eax, ax
push eax
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
mov edi, eax
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push ebx
push edi
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 esi
push ebx
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1000174a
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10001912
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
push dword [0x1002c1ac]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edi, eax
test edi, edi
jne 0x1000195b
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call esi
push dword [ebp + 8]
mov edi, eax
call fcn.100114b1
push eax
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
leave
ret 4

Function at 0x10001a04
Capabilities:
Access pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], 0x20
mov esi, eax
mov dword [ebp - 4], edi
jb 0x10001b28
mov eax, dword [esi + 0x1c]
add eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
lea eax, [eax + ecx + 0x20]
cmp dword [ebp + 8], eax
jne 0x10001b28
mov eax, esi
cdq
add dword [esi], eax
adc dword [esi + 4], edx
add dword [esi + 8], eax
adc dword [esi + 0xc], edx
push dword [esi]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x10001b1f
mov eax, dword [0x1002c1dc]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x10], eax
mov eax, dword [0x1002c1d8]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
call fcn.10016da9
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x10001b2f
cmp dword [esi + 0x18], edi
je 0x10001af5
push edi
call fcn.10010432
mov ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, edi
je 0x10001af5
push dword [esi + 0x10]
lea ebx, [esi + 0x20]
push dword [esi]
xor eax, eax
push ebx
call fcn.10001962
test eax, eax
jne 0x10001ae5
test byte [0x1002c1e4], 1
je 0x10001ae5
push dword [esi + 0x14]
mov ecx, dword [ebp - 8]
push dword [esi + 8]
lea eax, [ebp - 4]
push ebx
call fcn.10001962
cmp dword [ebp - 4], edi
je 0x10001ae5
push dword [ebp - 4]
push edi
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
push edi
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0xc], edi
je 0x10001b2f
mov eax, dword [ebp - 0xc]
push edi
push 0x1002e1dd
call fcn.1001221b
cmp eax, edi
je 0x10001b16
push edi
push 0x1002baf8
call eax
jmp 0x10001b2f
mov dword [ebp + 8], 0x7f
jmp 0x10001b2f
mov dword [ebp + 8], 0xb
jmp 0x10001b2f
mov dword [ebp + 8], 0x57
push 0x400
push edi
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
push 0x1002e210
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push 0x10d
call fcn.1000bcf5
push esi
push edi
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10001b81
Capabilities:
Copy file
Create directory

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebp, [ecx + eax*2]
push ebp
xor ebx, ebx
call edi
mov dword [esp + 0x10], eax
test esi, esi
je 0x10001ba7
push esi
call edi
mov ebx, eax
push dword [esp + 0x18]
call edi
add eax, dword [esp + 0x10]
add eax, ebx
lea eax, [eax + eax + 6]
push eax
push 0
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x10001c46
push dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
test esi, esi
je 0x10001be5
push esi
push edi
call ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x100263fc
push edi
call ebx
jmp 0x10001c19
xor eax, eax
mov word [esi], ax
call ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x100263fc
push edi
call ebx
push 0x5c
pop eax
lea ebp, [esi + 2]
mov word [esi], ax
push 0x5c
push ebp
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
push ebp
push edi
test esi, esi
jne 0x10001bf8
call ebx
push esi
push edi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push edi
push esi
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x10001c4e
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
mov ebx, 0x1002d495
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x12
xor edi, edi
push edi
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push 0x1002d7fc
mov esi, 0x1002d7a8
push esi
call fcn.1000feee
push 0x12
push edi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push 0x1002d824
push esi
call fcn.1000feee
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
lea eax, [eax + eax + 0x36]
push eax
push edi
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x10001cfd
mov eax, dword [ebp - 8]
inc eax
push eax
push ebx
push esi
call dword [sym.imp.ntdll.dll_mbstowcs]
add esp, 0xc
push 0x1002d774
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x10
push edi
push edi
lea eax, [ebp - 0x10]
push eax
push 0x1002d860
push esi
call fcn.1000feee
add dword [ebp - 4], eax
push esi
push edi
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x20c
push edi
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x10001d55
push esi
push edi
push edi
push 0x21
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x10001d47
push 0x100263fc
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x11
push edi
push edi
lea eax, [ebp - 0x10]
push eax
push 0x1002d86c
push esi
call fcn.1000feee
add dword [ebp - 4], eax
push esi
push edi
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], edi
je 0x10001df8
push dword [0x1002c128]
mov ebx, dword [ebp - 0x10]
call fcn.1000fc85
mov dword [ebp - 4], eax
cmp eax, edi
je 0x10001d7b
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, ebx
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov ebx, dword [ebx]
mov dword [edx], eax
mov dword [eax + 4], edx
mov eax, dword [esi + 0xc]
xor ecx, ecx
sub eax, 0x10
je 0x10001da7
dec eax
je 0x10001da0
dec eax
jne 0x10001dac
mov ecx, 0x1002d878
jmp 0x10001dac
mov ecx, 0x1002d898
jmp 0x10001dac
mov ecx, 0x1002d8b8
cmp dword [ebp - 4], edi
je 0x10001dc0
lea eax, [esi + 0x1c]
push eax
push dword [ebp - 4]
mov eax, dword [esi + 0x18]
call fcn.10001b81
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push edi
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0x10]
cmp ebx, eax
jne 0x10001d7b
cmp dword [ebp - 4], edi
je 0x10001df4
push dword [ebp - 4]
push edi
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x10001dfb
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002408
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
xor edi, edi
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x10], ebx
je 0x10002427
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [edi + 9]
push eax
push ebx
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x10002498
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
cmp edi, ebx
je 0x1000245c
push dword [ebp + 0x10]
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1000245f
mov byte [esi + 8], bl
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 0x100023bf
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x1000247f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000249f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push ebx
push dword [0x1002c0e0]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1000249f
mov dword [ebp - 4], 8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10002971
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea eax, [ebp - 8]
push eax
push 0x1002d2c1
xor esi, esi
push SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
cmp ebx, esi
jne 0x10002a2b
push edi
push esi
lea eax, [ebp - 4]
push eax
push dword [0x1002c3f0]
push dword [ebp - 8]
call fcn.10012e38
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, eax
cmp ebx, esi
jne 0x100029cb
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10002a10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 1
push esi
push dword [0x1002c3f0]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
cmp dword [ebp + 0xc], esi
je 0x10002a10
mov eax, dword [0x1002c4a8]
cmp eax, esi
je 0x10002a08
push eax
push esi
push dword [0x1002c0e0]
call edi
mov eax, dword [ebp + 8]
mov dword [0x1002c4a8], eax
cmp dword [ebp - 4], esi
je 0x10002a21
push dword [ebp - 4]
push esi
push dword [0x1002c0e0]
call edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x10002a33
Capabilities:
Access pe header
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 0x1000
mov eax, dword [0x1002c1f4]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
jbe 0x10002bcc
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10002bcc
push 8
pop ebx
push 0x10000
push 0
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10002bcf
push 0x1002d480
call fcn.1000fc85
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10002bbb
push dword [0x1002c3f8]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov eax, 0x2000
mov dword [ebp - 4], 0x1002e998
test word [ecx + 0x16], ax
jne 0x10002ad6
mov dword [ebp - 4], 0x1002e98c
mov eax, dword [0x1002c0f0]
test eax, eax
je 0x10002aed
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x1002c0f0], 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1002c3f4]
call fcn.100028f8
mov ebx, eax
test ebx, ebx
je 0x10002b41
lea eax, [ebp - 0x10]
push eax
push 0x1002c3f4
call fcn.10012902
test eax, eax
je 0x10002b3d
xor eax, eax
mov word [esi + edi*2], ax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1002c3f4]
call fcn.100028f8
mov ebx, eax
test ebx, ebx
jne 0x10002baa
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [0x1002c0f0], eax
mov eax, 0x2000
test word [ecx + 0x16], ax
je 0x10002b87
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
push 0
push 1
call fcn.100132a4
test eax, eax
je 0x10002b7f
push dword [ebp + 8]
push esi
call fcn.10012949
mov edi, eax
test edi, edi
jne 0x10002b89
push 8
pop ebx
jmp 0x10002b89
mov edi, dword [ebp + 8]
push 0x7f
pop ebx
jmp 0x10002b89
mov edi, esi
test ebx, ebx
jne 0x10002baa
push 1
push edi
call fcn.10002971
mov ebx, eax
cmp edi, esi
je 0x10002baa
push edi
push 0
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x14]
push 0
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10002bcf
push 0xb
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x10003a48
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call fcn.10012dc0
cmp eax, 0x57
jne 0x10003a67
mov dword [ebp - 4], 1
lea eax, [ebp - 0xc]
push eax
push 0x1002d2c1
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10003b23
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push dword [0x1002c3f0]
push dword [ebp - 0xc]
call fcn.10012e38
test eax, eax
jne 0x10003b1a
push dword [ebp - 8]
call fcn.10001754
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, eax
cmp edi, ebx
je 0x10003af1
cmp dword [ebp - 4], ebx
jne 0x10003ae0
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x10003ad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10003ae7
mov dword [0x1002c0f0], eax
jmp 0x10003ae7
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push ebx
push dword [0x1002c0e0]
call esi
cmp dword [ebp - 4], ebx
je 0x10003b12
push dword [ebp - 8]
push ebx
push dword [0x1002c0e0]
call esi
push dword [0x1002c3f0]
push dword [ebp - 0xc]
call fcn.10012f72
jmp 0x10003b1a
mov eax, dword [ebp - 8]
mov dword [0x1002c4a8], eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10003daa
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1002b4ec]
push ebx
push esi
push edi
mov edi, dword [0x1002c19c]
push 0x28
pop esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 1
mov dword [ebp - 4], esi
call fcn.10003c4d
mov dword [ebp - 0xc], eax
mov ebx, 0x1002b4ec
mov edi, 0x1002d1bf
test eax, eax
jne 0x10003e48
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push 0
push edi
push dword [ebp - 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x10003e07
cmp dword [ebp - 4], esi
je 0x10003e14
mov esi, 0x1002b4f4
call fcn.10015884
push 0x28
pop esi
test dword [0x1002b4f0], 0x8000
jne 0x10003e3f
push esi
push ebx
push 3
push 0
push edi
push dword [ebp - 8]
mov eax, 0x801c
or word [0x1002b4f0], ax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x1002b4ec], 0
jne 0x10003e7a
mov eax, dword [ebp - 0x10]
mov dword [0x1002b4ec], eax
test eax, eax
je 0x10003e70
push 3
push esi
push ebx
push edi
call fcn.10003d51
cmp dword [0x1002b4ec], 0
jne 0x10003e7a
mov dword [0x1002b4ec], 0x3e8
cmp dword [0x1002c28c], 0
jne 0x10003ec5
push 0x27
call fcn.100012ea
mov esi, eax
test esi, esi
je 0x10003ebf
mov eax, dword [0x1002b500]
bswap eax
push eax
mov eax, dword [0x1002b4fc]
bswap eax
push eax
mov eax, dword [0x1002b4f8]
bswap eax
push eax
mov eax, dword [0x1002b4f4]
bswap eax
push eax
push 0x1002d3ff
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
mov dword [0x1002c28c], esi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004263
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
lea eax, [ebp - 8]
push eax
push dword [0x1002c1a8]
xor ebx, ebx
push SysReAllocString
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10004301
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
mov edi, 0x1002e23c
push edi
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], ebx
je 0x100042f6
push dword [ebp - 4]
push ebx
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x100042f6
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x100042e6
push dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.10013c1a
mov dword [ebp - 0x10], eax
push dword [ebp - 0xc]
push ebx
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [ebp - 0x10]
pop ebx
leave
ret
Function at 0x10004651
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
xor ebx, ebx
lea eax, [ebp - 0x20]
push eax
push ebx
mov edi, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
call fcn.10003c4d
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x100047be
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
mov esi, 0x105
push esi
push ebx
push dword [0x1002c0e0]
mov dword [ebp - 4], 8
call edi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x100047b4
push esi
push ebx
push dword [0x1002c0e0]
mov dword [ebp - 0x18], esi
call edi
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x100047a4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], esi
push dword [ebp - 0x10]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 4], eax
cmp eax, 0xea
jne 0x10004736
cmp dword [ebp - 0x14], esi
jbe 0x100046fa
inc dword [ebp - 0x10]
mov dword [ebp - 4], ebx
jmp 0x1000476e
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 8], eax
jbe 0x10004794
push dword [ebp - 0xc]
push ebx
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
push eax
push ebx
push dword [0x1002c0e0]
mov dword [ebp - 0x18], eax
call edi
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x100046f5
mov dword [ebp - 4], 8
jmp 0x10004794
cmp eax, ebx
jne 0x10004788
cmp dword [ebp + 0x10], ebx
je 0x10004751
mov edx, dword [ebp - 0xc]
push ebx
push dword [0x1002c1f4]
push dword [ebp - 8]
call fcn.10013bde
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x10004788
push ebx
push dword [0x1002c1f0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x100046bb
jmp 0x10004794
cmp dword [ebp - 4], 0x103
jne 0x10004794
mov dword [ebp - 4], ebx
push dword [ebp - 0xc]
push ebx
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x1c]
push ebx
push dword [0x1002c0e0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 0xc