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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov r15d, edx
lea r14d, [rdx - 1]
mov rdi, rcx
xor r12d, r12d
nop word [rax + rax]
mov esi, r12d
mov ebp, r12d
test r14d, r14d
je 0x1402d46aa
mov r8, qword [rdi + 8]
nop dword [rax]
nop word [rax + rax]
lea ecx, [r8 + 0xff]
shl esi, cl
add esi, esi
nop dword [rax + rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x1402d4564
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x1402d4520
mov ecx, dword [r10]
jmp 0x1402d4647
cmp ecx, 0x4e0
jb 0x1402d4647
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1402d4580
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1402d45d0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r12d
mov dword [r10], r12d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
mov edx, dword [rdi + 0x10]
cmp eax, edx
ja 0x1402d4500
mov r8, qword [rdi + 8]
or esi, eax
lea ecx, [r8 + 0xff]
shl ebp, cl
add ebp, ebp
or ebp, edx
cmp ebp, r14d
jb 0x1402d44f0
xor edx, edx
mov eax, ebp
div r15d
mov ecx, eax
mov r8d, edx
xor edx, edx
mov eax, esi
div r15d
cmp eax, ecx
jb 0x1402d46ca
cmp r8d, r14d
jne 0x1402d44d0
mov rbx, qword [rsp + 0x20]
mov eax, esi
mov rbp, qword [rsp + 0x28]
xor edx, edx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
div r15d
mov eax, edx
pop r15
pop r14
pop r12
ret
Function at 0x1402e0010
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov rax, qword [rcx + 8]
xor r14d, r14d
mov esi, r14d
mov ebp, r14d
mov rdi, rcx
nop word [rax + rax]
lea ecx, [rax + 0xff]
shl esi, cl
add esi, esi
nop word [rax + rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x1402e00b4
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x1402e0070
mov ecx, dword [r10]
jmp 0x1402e0197
cmp ecx, 0x4e0
jb 0x1402e0197
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1402e00d0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1402e0120
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r14d
mov dword [r10], r14d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
cmp ecx, dword [rdi + 0x10]
ja 0x1402e0050
mov rax, qword [rdi + 8]
or esi, ecx
add rbp, rax
cmp rbp, 0x20
jb 0x1402e0040
mov rbx, qword [rsp + 0x10]
mov eax, esi
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x28]
pop r14
ret
Function at 0x140386d20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov r15, rdx
lea r14, [rdx - 1]
mov rdi, rcx
xor r12d, r12d
nop word [rax + rax]
mov rsi, r12
mov rbp, r12
test r14, r14
je 0x140386f36
mov rdx, qword [rdi + 8]
nop dword [rax]
nop word [rax + rax]
lea ecx, [rdx + 0xff]
shl rsi, cl
add rsi, rsi
nop dword [rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x140386de4
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x140386da0
mov ecx, dword [r10]
jmp 0x140386ec7
cmp ecx, 0x4e0
jb 0x140386ec7
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, edx
xor ecx, dword [r11 + 0x634]
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140386e00
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop word [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140386e50
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r12d
mov dword [r10], r12d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
mov r8, qword [rdi + 0x10]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and edx, 0xffffdf8c
shl edx, 0xf
mov ecx, edx
xor rcx, rax
mov rax, rcx
shr rax, 0x12
xor rax, rcx
cmp rax, r8
ja 0x140386d80
mov rdx, qword [rdi + 8]
or rsi, rax
lea ecx, [rdx + 0xff]
shl rbp, cl
add rbp, rbp
or rbp, r8
cmp rbp, r14
jb 0x140386d70
xor edx, edx
mov rax, rbp
div r15
mov rcx, rax
mov r8, rdx
xor edx, edx
mov rax, rsi
div r15
cmp rax, rcx
jb 0x140386f5a
cmp r8, r14
jne 0x140386d50
mov rbx, qword [rsp + 0x20]
mov rax, rsi
mov rbp, qword [rsp + 0x28]
xor edx, edx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
div r15
mov rax, rdx
pop r15
pop r14
pop r12
ret
Function at 0x1403a9220
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x58
mov rax, qword [0x145ef49b8]
xor rax, rsp
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [str.CLI.exe_start]
lea rcx, str.ProgramFiles_x86_
mov eax, dword [reloc.WS2_32.dll_WSACleanup]
movsd xmm1, qword [0x140936398]
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x38], eax
movsd qword [rsp + 0x30], xmm1
call fcn.140587c24
test rax, rax
jne 0x1403a9279
lea rcx, str.ProgramFiles
call fcn.140587c24
test rax, rax
je 0x1403a92af
mov rcx, rax
call fcn.1405891c0
test eax, eax
jne 0x1403a92af
lea rcx, str.AMDATI.ACECore_Static
call fcn.1405891c0
test eax, eax
je 0x1403a92a5
lea rcx, str.ATI_TechnologiesATI.ACECore_Static
call fcn.1405891c0
test eax, eax
jne 0x1403a92af
lea rcx, [rsp + 0x20]
call fcn.1403a9780
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140567130
add rsp, 0x58
ret

Function at 0x1403a92d0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x145ef49b8]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbp, rcx
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1403a9313
xor eax, eax
jmp 0x1403a93a3
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], pe_nt_image_headers64
mov rcx, rsi
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x1403a9398
mov qword [rsp + 0x178], rbx
nop dword [rax]
nop dword [rax + rax]
mov rdx, rbp
lea rcx, [rsp + 0x4c]
call fcn.1405892f4
test eax, eax
jne 0x1403a937f
mov r8d, dword [rsp + 0x28]
lea ecx, [rax + 1]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1403a937f
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
inc edi
lea rdx, [rsp + 0x20]
mov rcx, rsi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x1403a9340
mov rbx, qword [rsp + 0x178]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140567130
lea r11, [rsp + 0x160]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1403a9780
Capabilities:
Create process on windows
Impersonate user

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x120
mov rax, qword [0x145ef49b8]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rdi, rcx
mov dword [r11 - 0x28], 1
xor ecx, ecx
mov dword [r11 - 0x1c], 2
lea r8, [r11 - 0x24]
lea rdx, str.SeIncreaseQuotaPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1403a987d
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov edx, reloc.WLDAP32.dll_Ordinal_32
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1403a987d
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x100]
xor esi, esi
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x58]
test eax, eax
je 0x1403a9877
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
call qword [sym.imp.USER32.dll_GetShellWindow]
test rax, rax
je 0x1403a987d
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x50]
test r8d, r8d
je 0x1403a987d
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.DLL_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1403a987d
lea r8, [rsp + 0x68]
mov rcx, rax
lea edx, [rsi + 2]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1403a98a4
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140567130
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0x18b
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rcx, qword [rsp + 0x60]
test eax, eax
cmove rcx, rsi
mov qword [rsp + 0x60], rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x1403a987d
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
lea rax, [rsp + 0x70]
mov r9, rdi
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x90]
xor edx, edx
mov qword [rsp + 0x38], rax
mov rcx, rbx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
mov rcx, rbx
test eax, eax
je 0x1403a9877
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 1
jmp 0x1403a987f
Function at 0x140488840
Capabilities:
Set thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.1405674d0
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x14048ab50
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x14048abbc
movzx ecx, byte [rcx]
test cl, cl
je 0x14048abbc
mov r11d, 0x100
nop word [rax + rax]
movsx r9d, cl
lea r10, [r10 + 1]
or r9d, r11d
mov r8d, eax
mov edx, r9d
mov ecx, reloc.WLDAP32.dll_Ordinal_32
shr edx, 2
add r11d, 0x100
xor edx, r9d
imul r9d, r9d
and edx, 0xf
sub ecx, edx
shr r8, cl
mov ecx, edx
mov edx, eax
mov eax, r8d
shl edx, cl
movzx ecx, byte [r10]
or eax, edx
xor eax, r9d
test cl, cl
jne 0x14048ab70
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret

Function at 0x14048ac80
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.1405674d0
sub rsp, rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x14048ad13
movzx eax, byte [rcx]
test al, al
je 0x14048ad13
mov qword [rsp + 0x30], rsi
mov esi, 0x100
nop
movsx ecx, al
call fcn.1404b1100
mov r9d, eax
mov edx, ebx
or r9d, esi
lea rdi, [rdi + 1]
mov eax, ebx
mov r8d, r9d
shr r8d, 2
mov ecx, reloc.WLDAP32.dll_Ordinal_32
xor r8d, r9d
add esi, 0x100
and r8d, 0xf
imul r9d, r9d
sub ecx, r8d
shr rdx, cl
mov ecx, r8d
shl eax, cl
mov ebx, edx
or ebx, eax
movzx eax, byte [rdi]
xor ebx, r9d
test al, al
jne 0x14048acb0
mov rsi, qword [rsp + 0x30]
mov eax, ebx
shr eax, 0x10
xor eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140490380
Capabilities:
Get thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.1405674d0
sub rsp, rax
lea rcx, [0x145fdc500]
add rsp, 0x28
jmp fcn.1404886a0
Function at 0x1404cbe90
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, Ordinal_50
call fcn.1405674d0
sub rsp, rax
xor esi, esi
lea edx, [rax - 0x2f]
mov ebx, esi
mov rdi, rcx
call fcn.140480230
mov rdx, rax
mov rcx, rdi
mov rbp, rax
call fcn.1404800a0
mov r14, rax
test rax, rax
je 0x1404cbf3a
lea r9d, [rsi + 1]
mov dword [rsp + 0x20], 0xf0000040
xor r8d, r8d
lea rcx, [rsp + 0x58]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1404cbf13
mov rcx, qword [rsp + 0x58]
mov r8, r14
mov edx, ebp
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x58]
test eax, eax
cmovne rbx, rbp
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r8, [rbx*8]
mov rdx, rbx
mov rcx, rdi
call fcn.140480130
mov rcx, rdi
call fcn.140480330
mov rbx, rax
test rax, rax
jne 0x1404cbfd6
mov edx, 1
mov rcx, rdi
call fcn.140480230
mov rdx, rax
mov rcx, rdi
mov rbp, rax
call fcn.1404800a0
mov r14, rax
test rax, rax
je 0x1404cbfc4
mov r9d, reloc.WLDAP32.dll_Ordinal_22
mov dword [rsp + 0x20], 0xf0000040
lea r8, str.Intel_Hardware_Cryptographic_Service_Provider
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1404cbfa6
mov rcx, qword [rsp + 0x58]
mov r8, r14
mov edx, ebp
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x58]
test eax, eax
cmovne rsi, rbp
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r8, [rsi*8]
mov rdx, rsi
mov rcx, rdi
call fcn.140480130
mov rcx, rdi
call fcn.140480330
mov rbx, rax
test rbx, rbx
je 0x1404cbfce
mov rax, rbx
jmp 0x1404cbfd6
mov rcx, rdi
call fcn.140480330
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x140581f20
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140581db3
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x140581db3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140581db3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140581db3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140581db3
cmp dword [rcx + 0x84], 0xe
jbe 0x140581db3
cmp dword [rcx + 0xf8], 0
je 0x140581db3
mov ecx, ebx
call fcn.140581e54
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140581c44
cmp dword [rbp + 0x20], 0
je 0x140581e00
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140581e08
int3
xor r8d, r8d
xor edx, edx
jmp 0x140581d4c
Function at 0x14000aac0
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x1400991a8]
xor rax, rsp
mov qword [rbp + 0xb8], rax
mov rdi, r8
mov esi, edx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
and dword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14000ac42
mov rcx, qword [rsp + 0x30]
mov qword [rbx], rcx
mov r15d, 1
mov byte [rbx + 8], r15b
and dword [rsp + 0x38], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14000aba1
mov rcx, qword [rsp + 0x30]
mov qword [rbx + 0x10], rcx
mov byte [rbx + 0x18], r15b
cmp rdi, r15
cmovb rdi, r15
mov qword [rbx + 0x20], rdi
mov rax, rbx
mov rcx, qword [rbp + 0xb8]
xor rcx, rsp
call fcn.140040450
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
lea rcx, [rsp + 0x78]
call fcn.140005d74
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.CryptCreateHash_
mov rcx, rbx
call fcn.140004b90
mov rcx, rax
mov edx, esi
call fcn.14000a178
mov rcx, rax
lea rdx, [0x1400745c0]
call fcn.140004b90
mov rdx, rax
lea rax, str.System_error
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
lea rcx, [rsp + 0x60]
call fcn.14001f79c
mov rbx, rax
mov r9d, 0x4d
lea r8, str._anonymous_namespace::createHash
lea rdx, str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u421_1068_install_src_windows_common_Crypto.cpp
lea rcx, [rsp + 0x48]
call fcn.140003304
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x60]
call fcn.14000a6b0
lea rdx, [0x140096e28]
lea rcx, [rbp + 0x60]
call fcn.140041f00
nop
lea rdx, str.CryptAcquireContext___failed
lea rcx, [rsp + 0x78]
call fcn.14000acfc
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea rax, str.System_error
mov qword [rsp + 0x20], rax
mov r8, qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x48]
call fcn.14001f79c
mov rbx, rax
mov r9d, reloc.msi.dll_MsiGetProductPropertyA
lea r8, str._anonymous_namespace::acquire_RSA_AES_context
lea rdx, str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u421_1068_install_src_windows_common_Crypto.cpp
lea rcx, [rsp + 0x60]
call fcn.140003304
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x60]
call fcn.14000a6b0
lea rdx, [0x140096e28]
lea rcx, [rbp + 0x60]
call fcn.140041f00
int3
Function at 0x14000be1c
Capabilities:
Hash data via wincrypt

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x1400991a8]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov r14d, 0xffffffff
cmp r8, r14
jbe 0x14000be78
xor r9d, r9d
mov r8d, r14d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14000beaf
sub rbx, r14
add rdi, r14
cmp rbx, r14
ja 0x14000be57
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14000bf2d
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140040450
add rsp, 0x190
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, str.CryptHashData___failed
lea rcx, [rsp + 0x60]
call fcn.14000acfc
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea rax, str.System_error
mov qword [rsp + 0x20], rax
mov r8, qword [sym.imp.ADVAPI32.dll_CryptHashData]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.14001f79c
mov rbx, rax
mov r9d, MsiOpenProductA
lea r8, str._anonymous_namespace::appendHashData
lea rdx, str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u421_1068_install_src_windows_common_Crypto.cpp
lea rcx, [rsp + 0x48]
call fcn.140003304
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x48]
call fcn.14000a6b0
lea rdx, [0x140096e28]
lea rcx, [rbp + 0x48]
call fcn.140041f00
nop
lea rdx, str.CryptHashData___failed
lea rcx, [rsp + 0x60]
call fcn.14000acfc
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea rax, str.System_error
mov qword [rsp + 0x20], rax
mov r8, qword [sym.imp.ADVAPI32.dll_CryptHashData]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.14001f79c
mov rbx, rax
mov r9d, 0x5f
lea r8, str._anonymous_namespace::appendHashData
lea rdx, str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u421_1068_install_src_windows_common_Crypto.cpp
lea rcx, [rsp + 0x30]
call fcn.140003304
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x48]
call fcn.14000a6b0
lea rdx, [0x140096e28]
lea rcx, [rbp + 0x48]
call fcn.140041f00
int3