joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6124d735
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x61253ebc]
push ebx
mov dword [ebp - 4], eax
push esi
push edi
mov edx, 0x81
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x448], bx
mov ecx, edx
lea edi, [ebp - 0x446]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x240], bx
mov ecx, edx
lea edi, [ebp - 0x23e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x44c]
push eax
call fcn.6124c9d4
test eax, eax
je 0x6124d88e
push dword [ebp + 8]
lea eax, [ebp - 0x38]
push 0x6124240c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x38]
push eax
push str.FontSubstitute
push dword [ebp - 0x44c]
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x6124d883
mov esi, dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
push ebx
mov edi, 0x104
push edi
lea eax, [ebp - 0x448]
push eax
push 1
lea eax, [ebp - 0x460]
push eax
call esi
test eax, eax
je 0x6124d883
push ebx
push edi
lea eax, [ebp - 0x240]
push eax
push 2
lea eax, [ebp - 0x460]
push eax
call esi
test eax, eax
je 0x6124d883
push dword [ebp - 0x44c]
call fcn.6124cc71
cmp word [ebp - 0x448], bx
je 0x6124d88e
cmp word [ebp - 0x240], bx
je 0x6124d88e
lea eax, [ebp - 0x450]
push eax
push 0x2001f
push ebx
push 0x61241828
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6124d88e
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x240]
push eax
push 1
push ebx
lea eax, [ebp - 0x448]
push eax
push dword [ebp - 0x450]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x450]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x6124d88e
push dword [ebp - 0x44c]
call fcn.6124cc71
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.6124ff04
leave
ret 4

Function at 0x6124d8a2
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x61253ebc]
push esi
push edi
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x20c]
push 0x61242434
push eax
call dword [sym.imp.ntdll.dll_wcscat]
pop ecx
pop ecx
xor esi, esi
push esi
push 0x80
push 4
lea eax, [ebp - 0x21c]
push eax
push esi
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x21c], 0xc
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x6124d945
push esi
lea eax, [ebp - 0x220]
push eax
push 2
lea eax, [ebp - 0x210]
push eax
push edi
mov dword [ebp - 0x210], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
call fcn.6124ff04
leave
ret
Function at 0x6124d958
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [0x61254088], edi
jne 0x6124d96e
xor eax, eax
jmp 0x6124d9eb
cmp dword [ebp + 8], edi
jne 0x6124d978
xor eax, eax
inc eax
jmp 0x6124d9eb
push ebx
call fcn.6124d8a2
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 4], ebx
jne 0x6124d98c
xor eax, eax
jmp 0x6124d9ea
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push edi
push edi
push ebx
call esi
push edi
mov edi, dword [sym.imp.ntdll.dll_wcslen]
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call edi
pop ecx
shl eax, 1
push eax
push dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
call ebx
push 2
push 0
push 0
push dword [ebp - 4]
call esi
push 0
lea eax, [ebp - 8]
push eax
mov esi, 0x6124244c
push esi
call edi
pop ecx
shl eax, 1
push eax
push esi
push dword [ebp - 4]
call ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebx
pop edi
leave
ret 4

