joyce8/EMBER2024-capa huggingface dataset:
Function at 0x103cc3e
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, 0x1073640
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
xor edi, edi
cmp dword [0x1073660], edi
jne 0x103ccb1
push 1
push esi
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp eax, edi
mov dword [0x1073660], eax
je 0x103ccff
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x103c9a4
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [0x1073638], eax
jne 0x103cca9
push dword [0x1073660]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1073660], edi
cmp dword [0x1073660], edi
je 0x103ccff
mov eax, dword [0x1073658]
mov dword [esi], eax
mov dword [esi + 4], 0x1073658
mov dword [eax + 4], esi
mov eax, dword [0x1073660]
push 8
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 7
mov dword [0x1073658], esi
push dword [esi + 0x18]
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
jne 0x103ccf9
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov dword [esi + 4], edi
mov dword [esi], edi
jmp 0x103ccff
inc dword [esi + 0x10]
xor edi, edi
inc edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x103d353
Capabilities:
Parse pe header
Terminate process

Disassembly:
pushfd
pushal
call fcn.0100b18a
popal
popfd
push 0x70
push 0x1014d38
call fcn.0103d528
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x103d399
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x103d399
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x103d3b1
cmp eax, 0x20b
je 0x103d39e
mov dword [ebp - 0x1c], ebx
jmp 0x103d3c5
cmp dword [ecx + 0x84], 0xe
jbe 0x103d399
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x103d3bf
cmp dword [ecx + 0x74], 0xe
jbe 0x103d399
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1075d84], 0xffffffff
or dword [0x1075d88], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1073460]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x107345c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1075d8c], eax
call fcn.01052914
cmp dword [0x10723e8], ebx
jne 0x103d420
push fcn.01052914
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0103d608
push 0x1071c64
push 0x1071c60
call sub.msvcrt.dll__initterm
mov eax, dword [0x1073458]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1073454]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1071c5c
push 0x1071c54
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x103d4b6
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x103d48a
cmp al, 0x22
jne 0x103d47c
cmp byte [esi], 0x22
jne 0x103d493
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x103d49d
cmp al, 0x20
jbe 0x103d48f
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x103d4c1
movzx eax, word [ebp - 0x50]
jmp 0x103d4c4
cmp byte [esi], 0x20
jbe 0x103d493
inc esi
mov dword [ebp - 0x20], esi
jmp 0x103d4b6
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.01030ff0
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x103d4e1
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x103d516
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0103d563
ret
Function at 0x103da11
Capabilities:
Listen for remote procedure calls

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov esi, 0x1073468
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0103d960
mov edi, eax
test edi, edi
jne 0x103da5f
inc dword [0x1073464]
cmp dword [0x1073464], 1
jne 0x103da5f
push 1
push 0x3039
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
mov edi, eax
cmp edi, 0x6b1
jne 0x103da5f
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.RPCRT4.dll_I_RpcMapWin32Status]
pop edi
pop esi
pop ebp
ret 8
Function at 0x103e37b
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x10723e4]
mov ecx, dword [ebp + 0x18]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x298], ecx
mov ecx, dword [ebp + 0x20]
xor ebx, ebx
cmp dword [ebp + 0x28], esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x294], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x29c], ecx
mov dword [ebp - 0x290], esi
je 0x103e45e
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x290]
push eax
push esi
push 0xf003f
push 1
push 0x1010ab4
push esi
lea eax, [ebp - 0x28c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x103e44a
cmp dword [ebp - 0x2a0], 1
jne 0x103e429
push dword [ebp - 0x290]
push dword [ebp - 0x294]
call fcn.0103e24f
mov ebx, eax
cmp ebx, esi
jne 0x103e44a
push dword [ebp + 0x24]
push dword [ebp - 0x29c]
push dword [ebp + 0x1c]
push esi
push dword [ebp - 0x298]
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
cmp dword [ebp - 0x290], esi
je 0x103e45e
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.0103d24a
leave
ret 0x24
Function at 0x103e4b2
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2b0
mov eax, dword [0x10723e4]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x2a0], esi
mov dword [ebp - 0x298], edi
mov dword [ebp - 0x290], edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x29c], eax
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x103e50e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x103e67f
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
push esi
call ebx
test eax, eax
jne 0x103e527
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x103e67e
lea eax, [ebp - 0x290]
push eax
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp esi, edi
jne 0x103e67e
push dword [ebp - 0x294]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x28c]
push 0x1014f00
push eax
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esp, 0xc
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x290]
call edi
push dword [ebp - 0x294]
lea eax, [ebp - 0x28c]
push 0x1014e78
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x290]
call edi
push dword [ebp - 0x294]
lea eax, [ebp - 0x28c]
push 0x1014e38
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x290]
call edi
push dword [ebp - 0x294]
lea eax, [ebp - 0x28c]
push 0x1014e10
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x290]
call edi
push dword [ebp - 0x2a0]
call ebx
test eax, eax
je 0x103e51c
test byte [ebp + 0x10], 2
jne 0x103e620
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
add eax, 6
push eax
push 0
call dword [sym.imp.USER32.dll_UpdatePerUserSystemParameters]
test eax, eax
jne 0x103e620
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [ebp + 0x10], 1
jne 0x103e62b
call fcn.0103e0f2
test byte [ebp + 0x10], 4
jne 0x103e678
lea eax, [ebp - 0x298]
push eax
push 0x101515c
push 0x17
push 0
push 0x101514c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x103e678
and word [ebp - 0x2a8], ax
mov eax, dword [ebp - 0x298]
lea edx, [ebp - 0x2b0]
push edx
push 0x10150d4
mov word [ebp - 0x2b0], 0xb
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
pop ebx
mov eax, dword [ebp - 0x298]
test eax, eax
pop edi
pop esi
je 0x103e691
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x290], 0
je 0x103e6a6
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x29c], 0
je 0x103e6b8
cmp dword [ebp - 0x29c], 1
jne 0x103e6be
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
call fcn.0103d24a
leave
ret 0xc
Function at 0x103eb77
Capabilities:
Access the windows event log
Persist via windows service
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10723e4]
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp ebx, 0xc000000d
mov dword [ebp - 4], eax
je 0x103ec7d
cmp ebx, 0xc0000017
je 0x103ec74
cmp ebx, 0xc0000023
je 0x103ec6b
cmp ebx, 0xc000009a
je 0x103ec74
cmp ebx, 0xc0000321
je 0x103ebd2
mov dword [ebp - 0x20], 0x8010001f
jmp 0x103ec8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x8010002a
cmp eax, ecx
mov dword [ebp - 0x20], eax
ja 0x103ec25
je 0x103ec56
cmp eax, 0x8009000d
je 0x103ec1e
cmp eax, 0x80090016
je 0x103ec17
cmp eax, 0x80090019
je 0x103ec17
cmp eax, 0x8010000a
je 0x103ec10
cmp eax, 0x8010000c
je 0x103ec5d
cmp eax, 0x80100013
jne 0x103ec83
mov ebx, 0xc0000387
jmp 0x103ec83
mov ebx, 0xc0000384
jmp 0x103ec83
mov ebx, 0xc0000386
jmp 0x103ec8b
cmp eax, 0x8010002c
jb 0x103ec83
cmp eax, 0x8010002d
jbe 0x103ec64
cmp eax, 0x8010002f
je 0x103ec10
cmp eax, 0x80100069
je 0x103ec5d
cmp eax, 0x8010006b
je 0x103ec56
cmp eax, 0x8010006c
jne 0x103ec83
mov ebx, 0xc0000381
jmp 0x103ec8b
mov ebx, 0xc0000380
jmp 0x103ec83
mov ebx, 0xc0000383
jmp 0x103ec83
mov ebx, 0xc0000385
jmp 0x103ec83
mov dword [ebp - 0x20], 0x80090321
jmp 0x103ec8b
mov dword [ebp - 0x20], 0xe
jmp 0x103ec8b
push 0xd
pop eax
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x103ed8a
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push 0x20006
push edi
push 0x1010ab4
push edi
push 0x1015710
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x103ed8a
cmp dword [ebp - 0x28], 1
push esi
jne 0x103ecff
mov esi, 0x10156c8
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 2
push edi
push 0x10156a0
push dword [ebp - 0x2c]
call esi
push 4
lea eax, [ebp - 0x28]
push eax
push 4
push edi
push 0x1015680
push dword [ebp - 0x2c]
mov dword [ebp - 0x28], 7
call esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x101565c
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x103ed89
push edi
push edi
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp - 0x20]
mov dword [ebp - 0x24], edi
push edi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x103ed52
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push 0x101564c
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x1c]
add esp, 0xc
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push 4
push 1
push edi
push dword [ebp + 0xc]
push edi
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
cmp dword [ebp - 0x24], edi
je 0x103ed89
lea eax, [ebp - 0x1c]
cmp dword [ebp - 0x24], eax
je 0x103ed89
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
pop ebx
call fcn.0103d24a
leave
ret 8
Function at 0x103f03c
Capabilities:
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
push 0x8009
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x103f073
mov dword [ebp - 8], 0xc0000321
jmp 0x103f104
push edi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 5
push dword [ebp - 4]
mov dword [ebp - 0x1c], 0x8004
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
jne 0x103f0a2
mov dword [ebp - 8], 0xc0000321
jmp 0x103f103
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x103f099
mov edi, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push ebx
push dword [edi]
push 2
push dword [ebp - 4]
call esi
mov eax, dword [ebx]
test eax, eax
jbe 0x103f0fb
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [edi], eax
jne 0x103f0ec
mov dword [ebp - 8], 0xc000009a
jmp 0x103f102
push 0
push ebx
push eax
push 2
push dword [ebp - 4]
call esi
test eax, eax
jne 0x103f102
mov dword [ebp - 8], 0xc0000321
pop ebx
pop edi
cmp dword [ebp - 4], 0
pop esi
je 0x103f114
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
leave
ret 0x18

