joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d90
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b6cb
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x42400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x418], esi
push 0x44
lea eax, [ebp - 0x46c]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x428], xmm0
call fcn.0040c5f0
xor eax, eax
mov dword [ebp - 0x46c], 0x44
push 0x400
push eax
mov word [ebp - 0x43c], ax
lea eax, [ebp - 0x410]
push eax
mov dword [ebp - 0x440], 1
call fcn.0040c5f0
add esp, 0x18
lea eax, [ebp - 0x410]
push 0x400
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
call fcn.00402380
mov ecx, eax
test ecx, ecx
jne 0x405e3d
push 0x80004005
call fcn.00402030
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x414]
push dword [esi + 0xd4]
push str._d__c__s
push eax
call fcn.00406a00
mov esi, dword [ebp - 0x414]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x405e8e
push dword [esi - 0xc]
lea ecx, [ebp - 0x414]
call fcn.00406480
mov esi, dword [ebp - 0x414]
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x46c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405f04
push 0xbb8
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x428]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x424]
call edi
mov ecx, dword [ebp - 0x418]
push 0
push 0x4217c4
lea ecx, [ecx + 0xd4]
call fcn.004067a0
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi - 8]
push esi
call fcn.0040d5a2
add esp, 8
test eax, eax
js 0x405f5c
cmp eax, dword [esi - 8]
jg 0x405f5c
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x405f3f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409cd3
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00402030
int3
Function at 0x406c70
Capabilities:
Check if file exists
Check mutex on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 4
push str.InstalledIE
push str.SoftwareITA
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [eax]
push str.updpriGro748
push 0
push 0x100000
call ebx
test eax, eax
jne 0x406cf2
call esi
cmp eax, 2
jne 0x406cf5
push str.likeappforrun
push 0
push 0x100000
call ebx
test eax, eax
jne 0x406cf2
call esi
cmp eax, 2
jne 0x406cf5
call fcn.00407ba0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push eax
call edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406cb0
Function at 0x408800
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ba08
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x42400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x2b], 0x6c6c64
mov dword [ebp - 0x2f], 0x2e32336c
mov dword [ebp - 0x33], 0x656e7265
mov byte [ebp - 0x34], 0x4b
mov dword [ebp - 0x1a], 0x747865
mov word [ebp - 0x1d], 0x3233
mov dword [ebp - 0x22], 0x7365636f
mov byte [ebp - 0x1e], 0x73
mov byte [ebp - 0x1b], 0x4e
mov word [ebp - 0x24], 0x7250
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x408898
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x4088c1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4088ba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x408967
push 0
push 2
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x408938
lea eax, [ebp - 0x15c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x408931
nop dword [eax]
lea eax, [ebp - 0x138]
push eax
push dword [ebp + 8]
call fcn.0040f472
add esp, 8
test eax, eax
je 0x408927
lea eax, [ebp - 0x15c]
push eax
push esi
call edi
cmp eax, 1
je 0x408900
jmp 0x408931
mov dword [ebp - 0x160], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x408961
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409cd3
mov esp, ebp
pop ebp
ret
Function at 0x409930
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
push edi
mov edi, edx
mov al, byte [ebx]
test al, al
je 0x409a18
push esi
cmp al, 0x24
je 0x40997f
cmp al, 0x26
je 0x40997f
cmp al, 0x2b
je 0x40997f
cmp al, 0x2c
je 0x40997f
cmp al, 0x2f
je 0x40997f
cmp al, 0x3a
je 0x40997f
cmp al, 0x3b
je 0x40997f
cmp al, 0x3d
je 0x40997f
cmp al, 0x3f
je 0x40997f
cmp al, 0x40
je 0x40997f
cmp al, 0x23
je 0x40997f
cmp al, 0x20
je 0x40997f
mov byte [edi], al
inc edi
jmp 0x409a0b
movsx eax, al
push eax
lea eax, [ebp - 4]
push str.___02x
push eax
call fcn.004098f0
lea ecx, [ebp - 4]
add esp, 0xc
xor esi, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4099a0
sub ecx, edx
je 0x4099dd
nop dword [eax + eax]
movsx eax, byte [ebp + esi - 4]
push eax
call fcn.0040fa3c
mov byte [ebp + esi - 4], al
add esp, 4
lea eax, [ebp - 4]
inc esi
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4099d0
sub eax, edx
cmp esi, eax
jb 0x4099b0
lea ecx, [ebp - 4]
mov edx, edi
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4099e6
lea ecx, [ebp - 4]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409a00
sub ecx, edx
add edi, ecx
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x409947
pop esi
mov byte [edi], 0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409a30
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push eax
call esi
push 0
push ebx
mov dword [ebp - 8], eax
call esi
mov ecx, dword [ebp - 8]
mov ebx, eax
mov eax, dword [sym.imp.USER32.dll_AttachThreadInput]
cmp edi, ecx
je 0x409a78
push 1
push ecx
push edi
call eax
mov eax, dword [sym.imp.USER32.dll_AttachThreadInput]
cmp ebx, edi
je 0x409a82
push 1
push edi
push ebx
call eax
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea eax, [ebp - 4]
push 0
push eax
push 0
push 0x2000
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x2001
call esi
push 2
call dword [sym.imp.USER32.dll_LockSetForegroundWindow]
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x2001
call esi
mov eax, dword [ebp - 8]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
cmp edi, eax
je 0x409aef
push 0
push eax
push edi
call esi
cmp ebx, edi
je 0x409af9
push 0
push edi
push ebx
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46c004]
jne 0x40100a
repz ret
jmp fcn.00401681

Function at 0x40421b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46c004]
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.00402d5c
and dword [ebp - 0x14], 0
cmp dword [0x46e2f0], 0
mov dword [ebp - 0x18], eax
jne 0x4042ce
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404376
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404376
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46e2f0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46e2f4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46e2f8], eax
call edi
push eax
call esi
mov dword [0x46e300], eax
test eax, eax
je 0x4042ce
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46e2fc], eax
mov eax, dword [0x46e2fc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404327
cmp dword [0x46e300], ecx
je 0x404327
push eax
call esi
push dword [0x46e300]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404327
test ebx, ebx
je 0x404327
call edi
test eax, eax
je 0x40431e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40431e
test byte [ebp - 8], 1
jne 0x404327
or dword [ebp + 0x10], 0x200000
jmp 0x40435a
mov eax, dword [0x46e2f4]
cmp eax, dword [ebp - 0x18]
je 0x40435a
push eax
call esi
test eax, eax
je 0x40435a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40435a
mov eax, dword [0x46e2f8]
cmp eax, dword [ebp - 0x18]
je 0x40435a
push eax
call esi
test eax, eax
je 0x40435a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46e2f0]
call esi
test eax, eax
je 0x404376
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404378
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x467cb0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc2c
mov eax, dword [0x46c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0xc28], eax
cmp esi, 0x182
jne 0x467cea
lea ecx, [ebp - 0xc20]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
jmp 0x467d08
cmp esi, 0x19f
jne 0x467d08
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor edi, edi
test esi, esi
jle 0x467db1
push ebx
mov ebx, dword [ebp - 0xc28]
lea esp, [esp]
lea esi, [ebp - 0xc24]
mov dword [ebp - 0xc24], 0
call fcn.00467ca0
mov dl, byte [ebp - 0xc24]
mov eax, dword [ebp - 0xc28]
mov esi, dword [ebp + 0xc]
xor byte [eax + edi], dl
cmp esi, 0xf
jne 0x467da7
lea eax, [ebp - 0xc2c]
push eax
lea ecx, [ebp - 0xc04]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push str.wepetejef
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push str.wujokinozalucawisuhej
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push 0
lea edx, [ebp - 0x804]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebx
push str.naxoj
push 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, esi
jl 0x467d20
pop ebx
pop edi
cmp esi, 0x2d
pop esi
jne 0x467dcc
mov dword [0x27b9020], 0xa62e7790
mov dword [0x27b9024], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x467de0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x27b9014]
push esi
push edi
mov edi, dword [0x27b8d34]
mov esi, eax
cmp eax, 0x5dd
jne 0x467e02
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov eax, dword [0x46cdb8]
call fcn.00467c70
cmp dword [0x27b9014], 0x2f
jne 0x467e1d
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
push edi
call fcn.00467cb0
add esp, 8
cmp dword [0x27b9014], 0x568
pop edi
pop esi
jne 0x467e47
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x401a18
Capabilities:
Get number of processors

