joyce8/EMBER2024-capa huggingface dataset:
Function at 0x828990
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push edi
push esi
mov eax, dword [ecx]
cmp eax, 0x270
jne 0x8289f5
mov esi, dword [ecx + 4]
mov eax, 0xfffff640
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
and esi, 0x80000000
mov edi, dword [ecx + eax + 0x9c8]
mov edx, edi
and edx, 0x7ffffffe
or edx, esi
mov esi, edi
and edi, 1
neg edi
and edi, 0x9908b0df
xor edi, dword [ecx + eax + 0xff8]
shr edx, 1
xor edi, edx
mov dword [ecx + eax + 0x1384], edi
add eax, 4
jne 0x8289b0
mov eax, 0x270
jmp 0x828acf
cmp eax, 0x4e0
jb 0x828acf
mov esi, dword [ecx + 0x9c4]
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
and esi, 0x80000000
mov edi, dword [ecx + eax*4 + 0x9c8]
mov edx, edi
and edx, 0x7ffffffe
or edx, esi
shr edx, 1
mov esi, edi
and edi, 1
neg edi
and edi, 0x9908b0df
xor edi, dword [ecx + eax*4 + 0xff8]
xor edi, edx
mov dword [ecx + eax*4 + 4], edi
inc eax
cmp eax, 0xe3
jne 0x828a10
mov esi, dword [ecx + 0xd50]
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
and esi, 0x80000000
mov edi, dword [ecx + eax*4 + 0xd54]
mov edx, edi
and edx, 0x7ffffffe
or edx, esi
shr edx, 1
mov esi, edi
and edi, 1
neg edi
and edi, 0x9908b0df
xor edi, dword [ecx + eax*4 + 4]
xor edi, edx
mov dword [ecx + eax*4 + 0x390], edi
inc eax
cmp eax, 0x18c
jne 0x828a60
mov eax, dword [ecx + 4]
mov esi, eax
and esi, 0x7ffffffe
mov edx, 0x80000000
and edx, dword [ecx + 0x1380]
or edx, esi
and eax, 1
neg eax
and eax, 0x9908b0df
xor eax, dword [ecx + 0x634]
shr edx, 1
xor eax, edx
mov dword [ecx + 0x9c0], eax
xor eax, eax
lea edx, [eax + 1]
mov dword [ecx], edx
mov eax, dword [ecx + eax*4 + 4]
mov edx, eax
shr edx, 0xb
and edx, dword [ecx + 0x1384]
xor edx, eax
mov eax, edx
shl eax, 7
and eax, 0x9d2c5680
xor eax, edx
mov ecx, eax
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop esi
pop edi
ret
Function at 0x83b020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1a0
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x20], 0xbf14bd53
mov dword [esp + 0x24], 0x832d8133
mov dword [esp + 0x28], 0x8786852a
mov eax, 0xff5cd55c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0xa32ac4]
xor ecx, eax
mov edx, ecx
not edx
and edx, 0xe5
and ecx, 0x1a
sub ecx, edx
add cl, 5
mov byte [esp + eax + 0xa32ac4], cl
inc eax
cmp eax, 0xff5cd568
jne 0x83b060
mov dword [esp + 0x48], 0x61f47fd6
mov dword [esp + 0x4c], 0x65f463f6
mov dword [esp + 0x50], 0x698767bc
mov dword [esp + 0x54], 0x6dc06b85
mov dword [esp + 0x58], 0x51f36fc1
mov dword [esp + 0x5c], 0x55f853f3
mov dword [esp + 0x60], 0x59f757fe
mov dword [esp + 0x64], 0x5dc85bc9
mov dword [esp + 0x68], 0x41405f84
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0xe
xor cl, byte [esp + eax + 0x48]
add cl, 0x90
mov byte [esp + eax + 0x48], cl
inc eax
cmp eax, 0x24
jne 0x83b0e0
movzx ecx, word [esp + 0x48]
lea eax, [esp + 0x15c]
test cx, cx
je 0x83b121
lea edx, [esp + 0x4a]
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x83b110
mov word [eax], 0
movzx ecx, word [edi]
test cx, cx
je 0x83b151
lea edx, [edi + 2]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x83b140
mov word [eax], 0
movzx ecx, word [esp + 0x20]
test cx, cx
je 0x83b181
lea edx, [esp + 0x22]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x83b170
mov word [eax], 0
mov eax, dword [esi]
mov dword [esp + 4], eax
mov dword [esp + 0x48], 0x6f6c6c82
mov byte [esp + 0x4c], 0x8c
mov eax, 0xc8
mov ecx, 0xf6d85a37
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax - 0x80]
mov edi, eax
xor edi, ecx
and edi, edx
xor edi, ecx
mov edx, 0xbe
sub edx, edi
lea esi, [edi + 0x493d2e41]
or esi, 1
sub esi, edi
lea ebx, [esi - 0x493d2e41]
neg esi
and esi, 2
mov edi, ebx
and edi, 0xfd
imul edi, esi
mov esi, ebx
and esi, 2
or ebx, 2
imul ebx, esi
xor edx, 1
add edx, edi
add edx, ebx
mov byte [esp + eax - 0x80], dl
inc eax
dec ecx
cmp eax, 0xcd
jne 0x83b1b0
movzx eax, byte [esp + 0x48]
test al, al
je 0x83b22d
lea ecx, [esp + 0x49]
mov edi, dword [esp + 4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edi], al
inc edi
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x83b220
jmp 0x83b231
mov edi, dword [esp + 4]
mov byte [edi], 0
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x150]
lea edx, [esp + 0x38]
lea esi, [esp + 0x15c]
push eax
push ecx
push edx
push esi
call fcn.0082ae40
add esp, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x863794]
mov ecx, 0xae6ce794
xor ecx, dword [0x86379c]
add eax, ecx
inc eax
jmp eax
Function at 0xb3c060
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
push eax
mov dword [esp], 0x11102ffe
mov eax, esp
mov ecx, 0x21
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [eax]
lea esi, [ecx - 0x225a3100]
or esi, edx
and edx, ecx
lea edi, [esi + esi]
not edi
add edi, esi
or edi, edx
add edi, 0xed2e790f
mov edx, edi
and edx, 1
xor edi, 1
lea edx, [edi + edx*2]
mov byte [eax], dl
inc eax
dec ecx
cmp ecx, 0x1d
jne 0xb3c080
mov eax, dword [esp]
mov eax, dword fs:[eax]
add esp, 4
pop esi
pop edi
ret

Function at 0xb3ce60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [esp], 0xc8c9cacb
mov eax, 0x967dcd54
nop
nop
movzx edx, byte [esp + eax + 0x698232ac]
xor edx, eax
mov ecx, edx
and ecx, 0x5f
add ecx, ecx
xor edx, 0xa0
sub ecx, edx
mov byte [esp + eax + 0x698232ac], cl
inc eax
cmp eax, 0x967dcd58
jne 0xb3ce80
mov eax, dword [esp]
mov edx, dword [0x86965c]
test edx, edx
je 0xb3cef8
xor ebx, ebx
mov ecx, dword [0x869660]
nop
nop
nop
cmp dword [ecx + ebx*8], 0xa269eeef
je 0xb3ced0
inc ebx
cmp edx, ebx
jne 0xb3cec0
jmp 0xb3cef8
mov edx, dword [ecx + ebx*8 + 4]
cmp edx, eax
je 0xb3cef8
mov eax, esp
lea ecx, [esp + 0x1c]
push 5
push 0x18
push eax
push ecx
push dword [ebp + 8]
push 0x14
push edx
push dword [0x869664]
call fcn.00b3aa80
add esp, 0x20
test edi, edi
je 0xb3cf02
mov ecx, dword [esp + 8]
mov dword [edi], ecx
test esi, esi
je 0xb3cf0e
cmp byte [esp + 0x15], 0
setne byte [esi]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0xb3d1d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
mov ebx, 0xfffffffe
nop
nop
nop
nop
cmp word [edi + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0xb3d1f0
sar ebx, 1
mov ecx, ebx
and ecx, 2
mov ebp, ebx
or ebx, 2
imul ebx, ecx
xor ecx, 2
and ebp, 0xfffd
imul ebp, ecx
lea ecx, [ebx + ebp]
mov word [esp + 4], cx
lea ecx, [ebx + ebp]
add ecx, 2
mov word [esp + 6], cx
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0x18
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 0x40
lea eax, [esp + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp], 0xc8c9cacb
mov eax, 0x967dcd54
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x698232ac]
xor ecx, eax
mov ebx, ecx
and ebx, 0x5f
add ebx, ebx
xor ecx, 0xa0
sub ebx, ecx
mov byte [esp + eax + 0x698232ac], bl
inc eax
cmp eax, 0x967dcd58
jne 0xb3d270
mov eax, dword [esp]
mov edi, dword [0x86965c]
test edi, edi
je 0xb3d2e5
xor ebx, ebx
mov ebp, dword [0x869660]
nop
nop
nop
cmp dword [ebp + ebx*8], 0xb7847e1b
je 0xb3d2c1
inc ebx
cmp edi, ebx
jne 0xb3d2b0
jmp 0xb3d2e5
mov edi, dword [ebp + ebx*8 + 4]
cmp edi, eax
je 0xb3d2e5
lea eax, [esp + 0xc]
push esi
push eax
push edx
push dword [esp + 0x48]
push 0x10
push edi
push dword [0x869664]
call fcn.00b3aa80
add esp, 0x1c
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10002f8f
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
cmp dword [0x100159ec], 0
je 0x10002f9b
xor eax, eax
ret
mov dword [0x100159ec], 1
mov ecx, 0x100159e8
jmp fcn.10003741
Function at 0x100054dd
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x18], ecx
push 7
pop ecx
push eax
lea edi, [ebp - 0x50]
mov dword [ebp - 8], eax
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, eax
mov dword [ebp - 4], eax
mov esi, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 7
push edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 0x661e
call edi
test eax, eax
jne 0x1000552b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1000564a
push 0xf0000000
push 0x50
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1000551e
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 0x18]
push eax
push dword [ebp - 0x14]
call fcn.1000b569
pop ecx
pop ecx
test eax, eax
je 0x1000551e
push 0
push dword [ebp + 8]
push 1
push dword [ebp - 4]
call edi
test eax, eax
je 0x1000551e
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
test edx, edx
je 0x100055b4
mov ecx, dword [edx + 4]
lea eax, [edx + 8]
mov dword [ebp - 0x1c], eax
lea eax, [edx + 8]
add eax, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x34], eax
xor ecx, ecx
lea eax, [ebp - 0x20]
inc ecx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x50]
push eax
push 0x2c
push 0x10001
call dword [sym.imp.CRYPT32.dll_CryptEncodeObject]
test eax, eax
je 0x1000551e
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
add edi, 0xc
push eax
push 0x40
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x10], eax
test eax, eax
jne 0x100055f8
mov esi, 0x8007000e
jmp 0x1000564a
cmp dword [ebp + 0x20], ebx
jne 0x1000560c
push dword [edi]
push 0x69
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x10005647
push edi
push eax
lea eax, [ebp - 0x50]
push eax
push 0x2c
push 0x10001
call dword [sym.imp.CRYPT32.dll_CryptEncodeObject]
test eax, eax
je 0x1000551e
push dword [edi]
mov eax, dword [ebp + 0xc]
push edi
push dword [eax + 0x10]
push 0
push 1
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x1000551e
xor ebx, ebx
inc ebx
cmp dword [ebp - 4], 0
je 0x10005659
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 8], 0
je 0x1000566a
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
jne 0x10005679
test esi, esi
je 0x10005679
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x10006049
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], edx
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [esi + 0xc]
push eax
push 0x40
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x10006084
push 0x8009000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100061ab
push dword [ebp - 8]
push dword [esi + 0x10]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp - 8]
push eax
push ebx
push edi
push 1
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x100061ab
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x8000
push dword [ebp - 8]
push ebx
push 0x2c
push 0x10001
call dword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
je 0x100061ab
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push str.1.2.643.2.2.19
push dword [eax + 4]
call esi
test eax, eax
jne 0x100060f2
mov eax, 0x661f
jmp 0x10006123
mov eax, dword [ebp - 4]
push str.1.2.643.7.1.1.1.1
push dword [eax + 4]
call esi
test eax, eax
je 0x1000611e
mov eax, dword [ebp - 4]
push str.1.2.643.7.1.1.1.2
push dword [eax + 4]
call esi
test eax, eax
je 0x1000611e
push 0x80090008
jmp 0x10006079
mov eax, 0x6621
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 7
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x100061ab
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
push eax
push 0x40
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [eax], esi
test esi, esi
je 0x10006074
mov eax, dword [ebp + 0xc]
push dword [eax]
mov eax, dword [ebp - 4]
push dword [eax + 0x14]
push esi
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x100061a8
cmp dword [ecx], edi
je 0x100061a8
mov edx, dword [esi + 4]
mov esi, 0xa000
mov eax, edx
and eax, esi
cmp eax, esi
jne 0x10006194
xor edx, edx
inc edx
jmp 0x1000619a
shr edx, 0xc
and edx, 2
push dword [ebp + 0x10]
call fcn.10005f29
pop ecx
cmp eax, 0xffffffff
je 0x100061ab
xor edi, edi
inc edi
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push ebx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000660d
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 8], 0
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x14]
push ebx
push esi
mov dword [ebp - 0x14], edx
lea edx, [ebp - 8]
mov esi, dword [ecx + 0xc]
shr esi, 0xf
not esi
push edi
and esi, 1
call fcn.10005b78
mov ebx, dword [ebp - 8]
test eax, eax
jne 0x1000664a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10006749
mov edx, dword [ebp - 0x10]
push esi
sub esp, 0x18
lea esi, [ebp + 8]
push 6
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.100062b4
add esp, 0x1c
test eax, eax
je 0x1000663d
and dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push 2
push ebx
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
test eax, eax
je 0x100066b1
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 7
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edi, dword [ebp + 0x14]
mov dword [edi + 8], 2
jmp 0x100066b4
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
je 0x100066e6
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 7
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [edi + 8], 1
mov ecx, dword [edi + 4]
cmp dword [ecx], 0
je 0x100067cc
mov eax, dword [ebp - 0xc]
mov edx, 0x2e49
cmp eax, edx
ja 0x10006727
je 0x10006765
sub eax, 0x2203
je 0x1000676d
sub eax, 0x1d
je 0x10006723
sub eax, 0x1e0
je 0x10006771
sub eax, 0xa23
je 0x10006769
sub eax, 0x1a
jne 0x10006744
push 0x51
jmp 0x10006773
push 0x20
jmp 0x10006773
sub eax, 0xa400
je 0x10006771
sub eax, 0x605
je 0x1000676d
sub eax, 0x1f
je 0x10006769
sub eax, 0x1e
je 0x1000671f
sub eax, 4
je 0x10006765
mov esi, 0x80090003
test ebx, ebx
je 0x10006756
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test esi, esi
je 0x10006761
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100067dc
push 0x50
jmp 0x10006773
push 0x4b
jmp 0x10006773
push 0x10
jmp 0x10006773
push 0x18
pop esi
cmp dword [ecx + 8], esi
je 0x10006794
lea eax, [ebp - 8]
mov ecx, edi
push eax
call fcn.10005b3b
mov ecx, dword [edi + 4]
mov edx, esi
push eax
call fcn.1000653e
mov ebx, dword [ebp - 8]
pop ecx
pop ecx
mov eax, dword [0x10015a00]
cmp eax, 0xffffffff
je 0x100067cc
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x100067cc
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptContextAddRef]
test eax, eax
je 0x100067cc
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [ecx + edx*4], ebx
inc dword [esi + 0xc]
mov ecx, dword [ebp - 0x14]
push 0
mov dword [ecx], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100070ad
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push esi
xor esi, esi
mov dword [ebp - 4], esi
test ecx, ecx
je 0x10007127
push ecx
push str.REGISTRYMACHINESOFTWAREMicrosoftCryptographyDefaultsProvider_s
lea eax, [ebp - 0x244]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x10
test eax, eax
jle 0x10007127
push 0x38
lea eax, [ebp - 0x3c]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x38], 0x120
lea eax, [ebp - 4]
mov dword [ebp - 0x34], str.Type
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push esi
push esi
push eax
lea eax, [ebp - 0x244]
mov dword [ebp - 0x2c], 0x4000000
push eax
push esi
mov dword [ebp - 0x24], 4
call dword [sym.imp.ntdll.dll_RtlQueryRegistryValues]
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x1000ab64
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], edx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push ebx
push dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0xc], ebx
push ecx
movlpd qword [ebp - 0x18], xmm0
mov edi, ebx
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1000abab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000accb
mov eax, dword [ebp - 0x10]
mov esi, 0x1000f558
push ebx
push ebx
push ebx
push ebx
test eax, eax
push 0xffffffffffffffff
cmovne esi, eax
push esi
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1000ab9e
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1000abec
mov edi, 0x8009000e
jmp 0x1000accb
push ebx
push ebx
push dword [ebp - 0x18]
push eax
push 0xffffffffffffffff
push esi
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1000ab9e
cmp eax, 1
je 0x1000ac11
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp + 8], 0x803f
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
jne 0x1000ac3b
push ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x800c
push eax
push 0x22
push dword [ebp - 4]
call esi
test eax, eax
je 0x1000ab9e
push ebx
lea eax, [ebp - 0x18]
push eax
push 0x18
push dword [ebp - 4]
call esi
test eax, eax
je 0x1000ab9e
push ebx
lea eax, [ebp + 0xc]
push eax
push 0x19
push dword [ebp - 4]
call esi
test eax, eax
je 0x1000ab9e
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push 0x17
push dword [ebp - 4]
call esi
test eax, eax
je 0x1000ab9e
mov esi, dword [ebp + 0x1c]
mov eax, dword [esi]
push eax
push 0x40
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
test eax, eax
je 0x1000abe2
push ebx
lea ecx, [ebp - 0xc]
push ecx
push eax
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1000ab9e
push dword [esi]
push dword [ebp - 8]
push dword [esi + 4]
call sub.msvcrt.dll_memcpy
xor ebx, ebx
add esp, 0xc
inc ebx
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 4], 0
je 0x1000acea
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test ebx, ebx
jne 0x1000acf9
test edi, edi
je 0x1000acf9
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x1000c180
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x10013858
call fcn.100023ec
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x1000c1e4
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x1000c1e4
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x1000c1e4
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x1000c1e4
or dword [ebp - 4], 0xffffffff
mov al, 1
jmp 0x1000c1ea
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000c296
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x10015abc]
sub esp, 0x44
push ebx
push esi
mov esi, ecx
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x10015ac4]
test edx, edx
jne 0x1000c2e4
test eax, eax
je 0x1000c2f7
mov edx, eax
mov dword [0x10015abc], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x1000c2f7
cmp ecx, ebx
jb 0x1000c2f7
cmp ecx, edi
jbe 0x1000c45f
mov edx, eax
test eax, eax
jmp 0x1000c319
test edx, edx
je 0x1000c314
mov eax, dword [edx + 8]
test eax, eax
je 0x1000c314
cmp eax, ebx
jb 0x1000c314
cmp eax, edi
jbe 0x1000c45f
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x10015abc], edx
jne 0x1000c2fd
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
and esi, 0xffff0000
mov edx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov ecx, esi
cmp esi, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
jbe 0x1000c3a4
lea eax, [ecx - 0x70000000]
mov dword [ebp - 0xc], 0x6fff0000
cmp eax, 0x10000000
lea eax, [ebp - 0x44]
push 0x1c
cmovbe ecx, dword [ebp - 0xc]
push eax
push ecx
mov dword [ebp - 0xc], ecx
call edx
test eax, eax
je 0x1000c3a1
mov eax, 0x10000
cmp dword [ebp - 0x34], eax
jne 0x1000c373
cmp dword [ebp - 0x38], eax
jae 0x1000c383
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 4]
add ecx, 0xffff0000
cmp ecx, ebx
jmp 0x1000c33c
push 0x40
push 0x3000
push eax
push dword [ebp - 0xc]
call dword [ebp - 8]
mov edx, eax
mov dword [0x10015abc], edx
test edx, edx
jne 0x1000c42b
mov edx, dword [ebp - 4]
cmp esi, edi
jae 0x1000c483
lea eax, [esi - 0x70000000]
mov ecx, 0x80010000
cmp eax, 0x10000000
lea eax, [ebp - 0x28]
push 0x1c
cmovbe esi, ecx
push eax
push esi
call edx
test eax, eax
je 0x1000c483
mov edx, dword [ebp - 0x1c]
mov eax, 0x10000
cmp dword [ebp - 0x18], eax
jne 0x1000c41d
cmp edx, eax
jb 0x1000c41d
movzx ecx, si
test ecx, ecx
je 0x1000c3ec
sub eax, ecx
add esi, eax
mov ecx, dword [ebp - 0x28]
lea eax, [esi + 0x10000]
add ecx, edx
cmp eax, ecx
ja 0x1000c41d
push 0x40
push 0x3000
push 0x10000
push esi
lfence
call dword [ebp - 8]
mov edx, eax
mov dword [0x10015abc], edx
test edx, edx
jne 0x1000c42b
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
add esi, edx
cmp esi, edi
jae 0x1000c483
mov edx, dword [ebp - 4]
jmp 0x1000c3ac
mov eax, dword [0x10015ac4]
xor ecx, ecx
mov dword [edx + 4], eax
mov esi, 0x7fd
mov dword [edx], 0x52727464
lea eax, [edx + 0xffe0]
mov dword [edx + 8], ecx
mov dword [0x10015ac4], edx
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
sub esi, 1
jne 0x1000c44f
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x1000c483
cmp esi, edi
ja 0x1000c483
lfence
mov ecx, dword [esi + 0x18]
mov eax, 0xcccccccc
mov dword [edx + 8], ecx
mov edi, esi
push 8
pop ecx
rep stosd dword es:[edi], eax
mov eax, esi
jmp 0x1000c485
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret