joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1037279
Capabilities:
Get domain controller name
List groups for user account

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.010a3fb2
mov edi, eax
cmp edi, ebx
je 0x10372b3
push edi
push 0x1b920133
jmp 0x1037391
cmp dword [ebp - 4], ebx
je 0x1037367
push 0x24
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x1037367
lea eax, [ebp - 0x10]
push eax
push 0x80000000
push ebx
push ebx
push dword [ebp - 8]
push ebx
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
cmp eax, ebx
je 0x10372fd
push eax
call fcn.0108ed8e
mov edi, eax
push edi
push 0x1ba50133
jmp 0x1037391
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push ebx
push dword [ebp - 4]
push dword [eax]
call sub.NETAPI32.dll_NetUserGetGroups
cmp eax, ebx
je 0x103732d
push eax
call fcn.0108ed8e
mov edi, eax
push edi
push 0x1bb30133
jmp 0x1037391
push 0x81b
call fcn.01088aa0
push eax
push 0x1004464
call fcn.01099014
pop ecx
xor esi, esi
pop ecx
cmp dword [ebp + 8], ebx
jbe 0x1037363
mov eax, dword [ebp - 0xc]
push dword [eax + esi*4]
push 0x1001d28
call fcn.01099014
inc esi
pop ecx
pop ecx
cmp esi, dword [ebp + 8]
jb 0x103734b
xor edi, edi
jmp 0x1037396
push 0x85c
call fcn.01088aa0
push eax
call fcn.01099014
mov dword [esp], 0x1004208
call fcn.01099014
pop ecx
mov eax, 0x80070057
push eax
mov edi, eax
push 0x1b990133
call fcn.010893e6
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], ebx
je 0x10373a6
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], ebx
je 0x10373b0
push dword [ebp - 4]
call esi
cmp dword [ebp - 0xc], ebx
je 0x10373bd
push dword [ebp - 0xc]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10460dd
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push esi
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp + 0x18], edi
cmp dword [ebp + 0x1c], edi
jbe 0x1046125
mov eax, dword [ebp + 0x1c]
sub eax, edi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
test eax, eax
jne 0x1046125
mov eax, 0x8007000e
push eax
push 0x6c013e
mov esi, eax
call fcn.010893e6
jmp 0x10461de
push ebx
xor ebx, ebx
inc ebx
cmp dword [ebp + 0x10], ebx
jle 0x10461db
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
xor eax, eax
cmp dword [ebp + 8], 0x10
setne al
add eax, 0x8003
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1046204
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 4]
call esi
test eax, eax
je 0x1046213
mov eax, dword [ebp + 0x18]
cmp dword [ebp + 0x1c], eax
jbe 0x10461a9
mov ecx, dword [ebp + 0x1c]
sub ecx, eax
push ecx
push ebx
push dword [ebp - 8]
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0x1c]
sub eax, dword [ebp + 0x18]
add esp, 0xc
push 0
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call esi
test eax, eax
je 0x1046222
push 0
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
mov dword [ebp + 0x18], edi
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1046231
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
and dword [ebp - 4], 0
inc ebx
cmp ebx, dword [ebp + 0x10]
jl 0x1046149
xor esi, esi
pop ebx
cmp dword [ebp - 8], 0
je 0x10461ed
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], 0
je 0x10461fc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
mov eax, esi
pop esi
leave
ret 0x18
call fcn.0108edc3
mov esi, eax
push esi
push 0x7d013e
jmp 0x104623e
call fcn.0108edc3
mov esi, eax
push esi
push 0x85013e
jmp 0x104623e
call fcn.0108edc3
mov esi, eax
push esi
push 0x97013e
jmp 0x104623e
call fcn.0108edc3
mov esi, eax
push esi
push 0xa6013e
call fcn.010893e6
jmp 0x10461dd
Function at 0x104624a
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x10cd598]
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 0x104628a
mov esi, 0x80070057
push esi
push 0x1f6013e
call fcn.010893e6
jmp 0x104638d
push edi
push 0x20
pop ecx
cmp dword [eax], ecx
jne 0x1046326
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 0x10462be
call fcn.0108edc3
mov esi, eax
push esi
push 0x1fe013e
jmp 0x104636c
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 0x10462f1
call fcn.0108edc3
mov esi, eax
push esi
push 0x208013e
jmp 0x104636c
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 0x104638a
call fcn.0108edc3
mov esi, eax
push esi
push 0x212013e
jmp 0x104636c
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.010ba3b0
mov esi, eax
test esi, esi
je 0x1046354
push esi
push 0x224013e
jmp 0x104636c
lea eax, [ebp - 0x84]
push eax
call fcn.010babe0
mov esi, eax
test esi, esi
je 0x1046373
push esi
push 0x227013e
call fcn.010893e6
jmp 0x104638c
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.010bac30
xor esi, esi
pop edi
cmp dword [ebp - 0x88], 0
je 0x10463a2
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.01074bd5
leave
ret 0xc
Function at 0x10464bf
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x10cd598]
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 0x1046530
cmp eax, 0x20
je 0x1046530
cmp eax, 0x40
jne 0x1046520
push dword [ebp + 0x10]
push ecx
push 0x804
call fcn.0108cc81
push 0x1004208
call fcn.01099014
pop ecx
mov edi, 0x8000ffff
push edi
push 0x27e013e
jmp 0x1046630
mov edi, dword [ebp + 0x10]
cmp edi, 0xa0000
jbe 0x104654b
mov edi, 0x80070216
push edi
push 0x286013e
jmp 0x1046630
lea eax, [edi + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebx], eax
test eax, eax
jne 0x104656d
mov edi, 0x8007000e
push edi
push 0x28c013e
jmp 0x1046630
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 0x10465df
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 0x10465b4
call fcn.0108edc3
mov edi, eax
push edi
push 0x299013e
jmp 0x1046630
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 0x104664b
call fcn.0108edc3
mov edi, eax
push edi
push 0x2a7013e
jmp 0x1046630
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.010b9ea0
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.010ba350
mov edi, eax
test edi, edi
je 0x1046637
push edi
push 0x2c9013e
call fcn.010893e6
jmp 0x104664d
mov eax, dword [ebp - 0x88]
add dword [esi], eax
lea eax, [ebp - 0x84]
push eax
call fcn.010bac30
xor edi, edi
cmp dword [ebp - 0x8c], 0
je 0x1046662
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test edi, edi
je 0x1046676
mov eax, dword [ebx]
test eax, eax
je 0x1046676
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.01074bd5
leave
ret 0x14
Function at 0x104668e
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x10cd598]
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 0x10466e9
cmp ecx, 0x20
je 0x10466f2
mov esi, 0x8000ffff
push esi
push 0x2f7013e
jmp 0x1046843
cmp ecx, 0x20
jne 0x10467ae
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 0x104671a
call fcn.0108edc3
mov esi, eax
push esi
push 0x2fe013e
jmp 0x1046843
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 0x1046745
call fcn.0108edc3
mov esi, eax
push esi
push 0x30e013e
jmp 0x1046843
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 0x104676b
mov esi, 0x8007000e
push esi
push 0x315013e
jmp 0x1046843
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 0x104685e
call fcn.0108edc3
mov esi, eax
push esi
push 0x326013e
jmp 0x1046843
push 0x20
lea esi, [eax + 8]
pop ecx
lea edi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
cmp edx, 0xa0000
jbe 0x10467d1
mov esi, 0x80070216
push esi
push 0x339013e
jmp 0x1046843
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 0x10467f6
mov esi, 0x8007000e
push esi
push 0x33f013e
jmp 0x1046843
push ebx
push eax
push dword [ebp - 0x94]
lea eax, [ebp - 0x84]
push eax
call fcn.010b95e0
mov esi, eax
test esi, esi
je 0x1046818
push esi
push 0x349013e
jmp 0x1046843
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.010b9e40
mov esi, eax
test esi, esi
je 0x104684a
push esi
push 0x354013e
call fcn.010893e6
jmp 0x1046860
mov eax, dword [ebp - 0x90]
add dword [ebx], eax
lea eax, [ebp - 0x84]
push eax
call fcn.010bac30
xor esi, esi
cmp dword [ebp - 0x88], 0
je 0x1046875
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test esi, esi
je 0x104688f
mov edi, dword [ebp - 0x8c]
mov eax, dword [edi]
test eax, eax
je 0x104688f
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.01074bd5
leave
ret 0x14
Function at 0x1046e94
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10cd598]
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 0x1046eee
call fcn.0108edc3
mov edi, eax
push edi
push 0x7df013e
jmp 0x1046fb6
lea eax, [ebp - 0x14]
push eax
call fcn.01088ec2
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 0x1046f16
push edi
push 0x7e6013e
jmp 0x1046fb6
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 [0x10cf1c8]
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, 0x100aed8
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 0x1046f6d
call fcn.0108edc3
mov edi, eax
push edi
push 0x7f7013e
jmp 0x1046fb6
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 0x1046f95
call fcn.0108edc3
mov edi, eax
push edi
push 0x7fc013e
jmp 0x1046fb6
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 0x1046fbd
call fcn.0108edc3
mov edi, eax
push edi
push 0x805013e
call fcn.010893e6
jmp 0x1046fbf
xor edi, edi
cmp dword [ebp - 0x24], ebx
je 0x1046fcd
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x20], ebx
je 0x1046fdc
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x18], ebx
je 0x1046fea
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x1c], ebx
je 0x1046ff8
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.01074bd5
leave
ret 0x18
Function at 0x104d73d
Capabilities:
Get domain controller name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x10cd598]
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 0x104d806
lea eax, [ebp - 0x234]
push eax
push ecx
call fcn.0104d118
mov ebx, eax
test ebx, ebx
je 0x104d7ae
push ebx
push 0x2240135
jmp 0x104d88e
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 0x104d814
call fcn.0108edc3
mov ebx, eax
push ebx
push 0x2340135
jmp 0x104d88e
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
call fcn.01048c8a
jmp 0x104d816
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 0x104d83d
push ebx
push 0x2430135
jmp 0x104d88e
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 0x104d862
push ebx
push 0x2480135
jmp 0x104d88e
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 0x104d895
push ebx
push 0x2520135
call fcn.010893e6
jmp 0x104d8c0
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 0x104d8be
push eax
push 0x25a0135
call fcn.010893e6
xor ebx, ebx
cmp dword [ebp - 0x230], 0xffffffff
je 0x104d8d6
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.NTDSAPI.dll_DsUnBindW]
cmp dword [ebp - 0x22c], 0
je 0x104d8ea
push dword [ebp - 0x22c]
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [ebp - 0x234], 0
je 0x104d8ff
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.01074bd5
leave
ret 0x18
Function at 0x104da7f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x10cd598]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, 0x1004208
push esi
call fcn.01099014
pop ecx
push ebx
push dword [ebp + 8]
push 0x821
call fcn.01088aa0
push eax
call fcn.01099014
push esi
call fcn.01099014
push ebx
push 0x100bccc
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.01032700
add esp, 0x20
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x104db0c
call fcn.0108edc3
mov edi, eax
push edi
push 0x820
call fcn.01088c36
push edi
push edi
push 0x2d40135
call fcn.01089403
jmp 0x104db5b
push ebx
call fcn.0104d917
mov edi, eax
test edi, edi
je 0x104db2f
push edi
push 0x81e
call fcn.01088c36
push edi
push edi
push 0x2de0135
call fcn.01089403
push dword [ebp + 0x10]
push ebx
call fcn.0104d26f
mov esi, eax
test esi, esi
je 0x104db5b
push esi
push 0x81f
call fcn.01088c36
push esi
push esi
push 0x2e70135
call fcn.01089403
test edi, edi
jne 0x104db5b
mov edi, esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01074bd5
leave
ret 0xc
Function at 0x105150d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.01074db0
mov eax, dword [0x10cd598]
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 0x1051571
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 0x1051571
push edi
push edi
push 0x12c50136
push esi
jmp 0x10515ad
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 0x10515b4
push edi
push edi
push 0x12cf0136
push ebx
call fcn.0108933a
jmp 0x105162c
cmp dword [ebp - 0x200c], 1
push 0xd
pop edi
je 0x10515e2
cmp dword [ebp - 0x200c], 2
je 0x10515e2
push dword [ebp - 0x200c]
push 0x12d40136
push ebx
call fcn.01089421
push edi
push 0x12d50136
jmp 0x10515f5
mov eax, dword [ebp - 0x2010]
cmp eax, 0x2000
jb 0x10515fd
push edi
push 0x12d90136
push ebx
call fcn.01089421
jmp 0x105162c
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.0108e981
mov edi, eax
test edi, edi
je 0x105162c
push edi
push 0x12de0136
call fcn.010893e6
mov eax, dword [ebp - 0x2008]
test eax, eax
je 0x1051645
cmp dword [ebp - 0x2014], eax
je 0x1051645
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.0108ed8e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01074bd5
leave
ret 0x10
Function at 0x1051661
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x10cd598]
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 0x10516b8
push eax
push eax
push 0x12f90136
jmp 0x1051703
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x42c]
push eax
push edi
push 0x1002030
push dword [ebp - 0x41c]
mov dword [ebp - 0x424], 0x40e
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x10516fc
mov eax, dword [ebp - 0x42c]
cmp eax, edi
jne 0x105170d
mov eax, 0x80070002
push eax
push eax
push 0x13070136
call fcn.01089403
jmp 0x10517fd
push ebx
xor ebx, ebx
inc ebx
cmp eax, ebx
je 0x105173b
cmp eax, 2
je 0x105173b
push eax
push 0x130c0136
push esi
call fcn.01089421
push 0x8007000d
push 0x130d0136
push esi
call fcn.01089421
jmp 0x10517fc
mov eax, dword [ebp - 0x424]
cmp eax, 0x410
jae 0x10517fc
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 0x1051778
lea esi, [ebp - 0x414]
jmp 0x10517cf
cmp word [ebp + 0x10], 0x2e
jne 0x10517c8
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 0x10517c8
cmp esi, eax
je 0x10517c8
movzx eax, word [esi + 2]
mov edi, dword [sym.imp.msvcrt.dll_iswdigit]
jmp 0x10517af
inc ebx
movzx eax, word [esi + ebx*2]
push eax
call edi
pop ecx
test eax, eax
jne 0x10517aa
xor eax, eax
cmp ax, word [esi + ebx*2]
jne 0x10517c8
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.0108c78f
test eax, eax
je 0x10517f5
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x420]
call fcn.0108c78f
test eax, eax
jne 0x10517fc
mov byte [ebp - 0x415], 1
pop ebx
cmp dword [ebp - 0x41c], 0
pop edi
pop esi
je 0x1051814
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.01074bd5
leave
ret 0x10