joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1036e90
Capabilities:
Hide graphical window
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x10460d0
call fcn.01033ecd
push dword [ebp - 8]
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_CheckDlgButton]
push 0x453
push edi
call esi
push dword [ebp - 0x20]
push 0x44d
push edi
call esi
mov eax, dword [ebp - 4]
and eax, 1
push eax
push 0x44e
push edi
call esi
xor eax, eax
cmp dword [ebp - 0x18], eax
sete al
push eax
push 0x44f
push edi
call esi
push 0x40000070
call dword [sym.imp.SHELL32.dll_SHRestricted]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
je 0x1036f12
push 0
push 0x44f
push dword [ebp + 8]
call edi
push eax
call ebx
push 0x4000006b
call dword [sym.imp.SHELL32.dll_SHRestricted]
test eax, eax
je 0x1036f30
push 0
push 0x453
push dword [ebp + 8]
call edi
push eax
call ebx
xor eax, eax
cmp dword [ebp - 0x14], eax
jne 0x1036f5b
cmp dword [ebp - 0x10], eax
jne 0x1036f5b
push dword [ebp - 0xc]
push 0x3ef
push dword [ebp + 8]
call edi
push eax
call ebx
push dword [ebp - 0xc]
push 0x3e8
push dword [ebp + 8]
call esi
jmp 0x1036f87
push eax
push 0x3e8
push dword [ebp + 8]
call edi
push eax
call ebx
push 0
push 0x3ef
push dword [ebp + 8]
call edi
push eax
call ebx
push 0
push 0x452
push dword [ebp + 8]
call edi
push eax
call ebx
call fcn.01018710
neg eax
sbb eax, eax
inc eax
push eax
push 0x451
push dword [ebp + 8]
call esi
call fcn.01017f5b
neg eax
sbb eax, eax
inc eax
push eax
push 0x451
push dword [ebp + 8]
call edi
push eax
call ebx
push 0x40000056
call dword [sym.imp.SHELL32.dll_SHRestricted]
test eax, eax
je 0x1036fd8
push 0
push 0x450
push dword [ebp + 8]
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x1036ffc
push 1
push 0
push 0x101196c
push 0x100c568
call dword [sym.imp.SHLWAPI.dll_SHRegGetBoolUSValueW]
test eax, eax
je 0x1036ffc
push 1
push 0x450
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call fcn.01034d02
push dword [ebp + 8]
call fcn.01036418
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1037018
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push edi
push 0x44d
push dword [ebp + 8]
call esi
mov edi, 0x10460d0
push eax
mov ecx, edi
call fcn.0102d9a8
mov ebx, 0x44e
push ebx
push dword [ebp + 8]
call esi
push eax
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.010308ff
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
push eax
mov ecx, edi
call fcn.01033ecd
mov eax, dword [ebp - 4]
shr eax, 0x10
test ax, ax
jne 0x103708f
xor eax, eax
cmp dword [ebp - 8], eax
je 0x1037091
test byte [ebp - 0x14], 1
jne 0x1037091
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CheckDlgButton]
push dword [ebp + 8]
call fcn.01036418
xor eax, eax
cmp word [ebp - 4], ax
je 0x10370a2
push eax
push eax
push eax
push eax
mov ecx, edi
call fcn.01002250
push 0x44f
push dword [ebp + 8]
call esi
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x28], ebx
jne 0x10370da
cmp dword [ebp - 0x20], 0
jne 0x10370da
push 0x3e8
push dword [ebp + 8]
call esi
cmp dword [ebp - 0x1c], eax
je 0x10370da
push eax
mov dword [ebp - 0x1c], eax
call fcn.01034bd5
push 0x453
push dword [ebp + 8]
call esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
push eax
mov ecx, edi
call fcn.01033f38
push ebx
push 0
push 0x402
push dword [0x1046474]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, edi
call fcn.0100a5e8
push 0x451
push dword [ebp + 8]
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_SHRegSetUSValueW]
neg eax
sbb eax, eax
push 2
inc eax
push 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 4
push 0x1018734
mov ebx, 0x100c568
push ebx
call edi
push 0x450
push dword [ebp + 8]
call esi
push 2
push 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 4
push 0x101196c
push ebx
call edi
push 0
push 0x3e8
push 8
push 0x101c250
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x103846e
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
cmp dword [ebp + 0xc], esi
mov dword [ebp + 8], eax
je 0x10384a1
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 0x10384a1
xor eax, eax
jmp 0x10384cd
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 0x10384bd
xor edi, edi
inc edi
cmp dword [ebp + 0xc], esi
je 0x10384cb
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x1038637
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x1046080]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1038703
push 0x1038710
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1038703
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
xor eax, eax
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x260]
push ecx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x234], eax
mov word [ebp - 0x22e], ax
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x20c]
push eax
push eax
mov dword [ebp - 0x260], 0x44
mov word [ebp - 0x230], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1038703
push esi
push dword [ebp - 0x21c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x218]
call esi
pop esi
mov ecx, dword [ebp - 4]
call fcn.01001b2f
leave
ret
Function at 0x103885a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x728
mov eax, dword [0x1046080]
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x1038a40
lea eax, [ebp - 0x30c]
push 0x80
xor esi, esi
push eax
mov dword [ebp - 0x728], esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
push esi
lea eax, [ebp - 0x724]
push eax
push esi
push 0x20019
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.SHLWAPI.dll_SHRegOpenUSKeyW]
test eax, eax
jne 0x10389d9
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_SHRegQueryUSValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x720]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1038a20
push dword [ebp - 0x724]
mov dword [ebp - 0x720], 0x208
mov word [ebp - 0x20c], si
call ebx
test eax, eax
je 0x10389ab
push edi
push esi
push esi
push esi
lea eax, [ebp - 0x720]
push eax
lea eax, [ebp - 0x514]
push eax
push esi
push 0x1038a08
push dword [ebp - 0x724]
mov edi, 0x104
mov dword [ebp - 0x720], edi
call ebx
test eax, eax
mov dword [ebp - 0x720], edi
lea eax, [ebp - 0x720]
jne 0x1038959
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x514]
push eax
push 2
push 0x40
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
jmp 0x10389aa
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x514]
push eax
push esi
push 0x10389ec
push dword [ebp - 0x724]
call ebx
test eax, eax
jne 0x10389aa
push edi
lea eax, [ebp - 0x71c]
push eax
lea eax, [ebp - 0x514]
push eax
call dword [sym.imp.SHLWAPI.dll_SHUnicodeToUnicode]
lea eax, [ebp - 0x71c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHRunIndirectRegClientCommand]
mov word [ebp - 0x20c], si
mov dword [ebp - 0x728], 1
pop edi
cmp word [ebp - 0x20c], si
pop ebx
je 0x10389cd
push 9
lea eax, [ebp - 0x20c]
push eax
call fcn.01015676
mov dword [ebp - 0x728], 1
push dword [ebp - 0x724]
call dword [sym.imp.SHLWAPI.dll_SHRegCloseUSKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x728]
pop esi
call fcn.01001b2f
leave
ret 4
Function at 0x103a3ce
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp + 0xc]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call esi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x103a42f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], 4
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x103a426
cmp dword [ebp - 0xc], 4
je 0x103a426
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0xc]
push eax
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x103a472
push 4
pop esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], esi
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x103a469
cmp dword [ebp - 0xc], esi
je 0x103a469
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x103a481
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1046080]
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
lea edx, [ebp - 0x10c]
push edx
push 1
xor esi, esi
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x103a4f7
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push edi
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10c]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
call fcn.01001b2f
leave
ret 0xc

Function at 0x103a6bb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x100c568
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x103a70d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x1019400
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret
Function at 0x103a717
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x104766c]
cmp eax, 0xffffffff
jne 0x103a79b
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x103a7ac
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x103a78a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x103a7a0
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x103a781
cmp dword [ebp - 0xc], 4
jne 0x103a781
cmp dword [ebp - 0x10], eax
je 0x103a781
mov dword [0x104766c], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x104766c]
cmp eax, 0xffffffff
jne 0x103a79b
xor eax, eax
mov dword [0x104766c], eax
leave
ret

Function at 0x103afd5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x1046080]
mov dword [ebp - 4], eax
mov eax, ecx
cmp dword [eax], 0x10
mov ecx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x440], ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x44c], ecx
jae 0x103b14b
mov ebx, 0x104
jmp 0x103b01b
mov eax, dword [ebp - 0x444]
mov esi, dword [eax]
lea ecx, [esi + 1]
mov dword [eax], ecx
mov eax, dword [ebp - 0x440]
lea edi, [eax + esi*4 + 4]
push 0x103b200
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_StrCmpCW]
test eax, eax
je 0x103b13c
cmp esi, 0x10
jae 0x103b0b3
push 0x103b1d0
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpCW]
test eax, eax
jne 0x103b0b3
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x448]
push eax
push 0x103b1c0
push 0x103b170
push 0x80000002
mov dword [ebp - 0x450], 0x28
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x103b0b3
cmp dword [ebp - 0x448], 1
jne 0x103b0b3
push 0x103b160
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpICW]
test eax, eax
je 0x103b13c
mov eax, dword [ebp - 0x440]
mov eax, dword [eax]
test eax, eax
je 0x103b102
push ebx
lea ecx, [ebp - 0x43c]
push ecx
add eax, esi
push eax
push dword [0x1046734]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x103b13c
push ebx
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_460]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov esi, eax
test esi, esi
jne 0x103b125
push ebx
lea eax, [ebp - 0x234]
push eax
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_Ordinal_460]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov esi, eax
test esi, esi
je 0x103b13c
mov ecx, dword [ebp - 0x44c]
push esi
call fcn.0103ae17
test eax, eax
je 0x103b14f
push esi
call dword [sym.imp.SHELL32.dll_ILFree]
mov eax, dword [ebp - 0x444]
cmp dword [eax], 0x10
jb 0x103b015
xor eax, eax
jmp 0x103b151
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01001b2f
leave
ret 8
Function at 0x103b287
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
call fcn.01007183
push 0x103b4f4
push dword [0x1046c24]
mov dword [ebp - 0xc], eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push 0x101362c
push 0x10263f0
push dword [0x1046c24]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x103b2cc
call fcn.0103467c
push edi
lea ecx, [ebp - 0x1c]
call fcn.0103ad5f
xor eax, eax
mov dword [ebp - 0x4c], ebx
lea edi, [ebp - 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea ecx, [ebp - 8]
stosd dword es:[edi], eax
call fcn.0103ae6c
push 3
pop esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 8]
call fcn.0103aefd
mov dword [ebp + esi*4 - 0x4c], eax
inc esi
cmp esi, 6
jb 0x103b2ed
cmp dword [ebp - 4], ebx
je 0x103b311
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.SHLWAPI.dll_IsOS]
push 0x26
call esi
test eax, eax
je 0x103b328
mov dword [ebp + 8], 0x103b4b0
jmp 0x103b348
push 0x1d
call esi
test eax, eax
je 0x103b341
push 0x22
call esi
test eax, eax
je 0x103b36d
mov dword [ebp + 8], 0x103b468
jmp 0x103b348
mov dword [ebp + 8], 0x103b420
mov dword [ebp - 4], ebx
lea edi, [ebp + ebx*4 - 0x4c]
cmp dword [edi], 0
jne 0x103b365
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.0103afd5
mov dword [edi], eax
inc ebx
cmp ebx, 6
jb 0x103b34b
xor ebx, ebx
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], 3
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push ebx
push 0x40000000
lea eax, [ebp - 0x24]
push eax
call fcn.01007c64
push 0x26
call esi
neg eax
sbb eax, eax
and eax, 0x28
add eax, 0xe
xor edi, edi
lea esi, [eax + 5]
mov eax, dword [ebp + edi*4 - 0x4c]
cmp eax, ebx
je 0x103b3e8
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp + 8]
push ecx
push 0x10086b0
push eax
mov dword [ebp - 0x2c], esi
call fcn.0100c853
test eax, eax
jl 0x103b3e8
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push 0x12
push 0x1008060
call fcn.0102839e
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc edi
dec esi
cmp edi, 6
jb 0x103b3a7
xor esi, esi
pop edi
push dword [ebp + esi*4 - 0x4c]
call dword [sym.imp.SHELL32.dll_ILFree]
inc esi
cmp esi, 6
jb 0x103b3f2
lea ecx, [ebp - 0x1c]
call fcn.0103adf3
cmp dword [ebp - 0xc], ebx
pop esi
pop ebx
jl 0x103b417
call dword [sym.imp.ole32.dll_CoUninitialize]
leave
ret 4
Function at 0x103bb24
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x7c], ebx
jne 0x103bb8d
cmp dword [esi + 0x74], ebx
je 0x103bb8d
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x103bb8d
push edi
xor edi, edi
inc edi
push edi
push ebx
push 0x101031c
push 0x100c568
call dword [sym.imp.SHLWAPI.dll_SHRegGetBoolUSValueW]
test eax, eax
je 0x103bb8c
dec dword [esi + 0x74]
push 3
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [esi + 0x7c], edi
mov esi, dword [esi + 0x24]
push 0x4e
push esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0xd1
mov dword [ebp - 4], edi
call dword [sym.imp.SHLWAPI.dll_Ordinal_178]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x103bb96
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ecx + 0x74], 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 2
push 8
lea eax, [ebp - 8]
push eax
push 3
push 0x10273e8
push 0x1011088
call dword [sym.imp.SHLWAPI.dll_SHRegSetUSValueW]
leave
ret
Function at 0x103ca6d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov esi, ecx
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x48]
xor ebx, ebx
cmp eax, ebx
je 0x103ca96
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push 1
push ebx
push eax
call dword [ecx + 0x24]
push ebx
push ebx
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x10273e8
push 0x1011088
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp + 8], 8
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
add edi, 0xc
push edi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jge 0x103cadf
mov ecx, esi
mov dword [esi + 0x74], 3
call fcn.0103bb24
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 4

Function at 0x103e319
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
lea eax, [ebp + 8]
push eax
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jl 0x103e378
push edi
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x30], 0x100ba28
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ILFree]
pop edi
leave
ret 4

Function at 0x103fba1
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp word [eax + 0xc], 0x71
push edi
mov edi, ecx
jne 0x103fbef
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
test ax, ax
jl 0x103fbee
push 0x11
call esi
test ax, ax
jl 0x103fbee
push 0x12
call esi
test ax, ax
jl 0x103fbee
test byte [edi + 0x48], 8
je 0x103fbee
mov ecx, edi
call fcn.0103f147
test eax, eax
jl 0x103fbee
push eax
mov ecx, edi
call fcn.0103f63d
pop esi
xor eax, eax
pop edi
pop ebp
ret 4
Function at 0x401681
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp dword [ebp + 0x1c], 0
je 0x4016b0
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x401728
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s_s
lea edx, [ebp - 0x100]
push edx
call fcn.0041ad90
add esp, 0x10
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x100]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0
jne 0x401702
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.0041aca0
add esp, 8
jmp 0x401728
mov edx, dword [ebp - 0x104]
cmp edx, dword [ebp + 0x18]
jne 0x40171c
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 0x104]
mov byte [eax - 1], 0
jmp 0x401728
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp - 0x104]
mov byte [ecx], 0
mov esp, ebp
pop ebp
ret

Function at 0x40172c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0x14], 0
je 0x401750
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
jmp 0x40178d
mov ecx, dword [ebp + 0x10]
push ecx
push 0x428280
lea edx, [ebp - 0x20]
push edx
call fcn.0041ad90
add esp, 0xc
push 0
push 0x10
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401681
add esp, 0x18
lea ecx, [ebp - 0x10]
push ecx
call fcn.0041ae6d
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x4017c7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0041af7a
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4017f4
push 0xe3
call fcn.00416e5e
add esp, 4
push 1
call fcn.0041aea5
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4017fb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jne 0x401816
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041af7a
add esp, 4
mov dword [ebp - 4], eax
jmp 0x401829
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041afee
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401843
push 0xe3
call fcn.00416e5e
add esp, 4
push 1
call fcn.0041aea5
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x401870
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push 0x107
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x428284
lea ecx, [ebp - 0x108]
push ecx
call fcn.0041acb0
add esp, 8
lea edx, [ebp - 0x248]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0xffffffff
je 0x4018f9
push 0x140
lea ecx, [ebp - 0x248]
push ecx
call dword [ebp + 8]
add esp, 8
lea edx, [ebp - 0x248]
push edx
mov eax, dword [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4018c2
mov ecx, dword [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [0x429838], 0
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
je 0x401934
push str.GetSystemPowerStatus
mov edx, dword [ebp - 0x24c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x429838], eax
mov esp, ebp
pop ebp
ret