joyce8/EMBER2024-capa huggingface dataset:
Function at 0xbef04800
Capabilities:
Enumerate gui resources

Disassembly:
test rcx, rcx
je 0xbef04a13
mov dword [rsp + 0x10], edx
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rdx, qword [r9 + 8]
mov rdi, r9
mov eax, dword [0xbef0dd40]
movzx esi, r8b
mov rbx, rcx
cmp rdx, rax
je 0xbef04a0c
cmp rdx, 4
jbe 0xbef04a0c
mov eax, dword [0xbef0df18]
cmp rdx, rax
je 0xbef04a0c
call qword [0xbef0de60]
mov rcx, qword [rdi + 8]
mov eax, eax
cmp rcx, rax
je 0xbef04a0c
mov eax, dword [0xbef0dd50]
cmp rcx, rax
je 0xbef04a0c
mov eax, dword [0xbef0df40]
cmp rcx, rax
je 0xbef04a0c
cmp rbx, qword [rdi]
jne 0xbef04a0c
test dword [rdi + 0x18], 0x83a
je 0xbef04a0c
xor eax, eax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x48]
mov rax, qword [0xbef0de98]
lea r8, [0xbeef30c8]
mov edx, 0x40
mov qword [rsp + 0x90], rbp
lea rcx, [rsp + 0x40]
call rax
xor ebp, ebp
test eax, eax
jne 0xbef0490d
mov rax, qword [0xbef0dde0]
xor r9d, r9d
mov rdx, qword [rdi + 0x10]
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
call rax
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [0xbef0e4f8]
cmp ebx, 0xc0000022
jne 0xbef04a04
mov rax, qword [0xbef0de98]
lea r9, [rsp + 0x48]
lea r8, [0xbeef30c8]
mov edx, 0x1000
lea rcx, [rsp + 0x40]
call rax
test eax, eax
jne 0xbef04a04
mov rax, qword [0xbef0dec0]
lea r8, [rsp + 0x88]
mov rcx, qword [rsp + 0x40]
mov r9d, 4
mov edx, 0x18
mov qword [rsp + 0x20], rbp
call rax
test eax, eax
je 0xbef04965
mov dword [rsp + 0x88], ebp
mov rax, qword [0xbef0dec0]
lea r8, [rsp + 0x80]
mov rcx, qword [rsp + 0x40]
mov r9d, 4
mov edx, 0x1d
mov qword [rsp + 0x20], rbp
call rax
test eax, eax
je 0xbef04996
mov dword [rsp + 0x80], ebp
mov rcx, qword [rsp + 0x40]
call qword [0xbef0e4f8]
cmp dword [rsp + 0x88], ebp
je 0xbef04a04
cmp dword [rsp + 0x80], ebp
jne 0xbef04a04
mov rax, qword [0xbef0de98]
lea r9, [rsp + 0x48]
lea r8, [0xbeef30c8]
mov edx, 1
lea rcx, [rsp + 0x40]
call rax
test eax, eax
jne 0xbef049ee
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [0xbef0e4a8]
mov rcx, qword [rsp + 0x40]
call qword [0xbef0e4f8]
test sil, sil
je 0xbef04a04
mov rdx, qword [rdi + 8]
lea rcx, [0xbef047c0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbp, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0xbef08000
Capabilities:
Resolve dns

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov qword [rsp + 0x48], rbp
mov word [rdx], bx
mov edi, ebx
movzx eax, word [rcx]
mov r9d, ebx
mov qword [rsp + 0x50], r14
mov r14, rdx
mov ebp, r8d
test ax, ax
je 0xbef08047
mov r8, rcx
nop dword [rax]
cmp ax, 0x5b
je 0xbef080ab
inc r9d
movzx eax, word [rcx + r9*2]
lea r8, [rcx + r9*2]
test ax, ax
jne 0xbef08030
mov esi, ebx
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
jne 0xbef0808f
mov rax, qword [rsp + 0x40]
mov r9, rbp
mov r8, r14
mov rcx, qword [rax + 0x20]
lea rdx, [rcx + 4]
movzx ecx, word [rcx]
call qword [sym.imp.WS2_32.dll_InetNtopW]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov r14, qword [rsp + 0x50]
mov eax, ebx
mov rbp, qword [rsp + 0x48]
test rdi, rdi
je 0xbef080a3
mov word [rdi], si
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
mov rdi, r8
test r8, r8
je 0xbef08047
movzx esi, word [r8]
mov word [r8], bx
jmp 0xbef08049

Function at 0xbef08730
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rsi, r8
mov dword [rsp + 0x20], 0xf0000040
mov rdi, rcx
xor r8d, r8d
lea rcx, [0xbef133b0]
mov r9d, 0x18
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov rbx, qword [0xbef133b0]
test rbx, rbx
je 0xbef08824
xorps xmm0, xmm0
mov dword [rsp + 0x30], 0x208
mov r8d, setsockopt
mov dword [rsp + 0x34], 0x660e
mov rdx, rsi
mov dword [rsp + 0x38], setsockopt
lea rcx, [rsp + 0x3c]
xor ebp, ebp
movups xmmword [rsp + 0x3c], xmm0
call qword [sym.imp.KERNEL32.dll_RtlMoveMemory]
lea rax, [rsp + 0x88]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov r8d, 0x1c
mov dword [rsp + 0x20], ebp
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0xbef08824
mov rcx, qword [rsp + 0x88]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0xbef08805
mov dword [rsp + 0x78], ebp
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x70]
xor eax, eax
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0xbef08840
Capabilities:
Create directory
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
xor ebp, ebp
lea rsi, [0xbef0e5f0]
mov ebx, ebp
movabs r14, 0x400000021
nop dword [rax]
mov eax, ebx
lea rdi, [rsi + rax*2]
movzx eax, word [rsi + rax*2]
test ax, ax
je 0xbef08912
test ebx, ebx
je 0xbef0890b
cmp ax, 0x5c
jne 0xbef0890b
lea eax, [rbx - 1]
movzx eax, word [rsi + rax*2]
sub ax, 0x3a
cmp ax, 0x22
ja 0xbef088a8
bt r14, rax
jb 0xbef0890b
lea eax, [rbx + 1]
movzx eax, word [rsi + rax*2]
cmp ax, 0x3f
je 0xbef0890b
cmp ax, 0x3a
je 0xbef0890b
lea r8, [rsp + 0x20]
mov word [rdi], bp
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0xbef088f7
mov eax, dword [rsp + 0x20]
test al, 0x10
jne 0xbef088fb
test al, 1
je 0xbef088ec
mov edx, pe_nt_image_headers64
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0xbef088fb
mov dword [rsp + 0x20], ebp
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [rdi], 0x5c
inc ebx
jmp 0xbef08870
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret

Function at 0xbef08930
Capabilities:
Compress data via winapi

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x60], rbx
mov rbx, qword [0xbef0e548]
mov qword [rsp + 0x68], rbp
mov ebp, edx
mov qword [rsp + 0x70], rsi
mov rsi, r8
mov qword [rsp + 0x50], rdi
mov edi, r9d
mov qword [rsp + 0x48], r14
mov r14, rcx
test rbx, rbx
jne 0xbef0897b
lea rcx, [0xbeef1f80]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
mov qword [0xbef0e548], rax
mov rax, qword [0xbef0e5a0]
test rax, rax
jne 0xbef089d6
mov rax, qword [0xbef0e568]
mov qword [rsp + 0x40], r15
lea r15, [0xbeef57f0]
test rax, rax
je 0xbef089be
cmp r15, qword [0xbef0dab0]
jb 0xbef089be
cmp r15, qword [0xbef0dab8]
ja 0xbef089be
mov rdx, r15
mov rcx, rbx
call rax
test rax, rax
jne 0xbef089ca
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, qword [rsp + 0x40]
mov qword [0xbef0e5a0], rax
lea rdx, [rsp + 0x30]
mov ecx, 2
mov qword [rsp + 0x28], rdx
mov r9, r14
mov rdx, rsi
mov dword [rsp + 0x20], ebp
mov r8d, edi
call rax
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
test eax, eax
je 0xbef08a18
xor eax, eax
add rsp, 0x58
ret
mov eax, dword [rsp + 0x30]
add rsp, 0x58
ret
Function at 0xbef09510
Capabilities:
Get common file path
Self delete using alternate data streams

Disassembly:
push r14
push r15
sub rsp, 0x268
cmp qword [0xbef0e5d0], 0
mov r14d, edx
mov r15, rcx
jne 0xbef09752
lea rdx, [rsp + 0x40]
mov ecx, 0xfc
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r8d, eax
test eax, eax
jne 0xbef09554
xor eax, eax
add rsp, 0x268
pop r15
pop r14
ret
mov qword [rsp + 0x280], rbx
mov qword [rsp + 0x250], r12
rdtsc
shl rdx, 0x20
lea rbx, [rsp + 0x40]
or rax, rdx
lea rbx, [rbx + r8*2]
mov rcx, rax
mov qword [rsp + 0x290], rax
shr rcx, 0x20
mov r8d, 0x24
add ecx, eax
mov rdx, rbx
call qword [0xbef0e4b8]
xor r12d, r12d
lea rdx, [0xbeef5890]
mov rcx, rbx
mov qword [rsp + 0x290], r12
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], r12d
xor r9d, r9d
mov edx, 0x10003
mov dword [rsp + 0x20], 4
mov r8d, 7
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0xbef09742
mov qword [rsp + 0x288], rbp
xor r9d, r9d
lea ebp, [r14 + r14]
mov qword [rsp + 0x28], r12
xor edx, edx
mov dword [rsp + 0x20], ebp
mov r8d, 4
mov qword [rsp + 0x258], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0xbef09685
mov qword [rsp + 0x28], r12
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov edx, 6
mov qword [rsp + 0x260], rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov rcx, rdi
mov rsi, rax
call qword [0xbef0e4f8]
test rsi, rsi
je 0xbef0967d
mov r9d, ebp
mov r8, rsi
mov edx, r14d
mov rcx, r15
call fcn.bef08930
mov ecx, eax
mov qword [rsp + 0x290], rcx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rsi, qword [rsp + 0x260]
mov rdi, qword [rsp + 0x258]
mov rbp, qword [rsp + 0x288]
cmp qword [rsp + 0x290], r12
je 0xbef0971e
mov r9d, 8
lea r8, [rsp + 0x290]
mov edx, 6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
mov rcx, rbx
call qword [0xbef0e4f8]
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [0xbef0e510]
mov qword [0xbef0e5d0], rax
test rax, rax
je 0xbef096ea
xor edx, edx
mov rcx, rax
call fcn.bef092b0
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], r12d
xor r9d, r9d
mov edx, 0x10000
mov dword [rsp + 0x20], 3
mov r8d, 7
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0xbef09742
mov r9d, 1
lea r8, [0xbef0dc08]
mov edx, 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
mov rcx, rbx
call qword [0xbef0e4f8]
mov rbx, qword [rsp + 0x280]
mov r12, qword [rsp + 0x250]
mov rax, qword [0xbef0e5d0]
add rsp, 0x268
pop r15
pop r14
ret
Function at 0xbef09770
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov esi, edx
mov r8, qword [0xbef0e5d8]
mov rbp, rcx
test r8, r8
je 0xbef097fe
mov rcx, qword [0xbef0e4e0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapSize]
mov r8, qword [0xbef0e5d8]
mov r9, rax
movabs rax, 0xaaaaaaaaaaaaaaab
mul r9
shr rdx, 4
mov edi, edx
test edx, edx
je 0xbef09800
nop dword [rax + rax]
dec edx
lea rcx, [rdx + rdx*2]
cmp qword [r8 + rcx*8], rbp
lea rax, [r8 + rcx*8]
jne 0xbef097f8
cmp dword [rax + 0x10], esi
jne 0xbef097f8
test rbx, rbx
je 0xbef098b2
cmp rbx, qword [rax + 8]
je 0xbef098b2
test edx, edx
jne 0xbef097d0
jmp 0xbef09800
xor edi, edi
mov rcx, qword [0xbef0e4e0]
xor edx, edx
test r8, r8
je 0xbef09821
lea eax, [rdi + 1]
lea r9, [rax + rax*2]
shl r9, 3
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
jmp 0xbef0982d
mov r8d, 0x18
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdx, rax
test rax, rax
je 0xbef098b0
mov qword [0xbef0e5d8], rax
mov eax, edi
lea rcx, [rax + rax*2]
lea rdi, [rcx*8]
and byte [rdi + rdx + 0x14], 0xfe
lea rax, [rbx - 1]
mov qword [rdi + rdx], rbp
mov dword [rdi + rdx + 0x10], esi
cmp rax, 0xfffffffffffffffd
ja 0xbef0986e
lea rcx, [rdi + rdx]
mov qword [rcx + 8], rbx
mov rax, rcx
jmp 0xbef098b2
mov dword [rsp + 0x28], 0x81
xor r9d, r9d
mov edx, 1
mov dword [rsp + 0x20], 0
mov ecx, 2
mov r8d, 6
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rcx, qword [0xbef0e5d8]
add rcx, rdi
mov qword [rcx + 8], rax
cmp rax, 0xffffffffffffffff
je 0xbef098b0
mov rax, rcx
jmp 0xbef098b2
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0xbef098d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x50
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
jne 0xbef0990e
mov rcx, qword [0xbef0e4e0]
mov edx, 8
mov r8d, 0x448
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0xbef0999d
movups xmm0, xmmword [rdi]
lea rax, [rbx + 0x48]
mov dword [rsp + 0x40], 0x400
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
movups xmmword [rbx + 0x20], xmm0
lea rax, [0xbef09a60]
xor r9d, r9d
movsd xmm1, qword [rdi + 0x10]
mov r8d, 1
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
movsd qword [rbx + 0x30], xmm1
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0xbef09999
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0xbef09999
mov rcx, qword [0xbef0e4e0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
or byte [rdi + 0x14], 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0xbef09b80
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rbx, qword [0xbef0e5d0]
test rbx, rbx
je 0xbef09de9
cmp qword [0xbef0eeb8], 0
jne 0xbef09bf7
mov rax, qword [0xbef0e568]
lea rdi, [0xbeef58c0]
test rax, rax
je 0xbef09bdb
cmp rdi, qword [0xbef0dab0]
jb 0xbef09bdb
cmp rdi, qword [0xbef0dab8]
ja 0xbef09bdb
mov rdx, rdi
mov rcx, rbx
call rax
test rax, rax
jne 0xbef09be7
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0xbef0eeb8], rax
test rax, rax
je 0xbef09de9
cmp qword [0xbef0eec0], 0
jne 0xbef09c4f
mov rax, qword [0xbef0e568]
lea rdi, [0xbeef58d0]
test rax, rax
je 0xbef09c33
cmp rdi, qword [0xbef0dab0]
jb 0xbef09c33
cmp rdi, qword [0xbef0dab8]
ja 0xbef09c33
mov rdx, rdi
mov rcx, rbx
call rax
test rax, rax
jne 0xbef09c3f
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0xbef0eec0], rax
test rax, rax
je 0xbef09de9
cmp qword [0xbef0eec8], 0
jne 0xbef09ca7
mov rax, qword [0xbef0e568]
lea rdi, [0xbeef58f0]
test rax, rax
je 0xbef09c8b
cmp rdi, qword [0xbef0dab0]
jb 0xbef09c8b
cmp rdi, qword [0xbef0dab8]
ja 0xbef09c8b
mov rdx, rdi
mov rcx, rbx
call rax
test rax, rax
jne 0xbef09c97
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0xbef0eec8], rax
test rax, rax
je 0xbef09de9
cmp qword [0xbef0eee0], 0
jne 0xbef09cff
mov rax, qword [0xbef0e568]
lea rdi, [0xbeef5908]
test rax, rax
je 0xbef09ce3
cmp rdi, qword [0xbef0dab0]
jb 0xbef09ce3
cmp rdi, qword [0xbef0dab8]
ja 0xbef09ce3
mov rdx, rdi
mov rcx, rbx
call rax
test rax, rax
jne 0xbef09cef
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0xbef0eee0], rax
test rax, rax
je 0xbef09de9
cmp qword [0xbef0eed0], 0
jne 0xbef09d57
mov rax, qword [0xbef0e568]
lea rdi, [0xbeef5938]
test rax, rax
je 0xbef09d3b
cmp rdi, qword [0xbef0dab0]
jb 0xbef09d3b
cmp rdi, qword [0xbef0dab8]
ja 0xbef09d3b
mov rdx, rdi
mov rcx, rbx
call rax
test rax, rax
jne 0xbef09d47
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0xbef0eed0], rax
test rax, rax
je 0xbef09de9
call qword [0xbef0eeb8]
test al, al
je 0xbef09de9
call qword [0xbef0eed0]
test rax, rax
je 0xbef09de9
call qword [0xbef0eee0]
test rax, rax
je 0xbef09de9
mov edx, 0x4e3
lea rcx, [0xbef0dbc0]
call qword [0xbef0eec0]
mov edx, 0x4e4
lea rcx, [0xbef0dbd0]
call qword [0xbef0eec0]
mov edx, 0x4b2
lea rcx, [0xbef0db60]
call qword [0xbef0eec0]
mov edx, 0x4b3
lea rcx, [0xbef0dbe0]
call qword [0xbef0eec0]
call qword [0xbef0eed0]
lea rdx, [rsp + 0x30]
mov rcx, qword [rax]
mov r8, qword [rcx + 0x10]
mov rcx, rax
call r8
mov rax, qword [rax]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x14000184c
Capabilities:
Parse pe header

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

