joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021ae8
Capabilities:
Parse pe header

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

Function at 0x1400254e8
Capabilities:
Parse pe header

Disassembly:
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 0x140025353
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140025353
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140025353
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140025353
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140025353
cmp dword [rcx + 0x84], 0xe
jbe 0x140025353
cmp dword [rcx + 0xf8], 0
je 0x140025353
mov ecx, ebx
call fcn.140025404
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.1400251e0
nop
cmp dword [rbp + 0x20], 0
je 0x1400253a1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400253ac
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400252e4
Function at 0x140035e00
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140035e87
mov rsi, rbx
cmp word [rax], bp
je 0x140035e46
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140035e30
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140035e2c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140033688
mov rdi, rax
test rax, rax
je 0x140035e74
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140023270
mov rbp, rdi
xor ecx, ecx
call fcn.140031a58
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400399fc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140039a12
mov al, 1
jmp 0x140039a72
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140039a23
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140039a70
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400365a4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140039a70
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140039a70
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140039a70
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140039a72
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14003c230
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003c258
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003c258
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400307d0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400307e0]
mov dword [rax], 1
mov rax, qword [0x1400307f0]
mov dword [rax], 1
mov rax, qword [0x140030780]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400307c0]
mov dword [0x14003300c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400308a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140030880]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140030730]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001db0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400330a4]
mov rbx, rcx
test esi, esi
jle 0x140001ee0
mov rax, qword [0x1400330a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001dfb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001e85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001de0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001f02
mov rax, qword [0x1400330a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400330a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ee7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001e7e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001e90
add dword [0x1400330a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400330a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001e7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001e08
mov rax, qword [0x1400330a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002470
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140033100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400330e0]
test rbx, rbx
je 0x1400024cc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400024c3
test rsi, rsi
je 0x1400024c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400024a8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400026e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400026f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002700
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002710
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000275d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002754
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000275f
add rax, 0x28
cmp rax, r9
jne 0x140002740
xor eax, eax
ret

Function at 0x140002760
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400027f0
mov rdx, qword [0x140030780]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400027de
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400027de
cmp word [rax + 0x18], 0x20b
jne 0x1400027de
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400027f0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400027c9
add rbx, 0x28
cmp rbx, rdi
je 0x1400027f0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400027c0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002800
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140030780]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002820
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002828
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002820
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000287d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002874
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002820
add rax, 0x28
cmp rax, r9
jne 0x140002860
xor eax, eax
ret

Function at 0x140002880
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140030780]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000289f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400028a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000289f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400028c0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140030780]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400028e0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400028e8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400028e0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002930
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002927
test rcx, rcx
je 0x1400028e0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002918
xor eax, eax
ret
Function at 0x140002940
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140030780]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000295f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002968
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002980
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140030780]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400029a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400029a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400029a0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400029a0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400029f4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002a00
add rdx, 0x28
cmp r9, rdx
jne 0x1400029e0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002a10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140030780]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002a32
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002a40
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002a32
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002a32
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002a32
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002a95
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002aa8
add rdx, 0x28
cmp rdx, r10
jne 0x140002a80
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002ab7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002ac7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002a9e
test ecx, ecx
jg 0x140002ab0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
jae 0x100403a99
je 0x100403a9f
xor byte [rdx - 0x6bcf6ad0], ch
xor byte [rdx - 0x5ccf6ad0], al
xor byte [rdi - 0x5dcf5ad0], bl
xor byte [rbx + 0x7e309530], dl
xor byte [rcx - 0x6acf62d0], dl
xor byte [rbp + 0x30], ch
jo 0x100403aec
xchg ebp, eax
xor byte [rax + rsi + 0x3063309c], bl
invalid
Function at 0x1800016b4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
mov rdi, rcx
cmp edx, 1
jne 0x18000172e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
mov rbx, rax
call fcn.1800039d0
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, str.rundll32.exe
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x18000172e
and qword [rsp + 0x28], rax
lea r8, [0x180001a44]
and dword [rsp + 0x20], eax
mov r9, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x150]
mov eax, 1
add rsp, 0x140
pop rdi
ret
Function at 0x180001744
Capabilities:
Allocate or change rwx memory
Read file via mapping
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov qword [r11 - 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
xor eax, eax
mov qword [r11 - 0x58], rax
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x40], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x58], rax
mov r9d, SafeArrayCopy
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
nop
mov r12, qword [rsp + 0x60]
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r15 + 1]
lea rcx, str.c:windows_system32_ntdll.dll
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor edx, edx
mov r8d, 0x1000002
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r13, rax
mov qword [rsp + 0x80], rax
movsxd rbx, dword [r12 + 0x3c]
add rbx, r12
mov qword [rsp + 0x88], rbx
movzx edi, r15w
cmp di, word [rbx + 6]
jae 0x180001902
movzx eax, di
lea rdx, [rax + rax*4]
movzx ecx, word [rbx + 0x14]
add rcx, rbx
lea r15, [rcx + rdx*8]
lea rdx, str..text
lea rcx, [r15 + 0x18]
call fcn.18000f8e0
test eax, eax
jne 0x1800018fa
mov esi, dword [r15 + 0x24]
lea rsi, [rsi + r12]
mov r14d, dword [r15 + 0x20]
mov dword [rsp + 0xc0], eax
lea r9, [rsp + 0xc0]
lea r8d, [rax + 0x40]
mov edx, r14d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
mov edx, dword [r15 + 0x24]
add rdx, r13
test r14, r14
je 0x1800018dd
test rsi, rsi
je 0x1800018cc
mov r8, r14
mov rcx, rsi
test rdx, rdx
je 0x1800018c7
call fcn.180005ef0
jmp 0x1800018dd
call fcn.1800039d0
call fcn.180006834
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.1800066a0
nop
lea r9, [rsp + 0xc0]
mov r8d, dword [rsp + 0xc0]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
inc di
jmp 0x180001844
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18000195c
Capabilities:
Load windows common language runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x10], rdx
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rcx, qword [rcx]
lea rdx, str.CLRCreateInstance
and qword [rbp + 0x28], 0
mov rdi, r8
and qword [rbp - 0x10], 0
xor bl, bl
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180001a0f
lea r8, [rbp + 0x28]
lea rdx, [0x18001fb60]
lea rcx, [0x18001fba0]
call rax
test eax, eax
js 0x180001a0f
mov rcx, qword [rbp + 0x28]
lea r9, [rbp - 0x10]
lea r8, [0x18001fbb0]
lea rdx, str.v4.0.30319
mov rax, qword [rcx]
call qword [rax + SafeArrayCopy]
test eax, eax
js 0x180001a0f
mov rcx, qword [rbp - 0x10]
lea rdx, [rbp + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x50]
test eax, eax
js 0x180001a0f
cmp dword [rbp + 0x18], 0
je 0x180001a0f
mov rcx, qword [rbp - 0x10]
lea r8, [0x18001fb70]
mov r9, rdi
lea rdx, [0x18001fb90]
mov rax, qword [rcx]
call qword [rax + 0x48]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmovns ebx, ecx
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x180001a23
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
and qword [rbp + 0x28], 0
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x180001a32
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rdi, qword [rsp + 0x50]
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rbp
ret
Function at 0x1800020ac
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rdi, rcx
mov ecx, SafeArrayCopy
call fcn.18000252c
mov rbx, rax
mov esi, 1
test rax, rax
je 0x180002102
and qword [rax + 8], 0
lea rcx, str.Sharp
mov dword [rax + 0x10], esi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x18000225f
jmp 0x180002104
xor ebx, ebx
test rbx, rbx
je 0x18000225f
call fcn.1800016ac
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000213a
movsxd rdx, dword [rax + 0x3c]
lea rcx, [rdx - 0x40]
cmp rcx, 0x3bf
ja 0x18000213a
cmp dword [rax + rdx], 0x4550
jne 0x18000213a
mov rax, qword [rbp + 0x6f]
mov ecx, SafeArrayAccessData
mov qword [rbp - 9], rax
mov word [rbp - 0x11], cx
lea rcx, [rbp + 0x27]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
lea rcx, [rbp - 0x29]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
and dword [rbp + 0x6f], 0
mov ecx, SafeArrayGetDim
mov r8d, esi
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov rcx, rax
lea r8, [rbp - 0x11]
lea rdx, [rbp + 0x6f]
mov rsi, rax
call qword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
movups xmm0, xmmword [rbp - 0x29]
mov rcx, qword [rdi]
movsd xmm1, qword [rbp - 0x19]
movaps xmmword [rbp + 7], xmm0
movsd qword [rbp + 0x17], xmm1
test rcx, rcx
je 0x180002254
mov rax, qword [rcx]
lea rdx, [rbp + 0x27]
mov qword [rsp + 0x30], rdx
xor r9d, r9d
lea rdx, [rbp + 7]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdx
mov r8d, 0x118
mov rdx, qword [rbx]
call qword [rax + 0x1c8]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
lea rcx, [rbp - 0x29]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rbp + 0x27]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rbp - 0x11]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
cmp eax, 1
jne 0x180002233
mov rcx, qword [rbx]
test rcx, rcx
je 0x180002213
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
and qword [rbx], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180002226
call fcn.18000294c
and qword [rbx + 8], 0
mov edx, SafeArrayCopy
mov rcx, rbx
call fcn.18000294c
mov rcx, qword [rdi]
test rcx, rcx
je 0x180002241
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004003
call fcn.180003240
int3
mov ecx, 0x8007000e
call fcn.180003240
int3
Function at 0x33e151370
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 dword [rbp + 0x28], r9d
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
sete al
test al, al
je 0x33e1513d8
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_in_CryptAcquireContextW___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x33e151553
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0x800c
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
call rax
test eax, eax
sete al
test al, al
je 0x33e15142a
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_in_CryptCreateHash___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x33e151553
mov rax, qword [rbp - 0x10]
mov ecx, dword [rbp + 0x28]
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
sete al
test al, al
je 0x33e151472
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_in_CryptHashData___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x33e151553
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8, rcx
mov edx, 0x6610
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
call rax
test eax, eax
sete al
test al, al
je 0x33e1514c5
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_in_CryptDeriveKey___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x33e151553
mov rax, qword [rbp - 0x18]
lea rdx, [rbp + 0x18]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call rax
test eax, eax
sete al
test al, al
je 0x33e15151d
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_in_CryptDecrypt___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x33e151553
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
nop
add rsp, 0x50
pop rbp
ret