Function at 0x6124daf8
Capabilities:
Get file version info
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x61253ebc]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov dword [ebp - 4], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
xor ebx, ebx
push eax
mov dword [ebp - 0x828], ebx
mov dword [ebp - 0x834], ebx
call edi
push esi
lea eax, [ebp - 0x414]
push eax
call edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x61242484
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x6124dc6d
lea eax, [ebp - 0x20c]
push eax
call fcn.6124b0ce
test eax, eax
je 0x6124dc6d
push 0x6124246c
lea eax, [ebp - 0x414]
push eax
call edi
test eax, eax
je 0x6124dc6d
lea eax, [ebp - 0x414]
push eax
call fcn.6124b0ce
test eax, eax
je 0x6124dc6d
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jbe 0x6124dc6d
lea eax, [edi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x82c], eax
je 0x6124dc6d
push eax
push edi
push dword [ebp - 0x828]
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x6124dc61
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x830]
push eax
push 0x61241df8
push dword [ebp - 0x82c]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x6124dc61
lea eax, [ebp - 0x414]
push eax
push esi
lea eax, [ebp - 0x61c]
push eax
push 0x61241340
push ebx
push 0x61242454
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 0x830]
movzx eax, word [eax + 0xe]
push eax
lea eax, [ebp - 0x824]
push 0x6124156c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.ntdll.dll_wcscmp]
add esp, 0x14
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
push dword [ebp - 0x82c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.6124ff04
leave
ret
Function at 0x6124dc81
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x61253ebc]
and dword [ebp - 0x424], 0
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x418]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x612417b8
mov edi, 0x80000002
push edi
mov dword [ebp - 0x420], 1
call esi
test eax, eax
jne 0x6124dcd6
xor esi, esi
inc esi
jmp 0x6124de02
lea eax, [ebp - 0x418]
push eax
push ebx
xor ebx, ebx
push ebx
push 0x61241750
push edi
call esi
test eax, eax
je 0x6124dcf4
xor eax, eax
jmp 0x6124de10
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x434]
push eax
push ebx
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x41c], ebx
mov esi, 0x104
push ebx
jmp 0x6124ddc6
cmp word [ebp - 0x20c], bx
je 0x6124dd96
cmp dword [ebp - 0x434], 1
jne 0x6124dd96
lea eax, [ebp - 0x414]
push eax
call fcn.6124b12d
cmp eax, ebx
mov dword [ebp - 0x430], eax
je 0x6124dd96
push esi
lea ecx, [ebp - 0x20c]
push ecx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x6124dd96
push dword [ebp - 0x430]
call sub.KERNEL32.dll_IsValidUILanguage
test eax, eax
je 0x6124dd96
cmp dword [ebp - 0x430], 0x409
je 0x6124ddf6
inc dword [ebp - 0x424]
cmp dword [ebp - 0x424], 1
ja 0x6124ddf6
inc dword [ebp - 0x41c]
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x434]
push eax
push ebx
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x41c]
push dword [ebp - 0x418]
mov word [ebp - 0x20c], bx
mov dword [ebp - 0x42c], 0x208
mov word [ebp - 0x414], bx
mov dword [ebp - 0x428], esi
call edi
test eax, eax
je 0x6124dd2f
jmp 0x6124ddfc
mov dword [ebp - 0x420], ebx
mov esi, dword [ebp - 0x420]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.6124ff04
leave
ret

Function at 0x6124de22
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x61253ebc]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
push 0x61242484
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x6124decd
lea eax, [ebp - 0x20c]
push eax
call fcn.6124b0ce
test eax, eax
je 0x6124decd
call fcn.6124daf8
test eax, eax
jne 0x6124decd
call fcn.6124dc81
test eax, eax
jne 0x6124decd
push edi
push 0xe
pop ecx
lea edi, [ebp - 0x244]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x234], 0x612424a8
mov dword [ebp - 0x244], 0x400
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x248], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
mov ecx, dword [ebp - 4]
call fcn.6124ff04
leave
ret
Function at 0x6124dedc
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x61253ebc]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x6124250c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x6124df6d
lea eax, [ebp - 0x20c]
push eax
call fcn.6124b0ce
test eax, eax
je 0x6124df6d
push edi
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x244]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x234], 0x612424c0
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x248], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
mov ecx, dword [ebp - 4]
call fcn.6124ff04
leave
ret

Function at 0x6124df7c
Capabilities:
Identify system language via api
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x61253ebc]
and dword [ebp - 0x214], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push 0x61241a18
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x6124dfc0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
jmp 0x6124e02b
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push str.MUILanguagePending
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x6124dfff
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x6124dfb8
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.6124b12d
push dword [ebp - 0x210]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test si, si
jne 0x6124e027
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
jmp 0x6124e02a
mov ax, si
pop esi
mov ecx, dword [ebp - 4]
call fcn.6124ff04
leave
ret

Function at 0x6124e03a
Capabilities:
Identify system language via api
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x61253ebc]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
push 0x20019
xor esi, esi
push esi
push 0x61241a44
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6124e0d9
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push 0x61241c2c
push dword [ebp - 0x210]
mov dword [ebp - 0x21c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x6124e0c9
cmp dword [ebp - 0x214], 1
jne 0x6124e0c9
push 0x10
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ntdll.dll_wcstol]
add esp, 0xc
mov dword [ebp - 0x218], eax
inc esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x6124e0e1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
jmp 0x6124e0e8
mov ax, word [ebp - 0x218]
mov ecx, dword [ebp - 4]
pop esi
call fcn.6124ff04
leave
ret
Function at 0x6124e7bc
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x61253ebc]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x408], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x418], eax
push 0x7f
xor eax, eax
xor edx, edx
pop ecx
mov word [ebp - 0x204], dx
lea edi, [ebp - 0x202]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x7f
xor eax, eax
cmp ebx, edx
pop ecx
mov word [ebp - 0x404], dx
lea edi, [ebp - 0x402]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x40c], edx
mov dword [ebp - 0x410], 0x104
push eax
jne 0x6124e84f
call dword [sym.imp.USERENV.dll_GetDefaultUserProfileDirectoryW]
test eax, eax
jne 0x6124e867
jmp 0x6124e915
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
test eax, eax
je 0x6124e915
push ebx
lea eax, [ebp - 0x204]
push eax
call edi
push 0x6124254c
lea eax, [ebp - 0x204]
push eax
call edi
mov edi, dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
push esi
push 0
push 1
push 0x12
call edi
test eax, eax
jl 0x6124e915
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x408]
mov ebx, 0x80000003
push ebx
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
mov dword [ebp - 0x414], eax
xor eax, eax
mov al, byte [esi]
push esi
push 0
push eax
push 0x12
call edi
cmp dword [ebp - 0x414], 0
jne 0x6124e915
push dword [ebp - 0x418]
lea eax, [ebp - 0x404]
push dword [ebp - 0x408]
push 0x61242540
push eax
call dword [sym.imp.ntdll.dll_swprintf]
add esp, 0x10
lea eax, [ebp - 0x40c]
push eax
push 0x2001f
push 0
lea eax, [ebp - 0x404]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6124e909
mov eax, dword [ebp - 0x40c]
jmp 0x6124e917
push esi
push dword [ebp - 0x408]
call fcn.6124d406
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.6124ff04
leave
ret 0x10
Function at 0x6124eb39
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 0xc]
push eax
push 0x20019
xor edi, edi
push edi
push 0x612418a4
push 0x80000002
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6124ebda
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push str.SystemSetupInProgress
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
call esi
cmp dword [ebp - 4], 1
jne 0x6124ebb7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push str.MiniSetupInProgress
push dword [ebp - 0xc]
mov dword [ebp - 4], edi
mov dword [ebp - 8], ebx
call esi
xor eax, eax
cmp dword [ebp - 4], 1
sete al
inc eax
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], edi
pop esi
pop ebx
je 0x6124ebda
cmp dword [0x61254088], edi
je 0x6124ebda
push edi
push 0x91f
call fcn.6124d9f5
mov eax, dword [ebp - 4]
pop edi
leave
ret

Function at 0x6124ebe5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x61254084], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
je 0x6124ec48
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x612418a4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6124ec48
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push str.UpgradeInProgress
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push dword [ebp - 4]
je 0x6124ec4d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
leave
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], esi
je 0x6124ec48
cmp dword [0x61254088], esi
je 0x6124ec6b
push esi
push 0x91e
call fcn.6124d9f5
xor eax, eax
inc eax
jmp 0x6124ec4a

Function at 0x6124ec75
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x61254098], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
jne 0x6124ecf8
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x61241750
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6124ecd8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push str.UIFontSubstitute
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push dword [ebp - 4]
je 0x6124ecdd
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
leave
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], esi
je 0x6124ecd8
cmp dword [0x61254088], esi
je 0x6124ecf8
push esi
push 0x5d
call fcn.6124d9f5
xor eax, eax
inc eax
jmp 0x6124ecda
Function at 0x6124ed02
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x61253ebc]
push ebx
push esi
push edi
mov edx, dword [ebp + 8]
push 0x40
pop ecx
mov dword [ebp - 4], eax
xor ebx, ebx
xor eax, eax
mov byte [ebp - 0x108], bl
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push 0x80
stosb byte es:[edi], al
push 3
mov word [ebp - 0x310], bx
xor eax, eax
push ebx
mov ecx, 0x81
lea edi, [ebp - 0x30e]
rep stosd dword es:[edi], eax
push ebx
push 0x80000000
push edx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x6124ede4
push ebx
push 0x941
call fcn.6124d9f5
push ebx
lea eax, [ebp - 0x314]
push eax
push 0x103
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6124edd2
mov eax, dword [ebp - 0x314]
cmp eax, ebx
jbe 0x6124edd2
push 0x104
lea ecx, [ebp - 0x310]
push ecx
push eax
mov byte [ebp + eax - 0x108], bl
lea eax, [ebp - 0x108]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x6124ed73
lea eax, [ebp - 0x310]
push eax
call fcn.6124d958
jmp 0x6124ed73
push ebx
push 0x942
call fcn.6124d9f5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.6124ff04
leave
ret 4
Function at 0x6124f2a7
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x61253ebc]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x2001f
xor edi, edi
push edi
push 0x612418f8
push 0x80000003
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x6124f36f
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push 1
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call edi
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
cmp dword [ebp - 0x10], 0
jne 0x6124f36f
lea eax, [ebp - 9]
push eax
push 0
push 0x612418c0
push 0x612425a8
call fcn.6124e7bc
test eax, eax
mov dword [ebp - 8], eax
je 0x6124f36f
push dword [ebp + 0xc]
call esi
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call edi
push dword [ebp - 8]
call ebx
lea eax, [ebp - 9]
push eax
push 0x612425a8
call fcn.6124d406
xor eax, eax
inc eax
jmp 0x6124f371
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.6124ff04
leave
ret 8
Function at 0x6124f628
Capabilities:
Identify system language via api
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4ac
mov eax, dword [0x61253ebc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
test ah, 0xfc
jne 0x6124f650
and eax, 0x3ff
or eax, 0x400
push esi
movzx esi, ax
push edi
push esi
call fcn.6124d5b5
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x4a0], eax
jne 0x6124f671
mov dword [ebp - 0x4a0], 1
mov eax, dword [0x6125496c]
cmp eax, esi
jne 0x6124f688
mov eax, dword [ebp - 0x4a0]
mov dword [ebp - 0x49c], eax
jmp 0x6124f6a2
push eax
call fcn.6124d5b5
cmp eax, edi
mov dword [ebp - 0x49c], eax
jne 0x6124f6a2
mov dword [ebp - 0x49c], 1
push 0x612549a0
call fcn.6124ea95
lea eax, [ebp - 0x4a8]
push eax
push 0x20019
push edi
push 0x612416e0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x6124f6d4
xor eax, eax
jmp 0x6124f848
lea eax, [ebp - 0x4a4]
push eax
lea eax, [ebp - 0x494]
push eax
push edi
push edi
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x28c]
push eax
push edi
push dword [ebp - 0x4a8]
mov dword [ebp - 0x498], edi
mov dword [ebp - 0x4ac], 0x104
mov word [ebp - 0x28c], di
mov dword [ebp - 0x4a4], 0x208
mov word [ebp - 0x494], di
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x6124f839
push ebx
cmp word [ebp - 0x494], di
je 0x6124f7d8
lea eax, [ebp - 0x28c]
push eax
call fcn.6124b12d
cmp eax, edi
je 0x6124f7d8
mov esi, dword [0x612540a0]
jmp 0x6124f764
cmp dword [esi + 4], eax
je 0x6124f76a
mov esi, dword [esi + 0xa40]
cmp esi, edi
jne 0x6124f759
jmp 0x6124f7d8
or byte [esi], 4
mov edx, dword [0x612549a0]
mov cx, word [esi]
xor ebx, ebx
cmp edx, edi
jle 0x6124f793
cmp dword [ebx*4 + 0x612549a4], eax
je 0x6124f78c
inc ebx
cmp ebx, edx
jl 0x6124f77c
jmp 0x6124f793
or cx, 2
mov word [esi], cx
mov eax, dword [esi + 4]
cmp eax, dword [ebp - 0x4a0]
jne 0x6124f7a1
or byte [esi], 2
cmp eax, dword [ebp - 0x49c]
jne 0x6124f7d8
or byte [esi], 0x12
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x61
push dword [0x612543d0]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x6124f7d8
lea eax, [ebp - 0x84]
push eax
add esi, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc dword [ebp - 0x498]
lea eax, [ebp - 0x4a4]
push eax
lea eax, [ebp - 0x494]
push eax
push edi
push edi
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x498]
mov dword [ebp - 0x4ac], 0x104
push dword [ebp - 0x4a8]
mov word [ebp - 0x28c], di
mov dword [ebp - 0x4a4], 0x208
mov word [ebp - 0x494], di
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x6124f730
pop ebx
push dword [ebp - 0x4a8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.6124ff04
leave
ret