joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012ef
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4a4fec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp - 0x41c], ax
xor ebx, ebx
lea eax, [ebp - 0x41a]
push ebx
push eax
call sub.MSVCR100.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0x18
mov eax, 0x105
push eax
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x428]
push ecx
lea ecx, [ebp - 0x424]
push ecx
lea ecx, [ebp - 0x420]
push ecx
push eax
lea eax, [ebp - 0x41c]
push eax
push 0x47fc28
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x428], ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov esi, 0x104
test eax, eax
je 0x4013a0
push esi
push edi
push dword [ebp - 0x420]
call fcn.004010e6
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x4013c9
call fcn.00401088
cmp eax, 1
jne 0x4013bd
push str.thsnYaVieBoda
jmp 0x4013c2
push str.TsnIorcAeBoda
push esi
push edi
call fcn.0040129b
cmp dword [ebp + 0xc], ebx
je 0x4013d8
push dword [ebp + 0xc]
push esi
push edi
call fcn.0040129b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043cac0
leave
ret
Function at 0x401e1e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x4a4fec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, str.BIBCacheAddRemoveClientPurgeProcV2
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], eax
mov eax, 0x47fd28
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
movzx eax, byte [ebp + 8]
push eax
push 0x4a93b8
push str.BIBCacheInterface
lea eax, [ebp - 0xcc]
push 0x18
push eax
mov dword [ebp - 0xcc], str.NewCacheID
mov dword [ebp - 0xc8], str.BIBCacheNewCacheIDProc
mov dword [ebp - 0xc4], str.AddRef
mov dword [ebp - 0xc0], str.BIBCacheAddRefProc
mov dword [ebp - 0xbc], str.Release
mov dword [ebp - 0xb8], str.BIBCacheReleaseProc
mov dword [ebp - 0xb4], str.Attach
mov dword [ebp - 0xb0], str.BIBCacheAttachProcV2
mov dword [ebp - 0xac], 0x480038
mov dword [ebp - 0xa8], str.BIBCacheAddProc
mov dword [ebp - 0xa4], str.UpdateCost
mov dword [ebp - 0xa0], str.BIBCacheUpdateCostProc
mov dword [ebp - 0x9c], str.ReturnCost
mov dword [ebp - 0x98], str.BIBCacheReturnCostProc
mov dword [ebp - 0x94], str.MarkNoPurge
mov dword [ebp - 0x90], str.BIBCacheMarkNoPurgeProcV2
mov dword [ebp - 0x8c], str.MarkPurge
mov dword [ebp - 0x88], str.BIBCacheMarkPurgeProc
mov dword [ebp - 0x84], str.GetCacheTime
mov dword [ebp - 0x80], str.BIBCacheGetCacheTimeProc
mov dword [ebp - 0x7c], str.CurrentCacheSize
mov dword [ebp - 0x78], str.BIBCurrentCacheSizeProc
mov dword [ebp - 0x74], str.NewCachePurge
mov dword [ebp - 0x70], str.BIBCacheNewCachePurgeProc
mov dword [ebp - 0x6c], str.PurgeNextBlock
mov dword [ebp - 0x68], str.BIBCachePurgeNextBlockProc
mov dword [ebp - 0x64], str.DeleteCachePurge
mov dword [ebp - 0x60], str.BIBCacheDeleteCachePurgeProc
mov dword [ebp - 0x5c], str.PurgeAll
mov dword [ebp - 0x58], str.BIBCachePurgeAllProc
mov dword [ebp - 0x54], str.PurgeAllStaticCaches
mov dword [ebp - 0x50], str.BIBCachePurgeAllStaticCachesProc
mov dword [ebp - 0x4c], str.AddClientPurge
mov dword [ebp - 0x44], str.RemoveClientPurge
mov dword [ebp - 0x3c], str.NewCacheSet
mov dword [ebp - 0x38], str.BIBCacheNewCacheSetProc
mov dword [ebp - 0x34], str.AddRefCacheSet
mov dword [ebp - 0x30], str.BIBCacheAddRefCacheSetProc
mov dword [ebp - 0x2c], str.DeleteCacheSet
mov dword [ebp - 0x28], str.BIBCacheDeleteCacheSetProc
mov dword [ebp - 0x24], str.SearchForID
mov dword [ebp - 0x20], str.BIBCacheSearchForIDProc
mov dword [ebp - 0x1c], str.RemoveID
mov dword [ebp - 0x18], str.BIBCacheRemoveIDProc
mov dword [ebp - 0x14], str.RemoveIDs
mov dword [ebp - 0x10], str.BIBCacheRemoveIDsProc
call fcn.00401da4
mov ecx, dword [ebp - 4]
add esp, 0x14
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.0043cac0
leave
ret
Function at 0x407774
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x4a4fec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push edi
xor edi, edi
push edi
push edi
push 1
push edi
call esi
mov dword [ebp - 0xac], eax
cmp eax, edi
je 0x407837
push ebx
mov ebx, 0x9c
push ebx
lea eax, [ebp - 0xa0]
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x407836
cmp dword [ebp - 0x9c], 5
jne 0x407836
cmp dword [ebp - 0x98], 1
push 2
pop eax
je 0x4077f1
cmp dword [ebp - 0x98], eax
jne 0x407836
mov dword [ebp - 0xa8], eax
call dword [sym.imp.MSVCR100.dll__get_heap_handle]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0xa4], eax
cmp ebx, edi
je 0x40781c
push 4
lea eax, [ebp - 0xa8]
push eax
push edi
push ebx
call esi
cmp dword [ebp - 0xa4], edi
je 0x407836
push 4
lea eax, [ebp - 0xa8]
push eax
push edi
push dword [ebp - 0xa4]
call esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xac]
pop edi
xor ecx, ebp
pop esi
call fcn.0043cac0
leave
ret

Function at 0x40a45c
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, ecx
push dword [esi + 4]
call edi
xor ecx, ecx
cmp eax, ecx
je 0x40a47f
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x40a482
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], ecx
jne 0x40a4ac
push ecx
push 0xffffffffffffffff
push str.must_own_monitor_prior_to_calling_wait__
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.RSException.0
call fcn.00408f1a
push 0x490a04
lea eax, [ebp - 0x20]
push eax
call sub.MSVCR100.dll__CxxThrowException
lea ebx, [esi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 4]
call edi
push eax
mov ecx, esi
call fcn.0040a290
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.0040a190
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 4]
mov ecx, esi
call fcn.0040a397
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40a527
Capabilities:
Create thread

Disassembly:
push esi
push 4
mov esi, ecx
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
xor ecx, ecx
cmp eax, ecx
je 0x40a53c
mov dword [eax], ecx
jmp 0x40a53e
xor eax, eax
push ecx
push ecx
push esi
push 0x40a515
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
mov dword [ecx], eax
pop esi
ret
Function at 0x40a631
Capabilities:
Get disk information

Disassembly:
push edi
mov ecx, esi
xor edi, edi
call fcn.0040830e
cmp dword [esi + 4], edi
jne 0x40a644
xor eax, eax
pop edi
ret
mov ecx, esi
call fcn.0040830e
cmp dword [esi + 4], 1
jne 0x40a66e
push edi
mov ecx, esi
call fcn.004096d0
movzx eax, ax
push eax
call fcn.0040a617
add esp, 4
test al, al
je 0x40a66e
xor eax, eax
inc eax
pop edi
ret
mov ecx, esi
call fcn.0040830e
cmp dword [esi + 4], 3
jne 0x40a6d3
push edi
mov ecx, esi
call fcn.004096d0
movzx eax, ax
push eax
call dword [sym.imp.MSVCR100.dll_iswalpha]
pop ecx
test eax, eax
je 0x40a6d3
push 1
mov ecx, esi
call fcn.004096d0
cmp ax, 0x3a
jne 0x40a6d3
push 2
mov ecx, esi
call fcn.004096d0
movzx eax, ax
push eax
call fcn.0040a617
add esp, 4
test al, al
je 0x40a6d3
mov ecx, esi
call fcn.0040830e
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb eax, eax
neg eax
pop edi
ret
mov ecx, esi
call fcn.0040830e
cmp dword [esi + 4], 2
jbe 0x40a809
push 0
mov ecx, esi
call fcn.004096d0
movzx eax, ax
push eax
call fcn.0040a617
add esp, 4
test al, al
je 0x40a809
push 1
mov ecx, esi
call fcn.004096d0
movzx eax, ax
push eax
call fcn.0040a617
add esp, 4
test al, al
je 0x40a809
push 2
pop edi
push edi
mov ecx, esi
call fcn.004096d0
movzx eax, ax
push eax
call fcn.0040a617
add esp, 4
test al, al
jne 0x40a640
mov ecx, esi
inc edi
call fcn.0040830e
cmp edi, dword [esi + 4]
jae 0x40a762
push edi
mov ecx, esi
call fcn.004096d0
movzx eax, ax
push eax
call fcn.0040a617
add esp, 4
test al, al
je 0x40a73d
mov ecx, esi
call fcn.0040830e
cmp dword [esi + 4], edi
je 0x40a640
mov ecx, esi
inc edi
call fcn.0040830e
cmp dword [esi + 4], edi
je 0x40a640
push edi
mov ecx, esi
call fcn.004096d0
movzx eax, ax
push eax
call fcn.0040a617
add esp, 4
test al, al
jne 0x40a640
mov ecx, esi
inc edi
call fcn.0040830e
cmp edi, dword [esi + 4]
jae 0x40a7c4
push edi
mov ecx, esi
call fcn.004096d0
movzx eax, ax
push eax
call fcn.0040a617
add esp, 4
test al, al
je 0x40a79f
mov ecx, esi
call fcn.0040830e
lea eax, [edi + 1]
cmp dword [esi + 4], eax
ja 0x40a640
mov ecx, esi
call fcn.0040830e
cmp dword [esi + 4], edi
jne 0x40a7f2
movzx eax, word [0x4a39d4]
push eax
mov ecx, esi
call fcn.00408886
mov ecx, esi
call fcn.0040830e
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb edi, edi
neg edi
mov eax, edi
pop edi
ret
Function at 0x40ac4d
Capabilities:
Check if file exists

Disassembly:
push 0x49c
mov eax, 0x470e57
call fcn.0043cbbb
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0040830e
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x40ac7a
mov eax, 0xffffe89d
jmp 0x40aea5
push ebx
push 0xffffffffffffffff
push 0x481e00
lea ecx, [ebp - 0x488]
call fcn.00408f1a
push ebx
lea eax, [ebp - 0x488]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00409cb3
cmp eax, 0xffffffff
setne bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.00403632
lea ecx, [ebp - 0x480]
call fcn.00403632
test bl, bl
je 0x40accd
mov eax, 0xffffe8c2
jmp 0x40aea5
mov ecx, esi
call fcn.0040830e
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x46c]
push ecx
push eax
call ebx
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
jne 0x40ae05
mov ecx, esi
call fcn.0040830e
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
mov esi, 0x105
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [ebp - 0x470], eax
test eax, eax
jne 0x40ad25
inc eax
jmp 0x40aea5
cmp eax, esi
jbe 0x40ad33
mov eax, 0xffffe8c1
jmp 0x40aea5
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x488]
call fcn.004087ca
lea esi, [ebp - 0x488]
mov dword [ebp - 4], 1
call fcn.0040a631
test eax, eax
je 0x40ad92
xor eax, eax
mov dword [edi], 2
mov dword [edi + 4], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
xor esi, esi
lea ecx, [ebp - 0x478]
call fcn.00403632
lea ecx, [ebp - 0x480]
call fcn.00403632
mov eax, esi
jmp 0x40aea5
mov ecx, dword [ebp - 0x470]
lea ecx, [ebp + ecx*2 - 0x21e]
movzx eax, word [ecx]
push eax
call fcn.0040a617
add esp, 4
test al, al
jne 0x40adcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40adc4
cmp eax, 3
je 0x40adc4
xor esi, esi
inc esi
jmp 0x40ad75
mov esi, 0xffffe8c2
jmp 0x40ad75
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x21c]
push eax
call ebx
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
je 0x40adaf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.00403632
lea ecx, [ebp - 0x480]
call fcn.00403632
push dword [ebp - 0x470]
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x46c], 0x10
push 0
pop eax
setne al
xor ebx, ebx
inc eax
mov dword [edi], eax
cmp dword [ebp - 0x450], ebx
je 0x40ae59
push ebx
push 0xffffffffffffffff
push str.file_size_larger_than_4GB_encountered
lea ecx, [ebp - 0x4a4]
mov dword [ebp - method.RSException.virtual_0], vtable.RSException.0
call fcn.00408f1a
push 0x490a04
lea eax, [ebp - 0x4a8]
push eax
call sub.MSVCR100.dll__CxxThrowException
mov eax, dword [ebp - 0x44c]
mov dword [edi + 4], eax
lea esi, [edi + 0x10]
lea eax, [ebp - 0x458]
push esi
push eax
call fcn.0040a80d
pop ecx
pop ecx
cmp dword [ebp - 0x468], ebx
jne 0x40ae91
cmp dword [ebp - 0x464], ebx
jne 0x40ae91
mov eax, dword [esi]
mov dword [edi + 8], eax
mov eax, dword [esi + 4]
mov dword [edi + 0xc], eax
jmp 0x40aea3
add edi, 8
lea eax, [ebp - 0x468]
push edi
push eax
call fcn.0040a80d
pop ecx
pop ecx
xor eax, eax
call fcn.0043cc3e
ret
Function at 0x40b583
Capabilities:
Create tcp socket
Initialize winsock library

Disassembly:
push 0x1a0
mov eax, 0x470eec
call fcn.0043cbbb
mov esi, ecx
mov dword [ebp - 0x1a8], esi
call fcn.0040b031
lea eax, [esi + 0x18]
xor edi, edi
mov dword [esi], vtable.CNetWatcher.0
push eax
mov dword [ebp - 4], edi
mov dword [eax], vtable.RSMonitor.0
mov dword [eax + 4], edi
call fcn.0040a31a
push 8
mov byte [ebp - 4], 1
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
pop ecx
mov dword [esi + 0x20], eax
or dword [eax], 0xffffffff
mov eax, dword [esi + 0x20]
or dword [eax + 4], 0xffffffff
lea eax, [ebp - 0x1a0]
push eax
push 0x202
mov byte [ebp - 4], 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40b647
cmp byte [ebp - 0x1a0], 2
jne 0x40b64d
mov eax, dword [ebp - 0x1a0]
shr eax, 8
cmp al, 2
jne 0x40b64d
push 1
push edi
push edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
push edi
push edi
lea ecx, [ebp - 0x1ac]
push ecx
push edi
push edi
push 4
lea ecx, [ebp - 0x1a4]
push ecx
push 0x8004667e
push eax
mov dword [esi + 0x14], eax
mov dword [ebp - 0x1a4], 1
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x40b64d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, esi
call fcn.0043cc3e
ret

Function at 0x40b80f
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x4a96dc], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x40b853
call ebx
test eax, eax
jns 0x40b849
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4a96d8], eax
mov dword [0x4a96dc], 1
mov eax, dword [0x4a96d8]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b86f
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b89f
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x40b895
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x40b88a
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x40b88f
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x40b89e
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x40bcf7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, 0x4a9c88
lea esi, [eax + 0x105]
push ebx
push esi
mov dword [ebp - 0xc], eax
call fcn.0043cadc
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x40bd32
mov eax, 0x8000ffff
jmp 0x40be0a
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 8], eax
test eax, eax
jne 0x40bd4e
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x40bd28
cmp eax, 0x104
jbe 0x40bd81
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
lea esi, [eax + ecx + 1]
push ebx
push esi
call fcn.0043cadc
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40bd28
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40bd45
push str.Shell32.dll
push esi
push edi
xor ebx, ebx
call fcn.0040bbea
test eax, eax
jne 0x40bd9b
push edi
call fcn.0040bc6f
mov ebx, eax
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
xor esi, esi
pop ecx
mov edi, 0x80004001
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x40be08
push str.SHGetKnownFolderPath
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x40bdcf
lea ecx, [ebp - 4]
push ecx
push esi
push esi
push 0x4a39d8
call eax
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp + 8], esi
je 0x40be08
cmp dword [ebp - 4], esi
je 0x40be08
cmp edi, esi
jne 0x40be08
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
test eax, eax
je 0x40bdff
mov edi, 0x80070057
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c750
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x4a9718], 0
je 0x40c76e
mov eax, dword [ebp + 8]
mov ecx, dword [0x4a9714]
mov dword [eax], ecx
jmp 0x40c850
cmp dword [ebp + 0xc], 0
je 0x40c849
push ebx
push esi
push edi
push dword [0x4a3a00]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, 0x4a9c88
lea edi, [eax + 0x105]
push ebx
push edi
mov dword [ebp - 8], eax
call fcn.0043cadc
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40c846
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 4], eax
test eax, eax
je 0x40c7ee
cmp eax, 0x104
jbe 0x40c7f7
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
lea edi, [eax + ecx + 1]
push ebx
push edi
call fcn.0043cadc
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40c846
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x40c7f7
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x40c846
push dword [0x4a3a00]
xor ebx, ebx
push edi
push esi
call fcn.0040bbea
test eax, eax
jne 0x40c812
push esi
call fcn.0040bc6f
mov ebx, eax
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
test ebx, ebx
je 0x40c846
push str.IEIsProtectedModeProcess
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c83f
mov esi, dword [ebp + 8]
push esi
call eax
mov dword [0x4a3a04], eax
mov eax, dword [esi]
mov dword [0x4a9714], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
mov byte [0x4a9718], 1
mov eax, dword [0x4a3a04]
leave
ret
Function at 0x40cb08
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x44
mov eax, 0x4711b9
call fcn.0043cb52
mov esi, ecx
push 4
pop ebx
xor edi, edi
push edi
push 0xffffffffffffffff
push 0x4820bc
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x14], ebx
call fcn.00408f1a
push dword [ebp + 8]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 4], edi
call fcn.004039d5
add esp, 0xc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00403632
lea ecx, [ebp - 0x48]
call fcn.00403632
push esi
lea ecx, [ebp - 0x20]
call fcn.0040337b
mov byte [ebp - 4], 3
cmp dword [esi + 8], edi
je 0x40cc12
push 1
mov ecx, esi
call fcn.0040c857
test eax, eax
je 0x40cbea
cmp dword [esi + 0xc], edi
je 0x40cc12
lea ecx, [ebp - 0x38]
call fcn.0040830e
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea edx, [ebp - 0x10]
push edx
mov ebx, eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push ebx
push dword [esi + 8]
push eax
call dword [ecx + 0x80]
push ebx
test eax, eax
jne 0x40cbe2
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], edi
je 0x40cbc8
mov ecx, dword [ebp - 0x20]
call fcn.0040a4f0
lea ecx, [ebp - 0x28]
call fcn.00403632
lea ecx, [ebp - 0x30]
call fcn.00403632
mov eax, esi
call fcn.0043cc2a
ret 8
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40cc12
lea ecx, [ebp - 0x38]
call fcn.0040830e
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push edi
push eax
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cc12
cmp dword [ebp - 0x18], ebx
je 0x40cbb4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], edi
je 0x40cc23
mov ecx, dword [ebp - 0x20]
call fcn.0040a4f0
mov esi, dword [ebp + 0xc]
jmp 0x40cbc8
Function at 0x40d0d7
Capabilities:
Set registry value

Disassembly:
push 0x88
mov eax, 0x471183
call fcn.0043cb52
mov esi, ecx
xor edi, edi
push edi
push 0xffffffffffffffff
push 0x4820fc
lea ecx, [ebp - 0x2c]
call fcn.00408f1a
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 4], edi
call fcn.004039d5
add esp, 0xc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00403632
lea ecx, [ebp - 0x24]
call fcn.00403632
push esi
lea ecx, [ebp - 0x14]
call fcn.0040337b
mov byte [ebp - 4], 3
cmp dword [esi + 8], edi
jne 0x40d17f
push edi
push 0xffffffffffffffff
push str.error_setting_key
lea ecx, [ebp - 0x2c]
call fcn.00408f1a
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 4
call fcn.004039d5
add esp, 0xc
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x48], vtable.RSException.0
call fcn.00403996
push 0x490a04
lea eax, [ebp - 0x48]
push eax
call sub.MSVCR100.dll__CxxThrowException
push 1
mov ecx, esi
call fcn.0040c857
test eax, eax
je 0x40d220
cmp dword [esi + 0xc], edi
je 0x40d1f7
lea ecx, [ebp - 0x60]
call fcn.0040830e
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push dword [ebp + 0xc]
mov ebx, eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push ebx
push dword [esi + 8]
push eax
call dword [ecx + 0x78]
push ebx
test eax, eax
je 0x40d1f1
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
push 0xffffffffffffffff
push str.error_setting_key
lea ecx, [ebp - 0x2c]
call fcn.00408f1a
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 6
call fcn.004039d5
add esp, 0xc
mov byte [ebp - 4], 7
jmp 0x40d161
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x10], edi
je 0x40d208
mov ecx, dword [ebp - 0x14]
call fcn.0040a4f0
lea ecx, [ebp - 0x50]
call fcn.00403632
lea ecx, [ebp - 0x58]
call fcn.00403632
call fcn.0043cc2a
ret 8
lea ecx, [ebp - 0x60]
call fcn.0040830e
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push edi
push eax
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40d1f7
push edi
push 0xffffffffffffffff
push str.error_setting_key
lea ecx, [ebp - 0x78]
call fcn.00408f1a
push dword [ebp + 8]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 8
call fcn.004039d5
add esp, 0xc
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 9
mov dword [ebp - 0x94], vtable.RSException.0
call fcn.00403996
push 0x490a04
lea eax, [ebp - 0x94]
jmp 0x40d179