joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1020c64
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push edi
push 0
push 0x10
lea eax, [ebp - 0x20c]
push eax
push 0
call esi
test eax, eax
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
mov ebx, 0x104
je 0x1020cf5
push 0x10020c8
lea eax, [ebp - 0x20c]
push eax
call fcn.01020bc9
mov eax, dword [0x102737c]
test eax, eax
jne 0x1020cbf
call fcn.0101f459
push ebx
lea ecx, [ebp - 0x414]
push ecx
push 0x10
push eax
call edi
test eax, eax
je 0x1020cf5
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x10020c8
lea eax, [ebp - 0x20c]
push eax
call fcn.01020bc9
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0x1002090
push 0x1002018
push SysStringLen
mov dword [ebp - 0x418], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x1020d4c
mov eax, dword [0x102737c]
test eax, eax
jne 0x1020d3b
call fcn.0101f459
push ebx
lea ecx, [ebp - 0x414]
push ecx
push 0x11
push eax
call edi
test eax, eax
je 0x1020d84
push 0
push 2
lea eax, [ebp - 0x20c]
push eax
push 0
call esi
test eax, eax
je 0x1020d84
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x10020c8
lea eax, [ebp - 0x20c]
push eax
call fcn.01020bc9
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010236f9
leave
ret

Function at 0x1020d98
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
push 2
push esi
push esi
push esi
push 0x1002170
push 0x80000001
mov edi, 0x80004005
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1020df1
push 0x40
push 0x1002130
push 1
push esi
push 0x100211c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1020de8
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1020fb5
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x218]
push eax
push 0x1002834
push 1
xor esi, esi
push esi
push 0x1002844
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1021199
cmp dword [ebp + 0x18], esi
push edi
mov edi, 0x104
je 0x102103b
push dword [ebp + 0x18]
lea eax, [ebp - 0x20c]
push 0x10023a8
push edi
push eax
call fcn.0101fb17
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
push 0x1002378
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x50]
test eax, eax
jl 0x102118c
cmp dword [ebp - 0x210], esi
je 0x1021083
mov eax, dword [ebp - 0x218]
push dword [ebp - 0x210]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x102118c
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
lea edx, [ebp - 0x220]
push edx
push 0x1002824
push eax
call dword [ecx]
test eax, eax
jl 0x102118c
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax]
push 1
push dword [ebp - 0x214]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x1021180
push 0x25
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x10210e3
push dword [ebp + 0x14]
push 0x1002338
push dword [ebp - 0x214]
call dword [sym.imp.SHELL32.dll_SHSetLocalizedName]
jmp 0x1021180
push esi
push esi
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x210], esi
call dword [sym.imp.SHELL32.dll_SHParseDisplayName]
test eax, eax
jl 0x1021180
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x1002328
push dword [ebp - 0x210]
mov dword [ebp - 0x214], esi
call dword [sym.imp.SHELL32.dll_SHBindToParent]
test eax, eax
jl 0x1021174
mov eax, dword [0x102737c]
cmp eax, esi
jne 0x102113a
call fcn.0101f459
push edi
lea ecx, [ebp - 0x20c]
push ecx
push dword [ebp + 0x14]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push esi
push esi
lea edx, [ebp - 0x20c]
push edx
push dword [ebp - 0x214]
push esi
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_ILFree]
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.010236f9
leave
ret 0x14
Function at 0x102172e
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x210], 0
push esi
push edi
push eax
push 0x1001d70
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0101fb17
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
mov edi, 0x1001f10
push edi
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x80000001
push esi
mov dword [ebp - 0x214], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [ebp - 0x210]
and eax, dword [ebp + 0xc]
push 4
or eax, dword [ebp + 0x10]
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push 4
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010236f9
leave
ret 0xc

Function at 0x10217dd
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x1021830
push 0
push dword [esi + edi*4]
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x102182a
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push 0
push dword [ebp + 8]
push eax
call fcn.010215a9
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x10217fe
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010236f9
leave
ret 0x10

Function at 0x1021845
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x61c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x102195a
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x1001b74
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
push edi
push edi
push 2
lea eax, [ebp - 0x20c]
push eax
call fcn.010215a9
mov eax, dword [0x102737c]
cmp eax, edi
jne 0x10218b2
call fcn.0101f459
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x104
lea ecx, [ebp - 0x414]
push ecx
push 0x2db
push eax
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea eax, [ebp - 0x414]
push eax
call ebx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
push 0
push 2
lea eax, [ebp - 0x20c]
push eax
call fcn.010215a9
mov eax, dword [0x102737c]
test eax, eax
jne 0x1021912
call fcn.0101f459
push 0x104
lea ecx, [ebp - 0x414]
push ecx
push 0x2dd
push eax
call edi
lea eax, [ebp - 0x414]
push eax
call ebx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
push 0
push 2
lea eax, [ebp - 0x20c]
push eax
call fcn.010215a9
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.010236f9
leave
ret 4
Function at 0x10219ea
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jl 0x1021a7a
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1021a7a
mov eax, dword [0x102737c]
test eax, eax
jne 0x1021a2b
call fcn.0101f459
push 0x104
lea ecx, [ebp - 0x414]
push ecx
push 0x2da
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push dword [ebp + 8]
push eax
call fcn.010215a9
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010236f9
leave
ret 8

Function at 0x1021a8d
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push esi
mov esi, dword [ebp + 0x10]
jl 0x1021ad4
push esi
push 2
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1021ad4
push 1
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.010215a9
cmp dword [ebp + 0xc], 0
jl 0x1021afc
push 0x25
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x1021af3
test esi, esi
je 0x1021af3
call fcn.01020e72
test al, al
je 0x1021afc
push esi
push dword [ebp + 0xc]
call fcn.010219ea
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010236f9
leave
ret 0xc

Function at 0x1021b10
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 2
pop ebx
push ebx
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x1021bfd
push esi
call fcn.010208d0
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.01021982
push esi
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1021b71
push 1
push esi
push 3
lea eax, [ebp - 0x20c]
push eax
call fcn.010215a9
push esi
push 1
push 0
call fcn.01021a8d
test esi, esi
jne 0x1021be2
push esi
push ebx
lea eax, [ebp - 0x214]
push eax
push ebx
mov dword [ebp - 0x214], 0x10
mov dword [ebp - 0x210], 0x19
call fcn.010217dd
push 0x17
pop esi
push 1
push ebx
lea eax, [ebp - 0x214]
push eax
push ebx
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], 6
call fcn.010217dd
push 1
push 1
lea eax, [ebp - 0x210]
push eax
push 4
mov dword [ebp - 0x210], esi
call fcn.010217dd
call fcn.0102196e
push 0x1002460
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.010236f9
leave
ret 4
Function at 0x1021ea9
Capabilities:
Set registry value

Disassembly:
push 0x25
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x1021ed5
call fcn.010208d0
test eax, eax
je 0x1021ed5
call fcn.01020e72
test al, al
jne 0x1021ed5
push 1
push 1
call fcn.010219ea
jmp fcn.01020f18
ret

Function at 0x1022a5a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push 2
push edi
push edi
push edi
push 0x1002590
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x1022ae1
push dword [ebp + 0xc]
push 0x1002568
push edi
push dword [ebp - 4]
call fcn.010246bd
mov esi, eax
cmp esi, edi
jl 0x1022ad6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 1
push edi
push 0x1002580
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
jne 0x1022ac8
xor esi, esi
jmp 0x1022ad6
jle 0x1022ad4
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1022aef
jle 0x1022aed
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x10236de
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1025a08
call fcn.01023bc4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1027700
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1023490
cmp eax, esi
jne 0x1023483
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1023493
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x102346a
xor esi, esi
inc esi
mov eax, dword [0x10276fc]
cmp eax, esi
jne 0x10234a6
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10234d5
mov eax, dword [0x10276fc]
test eax, eax
jne 0x10234cf
mov dword [0x10276fc], esi
push 0x10012c4
push 0x10012b8
call fcn.010233cc
pop ecx
pop ecx
test eax, eax
je 0x10234d5
jmp 0x10235f9
mov dword [0x10273b0], esi
mov eax, dword [0x10276fc]
cmp eax, esi
jne 0x10234f9
push 0x10012b4
push 0x10012ac
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10276fc], 2
cmp dword [ebp - 0x20], ebx
jne 0x1023506
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1027708], ebx
je 0x1023527
push 0x1027708
call fcn.01023b3b
pop ecx
test eax, eax
je 0x1023527
push ebx
push 2
push ebx
call dword [0x1027708]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x10235f9
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1023591
cmp cx, bx
je 0x102354c
cmp dword [ebp - 0x1c], ebx
jne 0x1023591
movzx ecx, word [eax]
cmp cx, bx
je 0x1023561
cmp cx, 0x20
ja 0x1023561
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x102354c
test byte [ebp - 0x40], 1
je 0x102356d
movzx ecx, word [ebp - 0x3c]
jmp 0x1023570
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x10273ac], eax
cmp dword [0x10273a0], ebx
jne 0x10235d6
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x10235a2
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1023536
cmp dword [0x10273b0], ebx
jne 0x10235e4
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10273ac]
jmp 0x1023605
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01023c09
ret
call fcn.01023d0e
jmp 0x102342d

Function at 0x1023ab0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1023ac3
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1023abf
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x1023af0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x1023b2f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1023b25
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1023b31
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1023b15
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1023f99
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x10]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
and dword [edi], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x102404a
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x102404a
push eax
push ebx
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1024041
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
lea eax, [ebp + 0x10]
push eax
je 0x1024019
lea eax, [ebp - 8]
push eax
push 0x10023f8
push dword [ebp + 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1024041
cmp dword [ebp + 0x10], ebx
je 0x1024041
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
jmp 0x102403f
lea eax, [ebp - 0xc]
push eax
push 0x10026c4
push dword [ebp + 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1024041
cmp dword [ebp + 0x10], ebx
je 0x1024041
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
mov dword [edi], ecx
movzx eax, word [eax + 2]
mov dword [esi], eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10240f1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
lea eax, [ebp - 0x218]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1002738
push SysStringLen
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102422b
push edi
push 4
pop edi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
mov esi, 0x10026f8
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x220], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102421e
push esi
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp dword [ebp - 0x21c], edi
jne 0x102421e
lea eax, [ebp - 0x20c]
push eax
call fcn.01024090
xor ecx, ecx
cmp dword [ebp - 0x214], eax
sete cl
test ecx, ecx
mov dword [ebp - 0x210], ecx
je 0x102421e
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
mov esi, 0x1002710
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x220], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102421e
push esi
push dword [ebp - 0x224]
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp dword [ebp - 0x21c], edi
jne 0x102421e
lea eax, [ebp - 0x20c]
push eax
call fcn.01024090
xor ecx, ecx
cmp dword [ebp - 0x214], eax
sete cl
mov dword [ebp - 0x210], ecx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop esi
xor ecx, ebp
pop ebx
call fcn.010236f9
leave
ret 4

Function at 0x1024246
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x1027370], 0xffffffff
jne 0x10242b5
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x10027b8
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10242b5
and dword [0x1027370], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x100279c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10242ac
cmp word [ebp - 0xc], 0x600
sbb eax, eax
inc eax
mov dword [0x1027370], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1027370]
leave
ret
Function at 0x102432f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x20c], 0
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push 0x1002738
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10243c8
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0x1002780
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10243bc
test esi, esi
je 0x10243bc
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push esi
call fcn.010242c1
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp word [ebp - 0x20c], ax
pop esi
setne al
xor ecx, ebp
call fcn.010236f9
leave
ret 8

Function at 0x10243e8
Capabilities:
Check if file exists
Get file attributes
Read .ini file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x41c], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
call fcn.0102432f
test eax, eax
je 0x10244cd
lea eax, [ebp - 0x20c]
push eax
call fcn.010240f1
test eax, eax
je 0x10244cd
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102432f
test eax, eax
je 0x10244cd
push ebx
push 0x1002710
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.010245b0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x418], eax
push 0x80
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
push edi
lea eax, [ebp - 0x414]
push eax
push 0x10013f0
push dword [ebp - 0x41c]
push 0x1002728
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
cmp dword [ebp - 0x418], 0xffffffff
je 0x10244cc
push dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push eax
call ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.010236f9
leave
ret 4