joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c83c
Capabilities:
Read file via mapping

Disassembly:
push 0xc
mov eax, 0x10212d0
call fcn.01001d89
push 0x10000
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x14], esi
cmp esi, ebx
je 0x1010cbf
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edi, eax
cmp edi, ebx
jl 0x1010cdc
mov edi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 4
push ebx
push ebx
push 4
push dword [0x102610c]
call edi
cmp eax, ebx
je 0x1010cfb
mov ebx, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push eax
mov dword [ebp - 0x18], ebx
call esi
test eax, eax
je 0x1010d1f
lea eax, [ebx + 4]
cmp eax, 0x10000
ja 0x1010d3c
push eax
push 0
push 0
push 4
push dword [0x102610c]
call edi
mov edi, eax
test edi, edi
je 0x1010d1f
push dword [ebp - 0x14]
lea ebx, [edi + 4]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x1010d57
push dword [ebp - 0x18]
push ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
jne 0x100c918
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x1010d5c
push dword [ebp + 8]
push 0x100c948
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoUnmarshalInterface]
or dword [ebp - 4], 0xffffffff
mov esi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100c93c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.01001d35
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100c93e
and eax, 0xffff
or eax, 0x80070000
jmp 0x100c93e
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x1010cf4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x100c93e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1010d0f
and eax, 0xffff
or eax, 0x80070000
or dword [ebp - 4], 0xffffffff
mov esi, eax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jmp 0x100c934
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100c929
and eax, 0xffff
or eax, 0x80070000
jmp 0x100c929
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1010d4d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x800700a0
jmp 0x100c93e
push edi
call esi
jmp 0x1010d1f
call esi
jmp 0x100c929
Function at 0x100f952
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1026044]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [0x10260cc], edi
jne 0x100f9dd
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
je 0x1014735
mov eax, dword [ebp - 0x110]
dec eax
mov dword [0x10260cc], edi
pop esi
je 0x100f9ef
dec eax
jne 0x100f9dd
cmp dword [ebp - 0x11c], 5
je 0x101474d
cmp dword [ebp - 0x11c], 4
jbe 0x10147ab
mov dword [0x10260cc], 0x20
mov ecx, dword [ebp - 4]
mov eax, dword [0x10260cc]
xor ecx, ebp
pop edi
call fcn.01001e40
leave
ret
cmp dword [ebp - 0x11c], 4
je 0x10147ba
jmp 0x100f9dd
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
jmp 0x100f9a6
mov eax, dword [ebp - 0x118]
sub eax, edi
je 0x101479c
dec eax
je 0x1014789
dec eax
je 0x101476c
mov dword [0x10260cc], 0x14
jmp 0x100f9dd
cmp word [ebp - 0xc], 1
jb 0x101477d
mov dword [0x10260cc], 0x10
or dword [0x10260cc], 4
jmp 0x100f9dd
cmp word [ebp - 0xc], 2
jb 0x101477d
mov dword [0x10260cc], 8
jmp 0x101477d
mov dword [0x10260cc], 4
jmp 0x100f9dd
mov dword [0x10260cc], 2
jmp 0x100f9ef
cmp dword [ebp - 0x118], edi
je 0x10147d8
cmp dword [ebp - 0x118], 0xa
je 0x10147d8
cmp dword [ebp - 0x118], 0x5a
jne 0x100f9dd
mov dword [0x10260cc], 1
jmp 0x100f9dd

Function at 0x10199f4
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x1019a0f
push 0x80004005
call fcn.0101960b
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x1019a11
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x101a117
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1026044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.01019952
mov edi, eax
cmp edi, esi
je 0x101a189
lea ecx, [ebp - 0x214]
call fcn.010198df
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01001e40
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x101a1a7
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.0101a117
cmp eax, esi
jne 0x101a1f2
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x101a191
lea ecx, [ebp - 0x214]
call fcn.010198df
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.010197c6
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.010198df
mov eax, esi
jmp 0x101a179
Function at 0x101b457
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1021d7f
call fcn.01004bf8
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x101b4b0
call fcn.0100975b
mov esi, eax
jmp 0x101b5b9
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x101b4c9
call fcn.0100975b
jmp 0x101b5ab
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, esi
je 0x101b4bf
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x420], edi
cmp eax, edi
jae 0x101b52f
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x101b515
lea ecx, [ebp - 0x418]
call fcn.0101a0b6
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.01019fc5
mov eax, esi
call fcn.01004c38
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0101a668
mov dword [ebp - 4], 1
jmp 0x101b55d
cmp dword [ebp - 0x418], esi
jne 0x101b56c
mov esi, 0x8007000e
jmp 0x101b5ad
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x101b4bf
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.0101b31b
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x101b51a
lea ecx, [ebp - 0x418]
call fcn.0101a0b6
jmp 0x101b51a

Function at 0x101e094
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1026044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push dword [esi + 0x14]
lea eax, [ebp - 0x24]
push 0x101544c
push 0x10
xor ebx, ebx
push eax
mov byte [ebp - 0x25], bl
call fcn.01008db5
add esp, 0x10
test eax, eax
jl 0x101e116
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
push 8
lea eax, [ebp - 0x24]
push eax
push edi
push 0x80000002
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0x14
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x101e116
cmp dword [ebp - 0x2c], 0x14
jne 0x101e116
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.0101e067
mov byte [ebp - 0x25], al
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x25]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001e40
leave
ret 4
Function at 0x101e12f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1026044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push dword [esi + 0x14]
lea eax, [ebp - 0x24]
push 0x101544c
push 0x10
push eax
xor bl, bl
call fcn.01008db5
add esp, 0x10
test eax, eax
jl 0x101e19f
lea eax, [ebp - 0x28]
push eax
push 2
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101e19f
push 0x14
push esi
push 3
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x101e196
inc bl
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.01001e40
leave
ret 4

Function at 0x101e1b7
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x1026044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0101dd89
test al, al
je 0x101e344
push dword [esi + 0x14]
lea ecx, [ebp - 0x16c]
call fcn.0101dd63
push 0x101e368
lea ecx, [ebp - 0x16c]
call fcn.0101e094
test al, al
je 0x101e22d
mov eax, dword [ebp - 0x16c]
cmp eax, dword [esi]
jne 0x101e22d
mov eax, dword [ebp - 0x168]
cmp eax, dword [esi + 4]
jne 0x101e22d
mov eax, dword [ebp - 0x164]
cmp eax, dword [esi + 8]
jne 0x101e22d
mov eax, dword [ebp - 0x15c]
cmp eax, dword [esi + 0x10]
je 0x101e344
push dword [esi + 0x14]
lea eax, [ebp - 0x24]
push 0x101e35c
push 0x10
push eax
call fcn.01008db5
add esp, 0x10
test eax, eax
jl 0x101e344
push dword [esi + 0x10]
lea eax, [ebp - 0x44]
push 0x101e354
push 0x10
push eax
call fcn.01008db5
add esp, 0x10
test eax, eax
jl 0x101e344
push edi
xor edi, edi
push edi
push 0x2710
push dword [esi + 8]
push dword [esi + 4]
call fcn.010077ac
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x14c]
push eax
mov dword [ebp - 0x148], edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x101e343
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x17c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test eax, eax
je 0x101e343
push 0x80
lea eax, [ebp - 0x144]
push eax
push edi
lea eax, [ebp - 0x164]
push eax
push edi
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
test eax, eax
jle 0x101e343
lea eax, [ebp - 0x24]
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x14c], eax
push 0x101541c
lea eax, [ebp - 0x144]
push edi
mov dword [ebp - 0x154], 0x1004260
mov dword [ebp - 0x148], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x101e343
push edi
lea eax, [ebp - 0x154]
push eax
push edi
push 4
push edi
push 0x800003f7
push 1
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01001e40
leave
ret
Function at 0x101f739
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [ebp + 8], 2
mov dword [ebp - 0xc], eax
je 0x101f75d
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [ebp + 8], 1
je 0x101f7cb
mov edi, dword [esi + 0x68]
test edi, edi
je 0x101f7cb
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x101f770
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x6c]
push 0
add ecx, edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ecx
push eax
push dword [ebp + 0xc]
mov ebx, 0x4e4
push 9
push ebx
mov dword [ebp - 8], eax
call edi
mov ecx, dword [esi + 0x6c]
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
cmp eax, 0x7ffe2
jbe 0x101f7b0
mov ecx, esi
call fcn.0101f578
push dword [ebp - 4]
mov eax, dword [esi + 0x6c]
add eax, dword [esi + 0x68]
push eax
push dword [ebp - 8]
push dword [ebp + 0xc]
push 9
push ebx
call edi
add eax, eax
add dword [esi + 0x6c], eax
pop ebx
test byte [ebp + 8], 8
mov esi, dword [sym.imp.msvcrt.dll_fprintf]
mov edi, 0x101f818
je 0x101f7ee
push dword [ebp + 0xc]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push edi
push eax
call esi
add esp, 0xc
test byte [ebp + 8], 4
je 0x101f806
push dword [ebp + 0xc]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push edi
push eax
call esi
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
leave
ret 8