Disassembly:
mov ecx, 0x5048a8
jmp 0x401a0c
mov eax, 0x4c4adc
call fcn.00493f50
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00401b25
mov eax, dword [0x500260]
lea ecx, [esi + 0xa0]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ecx], eax
mov eax, dword [0x500260]
mov dword [esi + 0xa8], eax
push 1
mov dword [esi], 0x4cb9b4
pop eax
mov ebx, 0x5048a4
mov dword [esi + 0x1c], eax
push 0xa
mov dword [esi + 0x20], eax
or dword [esi + 0x28], 0xffffffff
or dword [esi + 0x24], 0xffffffff
pop edx
mov dword [esi + 0x30], edi
push ebx
mov byte [ebp - 4], 2
mov dword [esi + 0x2c], edi
mov dword [esi + 0x34], 2
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], 5
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edx
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], edx
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], 0x3e8
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], 0xc0
mov dword [esi + 0x90], 0x6c
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
call fcn.004b3ed5
push ebx
lea ecx, [esi + 0xa8]
mov dword [esi + 0xa4], edi
call fcn.004b3ed5
mov ecx, dword [ebp - 0xc]
push 0x64
pop eax
mov dword [esi + 0xb4], edi
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40aae6
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4c57ec
call fcn.00493f50
sub esp, 0x22c
push ebx
push esi
mov dword [ebp - 0x2c], ecx
mov esi, 0x504688
push str.DataFile_Types
mov ecx, esi
call fcn.004c2663
xor ebx, ebx
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x40ab1c
xor eax, eax
jmp 0x40ac64
mov eax, dword [0x500260]
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x38]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 2
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x24], 0x100
mov dword [ebp - 0x20], ebx
call edi
cmp eax, 0x103
je 0x40ac34
lea eax, [ebp - 0x238]
push eax
push str.DataFile_Types
lea eax, [ebp - 0x10]
push 0x4eafc8
push eax
call fcn.004ac9f7
add esp, 0x10
lea eax, [ebp - 0x28]
mov ecx, esi
push ebx
push str.Name
push dword [ebp - 0x10]
push eax
call fcn.004c2715
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004b3e85
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004b3d3e
push ebx
push str.Extension
push dword [ebp - 0x10]
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.004c2715
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004b3e85
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004b3d3e
push 0xffffffffffffffff
push str.Icon
push dword [ebp - 0x10]
mov ecx, esi
call fcn.004c26a9
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 8], ebx
je 0x40ac0d
mov edx, dword [ebp - 0x1c]
cmp dword [edx - 8], ebx
je 0x40ac0d
cmp eax, 0xffffffff
je 0x40ac0d
push eax
push edx
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.0040ad51
lea eax, [ebp - 0x38]
inc dword [ebp - 0x20]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x24], 0x100
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x18]
jmp 0x40ab58
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004b3d3e
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004b3d3e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004b3d3e
push 1
pop eax
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40bda0
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
mov edi, 0x4cdb38
push ebx
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, 0x2b4
lea eax, [ebp - 0x2bc]
push esi
push ebx
push eax
call fcn.00493f70
lea eax, [ebp - 8]
add esp, 0xc
neg eax
sbb eax, eax
lea ecx, [ebp - 4]
and eax, ecx
xor ecx, ecx
cmp dword [ebp + 8], ebx
mov eax, dword [eax]
sete cl
or cx, 0x4008
push ecx
lea ecx, [ebp - 0x2bc]
push esi
push ecx
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea ecx, [ebp - 8]
mov esi, eax
neg ecx
sbb ecx, ecx
lea eax, [ebp - 4]
and ecx, eax
mov dword [ebp - 8], edi
call fcn.0040c12e
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4