joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f5e0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20000003
mov ebx, ecx
mov esi, 0x80004005
call dword [sym.imp.iertutil.dll_Ordinal_791]
test al, al
je 0x41f65f
push 2
push dword [0x404588]
call dword [sym.imp.iertutil.dll_Ordinal_660]
test eax, eax
je 0x41f706
mov edi, 0x104
lea edx, [ebp - 0x20c]
push edi
push dword [0x404588]
push 2
pop ecx
call fcn.0040db4f
mov esi, eax
test esi, esi
js 0x41f706
lea eax, [ebp - 0x20c]
mov edx, edi
push eax
mov ecx, ebx
call fcn.00408495
mov esi, eax
jmp 0x41f706
lea eax, [ebp - 0x20c]
push eax
xor eax, eax
push eax
push eax
push 0x20
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jne 0x41f706
push 0x407d80
lea ecx, [ebp - 0x20c]
call fcn.0040ed20
mov esi, eax
test esi, esi
js 0x41f706
lea eax, [ebp - 0x20c]
mov edi, 0x104
push eax
mov edx, edi
mov ecx, ebx
call fcn.00408495
mov esi, eax
test esi, esi
js 0x41f706
push 2
push dword [0x404588]
call dword [sym.imp.iertutil.dll_Ordinal_660]
test eax, eax
je 0x41f6f5
push edi
push dword [0x404588]
lea edx, [ebp - 0x414]
push 2
pop ecx
call fcn.0040db4f
test eax, eax
js 0x41f6f5
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call sub.SHLWAPI.dll_StrCmpIW
test eax, eax
setne al
test al, al
je 0x41f706
push dword [0x404588]
lea edx, [ebp - 0x20c]
call fcn.0040dbd3
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423360
mov esp, ebp
pop ebp
ret

Function at 0x41f951
Capabilities:
Encrypt or decrypt via wincrypt
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x24]
mov edi, ecx
push eax
push 0x10
pop ebx
push ebx
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x41f9ee
lea eax, [edi + 0x2c]
mov ecx, edi
push eax
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.0041fac3
mov esi, eax
test esi, esi
js 0x41f9f5
lea eax, [edi + 0x30]
mov ecx, edi
push eax
push 1
lea eax, [ebp - 0x24]
push eax
call fcn.0041fac3
mov esi, eax
test esi, esi
js 0x41f9f5
push dword [edi + 0x28]
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
mov dword [edi + 0x34], eax
pop ecx
test eax, eax
je 0x41fa08
push ebx
lea ecx, [ebp - 0x24]
push ecx
push dword [edi + 0x28]
push eax
call dword [sym.imp.msvcrt.dll_memcpy_s]
add esp, 0x10
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x28]
push dword [edi + 0x28]
push eax
push dword [edi + 0x34]
push 0
push 1
push 0
push dword [edi + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x41f9f5
call fcn.0040f825
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423360
mov esp, ebp
pop ebp
ret
mov esi, 0x8007000e
jmp 0x41f9f5
Function at 0x41fac3
Capabilities:
Encrypt data using aes via winapi
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp byte [ebp + 0xc], 0
mov ebx, ecx
mov eax, 0x407e1c
mov dword [edi], esi
jne 0x41fae5
mov eax, 0x407e70
push 0x10
push eax
mov eax, dword [ebp + 8]
add eax, 0x10
push 0x10
push eax
call dword [sym.imp.msvcrt.dll_memcpy_s]
add esp, 0x10
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x800c
push dword [ebx + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x41fb52
push esi
push 0x20
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x41fb40
push edi
push 0x800000
push dword [ebp - 4]
push 0x660e
push dword [ebx + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x41fb47
call fcn.0040f825
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x41fb59
call fcn.0040f825
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41fbf1
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov dword [ebp - 4], ecx
mov edi, edx
xor edx, edx
mov eax, edi
push 3
pop ecx
div ecx
xor ecx, ecx
cmp ecx, edx
sbb ecx, ecx
neg ecx
add ecx, eax
mov eax, dword [ebp + 0xc]
shl ecx, 2
cmp dword [eax], ecx
jb 0x41fcbb
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov edx, ebx
test edi, edi
je 0x41fcb1
mov ebx, dword [ebp - 4]
push esi
movzx esi, byte [edx + ebx]
inc edx
shl esi, 8
cmp edx, edi
jae 0x41fc44
movzx eax, byte [edx + ebx]
add esi, eax
inc edx
shl esi, 8
cmp edx, edi
jae 0x41fc52
movzx eax, byte [edx + ebx]
add esi, eax
mov eax, esi
inc edx
shr eax, 0x12
and eax, 0x3f
mov al, byte [eax + 0x407e30]
mov byte [ecx], al
mov eax, esi
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + 0x407e30]
mov byte [ecx + 1], al
mov eax, esi
shr eax, 6
and esi, 0x3f
and eax, 0x3f
mov al, byte [eax + 0x407e30]
mov byte [ecx + 2], al
mov al, byte [esi + 0x407e30]
mov byte [ecx + 3], al
cmp edx, edi
jbe 0x41fc99
mov byte [ecx + 3], 0x3d
lea eax, [edi + 1]
cmp edx, eax
jbe 0x41fca4
mov byte [ecx + 2], 0x3d
add ecx, 4
cmp edx, edi
jb 0x41fc32
mov eax, dword [ebp + 0xc]
xor ebx, ebx
pop esi
mov byte [ecx], bl
sub ecx, dword [ebp + 8]
inc ecx
mov dword [eax], ecx
jmp 0x41fcc3
and dword [eax], 0
mov ebx, 0x8007007a
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41fcd2
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x10
mov dword [ebp - 4], ecx
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
push dword [ebp + 0x1c]
mov ebx, eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
mov edi, eax
mov esi, edi
pop ecx
pop ecx
test ebx, ebx
je 0x41fe00
test edi, edi
je 0x41fe00
cmp byte [ebp + 8], 0
mov eax, dword [ebp - 4]
je 0x41fd4a
mov byte [edi], 1
lea esi, [edi + 1]
push dword [eax + 0x3c]
push dword [eax + 0x38]
push dword [eax + 0x3c]
push esi
call dword [sym.imp.msvcrt.dll_memcpy_s]
mov eax, dword [ebp - 4]
push dword [eax + 0x28]
add esi, dword [eax + 0x3c]
push dword [eax + 0x34]
push dword [eax + 0x28]
push esi
call dword [sym.imp.msvcrt.dll_memcpy_s]
mov eax, dword [ebp - 4]
add esp, 0x20
add esi, dword [eax + 0x28]
push ebx
push 0x10
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x41fde5
push 0x10
push ebx
push 0x10
push esi
call dword [sym.imp.msvcrt.dll_memcpy_s]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
add esp, 0x10
add esi, 0x10
mov dword [ebp - 0x10], esi
add esi, 0x20
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041fee3
mov ebx, eax
test ebx, ebx
js 0x41fdec
mov eax, dword [ebp - 8]
sub eax, edi
add eax, esi
cmp eax, dword [ebp + 0x1c]
jne 0x41fdde
push dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
push dword [ebp - 8]
push esi
call fcn.0041fe30
mov ebx, eax
test ebx, ebx
js 0x41fdec
cmp byte [ebp + 8], 0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x1c]
sete al
dec al
and al, 0xf6
add al, 0x70
mov byte [ecx], al
mov eax, dword [ebp + 0x18]
dec eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0041fbf1
jmp 0x41fdea
mov ebx, 0x80004005
jmp 0x41fdec
call fcn.0040f825
mov ebx, eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
push edi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
jmp 0x41fe1f
mov eax, dword [ebp - 0xc]
mov ebx, 0x8007000e
test eax, eax
je 0x41fe14
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
test edi, edi
je 0x41fe20
push edi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x41fe30
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push ebx
push esi
push eax
xor ebx, ebx
mov esi, 0x80004005
push ebx
push dword [ecx + 0x30]
push 0x8009
push dword [ecx + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x41fecd
push edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
push 5
push dword [ebp - 4]
mov dword [ebp - 0x1c], 0x800c
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x41feba
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x41feba
push 0x20
pop edi
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x41feba
cmp dword [ebp - 8], edi
jne 0x41fec1
mov esi, ebx
jmp 0x41fec1
call fcn.0040f825
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
jmp 0x41fed4
call fcn.0040f825
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41fee3
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x424318
mov ebx, ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push dword [ebp + 8]
push 1
push dword [ebx + 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x420023
mov eax, dword [ebp + 0x10]
mov ecx, eax
and dword [ebp - 8], edi
and eax, 0xf
mov esi, dword [ebp + 0x14]
shr ecx, 4
push 0x10
pop edx
mov dword [ebp - 0x10], ecx
test ecx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
je 0x41ffcf
push edx
push ecx
push edx
push esi
mov dword [ebp - 0xc], edx
call dword [sym.imp.msvcrt.dll_memcpy_s]
mov edx, dword [ebp - 0x10]
add esp, 0x10
mov ecx, dword [ebp - 8]
cmp dword [ebp - 4], edi
jne 0x41ff67
lea eax, [edx - 1]
cmp ecx, eax
jne 0x41ff67
mov dword [ebp - 0x14], 0x20
jmp 0x41ff73
mov dword [ebp - 0x14], 0x10
cmp dword [ebp - 4], edi
jne 0x41ff7f
lea eax, [edx - 1]
cmp ecx, eax
jne 0x41ff7f
xor eax, eax
inc eax
jmp 0x41ff81
xor eax, eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0xc]
push ecx
push esi
push 0
push eax
push 0
push dword [ebx + 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x41ffb7
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
add esi, dword [ebp - 0xc]
push 0x10
pop edx
add ecx, edx
inc eax
mov dword [ebp + 0xc], ecx
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x10]
jb 0x41ff3c
jmp 0x41ffcc
call fcn.0040f825
mov edi, eax
mov dword [ebx + 4], 3
test edi, edi
js 0x42001b
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
test eax, eax
je 0x42000d
push eax
push ecx
push eax
push esi
call dword [sym.imp.msvcrt.dll_memcpy_s]
add esp, 0x10
lea eax, [ebp - 4]
push 0x10
push eax
push esi
push 0
push 1
push 0
push dword [ebx + 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x41ffff
add esi, dword [ebp - 4]
jmp 0x42000d
call fcn.0040f825
mov edi, eax
mov dword [ebx + 4], 3
test edi, edi
js 0x42001b
mov eax, dword [ebp + 0x18]
sub esi, dword [ebp + 0x14]
mov dword [eax], esi
jmp 0x42002a
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x42002a
call fcn.0040f825
mov edi, eax
push 0x424318
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4207a0
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [0x424874], 0
jne 0x420821
mov eax, dword [0x42486c]
test eax, eax
jne 0x4207e6
lea eax, [ebp - 4]
push eax
push ecx
call fcn.00420f7b
test eax, eax
js 0x4207e1
mov ecx, dword [ebp - 4]
mov edx, 0x42486c
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4207e1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x42486c]
cmp dword [0x424870], 0
jne 0x420821
test eax, eax
je 0x420821
xor ecx, ecx
push ecx
push ecx
push ecx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
test edx, edx
je 0x420821
push esi
mov ecx, edx
mov esi, 0x424870
xor eax, eax
lock cmpxchg dword [esi], ecx
pop esi
test eax, eax
je 0x420821
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esp, ebp
pop ebp
ret 4
Function at 0x420881
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x8c], ecx
mov esi, 0x80004005
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x84], eax
push ecx
push eax
push 2
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeExW]
mov ebx, eax
test ebx, ebx
je 0x420a31
push edi
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x420a30
push edi
push ebx
push dword [ebp - 0x88]
push dword [ebp - 0x84]
push 2
call dword [sym.imp.VERSION.dll_GetFileVersionInfoExW]
test eax, eax
je 0x420a29
xor eax, eax
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x90]
push eax
push 0x407f8c
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4209f9
mov ecx, dword [ebp - 0x90]
mov ebx, 0x407d68
push ebx
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push 0x407fc0
lea eax, [ebp - 0x7c]
push 0x3c
push eax
call fcn.00408504
add esp, 0x18
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x4209f9
push ebx
push 0x407ff8
lea eax, [ebp - 0x7c]
push 0x3c
push eax
call fcn.00408504
add esp, 0x10
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x4209f9
push ebx
push 0x408030
lea eax, [ebp - 0x7c]
push 0x3c
push eax
call fcn.00408504
add esp, 0x10
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x4209f9
push ebx
push 0x408068
lea eax, [ebp - 0x7c]
push 0x3c
push eax
call fcn.00408504
add esp, 0x10
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x80]
mov dword [ebp - 0x80], eax
jmp 0x4209fc
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x420a29
push 0x407f84
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
mov eax, dword [ebp - 0x80]
xor ecx, ecx
cmp word [eax], cx
je 0x420a29
mov ecx, dword [ebp - 0x8c]
mov edx, 0x100
push eax
call fcn.00408495
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423360
mov esp, ebp
pop ebp
ret 0xc

Function at 0x420aed
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
mov edx, 0x12b9b0a5
push edi
mov edi, ecx
cmp dword [ebp + 8], esi
jbe 0x420b1d
movzx ecx, byte [esi + edi]
imul eax, edx, 0x820
add ecx, eax
mov eax, edx
shr eax, 2
add ecx, eax
xor edx, ecx
inc esi
cmp esi, dword [ebp + 8]
jb 0x420b02
and edx, 0x7fffffff
mov eax, edx
xor edx, edx
div dword [ebp + 0xc]
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x420dbf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0x424878]
test esi, esi
jne 0x420e5d
push edi
push 2
pop esi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
push 0x20019
push edi
push 0x4080f8
push reloc.SHLWAPI.dll_ParseURLW
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420e56
push ebx
push 4
pop ebx
lea eax, [ebp - 8]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], ebx
push eax
push edi
push edi
push 0x4023e0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420e4c
cmp dword [ebp - 4], edi
je 0x420e4c
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x408114
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420e49
cmp dword [ebp - 4], edi
jne 0x420e4c
xor esi, esi
inc esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov dword [0x424878], esi
pop edi
xor eax, eax
cmp esi, 1
pop esi
sete al
mov esp, ebp
pop ebp
ret

Function at 0x420e6f
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword fs:[0x30]
xor ecx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [edi], ecx
cmp dword [eax + 0x1d4], ecx
je 0x420ee0
lea eax, [ebp - 8]
push eax
push 0x408144
push ecx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x420ecb
cmp dword [ebp - 8], 0
jne 0x420ecb
lea ecx, [ebp - 4]
call fcn.004210db
mov esi, eax
test esi, esi
js 0x420ed0
mov ecx, dword [ebp - 4]
push edi
call fcn.00420d47
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x420eed
mov esi, 0x80004005
call fcn.00420dbf
test eax, eax
je 0x420eed
mov ecx, 0x40813c
jmp 0x420ee5
mov ecx, 0x408134
push edi
call fcn.00420d47
mov esi, eax
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4219db
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
mov edi, ecx
mov word [ebp - 0x298], ax
lea eax, [ebp - 0x298]
mov dword [ebp - 0x210], 0x41
push edi
mov dword [ebp - 0x214], eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x421a38
cmp ebx, edi
je 0x421a31
mov edx, dword [ebp + 8]
mov ecx, ebx
push edi
call fcn.00408495
xor esi, esi
jmp 0x421b43
movzx eax, word [edi]
test ax, ax
je 0x421b63
cmp eax, 0x5c
je 0x421a64
movzx eax, word [edi + 2]
test ax, ax
je 0x421b63
cmp eax, 0x3a
je 0x421a64
cmp eax, 0x7c
jne 0x421b63
push 0x104
lea ecx, [ebp - 0x298]
call fcn.00421d84
mov esi, eax
test esi, esi
js 0x421b43
mov eax, dword [ebp - 0x214]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x210]
mov dword [ebp - 0x29c], eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, dword [ebp - 0x29c]
lea eax, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x214]
push edi
push eax
call fcn.0040ea93
push 0
lea eax, [ebp - 0x29c]
push eax
push dword [ebp - 0x214]
push dword [ebp - 0x214]
call dword [sym.imp.SHLWAPI.dll_UrlCreateFromPathW]
mov esi, eax
cmp esi, 0x80004003
jne 0x421b2f
push dword [ebp - 0x29c]
lea ecx, [ebp - 0x298]
call fcn.00421d84
mov esi, eax
test esi, esi
js 0x421b43
mov eax, dword [ebp - 0x214]
neg eax
push 0
sbb eax, eax
and eax, dword [ebp - 0x210]
mov dword [ebp - 0x29c], eax
lea eax, [ebp - 0x29c]
push eax
push dword [ebp - 0x214]
push dword [ebp - 0x214]
call dword [sym.imp.SHLWAPI.dll_UrlCreateFromPathW]
mov esi, eax
test esi, esi
js 0x421b43
push dword [ebp - 0x214]
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.00408495
lea ecx, [ebp - 0x298]
call fcn.00421e26
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423360
mov esp, ebp
pop ebp
ret 0x14
push 0x824
lea ecx, [ebp - 0x298]
call fcn.00421d84
mov esi, eax
test esi, esi
js 0x421b43
mov eax, dword [ebp - 0x214]
neg eax
push 2
sbb eax, eax
and eax, dword [ebp - 0x210]
mov dword [ebp - 0x29c], eax
lea eax, [ebp - 0x29c]
push eax
push dword [ebp - 0x214]
push edi
call dword [sym.imp.SHLWAPI.dll_UrlApplySchemeW]
mov esi, eax
cmp esi, 1
jne 0x421b2f
mov edx, dword [ebp - 0x214]
mov eax, edx
neg eax
push ecx
sbb eax, eax
mov ecx, edi
and eax, dword [ebp - 0x210]
push eax
call fcn.00421939
mov esi, eax
test esi, esi
js 0x421bd6
cmp esi, 1
jne 0x421b2f
mov eax, dword [ebp - 0x214]
neg eax
push 1
sbb eax, eax
and eax, dword [ebp - 0x210]
mov dword [ebp - 0x29c], eax
lea eax, [ebp - 0x29c]
push eax
push dword [ebp - 0x214]
push edi
call dword [sym.imp.SHLWAPI.dll_UrlApplySchemeW]
mov esi, eax
cmp esi, 1
jne 0x421b2f
mov esi, 0x80041001
jmp 0x421b43
Function at 0x422aa5
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, eax
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x7c], ecx
mov dword [esi], eax
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], esi
mov dword [ebx], eax
test edi, edi
je 0x422bc3
cmp dword [ebp + 0xc], eax
je 0x422bc3
push 0x68
push eax
lea eax, [ebp - 0x70]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x68], 0x67452301
xor esi, esi
mov dword [ebp - 0x64], 0xefcdab89
mov edx, edi
mov dword [ebp - 0x6c], esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], esi
push dword [ebp + 0xc]
mov dword [ebp - 0x60], 0x98badcfe
mov dword [ebp - 0x5c], 0x10325476
call fcn.004225a0
lea ecx, [ebp - 0x70]
call fcn.00422647
mov edi, esp
mov dword [ebp - 0x74], esi
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], esi
mov esi, dword [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
mov esi, dword [esi]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x84]
mov ecx, dword [esi + 4]
call dword [0x4255c0]
mov ecx, dword [ebp - 0x7c]
call dword [esi + 4]
cmp edi, esp
je 0x422b6d
mov ecx, 4
int 0x29
mov esi, dword [ebp - 0x80]
mov edi, eax
test edi, edi
js 0x422b9f
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.00422a18
test al, al
je 0x422b96
push dword [ebp - 0x78]
push dword [ebp - 0x74]
push ebx
call fcn.00422a18
test al, al
jne 0x422b9b
mov edi, 0x80004005
test edi, edi
jns 0x422bb7
push dword [esi]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
and dword [esi], 0
push dword [ebx]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
and dword [ebx], 0
pop ecx
pop ecx
push dword [ebp - 0x74]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
jmp 0x422bf2
push 1
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
push 1
mov dword [esi], eax
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
pop ecx
mov dword [ebx], eax
mov edi, 0x8007000e
mov ecx, dword [esi]
test ecx, ecx
je 0x422bf2
test eax, eax
je 0x422bf2
mov byte [ecx], 0
xor edi, edi
mov eax, dword [ebx]
mov byte [eax], 0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423360
mov esp, ebp
pop ebp
ret 0x10