joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401939e0
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, 0x51eb851f
mov edi, r8d
mov r8d, edx
xor ebx, ebx
mov rsi, rcx
mov rcx, qword [rcx]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x140193a32
lea rdx, str.Couldnt_set_desired_mode
call fcn.1401789a0
lea eax, [rbx + 0x11]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp r8d, 0xc8
je 0x140193a47
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.1401788f0
cmp edi, 0x13
jne 0x140193a56
mov rcx, rsi
call fcn.140193960
jmp 0x140193a81
cmp edi, 0x14
jne 0x140193a65
mov rcx, rsi
call fcn.140190950
jmp 0x140193a81
cmp edi, 0x15
jne 0x140193a74
mov rcx, rsi
call fcn.1401939c0
jmp 0x140193a81
cmp edi, 0x16
jne 0x140193a83
mov rcx, rsi
call fcn.1401939d0
mov ebx, eax
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140194170
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rcx]
mov ebx, dword [rcx + 0x9ec]
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov rdi, rcx
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x1401941fc
test ebx, ebx
jne 0x1401941ba
lea rdx, str.disabling_EPRT_usage_n
mov rcx, rsi
call fcn.1401788f0
mov dword [rdi + 0x58c], ebx
inc ebx
cmp ebx, 2
jne 0x1401941e3
lea rdx, str.Failed_to_do_PORT
mov rcx, rsi
call fcn.1401789a0
lea eax, [rbx + 0x1c]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140190160
lea rdx, str.Connect_data_stream_actively_n
mov rcx, rsi
call fcn.1401788f0
xor edx, edx
mov rcx, rdi
call fcn.140190020
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140193fd0
Function at 0x14019b410
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x140254f90]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.1401680d0
mov byte [rsp + 0x20], 0
test rax, rax
je 0x14019b476
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x14019b476
lea rcx, [rsp + 0x20]
call qword [fcn.140153ac8]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401517c0
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401517c0
add rsp, 0x148
ret
jmp 0x14019b410

Function at 0x14019b490
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x140254f90]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.1401680d0
mov byte [rsp + 0x20], 0
test rax, rax
je 0x14019b476
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x14019b476
lea rcx, [rsp + 0x20]
call qword [fcn.140153ac8]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401517c0
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401517c0
add rsp, 0x148
ret
jmp 0x14019b410

Function at 0x14019f1d0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
xor eax, eax
test edx, edx
lea r8, [rsp + 0x38]
setne al
mov edx, 0x8004667e
mov dword [rsp + 0x38], eax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x28
ret

