joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d96d
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x18
push 0x423de8
call fcn.00423b68
mov edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0x80004005
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x418]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x41d9a3
push 0x65d
jmp 0x41db28
cmp dword [ebp - 0x24], 0
jle 0x41d9bd
mov esi, 0x80070570
mov dword [0x424850], 0x663
jmp 0x41db3a
cmp dword [ebp - 0x28], 0x600000
jbe 0x41d9da
mov esi, 0x80070570
mov dword [0x424850], 0x667
jmp 0x41db3a
and dword [ebp - 0x1c], 0
lea edx, [ebp - 0x1c]
mov ecx, dword [edi + 0x418]
call fcn.0041d8e4
mov esi, eax
test esi, esi
js 0x41da14
mov eax, dword [ebp - 0x1c]
and eax, 0xffff0000
cmp eax, 0x4020000
je 0x41da12
mov esi, 0xc00ee064
mov dword [0x42484c], 0x64c
jmp 0x41da14
xor esi, esi
mov dword [ebp - 0x1c], esi
test esi, esi
js 0x41db3a
mov ebx, dword [ebp - 0x28]
lea eax, [edi + 0x208]
push eax
push ebx
push 0
push 4
push 0
push dword [edi + 0x418]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 0x41c], eax
test eax, eax
jne 0x41da50
push 0x678
jmp 0x41db28
mov ecx, eax
call fcn.0041d097
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
js 0x41db3a
push ebx
xor ebx, ebx
push ebx
push ebx
push 6
push dword [edi + 0x41c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [edi + 0x420], edx
test edx, edx
je 0x41db23
mov dword [ebp - 4], ebx
mov eax, dword [edx + 0x5c]
mov dword [edi + 0x424], eax
mov eax, dword [edx + 8]
mov dword [edi + 0x428], eax
mov eax, dword [edx + 0xc]
mov dword [edi + 0x42c], eax
mov eax, dword [edx + 0x24]
mov dword [edi + 0x430], eax
mov edx, dword [edx + 0x28]
mov dword [edi + 0x434], edx
lea eax, [edi + 0x438]
push eax
mov ecx, dword [edi + 0x430]
call fcn.0040d3ff
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
js 0x41dae0
push 3
mov ecx, edi
call fcn.0041e62f
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x41db12
cmp esi, 0x80070570
jne 0x41db3a
mov ecx, edi
call fcn.0041f28f
jmp 0x41db3a
push 0x69f
call fcn.0040f835
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.0041c7a5
mov esi, dword [ebp - 0x1c]
mov eax, esi
call fcn.00423bad
ret
Function at 0x41f6c0
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 0x41f73f
push 2
push dword [0x40459c]
call dword [sym.imp.iertutil.dll_Ordinal_660]
test eax, eax
je 0x41f7e6
mov edi, 0x104
lea edx, [ebp - 0x20c]
push edi
push dword [0x40459c]
push 2
pop ecx
call fcn.0040db5f
mov esi, eax
test esi, esi
js 0x41f7e6
lea eax, [ebp - 0x20c]
mov edx, edi
push eax
mov ecx, ebx
call fcn.004084a5
mov esi, eax
jmp 0x41f7e6
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 0x41f7e6
push 0x407d90
lea ecx, [ebp - 0x20c]
call fcn.0040ed30
mov esi, eax
test esi, esi
js 0x41f7e6
lea eax, [ebp - 0x20c]
mov edi, 0x104
push eax
mov edx, edi
mov ecx, ebx
call fcn.004084a5
mov esi, eax
test esi, esi
js 0x41f7e6
push 2
push dword [0x40459c]
call dword [sym.imp.iertutil.dll_Ordinal_660]
test eax, eax
je 0x41f7d5
push edi
push dword [0x40459c]
lea edx, [ebp - 0x414]
push 2
pop ecx
call fcn.0040db5f
test eax, eax
js 0x41f7d5
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 0x41f7e6
push dword [0x40459c]
lea edx, [ebp - 0x20c]
call fcn.0040dbe3
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423440
mov esp, ebp
pop ebp
ret

Function at 0x41fa31
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 0x41face
lea eax, [edi + 0x2c]
mov ecx, edi
push eax
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.0041fba3
mov esi, eax
test esi, esi
js 0x41fad5
lea eax, [edi + 0x30]
mov ecx, edi
push eax
push 1
lea eax, [ebp - 0x24]
push eax
call fcn.0041fba3
mov esi, eax
test esi, esi
js 0x41fad5
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 0x41fae8
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 0x41fad5
call fcn.0040f835
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423440
mov esp, ebp
pop ebp
ret
mov esi, 0x8007000e
jmp 0x41fad5
Function at 0x41fba3
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, 0x407e2c
mov dword [edi], esi
jne 0x41fbc5
mov eax, 0x407e80
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 0x41fc32
push esi
push 0x20
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x41fc20
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 0x41fc27
call fcn.0040f835
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x41fc39
call fcn.0040f835
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41fcd1
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 0x41fd9b
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov edx, ebx
test edi, edi
je 0x41fd91
mov ebx, dword [ebp - 4]
push esi
movzx esi, byte [edx + ebx]
inc edx
shl esi, 8
cmp edx, edi
jae 0x41fd24
movzx eax, byte [edx + ebx]
add esi, eax
inc edx
shl esi, 8
cmp edx, edi
jae 0x41fd32
movzx eax, byte [edx + ebx]
add esi, eax
mov eax, esi
inc edx
shr eax, 0x12
and eax, 0x3f
mov al, byte [eax + 0x407e40]
mov byte [ecx], al
mov eax, esi
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + 0x407e40]
mov byte [ecx + 1], al
mov eax, esi
shr eax, 6
and esi, 0x3f
and eax, 0x3f
mov al, byte [eax + 0x407e40]
mov byte [ecx + 2], al
mov al, byte [esi + 0x407e40]
mov byte [ecx + 3], al
cmp edx, edi
jbe 0x41fd79
mov byte [ecx + 3], 0x3d
lea eax, [edi + 1]
cmp edx, eax
jbe 0x41fd84
mov byte [ecx + 2], 0x3d
add ecx, 4
cmp edx, edi
jb 0x41fd12
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 0x41fda3
and dword [eax], 0
mov ebx, 0x8007007a
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41fdb2
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 0x41fee0
test edi, edi
je 0x41fee0
cmp byte [ebp + 8], 0
mov eax, dword [ebp - 4]
je 0x41fe2a
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 0x41fec5
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.0041ffc3
mov ebx, eax
test ebx, ebx
js 0x41fecc
mov eax, dword [ebp - 8]
sub eax, edi
add eax, esi
cmp eax, dword [ebp + 0x1c]
jne 0x41febe
push dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
push dword [ebp - 8]
push esi
call fcn.0041ff10
mov ebx, eax
test ebx, ebx
js 0x41fecc
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.0041fcd1
jmp 0x41feca
mov ebx, 0x80004005
jmp 0x41fecc
call fcn.0040f835
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 0x41feff
mov eax, dword [ebp - 0xc]
mov ebx, 0x8007000e
test eax, eax
je 0x41fef4
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
test edi, edi
je 0x41ff00
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 0x41ff10
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 0x41ffad
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 0x41ff9a
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 0x41ff9a
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 0x41ff9a
cmp dword [ebp - 8], edi
jne 0x41ffa1
mov esi, ebx
jmp 0x41ffa1
call fcn.0040f835
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
jmp 0x41ffb4
call fcn.0040f835
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41ffc3
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 0x420103
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 0x4200af
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 0x420047
lea eax, [edx - 1]
cmp ecx, eax
jne 0x420047
mov dword [ebp - 0x14], 0x20
jmp 0x420053
mov dword [ebp - 0x14], 0x10
cmp dword [ebp - 4], edi
jne 0x42005f
lea eax, [edx - 1]
cmp ecx, eax
jne 0x42005f
xor eax, eax
inc eax
jmp 0x420061
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 0x420097
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 0x42001c
jmp 0x4200ac
call fcn.0040f835
mov edi, eax
mov dword [ebx + 4], 3
test edi, edi
js 0x4200fb
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4200ed
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 0x4200df
add esi, dword [ebp - 4]
jmp 0x4200ed
call fcn.0040f835
mov edi, eax
mov dword [ebx + 4], 3
test edi, edi
js 0x4200fb
mov eax, dword [ebp + 0x18]
sub esi, dword [ebp + 0x14]
mov dword [eax], esi
jmp 0x42010a
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x42010a
call fcn.0040f835
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 0x420880
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [0x424874], 0
jne 0x420901
mov eax, dword [0x42486c]
test eax, eax
jne 0x4208c6
lea eax, [ebp - 4]
push eax
push ecx
call fcn.0042105b
test eax, eax
js 0x4208c1
mov ecx, dword [ebp - 4]
mov edx, 0x42486c
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4208c1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x42486c]
cmp dword [0x424870], 0
jne 0x420901
test eax, eax
je 0x420901
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 0x420901
push esi
mov ecx, edx
mov esi, 0x424870
xor eax, eax
lock cmpxchg dword [esi], ecx
pop esi
test eax, eax
je 0x420901
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esp, ebp
pop ebp
ret 4
Function at 0x420961
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 0x420b11
push edi
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x420b10
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 0x420b09
xor eax, eax
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x90]
push eax
push 0x407f9c
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x420ad9
mov ecx, dword [ebp - 0x90]
mov ebx, 0x407d78
push ebx
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push 0x407fd0
lea eax, [ebp - 0x7c]
push 0x3c
push eax
call fcn.00408514
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 0x420ad9
push ebx
push 0x408008
lea eax, [ebp - 0x7c]
push 0x3c
push eax
call fcn.00408514
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 0x420ad9
push ebx
push 0x408040
lea eax, [ebp - 0x7c]
push 0x3c
push eax
call fcn.00408514
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 0x420ad9
push ebx
push 0x408078
lea eax, [ebp - 0x7c]
push 0x3c
push eax
call fcn.00408514
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 0x420adc
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x420b09
push 0x407f94
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
mov eax, dword [ebp - 0x80]
xor ecx, ecx
cmp word [eax], cx
je 0x420b09
mov ecx, dword [ebp - 0x8c]
mov edx, 0x100
push eax
call fcn.004084a5
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.00423440
mov esp, ebp
pop ebp
ret 0xc

Function at 0x420bcd
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 0x420bfd
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 0x420be2
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 0x420e9f
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 0x420f3d
push edi
push 2
pop esi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
push 0x20019
push edi
push 0x408108
push reloc.SHLWAPI.dll_ParseURLW
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420f36
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 0x420f2c
cmp dword [ebp - 4], edi
je 0x420f2c
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x408124
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420f29
cmp dword [ebp - 4], edi
jne 0x420f2c
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 0x420f4f
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 0x420fc0
lea eax, [ebp - 8]
push eax
push 0x408154
push ecx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x420fab
cmp dword [ebp - 8], 0
jne 0x420fab
lea ecx, [ebp - 4]
call fcn.004211bb
mov esi, eax
test esi, esi
js 0x420fb0
mov ecx, dword [ebp - 4]
push edi
call fcn.00420e27
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x420fcd
mov esi, 0x80004005
call fcn.00420e9f
test eax, eax
je 0x420fcd
mov ecx, 0x40814c
jmp 0x420fc5
mov ecx, 0x408144
push edi
call fcn.00420e27
mov esi, eax
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x421abb
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 0x421b18
cmp ebx, edi
je 0x421b11
mov edx, dword [ebp + 8]
mov ecx, ebx
push edi
call fcn.004084a5
xor esi, esi
jmp 0x421c23
movzx eax, word [edi]
test ax, ax
je 0x421c43
cmp eax, 0x5c
je 0x421b44
movzx eax, word [edi + 2]
test ax, ax
je 0x421c43
cmp eax, 0x3a
je 0x421b44
cmp eax, 0x7c
jne 0x421c43
push 0x104
lea ecx, [ebp - 0x298]
call fcn.00421e64
mov esi, eax
test esi, esi
js 0x421c23
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.0040eaa3
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 0x421c0f
push dword [ebp - 0x29c]
lea ecx, [ebp - 0x298]
call fcn.00421e64
mov esi, eax
test esi, esi
js 0x421c23
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 0x421c23
push dword [ebp - 0x214]
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.004084a5
lea ecx, [ebp - 0x298]
call fcn.00421f06
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423440
mov esp, ebp
pop ebp
ret 0x14
push 0x824
lea ecx, [ebp - 0x298]
call fcn.00421e64
mov esi, eax
test esi, esi
js 0x421c23
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 0x421c0f
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.00421a19
mov esi, eax
test esi, esi
js 0x421cb6
cmp esi, 1
jne 0x421c0f
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 0x421c0f
mov esi, 0x80041001
jmp 0x421c23