joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401207
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x4182e8]
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [0x4182ec]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], eax
mov esi, dword [edi]
mov edx, dword [edi + 4]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], edx
call fcn.00401200
mov ebx, dword [ebp - 0x18]
add ebx, 0x23f
cmp dword [0xaf59c4], 0x14
jne 0x401265
push 0
lea eax, [ebp - 0x830]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov edx, dword [ebp - 0xc]
mov ecx, dword [0x4182f0]
mov eax, dword [0x4182f4]
push 0x20
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
pop edi
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov eax, esi
mov dword [ebp - 0xc], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0xaf59c4], 0xfa9
mov dword [ebp - 8], eax
mov eax, dword [0xaf59c0]
cmove eax, dword [ebp - 0xc]
and dword [ebp - 0xc], 0
cmp dword [0xaf59c4], 0x3eb
mov dword [0xaf59c0], eax
mov eax, dword [0xaf5918]
cmove eax, dword [ebp - 0xc]
mov dword [0xaf5918], eax
lea eax, [ebx + esi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
shr eax, 5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
and dword [ebp - 0x10], 0
mov dword [0xaf59bc], 0xf4ea3dee
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 4]
sub edx, eax
mov dword [ebp - 0x14], eax
mov eax, edx
mov dword [ebp - 0xc], edx
shl eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebx + edx]
and dword [ebp - 4], 0
mov dword [ebp - 0x18], eax
mov eax, edx
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor dword [ebp - 0x10], eax
cmp dword [0xaf59c4], 0xb03
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jne 0x401363
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
add ebx, 0x61c88647
mov ecx, dword [ebp - 0x24]
sub esi, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
dec edi
jne 0x401279
mov edi, dword [ebp - 0x2c]
mov dword [edi], esi
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c0ca
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417f10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408870
mov dword [ebp - 0x14], eax
cmp dword [0x4511b8], esi
jne 0x40c1bd
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c14a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c29d
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c29d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c29d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4511b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4511bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4511c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4511c8], eax
test eax, eax
je 0x40c1ba
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4511c4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c1e2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c1d5
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c1f7
push 4
pop eax
jmp 0x40c29f
cmp dword [ebp - 0x14], esi
je 0x40c1f7
push dword [0x4511b8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c1dc
mov eax, dword [0x4511c4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c255
cmp dword [0x4511c8], edi
je 0x40c255
push eax
call ebx
push dword [0x4511c8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c255
test eax, eax
je 0x40c255
call ecx
test eax, eax
je 0x40c24a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c24a
test byte [ebp - 8], 1
jne 0x40c255
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c285
mov eax, dword [0x4511bc]
cmp eax, edi
je 0x40c282
push eax
call ebx
test eax, eax
je 0x40c282
call eax
mov esi, eax
test esi, esi
je 0x40c282
mov eax, dword [0x4511c0]
cmp eax, edi
je 0x40c282
push eax
call ebx
test eax, eax
je 0x40c282
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4511b8]
call ebx
test eax, eax
je 0x40c29d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c29f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403d87
mov esp, ebp
pop ebp
ret
Function at 0x1011c38
Capabilities:
Create thread

Disassembly:
mov eax, 0x10302b2
call fcn.01025710
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0x1001758
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0
push 0x4000
push 0x5c
mov ebx, 0x1001618
push ebx
mov edi, 0x1001588
push edi
call fcn.0101170a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.01011772
mov dword [ebp - 4], 1
cmp dword [esi], 0
je 0x1011c96
xor esi, esi
jmp 0x1011e17
mov byte [ebp - 4], 2
push 0x14
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x1011cb6
mov ecx, eax
call fcn.01011b8d
jmp 0x1011cb8
xor eax, eax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 2
mov dword [esi], eax
test eax, eax
jne 0x1011cf6
push 0x1001708
push 0x8007000e
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
push 0x4000
push 0x65
push ebx
push edi
call fcn.0101170a
mov byte [ebp - 4], 2
lea eax, [ebp - 0x34]
push eax
call fcn.01011923
add esp, 0x4c
lea eax, [ebp - 0x44]
push eax
push 0
push esi
push 0x10119fe
push 0x40000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x1011d4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10016c0
push 0x8000ffff
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0
push 0x4000
push 0x76
push ebx
push edi
call fcn.0101170a
mov byte [ebp - 4], 2
lea eax, [ebp - 0x34]
push eax
call fcn.01011923
add esp, 0x50
push 0xffffffffffffffff
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x34], eax
jmp 0x1011dfa
xor eax, eax
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 0x34], 0
jge 0x1011e14
mov ecx, dword [esi]
test ecx, ecx
je 0x1011e14
mov edx, dword [ecx]
push eax
call dword [edx]
and dword [esi], 0
mov esi, dword [ebp - 0x34]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.01011818
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1011f26
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x103032c
call fcn.01025710
sub esp, 0xb8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
and dword [ebp - 4], 0
push 0x1001b10
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0
push 0x4000
push 0x37b
push 0x1001b04
mov ebx, 0x1001a90
push ebx
call fcn.0101170a
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.01011772
mov byte [ebp - 4], 2
mov byte [ebp - 4], 3
push 8
push dword [ebp + 0x14]
lea eax, [ebp - 0x50]
push eax
mov esi, dword [sym.imp.msvcrt.dll_strncpy]
call esi
push 0xa
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x18]
mov edi, dword [sym.imp.msvcrt.dll__ultoa]
call edi
push 8
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x48]
push eax
call esi
push 8
mov eax, dword [ebp + 8]
push dword [eax + 8]
lea eax, [ebp - 0x40]
push eax
call esi
push 0xa
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
call edi
push 8
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x38]
push eax
call esi
add esp, 0x48
mov ecx, dword [ebp + 0x4c]
mov dword [ebp - 0x78], ecx
xor esi, esi
mov dword [ebp - 0x7c], esi
cmp word [ebp - 0x7c], cx
jae 0x1011ffe
movzx eax, word [ebp - 0x7c]
shl eax, 2
mov edx, dword [ebp + eax + 0x24]
mov dword [ebp + eax - 0xa4], edx
inc dword [ebp - 0x7c]
jmp 0x1011fe1
push 0x100196c
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 0xa8], eax
cmp eax, esi
jne 0x101205a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001a40
push 0x8000ffff
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0xac], esp
push esi
mov esi, 0x8000
push esi
push 0x398
mov edi, 0x1001b04
push edi
push ebx
call fcn.0101170a
mov byte [ebp - 4], 3
lea eax, [ebp - 0x30]
push eax
call fcn.01011923
add esp, 0x50
jmp 0x1012064
mov esi, 0x8000
mov edi, 0x1001b04
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xa4]
push eax
push 0x20
push dword [ebp - 0x78]
push 0
push dword [ebp + 0xc]
push 0
push dword [ebp + 0x50]
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov dword [ebp - 0xb0], eax
test eax, eax
jne 0x10120ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001a00
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0xb4], esp
push 0
push esi
push 0x3a7
push edi
push ebx
call fcn.0101170a
mov byte [ebp - 4], 3
lea eax, [ebp - 0x30]
push eax
call fcn.01011891
add esp, 0x4c
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov dword [ebp - 0xb0], eax
test eax, eax
jne 0x101211b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10019b0
push 0x8000ffff
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0xb8], esp
push 0
push esi
push 0x3ac
push edi
push ebx
call fcn.0101170a
mov byte [ebp - 4], 3
lea eax, [ebp - 0x30]
push eax
call fcn.01011923
add esp, 0x50
and dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.01011818
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0101174b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1014c4f
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x1030879
call fcn.01025710
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x10031a0
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0
mov edi, 0x200
push edi
push 0x328
mov esi, 0x1002214
push esi
mov ebx, 0x1002190
push ebx
call fcn.0101170a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.01011772
mov dword [ebp - 4], 1
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x34], eax
push eax
push 0x1003164
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x38], esp
push 0
push edi
push 0x32e
push esi
push ebx
call fcn.0101170a
mov byte [ebp - 4], 2
lea eax, [ebp - 0x30]
push eax
call fcn.01011891
add esp, 0x4c
push 0
mov edi, dword [ebp + 0xc]
push edi
push 0x103c020
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
call fcn.01012bd0
mov dword [esi + 0xbc], edi
mov esi, 0x100315c
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x34]
call fcn.010134ee
mov dword [ebp - 0x44], eax
and byte [ebp - 0x45], 0
cmp dword [ebp - 0x44], 0
je 0x1014dbe
push dword [ebp - 0x44]
push 0x1003130
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0
push 0x200
push 0x33e
push 0x1002214
push ebx
call fcn.0101170a
mov byte [ebp - 4], 2
lea eax, [ebp - 0x30]
push eax
call fcn.01011891
add esp, 0x4c
push 0x100311c
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1014daa
mov byte [ebp - 0x45], 1
push 1
mov ecx, dword [ebp + 8]
call fcn.01014e69
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x98]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.01011818
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x44]
call fcn.010134ee
mov dword [ebp - 0x44], eax
jmp 0x1014d14
cmp byte [ebp - 0x45], 0
jne 0x1014d7b
mov ecx, dword [ebp + 8]
call fcn.01014992
jmp 0x1014d7b
Function at 0x10153aa
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1030985
call fcn.01025710
sub esp, 0x24
push ebx
push esi
push edi
push 0x1003830
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0
mov ebx, 0x200
push ebx
push 0x123
mov edi, 0x1003828
push edi
mov esi, 0x10037b8
push esi
call fcn.0101170a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.01011772
mov dword [ebp - 4], 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x101543b
push eax
push dword [ebp + 8]
push 0x1003730
push 0x8004230c
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0
push ebx
push 0x128
push edi
push esi
call fcn.0101170a
mov byte [ebp - 4], 1
lea eax, [ebp - 0x30]
push eax
call fcn.01011923
add esp, 0x54
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x10]
push ecx
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x10154f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
je 0x1015473
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x48f
jne 0x10154ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x1003698
push 0x80042308
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0
push ebx
push 0x13b
push edi
push esi
call fcn.0101170a
mov byte [ebp - 4], 1
lea eax, [ebp - 0x30]
push eax
call fcn.01011923
add esp, 0x54
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ed
je 0x10154f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x1003628
push 0x8004230c
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0
push ebx
push 0x140
push edi
push esi
call fcn.0101170a
mov byte [ebp - 4], 1
lea eax, [ebp - 0x30]
push eax
call fcn.01011923
add esp, 0x54
test byte [ebp - 0xe], 8
je 0x1015530
push dword [ebp + 8]
push 0x10035b0
push 0x8004230c
sub esp, 0x40
mov ecx, esp
mov dword [ebp + 8], esp
push 0
push ebx
push 0x147
push edi
push esi
call fcn.0101170a
mov byte [ebp - 4], 1
lea eax, [ebp - 0x30]
push eax
call fcn.01011923
add esp, 0x50
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.01011818
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x10189d7
Capabilities:
Delete registry key