Function at 0x14000722c
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 0x14000729b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000729b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000729b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000729b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000729b
cmp dword [rcx + 0x84], 0xe
jbe 0x14000729b
cmp dword [rcx + 0xf8], 0
je 0x14000729b
mov ecx, ebx
call fcn.140007340
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.140007134
nop
cmp dword [rbp + 0x20], 0
jne 0x1400072fc
call fcn.14000d20c
cmp eax, 1
jne 0x1400072ec
xor dl, dl
jmp 0x1400072f6
call fcn.14000d1d8
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140007307
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140007310
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000722c

Function at 0x140007414
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000722c
Function at 0x14000cbc8
Capabilities:
Query environment variable

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
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000cbf8
xor eax, eax
jmp 0x14000ccbb
mov rbp, rbx
cmp word [rax], si
je 0x14000cc1d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000cc04
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000cc00
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.14000cae8
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x14000cc5e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000cbf1
call fcn.140008f30
mov rdi, rax
test rax, rax
jne 0x14000cc74
xor ecx, ecx
call fcn.140008270
jmp 0x14000cc53
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.14000cae8
test eax, eax
jne 0x14000cca5
mov rcx, rdi
call fcn.140008270
jmp 0x14000ccaf
xor ecx, ecx
call fcn.140008270
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 0x140010eec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140010f02
mov al, 1
jmp 0x140010f6e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140010f13
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140010f6c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000d4e8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140010f6c
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140010f6c
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140010f6c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140010f6e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140011eec
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.14000bba0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140011f76
cmp byte [rbp - 0x21], r15b
je 0x140011f71
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140011fac
call fcn.140008510
test eax, eax
jne 0x140011f98
cmp byte [rbp - 0x21], r15b
je 0x140011f90
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140011fac
cmp byte [rbp - 0x21], r15b
je 0x140011fa9
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.14000b134
test eax, eax
jne 0x14001204c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000bba0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140011feb
cmp byte [rbp - 0x21], r15b
je 0x140012020
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140012020
call fcn.140008510
test eax, eax
jne 0x14001200c
cmp byte [rbp - 0x21], r15b
je 0x140012005
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140012020
cmp byte [rbp - 0x21], r15b
je 0x14001201d
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.14000b134
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001204c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001204f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001205d
mov rcx, rdi
call fcn.140008270
cmp byte [rbp + 0x3f], r15b
je 0x14001206c
mov rcx, qword [rbp + 0x27]
call fcn.140008270
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 0x140014490
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400144b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400144b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret