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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x57c7a0]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push 0x546338
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push 0x54631c
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x52888c
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push 0x546300
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x52898e
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x52893c
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push 0x5462d8
push 0x80000001
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x52898f
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x528931
cmp dword [ebp - 0x24], 1
jne 0x528931
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x5462d4
push eax
call fcn.004be99e
add esp, 0xc
cmp eax, 1
jne 0x528931
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x52898f
push 0x5462c8
call edi
cmp eax, ebx
je 0x52898f
lea ecx, [ebp - 0x18]
push ecx
push 0x5287d4
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x52898f
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x5289b5
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.00528755
cmp eax, ebx
pop ecx
pop ecx
jne 0x5289b7
inc edi
cmp edi, esi
jl 0x52899e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004bde13
leave
ret 4
Function at 0x528e3c
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x53011e
call fcn.004bde24
sub esp, 0x11c
mov eax, dword [0x57c7a0]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x528f35
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x528f09
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00403380
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.00528e3c
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004013d0
test bl, bl
jne 0x528f09
or dword [ebp - 4], 0xffffffff
jmp 0x528e7a
cmp esi, 0x103
je 0x528f19
cmp esi, 0x3f2
jne 0x528f29
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.004bde13
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x5291fd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x529232
cmp edi, dword [esi + 0xc]
jge 0x529232
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x529232
cmp edi, dword [eax + 8]
jge 0x529232
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x529234
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x529338
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x52936c
jmp fcn.0051e608
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x5293dd
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x5294d6
cmp eax, dword [edi + 0xc]
jge 0x5294d6
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x52942e
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x5294bf
cmp dword [ebp + 0xc], ebx
je 0x5294bf
jmp 0x529458
push 0x10
call fcn.005290c9
cmp eax, ebx
je 0x529444
mov ecx, eax
call fcn.0052932f
mov esi, eax
jmp 0x529446
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x52946f
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x52947f
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x529491
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0051e608
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.004bdf10
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x5294d1
cmp ecx, dword [esi + 8]
jge 0x5294d1
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x5294d7
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x4252a0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
jmp 0x4252b8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jae 0x42535c
mov edx, dword [ebp - 4]
sub edx, 0x231d
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 + 0x463a]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shr eax, 0xc
cmp eax, 3
jne 0x425357
mov ecx, dword [ebp - 8]
push ecx
call fcn.004257c0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x425316
push 0x154b
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x425316
xor eax, eax
jmp 0x42535c
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax - 0x4c3f8]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx]
add ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov edx, dword [ebp + 0x10]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
sub eax, 0x4c3f8
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
sub edx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
jmp 0x4252af
mov esp, ebp
pop ebp
ret
Function at 0x405d92
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x435598]
jne 0x405d9c
repz ret
jmp fcn.0040862a

Function at 0x407652
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x435598]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404a9e
and dword [ebp - 0x14], 0
cmp dword [0x439418], 0
mov dword [ebp - 0x18], eax
jne 0x407705
push 0x402240
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4077ad
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402234
push ebx
call edi
test eax, eax
je 0x4077ad
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402224
push ebx
mov dword [0x439418], eax
call edi
push eax
call esi
push 0x402210
push ebx
mov dword [0x43941c], eax
call edi
push eax
call esi
push 0x4021f4
push ebx
mov dword [0x439420], eax
call edi
push eax
call esi
mov dword [0x439428], eax
test eax, eax
je 0x407705
push 0x4021dc
push ebx
call edi
push eax
call esi
mov dword [0x439424], eax
mov eax, dword [0x439424]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40775e
cmp dword [0x439428], ecx
je 0x40775e
push eax
call esi
push dword [0x439428]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40775e
test ebx, ebx
je 0x40775e
call edi
test eax, eax
je 0x407755
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407755
test byte [ebp - 8], 1
jne 0x40775e
or dword [ebp + 0x10], 0x200000
jmp 0x407791
mov eax, dword [0x43941c]
cmp eax, dword [ebp - 0x18]
je 0x407791
push eax
call esi
test eax, eax
je 0x407791
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407791
mov eax, dword [0x439420]
cmp eax, dword [ebp - 0x18]
je 0x407791
push eax
call esi
test eax, eax
je 0x407791
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x439418]
call esi
test eax, eax
je 0x4077ad
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4077af
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405d92
leave
ret
Function at 0x41b110
Capabilities:
Accept command line arguments
Delete directory
Get common file path
Write file on windows

