joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401680
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
push 0x104
mov dword [esp + 0x10], 0
call fcn.00402110
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4016ae
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x4017a9
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4016fc
xor ecx, ecx
cmp eax, 2
sete cl
push ebx
mov dword [esp + 0x10], ecx
call fcn.004024a0
mov eax, dword [esp + 0x10]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401701
sub eax, edx
cmp byte [eax + edi - 1], 0x5c
lea esi, [eax + edi]
je 0x40171a
mov byte [esi], 0x5c
inc esi
mov byte [esi], cl
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
push ebx
push 0
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40178b
push ebx
push 0x104
push esi
call fcn.00402820
mov edx, dword [ebp + 8]
push edi
push edx
call fcn.00401680
add esp, 0x14
test eax, eax
je 0x40178b
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
push 0
push edx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x401744
mov byte [esi - 1], 0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4017b1
mov dword [esp + 0xc], 1
push ebx
call fcn.004024a0
mov eax, dword [esp + 0x10]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4017d0
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push str.IsWow64Process
xor ebp, ebp
push str.kernel32
mov byte [esp + 0x17], 1
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x8e3e50], eax
cmp eax, ebp
je 0x40181f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x8e3e50]
cmp dword [esp + 0x10], ebp
jne 0x401831
mov esi, 0x542fb8
mov ebx, 0xae000
jmp 0x40183b
mov esi, 0x42c0b0
mov ebx, 0x116f08
push edi
push ebx
call fcn.00402110
add esp, 4
cmp byte [esi], 0x4d
mov edi, eax
mov dword [esp + 0x14], edi
jne 0x40185a
cmp byte [esi + 1], 0x5a
jne 0x40185a
mov dword [esp + 0x18], ebp
xor eax, eax
mov dword [0x8e3e68], eax
cmp ebx, ebp
jbe 0x40189e
sub edi, esi
mov ebp, ebx
lea esp, [esp]
mov cl, byte [eax + 0x5f0fc0]
inc eax
cmp eax, 0x11
jne 0x40187e
xor eax, eax
cmp dword [esp + 0x18], 0
je 0x40188e
mov dl, byte [esi]
xor dl, cl
mov byte [edi + esi], dl
jmp 0x401893
mov cl, byte [esi]
mov byte [edi + esi], cl
inc esi
sub ebp, 1
jne 0x401870
mov dword [0x8e3e68], eax
push 0x104
call fcn.00402110
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x4018bc
mov ebp, dword [esp + 0x1c]
xor bl, bl
jmp 0x401949
push 0x104
call fcn.00402110
add esp, 4
mov ebp, eax
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4018e1
mov byte [esp + 0x13], al
jmp 0x40193c
mov edx, dword [esp + 0x24]
push edx
push ebp
push str._sdrivers_s.sys
push 0x104
push edi
call fcn.00402440
add esp, 0x14
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401921
mov byte [esp + 0x13], 0
jmp 0x40193c
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x20]
push eax
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004024a0
mov bl, byte [esp + 0x17]
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
test eax, eax
je 0x40195b
push eax
call fcn.004024a0
add esp, 4
test ebp, ebp
je 0x401968
push ebp
call fcn.004024a0
add esp, 4
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x10
ret
Function at 0x401980
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Get file attributes

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x104
call fcn.00402110
push 0x104
mov esi, eax
call fcn.00402110
push 0x104
mov edi, eax
call fcn.00402110
add esp, 0xc
mov ebp, eax
test esi, esi
jne 0x4019b6
xor bl, bl
jmp 0x401af6
push 0x104
push 0
push esi
call fcn.00409ec0
add esp, 0xc
test edi, edi
jne 0x4019d1
xor bl, bl
jmp 0x401aed
push 0x104
push 0
push edi
call fcn.00409ec0
add esp, 0xc
test ebp, ebp
jne 0x4019ec
xor bl, bl
jmp 0x401aed
push 0x104
push 0
push ebp
call fcn.00409ec0
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
add esp, 0xc
push 0x104
push ebp
call ebx
test eax, eax
jne 0x401a15
xor bl, bl
jmp 0x401aed
push 0x104
push edi
call ebx
test eax, eax
jne 0x401a28
xor bl, bl
jmp 0x401aed
push str.drivers_
push 0x104
push ebp
call fcn.00402b00
push ebp
push 0x104
push esi
call fcn.00402b00
push str.USBSTOR.SYS
push 0x104
push esi
call fcn.00402b00
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x24
push esi
call ebx
cmp eax, 0xffffffff
jne 0x401a91
push 0x104
push 0
push esi
call fcn.00409ec0
push ebp
push 0x104
push esi
call fcn.00402b00
push 0x429890
push 0x104
push esi
call fcn.00402b00
add esp, 0x24
push esi
call ebx
cmp eax, 0xffffffff
jne 0x401a9d
xor bl, bl
jmp 0x401aed
push str.drivers_
push 0x104
push edi
call fcn.00402b00
mov eax, dword [esp + 0x20]
push eax
push 0x104
push edi
call fcn.00402b00
push 0x42989c
push 0x104
push edi
call fcn.00402b00
add esp, 0x24
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test al, al
jne 0x401ae1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov bl, al
push esi
call fcn.004024a0
add esp, 4
test edi, edi
je 0x401b03
push edi
call fcn.004024a0
add esp, 4
test ebp, ebp
je 0x401b10
push ebp
call fcn.004024a0
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret

Function at 0x401ba0
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x108
mov eax, dword [0x42b004]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [0x4298c0]
mov cl, byte [0x4298c4]
push 0xff
lea edx, [esp + 9]
push 0
push edx
mov dword [esp + 0xc], eax
mov byte [esp + 0x10], cl
call fcn.00409ec0
push esi
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00402b00
add esp, 0x18
push 4
push 0
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00402100
add esp, 0x108
ret
Function at 0x401c10
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
sub esp, 0x20
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 4
mov dword [esp + 0xc], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x401c52
lea eax, [esp + 8]
push eax
push ebp
mov dword [esp + 0x10], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x401c59
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop ebp
add esp, 0x20
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x401c70
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x20], ecx
jne 0x401c98
mov edx, dword [esp + 0x1c]
push edx
push 0
push 0x1fffff
call edi
mov esi, eax
test esi, esi
je 0x401c98
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
call ebx
lea eax, [esp + 0x14]
push eax
push ebp
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x401c70
push ebp
call ebx
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
add esp, 0x20
ret
Function at 0x402100
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b004]
jne 0x40210a
repz ret
jmp fcn.004033d0
Function at 0x100046c9
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x100928cc], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x1000470d
call ebx
test eax, eax
jns 0x10004703
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x100928c8], eax
mov dword [0x100928cc], 1
mov eax, dword [0x100928c8]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x10004729
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x10004759
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x1000474f
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x10004743
push dword [eax + 8]
call dword [eax]
jmp 0x10004749
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x10004758
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x10005bf5
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x1009140c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
push ebx
mov ebx, ecx
je 0x10005c8d
mov ecx, dword [ebx + 0x2c]
call fcn.10004b2f
test eax, eax
je 0x10005c26
push 1
mov ecx, eax
call fcn.1003b0b0
test byte [ebp + 0xc], 2
je 0x10005c85
push esi
push edi
mov edi, 0x10092ab8
push edi
push str.__supdate_install.exe_
mov esi, 0x104
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.100011f2
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.1004a0d0
push edi
push 0x10071138
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.100011f2
add esp, 0x2c
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov ecx, dword [ebx + 0x2c]
call fcn.100059fc
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.100511f7
leave
ret 0x10

