joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10469ee
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x10d0620]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
xor edx, edx
cmp dword [ebp + 0x10], 8
push esi
mov dword [ebp - 0x88], edx
je 0x1046a2e
mov esi, 0x80070057
push esi
push 0x1f6013e
call fcn.0108c55a
jmp 0x1046b31
push edi
push 0x20
pop ecx
cmp dword [eax], ecx
jne 0x1046aca
lea ecx, [ebp - 0x88]
push ecx
push edx
push edx
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
jne 0x1046a62
call fcn.01091f43
mov esi, eax
push esi
push 0x1fe013e
jmp 0x1046b10
mov esi, dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
push 8
stosd dword es:[edi], eax
lea eax, [ebp + 0x10]
push eax
push ebx
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x88]
call esi
test eax, eax
jne 0x1046a95
call fcn.01091f43
mov esi, eax
push esi
push 0x208013e
jmp 0x1046b10
push 8
mov eax, 0x8080808
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
push eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push ebx
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x88]
call esi
test eax, eax
jne 0x1046b2e
call fcn.01091f43
mov esi, eax
push esi
push 0x212013e
jmp 0x1046b10
lea esi, [eax + 8]
lea edi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
push 8
stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x84]
push eax
call fcn.010bd550
mov esi, eax
test esi, esi
je 0x1046af8
push esi
push 0x224013e
jmp 0x1046b10
lea eax, [ebp - 0x84]
push eax
call fcn.010bdd80
mov esi, eax
test esi, esi
je 0x1046b17
push esi
push 0x227013e
call fcn.0108c55a
jmp 0x1046b30
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x84]
push eax
call fcn.010bddd0
xor esi, esi
pop edi
cmp dword [ebp - 0x88], 0
je 0x1046b46
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01077dc7
leave
ret 0xc
Function at 0x1046c63
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x10d0620]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
and dword [ebp - 0x8c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x90], eax
mov eax, dword [esi]
push edi
mov dword [ebp - 0x88], ecx
cmp eax, 0x10
je 0x1046cd4
cmp eax, 0x20
je 0x1046cd4
cmp eax, 0x40
jne 0x1046cc4
push dword [ebp + 0x10]
push ecx
push 0x804
call fcn.0108fdf5
push 0x1004310
call fcn.0109c1a8
pop ecx
mov edi, 0x8000ffff
push edi
push 0x27e013e
jmp 0x1046dd4
mov edi, dword [ebp + 0x10]
cmp edi, 0xa0000
jbe 0x1046cef
mov edi, 0x80070216
push edi
push 0x286013e
jmp 0x1046dd4
lea eax, [edi + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebx], eax
test eax, eax
jne 0x1046d11
mov edi, 0x8007000e
push edi
push 0x28c013e
jmp 0x1046dd4
mov eax, dword [ebp - 0x90]
push edi
push dword [ebp - 0x88]
mov dword [eax], edi
push dword [ebx]
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 0x20
pop ecx
cmp dword [esi], ecx
jne 0x1046d83
lea eax, [ebp - 0x8c]
push eax
xor edi, edi
push edi
push edi
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
jne 0x1046d58
call fcn.01091f43
mov edi, eax
push edi
push 0x299013e
jmp 0x1046dd4
push dword [ebp - 0x90]
push dword [ebx]
push edi
push 1
push edi
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x1046def
call fcn.01091f43
mov edi, eax
push edi
push 0x2a7013e
jmp 0x1046dd4
add esi, 8
lea edi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x90]
push esi
push dword [ebx]
lea eax, [ebp - 0x84]
push dword [ebp - 0x88]
push eax
call fcn.010bd040
mov eax, dword [esi]
add eax, dword [ebx]
and dword [ebp - 0x88], 0
lea ecx, [ebp - 0x88]
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.010bd4f0
mov edi, eax
test edi, edi
je 0x1046ddb
push edi
push 0x2c9013e
call fcn.0108c55a
jmp 0x1046df1
mov eax, dword [ebp - 0x88]
add dword [esi], eax
lea eax, [ebp - 0x84]
push eax
call fcn.010bddd0
xor edi, edi
cmp dword [ebp - 0x8c], 0
je 0x1046e06
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test edi, edi
je 0x1046e1a
mov eax, dword [ebx]
test eax, eax
je 0x1046e1a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebx], 0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01077dc7
leave
ret 0x14
Function at 0x1046e32
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x10d0620]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
xor esi, esi
mov dword [ecx], esi
mov dword [ebp - 0x8c], ecx
mov dword [ebx], edx
mov ecx, dword [eax]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x88], esi
cmp ecx, 0x10
je 0x1046e8d
cmp ecx, 0x20
je 0x1046e96
mov esi, 0x8000ffff
push esi
push 0x2f7013e
jmp 0x1046fe7
cmp ecx, 0x20
jne 0x1046f52
lea ecx, [ebp - 0x88]
push ecx
push esi
push esi
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
jne 0x1046ebe
call fcn.01091f43
mov esi, eax
push esi
push 0x2fe013e
jmp 0x1046fe7
push esi
push ebx
push esi
push esi
push 1
push esi
push dword [ebp - 0x88]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
call esi
test eax, eax
jne 0x1046ee9
call fcn.01091f43
mov esi, eax
push esi
push 0x30e013e
jmp 0x1046fe7
push dword [ebx]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], eax
test eax, eax
jne 0x1046f0f
mov esi, 0x8007000e
push esi
push 0x315013e
jmp 0x1046fe7
push dword [ebp + 0x10]
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push dword [ebx]
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x8c]
push dword [eax]
push 0
push 1
push 0
push dword [ebp - 0x88]
call esi
test eax, eax
jne 0x1047002
call fcn.01091f43
mov esi, eax
push esi
push 0x326013e
jmp 0x1046fe7
push 0x20
lea esi, [eax + 8]
pop ecx
lea edi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
cmp edx, 0xa0000
jbe 0x1046f75
mov esi, 0x80070216
push esi
push 0x339013e
jmp 0x1046fe7
add edx, 8
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [ebp - 0x8c]
mov dword [edi], eax
test eax, eax
jne 0x1046f9a
mov esi, 0x8007000e
push esi
push 0x33f013e
jmp 0x1046fe7
push ebx
push eax
push dword [ebp - 0x94]
lea eax, [ebp - 0x84]
push eax
call fcn.010bc780
mov esi, eax
test esi, esi
je 0x1046fbc
push esi
push 0x349013e
jmp 0x1046fe7
mov eax, dword [ebx]
add eax, dword [edi]
and dword [ebp - 0x90], 0
lea ecx, [ebp - 0x90]
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.010bcfe0
mov esi, eax
test esi, esi
je 0x1046fee
push esi
push 0x354013e
call fcn.0108c55a
jmp 0x1047004
mov eax, dword [ebp - 0x90]
add dword [ebx], eax
lea eax, [ebp - 0x84]
push eax
call fcn.010bddd0
xor esi, esi
cmp dword [ebp - 0x88], 0
je 0x1047019
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test esi, esi
je 0x1047033
mov edi, dword [ebp - 0x8c]
mov eax, dword [edi]
test eax, eax
je 0x1047033
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [edi], 0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01077dc7
leave
ret 0x14
Function at 0x1047638
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10d0620]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x28], edx
lea edx, [ebp - 0x1c]
push edx
push 3
push dword [ebp + 0x10]
xor esi, esi
push ecx
xor ebx, ebx
inc esi
push esi
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.CRYPT32.dll_CertAddEncodedCertificateToStore]
test eax, eax
jne 0x1047692
call fcn.01091f43
mov edi, eax
push edi
push 0x7df013e
jmp 0x104775a
lea eax, [ebp - 0x14]
push eax
call fcn.0108c036
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov edi, eax
cmp edi, ebx
je 0x10476ba
push edi
push 0x7e6013e
jmp 0x104775a
mov edx, dword [ebp - 0x18]
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
mov eax, dword [0x10d2258]
mov edi, dword [ebp + 0x1c]
neg eax
sbb eax, eax
and eax, 0xffffffe0
add eax, 0x20
mov dword [ebp - 0x38], eax
or eax, 8
push eax
push esi
mov ecx, 0x100afd8
push ecx
push edx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1047711
call fcn.01091f43
mov edi, eax
push edi
push 0x7f7013e
jmp 0x104775a
lea eax, [ebp - 0x24]
push eax
push esi
push ebx
push dword [ebp + 0x18]
push dword [ebp - 0x28]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1047739
call fcn.01091f43
mov edi, eax
push edi
push 0x7fc013e
jmp 0x104775a
lea eax, [ebp - 0x44]
push eax
push ebx
push 2
push dword [ebp - 0x1c]
call dword [sym.imp.CRYPT32.dll_CertSetCertificateContextProperty]
test eax, eax
jne 0x1047761
call fcn.01091f43
mov edi, eax
push edi
push 0x805013e
call fcn.0108c55a
jmp 0x1047763
xor edi, edi
cmp dword [ebp - 0x24], ebx
je 0x1047771
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x20], ebx
je 0x1047780
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x18], ebx
je 0x104778e
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x1c], ebx
je 0x104779c
push dword [ebp - 0x1c]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01077dc7
leave
ret 0x18
Function at 0x104deed
Capabilities:
Get domain controller name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x10d0620]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
or dword [ebp - 0x230], 0xffffffff
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x240], edx
mov edx, dword [ebp + 0x1c]
mov dword [esi], ebx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x22c], ebx
mov dword [edi], ebx
cmp eax, ebx
jne 0x104dfb6
lea eax, [ebp - 0x234]
push eax
push ecx
call fcn.0104d8c6
mov ebx, eax
test ebx, ebx
je 0x104df5e
push ebx
push 0x2240135
jmp 0x104e03e
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x234]
mov dword [ebp - 0x238], 0x101
push 0
mov dword [ebp - 0x244], 0x10
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x104dfc4
call fcn.01091f43
mov ebx, eax
push ebx
push 0x2340135
jmp 0x104e03e
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
call fcn.01049437
jmp 0x104dfc6
xor ebx, ebx
lea eax, [ebp - 0x22c]
push eax
push 0x40000000
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
mov ebx, eax
test ebx, ebx
je 0x104dfed
push ebx
push 0x2430135
jmp 0x104e03e
lea eax, [ebp - 0x230]
push eax
mov eax, dword [ebp - 0x22c]
push 0
push dword [eax]
call dword [sym.imp.NTDSAPI.dll_DsBindW]
mov ebx, eax
test ebx, ebx
je 0x104e012
push ebx
push 0x2480135
jmp 0x104e03e
mov eax, dword [ebp - 0x22c]
push esi
push dword [ebp - 0x240]
mov esi, dword [sym.imp.NTDSAPI.dll_DsGetDomainControllerInfoW]
push 1
push dword [eax + 0x1c]
push dword [ebp - 0x230]
call esi
mov ebx, eax
test ebx, ebx
je 0x104e045
push ebx
push 0x2520135
call fcn.0108c55a
jmp 0x104e070
mov eax, dword [ebp - 0x22c]
push edi
push dword [ebp - 0x23c]
push 3
push dword [eax + 0x1c]
push dword [ebp - 0x230]
call esi
test eax, eax
je 0x104e06e
push eax
push 0x25a0135
call fcn.0108c55a
xor ebx, ebx
cmp dword [ebp - 0x230], 0xffffffff
je 0x104e086
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.NTDSAPI.dll_DsUnBindW]
cmp dword [ebp - 0x22c], 0
je 0x104e09a
push dword [ebp - 0x22c]
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [ebp - 0x234], 0
je 0x104e0af
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01077dc7
leave
ret 0x18
Function at 0x104e22f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x10d0620]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, 0x1004310
push esi
call fcn.0109c1a8
pop ecx
push ebx
push dword [ebp + 8]
push 0x821
call fcn.0108bc14
push eax
call fcn.0109c1a8
push esi
call fcn.0109c1a8
push ebx
push 0x100bdcc
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.01032ea3
add esp, 0x20
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x104e2bc
call fcn.01091f43
mov edi, eax
push edi
push 0x820
call fcn.0108bdaa
push edi
push edi
push 0x2d40135
call fcn.0108c577
jmp 0x104e30b
push ebx
call fcn.0104e0c7
mov edi, eax
test edi, edi
je 0x104e2df
push edi
push 0x81e
call fcn.0108bdaa
push edi
push edi
push 0x2de0135
call fcn.0108c577
push dword [ebp + 0x10]
push ebx
call fcn.0104da1d
mov esi, eax
test esi, esi
je 0x104e30b
push esi
push 0x81f
call fcn.0108bdaa
push esi
push esi
push 0x2e70135
call fcn.0108c577
test edi, edi
jne 0x104e30b
mov edi, esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01077dc7
leave
ret 0xc
Function at 0x1051cbd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.01077fa0
mov eax, dword [0x10d0620]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x2014], eax
mov dword [ebp - 0x2018], ecx
mov dword [ebp - 0x2008], eax
test esi, esi
je 0x1051d21
lea ecx, [ebp - 0x2008]
push ecx
push 0x20019
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
je 0x1051d21
push edi
push edi
push 0x12c50136
push esi
jmp 0x1051d5d
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x200c]
push eax
push 0
push ebx
push dword [ebp - 0x2008]
mov dword [ebp - 0x2010], 0x1ffe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x1051d64
push edi
push edi
push 0x12cf0136
push ebx
call fcn.0108c4ae
jmp 0x1051ddc
cmp dword [ebp - 0x200c], 1
push 0xd
pop edi
je 0x1051d92
cmp dword [ebp - 0x200c], 2
je 0x1051d92
push dword [ebp - 0x200c]
push 0x12d40136
push ebx
call fcn.0108c595
push edi
push 0x12d50136
jmp 0x1051da5
mov eax, dword [ebp - 0x2010]
cmp eax, 0x2000
jb 0x1051dad
push edi
push 0x12d90136
push ebx
call fcn.0108c595
jmp 0x1051ddc
push dword [ebp - 0x2018]
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x2004], cx
lea eax, [ebp - 0x2004]
push eax
call fcn.01091af5
mov edi, eax
test edi, edi
je 0x1051ddc
push edi
push 0x12de0136
call fcn.0108c55a
mov eax, dword [ebp - 0x2008]
test eax, eax
je 0x1051df5
cmp dword [ebp - 0x2014], eax
je 0x1051df5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.01091f0e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01077dc7
leave
ret 0x10
Function at 0x1051e11
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x10d0620]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x420], ecx
lea ecx, [ebp - 0x41c]
push ecx
push 0x20019
xor edi, edi
push edi
push esi
push eax
mov byte [ebp - 0x415], 0
mov dword [ebp - 0x41c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x1051e68
push eax
push eax
push 0x12f90136
jmp 0x1051eb3
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x42c]
push eax
push edi
push 0x1002068
push dword [ebp - 0x41c]
mov dword [ebp - 0x424], 0x40e
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x1051eac
mov eax, dword [ebp - 0x42c]
cmp eax, edi
jne 0x1051ebd
mov eax, 0x80070002
push eax
push eax
push 0x13070136
call fcn.0108c577
jmp 0x1051fad
push ebx
xor ebx, ebx
inc ebx
cmp eax, ebx
je 0x1051eeb
cmp eax, 2
je 0x1051eeb
push eax
push 0x130c0136
push esi
call fcn.0108c595
push 0x8007000d
push 0x130d0136
push esi
call fcn.0108c595
jmp 0x1051fac
mov eax, dword [ebp - 0x424]
cmp eax, 0x410
jae 0x1051fac
push dword [ebp + 0x10]
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x414], cx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
jne 0x1051f28
lea esi, [ebp - 0x414]
jmp 0x1051f7f
cmp word [ebp + 0x10], 0x2e
jne 0x1051f78
lea eax, [ebp - 0x414]
push 0x2e
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
mov dword [ebp - 0x428], eax
cmp eax, edi
je 0x1051f78
cmp esi, eax
je 0x1051f78
movzx eax, word [esi + 2]
mov edi, dword [sym.imp.msvcrt.dll_iswdigit]
jmp 0x1051f5f
inc ebx
movzx eax, word [esi + ebx*2]
push eax
call edi
pop ecx
test eax, eax
jne 0x1051f5a
xor eax, eax
cmp ax, word [esi + ebx*2]
jne 0x1051f78
mov word [esi], ax
mov esi, dword [ebp - 0x428]
xor eax, eax
mov word [esi], ax
inc esi
inc esi
push esi
push dword [ebp - 0x420]
call fcn.0108f903
test eax, eax
je 0x1051fa5
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x420]
call fcn.0108f903
test eax, eax
jne 0x1051fac
mov byte [ebp - 0x415], 1
pop ebx
cmp dword [ebp - 0x41c], 0
pop edi
pop esi
je 0x1051fc4
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x415]
xor ecx, ebp
call fcn.01077dc7
leave
ret 0x10
Function at 0x1054e6b
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.01054e45
push edi
mov esi, eax
call fcn.0102a9bc
push esi
test eax, eax
je 0x1054fb2
push 0xa60
call fcn.0108bc14
push eax
push 0x1008a34
call fcn.0109c1a8
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push edi
call fcn.010b0070
mov esi, eax
cmp esi, ebx
je 0x1054ed1
push esi
push 0x6540143
jmp 0x1054f46
push dword [ebp - 4]
push 0xa59
call fcn.0108bc14
push eax
push 0x7d0
call fcn.0108bc14
push eax
push dword [ebp + 8]
push dword [ebp + 8]
push 0x100de40
call fcn.0109c1a8
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xa58
push ebx
call fcn.0103d802
mov esi, eax
cmp esi, ebx
je 0x1054f1b
push esi
push 0x65f0143
jmp 0x1054f46
cmp dword [ebp - 4], ebx
je 0x1054f78
cmp dword [0x10d2258], ebx
lea eax, [ebp - 8]
push eax
sete al
movzx eax, al
push ebx
push eax
push dword [ebp - 4]
call fcn.010afefc
mov esi, eax
cmp esi, ebx
je 0x1054f50
push esi
push 0x6680143
call fcn.0108c55a
jmp 0x1054fd7
push dword [ebp - 8]
push edi
call fcn.0108f903
test eax, eax
je 0x1054f78
push dword [ebp - 8]
push 0xa63
call fcn.0108bc14
push eax
push 0x100de1c
call fcn.0109c1a8
add esp, 0xc
cmp byte [ebp + 0xc], bl
je 0x1054fca
push 0xa61
call fcn.0108bc14
push eax
push 0x100c7e0
call fcn.0109c1a8
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1054fca
call fcn.01091f43
push eax
push 0x67b0143
push edi
call fcn.0108c595
jmp 0x1054fca
push 0xa62
call fcn.0108bc14
push eax
push 0x1008a34
call fcn.0109c1a8
add esp, 0xc
push 0x1004310
call fcn.0109c1a8
pop ecx
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], ebx
je 0x1054fe7
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x1054ff1
push dword [ebp - 8]
call edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x10578ad
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x10578c1
mov dword [eax], edi
cmp dword [ebp + 0xc], edi
je 0x10579be
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
je 0x10579be
cmp dword [ebp + 0x14], edi
je 0x10579be
cmp eax, edi
je 0x10579be
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0x10]
push eax
push edi
push ebx
push edi
push dword [ebp + 0xc]
mov dword [ebp + 0x10], edi
push dword [ebp + 8]
call esi
mov dword [ebp - 4], eax
cmp eax, edi
je 0x105791a
push 2
push eax
push 0x6770138
push dword [ebp + 0xc]
call fcn.0108c4ae
jmp 0x10579d1
mov eax, dword [ebp + 0x10]
add eax, 6
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
cmp eax, edi
jne 0x1057949
mov eax, 0x8007000e
push eax
push 0x6800138
mov dword [ebp - 4], eax
call fcn.0108c55a
jmp 0x10579d6
lea ecx, [ebp + 0x10]
push ecx
push eax
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov dword [ebp - 4], eax
cmp eax, edi
je 0x105796f
push eax
push 0x68a0138
push dword [ebp + 0xc]
call fcn.0108c595
jmp 0x10579d1
mov eax, dword [ebx]
cmp eax, 1
je 0x105797b
cmp eax, 7
jne 0x10579b4
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x10]
xor eax, eax
shr edx, 1
lea edi, [ecx + edx*2]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, ecx
xor edx, edx
cmp dx, word [eax]
jne 0x105799c
cmp dx, word [eax + 2]
je 0x10579a0
inc eax
inc eax
jmp 0x105798f
sub eax, ecx
shr eax, 1
xor ecx, ecx
cmp dword [ebx], 1
setne cl
inc ecx
add eax, ecx
add eax, eax
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
jmp 0x10579ec
mov eax, 0x80004003
push eax
push 0x66d0138
mov dword [ebp - 4], eax
call fcn.0108c55a
cmp dword [ebp - 4], edi
je 0x10579ec
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x10579ec
mov eax, dword [esi]
cmp eax, edi
je 0x10579ec
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], edi
push dword [ebp - 4]
call fcn.01091f0e
pop edi
pop esi
pop ebx
leave
ret 0x14