joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004ab93
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c3d23
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100dcd6c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
mov ebx, dword [ebp + 8]
mov edx, ebx
or dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x3c], eax
mov dword [eax], edi
mov dword [eax + 4], edi
cmp dword [ebx + 0x14], 8
jb 0x1004abdc
mov edx, dword [ebx]
sub esp, 0x18
lea ecx, [ebp - 0x40]
call fcn.10094aa0
mov esi, eax
test esi, esi
jns 0x1004ac3c
call fcn.10084b3a
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x1004ac26
cmp dword [ebx + 0x14], 8
jb 0x1004ac01
mov ebx, dword [ebx]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], ebx
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x10014aa8
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], esi
push eax
push ecx
push ecx
mov edx, 0x1002f66c
call fcn.100342ac
cmp dword [ebp - 0x40], 0xffffffff
je 0x1004ac35
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x1004acd8
mov esi, dword [ebp - 0x40]
xor eax, eax
push 9
pop ecx
mov dword [ebp - 0x38], edi
lea edi, [ebp - 0x34]
push 0x28
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
jne 0x1004acbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
call fcn.10084b3a
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x1004acac
cmp dword [ebx + 0x14], 8
jb 0x1004ac87
mov ebx, dword [ebx]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], ebx
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x10014aa8
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], edi
push eax
push ecx
push ecx
mov edx, 0x1002f66c
call fcn.100342ac
cmp esi, 0xffffffff
je 0x1004acb8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x1004acd8
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [edx], eax
mov dword [edx + 4], ecx
cmp esi, 0xffffffff
je 0x1004acd6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b2d85
leave
ret 8

Function at 0x10051ec5
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov ecx, 0x811c9dc5
cmp dword [ebp + 8], esi
jbe 0x10051ee8
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc esi
cmp esi, dword [ebp + 8]
jb 0x10051ed6
mov eax, ecx
pop esi
leave
ret 4
Function at 0x100522f3
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x100dcd6c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, dword [ebp + 4]
push 0x100ddbdc
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov esi, dword [0x100ddc34]
xor edi, edi
test esi, esi
je 0x1005233c
cmp dword [esi], ebx
jne 0x1005232c
cmp dword [esi + 4], edi
je 0x10052338
cmp dword [esi + 8], edi
jne 0x10052338
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x10052323
test esi, esi
jne 0x10052384
push 0x20
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10052500
mov eax, ebx
mov dword [esi + 8], edi
mov dword [esi], eax
mov eax, edi
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, 0xea61
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], eax
mov eax, dword [0x100ddc34]
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], eax
mov dword [0x100ddc34], esi
inc dword [esi + 0x10]
inc dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0xc]
cmp eax, 0xea60
jbe 0x10052500
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], edi
push eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x114], edi
push eax
push ecx
call fcn.10052265
mov dword [ebp - 0x11c], eax
test eax, eax
je 0x100523f8
mov edx, 0x10000000
cmp ebx, edx
jb 0x100523f8
mov eax, dword [ebp - 0x114]
lea ecx, [eax + 0x10000000]
cmp ecx, edx
jbe 0x100523f8
cmp ebx, ecx
ja 0x100523f8
sub ebx, edx
jmp 0x100523fa
mov ebx, edi
mov ecx, 0x100da160
call fcn.1003546b
cmp dword [0x100da160], 5
jbe 0x100524c6
push 0x4000
push edi
mov ecx, 0x100da160
call fcn.10032f1d
test al, al
je 0x100524c6
mov ecx, dword [ebp - 0x11c]
mov edx, 0x10016ac8
mov eax, dword [esi + 0x14]
test ecx, ecx
mov dword [ebp - 0x120], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x110]
cmove eax, edx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x11c], eax
mov edx, 0x10030c97
xor eax, eax
mov dword [ebp - 0x12c], 6
test ecx, ecx
cmovne eax, dword [ebp - 0x114]
mov dword [ebp - 0x114], eax
xor eax, eax
test ecx, ecx
cmovne eax, dword [ebp - 0x118]
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push ecx
push ecx
call fcn.1003533d
mov ecx, 0x100da160
call fcn.100354f3
cmp dword [esi + 0x14], 1
mov dword [esi + 0x10], edi
jne 0x10052500
mov esi, 0x100da138
mov ecx, esi
call fcn.1003546b
cmp dword [0x100da138], 0
jbe 0x100524f9
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.100354f3
push 0x100ddbdc
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b2d85
leave
ret
Function at 0x1006063b
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push 0x14
mov eax, 0x100c63c1
call fcn.100b3e57
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x50], ebx
je 0x100606c7
mov edx, 0x811c9dc5
mov ecx, ebx
movzx eax, byte [ebp + ecx + 0x14]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x1006066a
push edx
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0x48]
call fcn.10062357
mov ecx, dword [ebp + 0x4c]
mov eax, dword [eax + 4]
test eax, eax
cmovne ecx, eax
cmp ecx, dword [ebp + 0x4c]
je 0x100606c7
mov esi, dword [ecx + 0xc]
mov edi, dword [ecx + 0x10]
jmp 0x100606bf
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call fcn.1005ff67
test al, al
jne 0x100606c5
add esi, 0x58
cmp esi, edi
jne 0x100606a6
jmp 0x100606c7
mov bl, 1
lea ecx, [ebp + 0x18]
call fcn.1005ded4
mov al, bl
call fcn.100b3e25
ret 0x60