Disassembly:
mov eax, 0x1031040
call fcn.01025710
sub esp, 0x30
push ebx
push esi
push edi
push 9
pop ecx
mov esi, 0x1005b38
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push 0xf003f
movsw word es:[edi], word [esi]
xor esi, esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x1018a83
mov ecx, dword [ebp + 8]
cmp dword [ecx], esi
jne 0x1018a1e
mov dword [ecx], eax
push eax
push dword [ebp + 0x10]
mov ebx, 0x200
push dword [ebp + 0xc]
mov edi, 0x1005b2c
push 0x1005ad8
sub esp, 0x40
mov ecx, esp
mov dword [ebp + 0xc], esp
push esi
push ebx
push 0x6c
push edi
mov esi, 0x1005a48
push esi
call fcn.0101170a
or dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
call fcn.01026cc9
add esp, 0x54
push dword [ebp - 0x10]
lea eax, [ebp - 0x3c]
push dword [ebp + 0x10]
push eax
push 0x10059c0
sub esp, 0x40
mov ecx, esp
mov dword [ebp + 0x10], esp
push 0
push ebx
push 0x6d
push edi
push esi
call fcn.0101170a
jmp 0x1018b59
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.01018b79
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ebx, 0x200
mov edi, 0x1005b2c
mov esi, 0x1005a48
je 0x1018ae4
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
jne 0x1018ab4
mov dword [ecx], eax
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x3c]
push eax
push 0x1005950
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0
push ebx
push 0x7c
push edi
push esi
call fcn.0101170a
or dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
call fcn.01011891
add esp, 0x54
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x1018b68
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
jne 0x1018b01
mov dword [ecx], eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x1005900
sub esp, 0x40
mov ecx, esp
mov dword [ebp + 0xc], esp
push 0
push ebx
push 0x8a
push edi
push esi
call fcn.0101170a
or dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
call fcn.01026cc9
add esp, 0x54
push dword [ebp - 0x10]
lea eax, [ebp - 0x3c]
push dword [ebp + 0x10]
push eax
push 0x1005890
sub esp, 0x40
mov ecx, esp
mov dword [ebp + 0x10], esp
push 0
push ebx
push 0x8b
push edi
push esi
call fcn.0101170a
or dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
call fcn.01011891
add esp, 0x54
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x1018b79
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x103105a
call fcn.01025710
sub esp, 0x240
push ebx
push esi
push edi
push 0xb
pop ecx
mov esi, 0x1005bf4
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x1c]
push eax
xor edi, edi
push edi
push edi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24c]
push eax
push edi
push dword [ebp + 0xc]
mov ebx, 0x100
mov dword [ebp - 0x10], ebx
call esi
cmp eax, edi
mov dword [ebp - 0x14], eax
jne 0x1018bfe
lea eax, [ebp - 0x24c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010189d7
lea eax, [ebp - 0x1c]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24c]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
call esi
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x1018bca
cmp eax, 0x103
je 0x1018c84
mov ecx, dword [ebp + 8]
cmp dword [ecx], edi
jne 0x1018c0e
mov dword [ecx], eax
push eax
lea eax, [ebp - 0x24c]
push eax
push dword [ebp + 0xc]
mov ebx, 0x200
push 0x1005ba0
sub esp, 0x40
mov ecx, esp
mov dword [ebp + 0xc], esp
push edi
push ebx
push 0xc6
mov edi, 0x1005b2c
push edi
mov esi, 0x1005a48
push esi
call fcn.0101170a
or dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
call fcn.01026cc9
add esp, 0x54
push dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
push eax
push 0x1005b60
sub esp, 0x40
mov ecx, esp
mov dword [ebp + 0xc], esp
push 0
push ebx
push 0xc7
push edi
push esi
call fcn.0101170a
or dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
call fcn.01011891
add esp, 0x50
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x1018c95
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x10310a5
call fcn.01025710
sub esp, 0x124
mov edx, dword [ebp + 0x18]
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push 8
pop ecx
mov esi, 0x1005d04
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
and dword [eax], 0
mov edi, dword [ebp + 0x1c]
add edx, edx
mov ecx, edx
mov esi, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp + 0x1c]
push eax
push 0
push dword [ebp + 0x14]
mov dword [ebp + 0x18], edx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov ebx, 0x200
mov edi, 0x1005b2c
mov esi, 0x1005a48
je 0x1018d44
jle 0x1018d12
and eax, 0xffff
or eax, 0x80070000
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x1005ccc
push eax
sub esp, 0x40
mov ecx, esp
mov dword [ebp + 0xc], esp
push 0
push ebx
push 0x111
push edi
push esi
call fcn.0101170a
or dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
call fcn.010265d8
add esp, 0x54
cmp dword [ebp + 0x1c], 1
je 0x1018e44
push 1
push 0
push ebx
push 0x117
push edi
push esi
lea ecx, [ebp - 0x130]
call fcn.0101170a
mov dword [ebp - 4], 1
push dword [ebp + 0x1c]
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, eax
call fcn.0101360c
mov byte [ebp - 4], 2
push 1
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
call fcn.0101360c
mov byte [ebp - 4], 3
push dword [ebp + 0x14]
lea ecx, [ebp - 0xf0]
push ecx
mov ecx, eax
call fcn.01011e88
mov byte [ebp - 4], 4
sub esp, 0x40
mov ecx, esp
mov dword [ebp + 0xc], esp
push dword [ebp + 0x10]
push ecx
mov ecx, eax
call fcn.01011e88
mov byte [ebp - 4], 4
push 0x3007
push dword [ebp + 8]
call fcn.01011f26
add esp, 0x4c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xf0]
call fcn.0101174b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.0101174b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb0]
call fcn.0101174b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.0101174b
push dword [ebp + 0x1c]
lea eax, [ebp - 0x30]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push eax
push 0x1005c28
push 0x8000ffff
sub esp, 0x40
mov ecx, esp
mov dword [ebp + 0x14], esp
push 0
push ebx
push pe_nt_image_headers32
push edi
push esi
call fcn.0101170a
or dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
call fcn.01011923
add esp, 0x5c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x18