joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102c7b5
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10b7598]
neg eax
push ebx
sbb eax, eax
push esi
add eax, 0x8b9
push eax
call fcn.0107a681
push eax
push 0x1002a00
call fcn.0108880b
mov eax, dword [0x10b7598]
neg eax
pop ecx
sbb eax, eax
pop ecx
and eax, 0xff000000
add eax, 0x1000000
push eax
xor ebx, ebx
push ebx
push ebx
push ebx
push 0x10029d8
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x102c820
call fcn.010a4804
mov esi, eax
push esi
push 0x34a0140
call fcn.0107ae44
jmp 0x102c963
mov ecx, dword [0x10b7598]
push edi
mov edi, dword [ebp + 8]
neg ecx
sbb ecx, ecx
push ebx
and ecx, 0x80000000
or ecx, 0x1000
push ecx
push 0xffffffffffffffff
push 0x10029bc
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x102c873
call fcn.010a4804
mov esi, eax
cmp esi, ebx
je 0x102c873
push 0x80072ee6
push esi
push 0x35d0140
push edi
call fcn.0107adc0
jmp 0x102c913
cmp dword [0x10b7598], ebx
je 0x102c897
cmp dword [0x10b759c], ebx
je 0x102c8ba
push edi
call fcn.0102bddc
mov esi, eax
cmp esi, ebx
je 0x102c8ba
push esi
push 0x3650140
jmp 0x102c90e
cmp dword [0x10b759c], ebx
je 0x102c8ba
cmp dword [ebp + 8], ebx
je 0x102c8ba
push dword [ebp + 8]
call fcn.0102bb9f
mov esi, eax
cmp esi, ebx
je 0x102c8ba
push esi
push 0x36d0140
jmp 0x102c90e
push dword [ebp + 0xc]
push edi
push dword [ebp + 8]
call fcn.0102c05a
mov esi, eax
cmp esi, ebx
je 0x102c8d7
push esi
push 0x3710140
call fcn.0107ae44
cmp dword [0x10b7598], ebx
jne 0x102c904
cmp dword [0x10b759c], ebx
je 0x102c904
push edi
call fcn.0102bddc
mov edi, eax
cmp edi, ebx
je 0x102c8fe
push edi
push 0x3760140
call fcn.0107ae44
cmp esi, ebx
jne 0x102c908
mov esi, edi
cmp esi, ebx
je 0x102c913
push esi
push 0x37c0140
call fcn.0107ae44
cmp dword [ebp + 8], ebx
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x102c941
push dword [ebp + 8]
call edi
test eax, eax
jne 0x102c941
call fcn.010a4804
mov ebx, eax
push ebx
push 0x3840140
call fcn.0107ae44
test esi, esi
jne 0x102c93f
mov esi, ebx
xor ebx, ebx
push dword [ebp - 4]
call edi
test eax, eax
jne 0x102c962
call fcn.010a4804
mov edi, eax
push edi
push 0x3900140
call fcn.0107ae44
cmp esi, ebx
jne 0x102c962
mov esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x102eeb9
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
push ebx
push esi
xor esi, esi
mov dl, 1
movzx eax, si
mov bl, al
and bl, dl
neg bl
sbb ebx, ebx
and ebx, ecx
shr ax, 1
xor bx, ax
movzx eax, bx
mov bl, al
and bl, dl
neg bl
sbb ebx, ebx
and ebx, ecx
shr ax, 1
xor bx, ax
movzx eax, bx
mov bl, al
and bl, dl
neg bl
sbb ebx, ebx
and ebx, ecx
shr ax, 1
xor bx, ax
movzx eax, bx
mov bl, al
and bl, dl
neg bl
sbb ebx, ebx
and ebx, ecx
shr ax, 1
xor bx, ax
movzx eax, bx
mov bl, al
and bl, dl
neg bl
sbb ebx, ebx
and ebx, ecx
shr ax, 1
xor bx, ax
movzx eax, bx
mov bl, al
and bl, dl
neg bl
sbb ebx, ebx
and ebx, ecx
shr ax, 1
xor bx, ax
movzx eax, bx
mov bl, al
and bl, dl
neg bl
sbb ebx, ebx
and ebx, ecx
shr ax, 1
xor bx, ax
movzx eax, bx
mov bl, al
and bl, dl
neg bl
sbb ebx, ebx
shr ax, 1
and ebx, ecx
xor bx, ax
mov eax, dword [ebp + 8]
mov word [eax + esi*2], bx
inc esi
cmp esi, 0x100
jl 0x102eeca
pop esi
pop ebx
pop ebp
ret 8