Function at 0x10064130
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor al, al
mov ecx, dword [esi + 0x4c]
cmp ecx, 0xffffffff
je 0x1006428c
mov edx, 0x10000000
cmp ecx, 0x7c
je 0x1006428c
cmp ecx, 0x29
jne 0x10064170
cmp dword [esi + 0x10], 0
jne 0x1006428c
lea edi, [esi + 0x50]
test dword [edi], edx
je 0x10064290
jmp 0x1006424a
lea edi, [esi + 0x50]
cmp ecx, 0x2e
jne 0x1006418e
push 5
lea ecx, [esi + 0x24]
call fcn.1006435a
mov ecx, esi
call fcn.10064107
jmp 0x1006427a
cmp ecx, 0x5c
jne 0x100641e4
mov ecx, esi
call fcn.10064107
test byte [edi], 0x80
je 0x100641d8
movzx eax, word [esi + 0x48]
mov ecx, eax
cmp eax, 0x62
jne 0x100641c0
push 4
lea ecx, [esi + 0x24]
call fcn.1006435a
mov ecx, esi
call fcn.10064107
jmp 0x10064281
cmp ecx, 0x42
jne 0x100641d8
push 4
lea ecx, [esi + 0x24]
call fcn.1006435a
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x100641b4
mov ecx, esi
call fcn.10064efb
jmp 0x1006427a
cmp ecx, 0x5b
jne 0x10064204
mov ecx, esi
call fcn.10064107
mov ecx, esi
call fcn.10064eaf
cmp dword [esi + 0x4c], 0x5d
je 0x10064182
push 4
jmp 0x10064292
cmp ecx, 0x28
jne 0x10064221
mov ecx, esi
call fcn.10064107
mov ecx, esi
call fcn.10064fd3
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x10064290
jmp 0x1006426f
cmp ecx, 0x5e
jne 0x1006422a
push 2
jmp 0x100641ac
cmp ecx, 0x24
jne 0x10064236
push 3
jmp 0x100641ac
cmp ecx, 0x2a
je 0x10064288
cmp ecx, 0x2b
je 0x10064288
cmp ecx, 0x3f
je 0x10064288
cmp ecx, 0x7b
je 0x10064288
cmp ecx, 0x7d
jne 0x10064257
test dword [edi], edx
jne 0x10064260
push 6
jmp 0x10064292
cmp ecx, 0x5d
jne 0x10064260
test dword [edi], edx
je 0x100641fd
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.1006513e
mov bl, 1
mov ecx, esi
call fcn.10064107
test bl, bl
je 0x10064281
mov ecx, esi
call fcn.10065058
mov al, 1
jmp 0x10064137
push 0xa
jmp 0x10064292
pop edi
pop esi
pop ebx
ret
push 5
call fcn.100636a6
int3
Function at 0x10071ea6
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push 0x1e8
mov eax, 0x100c8e16
call fcn.100b3e8a
mov edi, ecx
mov ecx, dword [ebp + 0x14]
lea esi, [edi + 0x180]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x1e4], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x1e8], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x1e0], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x1ec], ecx
mov ecx, esi
push eax
call fcn.10073404
cmp eax, dword [esi]
je 0x10071fb8
add eax, 0x28
lea ecx, [ebp - 0x1dc]
push eax
call fcn.1006bd53
xor ecx, ecx
mov edx, 0x811c9dc5
mov dword [ebp - 4], ecx
movzx eax, byte [ebp + ecx + 0xc]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x10071f10
push edx
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1f4]
push eax
lea ecx, [ebp - 0x148]
call fcn.10062357
mov edx, dword [ebp - 0x144]
mov eax, dword [eax + 4]
test eax, eax
cmovne edx, eax
cmp edx, dword [ebp - 0x144]
je 0x10071fad
lea eax, [ebp - 0x194]
mov ecx, ebx
push eax
call fcn.1004ed30
mov ecx, dword [ebp - 0x1e0]
mov eax, dword [edi + 0x88]
mov dword [ecx], eax
lea eax, [ebp - 0x164]
mov ecx, dword [ebp - 0x1e4]
push eax
call fcn.1004ed30
mov ecx, dword [ebp - 0x1e8]
lea eax, [ebp - 0x17c]
push eax
call fcn.1004ed30
mov ecx, dword [ebp - 0x1ec]
mov al, byte [ebp - 0x14b]
mov byte [ecx], al
lea ecx, [ebp - 0x1dc]
call fcn.10051aee
mov al, 1
jmp 0x10071fba
lea ecx, [ebp - 0x1dc]
call fcn.10051aee
xor al, al
call fcn.100b3e39
ret 0x1c
Function at 0x100835c3
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x100dcd6c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor edx, edx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edi
mov dword [ebp - 0x47c], edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x100835ec
sub esi, ecx
sar esi, 1
jne 0x10083607
mov eax, 0x800700a1
jmp 0x10083788
push 0x5c
pop edx
mov eax, edi
mov ecx, 0x104
cmp word [edi + esi*2 - 2], dx
je 0x10083650
lea eax, [esi + 1]
cmp eax, ecx
jae 0x1008376e
push edi
push ecx
lea eax, [ebp - 0x270]
push eax
call fcn.100a75ce
push 0x10012d8c
lea eax, [ebp - 0x270]
push 0x104
push eax
call fcn.100a755f
add esp, 0x18
lea eax, [ebp - 0x270]
push 0x32
lea ecx, [ebp - 0x68]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x1008370a
lea eax, [esi + 0xf]
mov ecx, 0x104
cmp eax, ecx
jae 0x1008376e
push str._GlobalRoot
push ecx
lea eax, [ebp - 0x270]
push eax
call fcn.100a75ce
push edi
lea eax, [ebp - 0x270]
push 0x104
push eax
call fcn.100a755f
add esp, 0x18
push 0x5c
pop eax
cmp word [edi + esi*2 - 2], ax
je 0x100836bf
push 0x10012d8c
lea eax, [ebp - 0x270]
push 0x104
push eax
call fcn.100a755f
add esp, 0xc
push 0x32
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x1008370a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x1126
je 0x10083703
cmp eax, 1
je 0x10083703
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, ecx
jmp 0x10083788
mov eax, 0x8007007b
jmp 0x10083788
lea eax, [ebp - 0x47c]
mov esi, 0x104
push eax
push esi
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x100836e8
lea ecx, [ebp - 0x478]
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10083737
sub ecx, edx
sar ecx, 1
je 0x1008376a
push 0x5c
pop eax
cmp word [ebp + ecx*2 - 0x47a], ax
jne 0x1008376a
dec ecx
lea eax, [ecx + ecx]
cmp eax, 0x208
jae 0x10083799
xor edx, edx
mov word [ebp + eax - 0x478], dx
cmp ecx, esi
jb 0x10083775
mov eax, 0x8007007a
jmp 0x10083788
lea eax, [ebp - 0x478]
push eax
push esi
push ebx
call fcn.100a75ce
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b2d85
leave
ret 0xc
call fcn.100b2eb9
int3
Function at 0x10084eea
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100dcd6c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x20], esi
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x10084f13
mov eax, dword [edi]
push ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
jne 0x10084f39
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x10084f90
push ecx
lea eax, [ebx - 1]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10084ff2
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
cmp dword [edi + 0x14], 8
jb 0x10084f59
mov edi, dword [edi]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x10084f7d
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x10084f88
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.10053229
lea ecx, [ebp - 0x1c]
call fcn.10053264
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b2d85
leave
ret

Function at 0x10085164
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0xc
mov eax, 0x100cb218
call fcn.100b3e57
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x18], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0x10], ebx
push 0x100225e0
sete al
push eax
push 0x80070057
push 0x10022598
push 0x1f
push dword [ebp + 4]
call fcn.1005223c
add esp, 0x18
mov dword [ebp - 0x10], ebx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100851af
mov eax, dword [esi]
push ebx
push ebx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push 1
push dword [esi + 0x10]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
push 0x10022668
push eax
push 0x10022598
push 0x25
push dword [ebp + 4]
call fcn.1007d7f9
add esp, 0x10
mov ecx, edi
push dword [ebp - 0x10]
call fcn.1007c163
xor edx, edx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x10]
inc edx
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x14], edx
jb 0x100851f8
mov esi, dword [esi]
push ebx
push ebx
lea ecx, [ebp - 0x10]
push ecx
push dword [edi]
push edx
push eax
push esi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
push 0x10022620
push eax
push 0x10022598
push 0x2b
push dword [ebp + 4]
call fcn.1007d7f9
add esp, 0x14
mov eax, edi
call fcn.100b3e25
ret
Function at 0x10086f6b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x100cb5bd
call fcn.100b3e57
mov edi, edx
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.1007c2e8
cmp dword [esi + 0x14], 8
jb 0x10086f93
mov esi, dword [esi]
push eax
push 0x20119
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x10023720
push eax
mov esi, 0x10023760
push esi
push 0x1a
push dword [ebp + 4]
call fcn.10085910
add esp, 0x14
mov dword [ebp - 0x14], ebx
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 0x18], ebx
jb 0x10086fcf
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push ebx
lea ecx, [ebp - 0x18]
push ecx
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x10023740
push eax
push esi
push 0x20
push dword [ebp + 4]
call fcn.10085910
mov esi, dword [ebp + 8]
add esp, 0x14
mov ecx, esi
push dword [ebp - 0x14]
call fcn.10081110
cmp dword [edi + 0x14], 8
jb 0x1008700c
mov edi, dword [edi]
lea eax, [ebp - 0x14]
push eax
push dword [esi]
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x10023740
push eax
push 0x10023760
push 0x25
push dword [ebp + 4]
call fcn.10085910
add esp, 0x14
cmp dword [ebp - 0x10], 0
je 0x10087048
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.100b3e25
ret 4

Function at 0x10087050
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x100cb5e7
call fcn.100b3e57
mov esi, edx
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.1007c2e8
cmp dword [edi + 0x14], 8
jb 0x10087078
mov edi, dword [edi]
push eax
push 0x20106
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x10023720
push eax
mov edi, 0x10023760
push edi
push 0x30
push dword [ebp + 4]
call fcn.10085910
add esp, 0x14
cmp dword [esi + 0x14], 8
jb 0x100870ac
mov esi, dword [esi]
push 4
lea eax, [ebp + 8]
push eax
push 4
push ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x100237d8
push eax
push edi
push 0x34
push dword [ebp + 4]
call fcn.10085910
add esp, 0x14
cmp dword [ebp - 0x10], 0
je 0x100870e2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.100b3e25
ret 4
Function at 0x100870ea
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x100cb611
call fcn.100b3e57
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.1007c2e8
cmp dword [esi + 0x14], 8
jb 0x10087110
mov esi, dword [esi]
push eax
push 0x20119
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x10023720
push eax
mov edi, 0x10023760
push edi
push 0x3f
push dword [ebp + 4]
call fcn.10085910
add esp, 0x14
mov dword [ebp - 0x14], ebx
cmp dword [0x100de764], 8
lea ecx, [ebp - 0x1c]
mov eax, 0x100de750
mov dword [ebp - 0x18], ebx
cmovae eax, dword [0x100de750]
push 4
pop esi
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], esi
push ecx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x10023740
push eax
push edi
push 0x46
push dword [ebp + 4]
call fcn.10085910
add esp, 0x14
cmp dword [ebp - 0x14], esi
jne 0x10087195
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
jmp 0x100871c3
call fcn.10084b3a
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x100871c3
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x100237a0
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x80004005
push eax
push ecx
push ecx
mov edx, 0x10030b3d
call fcn.100343cb
cmp dword [ebp - 0x10], 0
je 0x100871d2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.100b3e25
ret 4
Function at 0x10089d08
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Import public key
Initialize hashing via wincrypt

Disassembly:
push 0x10
mov eax, 0x100cba25
call fcn.100b3e57
mov ebx, ecx
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
push 0xf0000000
push 0x18
push esi
push esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
push 0x10023a48
setne al
movzx eax, al
push eax
push 0x10023930
push 0xc4
push dword [ebp + 4]
call fcn.100811e0
mov edi, dword [ebp - 0x10]
add esp, 0x14
test edi, edi
je 0x10089d7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push esi
push esi
push 0x800c
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
mov edi, 0x10023930
push 0x10023a2c
setne al
movzx eax, al
push eax
push edi
push 0xc8
push dword [ebp + 4]
call fcn.100811e0
mov eax, dword [ebp + 8]
add esp, 0x14
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
sub eax, ecx
push eax
push ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
push 0x10023a8c
setne al
movzx eax, al
push eax
push edi
push 0xcc
push dword [ebp + 4]
call fcn.100811e0
mov edi, dword [ebp - 0x14]
add esp, 0x14
test edi, edi
je 0x10089e0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov eax, dword [ebx]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push ecx
mov eax, dword [eax + 0xc]
add eax, 0x38
push eax
push 0x10001
push dword [ebp - 0x18]
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
test eax, eax
push 0x10023a70
setne al
movzx eax, al
push eax
push 0x10023930
push 0xd2
push dword [ebp + 4]
call fcn.100811e0
mov eax, dword [ebp + 0xc]
add esp, 0x14
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
push esi
push dword [ebp - 0x14]
sub eax, ecx
push eax
push ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
cmp dword [ebp - 0x14], 0
je 0x10089e7f
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x10], 0
je 0x10089e8e
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x18], 0
je 0x10089e9e
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
call fcn.100b3e25
ret 0xc
Function at 0x1008df95
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push 4
pop edx
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x10026760]
sub edx, 1
jne 0x1008df98
mov eax, ecx
ret