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

Disassembly:
mov eax, 0x100875f4
call fcn.100232ac
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edi, edi
test eax, 0x80000000
jne 0x10003bf4
mov dword [ebp - 0x10], edi
push 2
push str.SoftwareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.10004204
cmp eax, edi
jne 0x10003bc9
push esi
mov esi, str.OCULAR_SafeDisk_extension
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push edi
push str.ACF6FD83_0179_434F_B5D2_BFBFA10F8B2E
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, edi
pop esi
je 0x10003be2
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
je 0x10003bdb
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80070005
jmp 0x10003c00
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
je 0x10003bf4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push edi
push 0x100ae828
call fcn.10004506
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x10003c0d
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x10087608
call fcn.100232ac
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor esi, esi
test eax, 0x80000000
jne 0x10003c66
mov dword [ebp - 0x10], esi
push 2
push str.SoftwareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.10004204
cmp eax, esi
jne 0x10003c54
push str.ACF6FD83_0179_434F_B5D2_BFBFA10F8B2E
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], esi
je 0x10003c66
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push esi
push 0x100ae828
call fcn.10004691
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x1000636a
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
call fcn.10021bb0
test eax, eax
je 0x10006389
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x10006390
mov dword [0x100ae93c], 0x57
xor eax, eax
jmp 0x10006416
push ebx
push esi
push 0xf003f
push edi
push edi
mov dword [ebp - 4], edi
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, edi
je 0x100063cc
push 0x10
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, edi
je 0x100063cc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
mov dword [0x100ae93c], edi
jne 0x100063fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push eax
push str.CTSDEncryptDrv:_StartService___failed__error_ld_0x_08x__n
push str.TSDEncryptDrv
push 4
push 0x100adefc
mov dword [0x100ae93c], eax
call fcn.1000586e
add esp, 0x18
cmp esi, edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x1000640a
push esi
call edi
test ebx, ebx
je 0x10006411
push ebx
call edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
leave
ret

Function at 0x10009dea
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.10023e80
mov edi, dword [ebp + 0xc]
mov ebx, eax
pop ecx
mov eax, 0x1f3
sub eax, ebx
push edi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x10009e22
push 1
pop eax
jmp 0x10009ec9
mov dword [ebp + 8], 1
test byte [edi], 0x10
je 0x10009e8d
cmp byte [edi + 0x2c], 0x2e
lea ecx, [edi + 0x2c]
jne 0x10009e48
mov al, byte [edi + 0x2d]
cmp al, 0x2e
jne 0x10009e44
cmp byte [edi + 0x2e], 0
je 0x10009ea5
test al, al
je 0x10009ea5
push ecx
call fcn.10023e80
inc eax
pop ecx
cmp dword [ebp - 4], eax
jb 0x10009ea5
and byte [ebx + esi - 1], 0
lea eax, [edi + 0x2c]
push eax
push esi
call fcn.10023fe0
push 0x1009e69c
push esi
call fcn.10023fe0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push esi
call fcn.10009dea
add esp, 0x20
mov byte [ebx + esi - 1], 0x2a
and byte [ebx + esi], 0
mov dword [ebp + 8], eax
jmp 0x10009ea5
push dword [ebp + 0x14]
and byte [ebx + esi - 1], 0
lea eax, [edi + 0x2c]
push eax
push esi
call dword [ebp + 0x10]
mov dword [ebp + 8], eax
mov byte [ebx + esi - 1], 0x2a
cmp dword [ebp + 8], 0
je 0x10009ebd
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10009e29
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10009f8c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.10022e89
mov edi, dword [ebp + 0xc]
mov ebx, eax
pop ecx
mov eax, 0x1f3
sub eax, ebx
push edi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x10009fc4
push 1
pop eax
jmp 0x1000a078
mov dword [ebp + 8], 1
test byte [edi], 0x10
je 0x1000a039
cmp word [edi + 0x2c], 0x2e
lea ecx, [edi + 0x2c]
jne 0x10009ff0
mov ax, word [edi + 0x2e]
cmp ax, 0x2e
jne 0x10009feb
cmp word [edi + 0x30], 0
je 0x1000a054
test ax, ax
je 0x1000a054
push ecx
call fcn.10022e89
inc eax
pop ecx
cmp dword [ebp - 4], eax
jb 0x1000a054
and word [esi + ebx*2 - 2], 0
lea eax, [edi + 0x2c]
push eax
push esi
call fcn.10023365
push 0x1009e6a0
push esi
call fcn.10023365
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push esi
call fcn.10009f8c
add esp, 0x20
mov word [esi + ebx*2 - 2], 0x2a
and word [esi + ebx*2], 0
mov dword [ebp + 8], eax
jmp 0x1000a054
push dword [ebp + 0x14]
and word [esi + ebx*2 - 2], 0
lea eax, [edi + 0x2c]
push eax
push esi
call dword [ebp + 0x10]
mov dword [ebp + 8], eax
mov word [esi + ebx*2 - 2], 0x2a
cmp dword [ebp + 8], 0
je 0x1000a06c
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10009fcb
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000a78d
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1000a90f
push esi
call fcn.10023e80
test eax, eax
pop ecx
je 0x1000a90f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000a90f
test bl, 1
je 0x1000a7d4
and ebx, 0xfffffffe
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test bl, 0x10
je 0x1000a8f3
and byte [ebp - 0x348], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x347]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x348]
push esi
push eax
call fcn.10023fd0
lea eax, [ebp - 0x348]
push 0x1009e69c
push eax
call fcn.10023fe0
and dword [ebp - 0x244], 0
add esp, 0x10
xor eax, eax
lea edi, [ebp - 0x240]
push 0x4f
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000a8e9
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [ebp - 0x218]
push 0x1009e6d4
push eax
call edi
test eax, eax
je 0x1000a8cc
lea eax, [ebp - 0x218]
push 0x1009e6d0
push eax
call edi
test eax, eax
je 0x1000a8cc
and byte [ebp - 0x104], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.10023fd0
lea eax, [ebp - 0x104]
push 0x1009c118
push eax
call fcn.10023fe0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.10023fe0
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.1000a78d
add esp, 0x20
lea eax, [ebp - 0x244]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000a849
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
jmp 0x1000a8fa
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1000a911
cmp dword [ebp + 0xc], eax
je 0x1000a911
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x1000a911
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x1000a915
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
je 0x1000aacd
push edi
call fcn.10022e89
test eax, eax
pop ecx
je 0x1000aacd
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
push edi
mov dword [ebp - 4], esi
call fcn.10008800
add esp, 0x1c
test eax, eax
je 0x1000aacd
cmp dword [ebp - 4], 0xffffffff
je 0x1000aacd
test byte [ebp - 4], 1
je 0x1000a977
and dword [ebp - 4], 0xfffffffe
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 4], 0x10
je 0x1000aab1
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x666]
mov word [ebp - 0x668], si
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x668]
push eax
call fcn.1002338f
lea eax, [ebp - 0x668]
push 0x1009e6a0
push eax
call fcn.10023365
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x45c]
mov dword [ebp - 0x460], esi
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x668]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x1000aa97
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp - 0x434]
push 0x1009e6e0
push eax
call edi
test eax, eax
je 0x1000aa76
lea eax, [ebp - 0x434]
push 0x1009e6dc
push eax
call edi
test eax, eax
je 0x1000aa76
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
mov word [ebp - 0x210], si
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x210]
push eax
call fcn.1002338f
lea eax, [ebp - 0x210]
push 0x1009e6d8
push eax
call fcn.10023365
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.10023365
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.1000a915
add esp, 0x20
lea eax, [ebp - 0x460]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000a9f1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, esi
jne 0x1000aacf
cmp dword [ebp + 0xc], esi
je 0x1000aacf
push 4
push esi
push dword [ebp + 8]
jmp 0x1000aac5
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, esi
jne 0x1000aacf
cmp dword [ebp + 0xc], esi
je 0x1000aacf
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1000aacf
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1000ac40
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
mov edi, dword [ebp + 0xc]
push edi
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000ac74
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
push edi
jmp 0x1000ad2f
test bl, 1
je 0x1000ac84
and ebx, 0xfffffffe
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test bl, 0x10
je 0x1000ad1b
and byte [ebp - 0x204], 0
push 0x7f
pop ecx
xor eax, eax
lea edi, [ebp - 0x203]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
mov ebx, str._s.bak_08X
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push ebx
push eax
call fcn.10024756
and dword [ebp - 4], 0
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
call esi
cmp eax, 0xffffffff
je 0x1000ad0b
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push eax
lea eax, [ebp - 0x204]
push dword [ebp + 0xc]
push ebx
push eax
call fcn.10024756
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa
jl 0x1000acd2
xor eax, eax
jmp 0x1000ad37
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push dword [ebp + 0xc]
mov esi, eax
call fcn.1000bc53
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000b0ea
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
call fcn.10021c00
test eax, eax
je 0x1000b107
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop ebp
ret
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
je 0x1000b170
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x1000b170
lea eax, [esi + esi]
push eax
push ebx
push dword [ebp + 0xc]
call fcn.100232d0
push esi
call fcn.10022ea6
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1000b170
push esi
push ebx
push edi
call fcn.100232d0
add esp, 0xc
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebx, eax
test ebx, ebx
je 0x1000b170
push esi
xor ebx, ebx
push dword [ebp + 0xc]
push 0xffffffffffffffff
push edi
call fcn.1000c132
add esp, 0x10
test eax, eax
je 0x1000b170
push dword [ebp + 0xc]
call fcn.10022e89
pop ecx
mov ebx, eax
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x1000b90b
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x1000bb3a
push esi
call fcn.10023e80
test eax, eax
pop ecx
je 0x1000bb3a
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push ebx
push eax
push esi
mov dword [ebp - 4], ebx
call fcn.10008688
add esp, 0x1c
cmp dword [ebp - 4], 0xffffffff
je 0x1000b962
test byte [ebp - 4], 1
je 0x1000b962
and dword [ebp - 4], 0xfffffffe
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1000bb35
mov ecx, dword [ebp - 4]
and ecx, 0x10
cmp cl, 0x10
jne 0x1000bb3c
push 0x5c
push esi
call fcn.10024a8e
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x1000ba28
inc edi
push str.mails
push edi
call fcn.100248f9
pop ecx
test eax, eax
pop ecx
je 0x1000bb35
push str.files
push edi
call fcn.100248f9
pop ecx
test eax, eax
pop ecx
je 0x1000bb35
push str.WinPatch
push edi
call fcn.100248f9
pop ecx
test eax, eax
pop ecx
je 0x1000bb35
push str.tsdocbak
push edi
call fcn.100248f9
pop ecx
test eax, eax
pop ecx
je 0x1000bb35
push 0x1009e984
push edi
call fcn.100248f9
pop ecx
test eax, eax
pop ecx
je 0x1000bb35
mov esi, str.Temp_Docerr_
push esi
call fcn.10023e80
push eax
push esi
push edi
call fcn.100244ca
add esp, 0x10
test eax, eax
je 0x1000bb35
mov esi, dword [ebp + 8]
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x353]
mov byte [ebp - 0x354], bl
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x103
push 0x1009e96c
lea eax, [ebp - 0x354]
push esi
push eax
call fcn.100248a8
add esp, 0x10
test eax, eax
jl 0x1000bb3a
push 0x4f
xor eax, eax
pop ecx
lea edi, [ebp - 0x148]
mov dword [ebp - 0x14c], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x1000bb35
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [ebp - 0x120]
push 0x1009e6d4
push eax
call edi
test eax, eax
je 0x1000bb0f
lea eax, [ebp - 0x120]
push 0x1009e6d0
push eax
call edi
test eax, eax
je 0x1000bb0f
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x24f]
mov byte [ebp - 0x250], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x250]
push dword [ebp + 8]
push 0x1009e6e8
push esi
push eax
call fcn.100248a8
add esp, 0x14
test eax, eax
jl 0x1000bb0f
push dword [ebp + 0x10]
lea eax, [ebp - 0x250]
push dword [ebp + 0xc]
push eax
call fcn.1000b90b
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], ebx
je 0x1000bb2c
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000ba94
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 8]
jmp 0x1000bb3c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10011470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x100114be
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100114be
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x100114c3
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x100114a9
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x100114d3
test esi, esi
jne 0x100114f1
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x100114ef
mov byte [eax + esi - 1], 0
jne 0x100114f8
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret

Function at 0x10016c50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x10016ca0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x10016ca0
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x10016ca5
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x10016c8b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x10016cb2
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x1001d5f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x1001d631
lea edx, [esp + 0x1c]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x1c]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1001d633
mov esi, edi
test esi, esi
je 0x1001d698
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x1001d68d
cmp dword [esp + 0x20], 4
jne 0x1001d68d
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x1001d68d
cmp esi, edi
je 0x1001d67f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x1001d698
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x1001d6b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
mov dword [esp + 0xc], 0
je 0x1001d705
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x1001d705
cmp dword [esp + 0x18], 4
jne 0x1001d705
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
mov eax, dword [esp + 0xc]
je 0x1001d709
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x1001d9a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x100882ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x1008a6f0]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x1001da0b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1001da0d
mov esi, edi
test esi, esi
je 0x1001dad7
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001dacc
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x1001da4f
cmp eax, 2
je 0x1001da4f
cmp eax, 6
je 0x1001da4f
cmp eax, 7
jne 0x1001dacc
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.10022ea6
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebp
jne 0x1001dab2
lea ecx, [esp + 0x14]
call fcn.1000dca0
cmp esi, dword [esp + 0x14]
je 0x1001daa7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.10022daf
add esp, 4
jmp 0x1001dae9
call fcn.10022daf
add esp, 4
lea ecx, [esp + 0x10]
push 0x100ae8ac
call fcn.1000dca0
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x1001dad7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1001dae9
push eax
lea ecx, [esp + 0x14]
call fcn.1000dca0
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.1000d000
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.1000da40
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10