joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d4e52
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x8a2180]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004c9abf
mov dword [ebp - 0x14], eax
cmp dword [0x8c74ec], edi
jne 0x4d4f43
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4d4ed0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4d5023
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4d5023
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d5023
push eax
call ebx
push 0x87d1dc
push esi
mov dword [0x8c74ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x87d1ec
push esi
mov dword [0x8c74f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x8c74f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x8c74fc], eax
test eax, eax
je 0x4d4f40
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x8c74f8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4d4f68
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4d4f5b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4d4f7d
push 4
pop eax
jmp 0x4d5025
cmp dword [ebp - 0x14], edi
je 0x4d4f7d
push dword [0x8c74ec]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4d4f62
mov eax, dword [0x8c74f8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4d4fdb
cmp dword [0x8c74fc], esi
je 0x4d4fdb
push eax
call ebx
push dword [0x8c74fc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4d4fdb
test eax, eax
je 0x4d4fdb
call ecx
test eax, eax
je 0x4d4fd0
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 0x4d4fd0
test byte [ebp - 8], 1
jne 0x4d4fdb
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4d500b
mov eax, dword [0x8c74f0]
cmp eax, esi
je 0x4d5008
push eax
call ebx
test eax, eax
je 0x4d5008
call eax
mov edi, eax
test edi, edi
je 0x4d5008
mov eax, dword [0x8c74f4]
cmp eax, esi
je 0x4d5008
push eax
call ebx
test eax, eax
je 0x4d5008
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x8c74ec]
call ebx
test eax, eax
je 0x4d5023
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4d5025
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c5f35
leave
ret
Function at 0x4ddff5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4de02d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004dc083
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004dc05b
jmp 0x4de039
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4df6e7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4df729
call fcn.004e516a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4df729
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4df720
xor eax, eax
jmp 0x4df731
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004df737
pop edi
pop esi
pop ebx
ret 4
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x40910f]
shl eax, 2
mov dword [0x409113], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00402698
pop edx
call fcn.00401a34
call fcn.0040269c
push 0
call fcn.004032f0
pop ecx
push 0x4090b8
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x409117], eax
push 0
jmp fcn.00406da0
Function at 0x40238c
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x405e24
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x405e86
call fcn.00405dd4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004027f0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004027f0
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x405ee4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x40a9c8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x405fbe
cmp dword [0x40a9c4], 0
jne 0x405fbe
cmp dword [0x40abb8], 0
je 0x405f78
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00405cd4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x405f5e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00405cd4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x405f5e
lea ebx, [ebp - 0x84]
jmp 0x405f5f
inc ebx
call fcn.00405ea0
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x405ff9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x40a9cc
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004027f0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x40a9cf
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x405ff9
cmp dword [0x40a9c4], 0
je 0x405fd8
cmp dword [0x40a9c4], 0xffffffff
je 0x405ff9
push esi
call dword [0x40a9c4]
pop ecx
mov eax, dword [0x40a9c8]
test eax, eax
je 0x405ff9
cmp dword [0x40a9c8], 0xffffffff
je 0x405ff9
cmp byte [eax], 0
je 0x405ff9
push esi
push eax
call fcn.00405e24
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4067e4
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x413630], 0
jne 0x406865
cmp dword [0x413650], 0
jne 0x406814
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x413650], eax
test eax, eax
jne 0x406814
push str.GetEnvironmentStrings_failed
call fcn.00406010
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x413650]
jmp 0x406828
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004027f0
pop ecx
mov edi, eax
test eax, eax
jne 0x406820
lea edi, [ebp + 1]
push edi
call fcn.00401944
pop ecx
mov ebx, eax
mov dword [0x413634], ebx
test ebx, ebx
jne 0x406852
xor eax, eax
jmp 0x406928
push edi
mov edx, dword [0x413650]
push edx
push ebx
call fcn.004026a0
add esp, 0xc
jmp 0x406885
xor esi, esi
mov ebx, dword [0x413630]
jmp 0x40687f
push eax
call fcn.004027f0
pop ecx
test eax, eax
jne 0x40687b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40686f
lea ebx, [esi + 4]
push 4
mov dword [0x413638], ebx
inc ebx
push ebx
call fcn.00401744
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4068a8
xor eax, eax
jmp 0x406928
cmp dword [0x413630], 0
jne 0x4068d9
xor esi, esi
mov ebx, dword [0x413634]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4068ca
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004027f0
pop ecx
mov edi, eax
test eax, eax
jne 0x4068c0
jmp 0x40690a
xor esi, esi
mov ebx, dword [0x413630]
mov eax, dword [esp]
mov edi, eax
jmp 0x406904
push eax
call fcn.004027f0
pop ecx
test eax, eax
je 0x4068f9
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4068fd
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4068e8
mov eax, dword [0x413630]
test eax, eax
je 0x40691a
push eax
call fcn.00401954
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x413630], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x403fd2
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x928
mov eax, dword [0x45a400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea esi, [ebp - 0x924]
mov dword [ebp - 0x928], eax
call fcn.00408e2c
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x507]
push ebx
push eax
mov byte [ebp - 0x508], bl
call fcn.0042a4a0
mov eax, dword [ebp - 0x924]
add esp, 0xc
cmp dword [ebp - 0x910], 0x10
jae 0x40402a
mov eax, esi
push eax
lea eax, [ebp - 0x508]
push str.mailto:support_informer.com_subjectBug__20in__20Software__20Informer__20Downloader__20found_bodyDear__20user___20Please__20dont__20forget__20to__20attach__20the__20__22sidldr_s.dmp__22__20file__20that__20is__20located__20in__20temp__20folder__20of__20your__20computer.__20And__20please__20try__20to__20describe__20in__20detail__20the__20sequence__20of__20actions__20resulting__20in__20a__20bug.__20Without__20this__20information__20your__20report__20may__20be__20useless.__20Thank__20you.
push eax
call fcn.004040fe
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
add esp, 0xc
push 1
push ebx
push ebx
lea eax, [ebp - 0x508]
push eax
mov edi, str.open
push edi
push ebx
call esi
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x3ff
lea eax, [ebp - 0x907]
push ebx
push eax
mov byte [ebp - 0x908], bl
call fcn.0042a4a0
mov eax, dword [ebp - 0x924]
add esp, 0xc
cmp dword [ebp - 0x910], 0x10
jae 0x40409b
lea eax, [ebp - 0x924]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x908]
push str._select___ssidldr_s.dmp_
push eax
call fcn.004040fe
add esp, 0x10
push 5
push ebx
lea eax, [ebp - 0x908]
push eax
push str.explorer.exe
push edi
mov edi, dword [ebp - 0x928]
push dword [edi + 4]
call esi
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
push ebx
push 1
lea ecx, [ebp - 0x924]
call fcn.00403a1b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00428263
leave
ret 4
Function at 0x404cde
Capabilities:
Create process on windows

Disassembly:
add eax, 0x54
cmp dword [eax + 0x14], 0x10
jb 0x404ce9
mov eax, dword [eax]
push 1
xor ecx, ecx
push ecx
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret

Function at 0x404cfd
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0xd
push edi
jne 0x404d14
mov eax, esi
call fcn.00404cde
jmp 0x404e3d
cmp dword [ebp + 8], 0x1b
jne 0x404d3e
push dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call edi
push dword [esi + 4]
push 2
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x404e3d
cmp dword [ebp + 8], 9
jne 0x404e3d
cmp byte [esi + 0x90], 0
jne 0x404e3d
cmp dword [esi + 0x84], 0
jne 0x404d6b
cmp dword [esi + 0x88], 0
je 0x404e3d
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
push 0xfffffffffffffff0
shr eax, 0xf
not al
and al, 1
mov byte [ebp + 0xb], al
je 0x404dc2
mov eax, dword [esi + 0x88]
test eax, eax
je 0x404da7
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x8000000
mov eax, dword [esi + 0x88]
jne 0x404dd4
push dword [eax]
jmp 0x404e37
mov eax, dword [esi + 0x84]
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x8000000
mov eax, dword [esi + 0x84]
jmp 0x404d9e
mov eax, dword [esi + 0x84]
test eax, eax
jne 0x404dad
mov eax, dword [esi + 0x88]
jmp 0x404d8b
mov edi, dword [eax]
xor eax, eax
cmp byte [ebp + 0xb], al
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
sete al
add eax, 2
mov dword [ebp - 4], eax
push dword [ebp - 4]
push edi
call ebx
mov edi, eax
test edi, edi
jne 0x404e03
cmp byte [ebp + 0xb], al
sete al
push eax
push edi
call ebx
mov edi, eax
cmp edi, dword [esi + 4]
je 0x404deb
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x404deb
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000
je 0x404deb
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
pop ebx
test eax, eax
je 0x404e3d
push edi
call dword [sym.imp.USER32.dll_SetFocus]
xor eax, eax
pop edi
leave
ret 4
Function at 0x407c66
Capabilities:
Create process on windows

Disassembly:
push 0x460
mov eax, 0x44612e
call fcn.00429d79
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
cmp dword [eax + 0x10], ebx
jne 0x407c85
xor eax, eax
jmp 0x407c8d
cmp dword [eax + 0x14], 0x10
jb 0x407c8d
mov eax, dword [eax]
cmp dword [esi + 0x14], 0x10
jb 0x407c95
mov ecx, dword [esi]
push 1
push ebx
push eax
push ecx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x407d48
cmp eax, 5
je 0x407d48
push 0x3ff
lea eax, [ebp - 0x40f]
push ebx
push eax
mov byte [ebp - 0x410], bl
call fcn.0042a4a0
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x407cd7
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x410]
push str.Cannot_launch__s.
push eax
call fcn.004040fe
lea eax, [ebp - 0x410]
add esp, 0xc
mov dword [ebp - 0x418], 0xf
mov dword [ebp - 0x41c], ebx
mov byte [ebp - 0x42c], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407d0b
sub eax, esi
push eax
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x42c]
call fcn.0040366e
lea eax, [ebp - 0x42c]
lea esi, [ebp - 0x46c]
mov dword [ebp - 4], ebx
call fcn.00416a20
push 0x455268
mov eax, esi
push eax
call fcn.0042a64b
call fcn.00429dfc
ret

Function at 0x407d4e
Capabilities:
Create process on windows

Disassembly:
push 0x468
mov eax, 0x4460fb
call fcn.00429d79
mov eax, dword [ebp + 8]
xor ebx, ebx
mov byte [edi], bl
mov esi, ecx
cmp dword [eax + 0x10], ebx
jne 0x407d6f
xor eax, eax
jmp 0x407d77
cmp dword [eax + 0x14], 0x10
jb 0x407d77
mov eax, dword [eax]
cmp dword [esi + 0x14], 0x10
jb 0x407d7f
mov ecx, dword [esi]
push 1
push ebx
push eax
push ecx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x407e32
cmp eax, 5
je 0x407e37
push 0x3ff
lea eax, [ebp - 0x413]
push ebx
push eax
mov byte [ebp - 0x414], bl
call fcn.0042a4a0
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x407dc1
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x414]
push str.Cannot_launch__s.
push eax
call fcn.004040fe
lea eax, [ebp - 0x414]
add esp, 0xc
mov dword [ebp - 0x41c], 0xf
mov dword [ebp - 0x420], ebx
mov byte [ebp - 0x430], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407df5
sub eax, esi
push eax
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x430]
call fcn.0040366e
lea eax, [ebp - 0x430]
lea esi, [ebp - 0x474]
mov dword [ebp - 4], ebx
call fcn.00416a20
push 0x455268
mov eax, esi
push eax
call fcn.0042a64b
cmp eax, 5
jne 0x407e3a
mov byte [edi], 1
call fcn.00429dfc
ret
Function at 0x407e40
Capabilities:
Create process on windows

Disassembly:
push 0x864
mov eax, 0x4460c8
call fcn.00429d79
mov edi, 0x3ff
xor ebx, ebx
push edi
lea eax, [ebp - 0x80f]
push ebx
push eax
mov esi, ecx
mov byte [ebp - 0x810], bl
call fcn.0042a4a0
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x407e79
mov eax, dword [esi]
jmp 0x407e7b
mov eax, esi
push eax
lea eax, [ebp - 0x810]
push str._select____s_
push eax
call fcn.004040fe
add esp, 0xc
push 1
push ebx
lea eax, [ebp - 0x810]
push eax
push str.explorer.exe
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x407f40
push edi
lea eax, [ebp - 0x40f]
push ebx
push eax
mov byte [ebp - 0x410], bl
call fcn.0042a4a0
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x407ecf
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x410]
push str.Cannot_open_the_folder_with_the_file__s_in_Windows_Explorer.
push eax
call fcn.004040fe
lea eax, [ebp - 0x410]
add esp, 0xc
mov dword [ebp - 0x818], 0xf
mov dword [ebp - 0x81c], ebx
mov byte [ebp - 0x82c], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407f03
sub eax, esi
push eax
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x82c]
call fcn.0040366e
lea eax, [ebp - 0x82c]
lea esi, [ebp - 0x870]
mov dword [ebp - 4], ebx
call fcn.00416a20
push 0x455268
mov eax, esi
push eax
call fcn.0042a64b
call fcn.00429dfc
ret
Function at 0x40be9a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x45a400]
xor eax, ebp
mov dword [ebp - 8], 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 - 0x11c]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x114], esi
call fcn.00403d44
mov ebx, eax
cmp ebx, esi
je 0x40bf0b
lea ecx, [ebp - 0x11c]
call fcn.00403d93
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428263
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40bf29
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x11c]
call fcn.0040be9a
cmp eax, esi
jne 0x40bf6e
lea eax, [ebp - 0x128]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push dword [ebp - 0x11c]
mov dword [ebp - 0x110], 0x100
call ebx
test eax, eax
je 0x40bf13
lea ecx, [ebp - 0x11c]
call fcn.00403d93
push dword [ebp - 0x120]
call fcn.0040c004
lea ecx, [ebp - 0x11c]
mov esi, eax
call fcn.00403d93
mov eax, esi
jmp 0x40befa
Function at 0x40c8b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x445ff9
call fcn.00429daf
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x41c], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x40c95f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x420]
inc eax
push ecx
mov dword [ebp - 0x420], eax
call fcn.0040b81d
pop ecx
test eax, eax
js 0x40c95f
mov ebx, dword [ebp - 0x420]
cmp ebx, 0x400
jg 0x40c941
push ebx
call fcn.0040b880
pop ecx
test al, al
je 0x40c941
mov eax, ebx
call fcn.00432a40
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x40c94e
mov eax, ebx
lea esi, [ebp - 0x41c]
call fcn.0040b8ec
push 3
push ebx
push edi
mov esi, eax
call fcn.0040b319
test eax, eax
jne 0x40c9a3
xor ebx, ebx
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40c978
lea eax, [ebp - 0x418]
call fcn.0040b7cf
cmp dword [ebp - 0x41c], ebx
je 0x40c999
mov eax, dword [ebp - 0x41c]
mov esi, dword [eax]
push eax
mov dword [ebp - 0x41c], esi
call fcn.00428a5a
pop ecx
cmp esi, ebx
jne 0x40c980
mov eax, 0x8007000e
jmp 0x40caff
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x40c9c6
call fcn.0040b28e
mov edi, eax
jmp 0x40cac2
push dword [ebp - 0x424]
push dword [ebp - 0x428]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40c9e9
call fcn.0040b28e
jmp 0x40cab4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x40c9df
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x428], esi
cmp eax, esi
jae 0x40ca1c
mov edi, 0x8007000e
jmp 0x40cab6
xor ecx, ecx
mov byte [ebp - 4], 2
ja 0x40ca29
cmp eax, 0xffffffff
jbe 0x40ca33
push 0x80070216
call fcn.00403585
cmp eax, 0x400
jbe 0x40ca5e
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.0040b7e5
jmp 0x40ca6a
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x40ca12
push esi
push dword [ebp - 0x424]
push esi
push dword [ebp - 0x418]
call fcn.00429059
push eax
call fcn.0040bdd7
mov eax, dword [ebp - 0x418]
add esp, 0x14
push dword [ebp + 0x14]
mov byte [eax + esi], 0
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x430]
call fcn.0040c760
mov edi, eax
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40cadb
lea eax, [ebp - 0x418]
call fcn.0040b7cf
cmp dword [ebp - 0x41c], 0
je 0x40cafd
mov eax, dword [ebp - 0x41c]
mov esi, dword [eax]
push eax
mov dword [ebp - 0x41c], esi
call fcn.00428a5a
pop ecx
test esi, esi
jne 0x40cae4
mov eax, edi
lea esp, [ebp - 0x440]
call fcn.00429e0b
ret 0x10