joyce8/EMBER2024-capa huggingface dataset:
Function at 0x74752a10
Capabilities:
Check internet connectivity via wininet
Create http request
Read data from internet
Receive data

Disassembly:
sub esp, 0x424
mov eax, dword [?]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x434]
push edi
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x7d0
call dword [sym.imp.wininet.dll_InternetAttemptConnect]
test eax, eax
jne 0x74752a91
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.wininet.dll_InternetGetConnectedState]
test eax, eax
je 0x74752a91
push 0
push 0
push 0
push 0
push 0x7475b5cc
call dword [sym.imp.wininet.dll_InternetOpenA]
mov ebp, eax
test ebp, ebp
je 0x74752a91
mov edi, dword [sym.imp.wininet.dll_InternetSetOptionA]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 2
push ebp
call edi
test eax, eax
jne 0x74752a98
push ebp
call dword [sym.imp.wininet.dll_InternetCloseHandle]
xor eax, eax
jmp 0x74752bbf
push 0x309
push 0x80000000
push 0xffffffffffffffff
push 0
push 0x7475b6a4
push ebp
call dword [sym.imp.wininet.dll_InternetOpenUrlA]
mov ebx, eax
test ebx, ebx
je 0x74752a8a
cmp dword [esp + 0x43c], 0
jne 0x74752ad2
push 4
lea edx, [esp + 0x1c]
push edx
push 6
push ebx
call edi
test eax, eax
je 0x74752a8a
push 0x400
lea eax, [esp + 0x34]
push 0
push eax
call fcn.74756ca0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x400
lea edx, [esp + 0x38]
push edx
push ebx
call dword [sym.imp.wininet.dll_InternetReadFile]
push ebx
mov ebx, dword [sym.imp.wininet.dll_InternetCloseHandle]
call ebx
push ebp
call ebx
xor edi, edi
cmp dword [esp + 0x14], edi
je 0x74752a91
lea eax, [esp + 0x30]
push sym.imp.____99
push eax
call fcn.74753c90
mov ebx, eax
add esp, 8
cmp ebx, edi
je 0x74752a91
push esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.kernel32.dll_GetLocalTime]
push 2
lea ecx, [ebx - 9]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], edi
call fcn.74753ec0
lea eax, [esp + 0x1c]
push eax
call fcn.74753eb3
push 2
lea ecx, [ebx - 6]
push ecx
lea edx, [esp + 0x28]
push edx
mov word [esp + 0x40], ax
call fcn.74753ec0
lea eax, [esp + 0x2c]
push eax
call fcn.74753eb3
push 2
add ebx, 0xfffffffd
lea ecx, [esp + 0x34]
push ebx
push ecx
mov word [esp + 0x52], ax
call fcn.74753ec0
lea edx, [esp + 0x3c]
push edx
call fcn.74753eb3
mov ecx, dword [esp + 0x54]
mov word [esp + 0x58], ax
mov edx, dword [esp + 0x58]
add esp, 0x20
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.74752950
add esp, 0x10
or eax, 0xffffffff
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.74753908
add esp, 0x424
ret 8
Function at 0x747597d1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.74754ace
and dword [ebp - 4], 0
cmp dword [0x7475e684], 0
mov ebx, eax
jne 0x74759882
push 0x7475b370
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x74759933
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x7475b364
push edi
call esi
test eax, eax
je 0x74759933
push eax
call fcn.74754a5c
mov dword [esp], 0x7475b354
push edi
mov dword [0x7475e684], eax
call esi
push eax
call fcn.74754a5c
mov dword [esp], 0x7475b340
push edi
mov dword [0x7475e688], eax
call esi
push eax
call fcn.74754a5c
mov dword [esp], 0x7475b324
push edi
mov dword [0x7475e68c], eax
call esi
push eax
call fcn.74754a5c
pop ecx
mov dword [0x7475e694], eax
test eax, eax
je 0x74759882
push 0x7475b30c
push edi
call esi
push eax
call fcn.74754a5c
pop ecx
mov dword [0x7475e690], eax
mov eax, dword [0x7475e690]
cmp eax, ebx
je 0x747598da
cmp dword [0x7475e694], ebx
je 0x747598da
push eax
call fcn.74754ad7
push dword [0x7475e694]
mov esi, eax
call fcn.74754ad7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x747598da
test edi, edi
je 0x747598da
call esi
test eax, eax
je 0x747598d1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x747598d1
test byte [ebp - 0xc], 1
jne 0x747598da
or dword [ebp + 0x10], 0x200000
jmp 0x74759913
mov eax, dword [0x7475e688]
cmp eax, ebx
je 0x74759913
push eax
call fcn.74754ad7
pop ecx
test eax, eax
je 0x74759913
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x74759913
mov eax, dword [0x7475e68c]
cmp eax, ebx
je 0x74759913
push eax
call fcn.74754ad7
pop ecx
test eax, eax
je 0x74759913
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x7475e684]
call fcn.74754ad7
pop ecx
test eax, eax
je 0x74759933
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x74759935
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x7476e650
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x7476e66d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7476e65e
add dl, dl
jne 0x7476e678
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7476e6c4
xor eax, eax
add dl, dl
jne 0x7476e685
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7476e761
add dl, dl
jne 0x7476e694
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7476e69f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7476e6aa
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7476e6b5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7476e6bf
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x7476e664
mov eax, 1
add dl, dl
jne 0x7476e6d2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7476e6dd
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7476e6c9
sub eax, 2
jne 0x7476e70c
mov ecx, 1
add dl, dl
jne 0x7476e6f2
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7476e6fd
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7476e6e9
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7476e664
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x7476e723
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7476e72e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7476e71a
cmp eax, 0x7d00
jae 0x7476e751
cmp eax, 0x500
jb 0x7476e74c
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7476e664
cmp eax, 0x7f
ja 0x7476e754
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7476e664
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x7476e77d
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7476e664
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x401d41
Capabilities:
Clear file content
Get common file path

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
cmp edi, 0xacc
jge 0x401d62
push esi
call dword [sym.imp.USER32.dll_SetClipboardViewer]
call dword [sym.imp.USER32.dll_GetCaretBlinkTime]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp edi, 0x45be411
jg 0x401d7c
inc edi
cmp edi, 0x3330601
jl 0x401d4d
cmp dword [0x20f5894], 0x400
jne 0x401dad
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push esi
push esi
call dword [sym.imp.USER32.dll_SetCursorPos]
push esi
call fcn.00404501
call fcn.00403fa1
push esi
call fcn.0040477f
pop ecx
pop ecx
xor edi, edi
cmp edi, 0x16c76
jge 0x401dbf
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e5c52
jg 0x401de5
inc edi
cmp edi, 0x3003f
jl 0x401daf
mov eax, dword [0x4a88b4]
mov dword [0x20f5894], eax
call fcn.00401a7b
mov edi, 0x3078f
cmp dword [0x20f5894], 0x51f
jne 0x401e11
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec edi
jne 0x401df9
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10

