joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4718c6
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004e9f6d
call fcn.0041e084
cmp dword [eax + 0x14], 0
jne 0x4718e3
mov ecx, esi
pop esi
jmp fcn.004713cb
pop esi
ret

Function at 0x474eff
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00415117
call fcn.0041e084
cmp dword [eax + 0x14], 0
jne 0x474f1c
mov ecx, esi
pop esi
jmp fcn.004748d2
pop esi
ret

Function at 0x484b1d
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004847dc
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x484b67
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040bcbc
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004063d2
jmp 0x484b72
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041f585
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x484b78
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0040e56f
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x484bb5
call fcn.004847dc
mov dword [esi + 0xc], 1
jmp 0x484bba
call fcn.004847dc
cmp dword [esi], 0
je 0x484c03
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x484bdb
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040bcbc
jmp 0x484bed
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00403e03
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004063d2
jmp 0x484c27
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x484c27
push dword [esi]
push dword [ebp + 8]
call fcn.0041f585
pop esi
pop ebp
ret 0xc
Function at 0x48b6d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x48b6ea
call fcn.0041e653
mov esi, dword [eax + 0xc]
push dword [0x5c5354]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x48b708
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x48b700
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x48b735
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x48b702
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0048b5fe
mov esi, eax
jmp 0x48b727

Function at 0x4d7adc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4d7af4
mov edi, dword [esi + 0xc]
jmp 0x4d7b34
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4d7b0d
call fcn.004233f6
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4d7b22
call fcn.004233f6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4d7b34
call fcn.004233f6
call fcn.0041e653
cmp dword [eax + 0x3c], 0
je 0x4d7b49
push edi
mov ecx, ebx
call fcn.004d69a2
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004d79f6
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4d7b67
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4d7b73
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x50b6a9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5c0110]
jne 0x50b6b3
repz ret
jmp fcn.005157cd

Function at 0x514779
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x5147a0
call fcn.0050c236
mov dword [eax], esi
call fcn.0050c223
push 0x16
pop esi
mov dword [eax], esi
call fcn.00513386
mov eax, esi
jmp 0x5147f5
test dword [ebp + 0xc], 0xfffffff9
jne 0x514786
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5147cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0050c249
pop ecx
call fcn.0050c223
mov eax, dword [eax]
jmp 0x5147f5
test al, 0x10
jne 0x5147f3
test al, 1
je 0x5147f3
test byte [ebp + 0xc], 2
je 0x5147f3
call fcn.0050c236
mov dword [eax], 5
call fcn.0050c223
mov dword [eax], 0xd
jmp 0x5147c4
xor eax, eax
pop esi
pop ebp
ret
Function at 0x51e70b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c0110]
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.00511e75
and dword [ebp - 0x14], 0
cmp dword [0x5c7b84], 0
mov dword [ebp - 0x18], eax
jne 0x51e7be
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x51e866
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x51e866
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x55978c
push ebx
mov dword [0x5c7b84], eax
call edi
push eax
call esi
push 0x559778
push ebx
mov dword [0x5c7b88], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5c7b8c], eax
call edi
push eax
call esi
mov dword [0x5c7b94], eax
test eax, eax
je 0x51e7be
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5c7b90], eax
mov eax, dword [0x5c7b90]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x51e817
cmp dword [0x5c7b94], ecx
je 0x51e817
push eax
call esi
push dword [0x5c7b94]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x51e817
test ebx, ebx
je 0x51e817
call edi
test eax, eax
je 0x51e80e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x51e80e
test byte [ebp - 8], 1
jne 0x51e817
or dword [ebp + 0x10], 0x200000
jmp 0x51e84a
mov eax, dword [0x5c7b88]
cmp eax, dword [ebp - 0x18]
je 0x51e84a
push eax
call esi
test eax, eax
je 0x51e84a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x51e84a
mov eax, dword [0x5c7b8c]
cmp eax, dword [ebp - 0x18]
je 0x51e84a
push eax
call esi
test eax, eax
je 0x51e84a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5c7b84]
call esi
test eax, eax
je 0x51e866
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x51e868
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050b6a9
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
mov ecx, 0x400004f9
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x389b7d44
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4061e0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x40a1d0]
cmp ax, 0xcb
je 0x4062ec
cmp ax, 0xcc
je 0x4062ec
lea esi, [esi]
mov edx, dword [0x40d5f0]
test edx, edx
je 0x406215
mov eax, dword [0x40d4a0]
call edx
mov ebx, eax
jmp 0x40621a
mov ebx, 0x40d4a4
cmp word [0x40d490], 0
jle 0x406240
mov eax, 0x40d470
call fcn.00406450
mov eax, ebx
call fcn.00405da0
mov eax, ebx
call fcn.00405e10
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x406262
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x40625d
mov edx, edi
mov eax, ebx
call fcn.00405210
jmp 0x406260
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x406248
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x40d490], 0
jle 0x4062ec
mov edx, 0x40d3b0
mov eax, ebx
call fcn.00405350
mov edi, eax
test edi, edi
je 0x4062bc
mov eax, dword [0x40d444]
mov dword [edi + 0xc], eax
cmp dword [0x40d444], 0
je 0x4062b0
mov eax, dword [0x40d444]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x40d444], eax
nop
sub word [0x40d490], 1
cmp word [0x40d490], 0
sete bl
mov eax, 0x40d470
call fcn.00406460
test bl, bl
je 0x4062ec
mov eax, 0x40d470
call fcn.00406440
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x407fc0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x40d250], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.004081a0
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x40d250]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.004033a0
call sub.kernel32.dll_GetCommandLineA
mov dword [0x40a240], eax
mov ebx, eax
jmp 0x408163
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x408048
cmp byte [ebx], 0
je 0x40816c
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x4080c3
mov al, byte [ebx]
cmp al, 1
jb 0x4080b8
sub al, 0x20
jbe 0x408088
sub al, 2
je 0x40809c
jmp 0x4080b8
mov al, byte [ebp - 0x114]
test al, al
je 0x4080c8
add dword [ebp - 0x110], 1
jmp 0x4080c0
cmp byte [ebx + 1], 0x22
je 0x4080b3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x4080c0
add ebx, 1
jmp 0x4080c0
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x408078
test dword [ebp - 0x10c], 0xffffffff
je 0x40815c
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.004081a0
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x40d250]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x408153
mov al, byte [ebx]
cmp al, 1
jb 0x408148
sub al, 0x20
jbe 0x408118
sub al, 2
je 0x40812c
jmp 0x408148
mov al, byte [ebp - 0x114]
test al, al
je 0x408158
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x408150
cmp byte [ebx + 1], 0x22
je 0x408143
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x408150
add ebx, 1
jmp 0x408150
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x408108
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x40804b
mov ebx, dword [ebp - 0x10c]
mov dword [0x40d240], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x40d250
call fcn.00406020
mov eax, dword [0x40d250]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4013cf
Capabilities:
Get number of processors

Disassembly:
mov ecx, 0x508910
jmp 0x4013c3
mov eax, 0x4c76c4
call fcn.00496c6c
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004014f4
mov eax, dword [0x5042f8]
lea ecx, [esi + 0xac]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ecx], eax
mov eax, dword [0x5042f8]
mov dword [esi + 0xb4], eax
push 1
mov dword [esi], 0x4ce7cc
pop eax
mov ebx, 0x50890c
push 0xa
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 7
or dword [esi + 0x28], 0xffffffff
or dword [esi + 0x24], 0xffffffff
pop edx
push 0x64
mov dword [esi + 0x30], edi
mov dword [esi + 0x64], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x2c], edi
pop edx
mov dword [esi + 0x34], 2
mov dword [esi + 0x38], eax
push ebx
mov byte [ebp - 4], 2
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 + 0x68], eax
mov dword [esi + 0x9c], edx
mov dword [esi + 0xa0], edx
mov dword [esi + 0xa4], edi
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], eax
mov dword [esi + 0x8c], 0xc0
mov dword [esi + 0x90], 0x6c
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], edi
mov dword [esi + 0xa8], edi
call fcn.004b1f6d
push ebx
lea ecx, [esi + 0xb4]
mov dword [esi + 0xb0], edi
call fcn.004b1f6d
or dword [esi + 0xc0], 0xffffffff
or dword [esi + 0xbc], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0xb8], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40d2ce
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4c8668
call fcn.00496c6c
sub esp, 0x22c
push ebx
push esi
mov dword [ebp - 0x2c], ecx
mov esi, 0x5089d8
push str.DataFile_Types
mov ecx, esi
call fcn.004c4bd6
xor ebx, ebx
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x40d304
xor eax, eax
jmp 0x40d44c
mov eax, dword [0x5042f8]
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], pe_nt_image_headers32
mov dword [ebp - 0x20], ebx
call edi
cmp eax, 0x103
je 0x40d41c
lea eax, [ebp - 0x238]
push eax
push str.DataFile_Types
lea eax, [ebp - 0x10]
push 0x4ef100
push eax
call fcn.004af707
add esp, 0x10
lea eax, [ebp - 0x28]
mov ecx, esi
push ebx
push str.Name
push dword [ebp - 0x10]
push eax
call fcn.004c4c88
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004b1f1d
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004b1dd6
push ebx
push str.Extension
push dword [ebp - 0x10]
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.004c4c88
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004b1f1d
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004b1dd6
push 0xffffffffffffffff
push str.Icon
push dword [ebp - 0x10]
mov ecx, esi
call fcn.004c4c1c
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 8], ebx
je 0x40d3f5
mov edx, dword [ebp - 0x1c]
cmp dword [edx - 8], ebx
je 0x40d3f5
cmp eax, 0xffffffff
je 0x40d3f5
push eax
push edx
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.0040d539
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], pe_nt_image_headers32
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x18]
jmp 0x40d340
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004b1dd6
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004b1dd6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004b1dd6
push 1
pop eax
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40e58e
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, 0x4d13a0
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.00496c90
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.0040e902
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40f185
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
push esi
mov esi, 0x2b4
push edi
push esi
lea eax, [ebp - 0x2b4]
push 0
mov edi, ecx
push eax
call fcn.00496c90
mov eax, dword [ebp + 8]
add esp, 0xc
or ax, 0x4008
push eax
lea eax, [ebp - 0x2b4]
push esi
push eax
push 0
push dword [edi + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2b0]
pop edi
pop esi
leave
ret 4

Function at 0x410971
Capabilities:
Check os version

Disassembly:
mov eax, 0x4c8b4b
call fcn.00496c6c
sub esp, 0x118
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0x1c]
mov esi, ecx
mov dword [ebp - 0x10], esi
push ebx
call fcn.004b6c79
mov eax, dword [0x5042f8]
mov dword [ebp - 4], ebx
mov dword [esi + 0x64], eax
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
mov dword [esi], 0x4d1a50
jne 0x4109f7
mov edi, 0x114
lea eax, [ebp - 0x124]
push edi
push ebx
push eax
call fcn.00496c90
add esp, 0xc
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 2
jne 0x4109f0
cmp dword [ebp - 0x120], 5
mov dword [ebp + 0x20], 0x58
jae 0x4109f7
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.0049752d
cmp eax, ebx
pop ecx
mov dword [esi + 0x5c], eax
jne 0x410a0c
call fcn.004afde8
push dword [ebp + 0x20]
mov ecx, esi
push ebx
call fcn.00410bd1
push eax
call fcn.00496c90
push 0x200002
call fcn.004b23aa
mov dword [esi + 0xe8], eax
mov word [eax], bx
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [esi + 0x60], eax
lea edi, [esi + 0x68]
neg eax
sbb eax, eax
mov ecx, esi
add eax, 0x7005
mov word [edi], bx
mov dword [esi + 0xec], ebx
mov dword [esi + 0x3c], eax
call fcn.00410bd1
mov ecx, dword [ebp + 0x20]
mov dword [eax], ecx
mov ecx, esi
call fcn.00410bd1
mov ecx, dword [esi + 0xe8]
mov dword [eax + 0x1c], ecx
mov ecx, esi
call fcn.00410bd1
mov ecx, esi
mov dword [eax + 0x20], 0x100000
call fcn.00410bd1
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x3c], ecx
mov ecx, esi
call fcn.00410bd1
mov ecx, esi
mov dword [eax + 0x24], edi
call fcn.00410bd1
mov ecx, esi
mov dword [eax + 0x28], 0x40
call fcn.00410bd1
mov ecx, dword [ebp + 0x14]
add eax, 0x34
or ecx, 0x880020
or dword [eax], ecx
test byte [ebp + 0x14], 0x40
je 0x410ac9
mov ecx, esi
call fcn.00410bd1
add eax, 0x34
and byte [eax + 2], 0x7f
call fcn.004c4a37
mov edi, dword [eax + 0xc]
mov ecx, esi
call fcn.00410bd1
mov ecx, esi
mov dword [eax + 8], edi
call fcn.00410bd1
cmp dword [ebp + 0x10], ebx
mov dword [eax + 0x44], 0x4107fa
je 0x410b02
push 0x100000
push dword [ebp + 0x10]
push dword [esi + 0xe8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x18], ebx
je 0x410b41
push dword [ebp + 0x18]
lea edi, [esi + 0x64]
mov ecx, edi
call fcn.004b1f6d
push ebx
mov ecx, edi
call fcn.004b221b
push 0x7c
push eax
call fcn.00497504
pop ecx
cmp eax, ebx
pop ecx
je 0x410b34
mov word [eax], bx
push 0x7c
add eax, 2
jmp 0x410b1e
mov edi, dword [esi + 0x64]
mov ecx, esi
call fcn.00410bd1
mov dword [eax + 0xc], edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c