joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406c20
Capabilities:
Create directory
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x10cc]
mov eax, 0x114c
call fcn.0040b390
mov eax, dword [0x41228c]
xor eax, ebp
mov dword [ebp + 0x10c8], eax
push ebx
mov ebx, dword [ebp + 0x10d4]
push esi
push edi
mov esi, 0x7ff
xor edi, edi
push esi
lea eax, [ebp + 0x8c9]
push edi
push eax
mov dword [ebp - 0x7c], edi
call sub.MSVCR100.dll_memset
push esi
lea eax, [ebp + 0xc9]
push edi
push eax
mov byte [ebp + 0xc8], 0
call sub.MSVCR100.dll_memset
add esp, 0x18
push 8
pop ecx
mov esi, str.SOFTWAREMozillaMozilla_Firefox
lea edi, [ebp + 0x8c8]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x7c]
push eax
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp + 0x8c8]
push eax
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [ebp - 0x80], 0x800
call esi
test eax, eax
je 0x406cb4
xor eax, eax
jmp 0x406d9f
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0xc8]
push eax
push 0
push 0
push str.CurrentVersion
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x7c]
test eax, eax
je 0x406ce0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406cad
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0xc8]
push eax
lea eax, [ebp + 0x8c8]
push str.SOFTWAREMozillaMozilla_Firefox_sMain
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x8c8]
push eax
push edi
call esi
test eax, eax
jne 0x406cad
lea eax, [ebp - 0x80]
push eax
push ebx
push 0
push 0
push str.Install_Directory
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x7c]
test eax, eax
jne 0x406cd8
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406d44
sub eax, esi
cmp byte [eax + ebx - 1], 0x5c
je 0x406d66
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406d57
mov esi, 0x40e50c
movsw word es:[edi], word [esi]
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406d69
mov esi, str.extensions
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x78]
push eax
push ebx
movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x406db7
push 0
push ebx
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
je 0x406cad
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x10c8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b376
add ebp, 0x10cc
leave
ret
push eax
call dword [sym.imp.kernel32.dll_FindClose]
test byte [ebp - 0x78], 0x10
jmp 0x406d96
Function at 0x406e8d
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x10c4]
mov eax, 0x1144
call fcn.0040b390
mov eax, dword [0x41228c]
xor eax, ebp
mov dword [ebp + 0x10c0], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10cc]
push 0x140
lea eax, [ebp - 0x80]
push 0
push eax
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
lea eax, [ebp + 0xc0]
push str._s.
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0xc0]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406faa
push 0x40e53c
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpA]
test eax, eax
je 0x406f76
push 0x40e540
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpA]
test eax, eax
je 0x406f76
lea eax, [ebp - 0x54]
push eax
push edi
lea eax, [ebp + 0x8c0]
push 0x40e544
push eax
call esi
mov eax, dword [ebp - 0x80]
add esp, 0x10
and eax, 0xfffffffe
push eax
lea eax, [ebp + 0x8c0]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test byte [ebp - 0x80], 0x10
lea eax, [ebp + 0x8c0]
push eax
jne 0x406f70
call dword [sym.imp.kernel32.dll_DeleteFileA]
test eax, eax
jne 0x406f76
push eax
lea eax, [ebp + 0x8c0]
push eax
call fcn.00402b4e
pop ecx
jmp 0x406f75
call fcn.00406e8d
pop ecx
lea eax, [ebp - 0x80]
push eax
push ebx
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x406ef9
push ebx
call dword [sym.imp.kernel32.dll_FindClose]
push edi
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
mov esi, eax
test esi, esi
jne 0x406fa6
push eax
push edi
call fcn.00402b4e
pop ecx
pop ecx
mov eax, esi
jmp 0x406fad
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x10c0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b376
add ebp, 0x10c4
leave
ret

Function at 0x4082fd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x408314
test al, 0x10
je 0x408314
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x408822
Capabilities:
Connect pipe
Create pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
push ebp
lea ebp, [esp - 0x58c]
sub esp, 0x60c
mov eax, dword [0x41228c]
xor eax, ebp
mov dword [ebp + 0x588], eax
mov eax, dword [ebp + 0x594]
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
mov esi, 0x400
push ebx
push ebx
push esi
push esi
push 1
push 6
push 0x80003
push 0x40eda8
call dword [sym.imp.kernel32.dll_CreateNamedPipeA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40889b
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 5
je 0x408865
cmp eax, 0xe7
je 0x408865
jmp 0x4089a6
push ebx
push edi
call dword [sym.imp.kernel32.dll_ConnectNamedPipe]
test eax, eax
jne 0x4088bd
call dword [sym.imp.kernel32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
inc eax
je 0x408978
mov eax, dword [ebp - 0x7c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4088c3
push ebx
sub eax, edx
lea ecx, [ebp - 0x80]
push ecx
inc eax
push eax
push dword [ebp - 0x7c]
push edi
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x408900
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push str.sendMessageToBroker_WriteFile_error:__d_n
call fcn.0040a0af
pop ecx
pop ecx
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x4089a6
push 0x1ff
lea eax, [ebp + 0x389]
push ebx
push eax
mov byte [ebp + 0x388], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 0x7c]
push eax
push 0x200
lea eax, [ebp + 0x388]
push eax
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, eax
cmp esi, ebx
jne 0x408946
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xea
jne 0x408965
lea eax, [ebp + 0x388]
push eax
lea eax, [ebp - 0x78]
push 0x40ee14
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
cmp esi, ebx
je 0x40891b
jmp 0x408978
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push str.sendMessageToBroker_ReadFile_error:__d_n
call fcn.0040a0af
pop ecx
pop ecx
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
push 8
mov edi, 0x40ee18
lea esi, [ebp - 0x78]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x408993
inc eax
jmp 0x4089a8
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push str.sendMessageToBroker_ConnectNamedPipe_error:__d_n
call fcn.0040a0af
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x588]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b376
add ebp, 0x58c
leave
ret
Function at 0x408af3
Capabilities:
Check if file exists
Check mutex on windows
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x610
mov eax, dword [0x41228c]
xor eax, esp
mov dword [esp + 0x60c], eax
push ebx
xor bl, bl
call fcn.004089cc
test eax, eax
je 0x408cb1
call fcn.0040a0af
test eax, eax
je 0x408cb1
push esi
mov esi, dword [esp + 0x624]
push edi
push 0xa
mov edi, str._shutdown
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x408b3d
inc bl
push ebp
push str.SunJavaBrokerMutex
push 1
xor ebp, ebp
push ebp
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, ebp
je 0x408ca5
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x408c9e
test bl, bl
jne 0x408cae
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
push ebp
push ebp
push 3
push ebp
push ebp
push 0xc0000000
push 0x40eef4
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x408c4a
push 0x1ff
lea eax, [esp + 0x21]
push ebp
push eax
mov byte [esp + 0x28], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebp
lea eax, [esp + 0x1c]
push eax
push 0x200
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.kernel32.dll_ReadFile]
cmp eax, ebp
jne 0x408bda
call edi
cmp eax, 0xea
je 0x408bb6
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x220]
push 0x40ef0c
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
lea eax, [esp + 0x228]
push eax
call fcn.00408580
add esp, 0x10
mov edi, str.SUCCESS
test eax, eax
jne 0x408c10
mov edi, str.FAILED
push ebp
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
push eax
push edi
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
mov edi, eax
cmp edi, ebp
jne 0x408c38
push str.Pipe__close_pipe_n
call fcn.0040a0af
pop ecx
push esi
call ebx
cmp edi, ebp
je 0x408c96
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x408b7d
call edi
cmp eax, 2
jne 0x408c61
push 0x1f4
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x408b7d
cmp eax, 0xe7
jne 0x408c84
push 0xffffffffffffffff
push str..pipejbrokerpipe
call dword [sym.imp.kernel32.dll_WaitNamedPipeA]
test eax, eax
jne 0x408b7d
call edi
jmp 0x408b7d
push eax
push str.pipe_CreateFile_error:__d_n
call fcn.0040a0af
pop ecx
pop ecx
jmp 0x408b7d
push dword [esp + 0x10]
call ebx
jmp 0x408cae
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
test bl, bl
je 0x408cae
call fcn.004089c0
pop ebp
pop edi
pop esi
mov ecx, dword [esp + 0x610]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040b376
add esp, 0x610
ret 0x10

