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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, 0x1074720
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
xor edi, edi
cmp dword [0x1074740], edi
jne 0x103da6b
push 1
push esi
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp eax, edi
mov dword [0x1074740], eax
je 0x103dab9
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x103d75e
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [0x1074708], eax
jne 0x103da63
push dword [0x1074740]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1074740], edi
cmp dword [0x1074740], edi
je 0x103dab9
mov eax, dword [0x1074738]
mov dword [esi], eax
mov dword [esi + 4], 0x1074738
mov dword [eax + 4], esi
mov eax, dword [0x1074740]
push 8
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 7
mov dword [0x1074738], esi
push dword [esi + 0x18]
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
jne 0x103dab3
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 0x103dab9
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 0x103e5e1
Capabilities:
Parse pe header
Terminate process

Disassembly:
pushfd
pushal
call fcn.0100b41e
popal
popfd
push 0x70
push 0x10150a8
call fcn.0103e7b6
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x103e627
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x103e627
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x103e63f
cmp eax, 0x20b
je 0x103e62c
mov dword [ebp - 0x1c], ebx
jmp 0x103e653
cmp dword [ecx + 0x84], 0xe
jbe 0x103e627
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x103e64d
cmp dword [ecx + 0x74], 0xe
jbe 0x103e627
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 [0x1076e64], 0xffffffff
or dword [0x1076e68], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1074530]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x107452c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1076e6c], eax
call fcn.01053d27
cmp dword [0x1073430], ebx
jne 0x103e6ae
push fcn.01053d27
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0103e896
push 0x1072cac
push 0x1072ca8
call sub.msvcrt.dll__initterm
mov eax, dword [0x1074528]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1074524]
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 0x1072ca4
push 0x1072c9c
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 0x103e744
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x103e718
cmp al, 0x22
jne 0x103e70a
cmp byte [esi], 0x22
jne 0x103e721
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x103e72b
cmp al, 0x20
jbe 0x103e71d
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x103e74f
movzx eax, word [ebp - 0x50]
jmp 0x103e752
cmp byte [esi], 0x20
jbe 0x103e721
inc esi
mov dword [ebp - 0x20], esi
jmp 0x103e744
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.01031673
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x103e76f
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x103e7a4
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0103e7f1
ret
Function at 0x103ec9f
Capabilities:
Listen for remote procedure calls

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov esi, 0x1074538
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0103ebee
mov edi, eax
test edi, edi
jne 0x103eced
inc dword [0x1074534]
cmp dword [0x1074534], 1
jne 0x103eced
push 1
push 0x3039
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
mov edi, eax
cmp edi, 0x6b1
jne 0x103eced
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 0x103f609
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x107342c]
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 0x103f6ec
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 0x1010d74
push esi
lea eax, [ebp - 0x28c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x103f6d8
cmp dword [ebp - 0x2a0], 1
jne 0x103f6b7
push dword [ebp - 0x290]
push dword [ebp - 0x294]
call fcn.0103f4dd
mov ebx, eax
cmp ebx, esi
jne 0x103f6d8
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 0x103f6ec
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.0103e4d8
leave
ret 0x24
Function at 0x103f740
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2b0
mov eax, dword [0x107342c]
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 0x103f79c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x103f90d
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
push esi
call ebx
test eax, eax
jne 0x103f7b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x103f90c
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 0x103f90c
push dword [ebp - 0x294]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x28c]
push 0x1015270
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 0x10151e8
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 0x10151a8
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 0x1015180
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 0x103f7aa
test byte [ebp + 0x10], 2
jne 0x103f8ae
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 0x103f8ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [ebp + 0x10], 1
jne 0x103f8b9
call fcn.0103f380
test byte [ebp + 0x10], 4
jne 0x103f906
lea eax, [ebp - 0x298]
push eax
push 0x10154cc
push 0x17
push 0
push 0x10154bc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x103f906
and word [ebp - 0x2a8], ax
mov eax, dword [ebp - 0x298]
lea edx, [ebp - 0x2b0]
push edx
push 0x1015444
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 0x103f91f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x290], 0
je 0x103f934
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x29c], 0
je 0x103f946
cmp dword [ebp - 0x29c], 1
jne 0x103f94c
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
call fcn.0103e4d8
leave
ret 0xc
Function at 0x103fe05
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 [0x107342c]
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp ebx, 0xc000000d
mov dword [ebp - 4], eax
je 0x103ff0b
cmp ebx, 0xc0000017
je 0x103ff02
cmp ebx, 0xc0000023
je 0x103fef9
cmp ebx, 0xc000009a
je 0x103ff02
cmp ebx, 0xc0000321
je 0x103fe60
mov dword [ebp - 0x20], 0x8010001f
jmp 0x103ff19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x8010002a
cmp eax, ecx
mov dword [ebp - 0x20], eax
ja 0x103feb3
je 0x103fee4
cmp eax, 0x8009000d
je 0x103feac
cmp eax, 0x80090016
je 0x103fea5
cmp eax, 0x80090019
je 0x103fea5
cmp eax, 0x8010000a
je 0x103fe9e
cmp eax, 0x8010000c
je 0x103feeb
cmp eax, 0x80100013
jne 0x103ff11
mov ebx, 0xc0000387
jmp 0x103ff11
mov ebx, 0xc0000384
jmp 0x103ff11
mov ebx, 0xc0000386
jmp 0x103ff19
cmp eax, 0x8010002c
jb 0x103ff11
cmp eax, 0x8010002d
jbe 0x103fef2
cmp eax, 0x8010002f
je 0x103fe9e
cmp eax, 0x80100069
je 0x103feeb
cmp eax, 0x8010006b
je 0x103fee4
cmp eax, 0x8010006c
jne 0x103ff11
mov ebx, 0xc0000381
jmp 0x103ff19
mov ebx, 0xc0000380
jmp 0x103ff11
mov ebx, 0xc0000383
jmp 0x103ff11
mov ebx, 0xc0000385
jmp 0x103ff11
mov dword [ebp - 0x20], 0x80090321
jmp 0x103ff19
mov dword [ebp - 0x20], 0xe
jmp 0x103ff19
push 0xd
pop eax
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x1040018
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push 0x20006
push edi
push 0x1010d74
push edi
push 0x1015a80
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1040018
cmp dword [ebp - 0x28], 1
push esi
jne 0x103ff8d
mov esi, 0x1015a38
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 0x1015a10
push dword [ebp - 0x2c]
call esi
push 4
lea eax, [ebp - 0x28]
push eax
push 4
push edi
push 0x10159f0
push dword [ebp - 0x2c]
mov dword [ebp - 0x28], 7
call esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10159cc
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x1040017
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 0x103ffe0
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push 0x10159bc
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 0x1040017
lea eax, [ebp - 0x1c]
cmp dword [ebp - 0x24], eax
je 0x1040017
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.0103e4d8
leave
ret 8
Function at 0x10402ca
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 0x1040301
mov dword [ebp - 8], 0xc0000321
jmp 0x1040392
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 0x1040330
mov dword [ebp - 8], 0xc0000321
jmp 0x1040391
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 0x1040327
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 0x1040389
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [edi], eax
jne 0x104037a
mov dword [ebp - 8], 0xc000009a
jmp 0x1040390
push 0
push ebx
push eax
push 2
push dword [ebp - 4]
call esi
test eax, eax
jne 0x1040390
mov dword [ebp - 8], 0xc0000321
pop ebx
pop edi
cmp dword [ebp - 4], 0
pop esi
je 0x10403a2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
leave
ret 0x18

Function at 0x1040520
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.01040420
test eax, eax
mov dword [ebp + 8], eax
je 0x104056e
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 0x104056e
add ebx, 0x20
push ebx
push 0x20
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1040580
push 0x10013
push 0xc0000321
call fcn.0103fe05
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 8
Function at 0x1040b10
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.0104142c
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x1040bf8
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 0x1040c1f
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 0x1040c1f
cmp esi, ebx
jne 0x1040b8f
cmp dword [ebp + 8], ebx
je 0x1040b8f
push ebx
lea ecx, [ebp - 0x1c]
call fcn.010413a7
push eax
push 0x20
push edi
call dword [sym.imp.ADVAPI32.dll_CryptSetProvParam]
test eax, eax
je 0x1040c1f
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 0x1040bd6
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.0103fe05
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
je 0x1040be4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov esi, dword [ebp - 8]
lea ecx, [ebp - 0x1c]
call fcn.010411db
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x20
cmp dword [ebp + 8], ebx
je 0x1040c09
cmp dword [ebp - 0xc], ebx
jne 0x1040c09
mov esi, 0xc000009a
jmp 0x1040be7
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push eax
call fcn.01040420
mov edi, eax
cmp edi, ebx
jne 0x1040b3b
mov eax, 0xc0000321
jmp 0x1040bbf
Function at 0x1040c26
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 0x1040c47
mov edi, esi
jmp 0x1040c59
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push eax
call fcn.01040420
mov edi, eax
cmp edi, ebx
je 0x1040cb7
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 0x1040cb7
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 0x1040cb7
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 0x1040cb7
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 0x1040cd2
neg esi
sbb esi, esi
and esi, 7
add esi, 0x10008
push esi
push 0xc0000321
call fcn.0103fe05
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], ebx
je 0x1040ce0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], ebx
pop edi
pop esi
pop ebx
je 0x1040cf1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 0xc]
leave
ret 0x20

Function at 0x10411a5
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.010410ae
test eax, eax
jl 0x10411c5
pop ebp
jmp fcn.0104076e
pop ebp
ret 0x20

Function at 0x10415ea
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 0x1015b30
push 0x80000002
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
cmp eax, edi
jne 0x1041671
lea eax, [ebp - 4]
push eax
push 0x2001f
push edi
push dword [ebp + 8]
push dword [ebp - 8]
call esi
cmp eax, edi
jne 0x1041671
cmp dword [ebp + 0xc], edi
je 0x104164e
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 0x104166d
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 0x1041675
mov ebx, eax
jmp 0x1041677
xor ebx, ebx
cmp dword [ebp - 8], edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x1041687
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], edi
je 0x1041691
push dword [ebp - 4]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x10416b6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x107342c]
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 0x1010ef0
mov edi, 0x80000002
push edi
mov dword [ebp - 0x218], 0x63
call esi
test eax, eax
jne 0x1041753
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0x1015bec
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 0x1041753
xor eax, eax
jmp 0x104184f
cmp dword [ebp - 0x220], 0
je 0x1041849
push 0x1015b30
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
call fcn.010415c0
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 0x10417e1
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0x1015bcc
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 0x1015b24
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 0x1041849
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0x1015bcc
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.0103e4d8
leave
ret 4
Function at 0x1059224
Capabilities:
Get file size

Disassembly:
mov eax, 0x106be53
call fcn.01055bd8
sub esp, 0x420
mov eax, dword [0x107342c]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x42c], bl
mov dword [ebp - 0x428], 0x1016a84
mov dword [ebp - 0x424], esi
lea ecx, [ebp - 0x42c]
mov dword [ebp - 4], ebx
call fcn.0104607d
test al, al
jne 0x1059272
push 0x57
pop esi
jmp 0x105931e
push edi
push 0x80000000
mov ecx, esi
mov dword [ebp - 0x41c], ebx
call fcn.01058504
mov edi, eax
cmp edi, 0xffffffff
jne 0x1059299
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x105931d
lea eax, [ebp - 0x418]
push eax
push edi
mov ecx, esi
call fcn.01058ee4
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x420], esi
jne 0x1059316
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x10592cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1059316
cmp dword [ebp - 0x418], ebx
jbe 0x1059306
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 0x1059313
cmp edx, 0x408
jb 0x1059313
inc ebx
add ecx, 0x10
cmp ebx, dword [ebp - 0x418]
jb 0x10592d9
mov esi, dword [ebp - 0x420]
add eax, 0xfffffbf8
cmp dword [ebp - 0x41c], eax
je 0x1059316
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.0104617c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0103e4d8
leave
ret