joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fb100
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x4fb131
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4fb119
add dl, dl
jne 0x4fb13c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4fb18d
xor eax, eax
add dl, dl
jne 0x4fb149
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4fb22a
add dl, dl
jne 0x4fb158
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4fb163
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4fb16e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4fb179
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x4fb183
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x4fb128
mov eax, 1
add dl, dl
jne 0x4fb19b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4fb1a6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4fb192
sub eax, ebx
mov ebx, 1
jne 0x4fb1d9
mov ecx, 1
add dl, dl
jne 0x4fb1bf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4fb1ca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4fb1b6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4fb128
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x4fb1f0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4fb1fb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4fb1e7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4fb128
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x4fb24b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x4fb128
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x10005b16
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x10165909
call fcn.10004365
mov esi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push ebx
and dword [ebx], 0
push eax
mov dword [ebp - 0x18], eax
call fcn.10005bbd
test al, al
je 0x10005b4c
test edi, edi
je 0x10005b48
mov dword [edi], 4
xor eax, eax
jmp 0x10005bb5
mov ecx, esi
call fcn.1000597c
test al, al
je 0x10005b88
cmp byte [esi + 0x18], 0
je 0x10005b83
push 0x80070002
push 0x2e6e3576
lea eax, [ebp - 0x24]
push eax
call fcn.1010dea4
and dword [ebp - 4], 0
mov ecx, eax
call fcn.1010934c
lea ecx, [ebp - 0x24]
call fcn.100f57fa
push 2
pop eax
jmp 0x10005bb5
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
push ebx
mov edx, esi
lea eax, [esi + 4]
neg edx
push edi
sbb edx, edx
push 0
push dword [ebp - 0x18]
and edx, eax
push dword [edx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
mov ecx, esi
call fcn.10005a92
call fcn.100045f2
ret 0xc
Function at 0x10007bb9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1020f334]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea eax, [ebp - 0x20c]
push edi
push 0xffffffffffffffff
push ecx
push 0x104
push eax
mov edi, edx
call esi
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add eax, 2
lea ecx, [ebp - 4]
push 0xffffffffffffffff
sub ecx, eax
push edi
sar ecx, 1
push ecx
push eax
call esi
add esp, 0x28
lea eax, [ebp - 0x20c]
xor esi, esi
push esi
push esi
push eax
call fcn.10007746
mov edi, eax
test edi, edi
jne 0x10007c43
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [0x10214e90], eax
cmp eax, 0xffffffff
jne 0x10007c49
call esi
jmp 0x10007c49
mov dword [0x10214e90], esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.100042bb
mov esp, ebp
pop ebp
ret

Function at 0x10007c5b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1020f334]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x208
push eax
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
push 2
pop edi
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x10007cee
mov ecx, dword [ebp - 0x210]
cmp ecx, 4
jb 0x10007cee
shr ecx, 1
push 0xffffffffffffffff
cmp word [ebp + ecx*2 - 0x210], 0x5c
cmove eax, edi
add eax, str.Microsoft_SharedOffice16_
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea ecx, [ebp - 0x20c]
mov edx, esi
call fcn.10007bb9
jmp 0x10007cf0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100042bb
mov esp, ebp
pop ebp
ret

Function at 0x10007d00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1020f334]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x208
push eax
lea eax, [ebp - 0x20c]
mov esi, 0x10196f70
push eax
push 0
push 2
push esi
push 0x10196ff8
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, edx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x10007d6a
cmp dword [ebp - 0x210], 4
jb 0x10007d6a
test edi, edi
lea ecx, [ebp - 0x20c]
cmovne esi, edi
mov edx, esi
call fcn.10007bb9
jmp 0x10007d6c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100042bb
mov esp, ebp
pop ebp
ret
Function at 0x100088c6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x1020f334]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0xc0], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
or edi, 0xffffffff
test esi, esi
je 0x10008a18
push 1
push 1
push 1
lea edx, [ebp - 0xc0]
xor ecx, ecx
call fcn.10020c68
mov dword [ebp - 0xbc], eax
test eax, eax
js 0x1000891d
mov ecx, dword [ebp - 0xc0]
call fcn.10008719
mov edi, eax
and dword [ebp - 0xc4], 0
lea edx, [ebp - 0xc4]
push 1
push 1
push 1
mov ecx, 0x102150b0
call fcn.10020c68
xor ecx, ecx
test eax, eax
push 4
cmovns ecx, dword [ebp - 0xc4]
xor eax, eax
push esi
push ebx
push eax
mov dword [ebp - 0xc8], ecx
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x10008a0f
cmp edi, 0xffffffff
je 0x100089b3
push 0xaa
push eax
lea eax, [ebp - 0xb8]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xbc]
lea edx, [ebp - 0xb8]
mov ecx, edi
push eax
push 0
push 0x55
call fcn.10021290
cmp dword [ebp - 0xbc], 0
jl 0x100089b3
push 4
push esi
push ebx
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x10008a0f
mov edi, dword [ebp - 0xc8]
cmp edi, 0xffffffff
je 0x10008a0a
push 0xaa
lea eax, [ebp - 0xb8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xbc]
lea edx, [ebp - 0xb8]
mov ecx, edi
push eax
push 0
push 0x55
call fcn.10021290
cmp dword [ebp - 0xbc], 0
jl 0x10008a0a
push 4
push esi
push ebx
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x10008a0f
xor eax, eax
mov word [esi], ax
mov ecx, esi
call fcn.100086f8
jmp 0x10008a1a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100042bb
mov esp, ebp
pop ebp
ret 8
Function at 0x10009a89
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc0
mov eax, 0x10165c9b
call fcn.10004365
xor ebx, ebx
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xcc], 0x1021a320
mov dword [0x1021a320], ebx
mov dword [0x1021a324], ebx
mov dword [0x1021a328], ebx
xor ecx, ecx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], ebx
push eax
inc ecx
push ecx
push ebx
push str.Control_PanelInternational
push SysReAllocStringLen
mov dword [ebp - 0xc8], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10009bf4
mov edi, dword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea eax, [ebp - 0xc0]
push eax
push ebx
push ebx
push 0x20000020
push str.Languages
push str.User_Profile
push dword [ebp - 0xc4]
mov dword [ebp - 0xc0], ebx
call edi
test eax, eax
jne 0x10009be8
cmp dword [ebp - 0xc0], 3
jbe 0x10009be8
push dword [ebp - 0xc0]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x10009be8
lea eax, [ebp - 0xc0]
push eax
push esi
push ebx
push 0x20
push str.Languages
push str.User_Profile
push dword [ebp - 0xc4]
call edi
test eax, eax
jne 0x10009be0
mov ebx, dword [ebp - 0xc0]
cmp ebx, 3
jbe 0x10009be0
xor edx, edx
shr ebx, 1
push edx
pop ecx
mov eax, edx
mov edi, edx
mov word [esi + ebx*2 - 2], cx
je 0x10009be0
jmp 0x10009b8b
cmp eax, ebx
jae 0x10009b91
inc eax
cmp word [esi + eax*2], dx
je 0x10009b86
cmp word [esi + edi*2], dx
jne 0x10009bdb
cmp edi, eax
jbe 0x10009bdb
xor ecx, ecx
lea eax, [esi + eax*2]
mov word [ebp - 0xbc], cx
lea ecx, [ebp - 0xbc]
push 0x55
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ResolveLocaleName]
test eax, eax
je 0x10009bd6
cmp word [ebp - 0xbc], 0
je 0x10009bd6
lea eax, [ebp - 0xbc]
mov ecx, 0x1021a320
push eax
call fcn.10008ca0
lea eax, [edi + 1]
xor edx, edx
inc edi
cmp edi, ebx
jb 0x10009b8b
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push dword [ebp - 0xc4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x1021a320
call fcn.100045f2
ret 4
Function at 0x10010fdc
Capabilities:
Hash data using djb2

Disassembly:
movzx eax, word [ecx]
mov edx, 0x1505
push esi
xor esi, esi
jmp 0x10010ff6
imul edx, edx, 0x21
movzx eax, ax
xor edx, eax
inc esi
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x10010fe9
imul eax, edx, 0x41c64e6d
imul ecx, edx, 0x10dcd
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret

Function at 0x1001441b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 4], 0x20a
mov word [eax], dx
lea edx, [ebp - 4]
push edx
push eax
push 0
push 2
push 0x10196f70
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
neg eax
sbb al, al
inc al
mov esp, ebp
pop ebp
ret 8

Function at 0x100149a6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0x10
mov esi, ecx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x100149e8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x100149e8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100149e8
cmp word [eax + 2], 0
je 0x100149e8
cmp dword [eax + 0x28], 0xfeef04bd
jne 0x100149e8
add eax, 0x30
jmp 0x100149ed
mov eax, 0x1019a574
pop edi
pop esi
ret
Function at 0x1001b496
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, edx
xor edx, edx
push edi
mov edi, edx
test ecx, ecx
je 0x1001b621
cmp dword [ebp + 8], edx
je 0x1001b621
cmp dword [ebp + 0x10], edx
je 0x1001b621
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test eax, eax
je 0x1001b605
dec eax
mov dword [ebp - 8], eax
mov al, byte [ecx]
mov byte [ebp + edi + 0xc], al
inc edi
inc ecx
mov dword [ebp - 4], ecx
cmp edi, 3
jne 0x1001b54e
cmp ebx, 4
jb 0x1001b60e
movzx eax, byte [ebp + 0xc]
movzx ecx, byte [ebp + 0xd]
movzx edx, byte [ebp + 0xe]
shr eax, 2
shr ecx, 4
mov al, byte [eax*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
mov al, byte [ebp + 0xc]
shl al, 4
or ecx, eax
and ecx, 0x3f
mov al, byte [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov cl, byte [ebp + 0xd]
mov byte [esi + 1], al
mov eax, edx
shl cl, 2
and edx, 0x3f
shr eax, 6
or ecx, eax
and ecx, 0x3f
mov al, byte [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [ebp - 4]
mov byte [esi + 2], al
mov al, byte [edx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
xor edx, edx
mov byte [esi + 3], al
mov edi, edx
add esi, 4
sub ebx, 4
mov eax, dword [ebp - 8]
test eax, eax
jne 0x1001b4cd
test edi, edi
jle 0x1001b603
cmp ebx, 4
jb 0x1001b601
movzx ecx, byte [ebp + 0xd]
cmp edi, 1
push 0x3d
cmovle ecx, eax
and dword [ebp - 8], 0
movzx eax, byte [ebp + 0xe]
cmp edi, 2
mov dword [ebp - 0xc], ecx
cmovle eax, dword [ebp - 8]
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 0xc]
shr eax, 2
movzx ecx, cl
shr ecx, 4
mov al, byte [eax*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
mov al, byte [ebp + 0xc]
shl al, 4
or ecx, eax
and ecx, 0x3f
mov al, byte [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
pop eax
cmp edi, 1
jle 0x1001b5dc
mov eax, dword [ebp - 4]
movzx ecx, al
mov al, byte [ebp - 0xc]
shr ecx, 6
shl al, 2
or ecx, eax
and ecx, 0x3f
push 0x3d
pop eax
mov cl, byte [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x1001b5de
mov cl, al
mov byte [esi + 2], cl
cmp edi, 2
jle 0x1001b5f6
mov eax, dword [ebp - 4]
movzx eax, al
and eax, 0x3f
mov al, byte [eax*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
mov edi, edx
add esi, 4
sub ebx, 4
test edi, edi
jne 0x1001b60e
cmp ebx, 1
jb 0x1001b60e
mov byte [esi], dl
jmp 0x1001b613
mov edx, 0x800700ea
mov eax, dword [ebp + 0x10]
sub esi, dword [ebp + 8]
mov dword [eax], esi
mov eax, edx
pop esi
pop ebx
jmp 0x1001b626
mov eax, 0x80070057
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001c57f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, ecx
push eax
push 0x20019
push 0
push str.CLSID
push SysReAllocStringLen
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1001c616
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 8]
call edi
test eax, eax
jne 0x1001c60b
push 4
pop edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push str.InsecureQI
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001c60b
cmp dword [ebp - 0xc], edi
jne 0x1001c60b
mov edi, dword [ebp - 0x10]
cmp edi, 3
ja 0x1001c60b
cmp dword [ebp - 4], eax
je 0x1001c618
push dword [ebp - 4]
call esi
jmp 0x1001c618
cmp dword [ebp - 4], 0
je 0x1001c616
push dword [ebp - 4]
call esi
xor edi, edi
cmp dword [ebp - 8], 0
je 0x1001c623
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001c8f6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x102196b0], 0
je 0x1001c90e
mov eax, dword [0x102196b8]
jmp 0x1001c9dc
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwarePoliciesMicrosoftSecurity
push SysReAllocStringLen
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001c95c
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x102196b8
push esi
push esi
push str.CLSIDInterfaceTest
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001c95c
cmp dword [ebp - 8], 4
je 0x1001c9b5
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
test eax, eax
je 0x1001c96d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftSecurity
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001c9bd
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x102196b8
push esi
push esi
push str.CLSIDInterfaceTest
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001c9bd
cmp dword [ebp - 8], 4
jne 0x1001c9bd
mov esi, dword [0x102196b8]
jmp 0x1001c9c3
mov dword [0x102196b8], esi
cmp dword [ebp - 4], 0
mov byte [0x102196b0], 1
je 0x1001c9d9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001cd92
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x1020f334]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x55
lea eax, [ebp - 0xc4]
xor ebx, ebx
push eax
push 0x5c
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jle 0x1001cea3
mov ax, word [ebp - 0xc4]
lea ecx, [ebp - 0xc4]
mov edi, ebx
test ax, ax
je 0x1001cdef
movzx edx, ax
imul edi, edi, 0x65
lea ecx, [ecx + 2]
movzx eax, dx
add edi, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x1001cdda
mov edx, dword [0x102196d4]
mov ecx, edi
mov eax, edx
and ecx, 0x3fffffff
shr eax, 2
cmp ecx, eax
je 0x1001cea9
push esi
xor eax, eax
mov dword [ebp - 0xc8], ebx
inc eax
lea edx, [ebp - 0xc8]
push eax
push eax
mov esi, eax
lea ecx, [ebp - 0xc4]
push eax
mov dword [ebp - 0xcc], esi
call fcn.10020c68
test eax, eax
js 0x1001ce90
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xdc]
push ebx
push ebx
mov dword [ebp - 0xdc], eax
mov edx, 0x85
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0x18]
push 0xa
push eax
push ebx
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0xd4], ebx
call fcn.10024bdd
test eax, eax
je 0x1001ce90
push esi
lea edx, [ebp - 0xcc]
lea ecx, [ebp - 0x18]
call fcn.100135e4
mov esi, dword [ebp - 0xcc]
test esi, esi
js 0x1001ce8d
cmp esi, 3
jle 0x1001ce90
xor esi, esi
inc esi
mov edx, edi
and esi, 3
shl edx, 2
or edx, esi
mov dword [0x102196d4], edx
pop esi
jmp 0x1001cea9
mov edx, dword [0x102196d4]
mov ecx, dword [ebp - 4]
and edx, 3
pop edi
xor ecx, ebp
mov eax, edx
pop ebx
call fcn.100042bb
mov esp, ebp
pop ebp
ret
Function at 0x1001e472
Capabilities:
Hash data using djb2

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x1001e47e
or eax, 0xffffffff
pop esi
ret
movzx eax, word [esi]
push ebx
push edi
mov edi, 0x1505
xor ebx, ebx
jmp 0x1001e4a6
movzx ecx, ax
add eax, 0xffffffbf
cmp ax, 0x19
lea edx, [ecx + 0x20]
cmova edx, ecx
imul edi, edi, 0x21
xor edi, edx
inc ebx
movzx eax, word [esi + ebx*2]
test ax, ax
jne 0x1001e48c
imul eax, edi, 0x41c64e6d
imul ecx, edi, 0x10dcd
pop edi
pop ebx
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret
Function at 0x10025406
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x1020f334]
xor eax, esp
mov dword [esp + 0x224], eax
cmp dword [0x1021979c], 0
push esi
push edi
jne 0x10025534
xor edi, edi
lea eax, [esp + 0x20]
push edi
push 0x104
push eax
mov eax, dword [0x1020ff7c]
mov ecx, 0x1020ff7c
push edi
push edi
push 0x19
call dword [eax + 4]
mov esi, 0x572
test eax, eax
jne 0x100254aa
push str.msi_based_gimme_DoOleoInit_FGimmeFileEx_failed
push 0x32
mov edx, esi
mov ecx, 0x23814a2
call fcn.1003211b
pop ecx
pop ecx
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x208
push eax
lea eax, [esp + 0x24]
push eax
push edi
push 2
push str.office.odf
push str.SoftwareMicrosoftOffice16.0CommonFilesPaths
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x100254aa
push str.msi_based_gimme_DoOleoInit_GetFallBackOleoOdfPath_failed
push 0x32
mov ecx, 0x23814a3
jmp 0x1002552b
push 0x18000
lea ecx, [esp + 0x24]
call fcn.1000532e
test eax, eax
jns 0x1002550a
cmp eax, 0x8ff00004
je 0x10025511
mov dword [esp + 0x18], eax
mov ecx, 0x23814c0
xor eax, eax
mov dword [esp + 0x10], 0x101a2b70
mov word [esp + 0x1c], ax
lea eax, [esp + 0x10]
push eax
push str.msi_based_gimme_DoOleoInit_MsoHrInitializeOleo_failed
push 0xa
mov dword [esp + 0x20], str.HResult
call fcn.1001cebe
mov eax, dword [0x10210270]
mov ecx, 0x10210270
push 0x85e609
call dword [eax + 4]
xor al, al
jmp 0x10025536
cmp eax, 0x8ff00004
jne 0x1002551f
push str.msi_based_gimme_DoOleoInit_MsoHrInitializeOleo_DataFileError
push 0x32
mov ecx, 0x23814c1
jmp 0x1002552b
push str.msi_based_gimme_DoOleoInit_MsoHrInitializeOleo_succeeded
push 0x64
mov ecx, 0x23814c2
mov edx, esi
call fcn.1003211b
pop ecx
pop ecx
mov al, 1
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
xor ecx, esp
call fcn.100042bb
mov esp, ebp
pop ebp
ret
Function at 0x10028666
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016704a
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x1020f334]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, 0x11c
lea eax, [ebp - 0x12c]
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x12c], edi
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x100286cf
push 0x323658
mov ecx, 0x10210270
jmp 0x100286fc
cmp dword [ebp - 0x128], 6
mov edi, 0x10210270
jae 0x100286ec
mov eax, dword [0x10210270]
mov ecx, edi
push 0x323659
call dword [eax + 4]
cmp dword [ebp - 0x11c], 2
je 0x10028704
push 0x32365a
mov ecx, edi
mov eax, dword [0x10210270]
call dword [eax + 4]
mov eax, dword [ebp - 0x128]
mov edx, dword [ebp - 0x14]
test edx, 0x110
mov cl, byte [ebp - 0x12]
mov dword [esi], eax
mov eax, dword [ebp - 0x124]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x120]
mov byte [esi + 0x10], cl
setne cl
mov dword [esi + 8], eax
movzx eax, word [ebp - 0x18]
shr edx, 8
and dl, 1
mov dword [esi + 0xc], eax
mov byte [esi + 0x11], cl
mov eax, esi
mov byte [esi + 0x12], dl
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.100042bb
mov esp, ebp
pop ebp
ret
Function at 0x10029c60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
mov ecx, 0x811c9dc5
cmp dword [ebp + 0xc], edx
jbe 0x10029c86
push esi
mov esi, dword [ebp + 8]
movzx eax, byte [edx + esi]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x10029c73
pop esi
mov eax, ecx
pop ebp
ret 8

Function at 0x1002b115
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0xffff
push edx
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
push 2
pop edi
cmp edx, edi
jae 0x1002b158
cmp ecx, 1
je 0x1002b156
cmp ecx, edi
jne 0x1002b158
mov eax, edi
cmp eax, 0x3f2
je 0x1002b1a3
cmp eax, 0x3fa
je 0x1002b1a3
cmp eax, 6
je 0x1002b1a3
test eax, eax
jne 0x1002b1a3
cmp ecx, edi
je 0x1002b178
cmp ecx, 1
jne 0x1002b184
shr edx, 1
xor ecx, ecx
mov word [esi + edx*2 - 2], cx
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ebp + 0x10]
cmp ecx, edx
je 0x1002b1a3
sub ecx, 1
je 0x1002b19d
sub ecx, 1
jne 0x1002b1a1
cmp edx, 1
jne 0x1002b1a1
jmp 0x1002b1a3
cmp edx, edi
je 0x1002b1a3
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc