joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406503
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x7a7], 0x55
mov byte [ebp - 0x7a6], 0x56
mov byte [ebp - 0x7a5], 0x7e
mov byte [ebp - 0x7a4], 0x21
mov byte [ebp - 0x7a3], 0x20
mov byte [ebp - 0x7a2], 0x3c
mov byte [ebp - 0x7a1], 0x76
invalid
invalid

Function at 0x406b22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x45fdec], 0
push esi
jne 0x406b59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b33
mov dword [ecx*4 + 0x45fde8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x45fde8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc
Function at 0x100670e
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x101033c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x3a
mov word [ebp - 0x7c], ax
xor edi, edi
lea eax, [ebp - 0x7a]
push edi
push eax
mov ebx, ecx
call sub.msvcrt.dll_memset
xor eax, eax
push 0x3a
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push edi
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], edi
mov eax, dword [ecx]
add esp, 0x18
call dword [eax + 0xa0]
mov dword [ebp - 0x80], eax
push 0x1e
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x88]
push eax
push 0xb0
push dword [ebp - 0x80]
call esi
xor eax, eax
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x84], eax
cmp word [ebp - 0x7c], di
je 0x1006803
jmp 0x10067b1
mov eax, dword [ebp - 0x84]
cmp eax, 0x1e
jge 0x1006803
cmp eax, 5
je 0x10067ca
cmp eax, 0xb
je 0x10067ca
cmp eax, 0x11
je 0x10067ca
cmp eax, 0x17
jne 0x10067d9
push 0x2d
pop ecx
mov word [ebp + eax*2 - 0x40], cx
inc eax
mov dword [ebp - 0x84], eax
movzx eax, word [edx]
push eax
mov ecx, ebx
call fcn.010066d9
test eax, eax
je 0x10067fc
movzx eax, word [edx]
mov ecx, dword [ebp - 0x84]
inc dword [ebp - 0x84]
mov word [ebp + ecx*2 - 0x40], ax
inc edx
inc edx
cmp word [edx], di
jne 0x10067ab
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, 0xb1
test eax, eax
je 0x1006866
push 0xffffffffffffffff
push 0
push edi
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x40]
push eax
push 0
push 0xc2
push dword [ebp - 0x80]
call esi
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x8c]
jne 0x1006866
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [ebp - 0x88], eax
jge 0x1006866
push dword [ebp - 0x8c]
push dword [ebp - 0x88]
push edi
push dword [ebp - 0x80]
call esi
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebx + 8]
cmp eax, 0x1d
jne 0x1006896
push 1
call dword [sym.imp.DUI70.dll_public:_long_int___thiscall_DirectUI::Element::SetEnabled_bool_]
cmp dword [ebx + 0x18], 0
je 0x100689e
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
push dword [ebp - 0x80]
call esi
and dword [ebx + 0x18], 0
jmp 0x100689e
push 0
call dword [sym.imp.DUI70.dll_public:_long_int___thiscall_DirectUI::Element::SetEnabled_bool_]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0100a9f1
leave
ret
Function at 0x10075bb
Capabilities:
Get geographical location
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x101033c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x224], eax
xor eax, eax
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xa
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push eax
push 0x5c
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x10076e1
mov esi, 0x104
push esi
lea eax, [ebp - 0x220]
push eax
mov ebx, 0x10023f4
push ebx
call edi
test eax, eax
je 0x100767e
push 0x10023b4
push esi
lea eax, [ebp - 0x220]
push eax
call fcn.01007519
test eax, eax
jl 0x100767e
push 0x10104c8
push 0x1010448
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x224]
call fcn.01005e54
add esp, 0x18
test eax, eax
jl 0x100767e
lea eax, [ebp - 0x248]
push eax
push 0
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x10076f1
push esi
lea eax, [ebp - 0x220]
push eax
push ebx
call edi
test eax, eax
je 0x10076e1
push 0x1002368
push esi
lea eax, [ebp - 0x220]
push eax
call fcn.01007519
test eax, eax
jl 0x10076e1
push 0x10104c8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x224]
call fcn.01005e54
add esp, 0x14
test eax, eax
jl 0x10076e1
lea eax, [ebp - 0x248]
push eax
push 0
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x10076f1
push dword [ebp + 0xc]
push dword [ebp - 0x224]
push 0x1002320
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100a9f1
leave
ret 8

Function at 0x100807c
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1002760
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, edi
jne 0x10080e7
mov esi, 0x10026f0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push 2
push edi
push 0x10026a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1002610
push edi
call fcn.0100c72e
pop ecx
pop ecx
xor eax, eax
jmp 0x1008107
push 0x10025c0
push 2
call fcn.0100c72e
cmp esi, edi
pop ecx
pop ecx
jle 0x1008105
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x1008e2b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101033c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [0x1010444], 0
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x1002bb0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1008ec8
push 0x1002b9c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1008ea9
call eax
test eax, eax
jne 0x1008e99
mov dword [0x1010444], 1
push 0x1002b50
jmp 0x1008e9e
push 0x1002b08
push 0
call fcn.0100c72e
pop ecx
pop ecx
jmp 0x1008ebf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002a88
push 2
call fcn.0100c72e
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1008ede
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002a20
push 2
call fcn.0100c72e
add esp, 0xc
xor eax, eax
cmp dword [0x1010444], eax
setne al
push eax
push 0x14d2
call fcn.0100c644
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0100a9f1
leave
ret

Function at 0x1008fcc
Capabilities:
Create process on windows
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x101033c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01005e54
mov esi, eax
add esp, 0x10
test esi, esi
jge 0x100901f
push esi
push 0x1002e00
push 2
call fcn.0100c72e
add esp, 0xc
jmp 0x10090a0
lea eax, [ebp - 0x20c]
push eax
push 0x1002dc0
push 0
call fcn.0100c72e
push 0x3c
lea eax, [ebp - 0x248]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x238], eax
add esp, 0x18
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x248], 0x3c
mov dword [ebp - 0x23c], 0x1002850
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x10090a0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push 0x1002d48
push 2
call fcn.0100c72e
add esp, 0xc
call esi
test eax, eax
jle 0x100909e
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0100a9f1
leave
ret 4
Function at 0x100a9d6
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x100cbe8
call fcn.0100abc4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x1010c94
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x100a78d
cmp eax, esi
jne 0x100a780
xor esi, esi
inc esi
mov ebx, esi
jmp 0x100a790
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100a767
xor esi, esi
inc esi
mov eax, dword [0x1010c90]
cmp eax, esi
jne 0x100a7a3
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100a7d2
mov eax, dword [0x1010c90]
test eax, eax
jne 0x100a7cc
mov dword [0x1010c90], esi
push 0x10014a4
push 0x1001498
call fcn.0100a6cc
pop ecx
pop ecx
test eax, eax
je 0x100a7d2
jmp 0x100a8fa
mov dword [0x101093c], esi
mov eax, dword [0x1010c90]
cmp eax, esi
jne 0x100a7f6
push 0x1001494
push 0x100148c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1010c90], 2
test ebx, ebx
jne 0x100a802
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1010c98], 0
je 0x100a826
push 0x1010c98
call fcn.0100ab39
pop ecx
test eax, eax
je 0x100a826
push 0
push 2
push 0
call dword [0x1010c98]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x100a882
test al, al
je 0x100a840
cmp dword [ebp - 0x1c], 0
jne 0x100a882
mov al, byte [esi]
test al, al
je 0x100a850
cmp al, 0x20
ja 0x100a850
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100a840
test byte [ebp - 0x3c], 1
je 0x100a85c
movzx eax, word [ebp - 0x38]
jmp 0x100a85f
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1010938], eax
cmp dword [0x101092c], 0
jne 0x100a8d6
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x100a891
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x100a8a4
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x100a82d
cmp dword [0x101093c], 0
jne 0x100a8e5
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1010938]
jmp 0x100a906
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0100ac09
ret
call fcn.0100ad11
jmp 0x100a72d
Function at 0x100b3e7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], 0x80000001
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
jne 0x100b409
mov dword [ebp - 0xc], edi
lea eax, [ebp - 8]
push eax
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0100b28e
mov esi, eax
cmp esi, edi
mov dword [ebp + 0xc], esi
jl 0x100b4c2
mov dword [ebp + 8], edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
call fcn.0100aea5
test eax, eax
je 0x100b4bf
cmp dword [ebp - 4], edi
jne 0x100b47f
cmp dword [ebp + 8], edi
jbe 0x100b4b8
push dword [ebp + 8]
call fcn.0100af0b
lea ecx, [ebp - 4]
mov esi, eax
call fcn.0100b1b3
cmp esi, edi
je 0x100b475
mov dword [ebp - 4], esi
jmp 0x100b42a
mov dword [ebp - 4], edi
mov esi, 0x8007000e
jmp 0x100b4c2
cmp dword [ebp - 0x10], 4
je 0x100b48c
mov esi, 0x8007000d
jmp 0x100b4c2
mov ebx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push ebx
push dword [ebp - 4]
call fcn.0100afdf
mov esi, eax
cmp esi, edi
jl 0x100b4c2
cmp dword [ebp + 0xc], edi
je 0x100b4ad
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x100b4c2
mov dword [eax], ebx
jmp 0x100b4c2
mov esi, 0x8000ffff
jmp 0x100b4c2
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 4]
call fcn.0100b1b3
lea ecx, [ebp - 0xc]
call fcn.0100b0a7
lea ecx, [ebp - 8]
call fcn.0100b0a7
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14
Function at 0x100b956
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x101033c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x128], 1
cmp esi, ebx
jne 0x100b99a
mov edi, 0x80070057
jmp 0x100ba9f
cmp eax, ebx
je 0x100b990
lea eax, [ebp - 0x12c]
push eax
lea eax, [esi + 0x478]
push eax
call fcn.0100b8ff
mov edi, eax
cmp edi, ebx
jl 0x100ba9f
cmp dword [ebp - 0x12c], ebx
je 0x100ba4e
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x100b9f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100af2b
mov edi, eax
jmp 0x100ba9f
cmp dword [ebp - 0x11c], 6
jb 0x100ba8b
push 0x10036e4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0x124]
mov edi, eax
call fcn.0100b0c3
cmp edi, ebx
jne 0x100ba26
mov dword [ebp - 0x124], ebx
jmp 0x100b9e2
push 0x100394c
push edi
mov dword [ebp - 0x124], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x100b9e2
lea ecx, [ebp - 0x128]
push ecx
push esi
call eax
mov edi, eax
cmp edi, ebx
jl 0x100ba9f
jmp 0x100ba91
cmp byte [esi + 0x320], bl
je 0x100ba91
push ebx
lea eax, [ebp - 0x12c]
push eax
push 0x1003894
push 0x1003828
push 0x80000002
call fcn.0100b3e7
cmp eax, ebx
jge 0x100ba82
cmp eax, 0x80070002
je 0x100ba91
jmp 0x100b9ee
cmp dword [ebp - 0x12c], 1
jne 0x100ba91
mov dword [ebp - 0x128], ebx
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x128]
mov dword [eax], ecx
lea ecx, [ebp - 0x124]
call fcn.0100b0c3
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100a9f1
leave
ret 8

Function at 0x100c337
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1003a38
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100c3a4
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 1
push edi
push 0x1003480
push dword [ebp - 4]
call esi
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push edi
push 0x1003a00
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
leave
ret 8

Function at 0x100c3ae
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push 0x1003a38
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100c3f8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x1003480
push dword [ebp - 4]
call esi
push 0x1003a00
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x100c3ff
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x1003a38
push 0x80000001
mov ebx, 0x80004005
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100c480
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1003480
push dword [ebp - 8]
call esi
test eax, eax
jne 0x100c476
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1003a00
push dword [ebp - 8]
mov dword [ebp - 4], 4
call esi
xor ebx, ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x100c529
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov ebx, 0x20019
push ebx
push 0
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorerWAU
push edi
push 0x80000002
call esi
test eax, eax
jne 0x100c587
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.Disabled
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]
cmp dword [ebp - 8], 0
je 0x100c5a0
push 0x1003cd0
push 2
call fcn.0100c72e
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x100c5ee
lea eax, [ebp - 4]
push eax
push ebx
push 0
push edi
push 0x80000001
call esi
test eax, eax
jne 0x100c5df
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.Disabled
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]
cmp dword [ebp - 8], 0
je 0x100c5ec
push 0x1003c80
jmp 0x100c592
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100c72e
Capabilities:
Create directory
Query environment variable
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xab0
mov eax, dword [0x101033c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x1003e3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 8], 1
mov dword [ebp - 0xaa0], eax
jne 0x100c764
mov esi, 0x1003e2c
jmp 0x100c76f
cmp dword [ebp + 8], 2
jne 0x100c76f
mov esi, 0x1003e20
lea eax, [ebp - 0xab0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xaa4]
push esi
push eax
movzx eax, word [ebp - 0xaa6]
push eax
movzx eax, word [ebp - 0xaa8]
push eax
movzx eax, word [ebp - 0xaaa]
push eax
movzx eax, word [ebp - 0xaae]
push eax
movzx eax, word [ebp - 0xab0]
push eax
push 0x1003db0
lea eax, [ebp - 0xa4]
push 0x50
push eax
call fcn.01005e54
add esp, 0x28
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
mov ebx, 0x1f4
push ebx
lea eax, [ebp - 0xa94]
push eax
call fcn.0100b00b
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x105
lea eax, [ebp - 0x4a4]
push eax
push 0x1003ec8
call edi
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push 6
lea eax, [ebp - 0x4a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xa98], eax
cmp eax, 0xffffffff
jne 0x100c866
push 0x104
lea eax, [ebp - 0x6ac]
push eax
push 0x1003e50
call edi
push esi
lea eax, [ebp - 0x6ac]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push 0x80
push 4
push esi
push 1
push 6
lea eax, [ebp - 0x4a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xa98], eax
cmp eax, 0xffffffff
je 0x100c928
push 2
push esi
push esi
push dword [ebp - 0xa98]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100c91c
push esi
push esi
push ebx
lea eax, [ebp - 0x298]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xa4]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
lea eax, [ebp - 0xa9c]
push eax
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0xa98]
call edi
push esi
push esi
push ebx
lea eax, [ebp - 0x298]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xa94]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
lea eax, [ebp - 0xa9c]
push eax
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0xa98]
call edi
push esi
lea eax, [ebp - 0xa9c]
push eax
push 2
push 0x1003e48
push dword [ebp - 0xa98]
call edi
push dword [ebp - 0xa98]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xaa0]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100a9f1
leave
ret
Function at 0x100ca41
Capabilities:
Delete registry value
Find taskbar
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x100ca97
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push 0x1004248
push 2
call fcn.0100c72e
add esp, 0xc
call esi
test eax, eax
jle 0x100cb5e
and eax, 0xffff
or eax, 0x80070000
jmp 0x100cb5e
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x10041d0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, edi
je 0x100cae2
push esi
push 0x1004160
push 2
call fcn.0100c72e
add esp, 0xc
cmp esi, edi
jle 0x100cade
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x100cb5d
mov eax, 0x100413c
cmp dword [ebp + 8], edi
jne 0x100caf1
mov eax, 0x1004120
push 8
lea ecx, [ebp - 0xc]
push ecx
push 3
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp + 8], edi
jne 0x100cb52
push 0x1004104
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x1004100
push 0x10040e4
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, edi
je 0x100cb3c
push edi
push 1
push 0x503
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x100cb52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1004098
push 2
call fcn.0100c72e
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
leave
ret 4