joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011140
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0xffffffffffffffff
push 0x1002fd88
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1003c0a0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push 2
lea edi, [esi + 4]
push ebx
mov dword [esi], ebx
mov dword [edi], ebx
mov dword [esp + 0x1c], ebx
mov byte [esi + 0xc], bl
mov byte [esi + 0xd], bl
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x100112a9
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
mov byte [esi + 0xd], 1
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, ebx
jge 0x100111b1
cmp eax, 0x80010119
jne 0x10011258
mov ebp, dword [sym.imp.ole32.dll_CoCreateInstance]
push esi
push 0x10034d08
push 1
push ebx
push 0x10034dd8
call ebp
cmp eax, ebx
jl 0x10011258
lea eax, [esi + 8]
push eax
push 0x10034c74
push 1
push ebx
push 0x10034c64
call ebp
push str.ROOTCIMV2
lea ecx, [esp + 0x1c]
call fcn.10011040
mov eax, dword [eax]
mov dword [esp + 0x24], ebx
cmp eax, ebx
je 0x100111fe
mov ecx, dword [eax]
jmp 0x10011200
xor ecx, ecx
mov eax, dword [esi]
mov edx, dword [eax]
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [esp + 0x18]
mov ebp, eax
mov dword [esp + 0x24], 0xffffffff
call fcn.100110f0
cmp ebp, ebx
jl 0x1001124c
mov eax, dword [edi]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x10011260
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi], ebx
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi], ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x100112a9
mov ebp, dword [esp + 0x2c]
mov byte [esi + 0xc], 1
cmp ebp, ebx
je 0x100112a9
mov edi, dword [edi]
mov eax, dword [edi]
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push 0x10034c54
push edi
call edx
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x100112a9
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x100112a9
mov edx, dword [eax]
push ebp
push 0x10034c54
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4

Function at 0x1001c3c5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003c0a0]
jne 0x1001c3cf
repz ret
jmp fcn.10020b71
Function at 0x1002ca05
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10021a88
and dword [ebp - 4], 0
cmp dword [0x1004010c], 0
mov ebx, eax
jne 0x1002cab6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1002cb67
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10034c14
push edi
call esi
test eax, eax
je 0x1002cb67
push eax
call fcn.10021a16
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1004010c], eax
call esi
push eax
call fcn.10021a16
mov dword [esp], 0x10034bf0
push edi
mov dword [0x10040110], eax
call esi
push eax
call fcn.10021a16
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10040114], eax
call esi
push eax
call fcn.10021a16
pop ecx
mov dword [0x1004011c], eax
test eax, eax
je 0x1002cab6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10021a16
pop ecx
mov dword [0x10040118], eax
mov eax, dword [0x10040118]
cmp eax, ebx
je 0x1002cb0e
cmp dword [0x1004011c], ebx
je 0x1002cb0e
push eax
call fcn.10021a91
push dword [0x1004011c]
mov esi, eax
call fcn.10021a91
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1002cb0e
test edi, edi
je 0x1002cb0e
call esi
test eax, eax
je 0x1002cb05
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1002cb05
test byte [ebp - 0xc], 1
jne 0x1002cb0e
or dword [ebp + 0x10], 0x200000
jmp 0x1002cb47
mov eax, dword [0x10040110]
cmp eax, ebx
je 0x1002cb47
push eax
call fcn.10021a91
pop ecx
test eax, eax
je 0x1002cb47
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1002cb47
mov eax, dword [0x10040114]
cmp eax, ebx
je 0x1002cb47
push eax
call fcn.10021a91
pop ecx
test eax, eax
je 0x1002cb47
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1004010c]
call fcn.10021a91
pop ecx
test eax, eax
je 0x1002cb67
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1002cb69
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46e720
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5f000]
push edi
or ebp, 0xffffffff
jmp 0x46e742
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46e749
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46e738
mov eax, 1
add ebx, ebx
jne 0x46e75b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46e750
jne 0x46e76c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46e750
xor ecx, ecx
sub eax, 3
jb 0x46e780
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46e7f2
mov ebp, eax
add ebx, ebx
jne 0x46e78b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x46e798
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x46e7bc
inc ecx
add ebx, ebx
jne 0x46e7a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46e79d
jne 0x46e7b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46e79d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46e7dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46e7cd
jmp 0x46e73e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46e7dc
add edi, ecx
jmp 0x46e73e
pop esi
mov edi, esi
mov ecx, 0xd55
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46e7fa
cmp byte [edi], 7
jne 0x46e7fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x46e7ff
lea edi, [esi + 0x6c000]
mov eax, dword [edi]
or eax, eax
je 0x46e86e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6e0b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6e168]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46e82c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6e170]
or eax, eax
je 0x46e868
mov dword [ebx], eax
add ebx, 4
jmp 0x46e849
call dword [esi + 0x6e16c]
mov ebp, dword [esi + 0x6e174]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x46e8a2
sub esp, 0xffffff80
jmp 0x41e444
Function at 0x40f2a7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40f2b6
pop dword [ebp - 0x20]
mov eax, 0x49ba8a7
add eax, 0xfba54a0f
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x51bb8
push 0
mov eax, 0xc1556efd
add eax, 0x3eef43b3
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x4e51
xor edi, edi
add edi, eax
mov ebx, 0xdaebb86d
sub ebx, 0xdaa45a6d
add ebx, dword [ebp - 0x20]
mov esi, 0xe892b25b
add esi, 0xe2fa81ea
xor dword [ebp - 0x1c], 0x6ac6d9a2
mov edx, dword [ebx]
sub dword [ebp - 0xc], esi
xor edx, esi
mov dword [ebp - 0x18], 0x2b159372
mov dword [edi], edx
add dword [ebp - 0xc], 0xa42b0502
add edi, 4
add ebx, 0xfab55d45
sub ebx, 0xfab55d41
loop 0x40f311
add eax, 0xdf3c93a3
add eax, 0x20c49874
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x10007809
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10007818
pop dword [ebp - 0x18]
mov eax, 0x6c06690f
sub eax, 0x5c05f0f7
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xf17eecc7
sub dword [ebp - 0x28], 0xa32ca77c
mov dword [ebp - 0x24], 0x55b27574
add dword [ebp - 0x24], 0xdc80d6d1
mov dword [ebp - 0x20], 0x122e0579
sub dword [ebp - 0x20], 0xc5e1c14b
mov dword [ebp - 0x1c], 0x43f697d3
sub dword [ebp - 0x1c], 0x43f697d3
lea eax, [ebp - 0x28]
push eax
mov eax, 0x187d5ceb
add eax, 0xf78594a5
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x335c1606
add dword [ebp - 0x28], 0x41165350
mov dword [ebp - 0x24], 0x5f8950b0
sub dword [ebp - 0x24], 0x1e1cef3b
mov dword [ebp - 0x20], 0xed2f4505
sub dword [ebp - 0x20], 0x89bfd899
mov dword [ebp - 0x1c], 0x6e81fcde
sub dword [ebp - 0x1c], 0x6e81fcde
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x9a3f572c
sub eax, 0x8a3c663c
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x482b3
push 0
call eax
mov ecx, 0x32be7ea3
sub ecx, 0x32be29c8
xor edi, edi
add edi, eax
mov esi, 0xf4486d08
add esi, 0x1bbbf6f8
add esi, dword [ebp - 0x18]
mov ebx, 0xff008178
sub dword [ebp - 4], 0xe14cae0e
mov edx, dword [esi]
add dword [ebp - 0xc], 0xba3b8d21
sub edx, ebx
mov dword [edi], edx
xor dword [ebp - 0x10], esi
add edi, 0x7844dd6d
sub edi, 0x7844dd69
add esi, 4
loop 0x10007936
add eax, 0x4aef9b12
sub eax, 0x4aee54d3
xor ebx, ebx
add ebx, eax
add eax, 0x32777c8f
sub eax, 0x32777c8a
mov ecx, 0x9a579caa
add ecx, 0x75a86356
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x100045c0
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], edx
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessorNumberEx]
movzx esi, word [ebp - 0x28]
mov eax, dword [0x10059aa8]
movzx edx, byte [ebp - 0x26]
movzx ecx, word [0x10058586]
add dx, word [eax + esi*8 + 4]
movzx eax, dx
xor edx, edx
div ecx
movzx eax, dx
imul esi, eax, 0x1c0
add esi, dword [0x100585c8]
lea eax, [esi + 0x64]
push eax
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, byte [0x1005858c]
mov ebx, dword [esi + 0x60]
push 0
push eax
push edi
push ebx
call dword [sym.imp.bcrypt.dll_BCryptHashData]
mov esi, eax
test esi, esi
jns 0x10004649
test byte [0x10059ab8], 4
je 0x1000467b
push 0x10054e88
jmp 0x1000466f
push 0
push 0x20
lea eax, [ebp - 0x24]
push eax
push ebx
lfence
call dword [sym.imp.bcrypt.dll_BCryptFinishHash]
mov esi, eax
test esi, esi
jns 0x1000467b
test byte [0x10059ab8], 4
je 0x1000467b
push 0x10054e98
push esi
lfence
call fcn.10001400
add esp, 8
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov esi, eax
test esi, esi
jle 0x10004691
movzx esi, si
or esi, 0x80070000
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
js 0x100046a8
mov eax, dword [ebp - 0x30]
movups xmm0, xmmword [ebp - 0x24]
movups xmmword [eax], xmm0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100483f7
mov esp, ebp
pop ebp
ret
Function at 0x1000d600
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [0x1005858c]
push ebx
push esi
push edi
add eax, 0x28
mov ebx, edx
push eax
push 0
push dword [0x10059a38]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x1000d6a3
mov dword [edi + 0x14], esi
xorps xmm0, xmm0
lea esi, [edi + 0x28]
movups xmmword [edi + 0x18], xmm0
mov al, byte [0x1005858c]
mov byte [edi + 0x19], al
movzx eax, byte [0x1005858b]
test ebx, ebx
je 0x1000d656
push eax
push ebx
push esi
call fcn.10049810
add esp, 0xc
jmp 0x1000d662
push 2
push eax
push esi
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
movzx eax, byte [0x1005858b]
add esi, eax
mov ax, word [ebp + 8]
mov word [esi], ax
add esi, 2
mov al, byte [ebp + 0xc]
movzx ebx, al
test al, al
je 0x1000d68e
push ebx
push dword [ebp + 0x10]
push esi
call fcn.10049810
add esp, 0xc
add esi, ebx
push 2
mov eax, 7
sub eax, ebx
push eax
push esi
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1000d910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x48], eax
test byte [0x10059aba], 8
push ebx
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x14], ebx
je 0x1000daf6
mov esi, dword [ebx + 0x6b4]
lea eax, [ebx + 0x688]
push eax
mov ecx, esi
call dword [0x1004b298]
call esi
mov esi, dword [ebx + 0x678]
xorps xmm0, xmm0
add esp, 4
movlpd qword [esp + 0x18], xmm0
movlpd qword [esp + 0x20], xmm0
test esi, esi
je 0x1000dacc
push 0
push 0
lea edx, [esp + 0x30]
mov ecx, esi
call fcn.10046130
mov ecx, dword [esp + 0x30]
add esp, 8
inc dword [esi + 0x18]
cmp dword [ecx], ecx
jne 0x1000d991
inc dword [esi + 0x14]
mov eax, dword [ecx]
lea edx, [esp + 0x38]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [eax + 4], edx
mov eax, edx
mov dword [ecx], eax
mov dword [esp + 0x48], ecx
mov ecx, dword [ebx + 0x678]
mov dword [esp + 0x4c], 0
movlpd qword [esp + 0x40], xmm0
call fcn.100463e0
mov esi, dword [esp + 0x24]
mov ecx, eax
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
test ecx, ecx
je 0x1000da7b
mov edx, dword [esp + 0x18]
jmp 0x1000d9e4
mov edx, dword [esp + 0x10]
mov eax, dword [ecx + 0x78]
sub eax, dword [ecx + 0xa0]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x7c]
sbb eax, dword [ecx + 0xa4]
mov dword [esp + 0x18], eax
mov eax, edx
not eax
mov dword [esp + 0x20], eax
mov eax, ebx
not eax
cmp eax, dword [esp + 0x18]
jb 0x1000da28
mov eax, dword [esp + 0x10]
ja 0x1000da1c
cmp dword [esp + 0x20], eax
jb 0x1000da28
add edx, eax
mov dword [esp + 0x10], edx
adc ebx, dword [esp + 0x18]
jmp 0x1000da33
mov dword [esp + 0x10], 0xffffffff
or ebx, 0xffffffff
mov edx, dword [ecx + 0x80]
mov eax, esi
not eax
mov ecx, edi
not ecx
test eax, eax
jb 0x1000da52
ja 0x1000da4b
cmp ecx, edx
jb 0x1000da52
add edi, edx
adc esi, 0
jmp 0x1000da58
or edi, 0xffffffff
or esi, 0xffffffff
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x38]
mov ecx, dword [eax + 0x678]
call fcn.100463e0
mov ecx, eax
test ecx, ecx
jne 0x1000d9e0
mov ecx, dword [esp + 0x10]
jmp 0x1000da7f
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x678]
lea eax, [esp + 0x38]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
dec dword [edx + 0x18]
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
je 0x1000dae0
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
mov dword [eax], edx
mov dword [edx + 4], eax
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
cmp dword [eax], eax
mov eax, dword [esp + 0x14]
jne 0x1000dae0
dec dword [edx + 0x14]
jmp 0x1000dae0
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test byte [0x10059aba], 8
je 0x1000daf6
push esi
push edi
push ebx
push ecx
push eax
call fcn.1000d3f0
add esp, 0x14
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100483f7
mov esp, ebp
pop ebp
ret
Function at 0x10012c60
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
xor edi, edi
mov byte [esp + 0xf], dl
test byte [0x10059abb], 0x80
mov esi, ecx
je 0x10012cb7
push str.Peer_Transport_Parameters_Set
push 0xffffffffffffffff
lea eax, [esp + 0x18]
push 0x80
push eax
call fcn.100015f0
lea eax, [esp + 0x20]
mov edx, 0x1004ccf8
push eax
push esi
call fcn.10001280
add esp, 0x18
or byte [esi + 0xc2], 0x20
mov ecx, dword [esi + 0x490]
test ecx, 0x4000
je 0x10012cf0
movzx eax, byte [esi + 0xd5]
mov ebx, dword [esi + 0x4f0]
cdq
cmp edx, dword [esi + 0x4f4]
jb 0x10012cf7
ja 0x10012ce8
cmp eax, ebx
jbe 0x10012cf7
mov byte [esi + 0xd5], bl
jmp 0x10012cf7
mov byte [esi + 0xd5], 2
mov bl, byte [esp + 0xf]
test bl, bl
jne 0x10012e0a
test byte [esi + 0xaf], 0x40
je 0x10012d25
test ecx, 0x80000
je 0x10012d25
mov ecx, esi
call fcn.10012590
mov edi, eax
test edi, edi
js 0x10012dd5
cmp dword [esi], 3
jne 0x10012d55
cmp byte [esi + 0xc3], 0
jl 0x10012d3c
cmp dword [esi + 0xc10], 0
je 0x10012d55
test dword [esi + 0x490], 0x80000
jne 0x10012d55
push 0
push 0
push 0
push 0x11
jmp 0x10012ddf
test dword [esi + 0x490], 0x100
je 0x10012d76
mov eax, dword [esi + 0x364]
movups xmm0, xmmword [esi + 0x528]
or byte [eax + 0x18], 0x40
movups xmmword [eax + 8], xmm0
cmp byte [esi + 0xaf], 0
jge 0x10012db8
test dword [esi + 0x490], 0x400000
jbe 0x10012db8
push 2
push 1
lea eax, [esp + 0x17]
push eax
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov al, byte [esp + 0xf]
shl al, 2
xor al, byte [esi + 0xc4]
and al, 4
xor byte [esi + 0xc4], al
or dword [esi + 0xb28], 0x10
mov ecx, esi
call fcn.10012360
test al, al
je 0x10012dd3
cmp dword [esi], 3
jne 0x10012e0a
mov ecx, esi
call fcn.10012ee0
test al, al
jne 0x10012e0a
test edi, edi
jne 0x10012df3
push 0
push 0
push 0
push 8
mov edx, 2
mov ecx, esi
call fcn.10010570
mov edi, 0x80410004
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.100483f7
mov esp, ebp
pop ebp
ret
push dword [esi + 0x4cc]
mov ecx, dword [esi + 0x4bc]
test bl, bl
push dword [esi + 0x4c8]
mov eax, dword [esi + 0x4b8]
sete dl
push dword [esi + 0x4c4]
mov dword [esi + 0xa9c], ecx
lea ecx, [esi + 0x618]
push dword [esi + 0x4c0]
mov dword [esi + 0xa98], eax
call fcn.1002b000
add esp, 0x10
lea ecx, [esi + 0xae8]
call fcn.10026b40
test byte [esi + 0xc0], 4
je 0x10012ec8
mov al, byte [esi + 0xc1]
test al, 0x10
je 0x10012ec0
test dword [esi + 0x490], 0x40000
je 0x10012ec0
test byte [0x10059abb], 0x80
je 0x10012ec8
push str.Negotiated_Disable_1_RTT_Encryption
push 0xffffffffffffffff
lea eax, [esp + 0x18]
push 0x80
push eax
call fcn.100015f0
lea eax, [esp + 0x20]
mov edx, 0x1004ccf8
push eax
push esi
call fcn.10001280
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.100483f7
mov esp, ebp
pop ebp
ret
and al, 0xef
mov byte [esi + 0xc1], al
mov ecx, dword [esp + 0x94]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100483f7
mov esp, ebp
pop ebp
ret
Function at 0x100201d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
movzx esi, byte [edx + 3]
mov ebx, ecx
mov eax, esi
mov dword [ebp - 4], ebx
shr eax, 4
and esi, 0xf
push edi
movzx edi, byte [edx + 2]
mov ecx, dword [ebx + eax*4 + 0x80]
mov eax, edi
xor ecx, dword [ebx + esi*4 + 0xc0]
and eax, 0xf
shr edi, 4
xor ecx, dword [ebx + eax*4 + 0x40]
xor ecx, dword [ebx + edi*4]
cmp word [edx], 2
jne 0x100202a7
movzx esi, byte [edx + 6]
movzx ebx, byte [edx + 4]
mov eax, esi
movzx edi, byte [edx + 5]
movzx edx, byte [edx + 7]
mov dword [ebp - 0xc], ecx
mov ecx, edx
shr ecx, 4
and edx, 0xf
shr eax, 4
mov dword [ebp - 8], esi
mov esi, dword [ebp - 4]
mov ecx, dword [esi + ecx*4 + 0x280]
xor ecx, dword [esi + eax*4 + 0x200]
mov eax, edi
shr eax, 4
and edi, 0xf
xor ecx, dword [esi + eax*4 + 0x180]
mov eax, ebx
shr eax, 4
and ebx, 0xf
xor ecx, dword [esi + eax*4 + 0x100]
mov eax, esi
mov esi, dword [ebp - 8]
and esi, 0xf
xor ecx, dword [eax + edx*4 + 0x2c0]
mov edx, dword [ebp + 8]
xor ecx, dword [eax + esi*4 + 0x240]
xor ecx, dword [eax + edi*4 + 0x1c0]
xor ecx, dword [eax + ebx*4 + 0x140]
mov eax, dword [edx]
xor eax, ecx
xor eax, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov dword [eax], 6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
xor esi, esi
xor dword [eax], ecx
lea ecx, [edx + 8]
mov eax, dword [eax]
xor edi, edi
mov dword [ebp - 8], eax
mov eax, 0x40
mov dword [ebp - 0xc], ecx
movzx edx, byte [edi + ecx]
inc edi
mov ecx, edx
and edx, 0xf
shr ecx, 4
add ecx, eax
add eax, 0x10
add edx, eax
add eax, 0x10
xor esi, dword [ebx + ecx*4]
xor esi, dword [ebx + edx*4]
mov ecx, dword [ebp - 0xc]
cmp edi, 0x10
jb 0x100202c0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
xor eax, esi
pop edi
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
mov dword [eax], 0x12
mov esp, ebp
pop ebp
ret

Function at 0x10020300
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
mov bl, dl
lea eax, [ebp - 4]
mov edx, ecx
mov ecx, 0x10058600
push eax
call fcn.100201d0
add esp, 8
test bl, bl
je 0x10020388
mov eax, dword [ebp - 8]
push esi
push edi
xor esi, esi
xor edi, edi
lea edx, [eax + eax]
cmp bl, 0x14
jae 0x10020345
movzx ebx, bl
test ebx, ebx
je 0x1002037c
jmp 0x1002034a
mov ebx, 0x14
shl edx, 4
nop dword [eax]
mov eax, dword [ebp + 8]
movzx ecx, byte [edi + eax]
inc edi
mov eax, ecx
and ecx, 0xf
shr eax, 4
add eax, edx
add edx, 0x10
add ecx, edx
add edx, 0x10
xor esi, dword [eax*4 + 0x10058600]
xor esi, dword [ecx*4 + 0x10058600]
cmp edi, ebx
jb 0x10020350
mov eax, dword [ebp - 4]
pop edi
xor eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret