joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1020d85
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 0x1020f69
cmp dword [ebp + 0x18], esi
push edi
mov edi, 0x104
je 0x1020e0b
push dword [ebp + 0x18]
lea eax, [ebp - 0x20c]
push 0x10023a8
push edi
push eax
call fcn.0101f8e7
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 0x1020f5c
cmp dword [ebp - 0x210], esi
je 0x1020e53
mov eax, dword [ebp - 0x218]
push dword [ebp - 0x210]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x1020f5c
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 0x1020f5c
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 0x1020f50
push 0x25
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x1020eb3
push dword [ebp + 0x14]
push 0x1002338
push dword [ebp - 0x214]
call dword [sym.imp.SHELL32.dll_SHSetLocalizedName]
jmp 0x1020f50
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 0x1020f50
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 0x1020f44
mov eax, dword [0x102737c]
cmp eax, esi
jne 0x1020f0a
call fcn.0101f229
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.010234cb
leave
ret 0x14
Function at 0x1021500
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.0101f8e7
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.010234cb
leave
ret 0xc

Function at 0x10215af
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 0x1021602
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 0x10215fc
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push 0
push dword [ebp + 8]
push eax
call fcn.0102137b
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x10215d0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010234cb
leave
ret 0x10

Function at 0x1021617
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 0x102172c
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.0102137b
mov eax, dword [0x102737c]
cmp eax, edi
jne 0x1021684
call fcn.0101f229
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.0102137b
mov eax, dword [0x102737c]
test eax, eax
jne 0x10216e4
call fcn.0101f229
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.0102137b
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.010234cb
leave
ret 4
Function at 0x10217bc
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 0x102184c
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 0x102184c
mov eax, dword [0x102737c]
test eax, eax
jne 0x10217fd
call fcn.0101f229
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.0102137b
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010234cb
leave
ret 8

Function at 0x102185f
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 0x10218a6
push esi
push 2
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10218a6
push 1
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.0102137b
cmp dword [ebp + 0xc], 0
jl 0x10218ce
push 0x25
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x10218c5
test esi, esi
je 0x10218c5
call fcn.01020c42
test al, al
je 0x10218ce
push esi
push dword [ebp + 0xc]
call fcn.010217bc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010234cb
leave
ret 0xc

Function at 0x10218e2
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 0x10219cf
push esi
call fcn.010206a0
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.01021754
push esi
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1021943
push 1
push esi
push 3
lea eax, [ebp - 0x20c]
push eax
call fcn.0102137b
push esi
push 1
push 0
call fcn.0102185f
test esi, esi
jne 0x10219b4
push esi
push ebx
lea eax, [ebp - 0x214]
push eax
push ebx
mov dword [ebp - 0x214], 0x10
mov dword [ebp - 0x210], 0x19
call fcn.010215af
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.010215af
push 1
push 1
lea eax, [ebp - 0x210]
push eax
push 4
mov dword [ebp - 0x210], esi
call fcn.010215af
call fcn.01021740
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.010234cb
leave
ret 4
Function at 0x102282c
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 0x10228b3
push dword [ebp + 0xc]
push 0x1002568
push edi
push dword [ebp - 4]
call fcn.0102448d
mov esi, eax
cmp esi, edi
jl 0x10228a8
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 0x102289a
xor esi, esi
jmp 0x10228a8
jle 0x10228a6
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10228c1
jle 0x10228bf
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x10234b0
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10257d8
call fcn.01023994
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 0x1023262
cmp eax, esi
jne 0x1023255
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1023265
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x102323c
xor esi, esi
inc esi
mov eax, dword [0x10276fc]
cmp eax, esi
jne 0x1023278
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10232a7
mov eax, dword [0x10276fc]
test eax, eax
jne 0x10232a1
mov dword [0x10276fc], esi
push 0x10012c4
push 0x10012b8
call fcn.0102319e
pop ecx
pop ecx
test eax, eax
je 0x10232a7
jmp 0x10233cb
mov dword [0x10273b0], esi
mov eax, dword [0x10276fc]
cmp eax, esi
jne 0x10232cb
push 0x10012b4
push 0x10012ac
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10276fc], 2
cmp dword [ebp - 0x20], ebx
jne 0x10232d8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1027708], ebx
je 0x10232f9
push 0x1027708
call fcn.0102390b
pop ecx
test eax, eax
je 0x10232f9
push ebx
push 2
push ebx
call dword [0x1027708]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x10233cb
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1023363
cmp cx, bx
je 0x102331e
cmp dword [ebp - 0x1c], ebx
jne 0x1023363
movzx ecx, word [eax]
cmp cx, bx
je 0x1023333
cmp cx, 0x20
ja 0x1023333
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x102331e
test byte [ebp - 0x40], 1
je 0x102333f
movzx ecx, word [ebp - 0x3c]
jmp 0x1023342
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x10273ac], eax
cmp dword [0x10273a0], ebx
jne 0x10233a8
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1023374
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1023308
cmp dword [0x10273b0], ebx
jne 0x10233b6
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10273ac]
jmp 0x10233d7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010239d9
ret
call fcn.01023ade
jmp 0x10231ff

Function at 0x1023880
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1023893
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x102388f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x10238c0
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 0x10238ff
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x10238f5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1023901
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x10238e5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1023d69
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 0x1023e1a
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x1023e1a
push eax
push ebx
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1023e11
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
lea eax, [ebp + 0x10]
push eax
je 0x1023de9
lea eax, [ebp - 8]
push eax
push 0x10023f8
push dword [ebp + 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1023e11
cmp dword [ebp + 0x10], ebx
je 0x1023e11
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
jmp 0x1023e0f
lea eax, [ebp - 0xc]
push eax
push 0x10026c4
push dword [ebp + 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1023e11
cmp dword [ebp + 0x10], ebx
je 0x1023e11
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 0x1023ec1
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 0x1023ffb
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 0x1023fee
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 0x1023fee
lea eax, [ebp - 0x20c]
push eax
call fcn.01023e60
xor ecx, ecx
cmp dword [ebp - 0x214], eax
sete cl
test ecx, ecx
mov dword [ebp - 0x210], ecx
je 0x1023fee
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 0x1023fee
push esi
push dword [ebp - 0x224]
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp dword [ebp - 0x21c], edi
jne 0x1023fee
lea eax, [ebp - 0x20c]
push eax
call fcn.01023e60
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.010234cb
leave
ret 4

Function at 0x1024016
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x1027370], 0xffffffff
jne 0x1024085
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 0x1024085
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 0x102407c
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 0x10240ff
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 0x1024198
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 0x102418c
test esi, esi
je 0x102418c
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push esi
call fcn.01024091
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.010234cb
leave
ret 8

Function at 0x10241b8
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.010240ff
test eax, eax
je 0x102429d
lea eax, [ebp - 0x20c]
push eax
call fcn.01023ec1
test eax, eax
je 0x102429d
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.010240ff
test eax, eax
je 0x102429d
push ebx
push 0x1002710
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01024380
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 0x102429c
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.010234cb
leave
ret 4
Function at 0x10242b4
Capabilities:
Check os version
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1027374], 2
jne 0x102436a
and dword [0x1027374], 0
lea eax, [ebp - 0x320]
push eax
mov dword [ebp - 0x320], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x310], 2
jne 0x102436a
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x100280c
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01024380
cmp dword [ebp - 0x31c], 5
pop esi
jae 0x1024360
call fcn.01024016
test eax, eax
jne 0x1024360
push 0x7550005
push 0x50083
lea eax, [ebp - 0x20c]
push eax
call fcn.01023e26
test eax, eax
je 0x102436a
lea eax, [ebp - 0x20c]
push eax
call fcn.010241b8
test eax, eax
jne 0x102436a
mov dword [0x1027374], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x1027374]
xor ecx, ebp
call fcn.010234cb
leave
ret

Function at 0x102453a
Capabilities:
Get common file path
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1027050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x234]
xor ebx, ebx
push eax
mov byte [ebp - 0x20d], bl
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x234], bx
jne 0x102457e
cmp edi, 0x2a
jne 0x102457e
push 0x26
pop edi
push ebx
push edi
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10245dc
push 0x1002890
lea eax, [ebp - 0x20c]
push eax
call sub.SHLWAPI.dll_PathAppendW
test eax, eax
je 0x10245dc
cmp byte [ebp + 0x14], bl
je 0x10245c1
push 0x1002874
lea eax, [ebp - 0x20c]
push eax
call sub.SHLWAPI.dll_PathAppendW
test eax, eax
je 0x10245dc
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push esi
call fcn.0101f785
test eax, eax
jl 0x10245dc
mov byte [ebp - 0x20d], 1
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x20d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010234cb
leave
ret 0x10

Function at 0x102475e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1027050]
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 0x10247b2
push 3
lea eax, [ebp - 0x44]
push 0x1002db0
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.010234cb
leave
ret