Function at 0x101f820
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [ebp + 8], 2
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x101f844
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test byte [ebp + 8], 1
je 0x101f889
cmp dword [esi + 0x68], 0
je 0x101f889
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x101f86a
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x101f85c
sub eax, edx
sar eax, 1
lea edi, [eax + eax]
push edi
mov ecx, esi
call fcn.0101f6ba
mov eax, dword [esi + 0x6c]
add eax, dword [esi + 0x68]
push edi
push ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add dword [esi + 0x6c], edi
test byte [ebp + 8], 8
mov esi, dword [sym.imp.msvcrt.dll_fprintf]
mov edi, 0x101f8d0
je 0x101f8aa
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
add eax, 0x40
push edi
push eax
call esi
add esp, 0xc
test byte [ebp + 8], 4
je 0x101f8c0
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
add eax, 0x20
push edi
push eax
call esi
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1020639
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1026044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x102068d
push 3
lea eax, [ebp - 0x44]
push 0x10206a0
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.01001e40
leave
ret

Function at 0x10206ab
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1026044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x1026a2c]
jne 0x1020746
push esi
lea eax, [ebp - 0x10]
push eax
push 1
xor esi, esi
push esi
push 0x1020838
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1020745
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x10208f0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x1020745
push 3
push dword [esi*8 + 0x1020758]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x1020737
inc esi
cmp esi, 0x1c
jae 0x1020745
jmp 0x1020716
mov ax, word [esi*8 + 0x102075c]
mov word [0x1026a2c], ax
pop esi
mov ecx, dword [ebp - 4]
mov ax, word [0x1026a2c]
xor ecx, ebp
call fcn.01001e40
leave
ret
Function at 0x1009f0a
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x1025558]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebp - 4], eax
call sub.MFC42u.dll_CDataExchange::PrepareEditCtrl
cmp dword [ebx], 0
mov edi, eax
je 0x1009fa8
push 0x40
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x84], 0
je 0x1009fa0
push esi
lea eax, [ebp - 0x84]
mov edi, 0x1025870
push eax
mov ecx, edi
call fcn.010131fd
test eax, eax
jne 0x1009f7b
push 0xffffffffffffffff
push 0x40
push 0x67
call sub.MFC42u.dll_AfxMessageBox
mov ecx, ebx
call sub.MFC42u.dll_CDataExchange::Fail
push 2
push dword [esi]
lea eax, [ebp - 0x84]
push 0x40
push eax
mov ecx, edi
call fcn.01014287
push esi
lea eax, [ebp - 0x84]
push eax
mov ecx, edi
call fcn.010131fd
jmp 0x1009fd6
mov dword [esi], 0x7fffffff
jmp 0x1009fd6
mov esi, dword [esi]
cmp esi, 0x7fffffff
je 0x1009fd6
push 2
push esi
push 0x40
lea eax, [ebp - 0x84]
push eax
mov ecx, 0x1025870
call fcn.01014287
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01018af7
leave
ret 0xc

Function at 0x100a457
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1025558]
push esi
xor esi, esi
cmp dword [0x102567c], esi
mov dword [ebp - 4], eax
jne 0x100a520
push ebx
push edi
mov edi, 0x1024c14
mov ebx, 0xffff
xor eax, eax
cmp dword [edi - 4], eax
jne 0x100a505
cmp dword [edi], eax
je 0x100a505
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x100a4e7
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x100a4e7
and word [eax], 0
push dword [edi]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01009cf0
mov esi, eax
and esi, ebx
jne 0x100a502
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
and esi, 0x10
test esi, esi
jne 0x100a502
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 4]
push dword [edi]
call fcn.01008aa3
mov esi, eax
and esi, ebx
je 0x100a505
and dword [edi], 0
add edi, 0x1c
cmp edi, 0x1024d64
jl 0x100a485
pop edi
mov dword [0x102567c], 1
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.01018af7
leave
ret
Function at 0x1012f07
Capabilities:
Enumerate gui resources

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1025558]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp word [eax], 0
je 0x1012f75
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.MFC42u.dll_AfxFullPath
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
test ax, ax
mov dword [ebp - 0x210], eax
je 0x1012f75
lea eax, [ebp - 0x210]
push eax
push 0x10129e3
call dword [sym.imp.USER32.dll_EnumWindows]
cmp word [ebp - 0x210], 0
jne 0x1012f69
xor eax, eax
inc eax
jmp 0x1012f77
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_DeleteAtom]
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.01018af7
leave
ret 4
Function at 0x1014790
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
jne 0x10147a5
xor eax, eax
jmp 0x1014803
push edi
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10147ca
xor eax, eax
jmp 0x1014802
push esi
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp + 0xa]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10147f9
cmp dword [ebp - 4], 2
jne 0x10147f9
cmp word [ebp + 0xa], 0xfeff
je 0x10147f6
cmp word [ebp + 0xa], 0xfffe
jne 0x10147f9
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
leave
ret 4
Function at 0x1017448
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1025558]
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_DragQueryFileW]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push 0xffffffffffffffff
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
call esi
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x220]
push eax
call fcn.01008e2c
cmp dword [ebp - 0x218], ebx
jbe 0x10174f1
push 0x104
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
call esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x10174e8
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
push eax
call fcn.01008e6e
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push eax
call fcn.0101cf29
inc ebx
cmp ebx, dword [ebp - 0x218]
jb 0x1017496
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x220]
push eax
call fcn.01008e6e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.01018af7
leave
ret 4

Function at 0x10182ee
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [edi], esi
call dword [sym.imp.ole32.dll_StringFromCLSID]
cmp eax, esi
mov dword [ebp - 0xc], eax
jl 0x101836f
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1018338
mov dword [ebp - 0xc], 1
jmp 0x101836f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
push str.Compatibility_Flags
push dword [ebp - 4]
mov dword [ebp - 0x10], 4
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101836f
cmp dword [ebp + 0xc], 4
jne 0x101836f
mov eax, dword [ebp + 8]
mov dword [edi], eax
cmp dword [ebp - 4], esi
je 0x101837d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
pop esi
je 0x101838c
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x1018398
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 4
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
je 0x101840e
cmp word [eax], si
je 0x101840e
lea ecx, [ebp - 4]
push ecx
push 0x20019
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101840e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x1006f9c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1018405
cmp dword [ebp - 8], 4
jne 0x1018405
cmp dword [ebp - 0xc], 1
jne 0x1018405
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 4