Disassembly:
mov eax, 0x1c24
call fcn.00408d40
cmp dword [0x2272390], 0x37
jne 0x41b207
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x402ad8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FreeUserPhysicalPages]
push 0
lea ecx, [esp + 0x28]
push ecx
push 0x402b14
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
lea edx, [esp + 0x828]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 8]
push eax
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
lea edx, [esp + 0xc]
push edx
push 0x402b58
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea eax, [esp + 0x1028]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
lea ecx, [esp + 0x1424]
push ecx
push 0
push 0x402bd0
push 0x402c94
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0x402c9c
push 0x402ca8
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
mov edx, dword [0x2272394]
mov dword [esp], edx
mov eax, 0x5d1
add dword [esp], eax
mov eax, dword [esp]
mov cl, byte [eax + esi]
mov edx, dword [0x43e4f4]
mov byte [edx + esi], cl
add esp, 0x1c24
ret
Function at 0x41b230
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x1a8
mov ecx, dword [esp + 0x1ac]
mov eax, dword [ecx]
mov edx, dword [0x435db4]
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
mov ecx, dword [0x435db0]
mov dword [esp + 0x18], ecx
mov ecx, dword [0x435db8]
mov dword [esp + 0x1c], edx
mov edx, dword [0x435dbc]
push edi
mov dword [esp + 0x18], eax
mov edi, 0xc6ef3720
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
mov ebp, 0x20
jmp 0x41b284
mov eax, dword [esp + 0x18]
mov ecx, eax
shr ecx, 5
add ecx, dword [esp + 0x24]
mov edx, eax
shl edx, 4
add edx, dword [esp + 0x28]
add eax, edi
xor ecx, edx
xor ecx, eax
sub esi, ecx
mov ecx, esi
shl ecx, 4
mov dword [0x2271314], 0
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x1c]
add dword [esp + 0x14], eax
cmp dword [0x2272390], 0x1be
lea ebx, [edi + esi]
jne 0x41b2d9
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, esi
shr eax, 5
add eax, dword [esp + 0x20]
mov dword [0x2271318], 0xff6b3619
xor eax, ebx
xor dword [esp + 0x14], eax
mov dword [0x227131c], 0xffffffff
mov eax, dword [esp + 0x14]
sub dword [esp + 0x18], eax
add edi, 0x61c88647
dec ebp
jne 0x41b280
cmp dword [0x2272390], 0x8d4
jne 0x41b328
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0x1bc]
mov edx, dword [esp + 0x18]
mov dword [eax], edx
mov dword [eax + 4], esi
cmp dword [0x2272390], 0x17
jne 0x41b356
push 0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [esp + 0x78]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret 4
Function at 0xffd9267
Capabilities:
Delete registry value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
test byte [esi], 0x20
push edi
je 0xffd9277
inc eax
mov ecx, dword [esp + 0x18]
cmp ecx, 2
jne 0xffd9291
mov ebx, 0xffd1254
mov edi, 0xffd124c
mov ebp, 0xffd1244
jmp 0xffd92a5
cmp ecx, 1
jne 0xffd92e0
mov ebx, 0xffd123c
mov edi, 0xffd1234
mov ebp, 0xffd122c
cmp dword [esi + 0x168], 0
je 0xffd92c1
push 0
push eax
push ecx
push 0xfff0450
push esi
call fcn.0ffe22fb
test eax, eax
jne 0xffd92e5
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add esi, 0x150
push dword [esi]
call edi
push ebp
push dword [esi]
call edi
push ebx
push dword [esi]
call edi
xor eax, eax
jmp 0xffd92e5
mov eax, 0x80090005
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0xffdc426
Capabilities:
Encode data using xor
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
sub esp, 0xb4
mov eax, dword [ebp + 0x78]
mov ecx, dword [ebp + 0x7c]
push ebx
xor ebx, ebx
cmp dword [ebp + 0x68], ebx
push esi
push edi
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x78], ecx
je 0xffdc450
mov eax, dword [ebp + 0x6c]
test eax, eax
je 0xffdc450
mov ebx, dword [eax]
test ecx, ecx
je 0xffdc52a
push 0x14
lea eax, [ebp + 0x30]
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0xffdc523
xor eax, eax
mov ecx, dword [ebp + eax + 0x30]
xor dword [ebp + eax + 0x44], ecx
add eax, 4
cmp eax, 0x14
jb 0xffdc46d
lea eax, [ebp - 0x58]
push eax
call sub.ADVAPI32.dll_A_SHAInit
mov esi, dword [ebp + 0x70]
push 5
pop ecx
push 0x14
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp - 0x58]
lea edi, [ebp - 0x40]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.ADVAPI32.dll_A_SHAUpdate
test ebx, ebx
je 0xffdc4b3
mov eax, dword [ebp + 0x68]
push ebx
push dword [eax]
lea eax, [ebp - 0x58]
push eax
call sub.ADVAPI32.dll_A_SHAUpdate
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x58]
push eax
call sub.ADVAPI32.dll_A_SHAFinal
xor eax, eax
test ebx, ebx
jbe 0xffdc4dd
cmp eax, 0x14
jae 0xffdc4dd
mov ecx, dword [ebp + 0x68]
mov ecx, dword [ecx]
mov dl, byte [ebp + eax + 0x1c]
add ecx, eax
xor byte [ecx], dl
inc eax
cmp eax, ebx
jb 0xffdc4c6
push 0x14
pop esi
cmp dword [ebp + 0x78], esi
ja 0xffdc4e8
mov esi, dword [ebp + 0x78]
push esi
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x58]
call fcn.0ffdc3ba
test eax, eax
je 0xffdc523
add dword [ebp + 0x58], esi
sub dword [ebp + 0x78], esi
je 0xffdc52a
lea eax, [ebp + 0x30]
push eax
push dword [ebp + 0x74]
lea eax, [ebp + 0x1c]
push eax
call fcn.0ffdc37e
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.0ffdc34b
jmp 0xffdc458
mov eax, 0x80090020
jmp 0xffdc52c
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x5c
leave
ret 0x1c

Function at 0xffdcafa
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov edx, dword [ebp + 0x14]
cmp byte [edx], 0xcc
push esi
jne 0xffdcb70
cmp byte [edx + 1], 0x33
jne 0xffdcb70
mov ecx, dword [ebp + 0xc]
cmp byte [ecx + edx + 2], 0xba
jne 0xffdcb70
xor esi, esi
test ecx, ecx
jbe 0xffdcb34
mov eax, dword [ebp + 8]
lea eax, [eax + ecx - 1]
push ebx
mov bl, byte [eax]
mov byte [ebp + esi - 0x24], bl
inc esi
dec eax
cmp esi, ecx
jb 0xffdcb27
pop ebx
push edi
lea edi, [edx + 2]
lea esi, [ebp - 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
pop edi
je 0xffdcb47
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0xffdcb70
mov eax, dword [ebp + 0x18]
push 0x17
pop esi
lea ecx, [eax - 0x18]
cmp ecx, esi
jbe 0xffdcb63
cmp byte [esi + edx], 0xbb
jne 0xffdcb70
inc esi
cmp esi, ecx
jb 0xffdcb58
cmp dword [ebp + 0x10], 0
je 0xffdcb7a
cmp byte [edx + eax - 1], 0x6b
je 0xffdcb81
mov eax, 0x80090006
pop esi
leave
ret 0x14
cmp byte [edx + eax - 1], 0x4b
jne 0xffdcb70
xor eax, eax
jmp 0xffdcb75
Function at 0xffde02d
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [edi + 0x170]
push eax
lea eax, [ebp - 8]
push eax
push 1
push dword [ebp + 0x14]
xor ebx, ebx
push dword [edi + 4]
mov dword [ebp - 0xc], ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
call fcn.0ffdce80
cmp eax, ebx
je 0xffde07a
cmp eax, 2
jne 0xffde19f
mov esi, 0x80090016
jmp 0xffde1a6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.0ffe82b0
mov edx, eax
cmp edx, ebx
mov dword [ebp - 0xc], edx
je 0xffde1a3
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0xffde099
push dword [ebp - 0xc]
mov esi, dword [sym.imp.msvcrt.dll__strlwr]
call esi
pop ecx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, ebx
jne 0xffde19f
mov eax, dword [ebp + 0x10]
add eax, 2
push eax
call fcn.0ffe82b0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
add eax, 2
push eax
call fcn.0ffe82b0
cmp dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
je 0xffde1a3
cmp eax, ebx
je 0xffde1a3
cmp dword [ebp - 0x14], ebx
mov dword [ebp + 0xc], ebx
jbe 0xffde16e
mov eax, dword [ebp + 0x10]
add eax, 2
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
jne 0xffde19f
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 4]
call esi
pop ecx
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0xffde172
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x14]
jb 0xffde11a
xor esi, esi
jmp 0xffde1a6
lea esi, [edi + 0x158]
push dword [esi]
call fcn.0ffe82e0
push ebx
push dword [ebp + 0x14]
mov dword [esi], ebx
push dword [ebp - 0x10]
push edi
call fcn.0ffdd76c
cmp eax, ebx
jne 0xffde19f
push edi
push dword [ebp + 8]
call fcn.0ffddd83
cmp eax, ebx
je 0xffde16e
mov esi, eax
jmp 0xffde1a6
push 8
pop esi
cmp dword [ebp - 8], ebx
je 0xffde1b4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], ebx
je 0xffde1c1
push dword [ebp - 0xc]
call fcn.0ffe82e0
cmp dword [ebp - 4], ebx
je 0xffde1ce
push dword [ebp - 4]
call fcn.0ffe82e0
cmp dword [ebp - 0x10], ebx
je 0xffde1db
push dword [ebp - 0x10]
call fcn.0ffe82e0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10