Function at 0x102ef81
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
movzx eax, word [edx]
je 0x102efb5
push esi
push edi
movzx edi, byte [ecx]
movzx esi, al
xor esi, edi
mov edi, dword [ebp + 8]
movzx ax, ah
xor ax, word [edi + esi*2]
inc ecx
dec dword [ebp + 0x14]
movzx eax, ax
jne 0x102ef97
pop edi
pop esi
mov word [edx], ax
pop ebp
ret 0x10
Function at 0x10322cd
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.0109312f
mov edi, eax
cmp edi, ebx
je 0x1032307
push edi
push 0x18390133
jmp 0x10323e5
cmp dword [ebp - 4], ebx
je 0x10323bb
push 0x24
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x10323bb
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 0x1032351
push eax
call fcn.010a47cf
mov edi, eax
push edi
push 0x184c0133
jmp 0x10323e5
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 0x1032381
push eax
call fcn.010a47cf
mov edi, eax
push edi
push 0x185a0133
jmp 0x10323e5
push 0x81b
call fcn.0107a681
push eax
push 0x1003f0c
call fcn.0108880b
pop ecx
xor esi, esi
cmp dword [ebp + 8], ebx
pop ecx
jbe 0x10323b7
mov eax, dword [ebp - 0xc]
push dword [eax + esi*4]
push 0x1001bc8
call fcn.0108880b
inc esi
cmp esi, dword [ebp + 8]
pop ecx
pop ecx
jb 0x103239f
xor edi, edi
jmp 0x10323ea
push 0x85c
call fcn.0107a681
push eax
call fcn.0108880b
mov dword [esp], 0x1003d24
call fcn.0108880b
pop ecx
mov eax, 0x80070057
push eax
mov edi, eax
push 0x18400133
call fcn.0107ae44
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x10323fa
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], ebx
je 0x1032404
push dword [ebp - 4]
call esi
cmp dword [ebp - 0xc], ebx
je 0x1032411
push dword [ebp - 0xc]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x103f8a9
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]
cmp dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], edi
jbe 0x103f8f1
mov eax, dword [ebp + 0x1c]
sub eax, edi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 8], eax
jne 0x103f8f1
mov eax, 0x8007000e
push eax
push 0x6c013e
mov esi, eax
call fcn.0107ae44
jmp 0x103f9aa
push ebx
xor ebx, ebx
inc ebx
cmp dword [ebp + 0x10], ebx
jle 0x103f9a7
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 0x103f9d0
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 4]
call esi
test eax, eax
je 0x103f9df
mov eax, dword [ebp + 0x18]
cmp dword [ebp + 0x1c], eax
jbe 0x103f975
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 0x103f9ee
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 0x103f9fd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
and dword [ebp - 4], 0
inc ebx
cmp ebx, dword [ebp + 0x10]
jl 0x103f915
xor esi, esi
pop ebx
cmp dword [ebp - 8], 0
je 0x103f9b9
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], 0
je 0x103f9c8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
mov eax, esi
pop esi
leave
ret 0x18
call fcn.010a4804
mov esi, eax
push esi
push 0x7d013e
jmp 0x103fa0a
call fcn.010a4804
mov esi, eax
push esi
push 0x85013e
jmp 0x103fa0a
call fcn.010a4804
mov esi, eax
push esi
push 0x97013e
jmp 0x103fa0a
call fcn.010a4804
mov esi, eax
push esi
push 0xa6013e
call fcn.0107ae44
jmp 0x103f9a9
Function at 0x103fa16
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x10b5894]
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 0x103fa56
mov esi, 0x80070057
push esi
push 0x1f1013e
call fcn.0107ae44
jmp 0x103fb59
push edi
push 0x20
pop ecx
cmp dword [eax], ecx
jne 0x103faf2
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 0x103fa8a
call fcn.010a4804
mov esi, eax
push esi
push 0x1f9013e
jmp 0x103fb38
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 0x103fabd
call fcn.010a4804
mov esi, eax
push esi
push 0x203013e
jmp 0x103fb38
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 0x103fb56
call fcn.010a4804
mov esi, eax
push esi
push 0x20d013e
jmp 0x103fb38
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.010a3200
mov esi, eax
test esi, esi
je 0x103fb20
push esi
push 0x21f013e
jmp 0x103fb38
lea eax, [ebp - 0x84]
push eax
call fcn.010a3a30
mov esi, eax
test esi, esi
je 0x103fb3f
push esi
push 0x222013e
call fcn.0107ae44
jmp 0x103fb58
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.010a3a80
xor esi, esi
pop edi
cmp dword [ebp - 0x88], 0
je 0x103fb6e
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.01068363
leave
ret 0xc
Function at 0x103fc8b
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x10b5894]
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]
cmp eax, 0x10
push edi
mov dword [ebp - 0x88], ecx
je 0x103fcfc
cmp eax, 0x20
je 0x103fcfc
cmp eax, 0x40
jne 0x103fcec
push dword [ebp + 0x10]
push ecx
push 0x804
call fcn.0107dd80
push 0x1003d24
call fcn.0108880b
pop ecx
mov edi, 0x8000ffff
push edi
push 0x279013e
jmp 0x103fdfc
mov edi, dword [ebp + 0x10]
cmp edi, 0xa0000
jbe 0x103fd17
mov edi, 0x80070216
push edi
push 0x281013e
jmp 0x103fdfc
lea eax, [edi + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebx], eax
jne 0x103fd39
mov edi, 0x8007000e
push edi
push 0x287013e
jmp 0x103fdfc
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 0x103fdab
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 0x103fd80
call fcn.010a4804
mov edi, eax
push edi
push 0x294013e
jmp 0x103fdfc
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 0x103fe17
call fcn.010a4804
mov edi, eax
push edi
push 0x2a2013e
jmp 0x103fdfc
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.010a2cf0
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.010a31a0
mov edi, eax
test edi, edi
je 0x103fe03
push edi
push 0x2c4013e
call fcn.0107ae44
jmp 0x103fe19
mov eax, dword [ebp - 0x88]
add dword [esi], eax
lea eax, [ebp - 0x84]
push eax
call fcn.010a3a80
xor edi, edi
cmp dword [ebp - 0x8c], 0
je 0x103fe2e
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test edi, edi
je 0x103fe42
mov eax, dword [ebx]
test eax, eax
je 0x103fe42
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.01068363
leave
ret 0x14
Function at 0x103fe5a
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x10b5894]
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]
cmp ecx, 0x10
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x88], esi
je 0x103feb5
cmp ecx, 0x20
je 0x103febe
mov esi, 0x8000ffff
push esi
push 0x2f2013e
jmp 0x104000f
cmp ecx, 0x20
jne 0x103ff7a
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 0x103fee6
call fcn.010a4804
mov esi, eax
push esi
push 0x2f9013e
jmp 0x104000f
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 0x103ff11
call fcn.010a4804
mov esi, eax
push esi
push 0x309013e
jmp 0x104000f
push dword [ebx]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], eax
jne 0x103ff37
mov esi, 0x8007000e
push esi
push 0x310013e
jmp 0x104000f
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 0x104002a
call fcn.010a4804
mov esi, eax
push esi
push 0x321013e
jmp 0x104000f
cmp edx, 0xa0000
push 0x20
lea esi, [eax + 8]
pop ecx
lea edi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
jbe 0x103ff9d
mov esi, 0x80070216
push esi
push 0x334013e
jmp 0x104000f
add edx, 8
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov edi, dword [ebp - 0x8c]
mov dword [edi], eax
jne 0x103ffc2
mov esi, 0x8007000e
push esi
push 0x33a013e
jmp 0x104000f
push ebx
push eax
push dword [ebp - 0x94]
lea eax, [ebp - 0x84]
push eax
call fcn.010a2410
mov esi, eax
test esi, esi
je 0x103ffe4
push esi
push 0x344013e
jmp 0x104000f
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.010a2c70
mov esi, eax
test esi, esi
je 0x1040016
push esi
push 0x34f013e
call fcn.0107ae44
jmp 0x104002c
mov eax, dword [ebp - 0x90]
add dword [ebx], eax
lea eax, [ebp - 0x84]
push eax
call fcn.010a3a80
xor esi, esi
cmp dword [ebp - 0x88], 0
je 0x1040041
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test esi, esi
je 0x104005b
mov edi, dword [ebp - 0x8c]
mov eax, dword [edi]
test eax, eax
je 0x104005b
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.01068363
leave
ret 0x14
Function at 0x1040632
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10b5894]
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 0x104068c
call fcn.010a4804
mov edi, eax
push edi
push 0x7cd013e
jmp 0x1040754
lea eax, [ebp - 0x14]
push eax
call fcn.0107a9c6
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 0x10406b4
push edi
push 0x7d4013e
jmp 0x1040754
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 [0x10b7570]
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, 0x100a490
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 0x104070b
call fcn.010a4804
mov edi, eax
push edi
push 0x7e5013e
jmp 0x1040754
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 0x1040733
call fcn.010a4804
mov edi, eax
push edi
push 0x7ea013e
jmp 0x1040754
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 0x104075b
call fcn.010a4804
mov edi, eax
push edi
push 0x7f3013e
call fcn.0107ae44
jmp 0x104075d
xor edi, edi
cmp dword [ebp - 0x24], ebx
je 0x104076b
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x20], ebx
je 0x104077a
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x18], ebx
je 0x1040788
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x1c], ebx
je 0x1040796
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.01068363
leave
ret 0x18
Function at 0x1046e26
Capabilities:
Get domain controller name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0x234], 0xffffffff
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [esi], edi
jne 0x1046edb
lea eax, [ebp - 0x230]
push eax
push ecx
call fcn.01046805
mov edi, eax
test edi, edi
je 0x1046e83
push edi
push 0x2160135
jmp 0x1046f5c
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x230]
mov dword [ebp - 0x23c], 0x101
push 0
mov dword [ebp - 0x238], 0x10
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x1046ee9
call fcn.010a4804
mov edi, eax
push edi
push 0x2260135
jmp 0x1046f5c
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
call fcn.01042598
jmp 0x1046eeb
xor edi, edi
lea eax, [ebp - 0x22c]
push eax
push 0x40000000
push edi
push edi
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
mov edi, eax
test edi, edi
je 0x1046f12
push edi
push 0x2350135
jmp 0x1046f5c
lea eax, [ebp - 0x234]
push eax
mov eax, dword [ebp - 0x22c]
push 0
push dword [eax]
call dword [sym.imp.NTDSAPI.dll_DsBindW]
mov edi, eax
test edi, edi
je 0x1046f37
push edi
push 0x23a0135
jmp 0x1046f5c
mov eax, dword [ebp - 0x22c]
push esi
push ebx
push 1
push dword [eax + 0x1c]
push dword [ebp - 0x234]
call dword [sym.imp.NTDSAPI.dll_DsGetDomainControllerInfoW]
mov edi, eax
test edi, edi
je 0x1046f61
push edi
push 0x2440135
call fcn.0107ae44
cmp dword [ebp - 0x234], 0xffffffff
je 0x1046f77
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.NTDSAPI.dll_DsUnBindW]
cmp dword [ebp - 0x22c], 0
je 0x1046f8b
push dword [ebp - 0x22c]
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [ebp - 0x230], 0
je 0x1046fa0
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01068363
leave
ret 0x10
Function at 0x1049b57
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.01068530
mov eax, dword [0x10b5894]
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]
test esi, esi
push edi
mov dword [ebp - 0x2014], eax
mov dword [ebp - 0x2018], ecx
mov dword [ebp - 0x2008], eax
je 0x1049bbb
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 0x1049bbb
push edi
push edi
push 0xea90136
push esi
jmp 0x1049bf7
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 0x1049bfe
push edi
push edi
push 0xeb30136
push ebx
call fcn.0107adc0
jmp 0x1049c75
cmp dword [ebp - 0x200c], 1
push 0xd
pop edi
je 0x1049c2c
cmp dword [ebp - 0x200c], 2
je 0x1049c2c
push dword [ebp - 0x200c]
push 0xeb80136
push ebx
call fcn.0107ae7f
push edi
push 0xeb90136
jmp 0x1049c3f
mov eax, dword [ebp - 0x2010]
cmp eax, 0x2000
jb 0x1049c47
push edi
push 0xebd0136
push ebx
call fcn.0107ae7f
jmp 0x1049c75
push dword [ebp - 0x2018]
shr eax, 1
and word [ebp + eax*2 - 0x2004], 0
lea eax, [ebp - 0x2004]
push eax
call fcn.010a4a18
mov edi, eax
test edi, edi
je 0x1049c75
push edi
push 0xec20136
call fcn.0107ae44
mov eax, dword [ebp - 0x2008]
test eax, eax
je 0x1049c8e
cmp dword [ebp - 0x2014], eax
je 0x1049c8e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.010a47cf
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01068363
leave
ret 0x10