joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400efb30
Capabilities:
Check internet connectivity via wininet

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.WININET.dll_InternetGetConnectedState]
cmp eax, 1
jne 0x1400efb57
mov al, 1
jmp 0x1400efb59
xor al, al
add rsp, 0x38
ret
Function at 0x1400f25d0
Capabilities:
Hash data via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rax, vtable.EncryptData.0
mov rdi, rdx
mov rbx, rcx
mov qword [rcx], rax
xor eax, eax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
call fcn.1400f26f0
test al, al
je 0x1400f261c
or r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], 0
jne 0x1400f2601
mov rcx, qword [rbx + 0x10]
xor r9d, r9d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400f26f0
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
mov r9d, 1
xor edx, edx
add rcx, 8
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1400f275f
lea r9d, [rax + 1]
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
lea rcx, [rdi + 8]
xor edx, edx
mov dword [rsp + 0x20], 8
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1400f275f
lea rcx, str.A_cryptographic_service_handle_could_not_be_acquired._n
call qword [sym.imp.MSVCR110.dll_printf]
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rdi + 8]
lea rax, [rdi + 0x10]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1400f27a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error_call_to_function_failed:CryptCreateHash__last_error___d_n
mov edx, eax
call qword [sym.imp.MSVCR110.dll_printf]
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400f2830
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push r14
sub rsp, 0x40
mov rsi, rdx
mov rbp, r8
mov rbx, rcx
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x30]
xor r14d, r14d
mov rcx, rsi
mov dword [rsp + 0x78], r14d
call fcn.1400c7480
test al, al
jne 0x1400f2872
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
mov rcx, rsi
mov qword [rsp + 0x60], rdi
xor dil, dil
call fcn.1400f27b0
test al, al
je 0x1400f28ae
mov rcx, qword [0x140354248]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rsp + 0x30]
mov dil, 1
add eax, eax
movsxd rcx, eax
add rdx, rcx
sub dword [rsp + 0x78], eax
mov qword [rsp + 0x30], rdx
jmp 0x1400f28b3
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400f2991
mov r8, qword [rbx + 0x10]
test r8, r8
je 0x1400f2991
lea rax, [rsp + 0x38]
xor r9d, r9d
mov edx, 0x6801
xor bl, bl
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x1400f2924
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x78]
mov esi, 1
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
xor r9d, r9d
mov r8d, esi
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
movzx ebx, bl
test eax, eax
cmovne ebx, esi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400f2934
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test bl, bl
je 0x1400f2953
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x30]
mov rcx, rbp
call fcn.1400c82e0
movzx ebx, bl
test al, al
cmove ebx, r14d
test dil, dil
je 0x1400f2981
mov rcx, qword [0x140354248]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x30]
add eax, eax
cdqe
sub rcx, rax
mov qword [rsp + 0x30], rcx
call qword [sym.imp.MSVCR110.dll_free]
movzx eax, bl
jmp 0x1400f29bf
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.MSVCR110.dll_free]
movzx eax, bl
jmp 0x1400f29bf
test dil, dil
je 0x1400f29b4
mov rcx, qword [0x140354248]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rsp + 0x30]
add eax, eax
cdqe
sub rdx, rax
mov qword [rsp + 0x30], rdx
mov rcx, rdx
call qword [sym.imp.MSVCR110.dll_free]
xor al, al
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
Function at 0x1400f29e0
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov r11, rsp
push rbx
push r14
push r15
sub rsp, 0x50
mov rax, rdx
mov r14, r8
mov rbx, rcx
lea r8, [r11 + 0x20]
lea rdx, [r11 - 0x28]
xor r15d, r15d
mov rcx, rax
mov dword [r11 + 0x20], r15d
call fcn.1400c7480
test al, al
je 0x1400f2b77
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400f2b6c
mov r8, qword [rbx + 0x10]
test r8, r8
je 0x1400f2b6c
lea rax, [rsp + 0x48]
xor r9d, r9d
mov edx, 0x6801
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x20], rax
xor dil, dil
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x1400f2a9d
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
mov ebx, 1
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x88]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
mov r8d, ebx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
movzx edi, dil
test eax, eax
cmovne edi, ebx
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400f2aad
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test dil, dil
je 0x1400f2b4b
mov rcx, qword [0x140354248]
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, dword [rsp + 0x88]
mov ebx, eax
add ebx, ebx
add ebp, ebx
movsxd rcx, ebp
call qword [sym.imp.MSVCR110.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400f2b3e
mov rdx, qword [0x140354248]
movsxd rbx, ebx
mov rcx, rax
mov r8, rbx
call sub.MSVCR110.dll_memcpy
movsxd r8, dword [rsp + 0x88]
mov rdx, qword [rsp + 0x40]
add rsi, rbx
mov rcx, rsi
call sub.MSVCR110.dll_memcpy
sub rsi, rbx
mov r8d, ebp
mov rdx, rsi
mov rcx, r14
call fcn.1400c82e0
movzx edi, dil
mov rcx, rsi
test al, al
cmove edi, r15d
call qword [sym.imp.MSVCR110.dll_free]
jmp 0x1400f2b41
xor dil, dil
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCR110.dll_free]
movzx eax, dil
mov rdi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rbx
ret
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCR110.dll_free]
xor al, al
add rsp, 0x50
pop r15
pop r14
pop rbx
ret
Function at 0x1400f3884
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov dword [rax - 0x18], r15d
call qword [sym.imp.MSVCR110.dll___crtGetShowWindowMode]
movzx r14d, ax
mov rcx, qword gs:[0x30]
mov rdx, qword [rcx + 8]
mov esi, r15d
xor eax, eax
lock cmpxchg qword [0x140356b28], rdx
je 0x1400f38db
cmp rax, rdx
jne 0x1400f38d9
mov ebx, 1
mov esi, ebx
jmp 0x1400f38e0
jmp 0x1400f38be
mov ebx, 1
mov eax, dword [0x140356b30]
cmp eax, ebx
jne 0x1400f38f8
mov edi, MsiEnumClientsA
mov ecx, edi
call fcn.1405e6000
jmp 0x1400f3934
mov eax, dword [0x140356b30]
test eax, eax
jne 0x1400f3929
mov dword [0x140356b30], ebx
lea rdx, [0x140113a40]
lea rcx, [0x140113a20]
call sub.MSVCR110.dll__initterm_e
test eax, eax
je 0x1400f392f
mov eax, 0xff
jmp 0x1400f3a5f
mov dword [0x140356564], ebx
mov edi, MsiEnumClientsA
mov eax, dword [0x140356b30]
cmp eax, ebx
jne 0x1400f395b
lea rdx, [0x140113a18]
lea rcx, [0x140113240]
call sub.MSVCR110.dll__initterm
mov dword [0x140356b30], 2
test esi, esi
jne 0x1400f3969
mov rax, r15
xchg qword [0x140356b28], rax
cmp qword [0x140356b48], r15
je 0x1400f3994
lea rcx, [0x140356b48]
call fcn.1400f4150
test eax, eax
je 0x1400f3994
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140356b48]
call rax
mov rax, qword [sym.imp.MSVCR110.dll__wcmdln]
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x1400f3a10
cmp word [rcx], r15w
je 0x1400f39b7
test edx, edx
jne 0x1400f3a10
movzx eax, word [rcx]
sub ax, bx
cmp ax, di
ja 0x1400f39cd
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400f39b7
movzx r9d, r14w
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400f4444
mov dword [0x140356560], eax
cmp dword [0x140356580], r15d
jne 0x1400f39f9
mov ecx, eax
call qword [sym.imp.MSVCR110.dll_exit]
cmp dword [0x140356564], r15d
jne 0x1400f3a0e
call qword [sym.imp.MSVCR110.dll__cexit]
mov eax, dword [0x140356560]
jmp 0x1400f3a5f
cmp word [rcx], 0x22
jne 0x1400f3a24
mov eax, r15d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400f39a7
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400f41d0
add rsp, 0x28
jmp 0x1400f3884
Function at 0x11b0720
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x11b072d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x11b073d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x11b0725
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x11b0755
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x11b0742
sub eax, 3
jb 0x11b076f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x11b07a6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x11b0796
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x11b0794
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x11b0783
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.011b06e2
jmp 0x11b072d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x6dc800
mov dl, 0x86
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x11b07f2
cmp rsi, rcx
jae 0x11b07fa
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x11b07d9
cmp al, 0x8f
ja 0x11b07d9
cmp byte [rsi - 2], 0xf
je 0x11b07df
sub al, 0xe8
cmp al, 1
ja 0x11b07c3
cmp rsi, rcx
jae 0x11b07fa
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x11b07c9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x11b07fa
lodsb al, byte [rsi]
jmp 0x11b07d9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xd8b000]
mov eax, dword [rdi]
or eax, eax
je 0x11b0857
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xdbe9b0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x11b0807
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x11b0851
mov qword [rbx], rax
add rbx, 8
jmp 0x11b0827
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x11b089b
cmp al, 0xef
ja 0x11b0883
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x11b0863
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x11b0872
mov eax, dword [rdi]
add rdi, 4
jmp 0x11b0872
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x11b08ef
sub rsp, 0xffffffffffffff80
jmp 0xac4c60
Function at 0x140002ce0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140004860
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004860
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002d50
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002e80
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002d9b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002e25
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002d80
mov rcx, rbx
call fcn.1400037a0
mov rdi, rax
test rax, rax
je 0x140002ea2
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400038e0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002e87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002e1e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002e30
add dword [0x14000a0a4], 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 [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002e1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002ce0
nop dword [rax]
xor esi, esi
jmp 0x140002da8
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002ce0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002ce0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003410
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000346c
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 0x140003463
test rsi, rsi
je 0x140003463
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003448
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 0x1400037a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006ae0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400037c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400037c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400037c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000381d
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 0x140003814
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400037c0
add rax, 0x28
cmp rax, r9
jne 0x140003800
xor eax, eax
ret

Function at 0x140003820
Capabilities:
Parse pe header

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

Function at 0x1400038e0
Capabilities:
Parse pe header

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

Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
push rsi
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
add rax, rdx
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140002ba4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002bee
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002bee
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002bee
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002bee
cmp dword [rcx + 0x84], 0xe
jbe 0x140002bee
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002bf0
xor al, al
add rsp, 0x28
ret
Function at 0x1800010b4
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], r8
push rdi
sub rsp, 0x30
and qword [rax + 0x18], 0
mov rdi, rcx
mov ebx, edx
lea rcx, [rax + 0x18]
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
mov r9d, 1
xor edx, edx
mov dword [rax - 0x18], 0xf0000020
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180001116
lea r9d, [rax + 1]
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
lea rcx, [rsp + 0x50]
xor edx, edx
mov dword [rsp + 0x20], 0xf0000028
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x18000113c
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
cmp eax, 1
je 0x18000112d
xor ebx, ebx
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x18000122c
Capabilities:
Encode data using xor

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, 0x30
mov rbp, rcx
mov ecx, dword [r9]
mov rbx, r9
mov esi, r8d
mov rdi, rdx
call fcn.180003ed8
test eax, eax
jne 0x18000134d
mov ecx, dword [r9 + 4]
lea eax, [rcx - 1]
cmp eax, 0x7f
ja 0x180001348
xor edx, edx
mov eax, r8d
div ecx
mov r8d, eax
test edx, edx
jne 0x180001348
test cl, 3
jne 0x180001348
movsxd rax, dword [r9]
lea r12, [0x1800666e0]
imul rax, rax, 0xb0
mov r10, qword [rax + r12 + 0x60]
test r10, r10
je 0x1800012c9
lea rax, [r9 + 0x88]
mov rdx, rdi
mov rcx, rbp
add r9, 8
mov qword [rsp + 0x20], rax
call r10
jmp 0x18000134d
test esi, esi
je 0x180001344
lea r14, [r9 + 8]
xor edx, edx
test ecx, ecx
jle 0x1800012f3
mov r8, rbp
mov rcx, r14
sub r8, rbx
mov eax, dword [r8 + rcx - 8]
add edx, 4
xor dword [rcx], eax
lea rcx, [rcx + 4]
cmp edx, dword [rbx + 4]
jl 0x1800012e0
movsxd rax, dword [rbx]
lea r8, [rbx + 0x88]
mov rdx, rdi
mov rcx, r14
imul rax, rax, 0xb0
call qword [rax + r12 + 0x28]
test eax, eax
jne 0x18000134d
xor edx, edx
cmp dword [rbx + 4], edx
jle 0x180001336
mov r8, rdi
mov rcx, r14
sub r8, rbx
mov eax, dword [r8 + rcx - 8]
add edx, 4
mov dword [rcx], eax
lea rcx, [rcx + 4]
cmp edx, dword [rbx + 4]
jl 0x180001323
movsxd rcx, dword [rbx + 4]
add rdi, rcx
add rbp, rcx
sub esi, ecx
jne 0x1800012d1
xor eax, eax
jmp 0x18000134d
mov eax, reloc.WS2_32.dll_recv
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x18000136c
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x1800605c8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
mov ecx, dword [r9]
mov rbx, r9
mov esi, r8d
mov rbp, rdx
call fcn.180003ed8
test eax, eax
jne 0x18000148a
mov ecx, dword [r9 + 4]
lea eax, [rcx - 1]
cmp eax, 0x7f
ja 0x180001485
xor edx, edx
mov eax, r8d
div ecx
mov r8d, eax
test edx, edx
jne 0x180001485
test cl, 3
jne 0x180001485
movsxd rax, dword [r9]
lea r15, [0x1800666e0]
imul rax, rax, 0xb0
mov r10, qword [rax + r15 + 0x68]
test r10, r10
je 0x180001408
lea rax, [r9 + 0x88]
mov rdx, rbp
mov rcx, rdi
add r9, 8
mov qword [rsp + 0x20], rax
call r10
jmp 0x18000148a
test esi, esi
je 0x180001481
movsxd rax, dword [rbx]
lea r8, [rbx + 0x88]
lea rdx, [rsp + 0x30]
mov rcx, rdi
imul rax, rax, 0xb0
call qword [rax + r15 + gethostbyname]
test eax, eax
jne 0x18000148a
xor r8d, r8d
cmp dword [rbx + 4], r8d
jle 0x180001472
lea r9, [rsp + 0x30]
mov r10, rdi
mov r11, rbp
sub r9, rdi
sub r10, rbx
sub r11, rbx
lea rdx, [rbx + 8]
lea rax, [r10 + rdx]
add r8d, 4
mov ecx, dword [r9 + rax - 8]
mov eax, dword [rax - 8]
xor ecx, dword [rdx]
mov dword [rdx], eax
lea rdx, [rdx + 4]
mov dword [r11 + rdx - 0xc], ecx
cmp r8d, dword [rbx + 4]
jl 0x18000144f
movsxd rax, dword [rbx + 4]
add rdi, rax
add rbp, rax
sub esi, dword [rbx + 4]
jne 0x18000140c
xor eax, eax
jmp 0x18000148a
mov eax, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18003e640
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret