joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10051cff
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x100a5688]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
mov edi, dword [esp + 0x3c]
push 0xf0000000
xor esi, esi
inc esi
push esi
push 0
push 0
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x2c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10051de0
push 0x14
lea eax, [esp + 0x20]
push 0
push eax
call fcn.10059510
lea eax, [esp + 0x34]
push eax
push ebp
mov word [esp + 0x30], 0x208
mov dword [esp + 0x34], 0x6601
mov dword [esp + 0x38], 8
call fcn.10051df3
lea eax, [esp + 0x3c]
push 8
push eax
call fcn.10054c4a
add esp, 0x1c
lea eax, [esp + 0x10]
push eax
xor ebp, ebp
push ebp
push ebp
push 0x14
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x10051da6
mov esi, ebp
jmp 0x10051dd3
push 8
push ebx
push edi
call fcn.10058e40
add esp, 0xc
lea eax, [esp + 0x18]
push dword [esp + 0x18]
push eax
push edi
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ebp
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005ae75
add esp, 0x24
ret

Function at 0x10052ff6
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x10053027
push 0x2e
push edi
call fcn.1005c2c0
pop ecx
pop ecx
test eax, eax
je 0x10053025
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret
Function at 0x10055e58
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push ecx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x100a5340]
mov edi, eax
pop ecx
test edi, edi
je 0x10055f40
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
push ebx
add eax, ecx
push ebp
mov ebp, dword [esp + 0x24]
mov dword [edi + 8], eax
cmp ebp, dword [esi + 0x10]
jbe 0x10055ec0
push ecx
call dword [esi]
push ebp
push dword [esp + 0x28]
push dword [edi + 4]
call dword [esi + 4]
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [esp + 0x24], eax
push eax
call dword [esi + 8]
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x10055ec8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push dword [edi + 4]
call dword [esi]
push dword [edi + 8]
call dword [esi]
pop ecx
xor ebx, ebx
pop ecx
test ebp, ebp
je 0x10055f37
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x14], ebp
mov al, byte [ebx]
xor al, 0x36
mov byte [esp + 0x1c], al
push 1
lea eax, [esp + 0x20]
push eax
push dword [edi + 4]
call dword [esi + 4]
mov al, byte [ebx]
xor al, 0x5c
mov byte [esp + 0x28], al
push 1
lea eax, [esp + 0x2c]
push eax
push dword [edi + 8]
inc ebx
call dword [esi + 4]
add esp, 0x18
dec ebp
jne 0x10055ee2
mov ebx, dword [esp + 0x14]
jmp 0x10055f37
push 1
push 0x10097b2f
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x10097b30
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x10055f19
pop ebp
mov eax, edi
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret
Function at 0x1006ed7a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100a5688]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.100607c7
mov dword [ebp - 0x14], eax
cmp dword [0x100a8598], edi
jne 0x1006ee6b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x1006edf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1006ef4b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1006ef4b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1006ef4b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x100a8598], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x100a859c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x100a85a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100a85a8], eax
test eax, eax
je 0x1006ee68
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100a85a4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1006ee90
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1006ee83
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x1006eea5
push 4
pop eax
jmp 0x1006ef4d
cmp dword [ebp - 0x14], edi
je 0x1006eea5
push dword [0x100a8598]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1006ee8a
mov eax, dword [0x100a85a4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x1006ef03
cmp dword [0x100a85a8], esi
je 0x1006ef03
push eax
call ebx
push dword [0x100a85a8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1006ef03
test eax, eax
je 0x1006ef03
call ecx
test eax, eax
je 0x1006eef8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1006eef8
test byte [ebp - 8], 1
jne 0x1006ef03
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x1006ef33
mov eax, dword [0x100a859c]
cmp eax, esi
je 0x1006ef30
push eax
call ebx
test eax, eax
je 0x1006ef30
call eax
mov edi, eax
test edi, edi
je 0x1006ef30
mov eax, dword [0x100a85a0]
cmp eax, esi
je 0x1006ef30
push eax
call ebx
test eax, eax
je 0x1006ef30
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x100a8598]
call ebx
test eax, eax
je 0x1006ef4b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x1006ef4d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005ae75
leave
ret
Function at 0x100712b6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1006358e
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x100712ee
xor eax, eax
jmp 0x1007131a
cmp esi, dword [ebp - 4]
je 0x10071317
cmp dword [ebp + 0xc], 0
je 0x10071317
push dword [edi + 0x9c]
call fcn.10070ec4
push dword [edi + 0x9c]
mov esi, eax
call fcn.1005a00e
pop ecx
pop ecx
cmp esi, eax
je 0x100712ea
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x10082760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087b08
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100a5688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1009e38a
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
call fcn.10003f00
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], 0x4c7a6f6d
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x14], 0x30347a
lea eax, [esi + 1]
push eax
call fcn.10056012
mov edi, eax
mov byte [edi + esi], 0
push dword [ebp + 8]
push 0x1009e300
push edi
call fcn.1005a48c
mov ecx, esi
call fcn.1000bfb0
add eax, 0xc
push eax
call fcn.1005b532
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10082802
test edi, edi
je 0x100828b2
push edi
call fcn.1005aa81
add esp, 4
xor bl, bl
jmp 0x100828ef
movq xmm0, qword [ebp - 0x18]
movq qword [ebx], xmm0
mov edx, 8
xor ecx, ecx
mov eax, esi
shr eax, cl
inc edx
add ecx, 8
mov byte [edx + ebx - 1], al
cmp edx, 0xc
jb 0x10082812
push esi
add edx, ebx
mov ecx, edi
call fcn.1000c460
add esp, 4
test eax, eax
jne 0x10082851
push ebx
call fcn.1005aa81
add esp, 4
test edi, edi
je 0x100828b2
push edi
call fcn.1005aa81
add esp, 4
xor bl, bl
jmp 0x100828ef
add eax, 0xc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax - 0xc]
lea eax, [esi + 1]
push eax
call fcn.10056012
mov byte [eax + esi], 0
push dword [ebp + 0xc]
mov esi, eax
push 0x1009e300
push esi
call fcn.1005a48c
push 0x1009f4b4
push esi
call fcn.1005c10b
add esp, 0x18
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x100828b6
push ebx
call fcn.1005aa81
add esp, 4
test edi, edi
je 0x100828a5
push edi
call fcn.1005aa81
add esp, 4
test esi, esi
je 0x100828b2
push esi
call fcn.1005aa81
add esp, 4
xor bl, bl
jmp 0x100828ef
push eax
push dword [ebp - 0x14]
push 1
push ebx
call fcn.1005d86a
push dword [ebp - 0x10]
call fcn.1005be91
push ebx
call fcn.1005aa81
add esp, 0x18
test edi, edi
je 0x100828e0
push edi
call fcn.1005aa81
add esp, 4
test esi, esi
je 0x100828ed
push esi
call fcn.1005aa81
add esp, 4
mov bl, 1
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10082912
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10082932
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 0xc]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x10082953
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100865e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087ca0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100a5688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x24], ebx
push 0x1009e2fc
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x28], 0
call fcn.10003f00
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.10086050
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x20]
cmp dword [esi - 0xc], 0
je 0x100866dc
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov edi, eax
test edi, edi
je 0x100866dc
push edi
call fcn.10056012
add esp, 4
mov ebx, eax
push ebx
push edi
push dword [ebp - 0x14]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x100866d0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x1009e468
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x100866d0
cmp dword [ebp - 0x18], 0
je 0x100866d0
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 0xfeef04bd
jne 0x100866d0
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x10]
push str._d._d._d._d
push eax
call fcn.10004b70
add esp, 0x18
push ebx
call fcn.1005aa81
mov ebx, dword [ebp - 0x24]
add esp, 4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.10004f20
add eax, 0x10
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov dword [ebx], eax
mov eax, esi
lea ecx, [edx + 0xc]
mov byte [ebp - 4], 0
add esp, 4
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10086710
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x10086731
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10086750
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087ac3
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x100a5688]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], 0
je 0x10086797
call fcn.10086980
jmp 0x10086937
push dword [ebp + 8]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
call edi
test eax, eax
je 0x10086937
push 0x103
lea eax, [ebp - 0x147]
push 0
push eax
mov byte [ebp - 0x148], 0
call fcn.10059510
add esp, 0xc
lea eax, [ebp - 0x148]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push dword [esi + 0x974]
lea ebx, [esi + 0x974]
lea eax, [esi + 0x20]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24c]
push eax
mov dword [ebp - 0x17], 0x697078
mov dword [ebp - 0x20], 0x255c7325
mov dword [ebp - 0x1c], 0x73255c73
mov byte [ebp - 0x18], 0x2e
call fcn.1000a8d0
add esp, 0x14
lea eax, [ebp - 0x24c]
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x24c]
push eax
call edi
test eax, eax
je 0x10086937
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x250]
mov word [ebp - 0x32], 0x7269
mov dword [ebp - 0x2b], 0x65747865
mov dword [ebp - 0x37], 0x5c616c6c
mov word [ebp - 0x3c], 0x4d5c
mov word [ebp - 0x39], 0x697a
mov dword [ebp - 0x24], 0x736e6f
mov word [ebp - 0x26], 0x6973
mov byte [ebp - 0x33], 0x46
mov dword [ebp - 0x40], 0x65726177
mov dword [ebp - 0x30], 0x786f4665
mov byte [ebp - 0x3a], 0x6f
mov dword [ebp - 0x44], 0x74666f53
mov byte [ebp - 0x2c], 0x5c
mov byte [ebp - 0x27], 0x6e
call fcn.10003f00
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x978]
mov edi, 1
mov ecx, edi
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x100868d1
push 0x104
lea ecx, [esi + 0x978]
call fcn.10005090
mov eax, dword [ebp - 0x250]
mov esi, dword [esi + 0x978]
mov ecx, dword [eax - 8]
sub edi, dword [eax - 4]
sub ecx, 0x104
or ecx, edi
jge 0x10086903
push 0x104
lea ecx, [ebp - 0x250]
call fcn.10005090
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
push ecx
push esi
push eax
push reloc.WS2_32.dll_accept
call fcn.10086eb0
push 0xffffffffffffffff
mov ecx, ebx
call fcn.100044f0
push 0xffffffffffffffff
lea ecx, [ebp - 0x250]
call fcn.100044f0
lea ecx, [ebp - 0x250]
call fcn.10005140
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1008695b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005ae75
mov esp, ebp
pop ebp
ret 8
Function at 0x10086980
Capabilities:
Contain obfuscated stackstrings
Get common file path
Get file size
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087feb
mov eax, dword fs:[0]
push eax
sub esp, 0x324
mov eax, dword [0x100a5688]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x103
lea eax, [ebp - 0x11f]
push 0
push eax
mov byte [ebp - 0x120], 0
call fcn.10059510
push 0x103
lea eax, [ebp - 0x327]
push 0
push eax
mov byte [ebp - 0x328], 0
call fcn.10059510
push 0x103
lea eax, [ebp - 0x223]
push 0
push eax
mov byte [ebp - 0x224], 0
call fcn.10059510
mov eax, dword [0x100a55e8]
add esp, 0x24
mov ecx, 0x100a55e8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x32c], eax
mov dword [ebp - 4], 0
push dword [ebx + 0x974]
lea eax, [ebp - 0x1c]
push dword [ebx + 0x97c]
mov dword [ebp - 0x18], 0x70782e73
push eax
lea eax, [ebp - 0x32c]
push eax
mov dword [ebp - 0x1c], 0x255c7325
mov word [ebp - 0x14], 0x69
call fcn.10004b70
add esp, 0x10
lea eax, [ebp - 0x120]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x328]
push 0x104
push eax
call fcn.1005b4dd
mov esi, dword [ebp - 0x32c]
add esp, 0xc
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0
push 0
push 3
push 0
push 0
push accept
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10086b19
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.10059510
add esp, 0xc
lea eax, [ebp - 0x224]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push ecx
lea eax, [ebp - 0x330]
push eax
sub esp, 8
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x120]
push eax
mov ecx, ebx
mov dword [ebp - 0x330], 0
call fcn.10086b60
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10086b3a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005ae75
mov esp, ebp
pop ebp
ret
Function at 0x10086eb0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x100a5688]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x10c]
push eax
push 0xf003f
push 0
push ebx
push edi
mov dword [ebp - 0x10c], 0
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10086f2c
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.10059510
mov ebx, dword [ebp - 0x110]
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x118]
push eax
push 0
push ebx
push dword [ebp - 0x10c]
mov dword [ebp - 0x11c], 0x104
mov dword [ebp - 0x118], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10086fba
mov edx, dword [ebp - 0x114]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10086f96
sub ecx, edi
push ecx
push edx
push 1
push 0
push ebx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1008701e
xor esi, esi
jmp 0x1008701e
mov ebx, dword [ebp - 0x114]
mov ecx, ebx
lea eax, [ebp - 0x108]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10086fe8
test dl, dl
je 0x10086fe4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10086fe8
add eax, 2
add ecx, 2
test dl, dl
jne 0x10086fc8
xor eax, eax
jmp 0x10086fed
sbb eax, eax
or eax, 1
test eax, eax
je 0x1008701e
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10086ff6
sub ecx, edx
push ecx
push ebx
push 1
push 0
push dword [ebp - 0x110]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005ae75
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
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 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
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 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x1009f08
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
and dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push 9
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1009f3d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x1009ff8
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1009f83
cmp eax, 0xea
je 0x1009f83
cmp eax, 0x7a
je 0x1009f83
mov esi, eax
jmp 0x1009f9c
mov eax, dword [ebp - 8]
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x1009fa9
push 8
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1009ff7
push edi
xor edi, edi
jmp 0x10681f8
pop esi
leave
ret 8

Function at 0x100a001
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp + 0x1c], eax
xor eax, eax
cmp dword [ebp + 0x1c], eax
jne 0x100a078
cmp edi, eax
je 0x100a078
mov edi, dword [edi]
cmp edi, 1
je 0x100a043
cmp edi, 2
je 0x100a043
cmp edi, 7
jne 0x100a078
cmp ebx, eax
je 0x100a078
cmp esi, eax
je 0x100a078
mov edx, dword [ebx]
mov ecx, edx
shr ecx, 1
cmp ecx, eax
jle 0x100a063
lea ecx, [esi + ecx*2]
cmp word [ecx - 2], ax
je 0x100a078
mov word [ecx], ax
jmp 0x100a078
jne 0x100a078
cmp edx, 1
jne 0x100a075
mov byte [esi + 1], al
mov byte [esi + 2], al
mov byte [esi + 3], al
jmp 0x100a078
mov word [esi], ax
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
pop ebp
ret 0x18