joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10025340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100275de
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x10031118]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov word [ebp - 0x644], 0
push 0x400
push 0
lea eax, [ebp - 0x642]
push eax
call fcn.1000c7f0
add esp, 0xc
mov dword [ebp - 0x230], 0x400
mov word [ebp - 0x224], 0
push 0x208
push 0
lea ecx, [ebp - 0x222]
push ecx
call fcn.1000c7f0
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.10003f00
call fcn.10024720
neg eax
sbb eax, eax
and eax, 0x200
add eax, 1
mov dword [ebp - 0x228], eax
lea edx, [ebp - 0x234]
push edx
mov eax, dword [ebp - 0x228]
push eax
push 0
push str.SoftwareBaiduBaiduAn
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jne 0x1002550c
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x644]
push edx
push 0
push 0
push str.InstallDir
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100254ff
push 0x104
lea ecx, [ebp - 0x644]
push ecx
push 0x105
lea edx, [ebp - 0x224]
push edx
call fcn.1000c029
add esp, 0x10
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 8]
call fcn.10003de0
lea ecx, [ebp - 0x660]
call fcn.10003cf0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x660]
push ecx
call fcn.10024da0
add esp, 4
test eax, eax
je 0x100254ed
push 0x1002d490
mov ecx, dword [ebp + 8]
call fcn.10003e20
lea edx, [ebp - 0x660]
push edx
mov ecx, dword [ebp + 8]
call fcn.10003e00
mov dword [ebp - 0x664], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x660]
call fcn.10003da0
mov eax, dword [ebp - 0x664]
jmp 0x1002550e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x660]
call fcn.10003da0
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000bfdf
mov esp, ebp
pop ebp
ret
Function at 0x401ad0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4034a0
push 0x401f20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x24]
push eax
push 0x20019
push ebx
push str.SystemWPAPnP
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401b2e
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x28], 4
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x2c]
push edx
push ebx
push ebx
push str.seed
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401b71
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x24]
push edx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
mov dword [ebp - 4], ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x401c89
lea ecx, [ebp - 0x20]
push ecx
push ebx
push ebx
push 0x8003
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x401c89
mov byte [ebp - 0x30], bl
mov al, byte [ebp + 8]
mov byte [ebp - 0x2f], al
mov byte [ebp - 0x2e], bl
mov byte [ebp - 0x2d], bl
push ebx
push 4
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
call esi
test eax, eax
je 0x401c89
push ebx
push 4
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call esi
test eax, eax
je 0x401c89
mov dword [ebp - 0x28], 0x10
push ebx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x40]
push eax
push 2
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x401c89
lea edx, [ebp - 0x24]
push edx
push 0x20006
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push 0x80000002
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call esi
test eax, eax
jne 0x401c51
push 0x10
lea eax, [ebp - 0x40]
push eax
push 3
push ebx
push str.PrivateHash
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x24]
push edx
call edi
lea eax, [ebp - 0x24]
push eax
push 0x20006
push ebx
push str.SoftwareMicrosoftDriver_Signing
push 0x80000001
call esi
test eax, eax
jne 0x401c89
push 1
lea ecx, [ebp + 8]
push ecx
push 3
push ebx
push str.Policy
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x24]
push eax
call edi
mov dword [ebp - 4], 0xffffffff
call fcn.00401caf
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4024d0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x403db0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x54]
mov dword [esp + 0x4c], 0
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x402682
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x54]
push 0x406044
lea edx, [esp + 0x14]
push ecx
push edx
mov byte [esp + 0x58], 1
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 2
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CString::CString
test esi, esi
je 0x402660
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov edi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
push 0x406040
push eax
mov byte [esp + 0x54], 3
call esi
add esp, 8
test eax, eax
je 0x4025b8
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
push 0x40603c
push eax
call esi
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4025ba
mov bl, 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x402658
lea edx, [esp + 0x18]
lea ecx, [esp + 0x28]
push edx
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push 0x80
push eax
call ebp
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x28]
push 0x10
lea ecx, [esp + 0x2c]
call dword [eax + 0x40]
test eax, eax
je 0x402638
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFileFind::GetFilePath
call fcn.004024d0
add esp, 4
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x28]
push edx
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x1c]
jmp 0x402653
lea eax, [esp + 0x20]
lea ecx, [esp + 0x28]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
test edi, edi
jne 0x40255c
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::Close
mov ecx, dword [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 0
call fcn.004037f2
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x43d3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.043d378f
jae 0x43d370e
xor ecx, ecx
call fcn.043d378f
jae 0x43d373d
xor eax, eax
call fcn.043d378f
jae 0x43d374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.043d378f
adc al, al
jae 0x43d372f
jne 0x43d3779
stosb byte es:[edi], al
jmp 0x43d3711
call fcn.043d379b
sub ecx, ebx
jne 0x43d3756
call fcn.043d3799
jmp 0x43d3775
lodsb al, byte [esi]
shr eax, 1
je 0x43d3783
adc ecx, ecx
jmp 0x43d3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.043d3799
cmp eax, 0x7d00
jae 0x43d3772
cmp ah, 5
jae 0x43d3773
cmp eax, 0x7f
ja 0x43d3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x43d3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x405d7e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a1244], 0
push esi
jne 0x405db5
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 0x405d8f
mov dword [ecx*4 + 0x7a1240], eax
inc ecx
cmp ecx, 0x100
jl 0x405d8a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405de6
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 + 0x7a1240]
xor eax, esi
inc ecx
dec edx
jne 0x405dc8
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x5a54300
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.05a5438f
jae 0x5a5430e
xor ecx, ecx
call fcn.05a5438f
jae 0x5a5433d
xor eax, eax
call fcn.05a5438f
jae 0x5a5434d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.05a5438f
adc al, al
jae 0x5a5432f
jne 0x5a54379
stosb byte es:[edi], al
jmp 0x5a54311
call fcn.05a5439b
sub ecx, ebx
jne 0x5a54356
call fcn.05a54399
jmp 0x5a54375
lodsb al, byte [esi]
shr eax, 1
je 0x5a54383
adc ecx, ecx
jmp 0x5a54372
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.05a54399
cmp eax, 0x7d00
jae 0x5a54372
cmp ah, 5
jae 0x5a54373
cmp eax, 0x7f
ja 0x5a54374
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5a54311
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40d510
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x436a58]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
imul edx, edx, 0x8088405
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x436a58]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x11240
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
call dword [sym.imp.HAL.dll_KeGetCurrentIrql]
movzx eax, al
test eax, eax
jle 0x11268
push str.Do_Not_At_PASSIVE_LEVEL__n
call dword [sym.imp.ntoskrnl.exe_DbgPrint]
add esp, 4
xor eax, eax
jmp 0x112ef
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [ebp - 0x18], 0x18
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0x240
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x100
push 0
push 0
push 0
push 0
push 0
push 1
mov ecx, dword [ebp + 0x10]
push ecx
push 0x80
push 0
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.ntoskrnl.exe_IoCreateFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x112ec
push str.IoCreateFile_Error_n
call dword [sym.imp.ntoskrnl.exe_DbgPrint]
add esp, 4
xor eax, eax
jmp 0x112ef
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003c30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100351e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x214]
push 0x210
push 0
push eax
call fcn.10015970
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x108
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNICW]
mov ecx, dword [ebp - 4]
neg eax
pop esi
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.10012e1a
mov esp, ebp
pop ebp
ret 4

Function at 0x10004330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027352
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x100351e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x104
push 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], 0
call fcn.10015970
add esp, 0xc
mov dword [ebp - 0x21c], 0x208
lea eax, [ebp - 0x220]
push eax
push str..pdf
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100043ea
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.10001cd0
mov eax, dword [edi]
mov dword [ebp - 4], 0
mov dword [ebp - 0x224], 1
mov esi, dword [eax - 0xc]
test esi, esi
jns 0x1000441c
push 0x80070057
call fcn.10002390
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or ecx, eax
jge 0x10004435
push esi
mov ecx, edi
call fcn.10003f20
lea eax, [esi + 1]
push eax
push dword [edi]
call fcn.10016bb3
mov eax, dword [edi]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x10004412
mov dword [eax - 0xc], esi
xor eax, eax
mov ecx, dword [edi]
mov word [ecx + esi*2], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10012e1a
mov esp, ebp
pop ebp
ret 4
Function at 0x10004870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10004885
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100048c6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x100048c2
nop word [eax + eax]
cmp esi, edx
jae 0x100048c6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x100048b0
cmp esi, edx
jb 0x100048cb
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x10005ed0
Capabilities:
Encode data using base64
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10032548
push 0x10015b10
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100351e4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], ebx
test edi, edi
je 0x10006074
test ebx, ebx
je 0x10006074
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x10006074
cmp dword [ebp + 0x14], 0xd
jb 0x10006074
xor esi, esi
mov byte [ebp - 0x34], 0
xorps xmm0, xmm0
movq qword [ebp - 0x33], xmm0
mov dword [ebp - 0x2b], esi
mov word [ebp - 0x27], si
mov byte [ebp - 0x25], 0
mov byte [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x23], eax
mov word [ebp - 0x1f], ax
mov byte [ebp - 0x1d], al
mov dword [ebp - 4], eax
push 0x10
lea eax, [ebp - 0x34]
push eax
push ebx
push edi
call fcn.100064f0
add esp, 0x10
test eax, eax
je 0x10006069
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push edi
call fcn.100060a0
add esp, 0x10
test eax, eax
je 0x10006069
xor eax, eax
mov dword [ebp - 0x38], eax
xor edi, edi
mov dword [ebp - 0x40], edi
nop dword [eax]
mov cl, byte [ebp + eax - 0x24]
inc eax
mov dword [ebp - 0x38], eax
cmp eax, 8
jb 0x10005fb1
xor bh, bh
jmp 0x10005fb9
mov bh, byte [ebp + eax - 0x24]
inc eax
mov dword [ebp - 0x38], eax
cmp eax, 8
jb 0x10005fc2
xor bl, bl
jmp 0x10005fca
mov bl, byte [ebp + eax - 0x24]
inc eax
mov dword [ebp - 0x38], eax
movzx edx, cl
mov ecx, edx
shr ecx, 2
movzx ecx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov esi, dword [ebp - 0x3c]
mov word [esi + edi*2], cx
movzx esi, bh
mov ecx, esi
shr ecx, 4
and edx, 3
shl edx, 4
or ecx, edx
movzx ecx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 0x3c]
mov word [edx + edi*2 + 2], cx
movzx edx, bl
mov ecx, edx
shr ecx, 6
and esi, 0xf
shl esi, 2
or ecx, esi
movzx ecx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ebx, dword [ebp - 0x3c]
mov word [ebx + edi*2 + 4], cx
and edx, 0x3f
movzx ecx, word [edx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ebx + edi*2 + 6], cx
add edi, 4
mov dword [ebp - 0x40], edi
cmp eax, 8
jb 0x10005fa0
mov dword [ebx + edi*2 - 2], 0x3d
mov esi, 1
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x10006076
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x10006076
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10012e1a
mov esp, ebp
pop ebp
ret
Function at 0x10006550
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x1000657c
pop edi
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.10016c03
mov esi, eax
add esp, 4
test esi, esi
jne 0x10006592
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100065d3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x1002a7a8
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100065d3
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 1
mov ecx, dword [edx + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [edx + 0xc]
mov dword [eax], ecx
push esi
call fcn.10016557
mov eax, dword [ebp - 4]
add esp, 4
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x100069d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100275cb
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x100351e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
lea eax, [ebp - 0x218]
push 0x208
push esi
push eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], esi
call fcn.10015970
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.10001cd0
push 0x15
push str._system32Shell32.dll
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], esi
call fcn.10005e00
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x21c]
call fcn.10006550
add esp, 0xc
test eax, eax
je 0x10006a96
cmp dword [ebp - 0x220], 0x60002
jb 0x10006a96
cmp dword [ebp - 0x224], 0x295a01c8
mov eax, 1
cmovae esi, eax
mov eax, dword [ebp - 0x21c]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10006abb
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10012e1a
mov esp, ebp
pop ebp
ret