joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004d430
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x60], 0
je 0x14004d44e
cmp qword [rsp + 0x68], 0
jne 0x14004d455
xor eax, eax
jmp 0x14004d581
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov dword [rsp], 0
jmp 0x14004d4f6
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x18]
cmp dword [rsp], eax
jae 0x14004d57f
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x14004d53e
inc rax
test dl, dl
jne 0x14004d52b
xor eax, eax
jmp 0x14004d543
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14004d57a
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x38]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
jmp 0x14004d581
jmp 0x14004d4ee
xor eax, eax
add rsp, 0x58
ret
Function at 0x1400128f3
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rdx
test rsi, rsi
setne byte [rsp + 0x27]
mov eax, dword [0x1401094b0]
lea edx, [rax - 1]
imul edx, eax
mov eax, edx
xor eax, 0xfffffffe
test eax, edx
sete al
cmp dword [0x14011a904], 0xa
mov r14, rcx
setl cl
mov edx, ecx
and dl, al
xor cl, al
or cl, dl
mov ebp, 0xb5f61126
mov eax, 0x5967b4dd
cmove ebp, eax
mov edi, 0x89bffa9d
cmove edi, eax
mov eax, 0x9090f406
mov r15d, 0x19647874
jmp 0x140012961
mov eax, 0xbe25bda4
mov rbx, qword [rsp + 0x28]
cmp eax, 0x9090f406
jne 0x14001297b
mov al, byte [rsp + 0x27]
test al, al
mov eax, 0xbe25bda4
cmovne eax, r15d
xor ebx, ebx
jmp 0x140012961
cmp eax, 0x19647874
jne 0x1400129d5
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov qword [rsp + 0x30], rax
mov ecx, 0x1bc1974b
mov eax, ecx
cmp eax, 0x1bc1974a
jle 0x1400129b4
cmp eax, 0x1bc1974b
mov ecx, ebp
je 0x140012994
cmp eax, 0x5967b4dd
jne 0x140012a0e
mov ecx, 0xb5f61126
jmp 0x140012994
cmp eax, 0xb5f61126
mov ecx, edi
je 0x140012994
cmp eax, 0x89bffa9d
jne 0x140012a0e
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov eax, 0x8bd8d134
jmp 0x14001297b
cmp eax, 0x8bd8d134
je 0x140012957
cmp eax, 0xbe25bda4
jne 0x140012a10
mov edx, 1
mov rcx, rsi
mov r8, rbx
mov r9, r14
call sub.msvcrt.dll_fwrite
mov rcx, r14
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1400feaf8
jmp 0x140012a0e
jmp 0x140012a10
Function at 0x1400552ec
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rcx
mov ecx, 2
call qword [fcn.1400ff0d0]
mov rdi, rax
mov eax, dword [0x1401094b0]
lea ecx, [rax - 1]
imul ecx, eax
not ecx
or ecx, 0xfffffffe
mov eax, 0xffffffff
cmp ecx, eax
sete al
cmp dword [0x14011a904], 0xa
mov byte [rsp + 0x2f], 1
setl cl
mov edx, ecx
and dl, al
xor cl, al
or cl, dl
mov eax, 0xb5f61126
mov edx, 0x5967b4dd
cmove eax, edx
mov ecx, 0x89bffa9d
cmove ecx, edx
mov ebp, 0x9090f406
mov edx, 0x19647874
jmp 0x140055366
mov ebp, 0xbe25bda4
mov r8, qword [rsp + 0x30]
cmp ebp, 0x9090f406
jne 0x140055381
mov bl, byte [rsp + 0x2f]
test bl, bl
mov ebp, 0xbe25bda4
cmovne ebp, edx
xor r8d, r8d
jmp 0x140055366
cmp ebp, 0x19647874
jne 0x1400553e5
mov qword [rsp + 0x38], 0x12
mov ebx, 0x1bc1974b
mov ebp, ebx
cmp ebp, 0x1bc1974a
jle 0x1400553be
cmp ebp, 0x1bc1974b
mov ebx, eax
je 0x140055397
cmp ebp, 0x5967b4dd
jne 0x140055504
mov ebx, 0xb5f61126
jmp 0x140055397
cmp ebp, 0xb5f61126
mov ebx, ecx
je 0x140055397
cmp ebp, 0x89bffa9d
jne 0x140055504
mov rbp, qword [rsp + 0x38]
mov qword [rsp + 0x30], rbp
mov ebp, 0x8bd8d134
jmp 0x140055381
cmp ebp, 0x8bd8d134
je 0x14005535c
cmp ebp, 0xbe25bda4
jne 0x140055506
lea rcx, str.could_not_import:
mov edx, 1
mov r9, rdi
call sub.msvcrt.dll_fwrite
mov rcx, rdi
call fcn.1400feaf8
mov ecx, 2
call qword [fcn.1400ff0d0]
test rsi, rsi
setne byte [rsp + 0x2f]
mov ecx, dword [0x1401094b0]
mov edx, ecx
neg edx
not edx
imul edx, ecx
mov ecx, edx
xor ecx, 0xfffffffe
test ecx, edx
sete cl
cmp dword [0x14011a904], 0xa
mov r14, rax
setl al
mov edx, eax
and dl, cl
xor al, cl
or al, dl
mov ebp, 0xb5f61126
mov eax, 0x5967b4dd
cmove ebp, eax
mov edi, 0x89bffa9d
cmove edi, eax
mov eax, 0x9090f406
mov r15d, 0x19647874
cmp eax, 0x9090f406
jne 0x140055494
mov al, byte [rsp + 0x2f]
test al, al
mov eax, 0xbe25bda4
cmovne eax, r15d
xor ebx, ebx
jmp 0x14005547a
cmp eax, 0x8bd8d134
je 0x1400554f5
cmp eax, 0x19647874
jne 0x14005550a
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov qword [rsp + 0x38], rax
mov ecx, 0x1bc1974b
mov eax, ecx
cmp eax, 0x1bc1974a
jle 0x1400554d4
cmp eax, 0x1bc1974b
mov ecx, ebp
je 0x1400554b4
cmp eax, 0x5967b4dd
jne 0x140055508
mov ecx, 0xb5f61126
jmp 0x1400554b4
cmp eax, 0xb5f61126
mov ecx, edi
je 0x1400554b4
cmp eax, 0x89bffa9d
jne 0x140055508
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov eax, 0x8bd8d134
jmp 0x140055494
mov eax, 0xbe25bda4
mov rbx, qword [rsp + 0x30]
jmp 0x14005547a
jmp 0x140055504
jmp 0x140055506
jmp 0x140055508
cmp eax, 0xbe25bda4
je 0x140055513
jmp 0x140055511
mov edx, 1
mov rcx, rsi
mov r8, rbx
mov r9, r14
call sub.msvcrt.dll_fwrite
mov rcx, r14
call fcn.1400feaf8
mov ecx, 2
call qword [fcn.1400ff0d0]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
lea rdx, [0x1401016a3]
call fcn.1400128f3
mov ecx, 1
call sub.msvcrt.dll_exit
ud2
Function at 0x1400a91a8
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x1400a91b4]
jmp fcn.1400534a7
Function at 0x1400f90f0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400ff0d0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400ff0d0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x1400f9160
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x140108844]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x1400f9310
mov rax, qword [0x140108848]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400f91ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400f9237
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x1400f9190
mov rcx, r12
call fcn.1400f9c10
mov rbp, rax
test rax, rax
je 0x1400f936d
mov rax, qword [0x140108848]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.1400f9d40
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140108848]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400f9352
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400f9230
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400f92c0
add dword [0x140108844], 1
cmp ebx, 8
jae 0x1400f9268
test bl, 4
jne 0x1400f9320
test ebx, ebx
je 0x1400f9259
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1400f9340
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x1400f9259
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x1400f929a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x140108848]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400f9230
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400f90f0
xor edi, edi
jmp 0x1400f91b7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1400f9259
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1400f9259
mov rax, qword [0x140108848]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.1400f90f0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400f90f0
nop
nop dword [rax]
Function at 0x1400f9880
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1401088a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140108880]
test rbx, rbx
je 0x1400f98d4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400f98cb
test r12, r12
je 0x1400f98cb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400f98b0
lea rcx, [0x1401088a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400f9c10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1401035e0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400f9c89
mov rcx, r10
call fcn.1400f9ae0
test eax, eax
je 0x1400f9c89
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1400f9c86
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400f9c7d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400f9c89
add r8, 0x28
cmp r8, r9
jne 0x1400f9c68
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140001d7c
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
xor byte [rcx], 1
mov rbx, rcx
cmp byte [rcx], 1
ja 0x140001da2
mov rcx, qword [rbx + 0x18]
call fcn.140001d7c
mov rbx, qword [rbx + 0x10]
xor byte [rbx], 1
cmp byte [rbx], 1
jbe 0x140001d8d
add rsp, 0x20
pop rbx
ret
Function at 0x14000fc1c
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov r14, r8
cmp byte [0x1400902b3], bl
mov ebp, edx
mov rdi, rcx
je 0x14000fd28
cmp byte [0x140091981], bl
je 0x14000fd28
test edx, edx
jne 0x14000fc6b
movzx r8d, byte [0x140085e0f]
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
mov al, 1
jmp 0x14000fd2a
cmp qword [0x140090478], rbx
jne 0x14000fc9c
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [0x140090478]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14000fd28
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
mov rcx, rdi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
je 0x14000fd28
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x14000fd28
movsxd rax, dword [0x140085e48]
lea rcx, [rsp + 0x30]
lea rdx, [0x140048aa8]
mov qword [rsp + 0x20], rcx
mov rcx, qword [0x140090478]
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rdx + rax*4]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14000fd3d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov r8d, ebp
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x14000fd62
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x14000fd1f
movzx eax, byte [0x140085e0f]
lea r9, [rsp + 0x78]
mov r8, r14
mov dword [rsp + 0x78], eax
mov edx, 2
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14000fd8a
mov bl, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov al, bl
jmp 0x14000fd2a
Function at 0x14001007c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 8]
mov rbx, rcx
cmp eax, 0xffffffff
jne 0x1400100a4
mov rdx, qword [rcx + 0x10]
mov cl, 1
call fcn.14000ff4c
mov dword [rbx + 8], eax
cmp eax, 0xffffffff
je 0x140010103
test byte [rbx + 0x55], 8
je 0x1400100c2
mov edx, dword [rbx + 0x58]
xor r9d, r9d
xor r8d, r8d
mov ecx, eax
call fcn.14000fef0
test eax, eax
jne 0x140010112
and byte [rbx + 0x55], 0xf7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
and dword [rax], 0
mov rdx, qword [rbx + 0x68]
movzx r8d, word [rbx + 0x62]
add rdx, 0x200
mov ecx, dword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov edi, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0
jne 0x140010121
add dword [rbx + 0x58], edi
mov word [rbx + 0x62], di
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rbx + 0x10]
mov ecx, 0x3eb
call fcn.14001b494
int3
mov rdx, qword [rbx + 0x10]
mov ecx, 0x3eb
call fcn.14001b494
int3
mov rdx, qword [rbx + 0x10]
mov ecx, 0x3eb
call fcn.14001b494
int3
Function at 0x140010424
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov rsi, r8
mov ebp, edx
mov r14, rcx
xor r8d, r8d
xor edx, edx
lea rcx, str.bcrypt.dll
mov rdi, r9
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x14001046c
mov eax, 0x80029c4a
jmp 0x1400105f6
lea rdx, str.BCryptOpenAlgorithmProvider
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a72b0], rax
test rax, rax
jne 0x140010492
mov eax, 0x7f
jmp 0x1400105f6
lea rdx, str.BCryptCloseAlgorithmProvider
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a72a8], rax
test rax, rax
je 0x140010488
lea rdx, str.BCryptGetProperty
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a72a0], rax
test rax, rax
je 0x140010488
lea rdx, str.BCryptCreateHash
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a7298], rax
test rax, rax
je 0x140010488
lea rdx, str.BCryptHashData
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a7290], rax
test rax, rax
je 0x140010488
lea rdx, str.BCryptFinishHash
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a7288], rax
test rax, rax
je 0x140010488
lea rdx, str.BCryptDestroyHash
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a7280], rax
test rax, rax
je 0x140010488
xor r9d, r9d
lea rdx, str.SHA256
xor r8d, r8d
lea rcx, [0x1400a72b8]
call qword [0x1400a72b0]
test eax, eax
jne 0x1400105f6
and dword [rsp + 0x28], eax
lea r8, [0x1400a727c]
mov rcx, qword [0x1400a72b8]
lea rax, [rsp + 0x30]
mov ebx, 4
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea rdx, str.HashDigestLength
call qword [0x1400a72a0]
test eax, eax
jne 0x1400105f6
and dword [rsp + 0x28], eax
lea r8, [0x1400a7278]
mov rcx, qword [0x1400a72b8]
lea rax, [rsp + 0x30]
mov r9d, ebx
mov qword [rsp + 0x20], rax
lea rdx, str.ObjectLength
call qword [0x1400a72a0]
test eax, eax
jne 0x1400105f6
mov r9, rdi
mov r8, rsi
mov edx, ebp
mov rcx, r14
call fcn.140010308
test eax, eax
jne 0x1400105f6
mov rcx, qword [0x1400a72b8]
test rcx, rcx
je 0x1400105f1
xor edx, edx
call qword [0x1400a72a8]
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140010614
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
mov byte [rax + 0x18], r8b
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x40
lea rdx, str..NUL
mov rbx, rcx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
xor r14d, r14d
test eax, eax
jne 0x140010650
mov eax, 1
jmp 0x14001076c
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14001076a
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp eax, 0xffffffff
je 0x14001076a
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], eax
mov rcx, rsi
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0x14001076a
xor r9d, r9d
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov edx, 0xf001f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov rcx, rdi
test rax, rax
jne 0x1400106ef
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001076a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14001076a
lea r9, [rsp + 0x70]
mov qword [rsp + 0x68], r14
lea r8, [rsp + 0x68]
mov edx, ebp
mov rcx, rbx
call fcn.140010424
test eax, eax
je 0x14001076a
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
or eax, 0xc0000000
cmp word [rbx], r14w
jne 0x14001073f
mov edx, 0xffff
cmp word [rbx + 2], dx
jne 0x14001073f
cmp word [rbx + 4], r14w
je 0x140010742
mov dword [rbx + 8], eax
jmp 0x140010742
mov dword [rbx + 4], eax
mov edx, 1
call fcn.14003fe44
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x14001076a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140010646
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140013d10
Capabilities:
Delete file
Terminate process

Disassembly:
sub rsp, 0x28
cmp byte [0x140091a80], 0
je 0x140013d36
cmp qword [0x140091a60], 0
je 0x140013d36
cmp qword [0x1400a21e8], 0
je 0x140013d36
int3
cmp qword [0x140091988], 0
je 0x140013d5e
mov rcx, qword [0x1400a20a8]
test rcx, rcx
je 0x140013d5e
call fcn.140023d50
mov rcx, qword [0x140091988]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
cmp qword [0x1400919a0], 0
je 0x140013d86
mov rcx, qword [0x140091ac8]
test rcx, rcx
je 0x140013d86
call fcn.140023d50
mov rcx, qword [0x1400919a0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
mov rcx, qword [0x1400a21e8]
test rcx, rcx
je 0x140013d97
call fcn.140023d50
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x14001ac34
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x20
mov eax, ecx
mov ebx, ecx
xor ecx, ecx
shr eax, 4
inc ax
movzx edx, ax
lea r8d, [rcx + 6]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14001ac92
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rax
test rax, rax
je 0x14001ac92
and ebx, 0xf
je 0x14001ac80
movzx ecx, word [rdx]
lea rdx, [rdx + rcx*2]
add rdx, 2
add ebx, 0xffffffff
jne 0x14001ac70
movzx eax, word [rdx]
lea rcx, [rdx + 2]
neg ax
sbb rax, rax
and rax, rcx
jmp 0x14001ac94
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14003da60
Capabilities:
Encode data using xor

Disassembly:
add eax, dword [rbx - 0x40d8120f]
mov esp, 0x478f0eff
movabs dword [0xa5d9b255ca54ef18], eax
mov cl, 0xfa
cli
cdq
invalid
xchg byte [rsi + 0x16], ah
or byte [rdx + rcx*2], al
mov byte [rcx + 0x3f], dh
jae 0x14003dab3
js 0x14003da29
fisub word [rdi]
invalid
push rbp
hlt
jnp 0x14003da3e
in eax, dx
jne fcn.14003db18
cdq
cmp bh, byte cs:[rsp + riz*4]
cmc
pop rdi
lodsd eax, dword [rsi]
out 0x5e, al
sbb bh, byte [0x14626ea53]
and eax, dword [rsi]
fcmovnb st(0), st(0)
imul dword [rdx]
sbb edi, dword [rax]
test dh, 0xb7
cdq
stc
xor al, 0xbd
jae 0x14003dac6
cwde
movabs al, byte [0x3c2e0d4113264c59]
js 0x14003da80
int3
Function at 0x14003f73d
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
dec rax
cmp word [rax], 0x5a4d
jne 0x14003f75b
je 0x14003f766
call 0x14003f7b5
mov bl, 0xc7
lahf
pop rsi
jne 0x14003f746
call 0x14003f75e
mov ecx, edi
xor eax, 0x3c508b0b
mov edx, dword [rax + 0x3c]
cmp edx, 0x400
jae 0x14003f746
sub rax, 0x48b5
add rdx, rax
add rdx, 0x48b5
add rax, 0x48b5
cmp word [rdx], 0x4550
jne 0x14003f794
je 0x14003f7d2
invalid
je 0x14003f7e3
jne 0x14003f746
lea rax, [0x14003f66c]
sub rsp, 8
mov qword [rsp], rcx
mov rcx, 0xffffffffffff2810
add rcx, 0xd960
add rcx, rax
push rcx
xchg rcx, rax
add rsp, 8
mov rcx, qword [rsp - 8]
mov rcx, qword [rsp]
add rsp, 8
call rax
lodsd eax, dword [rsi]
push rbp
movabs byte [0x894808ec8348c391], al
sub al, 0x24
mov rbp, rsp
mov qword [rsp - 8], 0
ret
add byte [rax], al
add byte [rax], al
sub rsp, 8
pop rax
add rax, rcx
sub rsp, 0x1e0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
mov qword [rsp - 8], rsi
sub rsp, 8
add rsp, 8
mov rcx, qword [rsp - 8]
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x61be
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x4615
lea r9, [0x14003b3cd]
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x14003f884
mov rcx, 0x3fe0
mov r9d, 0x15c13
mov r10d, 0x92819200
dec rcx
mov dl, byte [rax + rcx]
xor dl, r9b
mov byte [rax + rcx], dl
sub r10d, 0x26fe2
add r9d, r10d
add r9d, 0x26fe2
add r10d, 0x26fe2
rol r9d, 1
test rcx, rcx
jne 0x14003f8dd
je 0x14003f8e3
call 0x14003f8d4
fild qword [rdi - 0x7c]
jmp 0x174f7c056
jne 0x14003f8a6
xor al, 1
add byte [rbp - 0x7f], dh
jne 0x14003f866
add rax, 0x1ed4
mov rsp, rbp
pop rbp
ret