Function at 0x103f292
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
and dword [ebp - 4], 0
push ebx
push esi
push eax
call fcn.0103f192
test eax, eax
mov dword [ebp + 8], eax
je 0x103f2e0
mov ebx, dword [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push edi
push 0x10
pop ecx
push ebx
push 0x20
push dword [ebp + 8]
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
call esi
test eax, eax
pop edi
je 0x103f2e0
add ebx, 0x20
push ebx
push 0x20
push dword [ebp + 8]
call esi
test eax, eax
jne 0x103f2f2
push 0x10013
push 0xc0000321
call fcn.0103eb77
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 8
Function at 0x103f882
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.0104019e
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x103f96a
mov edi, esi
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push dword [ebp + 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x103f991
push ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x103f991
cmp esi, ebx
jne 0x103f901
cmp dword [ebp + 8], ebx
je 0x103f901
push ebx
lea ecx, [ebp - 0x1c]
call fcn.01040119
push eax
push 0x20
push edi
call dword [sym.imp.ADVAPI32.dll_CryptSetProvParam]
test eax, eax
je 0x103f991
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push ebx
push ebx
push 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptSignHashW]
test eax, eax
jne 0x103f948
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xea
neg eax
sbb eax, eax
and eax, 0x2fe
add eax, 0xc0000023
neg esi
sbb esi, esi
and esi, 7
add esi, 0x10007
push esi
push eax
call fcn.0103eb77
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
je 0x103f956
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov esi, dword [ebp - 8]
lea ecx, [ebp - 0x1c]
call fcn.0103ff4d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x20
cmp dword [ebp + 8], ebx
je 0x103f97b
cmp dword [ebp - 0xc], ebx
jne 0x103f97b
mov esi, 0xc000009a
jmp 0x103f959
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push eax
call fcn.0103f192
mov edi, eax
cmp edi, ebx
jne 0x103f8ad
mov eax, 0xc0000321
jmp 0x103f931
Function at 0x103f998
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
cmp esi, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
je 0x103f9b9
mov edi, esi
jmp 0x103f9cb
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push eax
call fcn.0103f192
mov edi, eax
cmp edi, ebx
je 0x103fa29
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
add eax, 0x38
push eax
push 0x10001
push edi
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
test eax, eax
je 0x103fa29
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push dword [ebp + 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x103fa29
push ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x103fa29
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
jne 0x103fa44
neg esi
sbb esi, esi
and esi, 7
add esi, 0x10008
push esi
push 0xc0000321
call fcn.0103eb77
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], ebx
je 0x103fa52
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], ebx
pop edi
pop esi
pop ebx
je 0x103fa63
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 0xc]
leave
ret 0x20

