joyce8/EMBER2024-capa huggingface dataset:
Function at 0x566301
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
je 0x566444
cmp dword [ebp - 0xc], 1
je 0x566326
jmp 0x56643f
mov eax, dword [ebp + 0x90]
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 0x8c]
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 0x88]
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x84]
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 0x80]
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x7c]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x78]
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x74]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x70]
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x6c]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x68]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x64]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x60]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x5c]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x58]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x54]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x50]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x4c]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x48]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x44]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x40]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.___super_fnc__1533
mov dword [ebp - 0xc], 0
nop
jmp 0x566311
nop
leave
ret
Function at 0x569c91
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xfc
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0
je 0x569cb9
cmp dword [ebp - 0x1c], 1
jne 0x569e4c
jmp 0x569e52
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x2c]
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x2c]
mov ebx, dword [eax]
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp + 0x2c]
mov edx, dword [eax]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x2c]
mov ebx, dword [eax]
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp + 0x24]
mov edx, dword [eax]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
mov dword [ebp - 0x48], ebx
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
mov dword [ebp - 0x54], ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
mov dword [ebp - 0x60], ebx
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax]
mov eax, dword [ebp + 0x2c]
mov edx, dword [eax]
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], edi
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x7c], 0x34
mov dword [esp + 0x78], 0x97
mov esi, dword [ebp - 0x30]
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], 2
mov dword [esp + 0x6c], 6
mov edi, dword [ebp - 0x34]
mov dword [esp + 0x68], edi
mov ecx, dword [ebp - 0x38]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], 5
mov esi, dword [ebp - 0x3c]
mov dword [esp + 0x5c], esi
mov edi, dword [ebp - 0x40]
mov dword [esp + 0x58], edi
mov ecx, dword [ebp - 0x44]
mov dword [esp + 0x54], ecx
fld qword [0x58bd18]
fstp qword [esp + 0x4c]
mov esi, dword [ebp - 0x48]
mov dword [esp + 0x48], esi
fld qword [0x58bd28]
fstp qword [esp + 0x40]
mov edi, dword [ebp - 0x4c]
mov dword [esp + 0x3c], edi
fld qword [0x58bd20]
fstp qword [esp + 0x34]
mov ecx, dword [ebp - 0x50]
mov dword [esp + 0x30], ecx
mov esi, dword [ebp - 0x54]
mov dword [esp + 0x2c], esi
mov edi, dword [ebp - 0x58]
mov dword [esp + 0x28], edi
fld qword [0x58bcf8]
fstp qword [esp + 0x20]
mov dword [esp + 0x1c], 1
fld qword [0x58bd00]
fstp qword [esp + 0x14]
mov ecx, dword [ebp - 0x5c]
mov dword [esp + 0x10], ecx
mov esi, dword [ebp - 0x60]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._ExportWinAPI
mov edx, dword [ebp + 0x28]
mov dword [edx], eax
mov dword [ebp - 0x1c], 1
jmp 0x569e4d
nop
jmp 0x569ca4
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x574190
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x5741f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0xbccd14]
test esi, esi
jle 0x574310
mov eax, dword [0xbccd18]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x574224
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x5742a7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x574210
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x574337
mov eax, dword [0xbccd18]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0xbccd18]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x574317
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x5742a0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x5742b0
add dword [0xbccd14], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0xbccd18]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x5742a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x57422e
mov eax, dword [0xbccd18]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x5747f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0xbccd30
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0xbccd28]
sub esp, 4
test ebx, ebx
je 0x574845
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x57483e
test esi, esi
je 0x57483e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x574820
mov dword [esp], 0xbccd30
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x574b70
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x574b95
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x574ba0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x574b95
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x574be8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x574bde
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x574bea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x574bd0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x69927bf6
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x126d4364
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4024d9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d07c]
jne 0x4024e3
repz ret
jmp fcn.00402c59

Function at 0x40514c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d07c]
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.00403ff4
and dword [ebp - 0x14], 0
cmp dword [0x40e8a8], 0
mov dword [ebp - 0x18], eax
jne 0x4051ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4052a7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4052a7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40e8a8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40e8ac], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40e8b0], eax
call edi
push eax
call esi
mov dword [0x40e8b8], eax
test eax, eax
je 0x4051ff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40e8b4], eax
mov eax, dword [0x40e8b4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405258
cmp dword [0x40e8b8], ecx
je 0x405258
push eax
call esi
push dword [0x40e8b8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405258
test ebx, ebx
je 0x405258
call edi
test eax, eax
je 0x40524f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40524f
test byte [ebp - 8], 1
jne 0x405258
or dword [ebp + 0x10], 0x200000
jmp 0x40528b
mov eax, dword [0x40e8ac]
cmp eax, dword [ebp - 0x18]
je 0x40528b
push eax
call esi
test eax, eax
je 0x40528b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40528b
mov eax, dword [0x40e8b0]
cmp eax, dword [ebp - 0x18]
je 0x40528b
push eax
call esi
test eax, eax
je 0x40528b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40e8a8]
call esi
test eax, eax
je 0x4052a7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4052a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004024d9
leave
ret

Function at 0x4012ec
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x4012f6
repz ret
jmp fcn.0040160f
Function at 0x42b560
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
jmp 0x42b57a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42b581
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42b570
mov eax, 1
add ebx, ebx
jne 0x42b593
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42b588
jne 0x42b5a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b588
xor ecx, ecx
sub eax, 3
jb 0x42b5b8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42b62a
mov ebp, eax
add ebx, ebx
jne 0x42b5c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42b5d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42b5f4
inc ecx
add ebx, ebx
jne 0x42b5e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42b5d5
jne 0x42b5f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b5d5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42b614
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42b605
jmp 0x42b576
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42b614
add edi, ecx
jmp 0x42b576
pop esi
lea edi, [esi + 0x29000]
mov eax, dword [edi]
or eax, eax
je 0x42b67c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2b000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2b0bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42b631
mov ecx, edi
jns 0x42b660
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 + 0x2b0c4]
or eax, eax
je 0x42b676
mov dword [ebx], eax
add ebx, 4
jmp 0x42b64e
call dword [esi + 0x2b0c0]
mov ebp, dword [esi + 0x2b0c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x42b6b0
sub esp, 0xffffff80
jmp 0x40b346

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x2f5d208f
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x16722755
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401a31
Capabilities:
Get number of processors

Disassembly:
mov ecx, 0x505708
jmp 0x401a25
mov eax, 0x4c4e3c
call fcn.004942a8
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00401b3e
mov eax, dword [0x5010b8]
lea ecx, [esi + 0xa0]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ecx], eax
mov eax, dword [0x5010b8]
mov dword [esi + 0xa8], eax
push 1
mov dword [esi], 0x4cc9b4
pop eax
mov ebx, 0x505704
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.004b4238
push ebx
lea ecx, [esi + 0xa8]
mov dword [esi + 0xa4], edi
call fcn.004b4238
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 0x40ab68
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4c5b4c
call fcn.004942a8
sub esp, 0x22c
push ebx
push esi
mov dword [ebp - 0x2c], ecx
mov esi, 0x5054e8
push str.DataFile_Types
mov ecx, esi
call fcn.004c29c3
xor ebx, ebx
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x40ab9e
xor eax, eax
jmp 0x40ace6
mov eax, dword [0x5010b8]
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 0x40acb6
lea eax, [ebp - 0x238]
push eax
push str.DataFile_Types
lea eax, [ebp - 0x10]
push 0x4ebfe4
push eax
call fcn.004acd57
add esp, 0x10
lea eax, [ebp - 0x28]
mov ecx, esi
push ebx
push str.Name
push dword [ebp - 0x10]
push eax
call fcn.004c2a75
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004b41e8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004b40a1
push ebx
push str.Extension
push dword [ebp - 0x10]
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.004c2a75
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004b41e8
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004b40a1
push 0xffffffffffffffff
push str.Icon
push dword [ebp - 0x10]
mov ecx, esi
call fcn.004c2a09
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 8], ebx
je 0x40ac8f
mov edx, dword [ebp - 0x1c]
cmp dword [edx - 8], ebx
je 0x40ac8f
cmp eax, 0xffffffff
je 0x40ac8f
push eax
push edx
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.0040add3
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 0x40abda
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004b40a1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004b40a1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004b40a1
push 1
pop eax
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40be28
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, 0x4ceb68
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.004942d0
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.0040c19c
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40ca1f
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.004942d0
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 0x40e144
Capabilities:
Check os version

Disassembly:
mov eax, 0x4c602f
call fcn.004942a8
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.004b3969
mov eax, dword [0x5010b8]
mov dword [ebp - 4], ebx
mov dword [esi + 0x64], eax
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
mov dword [esi], 0x4cf138
jne 0x40e1ca
mov edi, 0x114
lea eax, [ebp - 0x124]
push edi
push ebx
push eax
call fcn.004942d0
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 0x40e1c3
cmp dword [ebp - 0x120], 5
mov dword [ebp + 0x20], 0x58
jae 0x40e1ca
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.00494a9d
cmp eax, ebx
pop ecx
mov dword [esi + 0x5c], eax
jne 0x40e1df
call fcn.004ad438
push dword [ebp + 0x20]
mov ecx, esi
push ebx
call fcn.0040e3a4
push eax
call fcn.004942d0
push 0x200002
call fcn.004b01ca
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.0040e3a4
mov ecx, dword [ebp + 0x20]
mov dword [eax], ecx
mov ecx, esi
call fcn.0040e3a4
mov ecx, dword [esi + 0xe8]
mov dword [eax + 0x1c], ecx
mov ecx, esi
call fcn.0040e3a4
mov ecx, esi
mov dword [eax + 0x20], 0x100000
call fcn.0040e3a4
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x3c], ecx
mov ecx, esi
call fcn.0040e3a4
mov ecx, esi
mov dword [eax + 0x24], edi
call fcn.0040e3a4
mov ecx, esi
mov dword [eax + 0x28], 0x40
call fcn.0040e3a4
mov ecx, dword [ebp + 0x14]
add eax, 0x34
or ecx, 0x880020
or dword [eax], ecx
test byte [ebp + 0x14], 0x40
je 0x40e29c
mov ecx, esi
call fcn.0040e3a4
add eax, 0x34
and byte [eax + 2], 0x7f
call fcn.004c312b
mov edi, dword [eax + 0xc]
mov ecx, esi
call fcn.0040e3a4
mov ecx, esi
mov dword [eax + 8], edi
call fcn.0040e3a4
cmp dword [ebp + 0x10], ebx
mov dword [eax + 0x44], 0x40dfcd
je 0x40e2d5
push 0x100000
push dword [ebp + 0x10]
push dword [esi + 0xe8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x18], ebx
je 0x40e314
push dword [ebp + 0x18]
lea edi, [esi + 0x64]
mov ecx, edi
call fcn.004b4238
push ebx
mov ecx, edi
call fcn.004b44e6
push 0x7c
push eax
call fcn.00494a74
pop ecx
cmp eax, ebx
pop ecx
je 0x40e307
mov word [eax], bx
push 0x7c
add eax, 2
jmp 0x40e2f1
mov edi, dword [esi + 0x64]
mov ecx, esi
call fcn.0040e3a4
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