joyce8/EMBER2024-capa huggingface dataset:
Function at 0x106cb5d
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x10b1090]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x1f4
xor edi, edi
lea eax, [ebp - 0x1f8]
push edi
push eax
mov dword [ebp - 0x1fc], 0x1f8
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 0x1fc]
push eax
push 0x1f8
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x106cbf9
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp cx, 4
jne 0x106cbe0
shr ax, 0xa
cmp ax, 1
je 0x106cbd4
cmp ax, 2
jne 0x106cbe0
mov dword [ebp - 0x1d4], 0x190
jmp 0x106cbea
mov dword [ebp - 0x1d4], 0x2bc
lea eax, [ebp - 0x1e4]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0100204d
leave
ret

Function at 0x106d532
Capabilities:
Enumerate gui resources

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov cx, word [ebp + 8]
shr cx, 8
sub esp, 0xc
xor eax, eax
test cl, 4
je 0x106d54a
inc eax
test cl, 2
je 0x106d552
or eax, 2
test cl, 1
je 0x106d55a
or eax, 4
movzx cx, byte [ebp + 8]
and dword [ebp - 4], 0
shl eax, 8
add ax, cx
mov word [ebp - 0xc], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0x106d4d9
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x106da1a
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
lea eax, [ebp + 0xc]
push eax
push 0
push 0
push dword [ebp + 0xc]
call sub.SHELL32.dll_SHGetKnownFolderIDList
test eax, eax
jl 0x106da80
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
mov dword [ebp - 0x3c], 0x3c
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x38], 0x10000c
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_ILFree]
leave
ret 0xc
Function at 0x106da89
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub eax, 0x55c
push ebx
push esi
push edi
mov esi, ecx
je 0x106dac5
dec eax
jne 0x106dabe
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x106dabe
push ebx
push ebx
push dword [esi + 0x3c]
call dword [sym.imp.SHLWAPI.dll_Ordinal_479]
push dword [0x10b10e8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x106daa7
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 0x10002
push 0x128
push dword [esi + 4]
call edi
push dword [esi + 4]
push 1
push 0x459
push dword [0x10b10e8]
call edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jge 0x106db1c
push ebx
push ebx
push 0x414
push dword [esi + 0xc04]
call edi
push eax
jmp 0x106db22
push dword [esi + 0xb10]
mov ecx, esi
call fcn.01038ded
jmp 0x106dabe

Function at 0x106e064
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x3c], 0x3c
call sub.msvcrt.dll_memset
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x2c], 0x106e0a8
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
leave
ret

Function at 0x106e0bd
Capabilities:
Check mutex on windows
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10b1090]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x106e1a0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x106e0f9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x106e12e
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x106e158
call dword [sym.imp.SHLWAPI.dll_Ordinal_460]
test eax, eax
je 0x106e12e
push 1
push 0
push 0x106e13c
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100204d
leave
ret
Function at 0x106e6e9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push 0x106e7e8
push 0x80000002
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edi
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106e750
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 0x106e7b8
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call ebx
test eax, eax
jne 0x106e747
cmp dword [ebp - 0x10], edi
setne al
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 1
push edi
push 0x10314b0
push 0x80000001
call esi
test eax, eax
jne 0x106e7a3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 0x106e7b8
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call ebx
test eax, eax
jne 0x106e79a
cmp dword [ebp - 8], edi
jne 0x106e793
mov dword [ebp - 8], edi
cmp dword [ebp - 0x10], edi
je 0x106e79a
mov dword [ebp - 8], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], edi
pop edi
pop esi
pop ebx
jne 0x106e7b2
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
leave
ret

Function at 0x106f1a0
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [0x10b37f0], ebx
jne 0x106f22c
cmp dword [ebp + 0xc], ebx
jne 0x106f1c9
push 0x10130dc
push dword [ebp + 8]
call fcn.01034485
test eax, eax
jne 0x106f22c
mov ecx, edi
call fcn.01038e0b
mov ecx, edi
call fcn.0106ed57
cmp dword [ebp + 0xc], ebx
jne 0x106f1f2
push dword [ebp + 0x10]
mov dword [edi + 0xc44], 2
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_Ordinal_60]
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
mov dword [edi + 0xc44], ebx
call esi
test ax, ax
jge 0x106f21a
push 0x11
call esi
test ax, ax
jge 0x106f21a
push 0x12
call esi
test ax, ax
jl 0x106f21f
cmp dword [ebp + 0xc], ebx
je 0x106f22b
call fcn.0106bdc1
mov ecx, edi
call fcn.0106deec
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x106f580
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor eax, eax
cmp dword [ebp + 8], 2
push esi
mov esi, ecx
jne 0x106f598
cmp dword [esi + 0xd28], eax
jmp 0x106f59b
cmp dword [ebp + 8], eax
sete al
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 4
push 0x103162c
push 0x100f4a0
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, esi
call fcn.0102f6c6
mov ecx, esi
call fcn.0102f678
mov ecx, esi
call fcn.01020699
pop esi
pop ebp
ret 4
Function at 0x107097c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x10b1090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push edi
inc ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x10709d4
push ebx
push edi
push 0x1070a68
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0100ecf0
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
inc ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1070a37
jmp 0x10709a4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x418], eax
test eax, eax
je 0x1070a47
push eax
push 0x104
lea eax, [ebp - 0x414]
push eax
call fcn.010065a0
mov ecx, dword [ebp - 0x418]
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x414]
push eax
push ebx
push edi
push 0x1070a58
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0100ecf0
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
inc ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1070a02
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push edi
call fcn.010065a0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0100204d
leave
ret 8

Function at 0x1071a96
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
mov ebx, 0x80000001
je 0x1071b3c
push 1
push 0x10290e4
push 0x1028ff0
push ebx
call dword [sym.imp.SHLWAPI.dll_SHOpenRegStream2W]
mov dword [ebp - 4], eax
test eax, eax
je 0x1071b3c
push edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x14
pop edi
push dword [esi + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 5
mov dword [ebp - 0x14], 0x10001
call dword [0x1069a20]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
test eax, eax
jbe 0x1071b2c
push edi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_IStream_Write]
test eax, eax
jl 0x1071b2c
push dword [ebp - 4]
push dword [esi + 0x10]
call dword [0x1071b78]
test eax, eax
je 0x1071b2c
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 8], 0
pop edi
jne 0x1071b6e
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push 0x1028ff0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1071b6e
push 0x10290e4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret
Function at 0x1071b81
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [ecx + 0xc], eax
je 0x1071be1
mov dword [ecx + 0xc], eax
xor ecx, ecx
test eax, eax
lea eax, [ebp + 8]
push eax
push 0x20006
setne cl
push 0
push 0x1017800
push 0x80000001
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1071bdc
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x102e0f0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x1071be3
xor eax, eax
leave
ret 4

