joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180102cc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x150
mov rax, qword [0x1801e6a40]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rax, qword [rcx]
mov rsi, r9
mov rdi, rcx
mov rbp, r8
mov r14, qword [rax + 0x10]
mov dword [r9], 0
xor r9d, r9d
mov rcx, qword [r14 + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
jne 0x180102d63
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x180102d27
mov dword [rsi], 0x51
jmp 0x180102d5c
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, ebx
call fcn.1800b1f00
mov rcx, qword [rdi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.1800ca0b0
mov rax, qword [rdi + 8]
mov dword [rax + 0xc8c], ebx
mov dword [rsi], gethostname
mov rbx, 0xffffffffffffffff
mov edx, dword [rsi]
lea r8, str.nw_in_read_len_zu__fd_qd______d__err_d
mov rcx, qword [rdi + 8]
mov r9, rbp
mov dword [rsp + 0x30], edx
mov rdx, qword [r14 + 0x98]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdx
mov rdx, qword [rdi]
call fcn.1800ca1f0
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180111e20
add rsp, 0x150
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x1801e6a40]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, qword [rcx + 0x10]
mov rsi, rdx
mov r9, qword [rbx + 0x98]
cmp r9, 0xffffffffffffffff
je 0x180102efe
mov rax, qword [rdx + 0x20]
mov rcx, qword [rax + 0x360]
test dword [rcx + 0x8c], 0x800
jne 0x180102efe
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
mov rcx, r9
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x180102e8e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1800b1f00
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1800ca0b0
mov eax, 2
jmp 0x180102f00
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x140]
lea r8, [rbx + 0x10e]
lea rcx, [rsp + 0x30]
call fcn.1800cc880
test al, al
jne 0x180102efe
mov qword [rsp + 0x1e0], rdi
call sub.ucrtbased.dll__errno
mov ebx, dword [rax]
call sub.ucrtbased.dll__errno
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1800b1f00
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1800ca0b0
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x180102f00
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.180111e20
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret
Function at 0x1801095b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x1801e6a40]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call fcn.1800de7a0
mov r13, rax
test rax, rax
jne 0x180109630
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1800b2030
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1800ca0b0
xor ecx, ecx
mov ebx, 0x4d
call qword [case.0x1800bd515.0]
jmp 0x1801097e8
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov r8d, 1
mov dword [rsp + 0x20], 3
mov rcx, r13
mov qword [rsp + 0x170], r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1801096a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1800b2030
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1800ca0b0
xor ecx, ecx
mov ebx, 0x4d
jmp 0x1801097d2
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1801096ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1800b2030
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1800ca0b0
mov ebx, 0x4d
jmp 0x1801097c6
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x180109724
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.1800ca0b0
mov ebx, 0x4d
jmp 0x1801097be
lea rcx, [rdi + 1]
call qword [section..data]
mov rbp, rax
test rax, rax
jne 0x180109740
mov ebx, 0x1b
jmp 0x1801097be
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x180109798
nop dword [rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18010980a
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x18010978f
mov edi, esi
jmp 0x180109791
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x180109750
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.180109320
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [case.0x1800bd515.0]
mov rcx, r13
call case.0x1800bd515.0
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180111e20
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1800b2030
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1800ca0b0
mov ebx, 0x4d
jmp 0x1801097b6
Function at 0x18010f410
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov edx, ebx
mov byte [rcx], 0
call qword [sym.imp.WS2_32.dll_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x18010f44b
mov edx, 0x2e
mov rcx, rdi
call sub.VCRUNTIME140D.dll_strchr
test rax, rax
je 0x18010f449
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180110980
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov rsi, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [section..data]
mov rbx, rax
test rax, rax
jne 0x1801109c3
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rdi
mov qword [rbx + 0x10], rax
lea rdi, [rbp + 8]
mov qword [rsp + 0x50], r14
cmp r15d, dword [rbp + 0x1c]
jbe 0x180110a10
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, rsi
call qword [rdi]
mov esi, dword [rbp + 0x18]
add rsi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rsi
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor r14d, r14d
test r15, r15
je 0x180110a72
mov r14, r15
nop dword [rax]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rdi]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea rsi, [rsi + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rdi]
sub r15, 1
jne 0x180110a30
lea rdi, [rbp + 8]
mov eax, dword [rbp + 0x1c]
cmp r14, rax
jae 0x180110ab1
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1801472f1]
mov r8d, 1
call qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1801472f2]
mov r8d, 1
call qword [rdi]
mov eax, dword [rbp + 0x1c]
inc r14
cmp r14, rax
jb 0x180110a80
mov r14, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
Function at 0x180110ca0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1801e6a40]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x180110cec
mov eax, 0x1b
jmp 0x180110dbf
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x180110d30
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x180110dbf
mov rcx, rbp
call fcn.1800cdea0
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov edx, 2
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x180110d9b
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rdi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180110dab
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180110dbd
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180111e20
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x180111b80
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x180111be5
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x180111b90
ret
Function at 0x180111bf0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1801e6a40]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, r8
mov dword [rsp + 0x20], 0xf0000040
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
lea rcx, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x38], rbp
xor edx, edx
mov qword [rsp + 0x40], rbp
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x180111c73
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x180111c95
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180111e20
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
call fcn.1800cdea0
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], ebp
mov edx, 2
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x10
jne 0x180111cf4
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rbx
mov dword [rsp + 0x20], ebp
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180111d04
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180111d16
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x180111c78

Function at 0x180113f74
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, [0x180147920]
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x180113fae
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x180113fb3
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180113ffc
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x180113ffc
dec r8
sub rdx, 1
jne 0x180113fe2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x180114014
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1801e6a40]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx edi, r8b
mov sil, dl
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
cmp eax, 0xffffffff
jne 0x180114054
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180114143
bt edx, 0xa
jae 0x180114126
test sil, sil
je 0x180114126
mov r9d, 0x2000000
lea rcx, [rsp + 0x20]
mov r8d, 0x180
mov rdx, rbx
call fcn.1801145d4
mov ebx, eax
test eax, eax
je 0x1801140a6
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x18011409f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x180114162
mov eax, ebx
jmp 0x180114143
mov rbx, qword [rsp + 0x20]
lea r8, [rsp + 0x28]
mov esi, 0x28
mov rcx, rbx
mov r9d, esi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
je 0x180114107
mov ecx, dword [rsp + 0x48]
mov eax, ecx
and eax, 1
cmp eax, edi
jne 0x1801140e9
cmp rbx, 0xffffffffffffffff
je 0x180114141
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x180114162
jmp 0x180114141
xor ecx, 1
lea r8, [rsp + 0x28]
mov dword [rsp + 0x48], ecx
mov r9d, esi
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
test eax, eax
jne 0x1801140d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x180114122
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x180114162
mov eax, edi
jmp 0x180114143
and eax, 1
cmp eax, edi
je 0x180114141
xor edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x180114049
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180111e20
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call sub.ucrtbased.dll_abort
int3
Function at 0x140002e80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], cl
sub rsp, 0x18
mov byte [rsp + 1], 0
jmp 0x140002ea4
movzx eax, byte [rsp + 1]
inc al
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 4
jge 0x140002f25
mov byte [rsp], 0
jmp 0x140002ebd
movzx eax, byte [rsp]
inc al
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 4
jge 0x140002f20
movzx eax, byte [rsp + 1]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax*4]
movzx ecx, byte [rsp]
movzx edx, byte [rsp + 0x20]
shl edx, 2
movzx r8d, byte [rsp + 1]
shl r8d, 2
lea edx, [r8 + rdx*4]
movzx r8d, byte [rsp]
add edx, r8d
movsxd rdx, edx
mov r8, qword [rsp + 0x30]
movzx edx, byte [r8 + rdx]
movzx eax, byte [rax + rcx]
xor eax, edx
movzx ecx, byte [rsp]
movzx edx, byte [rsp + 1]
mov r8, qword [rsp + 0x28]
lea rdx, [r8 + rdx*4]
mov byte [rdx + rcx], al
jmp 0x140002eb4
jmp 0x140002e99
add rsp, 0x18
ret

Function at 0x140003c60
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov byte [rsp + 1], 0
jmp 0x140003c7b
movzx eax, byte [rsp + 1]
inc al
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 4
jge 0x140003cd9
mov byte [rsp], 0
jmp 0x140003c94
movzx eax, byte [rsp]
inc al
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 4
jge 0x140003cd7
movzx eax, byte [rsp]
mov rcx, qword [rsp + 0x20]
lea rax, [rcx + rax*4]
movzx ecx, byte [rsp + 1]
movzx eax, byte [rax + rcx]
lea rcx, [0x140007420]
movzx edx, byte [rsp]
mov r8, qword [rsp + 0x20]
lea rdx, [r8 + rdx*4]
movzx r8d, byte [rsp + 1]
movzx eax, byte [rcx + rax]
mov byte [rdx + r8], al
jmp 0x140003c8b
jmp 0x140003c70
add rsp, 0x18
ret

Function at 0x1400040b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov byte [rsp], 0
jmp 0x1400040cd
movzx eax, byte [rsp]
inc al
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 0x10
jge 0x140004100
movzx eax, byte [rsp]
movzx ecx, byte [rsp]
mov rdx, qword [rsp + 0x28]
movzx ecx, byte [rdx + rcx]
mov rdx, qword [rsp + 0x20]
movzx eax, byte [rdx + rax]
xor eax, ecx
movzx ecx, byte [rsp]
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
jmp 0x1400040c4
add rsp, 0x18
ret
Function at 0x140004620
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov eax, 1
imul rax, rax, 0
lea rcx, str.___________________________________________________________________________________n_______________________________________________________________________________n_____________________________________________________________________________n_________________________________________________________________n_____________________________________________________n_____________________________n_______________________________n_________________________________n___________________________________n_____________________________________n_____________________________________n___________________________________n___________________________________n___________________________________n___________________________________n_______________________________n___________________________n___________________________n_______________________n_____________________n_____________________n________
mov byte [rcx + rax], 0x20
mov eax, 1
imul rax, rax, 0
lea rcx, str.CODEBY____remember__this_is_where_the_flag_starts_:_
mov byte [rcx + rax], 0x43
mov rcx, qword [rsp + 0x50]
call fcn.140004b80
movzx eax, al
test eax, eax
je 0x14000466a
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov rcx, qword [rsp + 0x50]
call fcn.140004af0
movzx eax, byte [rax]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
call fcn.140004b50
mov rcx, qword [rsp + 0x30]
cmp rcx, rax
ja 0x1400046a2
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400046aa
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov rcx, qword [rsp + 0x50]
call fcn.140004b50
movzx ecx, byte [rsp + 0x20]
sub rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x1400046d0
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x50]
call fcn.140004b50
cmp qword [rsp + 0x28], rax
jae 0x140004706
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.140004b20
movzx eax, byte [rax]
movzx ecx, byte [rsp + 0x20]
cmp eax, ecx
je 0x140004704
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
jmp 0x1400046c3
mov rcx, qword [rsp + 0x50]
call fcn.140004b50
movzx ecx, byte [rsp + 0x20]
sub rax, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.140004be0
add rsp, 0x48
ret
Function at 0x1400048e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x48
mov rcx, qword [rsp + 0x60]
call fcn.140004b80
movzx eax, al
test eax, eax
je 0x140004904
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov rcx, qword [rsp + 0x60]
call fcn.140004b50
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14000493a
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov rcx, qword [rsp + 0x60]
call fcn.140004b50
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x60]
call fcn.140004bc0
mov rdi, qword [rsp + 0x20]
mov rsi, rax
mov rax, qword [rsp + 0x28]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov r8, qword [0x14000c618]
mov rdx, qword [0x14000c620]
mov rcx, qword [0x14000c628]
call qword [rsp + 0x30]
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x1400049b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x78
lea rcx, [0x14000c630]
call fcn.140004b50
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x40], 0x88
mov byte [rsp + 0x41], 0x23
mov byte [rsp + 0x42], 0x3b
mov byte [rsp + 0x43], 0xef
mov byte [rsp + 0x44], 0x62
mov byte [rsp + 0x45], 0x16
mov byte [rsp + 0x46], 0x11
mov byte [rsp + 0x47], 0
mov byte [rsp + 0x48], 0xe2
mov byte [rsp + 0x49], 0xf1
mov byte [rsp + 0x4a], 0x99
mov byte [rsp + 0x4b], 0x34
mov byte [rsp + 0x4c], 0x7d
mov byte [rsp + 0x4d], 0xe8
mov byte [rsp + 0x4e], 0x73
mov byte [rsp + 0x4f], 0xe7
mov byte [rsp + 0x30], 0x40
mov byte [rsp + 0x31], 0x42
mov byte [rsp + 0x32], 0x31
mov byte [rsp + 0x33], 0xbc
mov byte [rsp + 0x34], 0xff
mov byte [rsp + 0x35], 0xaa
mov byte [rsp + 0x36], 0xdb
mov byte [rsp + 0x37], 0xb6
mov byte [rsp + 0x38], 0x11
mov byte [rsp + 0x39], 0x49
mov byte [rsp + 0x3a], 0x55
mov byte [rsp + 0x3b], 0xfd
mov byte [rsp + 0x3c], 3
mov byte [rsp + 0x3d], 0x65
mov byte [rsp + 0x3e], 0x7e
mov byte [rsp + 0x3f], 0xef
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rdx, [0x14000c630]
lea rcx, [rsp + 0x50]
call fcn.140004730
nop
call fcn.1400047f0
nop
lea rcx, [rsp + 0x50]
call fcn.1400048e0
nop
jmp 0x140004a94
call fcn.1400048c0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x50]
call fcn.140004c10
mov eax, dword [rsp + 0x20]
add rsp, 0x78
ret

Function at 0x1400065c8
Capabilities:
Parse pe header

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