joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140232050
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1401354c0
sub rsp, rax
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140327570]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WSOCK32.dll_ioctlsocket
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140232242
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140232196
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140232196
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14023217b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], ntohs
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140232118
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140232202
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.WSOCK32.dll_ioctlsocket
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140232261
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14023223d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.WSOCK32.dll_ioctlsocket
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140232261
jmp 0x1402320ee
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.WSOCK32.dll_ioctlsocket
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140135520
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140232280
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1401354c0
sub rsp, rax
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140327570]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WSOCK32.dll_ioctlsocket
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14023248d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x1402323d9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1402323d9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1402323b9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, recv
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140232348
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14023244d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.WSOCK32.dll_ioctlsocket
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1402324ac
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x140232488
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.WSOCK32.dll_ioctlsocket
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1402324ac
jmp 0x14023231e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.WSOCK32.dll_ioctlsocket
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140135520
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14023fa30
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14023f8c0
lea rcx, [rsp + 0x40]
call fcn.14023f9f0
movzx eax, al
test eax, eax
jne 0x14023fa78
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14023f8e0
mov rax, qword [rsp + 0x70]
jmp 0x14023fc49
lea rcx, [rsp + 0x40]
call fcn.14023f9d0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14023f980
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.14023f9d0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.14023f790
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14023fb1e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14023f8e0
mov rax, qword [rsp + 0x80]
jmp 0x14023fc49
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1402049d0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14018e430
lea rcx, [rsp + 0x48]
call fcn.14018e4b0
movzx eax, al
test eax, eax
jne 0x14023fb85
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.14018e470
lea rcx, [rsp + 0x40]
call fcn.14023f8e0
mov rax, qword [rsp + 0x88]
jmp 0x14023fc49
lea rcx, [rsp + 0x48]
call fcn.14018e580
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14023f9d0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.14023f790
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14023fc1b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.14018e470
lea rcx, [rsp + 0x40]
call fcn.14023f8e0
mov rax, qword [rsp + 0xa0]
jmp 0x14023fc49
lea rcx, [rsp + 0x48]
call fcn.14020a160
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.14018e470
lea rcx, [rsp + 0x40]
call fcn.14023f8e0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x14023fc60
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14023f8c0
lea rcx, [rsp + 0x20]
call fcn.14023f900
movzx eax, al
test eax, eax
jne 0x14023fca5
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.14023f8e0
mov rax, qword [rsp + 0x40]
jmp 0x14023fd9f
lea rcx, [rsp + 0x20]
call fcn.14023f9d0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14023f980
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1402049d0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140211470
lea rcx, [rsp + 0x28]
call fcn.1402114f0
movzx eax, al
test eax, eax
jne 0x14023fd3f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.140211490
lea rcx, [rsp + 0x20]
call fcn.14023f8e0
mov rax, qword [rsp + 0x50]
jmp 0x14023fd9f
lea rcx, [rsp + 0x20]
call fcn.14023f9d0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.140211680
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.140188cc0
lea rcx, [rsp + 0x28]
call fcn.140211650
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.140211490
lea rcx, [rsp + 0x20]
call fcn.14023f8e0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x1402414f0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x180b07058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x180b071df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180b07089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180b0706f
add dl, dl
jne 0x180b07096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180b070f6
xor eax, eax
add dl, dl
jne 0x180b070a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180b071ad
add dl, dl
jne 0x180b070b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180b070c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180b070d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180b070dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x180b070ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x180b0707e
mov eax, 1
add dl, dl
jne 0x180b07106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180b07113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180b070fb
sub eax, ebx
mov ebx, 1
jne 0x180b0714c
mov ecx, 1
add dl, dl
jne 0x180b0712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180b0713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180b07123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180b0707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180b07168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180b07175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180b0715d
cmp eax, 0x7d00
jae 0x180b0719b
cmp eax, 0x500
jb 0x180b07196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180b0707e
cmp eax, 0x7f
ja 0x180b0719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180b0707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x180b071d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x180b0707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1409e91b8
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1409e933f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1409e91e9
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409e91cf
add dl, dl
jne 0x1409e91f6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409e9256
xor eax, eax
add dl, dl
jne 0x1409e9205
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409e930d
add dl, dl
jne 0x1409e9216
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409e9223
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409e9230
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409e923d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409e924a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409e91de
mov eax, 1
add dl, dl
jne 0x1409e9266
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409e9273
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409e925b
sub eax, ebx
mov ebx, 1
jne 0x1409e92ac
mov ecx, 1
add dl, dl
jne 0x1409e928e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409e929b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409e9283
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409e91de
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409e92c8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409e92d5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409e92bd
cmp eax, 0x7d00
jae 0x1409e92fb
cmp eax, 0x500
jb 0x1409e92f6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409e91de
cmp eax, 0x7f
ja 0x1409e92fe
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409e91de
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409e9332
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1409e91de
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001ec4
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
and qword [rbp - 0x20], 0
lea rax, [rbp - 0x18]
and qword [rbp - 0x18], 0
mov rsi, r9
xorps xmm0, xmm0
mov qword [r11 - 0x58], rax
lea r9, [rbp - 0x20]
movups xmmword [rbp - 0x10], xmm0
call fcn.14000174c
mov rdi, qword [rbp - 0x20]
mov ebx, eax
test eax, eax
js 0x14000205b
mov r8, qword [rbp + 0x40]
lea rdx, [rbp - 0x10]
mov ebx, 4
xor r9d, r9d
mov rcx, rdi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.CRYPT32.dll_PFXExportCertStoreEx]
nop dword [rax + rax]
test eax, eax
jne 0x140001f58
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000205b
mov edx, dword [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov qword [rbp - 8], rax
test rax, rax
jne 0x140001f7c
mov ebx, 0x8007000e
jmp 0x14000205b
mov r8, qword [rbp + 0x40]
lea rdx, [rbp - 0x10]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_PFXExportCertStoreEx]
nop dword [rax + rax]
test eax, eax
je 0x140001f39
xor edx, edx
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
nop dword [rax + rax]
mov eax, dword [rbp + 0x48]
xor edi, edi
and qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x8000080
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140001f39
mov esi, dword [rbp - 0x10]
xor ebx, ebx
mov r14, qword [rbp - 8]
test esi, esi
je 0x14000204c
and qword [rsp + 0x20], rbx
lea r9, [rbp - 0x20]
mov r8d, esi
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
je 0x140002032
mov ecx, dword [rbp - 0x20]
test ecx, ecx
je 0x14000202b
add r14, rcx
sub esi, ecx
jne 0x140001ff9
jmp 0x14000204c
mov ebx, 0x8007001d
jmp 0x14000204c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rsi, qword [rbp - 0x18]
test rsi, rsi
je 0x1400020a6
mov r9d, dword [rsi + 0x10]
lea rcx, [rbp - 0x18]
mov r8, qword [rsi + 8]
mov rdx, qword [rsi]
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
test rdi, rdi
je 0x1400020bc
xor edx, edx
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
nop dword [rax + rax]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140002744
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rdi, qword [rbp + 0x70]
xor eax, eax
mov rsi, qword [rbp + 0x68]
mov r15d, r9d
mov qword [rbp + 0x40], rax
mov r13, r8
mov qword [rbp - 0x10], rax
mov r12d, edx
mov qword [rbp - 0x18], rax
mov r14, rcx
mov qword [rbp - 0x20], rax
mov ebx, eax
mov r10d, eax
test r8, r8
je 0x140002901
test r9d, r9d
je 0x140002901
lea rax, [rbp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [r11 - 0x58], rax
mov edx, 0x8004
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
nop dword [rax + rax]
test eax, eax
je 0x14000282f
mov rdx, qword [rbp + 0x50]
test rdx, rdx
je 0x1400027ec
mov r8d, dword [rbp + 0x58]
test r8d, r8d
je 0x1400027ec
mov rcx, qword [rbp + 0x40]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
nop dword [rax + rax]
test eax, eax
je 0x14000282f
mov rcx, qword [rbp + 0x40]
xor r9d, r9d
mov r8d, r15d
mov rdx, r13
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
nop dword [rax + rax]
test eax, eax
je 0x14000282f
mov r8, qword [rbp + 0x40]
lea rax, [rbp - 0x10]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov edx, r12d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
nop dword [rax + rax]
test eax, eax
jne 0x140002891
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14000285e
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140002873
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140002920
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
nop dword [rax + rax]
jmp 0x140002920
test rsi, rsi
je 0x1400028c4
mov r8, qword [rbp + 0x40]
lea rax, [rbp - 0x18]
mov r9d, 0x280000
mov qword [rsp + 0x20], rax
mov edx, r12d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
nop dword [rax + rax]
neg eax
sbb rcx, rcx
and qword [rbp - 0x18], rcx
test rdi, rdi
je 0x1400028fd
mov r8, qword [rbp + 0x40]
lea rax, [rbp - 0x20]
mov r9d, 0x800000
mov qword [rsp + 0x20], rax
mov edx, r12d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
nop dword [rax + rax]
neg eax
sbb r10, r10
and r10, qword [rbp - 0x20]
mov qword [rbp - 0x20], r10
jmp 0x140002901
mov r10, qword [rbp - 0x20]
mov rcx, qword [rbp + 0x60]
mov rax, qword [rbp - 0x10]
mov qword [rcx], rax
test rsi, rsi
je 0x140002918
mov rax, qword [rbp - 0x18]
mov qword [rsi], rax
test rdi, rdi
je 0x140002920
mov qword [rdi], r10
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x140002935
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop dword [rax + rax]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140002f10
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1400065e0], rbx
je 0x140002f5c
cmp rax, rbx
jne 0x140002f4f
mov ebx, 1
mov esi, ebx
jmp 0x140002f61
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002f34
mov ebx, 1
mov eax, dword [0x1400065e8]
cmp eax, ebx
jne 0x140002f77
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140002fdc
mov eax, dword [0x1400065e8]
test eax, eax
jne 0x140002fd6
mov dword [0x1400065e8], ebx
lea r15, [0x1400043f8]
lea rdi, [0x1400043e0]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140002fc8
test eax, eax
jne 0x140002fcc
cmp qword [rdi], 0
je 0x140002fbd
mov rax, qword [rdi]
mov rcx, qword [0x1400043c0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140002f9e
test eax, eax
je 0x140002fdc
mov eax, 0xff
jmp 0x1400030b8
mov dword [0x140006024], ebx
mov eax, dword [0x1400065e8]
cmp eax, ebx
jne 0x140003003
lea rdx, [0x1400043d8]
lea rcx, [0x1400043c8]
call sub.msvcrt.dll__initterm
mov dword [0x1400065e8], 2
test esi, esi
jne 0x140003010
xor eax, eax
xchg qword [0x1400065e0], rax
cmp qword [0x1400065f0], 0
je 0x140003044
lea rcx, [0x1400065f0]
call fcn.1400032c0
test eax, eax
je 0x140003044
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400065f0]
mov r9, qword [0x1400043c0]
call r9
mov r8, qword [0x140006038]
mov rdx, qword [0x140006030]
mov ecx, dword [0x140006028]
call fcn.140002ac4
mov dword [0x140006020], eax
cmp dword [0x140006040], 0
jne 0x140003074
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140006024], 0
jne 0x140003089
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140006020]
jmp 0x1400030b8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.14011a000
add rsp, 0x28
jmp 0x140002f10

Function at 0x1400031ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400031f8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400031f0
cmp dword [rcx + 0x3c], edx
jl 0x1400031f0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400031f0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400031f8
mov rax, rdx
add rsp, 0x18
ret