Function at 0x103ff17
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0103fe20
test eax, eax
jl 0x103ff37
pop ebp
jmp fcn.0103f4e0
pop ebp
ret 0x20

Function at 0x104037c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor edi, edi
push edi
push 0x10157c0
push 0x80000002
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
cmp eax, edi
jne 0x1040403
lea eax, [ebp - 4]
push eax
push 0x2001f
push edi
push dword [ebp + 8]
push dword [ebp - 8]
call esi
cmp eax, edi
jne 0x1040403
cmp dword [ebp + 0xc], edi
je 0x10403e0
push 4
push dword [ebp + 0x14]
push 4
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x10403ff
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 0xc], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
je 0x1040407
mov ebx, eax
jmp 0x1040409
xor ebx, ebx
cmp dword [ebp - 8], edi
Function at 0x1040448
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x10723e4]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x21c]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x1010c30
mov edi, 0x80000002
push edi
mov dword [ebp - 0x218], 0x63
call esi
test eax, eax
jne 0x10404e5
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0x101587c
push dword [ebp - 0x21c]
mov dword [ebp - 0x214], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x228], 1
jne 0x10404e5
xor eax, eax
jmp 0x10405e1
cmp dword [ebp - 0x220], 0
je 0x10405db
push 0x10157c0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
call fcn.01040332
push dword [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x210]
push eax
push ebx
push 0
lea eax, [ebp - 0x20c]
push eax
push edi
call esi
test eax, eax
jne 0x1040573
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0x101585c
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10157b4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x210]
push eax
push ebx
push 0
lea eax, [ebp - 0x20c]
push eax
push edi
call esi
test eax, eax
jne 0x10405db
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0x101585c
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0103d24a
leave
ret 4
Function at 0x1057c74
Capabilities:
Get file size

Disassembly:
mov eax, 0x106a853
call fcn.01054748
sub esp, 0x420
mov eax, dword [0x10723e4]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x42c], bl
mov dword [ebp - 0x428], 0x1016724
mov dword [ebp - 0x424], esi
lea ecx, [ebp - 0x42c]
mov dword [ebp - 4], ebx
call fcn.01044e15
test al, al
jne 0x1057cc2
push 0x57
pop esi
jmp 0x1057d6e
push edi
push 0x80000000
mov ecx, esi
mov dword [ebp - 0x41c], ebx
call fcn.01056fdc
mov edi, eax
cmp edi, 0xffffffff
jne 0x1057ce9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1057d6d
lea eax, [ebp - 0x418]
push eax
push edi
mov ecx, esi
call fcn.01057924
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x420], esi
jne 0x1057d66
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x1057d1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1057d66
cmp dword [ebp - 0x418], ebx
jbe 0x1057d56
lea ecx, [ebp - 0x410]
movzx edx, byte [ecx + 9]
add edx, dword [ecx + 4]
add dword [ebp - 0x41c], edx
mov edx, dword [ecx]
cmp edx, eax
jae 0x1057d63
cmp edx, 0x408
jb 0x1057d63
inc ebx
add ecx, 0x10
cmp ebx, dword [ebp - 0x418]
jb 0x1057d29
mov esi, dword [ebp - 0x420]
add eax, 0xfffffbf8
cmp dword [ebp - 0x41c], eax
je 0x1057d66
push 0x54
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.01044efc
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0103d24a
leave
ret