joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102a92c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x102a948
test al, 0x10
jne 0x102a948
xor eax, eax
inc eax
jmp 0x102a94a
xor eax, eax
pop ebp
ret 4

Function at 0x102fffe
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, eax
mov dword [ebp - 0x14], eax
push esi
mov esi, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], eax
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
shr esi, 1
xor ecx, ecx
and ebx, 1
and esi, 1
stosd dword es:[edi], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ebx
mov eax, 0x102feaa
cmp dword [ebp + 8], ecx
jne 0x1030046
mov eax, 0x102fe71
lea edx, [ebp + 0x10]
push edx
push ecx
lea edx, [ebp - 0x14]
push edx
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x1030077
call fcn.01091f1e
push eax
push 0x1c0012f
mov dword [ebp - 4], eax
call fcn.0108c503
jmp 0x10300ff
push 0
push esi
push ebx
push dword [ebp + 8]
call fcn.0102fee9
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, 0x1f4
jmp 0x1030099
cmp dword [ebp - 4], 0x102
jne 0x10300e9
push ebx
push dword [ebp + 0xc]
call edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0102fee9
cmp dword [ebp - 4], 0
jne 0x1030090
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x10300d9
call fcn.01091f1e
push eax
mov dword [ebp - 4], eax
push 0x1d6012f
jmp 0x10300f1
cmp dword [ebp - 4], 0
je 0x10300f6
push dword [ebp - 4]
push 0x1d9012f
jmp 0x10300f1
push dword [ebp - 4]
push 0x1e2012f
call fcn.0108c503
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1031dcc
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10d22a0]
neg eax
push ebx
sbb eax, eax
push esi
add eax, 0x8b9
push eax
call fcn.0108bbbd
push eax
push 0x1002ca8
call fcn.0109c1c3
mov eax, dword [0x10d22a0]
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 0x1002c80
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x1031e37
call fcn.01091f1e
mov esi, eax
push esi
push 0x34c0140
call fcn.0108c503
jmp 0x1031f7a
mov ecx, dword [0x10d22a0]
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 0x1002c64
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x1031e8a
call fcn.01091f1e
mov esi, eax
cmp esi, ebx
je 0x1031e8a
push 0x80072ee6
push esi
push 0x35f0140
push edi
call fcn.0108c457
jmp 0x1031f2a
cmp dword [0x10d22a0], ebx
je 0x1031eae
cmp dword [0x10d22a4], ebx
je 0x1031ed1
push edi
call fcn.01031045
mov esi, eax
cmp esi, ebx
je 0x1031ed1
push esi
push 0x3670140
jmp 0x1031f25
cmp dword [0x10d22a4], ebx
je 0x1031ed1
cmp dword [ebp + 8], ebx
je 0x1031ed1
push dword [ebp + 8]
call fcn.01031513
mov esi, eax
cmp esi, ebx
je 0x1031ed1
push esi
push 0x36f0140
jmp 0x1031f25
push dword [ebp + 0xc]
push edi
push dword [ebp + 8]
call fcn.010317ce
mov esi, eax
cmp esi, ebx
je 0x1031eee
push esi
push 0x3730140
call fcn.0108c503
cmp dword [0x10d22a0], ebx
jne 0x1031f1b
cmp dword [0x10d22a4], ebx
je 0x1031f1b
push edi
call fcn.01031045
mov edi, eax
cmp edi, ebx
je 0x1031f15
push edi
push 0x3780140
call fcn.0108c503
cmp esi, ebx
jne 0x1031f1f
mov esi, edi
cmp esi, ebx
je 0x1031f2a
push esi
push 0x37e0140
call fcn.0108c503
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp + 8], ebx
je 0x1031f58
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1031f58
call fcn.01091f1e
mov ebx, eax
push ebx
push 0x3860140
call fcn.0108c503
test esi, esi
jne 0x1031f56
mov esi, ebx
xor ebx, ebx
push dword [ebp - 4]
call edi
test eax, eax
jne 0x1031f79
call fcn.01091f1e
mov edi, eax
push edi
push 0x3920140
call fcn.0108c503
cmp esi, ebx
jne 0x1031f79
mov esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x10344e0
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
push edi
xor esi, esi
mov dl, 1
movzx eax, si
mov bl, al
and bl, dl
movzx edi, bl
neg edi
sbb edi, edi
and edi, ecx
shr ax, 1
xor di, ax
movzx eax, di
mov bl, al
and bl, dl
movzx edi, bl
neg edi
sbb edi, edi
and edi, ecx
shr ax, 1
xor di, ax
movzx eax, di
mov bl, al
and bl, dl
movzx edi, bl
neg edi
sbb edi, edi
and edi, ecx
shr ax, 1
xor di, ax
movzx eax, di
mov bl, al
and bl, dl
movzx edi, bl
neg edi
sbb edi, edi
and edi, ecx
shr ax, 1
xor di, ax
movzx eax, di
mov bl, al
and bl, dl
movzx edi, bl
neg edi
sbb edi, edi
and edi, ecx
shr ax, 1
xor di, ax
movzx eax, di
mov bl, al
and bl, dl
movzx edi, bl
neg edi
sbb edi, edi
and edi, ecx
shr ax, 1
xor di, ax
movzx eax, di
mov bl, al
and bl, dl
movzx edi, bl
neg edi
sbb edi, edi
and edi, ecx
shr ax, 1
xor di, ax
movzx eax, di
mov bl, al
and bl, dl
movzx edi, bl
neg edi
sbb edi, edi
shr ax, 1
and edi, ecx
xor di, ax
mov eax, dword [ebp + 8]
mov word [eax + esi*2], di
inc esi
cmp esi, 0x100
jl 0x10344f2
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10345c2
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 0x10345f6
push esi
push edi
movzx edi, byte [ecx]
movzx esi, al
xor esi, edi
mov edi, dword [ebp + 8]
shr ax, 8
xor ax, word [edi + esi*2]
inc ecx
dec dword [ebp + 0x14]
movzx eax, ax
jne 0x10345d8
pop edi
pop esi
mov word [edx], ax
pop ebp
ret 0x10
Function at 0x1037934
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.010a7128
mov edi, eax
cmp edi, ebx
je 0x103796e
push edi
push 0x1b920133
jmp 0x1037a4c
cmp dword [ebp - 4], ebx
je 0x1037a22
push 0x24
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x1037a22
lea eax, [ebp - 0x10]
push eax
push SysReAllocString
push ebx
push ebx
push dword [ebp - 8]
push ebx
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
cmp eax, ebx
je 0x10379b8
push eax
call fcn.01091ee9
mov edi, eax
push edi
push 0x1ba50133
jmp 0x1037a4c
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 0x10379e8
push eax
call fcn.01091ee9
mov edi, eax
push edi
push 0x1bb30133
jmp 0x1037a4c
push 0x81b
call fcn.0108bbbd
push eax
push 0x1004554
call fcn.0109c1c3
pop ecx
xor esi, esi
pop ecx
cmp dword [ebp + 8], ebx
jbe 0x1037a1e
mov eax, dword [ebp - 0xc]
push dword [eax + esi*4]
push 0x1001d58
call fcn.0109c1c3
inc esi
pop ecx
pop ecx
cmp esi, dword [ebp + 8]
jb 0x1037a06
xor edi, edi
jmp 0x1037a51
push 0x85c
call fcn.0108bbbd
push eax
call fcn.0109c1c3
mov dword [esp], 0x10042f8
call fcn.0109c1c3
pop ecx
mov eax, 0x80070057
push eax
mov edi, eax
push 0x1b990133
call fcn.0108c503
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], ebx
je 0x1037a61
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], ebx
je 0x1037a6b
push dword [ebp - 4]
call esi
cmp dword [ebp - 0xc], ebx
je 0x1037a78
push dword [ebp - 0xc]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10467c2
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 0x104680a
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 0x104680a
mov eax, 0x8007000e
push eax
push 0x6c013e
mov esi, eax
call fcn.0108c503
jmp 0x10468c3
push ebx
xor ebx, ebx
inc ebx
cmp dword [ebp + 0x10], ebx
jle 0x10468c0
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 0x10468e9
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 4]
call esi
test eax, eax
je 0x10468f8
mov eax, dword [ebp + 0x18]
cmp dword [ebp + 0x1c], eax
jbe 0x104688e
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 0x1046907
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 0x1046916
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
and dword [ebp - 4], 0
inc ebx
cmp ebx, dword [ebp + 0x10]
jl 0x104682e
xor esi, esi
pop ebx
cmp dword [ebp - 8], 0
je 0x10468d2
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], 0
je 0x10468e1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
mov eax, esi
pop esi
leave
ret 0x18
call fcn.01091f1e
mov esi, eax
push esi
push 0x7d013e
jmp 0x1046923
call fcn.01091f1e
mov esi, eax
push esi
push 0x85013e
jmp 0x1046923
call fcn.01091f1e
mov esi, eax
push esi
push 0x97013e
jmp 0x1046923
call fcn.01091f1e
mov esi, eax
push esi
push 0xa6013e
call fcn.0108c503
jmp 0x10468c2
Function at 0x104692f
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x10d0640]
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 0x104696f
mov esi, 0x80070057
push esi
push 0x1f6013e
call fcn.0108c503
jmp 0x1046a72
push edi
push 0x20
pop ecx
cmp dword [eax], ecx
jne 0x1046a0b
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 0x10469a3
call fcn.01091f1e
mov esi, eax
push esi
push 0x1fe013e
jmp 0x1046a51
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 0x10469d6
call fcn.01091f1e
mov esi, eax
push esi
push 0x208013e
jmp 0x1046a51
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 0x1046a6f
call fcn.01091f1e
mov esi, eax
push esi
push 0x212013e
jmp 0x1046a51
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.010bd5a0
mov esi, eax
test esi, esi
je 0x1046a39
push esi
push 0x224013e
jmp 0x1046a51
lea eax, [ebp - 0x84]
push eax
call fcn.010bddd0
mov esi, eax
test esi, esi
je 0x1046a58
push esi
push 0x227013e
call fcn.0108c503
jmp 0x1046a71
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.010bde20
xor esi, esi
pop edi
cmp dword [ebp - 0x88], 0
je 0x1046a87
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.01077d0b
leave
ret 0xc
Function at 0x1046ba4
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x10d0640]
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 0x1046c15
cmp eax, 0x20
je 0x1046c15
cmp eax, 0x40
jne 0x1046c05
push dword [ebp + 0x10]
push ecx
push 0x804
call fcn.0108fdd0
push 0x10042f8
call fcn.0109c1c3
pop ecx
mov edi, 0x8000ffff
push edi
push 0x27e013e
jmp 0x1046d15
mov edi, dword [ebp + 0x10]
cmp edi, 0xa0000
jbe 0x1046c30
mov edi, 0x80070216
push edi
push 0x286013e
jmp 0x1046d15
lea eax, [edi + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebx], eax
test eax, eax
jne 0x1046c52
mov edi, 0x8007000e
push edi
push 0x28c013e
jmp 0x1046d15
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 0x1046cc4
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 0x1046c99
call fcn.01091f1e
mov edi, eax
push edi
push 0x299013e
jmp 0x1046d15
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 0x1046d30
call fcn.01091f1e
mov edi, eax
push edi
push 0x2a7013e
jmp 0x1046d15
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.010bd090
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.010bd540
mov edi, eax
test edi, edi
je 0x1046d1c
push edi
push 0x2c9013e
call fcn.0108c503
jmp 0x1046d32
mov eax, dword [ebp - 0x88]
add dword [esi], eax
lea eax, [ebp - 0x84]
push eax
call fcn.010bde20
xor edi, edi
cmp dword [ebp - 0x8c], 0
je 0x1046d47
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test edi, edi
je 0x1046d5b
mov eax, dword [ebx]
test eax, eax
je 0x1046d5b
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.01077d0b
leave
ret 0x14
Function at 0x1046d73
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x10d0640]
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 0x1046dce
cmp ecx, 0x20
je 0x1046dd7
mov esi, 0x8000ffff
push esi
push 0x2f7013e
jmp 0x1046f28
cmp ecx, 0x20
jne 0x1046e93
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 0x1046dff
call fcn.01091f1e
mov esi, eax
push esi
push 0x2fe013e
jmp 0x1046f28
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 0x1046e2a
call fcn.01091f1e
mov esi, eax
push esi
push 0x30e013e
jmp 0x1046f28
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 0x1046e50
mov esi, 0x8007000e
push esi
push 0x315013e
jmp 0x1046f28
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 0x1046f43
call fcn.01091f1e
mov esi, eax
push esi
push 0x326013e
jmp 0x1046f28
push 0x20
lea esi, [eax + 8]
pop ecx
lea edi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
cmp edx, 0xa0000
jbe 0x1046eb6
mov esi, 0x80070216
push esi
push 0x339013e
jmp 0x1046f28
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 0x1046edb
mov esi, 0x8007000e
push esi
push 0x33f013e
jmp 0x1046f28
push ebx
push eax
push dword [ebp - 0x94]
lea eax, [ebp - 0x84]
push eax
call fcn.010bc7d0
mov esi, eax
test esi, esi
je 0x1046efd
push esi
push 0x349013e
jmp 0x1046f28
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.010bd030
mov esi, eax
test esi, esi
je 0x1046f2f
push esi
push 0x354013e
call fcn.0108c503
jmp 0x1046f45
mov eax, dword [ebp - 0x90]
add dword [ebx], eax
lea eax, [ebp - 0x84]
push eax
call fcn.010bde20
xor esi, esi
cmp dword [ebp - 0x88], 0
je 0x1046f5a
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test esi, esi
je 0x1046f74
mov edi, dword [ebp - 0x8c]
mov eax, dword [edi]
test eax, eax
je 0x1046f74
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.01077d0b
leave
ret 0x14
Function at 0x1047579
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10d0640]
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 0x10475d3
call fcn.01091f1e
mov edi, eax
push edi
push 0x7df013e
jmp 0x104769b
lea eax, [ebp - 0x14]
push eax
call fcn.0108bfdf
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 0x10475fb
push edi
push 0x7e6013e
jmp 0x104769b
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 [0x10d2278]
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, 0x100afc0
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 0x1047652
call fcn.01091f1e
mov edi, eax
push edi
push 0x7f7013e
jmp 0x104769b
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 0x104767a
call fcn.01091f1e
mov edi, eax
push edi
push 0x7fc013e
jmp 0x104769b
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 0x10476a2
call fcn.01091f1e
mov edi, eax
push edi
push 0x805013e
call fcn.0108c503
jmp 0x10476a4
xor edi, edi
cmp dword [ebp - 0x24], ebx
je 0x10476b2
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x20], ebx
je 0x10476c1
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x18], ebx
je 0x10476cf
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x1c], ebx
je 0x10476dd
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.01077d0b
leave
ret 0x18
Function at 0x104de2c
Capabilities:
Get domain controller name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x10d0640]
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 0x104def5
lea eax, [ebp - 0x234]
push eax
push ecx
call fcn.0104d807
mov ebx, eax
test ebx, ebx
je 0x104de9d
push ebx
push 0x2240135
jmp 0x104df7d
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 0x104df03
call fcn.01091f1e
mov ebx, eax
push ebx
push 0x2340135
jmp 0x104df7d
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
call fcn.01049378
jmp 0x104df05
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 0x104df2c
push ebx
push 0x2430135
jmp 0x104df7d
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 0x104df51
push ebx
push 0x2480135
jmp 0x104df7d
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 0x104df84
push ebx
push 0x2520135
call fcn.0108c503
jmp 0x104dfaf
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 0x104dfad
push eax
push 0x25a0135
call fcn.0108c503
xor ebx, ebx
cmp dword [ebp - 0x230], 0xffffffff
je 0x104dfc5
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.NTDSAPI.dll_DsUnBindW]
cmp dword [ebp - 0x22c], 0
je 0x104dfd9
push dword [ebp - 0x22c]
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [ebp - 0x234], 0
je 0x104dfee
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.01077d0b
leave
ret 0x18