Function at 0x40a6c1
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
cmp dword [0x412664], 0
je 0x40a6cd
mov al, 1
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
push 0
push 1
push 0
push 0x40f27c
mov edi, 0x412664
push edi
call esi
test eax, eax
jne 0x40a70f
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x40a70b
push 8
push 1
push 0
push str.__SunJavaKernel
push edi
call esi
test eax, eax
jne 0x40a70f
xor al, al
jmp 0x40a711
mov al, 1
pop edi
pop esi
ret
Function at 0x40a98c
Capabilities:
Check if file exists
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x794]
sub esp, 0x814
mov eax, dword [0x41228c]
xor eax, ebp
mov dword [ebp + 0x790], eax
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
mov dword [ebp - 0x80], esi
call dword [sym.imp.kernel32.dll_DeleteFileA]
test eax, eax
jne 0x40a9df
mov ebx, dword [sym.imp.kernel32.dll_GetLastError]
call ebx
cmp eax, 2
je 0x40a9df
call ebx
push eax
push str.CopyPath_DeleteFile_error:__d_n
call fcn.0040a0af
pop ecx
pop ecx
xor al, al
jmp 0x40aab5
xor ebx, ebx
push ebx
push 0x80
push 1
push ebx
push ebx
push 0xc0000000
push edi
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x40aa0d
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push str.CopyPath_CreateFile_error:__d_n
jmp 0x40a9d1
push ebx
lea eax, [ebp - 0x74]
push eax
mov edi, 0x800
push edi
lea eax, [ebp - 0x70]
push eax
push esi
mov esi, dword [sym.imp.kernel32.dll_ReadFile]
jmp 0x40aa58
cmp dword [ebp - 0x74], ebx
je 0x40aa80
push ebx
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x40aa60
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0x74]
jne 0x40aa71
push ebx
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x80]
call esi
cmp eax, ebx
jne 0x40aa25
jmp 0x40aa84
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push str.CopyPath_WriteFile_error:__d_n
jmp 0x40a9d1
push str.CopyPath_WriteFile_short_written_count_n
call fcn.0040a0af
jmp 0x40a9d7
cmp eax, ebx
jne 0x40aa95
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push str.CopyPath_ReadFile_error:__d_n
jmp 0x40a9d1
push dword [ebp - 0x78]
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x40aab3
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push str.CopyPath_CloseHandle_error:__d_n
jmp 0x40a9d1
mov al, 1
mov ecx, dword [ebp + 0x790]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b376
add ebp, 0x794
leave
ret
Function at 0x40b376
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41228c]
jne 0x40b380
repz ret
jmp fcn.0040b979

Function at 0x40b90e
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x410768
call fcn.0040b920
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
cmp dword [0x412a14], ebx
jne 0x40b6a9
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov edi, 0x412a10
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x40b6e3
cmp eax, esi
jne 0x40b6d6
xor esi, esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x40b6e6
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x40b6bd
xor esi, esi
inc esi
mov eax, dword [0x412a0c]
cmp eax, esi
jne 0x40b6f9
push 0x1f
call sub.MSVCR100.dll__amsg_exit
pop ecx
jmp 0x40b734
mov eax, dword [0x412a0c]
test eax, eax
jne 0x40b72e
mov dword [0x412a0c], esi
push 0x40d330
push 0x40d324
call sub.MSVCR100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40b734
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40b84e
mov dword [0x4126c8], esi
mov eax, dword [0x412a0c]
cmp eax, esi
jne 0x40b758
push 0x40d320
push 0x40d300
call sub.MSVCR100.dll__initterm
pop ecx
pop ecx
mov dword [0x412a0c], 2
cmp dword [ebp - 0x24], ebx
jne 0x40b765
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x412a18], ebx
je 0x40b786
push 0x412a18
call fcn.0040a0af
pop ecx
test eax, eax
je 0x40b786
push ebx
push 2
push ebx
call dword [0x412a18]
mov eax, dword [sym.imp.MSVCR100.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40b7df
cmp al, bl
je 0x40b79f
cmp dword [ebp - 0x1c], ebx
jne 0x40b7df
mov al, byte [esi]
cmp al, bl
je 0x40b7af
cmp al, 0x20
ja 0x40b7af
inc esi
mov dword [ebp - 0x20], esi
jmp 0x40b79f
test byte [ebp - 0x40], 1
je 0x40b7bb
movzx eax, word [ebp - 0x3c]
jmp 0x40b7be
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x4126c4], eax
cmp dword [0x4126b8], ebx
jne 0x40b834
push eax
call dword [sym.imp.MSVCR100.dll_exit]
cmp al, 0x22
jne 0x40b7ee
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR100.dll__ismbblead]
pop ecx
test eax, eax
je 0x40b801
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x40b78d
cmp dword [0x4126c8], ebx
jne 0x40b842
call dword [sym.imp.MSVCR100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x4126c4]
call fcn.0040b965
ret
call fcn.0040a0af
jmp 0x40b67b
Function at 0x10005bcf
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x3c4
mov eax, 0x1003132a
call fcn.10009696
mov edi, ecx
cmp dword [edi + 0x20], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3cc], eax
je 0x10005d61
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 0x3bc], 7
mov dword [ebp - 0x3b8], 1
jb 0x10005c14
mov eax, dword [esi]
lea ecx, [ebp - 0x3b8]
xor ebx, ebx
push ecx
push ebx
lea ecx, [ebp - 0x3bc]
push ecx
push ebx
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
cmp ecx, 2
je 0x10005d57
cmp dword [ebp - 0x3bc], 7
jne 0x10005d57
test ecx, ecx
je 0x10005c64
push esi
lea eax, [edi + 8]
push eax
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x3b4]
call fcn.10027d86
jmp 0x10005d6e
mov eax, dword [ebp - 0x3b8]
add eax, 2
mov dword [ebp - 0x3c8], ebx
mov dword [ebp - 0x3b8], eax
mov dword [ebp - 0x3c4], ebx
mov dword [ebp - 0x3c0], ebx
lea ecx, [ebp - 0x3c8]
mov dword [ebp - 4], ebx
push ecx
push eax
call fcn.10027d86
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x3c4]
mov ecx, dword [ebp - 0x3c8]
sub eax, ecx
push 0
pop eax
cmove ecx, eax
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10005cba
mov eax, dword [esi]
lea edx, [ebp - 0x3b8]
push edx
push ecx
lea ecx, [ebp - 0x3bc]
push ecx
push ebx
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
jne 0x10005c4c
mov edx, dword [ebp - 0x3c4]
mov ecx, dword [ebp - 0x3c8]
sub edx, ecx
mov esi, dword [ebp - 0x3cc]
xor eax, eax
test edx, edx
cmove ecx, eax
lea eax, [ecx + ebx*2]
push eax
lea ecx, [ebp - 0x28]
call fcn.10027d86
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.10027d86
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
inc eax
mov byte [ebp - 4], 1
add ebx, eax
call fcn.100023a0
mov edx, dword [ebp - 0x3c4]
mov ecx, dword [ebp - 0x3c8]
sub edx, ecx
push 0
mov eax, ecx
pop edi
cmove eax, edi
cmp byte [eax + ebx*2], 0
jne 0x10005cf2
test ecx, ecx
je 0x10005d53
mov edx, dword [ebp - 0x3c0]
sub edx, ecx
call fcn.10002962
mov al, 1
jmp 0x10005d59
xor al, al
call fcn.10009655
ret 8
push ecx
push ecx
lea ecx, [ebp - 0x3b4]
call fcn.10005db1
push 0x100437bc
lea eax, [ebp - 0x3b4]
push eax
call fcn.10027d86
int3

Function at 0x100063cd
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x10041bf0
call fcn.10009a30
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.kernel32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x10006443
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x10006443
mov esi, dword [edx + ecx + 0xd8]
lea eax, [ecx + esi]
cmp edi, eax
jb 0x10006443
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x10006443
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x1000644c
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000663a
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov edx, dword [0x10047b00]
push ebx
push esi
mov esi, ecx
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x10047af4]
test edx, edx
jne 0x10006682
test eax, eax
je 0x10006695
mov edx, eax
mov dword [0x10047b00], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x10006695
cmp ecx, ebx
jb 0x10006695
cmp ecx, edi
jbe 0x10006779
mov edx, eax
test eax, eax
jmp 0x100066b7
test edx, edx
je 0x100066b2
mov eax, dword [edx + 8]
test eax, eax
je 0x100066b2
cmp eax, ebx
jb 0x100066b2
cmp eax, edi
jbe 0x10006779
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x10047b00], edx
jne 0x1000669b
and esi, 0xffff0000
cmp esi, 0x40000000
jbe 0x100066f9
lea ecx, [esi - 0x40000000]
mov edx, esi
call fcn.10027d86
mov edx, eax
test edx, edx
jne 0x1000673f
lea edx, [esi - 0x40000000]
mov ecx, ebx
call fcn.10027d86
mov edx, eax
test edx, edx
jne 0x1000673f
cmp esi, 0x40000000
jae 0x10006721
lea edx, [esi + 0x40000000]
mov ecx, esi
call fcn.10027d86
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, edi
lea ecx, [esi + 0x40000000]
call fcn.10027d86
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, esi
mov ecx, ebx
call fcn.10027d86
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, edi
mov ecx, esi
call fcn.10027d86
mov edx, eax
test edx, edx
je 0x1000679e
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x10047af4]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x10047b00], edx
mov dword [0x10047af4], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x10006769
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x1000679e
cmp esi, edi
ja 0x1000679e
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.1000aff4
add esp, 0xc
mov eax, esi
jmp 0x100067a0
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x10006641
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov edx, dword [0x10047b00]
push ebx
push esi
mov esi, ecx
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x10047af4]
test edx, edx
jne 0x10006682
test eax, eax
je 0x10006695
mov edx, eax
mov dword [0x10047b00], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x10006695
cmp ecx, ebx
jb 0x10006695
cmp ecx, edi
jbe 0x10006779
mov edx, eax
test eax, eax
jmp 0x100066b7
test edx, edx
je 0x100066b2
mov eax, dword [edx + 8]
test eax, eax
je 0x100066b2
cmp eax, ebx
jb 0x100066b2
cmp eax, edi
jbe 0x10006779
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x10047b00], edx
jne 0x1000669b
and esi, 0xffff0000
cmp esi, 0x40000000
jbe 0x100066f9
lea ecx, [esi - 0x40000000]
mov edx, esi
call fcn.10027d86
mov edx, eax
test edx, edx
jne 0x1000673f
lea edx, [esi - 0x40000000]
mov ecx, ebx
call fcn.10027d86
mov edx, eax
test edx, edx
jne 0x1000673f
cmp esi, 0x40000000
jae 0x10006721
lea edx, [esi + 0x40000000]
mov ecx, esi
call fcn.10027d86
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, edi
lea ecx, [esi + 0x40000000]
call fcn.10027d86
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, esi
mov ecx, ebx
call fcn.10027d86
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, edi
mov ecx, esi
call fcn.10027d86
mov edx, eax
test edx, edx
je 0x1000679e
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x10047af4]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x10047b00], edx
mov dword [0x10047af4], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x10006769
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x1000679e
cmp esi, edi
ja 0x1000679e
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.1000aff4
add esp, 0xc
mov eax, esi
jmp 0x100067a0
xor eax, eax
pop edi
pop esi
pop ebx
ret