Function at 0x40297f
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x4a13bd
call fcn.004a1240
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0040373c
xor edi, edi
push 4
mov dword [ebp - 4], edi
call fcn.0040478e
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x4029c7
call fcn.004034f0
mov dword [ebx], eax
call fcn.004032af
mov ecx, eax
call fcn.004011a5
mov eax, ebx
jmp 0x4029c9
xor eax, eax
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov dword [eax], edi
mov eax, dword [esi + 0x34]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
mov dword [esi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4052d9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a7364]
jne 0x4052e3
repz ret
jmp fcn.00409b2c
Function at 0x40e0b2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a7364]
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.00408076
and dword [ebp - 0x14], 0
cmp dword [0x4b3a8c], 0
mov dword [ebp - 0x18], eax
jne 0x40e165
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e20d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40e20d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4b3a8c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4b3a90], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4b3a94], eax
call edi
push eax
call esi
mov dword [0x4b3a9c], eax
test eax, eax
je 0x40e165
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4b3a98], eax
mov eax, dword [0x4b3a98]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40e1be
cmp dword [0x4b3a9c], ecx
je 0x40e1be
push eax
call esi
push dword [0x4b3a9c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40e1be
test ebx, ebx
je 0x40e1be
call edi
test eax, eax
je 0x40e1b5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40e1b5
test byte [ebp - 8], 1
jne 0x40e1be
or dword [ebp + 0x10], 0x200000
jmp 0x40e1f1
mov eax, dword [0x4b3a90]
cmp eax, dword [ebp - 0x18]
je 0x40e1f1
push eax
call esi
test eax, eax
je 0x40e1f1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e1f1
mov eax, dword [0x4b3a94]
cmp eax, dword [ebp - 0x18]
je 0x40e1f1
push eax
call esi
test eax, eax
je 0x40e1f1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4b3a8c]
call esi
test eax, eax
je 0x40e20d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e20f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004052d9
leave
ret
Function at 0x4024ef
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
pushal
call 0x4024f5
pop ebp
sub ebp, 0x702d1082
jmp 0x4025af
mov eax, dword fs:[0x30]
mov al, byte [eax + 2]
and eax, 0xff
je 0x4025c7
mov eax, 1
int3
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
mov edx, dword [eax + 0x20]
lea ebx, [ebp + 0x702d1f54]
mov cx, word [eax + 0x1c]
cmp cx, 0x18
je 0x4025f3
cmp cx, 0x1c
jne 0x40261a
lea ebx, [ebp + 0x702d1f72]
push eax
mov al, byte [edx]
xor al, byte [ebx]
sub al, 0x55
jne 0x4025fe
jmp 0x40260b
mov al, byte [edx]
add al, 0x20
xor al, byte [ebx]
sub al, 0x55
je 0x40260b
pop eax
jmp 0x40261a
sub cx, 2
je 0x402617
add edx, 2
inc ebx
jmp 0x4025f4
pop eax
jmp 0x40261e
mov esi, dword [eax]
jmp 0x4025d3
mov eax, dword [eax + 8]
mov dword [ebp + 0x702d1f90], eax
lea ebx, [ebp + 0x702d1f98]
push ebx
push dword [ebp + 0x702d1f90]
call fcn.00402501
mov dword [ebp + 0x702d2061], eax
cmp eax, 0
jne 0x40268b
lea ebx, [ebp + 0x702d1fa5]
push ebx
push dword [ebp + 0x702d1f90]
call fcn.00402501
mov dword [ebp + 0x702d2065], eax
xor ebx, ebx
push ebx
push ebx
lea ebx, [ebp + 0x702d1f63]
push ebx
call dword [ebp + 0x702d2065]
mov dword [ebp + 0x702d1f90], eax
lea ebx, [ebp + 0x702d1f98]
push ebx
push dword [ebp + 0x702d1f90]
call fcn.00402501
mov dword [ebp + 0x702d2061], eax
lea ebx, [ebp + 0x702d1fb4]
push ebx
push dword [ebp + 0x702d1f90]
call fcn.00402501
mov dword [ebp + 0x702d206d], eax
lea ebx, [ebp + 0x702d1fc0]
push ebx
push dword [ebp + 0x702d1f90]
call fcn.00402501
mov dword [ebp + 0x702d2071], eax
mov ebx, esp
sub esp, 4
push ebx
mov ebx, 0x40
push ebx
mov ebx, 0x702d214f
sub ebx, 0x702d1265
push ebx
call 0x4026d8
call eax
add esp, 4
jmp 0x4026ef
lea eax, [ebp + 0x702d1296]
push eax
push dword fs:[0]
mov dword fs:[0], esp
jmp 0x402861
mov eax, 0xffff
int3

Function at 0x402501
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
add esi, dword [esi + 0x3c]
cmp dword [esi], 0x4550
jne 0x402596
mov edi, dword [ebp + 0xc]
mov ecx, 0x96
mov al, 0x55
repne scasb al, byte es:[edi]
mov ecx, edi
sub ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x78]
add edx, dword [ebp + 8]
mov ebx, dword [edx + 0x20]
add ebx, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebx]
add edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push ecx
mov ch, byte [esi]
xor ch, byte es:[edi]
sub ch, 0x55
jne 0x402553
inc esi
inc edi
dec cl
jne 0x40253e
add esp, 4
jmp 0x40255d
pop ecx
add ebx, 4
inc eax
cmp eax, dword [edx + 0x18]
jne 0x402535
cmp eax, dword [edx + 0x18]
jne 0x402564
jmp 0x402596
mov esi, dword [edx + 0x24]
add esi, dword [ebp + 8]
push edx
mov ebx, 2
xor edx, edx
mul ebx
pop edx
add eax, esi
xor ecx, ecx
mov cx, word [eax]
mov edi, dword [edx + 0x1c]
xor edx, edx
mov ebx, 4
mov eax, ecx
mul ebx
add eax, dword [ebp + 8]
add eax, edi
mov eax, dword [eax]
add eax, dword [ebp + 8]
jmp 0x402598
xor eax, eax
add esp, 8
leave
ret 8
Function at 0x4025b0
Capabilities:
Enumerate gui resources

Disassembly:
test byte [0x4a1438], 1
jne 0x4025e1
or dword [0x4a1438], 1
push 0x4781e0
mov dword [0x4a1430], 0x47fc74
mov dword [0x4a1434], 0
call fcn.00451ec6
add esp, 4
push str.RandomLogicInstaller
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x4a1434], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40260e
push esi
push 0x402620
call dword [sym.imp.USER32.dll_EnumWindows]
xor al, al
ret
mov al, 1
ret

Function at 0x402b60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402b79
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402bb4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402bb0
lea ebx, [ebx]
cmp esi, eax
jae 0x402bb4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402ba0
cmp esi, eax
jb 0x402bba
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403010
Capabilities:
Set registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x49b7f0]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [esp + 0x410]
test eax, eax
jne 0x403046
xor al, al
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.00451053
add esp, 0x40c
ret
test edi, edi
je 0x40302f
push eax
lea eax, [esp + 0xc]
push 0x200
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00451f72
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x20006
push 0
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4030af
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40302f
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4030b4
mov ecx, dword [esp]
sub eax, edx
sar eax, 1
add eax, eax
push eax
push edi
push 1
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40302f
mov eax, dword [esp]
test eax, eax
je 0x4030ec
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x408]
xor ecx, esp
mov al, 1
call fcn.00451053
add esp, 0x40c
ret
Function at 0x403110
Capabilities:
Set registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x49b7f0]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [esp + 0x410]
test eax, eax
jne 0x403146
xor al, al
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.00451053
add esp, 0x40c
ret
push eax
lea eax, [esp + 0xc]
push 0x200
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00451f72
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x20006
push 0
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4031ab
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40312f
mov ecx, dword [esp]
push 4
lea eax, [esp + 0x418]
push eax
push 4
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40312f
mov eax, dword [esp]
test eax, eax
je 0x4031da
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x408]
xor ecx, esp
mov al, 1
call fcn.00451053
add esp, 0x40c
ret

Function at 0x403200
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x49b7f0]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [esp + 0x410]
test eax, eax
push ebp
mov ebp, dword [esp + 0x418]
push esi
push edi
mov edi, ecx
mov esi, edx
je 0x4032c8
push eax
lea eax, [esp + 0x18]
push 0x200
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 4
call fcn.00451f72
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x20]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4032c8
mov ecx, dword [esi]
test ecx, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jne 0x4032e2
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push ebp
push ecx
call edi
test eax, eax
jne 0x4032c8
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004344c1
mov ecx, dword [esp + 0x10]
lea edx, [ecx + ecx]
push edx
push 0
push eax
mov dword [esi], eax
call fcn.00455660
mov ecx, dword [esi]
add esp, 0x10
test ecx, ecx
jne 0x4032fa
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.00451053
add esp, 0x40c
ret
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4032e7
sub eax, esi
sar eax, 1
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x18]
push 0
push 0
push ebp
push ecx
call edi
test eax, eax
jne 0x4032c8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40331f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebp
xor ecx, esp
mov al, 1
call fcn.00451053
add esp, 0x40c
ret
Function at 0x403340
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x49b7f0]
xor eax, esp
mov dword [esp + 0x40c], eax
mov eax, dword [esp + 0x414]
test eax, eax
jne 0x403376
xor al, al
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.00451053
add esp, 0x410
ret
push eax
mov ecx, 4
lea eax, [esp + 0x10]
push 0x200
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
call fcn.00451f72
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40335f
mov edx, dword [esp]
lea eax, [esp + 4]
push eax
push ebx
lea ecx, [esp + 0x10]
push ecx
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40335f
mov eax, dword [esp]
test eax, eax
je 0x4033e3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40c]
xor ecx, esp
mov al, 1
call fcn.00451053
add esp, 0x410
ret
Function at 0x406f30
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x471210
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x49b7f0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [0x49b7f0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
push eax
mov edi, ecx
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
xor ebx, ebx
push edx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.004028f0
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
add eax, 0xfffffffe
push eax
push 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.004089e0
mov byte [esp + 0x38], 1
mov ecx, dword [eax]
mov eax, ecx
lea esi, [eax + 2]
jmp 0x406fd0
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x406fd0
sub eax, esi
sar eax, 1
push eax
lea esi, [edi + 0x58]
push ecx
call fcn.00401720
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40700d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [edi + 0x6c]
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004344c1
add esp, 4
cmp dword [esi + 0x18], 8
mov edi, eax
jb 0x407039
mov esi, dword [esi + 4]
jmp 0x40703c
add esi, 4
mov ecx, edi
mov edi, edi
movzx eax, word [esi]
mov word [ecx], ax
add esi, 2
add ecx, 2
cmp ax, bx
jne 0x407040
push str.SoftwareVHLDMACHINE_ID
mov ebx, str.Installation_GUID
mov esi, SysReAllocString
call fcn.00403010
push edi
call fcn.004344c6
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407096
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00451053
add esp, 0x2c
ret