Function at 0x1073119
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x338]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x107316d
cmp dword [ebp + 8], 0
jne 0x107315c
mov edx, dword [eax + 0x29c]
mov ecx, edx
and ecx, 0xf
test dl, 0x20
je 0x1073155
add ecx, 3
add eax, 0x18
push eax
push ecx
jmp 0x1073163
add eax, 0x18
push eax
push dword [ebp + 8]
push 0x421
push dword [esi + 0x20]
call edi
mov eax, dword [esi + 0x338]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
je 0x10731a3
test byte [eax + 0x29c], 0x10
jne 0x10731a3
call ebx
sub eax, dword [ebp + 0xc]
cmp eax, 0x1388
jb 0x10731a3
call ebx
push 2
push 0x10732d0
mov dword [ebp - 4], eax
call fcn.01035291
mov ecx, esi
call fcn.01040954
mov ecx, 0x10b1180
call fcn.0100ed89
push 0x2c
lea eax, [ebp - 0x30]
push 0
push eax
mov dword [ebp - 0x34], 0x30
call sub.msvcrt.dll_memset
mov ecx, dword [esi + 0x338]
add esp, 0xc
test ecx, ecx
je 0x10731f7
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x439
push dword [esi + 0x20]
add ecx, 0x98
mov dword [ebp - 0x10], ecx
call edi
cmp dword [esi + 0x338], 0
mov dword [esi + 0x340], 1
je 0x10732b4
and dword [esi + 0x390], 0
push 0x21b
push 0x10732c0
call fcn.01012644
push 0
lea eax, [ebp + 8]
push eax
push 0
push 0x2016
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x1073255
mov eax, dword [ebp + 8]
imul eax, eax, 0x3e8
mov dword [ebp + 8], eax
cmp eax, 0x2328
jb 0x1073255
add eax, 0xffffe890
jmp 0x107325a
mov eax, 0xbb8
add eax, 0x3e8
push eax
push 7
mov ecx, esi
call fcn.01033baf
test eax, eax
je 0x10732b4
and dword [esi + 0x90], 0
call ebx
push 0x3e8
push 4
mov ebx, 0x403
push ebx
push dword [esi + 0x20]
mov dword [esi + 0x8c], eax
call edi
push 0x1388
push 5
push ebx
push dword [esi + 0x20]
call edi
push 0
push 0
add ebx, 0xe
push ebx
push dword [esi + 0x20]
call edi
lea eax, [ebp - 0x34]
push eax
push 1
push ebx
push dword [esi + 0x20]
call edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1076494
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
lea esi, [edi + 0x10764d0]
push dword [esi]
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp dword [ebp + 8], 0
je 0x10764c2
push dword [esi]
push 0
push 0x1a
call dword [sym.imp.SHLWAPI.dll_SHSendMessageBroadcastW]
add edi, 4
cmp edi, 0x20
jb 0x107649d
pop edi
pop esi
pop ebp
ret 4
Function at 0x1077637
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x10b1090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x1f
pop ecx
push 0x18c
mov dword [ebp - 0x468], eax
xor ebx, ebx
lea eax, [ebp - 0x1e0]
push ebx
mov esi, 0x10777a0
lea edi, [ebp - 0x25c]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x27
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x468]
call dword [sym.imp.SHLWAPI.dll_Ordinal_24]
test eax, eax
jl 0x1077780
push ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x25c]
push eax
mov esi, 0x104
push esi
push eax
call fcn.010773c7
test eax, eax
jl 0x1077780
push ebx
push 0x1077794
lea eax, [ebp - 0x25c]
push eax
push esi
push eax
call fcn.010773c7
test eax, eax
jl 0x1077780
lea eax, [ebp - 0x468]
push eax
push 0xb
push ebx
lea eax, [ebp - 0x25c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1077780
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x46c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x468]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1077769
jmp 0x1077774
dec dword [ebp - 0x46c]
lea eax, [ebp - 0x474]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 0x46c]
mov dword [ebp - 0x470], esi
push dword [ebp - 0x468]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1077771
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 0x468]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [ebp - 0x46c], ebx
jge 0x107771c
xor ebx, ebx
inc ebx
push dword [ebp - 0x468]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0100204d
leave
ret 4

Function at 0x1079254
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
xor edi, edi
mov dword [ebp + 8], eax
cmp dword [ebp + 0xc], esi
je 0x1079287
push esi
lea ecx, [ebp + 8]
push ecx
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1079287
xor eax, eax
jmp 0x10792b3
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 3
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10792a3
xor edi, edi
inc edi
cmp dword [ebp + 0xc], esi
je 0x10792b1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x10792be
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x10b1090]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1079356
push 0x107936c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1079356
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push 0x38
lea eax, [ebp - 0x244]
push 0
push eax
mov dword [ebp - 0x248], 0x3c
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x238], eax
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x234], 0x1079364
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100204d
leave
ret
Function at 0x1079a9d
Capabilities:
Create thread
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov ebx, 0x4010000
mov esi, 0x80000000
cmp dword [0x10b21ec], edi
je 0x1079b15
mov al, byte [0x10b21f0]
cmp al, 4
jae 0x1079acc
test al, al
jne 0x1079b15
mov eax, dword [0x10b21d8]
mov ecx, dword [0x10b21dc]
and eax, ebx
and ecx, esi
or eax, ecx
je 0x1079b15
mov eax, dword [0x10b21e0]
mov edi, dword [0x10b21e4]
mov ecx, eax
mov edx, edi
and ecx, ebx
and edx, esi
cmp ecx, eax
jne 0x1079b13
cmp edx, edi
jne 0x1079b13
push dword [ebp + 0xc]
push 0x1079c58
push dword [0x10b219c]
push dword [0x10b2198]
call fcn.01024e45
xor edi, edi
push edi
push 0x8000080
push 3
push edi
push 5
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x1079ba0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 4], 0x8007000e
cmp edi, 0xffffffff
je 0x1079b8b
test edi, edi
jbe 0x1079b8b
cmp edi, 0x400000
jae 0x1079b93
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
test eax, eax
je 0x1079b93
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1079b8b
mov eax, dword [ebp - 4]
sub eax, edi
neg eax
sbb eax, eax
and eax, 0x800703e5
jmp 0x1079b90
call fcn.0107a4a1
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x1079ba8
call fcn.0107a4a1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
jl 0x1079bdf
push edi
push edi
push dword [ebp - 8]
push 0x107998f
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x1079bd7
mov ecx, dword [ebp + 8]
cmp ecx, edi
je 0x1079bce
mov dword [ecx], eax
jmp 0x1079bed
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1079bed
call fcn.0107a4a1
mov dword [ebp - 4], eax
cmp dword [ebp - 8], edi
je 0x1079bed
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x10b21ec], edi
je 0x1079c49
mov al, byte [0x10b21f0]
cmp al, 4
jae 0x1079c02
test al, al
jne 0x1079c49
mov eax, dword [0x10b21d8]
mov ecx, dword [0x10b21dc]
and eax, ebx
and ecx, esi
or eax, ecx
je 0x1079c49
mov eax, dword [0x10b21e0]
mov edi, dword [0x10b21e4]
mov ecx, eax
mov edx, edi
and ecx, ebx
and edx, esi
cmp ecx, eax
jne 0x1079c49
cmp edx, edi
jne 0x1079c49
push dword [ebp + 0xc]
push 0x1079c68
push dword [0x10b219c]
push dword [0x10b2198]
call fcn.01024e45
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1079c7d
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x55c
mov eax, dword [0x10b1090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x1079eb8
push 0x80
xor ebx, ebx
push eax
mov dword [ebp - 0x518], ebx
call fcn.0100ecf0
mov esi, dword [sym.imp.SHLWAPI.dll_SHRegGetValueFromHKCUHKLM]
xor eax, eax
add esp, 0x10
mov word [ebp - 0x30c], ax
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x30c]
push eax
push ebx
push 2
push 0x1079e9c
lea eax, [ebp - 0x104]
push eax
mov dword [ebp - 0x51c], 0x208
call esi
test eax, eax
je 0x1079d99
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x514]
push eax
push ebx
push 2
push 0x1079e84
lea eax, [ebp - 0x104]
mov edi, 0x104
push eax
mov dword [ebp - 0x51c], edi
call esi
test eax, eax
lea eax, [ebp - 0x51c]
mov dword [ebp - 0x51c], edi
push eax
jne 0x1079d5c
lea eax, [ebp - 0x30c]
push eax
push ebx
lea eax, [ebp - 0x514]
push eax
push 2
push 0x40
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
jmp 0x1079d99
lea eax, [ebp - 0x514]
push eax
push ebx
push 2
push 0x1079e68
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
jne 0x1079d99
lea eax, [ebp - 0x514]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_SHRunIndirectRegClientCommand]
xor eax, eax
mov word [ebp - 0x30c], ax
mov dword [ebp - 0x518], 1
cmp word [ebp - 0x30c], bx
je 0x1079e4e
lea eax, [ebp - 0x518]
push eax
push ebx
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.SHELL32.dll_SHEvaluateSystemCommandTemplate]
mov esi, eax
cmp esi, ebx
jge 0x1079dda
lea eax, [ebp - 0x30c]
mov dword [ebp - 0x520], eax
mov dword [ebp - 0x518], ebx
push 0x38
lea eax, [ebp - 0x558]
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x520]
mov dword [ebp - 0x54c], eax
mov eax, dword [ebp - 0x518]
mov dword [ebp - 0x548], eax
add esp, 0xc
xor edi, edi
lea eax, [ebp - 0x55c]
inc edi
push eax
mov dword [ebp - 0x55c], 0x3c
mov dword [ebp - 0x540], edi
mov dword [ebp - 0x558], 0x400
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp esi, ebx
jl 0x1079e48
push dword [ebp - 0x520]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
call esi
push dword [ebp - 0x518]
call esi
mov dword [ebp - 0x518], edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x518]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100204d
leave
ret 4
Function at 0x1079f37
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x10b1090]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x418], 0x208
jne 0x1079f67
mov eax, 0x1050868
jmp 0x1079f77
cmp dword [ebp + 0xc], 1
mov eax, 0x10508d4
je 0x1079f77
mov eax, 0x107a04c
push eax
push 0x1079ff0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0100ecf0
add esp, 0x10
test eax, eax
jl 0x1079fda
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push 2
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x1079fcd
jle 0x1079fda
and eax, 0xffff
or eax, 0x80070000
jmp 0x1079fda
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.01079a9d
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100204d
leave
ret 8

Function at 0x107a43a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x107a445
sub eax, edx
sar eax, 1
cmp eax, 0x7fffffff
jae 0x107a474
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.SHLWAPI.dll_SHSetValueW
jmp 0x107a479
mov eax, 0x216
test eax, eax
jle 0x107a487
and eax, 0xffff
or eax, 0x80070000
pop ebp
ret 0x10