joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc918
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52764c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.005178fa
mov dword [esi], 0x1c6be60
lea edi, [esi + 0x3c]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x30]
mov dword [edi], 0x1c6bd8c
call fcn.004c1530
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 1
call fcn.004c1530
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 2
call fcn.004c1530
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 3
call fcn.004c1530
mov dword [edi], 0x1c6bd84
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 4
call fcn.005148ea
mov dword [esi + 0xd8], 0
mov dword [esi + 0xd4], 0x1c6be54
mov eax, dword [0x1c9f8e0]
mov dword [esi + 0xdc], eax
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 7
call fcn.004c1530
lea ecx, [esi + 0xf4]
mov byte [esp + 0x18], 8
call fcn.005148ea
mov ecx, dword [esp + 0x10]
mov dword [esi], 0x1c6bd94
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4bca00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5276d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x1c6bd94
lea ecx, [esi + 0xf4]
mov dword [esp + 0x18], 5
call fcn.00514913
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 4
mov dword [ecx], 0x1c6bd80
call fcn.004c1730
lea ecx, [esi + 0xdc]
mov byte [esp + 0x18], 3
call fcn.00516235
lea ecx, [esi + 0xd4]
mov dword [esp + 0xc], ecx
mov dword [ecx], 0x1c6bf18
mov byte [esp + 0x18], 6
call fcn.0051d0c3
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 1
call fcn.00514913
lea edi, [esi + 0x3c]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 9
mov dword [ecx], 0x1c6bd80
call fcn.004c1730
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 8
mov dword [ecx], 0x1c6bd80
call fcn.004c1730
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 7
mov dword [ecx], 0x1c6bd80
call fcn.004c1730
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 0
mov dword [ecx], 0x1c6bd80
call fcn.004c1730
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.005144ac
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4e8ad0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x1cce5d0]
xor edx, edx
cmp eax, edx
jne 0x4e8af6
xor eax, eax
mov byte [eax + 0x1cce4d0], al
inc eax
cmp eax, 0x100
jl 0x4e8ade
mov dword [0x1cce5d0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x1cce4d0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4e8b87
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4e8b5a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4e8b28
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4e8c00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4e8c53
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4e8c3a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ef5d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5286be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004efef0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x1c6ed7c
call fcn.00515f76
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4ef663
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00515f76
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4ef65c
push 0
mov ecx, eax
call fcn.004e6700
mov dword [esi + 0xc], eax
jmp 0x4ef665
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4ef665
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x405732
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.004059f0
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405771
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4237a8], eax
jmp 0x4058fb
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40578b
test eax, eax
je 0x4058a9
test bl, 2
je 0x4058a9
mov esi, 0x420d10
push edi
push esi
call fcn.00405f6a
cmp dword [ebp + 8], 0
je 0x4057aa
push 0x4093ac
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4057b0
push edi
call fcn.00405949
cmp byte [edi], 0
jne 0x4057be
cmp byte [0x420d10], 0x5c
jne 0x4057c9
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40589f
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.0040592d
cmp byte [eax], 0
je 0x40580f
cmp byte [ebp - 0x1c], 0
je 0x40580f
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405825
mov al, byte [esi + 1]
test al, al
je 0x40587e
cmp al, 0x2e
jne 0x405825
cmp byte [esi + 2], 0
je 0x40587e
push esi
push ebx
call fcn.00405f6a
test byte [ebp - 0x14c], 0x10
je 0x40584a
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40587e
push dword [ebp + 0xc]
push edi
call fcn.00405732
jmp 0x40587e
push dword [ebp - 4]
push edi
call fcn.004056ea
test eax, eax
jne 0x405876
cmp dword [ebp - 4], eax
je 0x40586e
push edi
push 0xfffffffffffffff1
call fcn.00405091
push 0
push edi
call fcn.00405d49
jmp 0x40587e
inc dword [0x4237a8]
jmp 0x40587e
push edi
push 0xfffffffffffffff2
call fcn.00405091
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4057ed
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4058a9
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4058fb
cmp dword [ebp - 0xc], esi
jne 0x4058bd
inc dword [0x4237a8]
jmp 0x4058fb
push edi
call fcn.0040626d
test eax, eax
je 0x4058fb
push edi
call fcn.00405902
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004056ea
test eax, eax
jne 0x4058f3
cmp dword [ebp - 4], esi
je 0x4058b5
push edi
push 0xfffffffffffffff1
call fcn.00405091
push esi
push edi
call fcn.00405d49
jmp 0x4058fb
push edi
push 0xffffffffffffffe5
call fcn.00405091
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10061a3
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.01003820
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1006209
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1007910]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x100620d
xor eax, eax
jmp 0x100621a
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
push 0x34
lea edi, [ebx + 4]
push 0
push edi
mov word [ebx + 0x3e], 0x4e4
mov dword [ebp - 0xc], edi
call fcn.10018640
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jbe 0x10001bd7
push esi
call fcn.10017e87
pop ecx
push eax
push esi
push 0
push dword [ebp + 8]
mov dword [ebx + 0x38], eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x10001bd7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001a4ec
push dword [ebx + 0x38]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x10001bdb
xor eax, eax
jmp 0x10001c1d
mov esi, dword [ebp - 4]
push 0xd
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x38]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10001c0a
cmp dword [ebp - 8], 4
jb 0x10001c0a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebx + 0x3c], eax
xor eax, eax
cmp dword [ebx + 0x38], eax
je 0x10001c1d
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0xfeef04bd
jne 0x10001c1d
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10001e7a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x1001e248]
push ebx
push esi
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.1000178c
cmp eax, esi
jne 0x10001f05
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x10001ed1
lea eax, [ebp - 0x6c]
push eax
call fcn.10001e7a
cmp eax, esi
jne 0x10001f04
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x70]
je 0x10001ec4
call fcn.10001727
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.10001727
mov ecx, dword [ebp + 0x94]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10018081
add ebp, 0x98
leave
ret 4
Function at 0x10002841
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x1001e248]
mov ecx, dword [ebp + 0xa8]
push ebx
mov ebx, dword [ebp + 0xa4]
push esi
push edi
push str.SoftwareMeadCoSecMgrMapping_
xor eax, ebp
mov dword [ebp - 0x7c], ecx
mov esi, 0x104
push esi
lea ecx, [ebp - 0x70]
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push ecx
push eax
call fcn.100026a5
push 1
lea eax, [ebp - 0x70]
push eax
xor edi, edi
push SysReAllocStringLen
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], edi
call fcn.1000178c
push eax
call fcn.10001a80
test eax, eax
jge 0x100028f7
push 1
lea eax, [ebp - 0x70]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x74]
call fcn.1000178c
push eax
call fcn.10001a80
cmp eax, edi
mov dword [ebp - 0x80], eax
jge 0x100028f7
push eax
call fcn.100023b5
push edi
mov esi, eax
mov eax, 0x1001be90
push eax
push edi
push edi
push esi
push eax
call fcn.10002591
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x74]
call fcn.10001727
mov eax, dword [ebp - 0x80]
jmp 0x1000291d
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], esi
push edi
push edi
push ebx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.10001727
push esi
call fcn.10001a80
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10018081
add ebp, 0x98
leave
ret 0xc

Function at 0x100029f9
Capabilities:
Encrypt data using rc4 via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x14
push 0x1001a620
call fcn.100184a8
mov dword [ebp - 0x24], ecx
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push 0x8003
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x10002a3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10001a80
or dword [ebp - 4], 0xffffffff
jmp 0x10002aaf
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x10002a75
push dword [ebp + 0x10]
push 0x280000
push dword [ebp - 0x1c]
push 0x6801
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x10002a84
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10001a80
mov dword [ebp - 0x20], eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x1c], esi
jmp 0x10002aa8
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
call fcn.100184e3
ret 0xc
Function at 0x10002f24
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
xor esi, esi
push esi
push 8
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 8], eax
mov eax, dword [ebx]
push ebx
mov dword [ebp - 4], esi
call dword [eax + 0x10]
mov edi, eax
cmp edi, esi
jl 0x10002f66
mov edx, dword [ebx]
lea edi, [ebp - 0x10]
push edi
push 1
xor ecx, ecx
push ecx
xor eax, eax
push eax
push ebx
call dword [edx + 0x14]
mov edi, eax
cmp edi, esi
jge 0x10002f8a
push edi
call fcn.100023b5
push esi
mov ebx, eax
mov eax, 0x1001be90
push eax
push esi
push esi
push ebx
push eax
call fcn.10002591
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10003079
mov edi, dword [ebp - 0x10]
lea eax, [ebp + 0x14]
push eax
push ebx
call dword [sym.imp.ole32.dll_GetHGlobalFromStream]
mov ebx, eax
cmp ebx, esi
jge 0x10002fc4
push ebx
call fcn.100023b5
push esi
mov edi, eax
mov eax, 0x1001be90
push eax
push esi
push esi
push edi
push eax
call fcn.10002591
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
jmp 0x1000307b
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
lea eax, [edi - 4]
push eax
push ebx
push esi
call fcn.10001421
add esp, 0xc
push esi
push esi
push 0x2001f
push esi
push esi
push dword [ebp + 8]
lea ecx, [ebp + 0x10]
push dword [ebp + 0x18]
mov dword [ebx + edi - 4], eax
mov dword [ebp + 0x10], esi
call fcn.1000173e
push eax
call fcn.10001a80
cmp eax, esi
mov dword [ebp + 8], eax
jge 0x10003046
push eax
call fcn.100023b5
push esi
mov edi, eax
mov eax, 0x1001be90
push eax
push esi
push esi
push edi
push eax
call fcn.10002591
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp + 0x10]
call fcn.10001727
cmp ebx, esi
je 0x10003041
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
jmp 0x1000307b
push edi
push ebx
push 3
push esi
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
call fcn.10001a80
lea ecx, [ebp + 0x10]
mov edi, eax
call fcn.10001727
cmp ebx, esi
je 0x10003079
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x10003610
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x20
push 0x1001a680
call fcn.100184a8
mov dword [ebp - 0x28], ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
push 0xf0000000
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push ebx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x10003657
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10001a80
or dword [ebp - 4], 0xffffffff
jmp 0x1000371a
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
call fcn.100029f9
mov dword [ebp - 0x20], eax
cmp eax, ebx
jl 0x100036e3
mov dword [ebp - 0x2c], 0x3e8
mov esi, 0x3f0
mov dword [ebp - 0x30], esi
push esi
call fcn.10017e1e
pop ecx
mov edi, dword [ebp + 0x10]
mov dword [edi], eax
cmp eax, ebx
jne 0x10003698
mov dword [ebp - 0x20], 0x8007000e
jmp 0x100036e3
push esi
push ebx
push eax
call fcn.10018640
add esp, 0xc
push dword [ebp + 8]
push esi
push dword [edi]
call fcn.100020e4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
inc ecx
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
push esi
push eax
push dword [edi]
push ebx
push 1
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x100036e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10001a80
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], ebx
je 0x100036f1
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x10003713
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
call fcn.100184e3
ret 0x10
Function at 0x1000512f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x11c]
sub esp, 0x19c
mov eax, dword [0x1001e248]
push esi
mov esi, dword [ebp + 0x128]
xor eax, ebp
push edi
mov dword [ebp + 0x118], eax
mov eax, dword [ebp + 0x124]
push 0x104
mov dword [ebp + 4], eax
lea eax, [ebp + 0x14]
push eax
push 0x3ed
push esi
mov dword [ebp + 0xc], ecx
mov edi, 0x80004005
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jle 0x1000525a
push ebx
push 0x83e
push 0xd9
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x10005259
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp + 8], eax
je 0x10005259
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
jbe 0x10005259
lea eax, [esi + esi]
push eax
call fcn.10017e1e
pop ecx
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1000523b
test ebx, ebx
je 0x10005246
push esi
push eax
push ebx
call fcn.10018760
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], eax
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x80]
call fcn.10001958
mov ecx, dword [ebp + 0xc]
push esi
push ebx
push dword [ebp - 0x80]
call fcn.10003722
test eax, eax
lea eax, [ebp - 0x7c]
setge byte [ebp + 0x13]
cmp dword [ebp - 0x80], eax
je 0x1000521f
push dword [ebp - 0x80]
call fcn.10017e6d
pop ecx
cmp byte [ebp + 0x13], 0
je 0x1000523b
push ebx
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov edi, eax
neg edi
sbb edi, edi
and edi, 0x80004005
test ebx, ebx
je 0x10005246
push ebx
call fcn.10017e6d
pop ecx
push 0x104
lea eax, [ebp + 0x14]
push 0
push eax
call fcn.10018640
add esp, 0xc
pop ebx
mov ecx, dword [ebp + 0x118]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.10018081
add ebp, 0x11c
leave
ret 8
Function at 0x100094ba
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000950b
cmp dword [ebp + 0x10], 1
je 0x100094f4
cmp dword [ebp + 0x10], 2
jne 0x10009502
test edi, edi
mov eax, dword [ebp - 4]
je 0x10009507
cmp byte [eax + edi - 1], 0
je 0x10009507
push 0xd
pop eax
jmp 0x1000950b
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x10009511
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc
Function at 0x1000b355
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xf8
mov eax, dword [0x1001e248]
push ebx
push esi
mov esi, dword [ebp + 0x80]
xor eax, ebp
push edi
mov edi, dword [ebp + 0x84]
mov dword [ebp + 0x74], eax
call dword [0x1001e040]
lea eax, [ebp + 0xc]
push eax
xor ebx, ebx
push esi
mov dword [ebp + 0xc], ebx
call dword [sym.imp.ole32.dll_StringFromCLSID]
push str.CLSID_
push 0x64
lea eax, [ebp + 0x10]
push eax
call fcn.10001a09
mov esi, eax
cmp esi, ebx
jge 0x1000b3c6
push esi
call fcn.100023b5
push ebx
mov edi, eax
mov eax, 0x1001be90
push eax
push ebx
push ebx
push edi
push eax
call fcn.10002591
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1000b43e
push dword [ebp + 0xc]
lea ecx, [ebp - 0x80]
call fcn.1000214e
push dword [eax]
lea eax, [ebp + 0x10]
push 0x64
push eax
call fcn.100020fb
mov esi, eax
lea eax, [ebp - 0x7c]
cmp dword [ebp - 0x80], eax
je 0x1000b3f1
push dword [ebp - 0x80]
call fcn.10017e6d
pop ecx
cmp esi, ebx
jl 0x1000b3a5
push 1
lea eax, [ebp + 0x10]
push eax
push SysReAllocStringLen
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.1000178c
push eax
call fcn.10001a80
mov esi, eax
cmp esi, ebx
jge 0x1000b453
push esi
call fcn.100023b5
push ebx
mov edi, eax
mov eax, 0x1001be90
push eax
push ebx
push ebx
push edi
push eax
call fcn.10002591
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp + 8]
call fcn.10001727
cmp dword [ebp + 0xc], ebx
je 0x1000b44c
push dword [ebp + 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
jmp 0x1000b4d5
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp + 4]
push eax
push edi
push 0x1001b144
push dword [ebp + 8]
mov dword [ebp + 4], 0x104
call esi
test eax, eax
je 0x1000b4b0
lea eax, [ebp + 4]
push eax
push edi
push str.LocalServer32
push dword [ebp + 8]
call esi
test eax, eax
je 0x1000b4a3
lea ecx, [ebp + 8]
call fcn.10001727
cmp dword [ebp + 0xc], ebx
je 0x1000b49c
push dword [ebp + 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, 0x800401f8
jmp 0x1000b4d5
push edi
call fcn.10009b63
cmp eax, ebx
pop ecx
je 0x1000b4b0
mov byte [eax], bl
push edi
call fcn.1000a1ca
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBlanksA]
lea ecx, [ebp + 8]
call fcn.10001727
cmp dword [ebp + 0xc], ebx
je 0x1000b4d3
push dword [ebp + 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10018081
add ebp, 0x78
leave
ret 8