Function at 0x1401a1ec0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov byte [rcx], 0
mov edx, ebx
call qword [sym.imp.WS2_32.dll_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x1401a1ef9
lea edx, [rax + 0x2e]
mov rcx, rdi
call fcn.14015ed50
test rax, rax
je 0x1401a1ef7
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401a1fd0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140254f90]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rcx
mov rsi, r8
mov rbx, rdx
lea rcx, [rsp + 0x48]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x40], 8
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1401a20a1
xor eax, eax
lea rdx, [rsp + 0x64]
mov rcx, rsi
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov word [rsp + 0x58], 0x208
mov dword [rsp + 0x5c], 0x6601
mov dword [rsp + 0x60], 8
mov dword [rsp + 0x68], eax
call fcn.1401a1f30
lea rcx, [rsp + 0x64]
mov edx, 8
call fcn.1401a7590
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
lea r11, [rsp + 0x50]
lea r8d, [r9 + 0x14]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1401a20a5
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x1401a20f2
mov ecx, dword [rsp + 0x40]
mov rax, qword [rdi]
xor r9d, r9d
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x50]
xor edx, edx
mov qword [rbx], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401517c0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1401a2120
Capabilities:
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov r8, rcx
mov rdx, rdi
mov rcx, rsi
call fcn.1401a1fd0
lea r8, [rbx + 7]
lea rdx, [rdi + 8]
mov rcx, rsi
call fcn.1401a1fd0
lea r8, [rbx + 0xe]
lea rdx, [rdi + 0x10]
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1401a1fd0
Function at 0x1401a2270
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
mov rbx, r8
mov rbp, rdx
not rcx
dec rcx
mov rsi, rcx
add rcx, rcx
call qword [fcn.140152504]
mov rdi, rax
test rax, rax
jne 0x1401a22b7
lea eax, [rdi + 0x1b]
jmp 0x1401a2373
mov r8, rsi
mov rdx, rbp
mov rcx, rax
call fcn.1401a2240
lea rcx, [rsp + 0x38]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1401a2360
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1401a2353
mov rcx, qword [rsp + 0x30]
lea r8d, [rsi + rsi]
xor r9d, r9d
mov rdx, rdi
mov dword [rsp + 0x68], reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x68]
mov r8, rbx
mov edx, 2
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, rdi
mov dword [rbx + 0x10], eax
mov byte [rbx + 0x14], al
call qword [fcn.1401524c4]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1401a4dd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rdi, r8
cmp dword [rcx + 8], 3
mov rsi, rdx
jne 0x1401a4e1a
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x1401a4e0a
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rcx + 0x10]
mov edx, 1
mov rcx, rsi
call rax
jmp 0x1401a4e62
cmp qword [rbx + 0x10], 0
jne 0x1401a4e4e
mov rcx, qword [rcx + 0x10]
lea rdx, [0x1401bb5f0]
call fcn.1401518b8
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1401a4e4e
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rbx + 0x10]
mov r8, rdi
mov edx, 1
mov rcx, rsi
call fcn.140151eac
mov rdi, rax
test rax, rax
jne 0x1401a4e85
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401a4e7c
call fcn.14015162c
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x1401a80b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov r12d, r8d
lea r9d, [rax + rax]
mov eax, dword [rcx + 0x20]
mov rbp, rdx
lea rcx, [r9 + rax + 0x18]
call qword [fcn.140152504]
mov rdi, rax
test rax, rax
jne 0x1401a80f1
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rsp + 0x48], rsi
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp r12d, dword [rbx + 0x1c]
jbe 0x1401a8135
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, r12d
mov rdx, rbp
call qword [rbx + reloc.WS2_32.dll_htonl]
mov ebp, dword [rbx + 0x18]
mov rdx, qword [rdi + 8]
add rbp, qword [rdi + 0x10]
mov rcx, rbp
call qword [rbx + reloc.WS2_32.dll_recv]
mov r12d, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test r12, r12
je 0x1401a8194
mov rsi, r12
nop dword [rax + rax]
movzx eax, byte [rbp]
lea rdx, [rsp + 0x40]
mov r8d, 1
xor al, 0x36
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx r11d, byte [rbp]
lea rdx, [rsp + 0x40]
xor r11b, 0x5c
mov r8d, 1
inc rbp
mov byte [rsp + 0x40], r11b
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
dec r12
jne 0x1401a8150
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1401a81d3
nop dword [rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1402166f9]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1402166fa]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1401a81a0
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x20
pop r12
pop rdi
pop rbp
ret

Function at 0x1401a83ac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x1401a83d6
call fcn.140152be8
and dword [rax], 0
call fcn.140152bc8
mov ebx, reloc.WLDAP32.dll_Ordinal_22
mov dword [rax], ebx
call fcn.140157f18
mov eax, ebx
jmp 0x1401a8426
test edx, 0xfffffff9
jne 0x1401a83b9
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1401a83ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140152c08
call fcn.140152bc8
mov eax, dword [rax]
jmp 0x1401a8426
test al, 0x10
jne 0x1401a8424
test al, 1
je 0x1401a8424
test bl, 2
je 0x1401a8424
call fcn.140152be8
mov dword [rax], 5
call fcn.140152bc8
mov dword [rax], reloc.WS2_32.dll_listen
jmp 0x1401a83f6
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1408ef058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1408ef1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1408ef089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408ef06f
add dl, dl
jne 0x1408ef096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408ef0f6
xor eax, eax
add dl, dl
jne 0x1408ef0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408ef1ad
add dl, dl
jne 0x1408ef0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408ef0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408ef0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408ef0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408ef0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1408ef07e
mov eax, 1
add dl, dl
jne 0x1408ef106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408ef113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408ef0fb
sub eax, ebx
mov ebx, 1
jne 0x1408ef14c
mov ecx, 1
add dl, dl
jne 0x1408ef12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408ef13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408ef123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408ef07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1408ef168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408ef175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408ef15d
cmp eax, 0x7d00
jae 0x1408ef19b
cmp eax, 0x500
jb 0x1408ef196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408ef07e
cmp eax, 0x7f
ja 0x1408ef19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408ef07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408ef1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1408ef07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x58
lea r8, str.shellcode
mov edx, 0x65
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov r9d, 4
mov r8d, 0x1000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x24]
mov r8d, eax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov dword [rsp + 0x20], 0
jmp 0x140001089
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jae 0x1400010b3
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
movsx eax, byte [rcx + rax]
xor eax, 0x66
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
mov byte [rdx + rcx], al
jmp 0x14000107f
mov eax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x20
mov edx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rsp + 0x2c], eax
call qword [rsp + 0x30]
add rsp, 0x58
ret

Function at 0x140001818
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001862
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001862
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001862
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001862
cmp dword [rcx + 0x84], 0xe
jbe 0x140001862
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001864
xor al, al
add rsp, 0x28
ret
Function at 0x180001b10
Capabilities:
Allocate or change rwx memory
Resolve function by parsing pe exports

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x180023010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r8, qword [rcx]
movabs rax, 0xffffffff00000000
mov r11d, dword [rcx + 0x50]
mov r15, rcx
neg r11d
movzx ebx, word [r8 + 0x14]
mov r12, qword [r8 + 0x30]
add rbx, r8
and r12, rax
mov r10d, dword [rbx + 0x20]
mov r9d, dword [rbx + 0x28]
or r10, r12
and r11, r10
mov qword [rsp + 0x20], r10
mov qword [rsp + 0x28], r11
test r9d, r9d
jne 0x180001b85
mov eax, dword [rbx + 0x3c]
test al, 0x40
je 0x180001b7d
mov r9d, dword [r8 + 0x20]
jmp 0x180001b85
test al, al
jns 0x180001b85
mov r9d, dword [r8 + 0x24]
mov edx, dword [rbx + 0x3c]
mov r13d, 1
mov r14d, r13d
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], rdi
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x38], 0
cmp r13w, word [r8 + 6]
jae 0x180001c78
add rbx, 0x64
nop dword [rax]
mov edi, dword [r15 + 0x50]
mov ebp, dword [rbx - 0x1c]
neg edi
mov esi, dword [rbx - 0x14]
or rbp, r12
and rdi, rbp
test esi, esi
jne 0x180001bfa
mov eax, dword [rbx]
test al, 0x40
je 0x180001bf2
mov esi, dword [r8 + 0x20]
jmp 0x180001bfa
test al, al
jns 0x180001bfa
mov esi, dword [r8 + 0x24]
cmp r11, rdi
je 0x180001c3d
mov eax, r9d
add rax, r10
cmp rax, rdi
ja 0x180001c3d
lea rdx, [rsp + 0x20]
mov rcx, r15
call fcn.180001a20
test eax, eax
je 0x180001d25
mov edx, dword [rbx]
mov r10, rbp
mov r8, qword [r15]
mov r11, rdi
mov qword [rsp + 0x20], rbp
mov r9d, esi
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x30], esi
jmp 0x180001c5f
mov ecx, dword [rbx]
mov eax, ecx
and eax, edx
or edx, ecx
bt eax, 0x19
jb 0x180001c4f
btr edx, 0x19
mov r9d, ebp
sub r9d, dword [rsp + 0x20]
add r9d, esi
mov dword [rsp + 0x30], r9d
movzx eax, word [r8 + 6]
inc r14d
add rbx, 0x28
mov dword [rsp + 0x34], edx
cmp r14d, eax
jl 0x180001bd0
test r9d, r9d
je 0x180001c9a
bt edx, 0x19
jae 0x180001cd0
cmp r10, r11
jne 0x180001c9a
mov edx, r9d
mov r8d, 0x4000
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, r13d
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800024c0
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
mov ecx, edx
mov eax, edx
shr rax, 0x1e
and eax, r13d
shr rcx, 0x1d
and ecx, r13d
lea rcx, [rax + rcx*2]
mov eax, edx
shr rax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, [0x180020dd0]
mov eax, dword [rax + rcx*4]
mov r8d, eax
bts r8d, 9
mov rcx, r10
and edx, 0x4000000
mov edx, r9d
lea r9, [rsp + 0x40]
cmove r8d, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180001c9a
xor eax, eax
jmp 0x180001c9d
Function at 0x14001fb48
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001fc78
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14001fcdf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001fcdf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001fcdf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001fcdf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001fcdf
cmp dword [rcx + 0x84], 0xe
jbe 0x14001fcdf
cmp dword [rcx + 0xf8], 0
je 0x14001fcdf
mov ecx, ebx
call fcn.14001fbc4
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14001fdf8
cmp dword [rbp + 0x20], 0
je 0x14001fd2c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001fc20
int3
Function at 0x140037f84
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov ebp, 0x7ff
movzx ecx, word [rcx + 6]
mov esi, edx
shr cx, 4
and cx, bp
cmp cx, bp
jne 0x140037fe5
test byte [rbx + 6], 0xf
jne 0x140037fd8
xor edi, edi
cmp word [rbx + 4], di
jne 0x140037fd8
cmp word [rbx + 2], di
jne 0x140037fd8
cmp word [rbx], di
jne 0x140037fd8
lea esi, [rdi + 1]
jmp 0x140037fdd
mov esi, 2
movzx eax, si
jmp 0x1400381e2
xor edi, edi
test cx, cx
jne 0x140038000
mov rcx, rbx
call fcn.14003ed3c
movzx ecx, ax
cmp di, ax
jl 0x1400381df
movsx edx, cx
test esi, esi
jle 0x140038030
sub ebp, edx
cmp ebp, esi
jg 0x140038030
movsd xmm0, qword [0x14004a700]
cmp word [rbx + 6], di
jge 0x140038022
xorps xmm0, xmmword [0x140045860]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x1400381e2
movzx r11d, word [rbx + 6]
mov eax, edx
neg eax
cmp eax, esi
jge 0x14003805d
add si, cx
mov eax, 0x800f
shl si, 4
and r11w, ax
or si, r11w
mov word [rbx + 6], si
or eax, 0xffffffff
jmp 0x1400381e2
movzx r15d, r11w
lea ebp, [rsi - 1]
and r11w, 0xf
mov r13d, 0x8000
mov r12d, 0x10
and r15w, r13w
or r11w, r12w
add ebp, edx
cmp ebp, 0xffffffcb
jl 0x1400381d4
test ebp, ebp
jns 0x1400381d4
lea esi, [r12 - 0xf]
movzx r14d, di
cmp bp, 0xfff0
jg 0x1400380f8
movzx ecx, word [rbx + 4]
mov eax, 0xfff0
movzx edx, word [rbx + 2]
sub ax, bp
shr ax, 4
movzx r9d, r11w
add ax, si
movzx r8d, ax
movzx eax, r8w
shl ax, 4
add bp, ax
test r14w, r14w
mov eax, edi
setne al
movzx r14d, ax
or r14w, word [rbx]
mov word [rbx], dx
movzx edx, cx
movzx ecx, r9w
mov r9d, edi
sub r8, rsi
jne 0x1400380c9
mov word [rbx + 4], cx
movzx r11d, di
mov word [rbx + 2], dx
neg bp
je 0x140038177
movzx r8d, word [rbx]
mov eax, edi
movzx r9d, word [rbx + 2]
movzx edx, r8w
movsx r10d, bp
sub r12d, r10d
mov ecx, r12d
shl dx, cl
test r14w, r14w
movzx r14d, dx
movzx edx, word [rbx + 4]
setne al
or r14w, ax
movzx eax, r9w
shl ax, cl
movzx ecx, bp
shr r8w, cl
mov ecx, r12d
or ax, r8w
mov word [rbx], ax
movzx eax, dx
shl ax, cl
movzx ecx, bp
shr r9w, cl
mov ecx, r12d
or ax, r9w
mov word [rbx + 2], ax
movzx eax, r11w
shl ax, cl
movzx ecx, bp
shr dx, cl
mov ecx, r10d
or ax, dx
mov word [rbx + 4], ax
shr r11w, cl
or r11w, r15w
mov word [rbx + 6], r11w
cmp r13w, r14w
jb 0x14003818d
jne 0x1400381ac
test byte [rbx], sil
je 0x1400381ac
add word [rbx], si
jne 0x1400381ac
add word [rbx + 2], si
jne 0x1400381ac
add word [rbx + 4], si
jne 0x1400381ac
add r11w, si
mov word [rbx + 6], r11w
jmp 0x140038055
cmp r11w, r15w
jne 0x140038055
cmp word [rbx + 4], di
jne 0x140038055
cmp word [rbx + 2], di
jne 0x140038055
cmp word [rbx], di
je 0x1400381df
jmp 0x140038055
mov word [rbx + 6], r15w
mov dword [rbx + 2], edi
mov word [rbx], di
movzx eax, di
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret