joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10035e5a
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov dword [ebp - 0x40], eax
lea edi, [ebp - 0x28]
mov eax, dword [ebp + 0x14]
push 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
pop ecx
mov dword [ebp - 0x30], eax
xor eax, eax
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [ebp - 0x3c], edx
push edi
push edi
push edx
push ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10035eb9
push edi
push 0x20
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.10035ff0
jmp 0x10035ebb
mov eax, edi
test eax, eax
je 0x10035f86
test esi, esi
je 0x10035ecc
mov eax, dword [ebp - 0x24]
mov dword [esi], eax
push dword [ebp + 0x20]
push 1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 0x3c]
lea esi, [ebp - 0x28]
push eax
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
or ecx, 0xffffffff
call fcn.100352ac
test eax, eax
jne 0x10035f00
mov esi, 0x80040108
jmp 0x10035f9e
push dword [ebp - 0xc]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
jne 0x10035f1e
mov esi, 0x8007000e
jmp 0x10035f9e
push 1
push 0
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10035f86
push 0
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0xc]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10035f86
mov edx, dword [ebp - 0xc]
cmp dword [ebp - 0x34], edx
jne 0x10035f86
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.10035d6d
test eax, eax
jne 0x10035f63
mov esi, 0x8004011b
jmp 0x10035f9e
mov edi, dword [ebp - 0x30]
mov ecx, esi
mov edx, dword [ebp - 0xc]
push edi
push 0
push dword [ebp - 0x1c]
call fcn.1003567b
mov esi, eax
test esi, esi
js 0x10035f9e
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
jmp 0x10035f8c
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
xor esi, esi
cmp dword [ebp - 0x24], 3
jne 0x10035f9e
mov edx, dword [edi]
push ecx
mov ecx, dword [ecx]
call fcn.100338d6
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x10035fb2
xor eax, eax
cmp esi, 0x8004011b
sete al
mov dword [ecx], eax
lea ecx, [ebp - 0x38]
call fcn.10037062
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10087900
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x1003607a
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x514
mov eax, dword [0x1008a418]
xor eax, esp
mov dword [esp + 0x510], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x250
mov dword [esp + 0x18], eax
xor edi, edi
lea eax, [esp + 0xc4]
mov ebx, ecx
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0x10], edi
mov esi, 0x80004005
push edi
push sym.WAB32.dll_Ordinal_20
push 3
push edi
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100360e8
xor esi, esi
jmp 0x100361b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x100360fd
mov esi, 0x80070005
jmp 0x100361b1
cmp eax, 2
jne 0x100361b1
xor eax, eax
lea edx, [esp + 0x310]
push ecx
mov ecx, ebx
mov word [esp + 0x314], ax
call fcn.10034976
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x10036172
xor edi, edi
lea eax, [esp + 0x310]
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push edi
push sym.WAB32.dll_Ordinal_20
push 3
push edi
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100360e1
push 0x800
push 0x1f4
mov edx, ebx
lea ecx, [esp + 0x20]
call fcn.10033a90
test eax, eax
je 0x100361b1
push 0
push sym.WAB32.dll_Ordinal_20
push 3
push 0
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
lea eax, [edi + 1]
neg eax
sbb eax, eax
not eax
and esi, eax
mov eax, dword [esp + 0x14]
mov dword [eax], edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100361c6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x51c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10087900
mov esp, ebp
pop ebp
ret 4
Function at 0x100371c2
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x38]
mov edx, ecx
mov dword [ebp - 0xc], esi
push 0xa
xor eax, eax
mov dword [ebp - 0x10], edx
pop ecx
rep stosd dword es:[edi], eax
cmp dword [ebp + 8], eax
je 0x10037368
test edx, edx
je 0x10037368
test esi, esi
je 0x10037368
push 0x38
call fcn.1008737f
mov esi, eax
xor ebx, ebx
mov dword [ebp - 8], esi
pop ecx
test esi, esi
je 0x10037230
or dword [esi + 0xc], 0xffffffff
or dword [esi + 0x10], 0xffffffff
mov dword [esi], 0x10001c10
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], 1
jmp 0x10037235
mov esi, ebx
mov dword [ebp - 8], ebx
test esi, esi
jne 0x10037243
mov ebx, 0x8007000e
jmp 0x1003736d
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp - 0xc]
mov edi, esp
mov dword [esi + 0x30], ecx
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1008c6d4]
call esi
cmp edi, esp
je 0x10037270
mov ecx, 4
int 0x29
lea eax, [ebp - 0x38]
mov esi, str.Contacts_Notification_Engine
push eax
push esi
push dword [0x1008b1e8]
call dword [sym.imp.USER32.dll_GetClassInfoW]
test eax, eax
jne 0x100372ad
mov eax, dword [0x1008b1e8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0x4000
mov dword [ebp - 0x34], 0x10037080
mov dword [ebp - 0x14], esi
call dword [sym.imp.USER32.dll_RegisterClassW]
mov esi, dword [ebp - 8]
push esi
sub esp, 0x20
call fcn.100848cc
mov dword [esi + 4], eax
test eax, eax
jne 0x100372ca
call fcn.1000df00
jmp 0x10037356
mov edi, dword [ebp - 0x10]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100372d2
sub ecx, edx
sar ecx, 1
push 2
pop edx
lea eax, [ecx + 1]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1008737f
pop ecx
mov ecx, eax
mov dword [esi + 8], ecx
test ecx, ecx
jne 0x10037309
mov ebx, 0x8007000e
jmp 0x10037358
mov edx, edi
lea eax, [edx + 2]
mov dword [ebp - 0x10], eax
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x10037311
sub edx, dword [ebp - 0x10]
sar edx, 1
push edi
inc edx
call fcn.1000b82d
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xc], eax
test eax, eax
je 0x10037351
push ebx
push ebx
push esi
push 0x100370e0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
test eax, eax
jne 0x10037361
call fcn.1000df00
mov ebx, eax
mov ecx, esi
call fcn.1003748e
jmp 0x1003736d
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x1003736d
mov ebx, 0x80070057
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1003b47a
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x30
pop edi
push edi
lea eax, [ebp - 0x54]
mov esi, ecx
push 0
push eax
mov dword [0x1008b96c], esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x4c], 0x1003b590
mov dword [ebp - 0x50], 0x4000
mov dword [ebp - 0x40], esi
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push 5
mov dword [ebp - 0x38], eax
call dword [sym.imp.USER32.dll_GetSysColorBrush]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x2c], 0x10005c34
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0x10005c6c
movzx edi, ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor esi, esi
mov dword [0x1008b968], eax
mov eax, dword [0x1008ac98]
inc esi
cmp eax, 0xffffffff
jne 0x1003b556
and dword [0x1008ac98], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [0x1008ba6c], ax
test ax, ax
je 0x1003b551
push 0x10
lea ecx, [ebp - 0x24]
movzx eax, ax
push ecx
push 0x58
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1003b551
test dword [ebp - 0x16], 0x800
je 0x1003b551
call fcn.10070f11
test eax, eax
je 0x1003b551
mov eax, esi
mov dword [0x1008ac98], eax
jmp 0x1003b556
mov eax, dword [0x1008ac98]
test eax, eax
je 0x1003b564
mov dword [0x10089440], 0x10006064
xor eax, eax
cmp ax, di
je 0x1003b573
cmp dword [0x1008b968], eax
jne 0x1003b575
xor esi, esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10087900
mov esp, ebp
pop ebp
ret

Function at 0x1003b8ba
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebx
push esi
push 0x11
mov ebx, ecx
mov esi, 0x80004005
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
and ax, cx
xor ecx, ecx
cmp cx, ax
jne 0x1003b92b
push edi
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movzx edi, ax
xor esi, esi
shr edi, 0xf
inc esi
not edi
and edi, esi
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x1003b91a
test edi, edi
je 0x1003b90f
cmp eax, dword [ebx + 0xc]
je 0x1003b92a
cmp eax, ecx
je 0x1003b91f
push ecx
jmp 0x1003b922
cmp eax, ecx
je 0x1003b92a
cmp eax, dword [ebx + 0xc]
jne 0x1003b91f
jmp 0x1003b90c
cmp eax, dword [ebx + 0xc]
je 0x1003b92a
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SetFocus]
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x1003b930
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1003b997
mov edx, dword [esi + 0xa0]
cmp dword [ebp + 8], edx
jb 0x1003b98e
mov eax, dword [esi + 0xa4]
lea eax, [edx + eax*2]
cmp edi, eax
jb 0x1003b98e
push 1
push ecx
mov ebx, eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0xa0]
mov eax, dword [ebp + 8]
push 0x14
push ecx
push ecx
push dword [esi + 0xa4]
sub eax, ecx
shr eax, 1
push eax
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x1003b997
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0xc], 0
je 0x1003b9b3
push 4
sub edi, ebx
push edi
push dword [ebp + 8]
push ebx
push 0
push 0
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8

Function at 0x1003ba45
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
lea eax, [ebp - 0x210]
push ebx
push esi
push edi
push 0x208
mov ebx, ecx
lea ecx, [ebp - 0x220]
push eax
call fcn.100102ed
and dword [ebp - 0x224], 0
mov eax, dword [ebx + 0x9c]
test eax, eax
je 0x1003baf6
mov esi, dword [eax]
lea ecx, [ebp - 0x214]
mov edi, esp
push ecx
push 0x10004cb4
mov ecx, dword [esi]
push eax
call dword [0x1008c6d4]
call dword [esi]
cmp edi, esp
je 0x1003bab4
mov ecx, 4
int 0x29
test eax, eax
js 0x1003baf6
mov ecx, dword [ebp - 0x214]
lea edx, [ebp - 0x224]
call fcn.10019079
test eax, eax
js 0x1003baf6
cmp dword [ebp - 0x224], 0
mov eax, 0x10003f08
je 0x1003bae1
mov eax, dword [ebp - 0x220]
push 5
push 0
push 0
push eax
push 0x10005cc0
push dword [ebx + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x214]
call fcn.1000b34b
and dword [ebp - 0x224], 0
lea ecx, [ebp - 0x220]
call fcn.1000deab
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.10087900
mov esp, ebp
pop ebp
ret
Function at 0x1003d1eb
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x440], 0
lea eax, [ebp - 0x43c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x21c
push 0
push eax
call sub.msvcrt.dll_memset
push 0x21c
lea eax, [ebp - 0x220]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
mov dword [ebp - 0x444], 0x21c
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x440]
push eax
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
xor esi, esi
inc esi
test eax, eax
jne 0x1003d303
mov edi, 0x10e
cmp dword [ebp - 0x440], esi
jne 0x1003d288
lea eax, [ebp - 0x43c]
jmp 0x1003d2b4
cmp dword [ebp - 0x440], 2
jne 0x1003d2fe
push edi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1003d2fe
cmp eax, edi
ja 0x1003d2fe
lea eax, [ebp - 0x220]
xor edi, edi
lea ecx, [ebp - 0x220]
push edi
push 0x10e
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_SHLoadIndirectString]
test eax, eax
js 0x1003d303
xor eax, eax
cmp ax, word [ebp - 0x220]
je 0x1003d303
mov eax, dword [ebx]
add eax, eax
push eax
push edi
push dword [ebx + 4]
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebx], edi
lea eax, [ebp - 0x220]
mov ecx, ebx
push eax
call fcn.100115f7
mov esi, eax
jmp 0x1003d303
mov esi, 0x8000ffff
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10087900
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003d588
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x208
push eax
mov dword [ebp - 0x418], eax
mov edi, eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x420], edx
push eax
mov dword [ebp - 0x424], ecx
call sub.msvcrt.dll_memset
xor eax, eax
push 0x208
push eax
lea eax, [ebp - 0x414]
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
test esi, esi
je 0x1003d604
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x1003d5ee
sub ecx, edx
sar ecx, 1
lea edi, [ecx*2 + 2]
push edi
push esi
xor edi, edi
mov dword [ebp - 0x41c], 0x208
push edi
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x420]
push dword [ebp - 0x424]
call dword [sym.imp.SHLWAPI.dll_SHRegQueryUSValueW]
test eax, eax
jne 0x1003d6a3
cmp dword [ebp - 0x418], 1
mov esi, 0x104
jne 0x1003d654
lea eax, [ebp - 0x20c]
jmp 0x1003d680
cmp dword [ebp - 0x418], 2
jne 0x1003d6a3
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1003d6a3
cmp eax, esi
ja 0x1003d6a3
lea eax, [ebp - 0x414]
push edi
push esi
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_SHLoadIndirectString]
test eax, eax
js 0x1003d6a3
lea edx, [ebp - 0x20c]
mov ecx, ebx
call fcn.10046d6a
jmp 0x1003d6a8
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10087900
mov esp, ebp
pop ebp
ret 8
Function at 0x1003d6bb
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x228], eax
mov edi, edx
xor eax, eax
mov dword [ebp - 0x22c], ebx
push 0x208
push eax
mov dword [ebp - 0x210], eax
mov esi, ecx
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x21c], eax
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push 0x20019
push edi
call dword [sym.imp.SHLWAPI.dll_SHRegOpenUSKeyW]
xor ecx, ecx
test eax, eax
je 0x1003d746
mov eax, dword [ebp - 0x228]
mov esi, ecx
mov dword [ebx], ecx
mov dword [eax], ecx
jmp 0x1003d889
push ecx
push ecx
lea eax, [ebp - 0x218]
push eax
push ecx
push ecx
push dword [ebp - 0x210]
call dword [sym.imp.SHLWAPI.dll_SHRegQueryInfoUSKeyW]
test eax, eax
je 0x1003d76b
mov esi, 0x80070057
jmp 0x1003d889
mov eax, dword [ebp - 0x218]
cmp eax, 1
jbe 0x1003d761
dec eax
xor ecx, ecx
push 4
pop edx
mov dword [ebp - 0x218], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1008737f
mov ebx, eax
pop ecx
xor ecx, ecx
mov esi, ebx
mov eax, ecx
mov dword [ebp - 0x220], esi
mov edi, ecx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x21c], 0x104
cmp edi, dword [ebp - 0x218]
jae 0x1003d82e
push ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push eax
push dword [ebp - 0x210]
call dword [sym.imp.SHLWAPI.dll_SHRegEnumUSValueW]
test eax, eax
jne 0x1003d82c
cmp word [ebp - 0x20c], ax
je 0x1003d81e
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
push esi
push eax
call fcn.1003d588
mov esi, eax
mov dword [ebp - 0x214], esi
test esi, esi
js 0x1003d857
mov esi, dword [ebp - 0x220]
xor eax, eax
mov ecx, dword [esi]
cmp word [ecx], ax
je 0x1003d81e
inc edi
add esi, 4
mov dword [ebp - 0x220], esi
mov eax, dword [ebp - 0x224]
inc eax
xor ecx, ecx
jmp 0x1003d7a2
xor ecx, ecx
test edi, edi
jne 0x1003d83f
mov esi, 0x80070057
mov dword [ebp - 0x214], esi
jmp 0x1003d857
mov eax, dword [ebp - 0x22c]
mov esi, dword [ebp - 0x214]
mov dword [eax], ebx
mov ebx, ecx
mov eax, dword [ebp - 0x228]
mov dword [eax], edi
test ebx, ebx
je 0x1003d889
xor eax, eax
mov esi, eax
test edi, edi
je 0x1003d87c
cmp dword [ebx + esi*4], 0
je 0x1003d877
push dword [ebx + esi*4]
call fcn.1008737a
xor eax, eax
pop ecx
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x1003d863
push ebx
call fcn.1008737a
mov esi, dword [ebp - 0x214]
pop ecx
cmp dword [ebp - 0x210], 0
je 0x1003d89e
push dword [ebp - 0x210]
call dword [sym.imp.SHLWAPI.dll_SHRegCloseUSKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10087900
mov esp, ebp
pop ebp
ret 8
Function at 0x1003dc28
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 4
pop ebx
push ebx
push 0x10006390
xor edi, edi
mov dword [ebp - 4], ebx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 0x10], edi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], edi
push eax
push 0x10006394
push 0x100063c0
mov esi, ecx
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
mov ecx, dword [0x10089570]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
cmp eax, ecx
jb 0x1003dc7b
mov eax, ecx
push ebx
push 0x10006368
push edi
mov dword [esi + 0xa0], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1000636c
push 0x100063c0
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
push ebx
push 0x10006350
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push edi
mov dword [esi + 0xa4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x10]
push eax
push 0x10006354
push 0x100063c0
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
push ebx
push 0x10006334
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push edi
mov dword [esi + 0xa8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x10]
push eax
push 0x10006338
push 0x100063c0
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push 0x11
mov dword [esi + 0xac], eax
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetSysColor]
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x10006160
push 0x100063c0
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 0xb0], eax
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003dd5b
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xb4], 0
lea eax, [ebp - 0xa8]
and dword [ebp - 0xac], 0
push ebx
push esi
push edi
push 0xa0
push 0
push eax
mov ebx, ecx
call sub.msvcrt.dll_memset
and dword [ebp - 0xb8], 0
add esp, 0xc
xor esi, esi
mov dword [ebp - 0xb0], esi
push 0x14
pop ecx
call fcn.10071675
mov dword [ebx], eax
test eax, eax
jne 0x1003ddc0
mov esi, 0x8007000e
jmp 0x1003dedf
push 0
lea eax, [ebp - 0xb4]
push eax
push 0
push 0x20019
push 0x100063c0
call dword [sym.imp.SHLWAPI.dll_SHRegOpenUSKeyW]
test eax, eax
je 0x1003dde9
mov esi, 0x80004005
jmp 0x1003dedf
xor edi, edi
lea eax, [ebp - 0xb8]
push edi
push eax
lea eax, [ebp - 0xa8]
push eax
push edi
jmp 0x1003debf
cmp dword [ebp - 0xac], 0
je 0x1003de1c
push dword [ebp - 0xac]
call dword [sym.imp.SHLWAPI.dll_SHRegCloseUSKey]
and dword [ebp - 0xac], 0
push 0
lea eax, [ebp - 0xac]
push eax
push dword [ebp - 0xb4]
lea eax, [ebp - 0xa8]
push 0x20019
push eax
call dword [sym.imp.SHLWAPI.dll_SHRegOpenUSKeyW]
test eax, eax
jne 0x1003dead
test esi, esi
je 0x1003de5a
mov ecx, esi
call fcn.1003d8b3
push esi
call fcn.1008737a
and dword [ebp - 0xb0], 0
pop ecx
mov ecx, dword [ebp - 0xac]
lea edx, [ebp - 0xb0]
call fcn.1003d96e
mov esi, eax
cmp esi, 0x80070057
je 0x1003dea7
test esi, esi
js 0x1003dedf
cmp dword [ebp - 0xb0], 0
je 0x1003dedd
push dword [ebp - 0xb0]
mov ecx, dword [ebx]
mov edx, SysReAllocString
call fcn.1007180d
cmp eax, 0xffffffff
je 0x1003ddb6
xor esi, esi
mov dword [ebp - 0xb0], esi
jmp 0x1003dead
mov esi, dword [ebp - 0xb0]
push 0
lea eax, [ebp - 0xb8]
inc edi
push eax
lea eax, [ebp - 0xa8]
push eax
push edi
push dword [ebp - 0xb4]
mov dword [ebp - 0xb8], 0x50
call dword [sym.imp.SHLWAPI.dll_SHRegEnumUSKeyW]
test eax, eax
je 0x1003de00
xor esi, esi
cmp dword [ebp - 0xac], 0
je 0x1003defb
push dword [ebp - 0xac]
call dword [sym.imp.SHLWAPI.dll_SHRegCloseUSKey]
and dword [ebp - 0xac], 0
cmp dword [ebp - 0xb4], 0
je 0x1003df10
push dword [ebp - 0xb4]
call dword [sym.imp.SHLWAPI.dll_SHRegCloseUSKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10087900
mov esp, ebp
pop ebp
ret

Function at 0x1003e40e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
mov edi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1003e46c
push edi
push esi
push 0x10006540
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1003e474
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10087900
mov esp, ebp
pop ebp
ret