joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14018433c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140164b54
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401843c6
cmp byte [rbp - 0x21], r15b
je 0x1401843c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401843fc
call fcn.1401755bc
test eax, eax
jne 0x1401843e8
cmp byte [rbp - 0x21], r15b
je 0x1401843e0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401843fc
cmp byte [rbp - 0x21], r15b
je 0x1401843f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14016d830
test eax, eax
jne 0x14018449c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140164b54
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14018443b
cmp byte [rbp - 0x21], r15b
je 0x140184470
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140184470
call fcn.1401755bc
test eax, eax
jne 0x14018445c
cmp byte [rbp - 0x21], r15b
je 0x140184455
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140184470
cmp byte [rbp - 0x21], r15b
je 0x14018446d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14016d830
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14018449c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14018449f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1401844ad
mov rcx, rdi
call fcn.1401751b0
cmp byte [rbp + 0x3f], r15b
je 0x1401844bc
mov rcx, qword [rbp + 0x27]
call fcn.1401751b0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140185070
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140173d50
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140173d50
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401851c0
cmp rax, 0xffffffffffffffff
je 0x1401851c0
xor edi, edi
test rbp, rbp
jle 0x14018516b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140175138
mov rbx, rax
test rax, rax
jne 0x1401850f8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140185161
mov edx, 0x8000
mov ecx, r14d
call fcn.14017177c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140176dcc
cmp eax, 0xffffffff
je 0x140185141
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140185108
mov edx, r15d
mov ecx, r14d
call fcn.14017177c
jmp 0x140185161
cmp byte [rsi + 0x38], dil
je 0x140185158
cmp dword [rsi + 0x34], 5
jne 0x140185158
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recvfrom
cmp byte [rsi + 0x30], dil
je 0x140185161
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401751b0
jmp 0x1401851d4
jns 0x1401851d4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140173d50
cmp rax, 0xffffffffffffffff
jne 0x14018518c
cmp byte [rsi + 0x30], dil
je 0x1401851d4
mov edi, dword [rsi + 0x2c]
jmp 0x1401851d4
mov ecx, r14d
call fcn.14017e36c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401851d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recvfrom
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recvfrom
jmp 0x1401851d4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401851cd
mov eax, dword [rsi + 0x2c]
jmp 0x1401851d2
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140173d50
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140185c00
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140185c28
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140185c28
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x100411cd0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
lea rcx, [0x100412270]
call 0x100411cb0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call 0x100411cd0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call 0x100411ce0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call 0x100411cf0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
add rsp, 0x28
jmp 0x100411d00
xor dword [rdx - 0x67ce60cf], ebx
xor dword [rcx + 0x31], edx
invalid
nop
xor dword [rcx + 0x31], edi
movabs al, byte [0x7731a0318531a831]
xor dword [rdx + 0x5331a931], ebx
xor dword [rdi + 0x31], ebp
xor dword ds:[rbx], edi
outsd dx, dword [rsi]
xor dword [rsi], edi
xor dword [rbx], edi
xor dword [rcx + 0x31], edx
push rcx
xor dword [rcx + 0x31], edx
push rcx
xor esp, edi
push rcx
xor dword [rcx + 0x31], edx
push rcx
xor dword [rcx + 0x31], edx
cld
mov ebx, 0x8ccba9eb
cli
xchg edx, eax
pop rcx
cmpsb byte [rsi], byte [rdi]
cmp al, 0xab
nop
jg 0x100411ccf
cwde
push rsp
rol dword [rcx + 0x2c8361ae], 0x7f
xchg byte [rax - 0x3b9f7e5a], al
jns 0x100411c4f
pop rbp
cwde
mov ch, 0xa7
push rcx
xor dword [rdi + 0x31], esi
movabs dword [0xa83196319e319231], eax
xor dword [rax - 0x63ce5ccf], esp
xor dword [0x145c073f9], edi
jg 0x100411d2b
xchg edi, eax
invalid
jg 0x100411c7c
cmpsd dword [rsi], dword [rdi]
jge 0x100411c8b
jne 0x100411c82
jl 0x100411c68
sub ecx, dword [rdi + 0x3151b09f]
pop rcx
xor dword [rcx - 0x78], ebx
and ecx, dword [rsi - 0x59a67970]
xor dword [rax - 0x7bb87f5c], ebx
mov ch, 0xa7
not byte [rcx + 0x7f3c9df2]
pop rdx
xor dword [rbx], esi
invalid
or byte [rdx + rdx*8 - 0x4a5ac854], al
cmpsd dword [rsi], dword [rdi]
cli
xchg edx, eax
pop rcx
cmpsb byte [rsi], byte [rdi]
cmp al, 0xab
nop
cmp eax, 0xebbbfc30
test eax, 0x91d98ccb
and ecx, dword [rsi - 0x46f17346]
xchg esp, eax
pushfq
jmp 0x100411ccd
xor dword [rdi + 0x31], ebx
jg 0x100411d61
jbe 0x100411d63
test dword [rcx], esi
push rcx
xor dword [rdi + 0x31], esi
movabs dword [0xa83196319e319231], eax
xor dword [rax - 0x63ce5ccf], esp
xor dword [rbx], esi
invalid
xor dword [rdi + 0x31], ebp
xor dword ds:[rbx], edi
xor dword [rsi], edi
xor dword [rbx], edi
xor dword [rcx + 0x31], edx
push rcx
xor dword [rbp + 0x31], ebp
movsb byte [rdi], byte [rsi]
xor dword [rbp - 0x65ce5ccf], esp
xor dword [rdi + 0x51319831], ebx
xor dword [rdx + 0x6e319531], ebx
xor dword [rbx + 0x31], edx
invalid
Function at 0x14003b3b6
Capabilities:
Parse pe header

Disassembly:
jmp 0x14005aaf4
xor r8d, r8d
xor edx, edx
jmp 0x14005a7e4

Function at 0x14003c1e9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400afc90
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1400d3040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x1400d61e0]
xor r11d, r11d
lea rdi, [0x1400be2b4]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x1400afd00
mov rax, 0xfffffffffffffffe
jmp 0x1400afe4d
cmp word [r10 + 6], r11w
jne 0x1400afd6f
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x1400afd2a
test r14, r14
je 0x1400afd1b
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x1400afe4d
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x1400afd38
mov r8b, 2
jmp 0x1400afd56
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x1400afd46
mov r8b, 3
jmp 0x1400afd56
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x1400afe42
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x1400afd98
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x1400afe42
cmp bl, bpl
jb 0x1400afe42
cmp bl, r8b
jae 0x1400afe42
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x1400afdc5
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x1400afe42
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x1400afda7
cmp r9, rbp
jae 0x1400afdf1
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x1400afcf4
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x1400afe42
cmp edx, 0x110000
jae 0x1400afe42
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x1400afe42
test r14, r14
je 0x1400afe30
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.14003db07
jmp 0x1400afe4d
mov rdx, rsi
mov rcx, r10
call fcn.14003e174
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14003c685
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003c239
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x140041e90
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140041f1d
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140041f1d
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140041f1d
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140041f04
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140041efe
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140041f06
add rdx, 0x28
jmp 0x140041ee3
xor edx, edx
test rdx, rdx
jne 0x140041f0f
xor al, al
jmp 0x140041f23
cmp dword [rdx + 0x24], 0
jge 0x140041f19
xor al, al
jmp 0x140041f23
mov al, 1
jmp 0x140041f23
xor al, al
jmp 0x140041f23
add rsp, 0x18
ret

Function at 0x14003c7d9
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140050e68
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1400bf278]
mov ecx, 2
lea r8, [0x1400bf270]
lea rdx, str.FlsGetValue
call fcn.140050938
mov ecx, ebx
test rax, rax
je 0x140050ea2
add rsp, 0x20
pop rbx
jmp qword [0x1400e0020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14003c91e
Capabilities:
Query environment variable

Disassembly:
jmp 0x140093a00
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
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140093a30
xor eax, eax
jmp 0x140093af3
mov rbp, rbx
cmp word [rax], si
je 0x140093a55
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140093a3c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140093a38
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14003d2ce
movsxd r14, eax
test eax, eax
jne 0x140093a93
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140093a29
mov rcx, r14
call fcn.14003b037
mov rdi, rax
test rax, rax
jne 0x140093aac
xor ecx, ecx
call fcn.14003b172
jmp 0x140093a88
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14003d2ce
test eax, eax
jne 0x140093add
mov rcx, rdi
call fcn.14003b172
jmp 0x140093ae7
xor ecx, ecx
call fcn.14003b172
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
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 0x14003c928
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140050db8
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x1400bf238]
xor ecx, ecx
lea r8, [0x1400bf230]
lea rdx, str.FlsAlloc
call fcn.140050938
test rax, rax
je 0x140050df1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1400e0020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x14003c9a5
Capabilities:
Get geographical location

Disassembly:
jmp 0x14009c3b4
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x1400c2d98]
mov rbp, rcx
lea r8, [0x1400c2d90]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.14009b8d4
test rax, rax
je 0x14009c414
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1400e0030]
jmp 0x14009c42e
xor edx, edx
mov rcx, rbp
call fcn.14003c28e
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14003c9b4
Capabilities:
Terminate process

Disassembly:
jmp 0x140043dec
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x14003caef
Capabilities:
Parse pe header

Disassembly:
jmp 0x14005aa88
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14005a7e4

Function at 0x14003cfbd
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004244c
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140042496
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140042496
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140042496
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140042496
cmp dword [rcx + 0x84], 0xe
jbe 0x140042496
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140042498
xor al, al
add rsp, 0x28
ret

Function at 0x14003d445
Capabilities:
Terminate process

Disassembly:
jmp 0x14008ec74
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14008ec8e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.14003db11
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x14003dbfc
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140050ec0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400bf298]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1400bf290]
call fcn.140050938
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140050f00
call qword [0x1400e0020]
jmp 0x140050f06
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14003dc92
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400a2d84
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14003c1bc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400a2e0e
cmp byte [rbp - 0x21], r15b
je 0x1400a2e09
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400a2e44
call fcn.14003e05c
test eax, eax
jne 0x1400a2e30
cmp byte [rbp - 0x21], r15b
je 0x1400a2e28
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400a2e44
cmp byte [rbp - 0x21], r15b
je 0x1400a2e41
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14003e237
test eax, eax
jne 0x1400a2ee4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003c1bc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400a2e83
cmp byte [rbp - 0x21], r15b
je 0x1400a2eb8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400a2eb8
call fcn.14003e05c
test eax, eax
jne 0x1400a2ea4
cmp byte [rbp - 0x21], r15b
je 0x1400a2e9d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400a2eb8
cmp byte [rbp - 0x21], r15b
je 0x1400a2eb5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14003e237
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400a2ee4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400a2ee7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400a2ef5
mov rcx, rdi
call fcn.14003b172
cmp byte [rbp + 0x3f], r15b
je 0x1400a2f04
mov rcx, qword [rbp + 0x27]
call fcn.14003b172
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14003dd87
Capabilities:
Parse pe header

Disassembly:
jmp 0x14005aa78
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14005a853
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005a853
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005a853
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005a853
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005a853
cmp dword [rcx + 0x84], 0xe
jbe 0x14005a853
cmp dword [rcx + 0xf8], 0
je 0x14005a853
mov ecx, ebx
call fcn.14005a9bc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14005a534
nop
cmp dword [rbp + 0x20], 0
je 0x14005a8a1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14005a8dc
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14005a7e4
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004054e0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004054f0]
mov dword [rax], 1
mov rax, qword [0x00405500]
mov dword [rax], 1
mov rax, qword [0x004054d0]
mov dword [rax], 1
mov rax, qword [0x004053c0]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x004054c0]
mov dword [0x00408008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00405480]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00405370]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x40159b
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
lea rax, [rbp - 8]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call rax
test eax, eax
jne 0x4015e9
mov eax, 0xffffffff
jmp 0x4016f7
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0x800c
mov rax, qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
call rax
test eax, eax
jne 0x40161e
mov eax, 0xffffffff
jmp 0x4016f7
mov rax, qword [rbp + 0x28]
mov ecx, eax
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp + 0x20]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptHashData]
call rax
test eax, eax
jne 0x40164f
mov eax, 0xffffffff
jmp 0x4016f7
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8, rdx
mov edx, 0x6610
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
call rax
test eax, eax
jne 0x401682
mov eax, 0xffffffff
jmp 0x4016f7
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call rax
test eax, eax
jne 0x4016bd
mov eax, 0xffffffff
jmp 0x4016f7
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call rax
mov eax, 0
add rsp, 0x50
pop rbp
ret