Function at 0x10006656
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100066b0
cmp dword [ebp + 0x10], 1
je 0x10006695
cmp dword [ebp + 0x10], 2
je 0x10006695
push 0xd
pop eax
jmp 0x100066b0
test edi, edi
mov eax, dword [ebp - 4]
je 0x100066ac
test eax, eax
je 0x100066a9
cmp byte [eax + edi - 1], 0
je 0x100066ac
jmp 0x10006690
mov byte [edi], 0
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x1000729e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push esi
push edi
mov esi, ecx
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x1012
push dword [esi + 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
je 0x100072f9
cmp dword [ebp - 0xc], 8
jne 0x100072f9
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x100072f9
push dword [ebp - 8]
mov ecx, esi
call fcn.1000721e
mov eax, dword [ebp + 0x14]
and dword [eax], 0
xor eax, eax
pop edi
inc eax
pop esi
leave
ret 0x10
Function at 0x10007604
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x504
lea ebp, [esp - 4]
mov eax, dword [0x1009140c]
xor eax, ebp
mov dword [ebp + 0x504], eax
push 0x40
mov eax, 0x10069f39
call fcn.1005163c
mov ebx, dword [ebp + 0x510]
xor edi, edi
mov esi, 0x100a61f4
push esi
mov ecx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x24], edi
call fcn.10011f9e
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], 1
call fcn.10011f9e
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 1
call fcn.10011f9e
mov dword [ebp - 0x10], edi
push 0x100a2a38
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.10006ce3
push 0x20019
push 0x10099fb0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
call fcn.10006621
cmp eax, edi
jne 0x1000779e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x400]
push eax
push dword [0x10090d8c]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], 0x104
call fcn.10006656
cmp eax, edi
jne 0x1000779e
push esi
lea ecx, [ebp - 0x1c]
call fcn.10011f9e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
push dword [0x10090d88]
mov byte [ebp - 4], 4
push dword [ebp - 0x10]
mov dword [ebp - 0x28], 0xb
mov dword [ebp - 0x18], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x10007766
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x38]
call fcn.10006742
push 0x200
lea eax, [ebp]
push eax
push edi
lea eax, [ebp - 0x4c]
push eax
push edi
mov esi, 0x800
push esi
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
push 0x200
lea eax, [ebp + 0x200]
push eax
push edi
lea eax, [ebp - 0x4c]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
lea eax, [ebp + 0x200]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push str._s__s
push eax
call fcn.10003171
add esp, 0x10
mov esi, dword [ebp - 0x1c]
push esi
lea eax, [ebp + 0x400]
push eax
push 0x10098628
lea eax, [ebp - 0x14]
push 0x100a2630
push eax
call fcn.10003171
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.10007180
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 3
call fcn.10001bf8
push 0x100a2420
push 0x100a00a8
push 0x100a2528
push 0x1009f490
push str._br__br__a_href__s___s__a__br__a_href__s___s__a_
push ebx
call fcn.10006d08
add esp, 0x18
lea ecx, [ebp - 0x10]
call fcn.1000660a
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.10001bf8
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.10001bf8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x504]
xor ecx, ebp
call fcn.100511f7
add ebp, 0x508
leave
ret
Function at 0x10008319
Capabilities:
Accept command line arguments

Disassembly:
push ebx
xor ebx, ebx
cmp byte [0x1008cc8c], bl
je 0x10008343
push ebx
push str.Embedding
mov byte [0x1008cc8c], bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.10034212
add esp, 0xc
test eax, eax
jne 0x100083a2
call fcn.10007e33
test al, al
je 0x100083a2
push esi
mov esi, dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x140]
cmp eax, dword [0x100a3818]
jbe 0x10008394
cmp byte [esi + 0x144], bl
je 0x10008394
mov eax, dword [esi + 0x60]
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10008394
cmp byte [esi + 0x145], bl
je 0x10008394
mov eax, dword [esp + 0x14]
or word [eax], 0xffff
mov ecx, esi
call fcn.10008196
mov byte [esi + 0x144], 1
mov dword [esi + 0x140], ebx
pop esi
pop ebx
ret 0xc

Function at 0x100089b1
Capabilities:
Log keystrokes via application hook

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebp
push esi
mov esi, ecx
cmp dword [esi + 0x134], 0
push edi
mov edi, dword [sym.imp.USER32.dll_SetWindowsHookExA]
jne 0x100089e3
mov ebp, dword [esi + 0x120]
call ebx
push eax
push 0
push ebp
push 7
call edi
mov dword [esi + 0x134], eax
lea ebp, [esi + 0x138]
cmp dword [ebp], 0
jne 0x10008a09
mov eax, dword [esi + 0x124]
mov dword [esp + 0x10], eax
call ebx
push eax
push 0
push dword [esp + 0x18]
push 2
call edi
mov dword [ebp], eax
lea ebp, [esi + 0x13c]
cmp dword [ebp], 0
jne 0x10008a28
mov esi, dword [esi + 0x128]
call ebx
push eax
push 0
push esi
push 4
call edi
mov dword [ebp], eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10009e03
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
push 0x539
push 5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x10009e25
pop edi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10009e3b
pop edi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, dword [esi]
mov dword [esi], eax
jbe 0x10009e5a
push 0x7a
pop eax
jmp 0x10009e6f
cmp dword [ebp + 0xc], 0
je 0x10009e6d
push eax
push ebx
push dword [ebp + 0xc]
call fcn.10052b10
add esp, 0xc
xor eax, eax
pop ebx
pop edi
pop ebp
ret

Function at 0x10009f76
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8
Function at 0x10009fc9
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x10009fdf
push 0x80004005
call fcn.1000199e
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x10009fe2
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x1000a9b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x1009140c]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.10006621
mov edi, eax
cmp edi, esi
je 0x1000aa18
lea ecx, [ebp - 0x70]
call fcn.1000660a
mov eax, edi
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100511f7
add ebp, 0x98
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x1000aa30
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.1000a9b0
cmp eax, esi
jne 0x1000aa63
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x1000aa20
lea ecx, [ebp - 0x70]
call fcn.1000660a
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.1000660a
mov eax, esi
jmp 0x1000a9fe
Function at 0x1000d74e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x1009140c]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x20
mov eax, 0x1006a4db
call fcn.1005166f
mov edi, ecx
mov eax, dword [ebp + 0x414]
mov esi, dword [ebp + 0x410]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
call dword [0x100913cc]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp], ebx
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x1000d808
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.1000193a
add esp, 0xc
test eax, eax
jl 0x1000d808
mov edi, dword [ebp - 0x24]
cmp edi, 0x400
jg 0x1000d7f0
push edi
call fcn.10002040
test al, al
pop ecx
je 0x1000d7f0
mov eax, edi
call fcn.100524c0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1000d7f9
push edi
lea ecx, [ebp - 0x20]
call fcn.1000246e
push dword [ebp - 0x1c]
push edi
push esi
push eax
call fcn.10009c9a
cmp eax, ebx
jne 0x1000d84d
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1000d818
lea ecx, [ebp]
call fcn.1000a889
lea ecx, [ebp - 0x20]
call fcn.10001e6e
mov eax, 0x8007000e
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.100511f7
add ebp, 0x408
leave
ret 0x10
push 2
push ebx
push eax
call fcn.1000b3ca
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x1c], edi
jne 0x1000d86b
call fcn.10009dd5
mov esi, eax
jmp 0x1000d935
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x1000d888
call fcn.10009dd5
jmp 0x1000d92a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x1000d87e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x18], esi
jae 0x1000d8cf
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1000d8bb
lea ecx, [ebp]
call fcn.1000a889
mov esi, 0x8007000e
lea ecx, [ebp - 0x20]
call fcn.10001e6e
mov eax, esi
jmp 0x1000d825
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.1000c3cc
mov dword [ebp - 4], 1
jmp 0x1000d8f7
cmp dword [ebp], ebx
jne 0x1000d903
mov esi, 0x8007000e
jmp 0x1000d92c
push esi
push dword [ebp - 0x14]
push esi
push dword [ebp]
call fcn.10009cfe
mov eax, dword [ebp]
add esp, 0x10
push dword [ebp + 0x41c]
mov byte [eax + esi], bl
push dword [ebp]
lea ecx, [ebp - 0x2c]
call fcn.1000d32e
mov esi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1000d8c0
lea ecx, [ebp]
call fcn.1000a889
jmp 0x1000d8c0
Function at 0x10015fce
Capabilities:
Set registry value

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x1009140c]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x10
mov eax, 0x1006ab17
call fcn.1005163c
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push ebx
push ebx
push 0x146
add edi, 0x14c
push dword [edi]
mov dword [ebp - 4], ebx
call esi
mov ecx, dword [ebp + 0x40c]
cmp ecx, ebx
mov dword [ebp - 0x10], eax
je 0x10016027
call fcn.100116f7
jmp 0x10016029
xor eax, eax
push eax
push 0xffffffffffffffff
push 0x158
push dword [edi]
call esi
cmp eax, 0xffffffff
jne 0x10016127
cmp dword [ebp - 0x10], 0x14
jl 0x10016063
mov eax, dword [ebp - 0x10]
dec eax
push eax
mov ecx, edi
call fcn.100116a7
push ebx
push ebx
push 0x146
push dword [edi]
call esi
cmp eax, 0x14
mov dword [ebp - 0x10], eax
jge 0x10016044
mov ecx, dword [ebp + 0x40c]
cmp ecx, ebx
je 0x10016074
call fcn.100116f7
jmp 0x10016076
xor eax, eax
push eax
push ebx
push 0x14a
push dword [edi]
call esi
push 0x10099ea8
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], SysReAllocString
call fcn.1000a9b0
lea ecx, [ebp - 0x14]
call fcn.1000660a
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push 0x10099ea8
push SysReAllocString
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.10009f13
push ebx
push ebx
push 0x146
push dword [edi]
call esi
cmp eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ebx
jle 0x10016101
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
push 0x148
push dword [edi]
call esi
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push ebx
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jl 0x100160d0
lea ecx, [ebp - 0x14]
call fcn.1000660a
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x60]
mov ecx, dword [eax]
push 0x7fff0002
push eax
call dword [ecx + 0x50]
push ebx
push ebx
push 0x14e
push dword [edi]
call esi
jmp 0x1001612f
push eax
mov ecx, edi
call fcn.10011677
mov ecx, dword [ebp + 0x40c]
cmp ecx, ebx
je 0x1001613e
call fcn.10012702
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.100511f7
add ebp, 0x404
leave
ret 4