joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a778
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x43a78a
add esp, 0xfffffff0
call fcn.00402ffc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004118c8
mov eax, ebx
call fcn.0043aac4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40b9d8]
call fcn.00402ce4
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x40b9d8]
call fcn.00402ce4
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x40b9d8]
call fcn.00402ce4
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x40b9d8]
call fcn.00402ce4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40b9d8]
call fcn.00402ce4
mov dword [ebx + 0x70], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x43a748
push eax
push 0
push 0
mov eax, dword [0x43fadc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x412d90]
call fcn.0041406c
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x412d90]
call fcn.0041406c
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x412d90]
call fcn.0041406c
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.0043aea4
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43adc0
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43adc0
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43adc0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43a899
call fcn.00403054
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x43aba4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43ad4f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x43ad30
mov dl, 1
mov eax, dword [0x40bcd8]
call fcn.00402ce4
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403984
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x43ad1f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004295f0
test al, al
je 0x43ad12
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x43ad60
lea eax, [ebp - 0x254]
call fcn.0040837c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x43ad12
xor eax, eax
push ebp
push 0x43ad0b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x43ad98
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x43acf4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403bb4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x43acf4
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403bb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ad12
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x43ac15
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040e95c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ad56
lea eax, [ebp - 0x260]
call fcn.00403984
ret

Function at 0x43b59c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4407c4]
cmp byte [eax + 0x95], 0
jne 0x43b60d
cmp dword [0x4407e0], 0
jne 0x43b5ce
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x43b558
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4407e0], eax
cmp dword [0x4407dc], 0
jne 0x43b5e9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4407dc], eax
cmp dword [0x4407e4], 0
jne 0x43b60d
push esp
push 0
push 0
push 0x43b4fc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4407e4], eax
pop edx
ret
Function at 0x43b704
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x43b71b
add esp, 0xfffffff0
call fcn.00402ffc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004118c8
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40b9d8]
call fcn.00402ce4
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40b9d8]
call fcn.00402ce4
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x4134c4]
call fcn.00418eb0
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x43b890
mov eax, dword [0x43fa28]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00419280
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43d0dc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x43fa28]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.00409678
test eax, eax
je 0x43b80e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00407d30
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.004096a0
test eax, eax
je 0x43b822
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403bb4
mov eax, dword [0x43f958]
cmp byte [eax], 0
jne 0x43b853
mov eax, ebx
call fcn.0043b97c
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43b885
call fcn.00403054
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43bbec
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4407c4]
cmp dword [eax + 0x24], 0
je 0x43bc8f
cmp dword [ebx + 0x84], 0
jne 0x43bc89
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x43bb7c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x43bc89
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x43bc52
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x43bc89
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040d09c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x43bc61
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x43c69c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x43c6d1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403a6c
jmp 0x43c6db
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.004039d8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x43d450
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x43d488
mov eax, esi
call fcn.004254f0
test al, al
je 0x43d488
mov eax, dword [ebx + 0x74]
call fcn.004251f4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43d488
push 0
mov eax, dword [ebx + 0x74]
call fcn.004251f4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x43db78
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, ecx
mov edi, edx
mov esi, eax
xor ebx, ebx
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, esi
call fcn.00403dc8
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x43dbd7
push 0
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x43dbd1
push 0
lea eax, [esp + 4]
push eax
push ebp
push edi
push esi
call sub.kernel32.dll_WriteFile
test eax, eax
je 0x43dbd1
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43dc18
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov eax, dword [0x43fb28]
mov eax, dword [eax]
call fcn.0043c944
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp esi, eax
ja 0x43dc23
pop esi
pop ebx
ret
Function at 0x100022b4
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push 0x48
mov eax, 0x1000c708
call fcn.1000b995
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x4c], eax
lea eax, [esi + 0x18]
push eax
mov dword [ebp - 0x54], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
lea eax, [ebp - 0x48]
xor ebx, ebx
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.10002239
cmp dword [ebp - 0x38], ebx
jne 0x10002315
push 9
pop esi
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.10005d25
push dword [ebp - 0x54]
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, esi
call fcn.1000ba18
ret 0xc
cmp dword [edi + 0xc], 0x400
jbe 0x10002322
push 8
jmp 0x100022ef
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp dword [esi + 0x14], 2
push 0xffffffffffffffff
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
push ebx
lea eax, [esi + 0x68]
je 0x10002348
lea eax, [esi + 0x4c]
push eax
call fcn.10005d25
cmp dword [esi + 8], ebx
jne 0x10002384
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x1000235f
lea eax, [ebp - 0x2c]
push eax
push 1
push ebx
call dword [sym.imp.kernel32.dll_CreateMutexW]
mov dword [esi + 8], eax
cmp eax, ebx
jne 0x10002384
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10005d25
jmp 0x100022ed
mov eax, dword [ebp - 0x48]
push 8
pop esi
mov dword [ebp - 0x50], ebx
cmp dword [ebp - 0x34], esi
jae 0x10002395
lea eax, [ebp - 0x48]
push dword [ebp + 0x10]
lea ecx, [ebp - 0x50]
push ecx
push 0x40c
push dword [ebp - 0x4c]
push 0x410
push edi
push eax
call dword [sym.imp.kernel32.dll_CallNamedPipeW]
cmp eax, ebx
jne 0x100023e2
call dword [sym.imp.kernel32.dll_GetLastError]
push ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push 1
cmp eax, 0x5b4
jne 0x100023d8
call fcn.10005d25
push 0xa
jmp 0x100022ef
call fcn.10005d25
jmp 0x100022f0
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10005d25
xor esi, esi
jmp 0x100022f0
Function at 0x10002faf
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push str.GlobalARM_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.kernel32.dll_OpenMutexW]
test eax, eax
je 0x10002fd0
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
inc eax
ret
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x10002fcc
xor eax, eax
ret

Function at 0x10002fde
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push str.GlobalAcro_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.kernel32.dll_OpenMutexW]
test eax, eax
je 0x10002fff
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
inc eax
ret
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x10002ffb
xor eax, eax
ret

Function at 0x100043fb
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10015820]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.10005d25
mov ebx, eax
cmp ebx, esi
je 0x1000446c
lea ecx, [ebp - 0x214]
call fcn.100039c4
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000b904
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1000448a
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.10005d25
cmp eax, esi
jne 0x100044d1
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call ebx
test eax, eax
je 0x10004474
lea ecx, [ebp - 0x214]
call fcn.100039c4
push dword [ebp - 0x218]
mov ecx, edi
call fcn.10005d25
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.100039c4
mov eax, esi
jmp 0x1000445b
Function at 0x10005d25
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x10005d34
pop dword [ebp - 0x50]
mov eax, 0x10005d34
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x3a5843
sub dword [ebp - 0x60], 0xb1e812f8
mov dword [ebp - 0x5c], 0xd9421805
add dword [ebp - 0x5c], 0x58f13440
mov dword [ebp - 0x58], 0xe72b53ae
add dword [ebp - 0x58], 0x6520f080
mov dword [ebp - 0x54], 0x9fbcb58
add dword [ebp - 0x54], 0xf60434a8
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x9139fa9a
add dword [ebp - 0x60], 0xe3386ebc
mov dword [ebp - 0x5c], 0x7e7b3fd8
add dword [ebp - 0x5c], 0xc2f1219d
mov dword [ebp - 0x58], 0xaf616f40
sub dword [ebp - 0x58], 0x4bf202d4
mov dword [ebp - 0x54], 0x89c24180
add dword [ebp - 0x54], 0x763dbe80
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3abcf
push 0
call eax
mov ecx, 0xf95374df
sub ecx, 0xf95325f8
mov ebx, eax
mov esi, 0x39e43efb
add esi, 0xd61d6505
add esi, dword [ebp - 0x50]
mov edi, 0xae523180
add edi, 0x49b78ce8
sub dword [ebp - 8], 0xcbf9ac42
mov edx, dword [esi]
mov dword [ebp - 0x18], 0x77001c38
xor edx, edi
add dword [ebp - 0x40], 0x1d449a9
mov dword [ebx], edx
xor dword [ebp - 0x44], 0x793ef876
add ebx, 0xf62f8def
add ebx, 0x9d07215
add esi, 0xeea3e749
sub esi, 0xeea3e745
loop 0x10005e47
add eax, 0x12e6f
mov ebx, eax
add eax, 0xd5b3e1fb
add eax, 0x2a4c1e0a
mov ecx, 0xc1ab0d35
add ecx, 0x4e54f2cb
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x100068d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1000cb1e
call fcn.1000b9cb
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call fcn.10004616
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x1000692c
call fcn.100036d3
mov esi, eax
jmp 0x10006a02
push ebx
push edi
push eax
call dword [sym.imp.kernel32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x10006945
call fcn.100036d3
jmp 0x100069f4
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x1000693b
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.kernel32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x1000697f
mov esi, 0x8007000e
jmp 0x100069f6
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10005d25
mov dword [ebp - 4], 1
jmp 0x100069ad
cmp dword [ebp - 0x418], esi
je 0x10006978
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x1000693b
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.10005d25
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10006a1b
lea ecx, [ebp - 0x418]
call fcn.10004030
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.10003fb2
mov eax, esi
call fcn.1000ba27
ret 0x10
Function at 0x10009b34
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x1000cdf8
call fcn.1000b95f
mov eax, dword [ebp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x18], ebx
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
call esi
test eax, eax
jne 0x10009c78
cmp dword [ebp - 0x18], 1
jne 0x10009c78
mov edi, dword [ebp - 0x14]
shr edi, 1
inc edi
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], ebx
neg ecx
or ecx, eax
push ecx
call fcn.10005d25
mov edi, eax
pop ecx
mov dword [ebp - 0x1c], edi
cmp edi, ebx
je 0x10009c6a
push dword [ebp - 0x14]
push ebx
push edi
call fcn.10005d25
mov eax, dword [ebp - 0x14]
add esp, 0xc
lea eax, [eax + eax - 2]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp eax, ebx
jne 0x10009c6a
cmp dword [ebp - 0x18], 1
jne 0x10009c6a
shr dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10005d25
mov esi, dword [ebp + 0x10]
pop ecx
mov dword [esi], eax
cmp eax, ebx
je 0x10009c6a
mov ecx, dword [ebp - 0x14]
inc ecx
push ecx
push ebx
push eax
call fcn.10005d25
lea eax, [ebp - 0x20]
push eax
push 0x100102f4
push edi
call dword [sym.imp.MSVCR100.dll_wcstok_s]
mov edi, eax
add esp, 0x18
cmp edi, ebx
je 0x10009c50
push edi
call fcn.10005d25
pop ecx
cmp al, bl
je 0x10009c50
mov eax, dword [ebp - 0x14]
push edi
inc eax
push eax
push dword [esi]
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
jmp 0x10009c6a
push dword [esi]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
mov dword [esi], ebx
jmp 0x10009c6a
cmp dword [ebp - 0x1c], ebx
je 0x10009c78
push dword [ebp - 0x1c]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
call fcn.1000ba04
ret
Function at 0x10009c7e
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x438
mov eax, 0x1000ce13
call fcn.1000b9cb
mov eax, dword [ebp + 8]
mov dword [ebp - 0x434], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x43c], eax
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x424], ax
xor esi, esi
lea eax, [ebp - 0x422]
push esi
push eax
call sub.MSVCR100.dll_memset
xor eax, eax
push edi
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push esi
push eax
call sub.MSVCR100.dll_memset
fldz
add esp, 0x18
fstp qword [ebp - 0x444]
lea eax, [ebp - 0x42c]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftSoftGrid
mov ebx, 0x104
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x438], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10009ecd
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x428], esi
push esi
jmp 0x10009d98
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.MSVCR100.dll__wtof]
fldz
fcomp st(1)
pop ecx
fnstsw ax
test ah, 5
jp 0x10009d78
fld qword [ebp - 0x444]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x10009d78
lea eax, [ebp - 0x21c]
fstp qword [ebp - 0x444]
push eax
lea eax, [ebp - 0x424]
push ebx
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
jmp 0x10009d7a
fstp st(0)
inc dword [ebp - 0x428]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
call edi
mov dword [ebp - 0x430], eax
cmp eax, esi
je 0x10009d30
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x430], 0x103
jne 0x10009ecd
mov edi, dword [sym.imp.MSVCR100.dll_wcslen]
push str.ClientUserInterface
call edi
mov ebx, str.SoftwareMicrosoftSoftGrid_
push ebx
mov dword [ebp - 0x430], eax
call edi
mov ecx, dword [ebp - 0x430]
lea edi, [ecx + eax + 0x105]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
neg ecx
or ecx, eax
push ecx
call fcn.10005d25
add esp, 0xc
mov dword [ebp - 0x428], eax
cmp eax, esi
je 0x10009ecd
push edi
push esi
push eax
call fcn.10005d25
push ebx
push edi
push dword [ebp - 0x428]
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
mov ebx, dword [sym.imp.MSVCR100.dll_wcscat_s]
add esp, 0x18
lea eax, [ebp - 0x424]
push eax
push edi
push dword [ebp - 0x428]
call ebx
add esp, 0xc
push str.ClientUserInterface
push edi
push dword [ebp - 0x428]
call ebx
add esp, 0xc
lea eax, [ebp - 0x42c]
push eax
push 0x20019
push esi
push dword [ebp - 0x428]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10009ec1
push dword [ebp - 0x434]
push str.LaunchCommand
push dword [ebp - 0x42c]
call fcn.10009b34
add esp, 0xc
push dword [ebp - 0x43c]
push 0x100102f8
push dword [ebp - 0x42c]
call fcn.10009b34
add esp, 0xc
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x428]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
call fcn.1000ba27
ret