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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movzx ebx, byte [rcx]
mov rsi, rdx
mov rdi, rcx
test bl, bl
je 0x1400bb70d
mov qword [rsp + 0x30], rbp
lea rbp, [0x140000000]
nop dword [rax]
movzx edx, byte [rsi]
test dl, dl
je 0x1400bb708
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x1400bb682
cdqe
mov ecx, dword [rbp + rax*4 + 0xbb73c]
add rcx, rbp
jmp rcx
mov bl, 0x41
jmp case.default.0x1400bb682
mov bl, 0x42
jmp case.default.0x1400bb682
mov bl, 0x43
jmp case.default.0x1400bb682
mov bl, 0x44
jmp case.default.0x1400bb682
mov bl, 0x45
jmp case.default.0x1400bb682
mov bl, 0x46
jmp case.default.0x1400bb682
mov bl, 0x47
jmp case.default.0x1400bb682
mov bl, 0x48
jmp case.default.0x1400bb682
mov bl, 0x49
jmp case.default.0x1400bb682
mov bl, 0x4a
jmp case.default.0x1400bb682
mov bl, 0x4b
jmp case.default.0x1400bb682
mov bl, 0x4c
jmp case.default.0x1400bb682
mov bl, 0x4d
jmp case.default.0x1400bb682
mov bl, 0x4e
jmp case.default.0x1400bb682
mov bl, 0x4f
jmp case.default.0x1400bb682
mov bl, 0x50
jmp case.default.0x1400bb682
mov bl, 0x51
jmp case.default.0x1400bb682
mov bl, 0x52
jmp case.default.0x1400bb682
mov bl, 0x53
jmp case.default.0x1400bb682
mov bl, 0x54
jmp case.default.0x1400bb682
mov bl, 0x55
jmp case.default.0x1400bb682
mov bl, 0x56
jmp case.default.0x1400bb682
mov bl, 0x57
jmp case.default.0x1400bb682
mov bl, 0x58
jmp case.default.0x1400bb682
mov bl, 0x59
jmp case.default.0x1400bb682
mov bl, 0x5a
movzx ecx, dl
call fcn.1400bb960
cmp bl, al
jne 0x1400bb708
movzx ebx, byte [rdi + 1]
inc rdi
inc rsi
test bl, bl
jne 0x1400bb660
mov rbp, qword [rsp + 0x30]
movzx ecx, byte [rdi]
call fcn.1400bb960
movzx ecx, byte [rsi]
movzx ebx, al
call fcn.1400bb960
mov rsi, qword [rsp + 0x40]
xor ecx, ecx
cmp bl, al
mov rbx, qword [rsp + 0x38]
sete cl
mov eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x1400bb7b0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
movzx ebx, byte [rcx]
mov rsi, r8
mov r14, rdx
mov rdi, rcx
test bl, bl
je 0x1400bb8a5
lea rbp, [0x140000000]
nop word [rax + rax]
movzx edx, byte [r14]
test dl, dl
je 0x1400bb8a5
test rsi, rsi
je 0x1400bb8aa
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x1400bb81c
cdqe
mov ecx, dword [rbp + rax*4 + 0xbb8ec]
add rcx, rbp
jmp rcx
mov bl, 0x41
jmp case.default.0x1400bb81c
mov bl, 0x42
jmp case.default.0x1400bb81c
mov bl, 0x43
jmp case.default.0x1400bb81c
mov bl, 0x44
jmp case.default.0x1400bb81c
mov bl, 0x45
jmp case.default.0x1400bb81c
mov bl, 0x46
jmp case.default.0x1400bb81c
mov bl, 0x47
jmp case.default.0x1400bb81c
mov bl, 0x48
jmp case.default.0x1400bb81c
mov bl, 0x49
jmp case.default.0x1400bb81c
mov bl, 0x4a
jmp case.default.0x1400bb81c
mov bl, 0x4b
jmp case.default.0x1400bb81c
mov bl, 0x4c
jmp case.default.0x1400bb81c
mov bl, 0x4d
jmp case.default.0x1400bb81c
mov bl, 0x4e
jmp case.default.0x1400bb81c
mov bl, 0x4f
jmp case.default.0x1400bb81c
mov bl, 0x50
jmp case.default.0x1400bb81c
mov bl, 0x51
jmp case.default.0x1400bb81c
mov bl, 0x52
jmp case.default.0x1400bb81c
mov bl, 0x53
jmp case.default.0x1400bb81c
mov bl, 0x54
jmp case.default.0x1400bb81c
mov bl, 0x55
jmp case.default.0x1400bb81c
mov bl, 0x56
jmp case.default.0x1400bb81c
mov bl, 0x57
jmp case.default.0x1400bb81c
mov bl, 0x58
jmp case.default.0x1400bb81c
mov bl, 0x59
jmp case.default.0x1400bb81c
mov bl, 0x5a
movzx ecx, dl
call fcn.1400bb960
cmp bl, al
jne 0x1400bb8a5
movzx ebx, byte [rdi + 1]
inc rdi
dec rsi
inc r14
test bl, bl
jne 0x1400bb7f0
test rsi, rsi
jne 0x1400bb8b1
mov eax, 1
jmp 0x1400bb8ce
movzx ecx, byte [rdi]
call fcn.1400bb960
movzx ecx, byte [r14]
movzx ebx, al
call fcn.1400bb960
xor ecx, ecx
cmp bl, al
sete cl
mov eax, ecx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400bb960
Capabilities:
Parse pe header

Disassembly:
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x1400bb97f
lea r8, [0x140000000]
cdqe
mov edx, dword [r8 + rax*4 + 0xbb9d4]
add rdx, r8
jmp rdx
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
movzx eax, cl
ret
Function at 0x1400bba40
Capabilities:
Parse pe header

Disassembly:
mov r10, rcx
cmp r8, 1
jb 0x1400bbb17
sub r10, rdx
lea r11, [0x140000000]
nop word [rax + rax]
movsx r9d, byte [rdx]
lea eax, [r9 - 0x61]
cmp eax, 0x19
ja case.default.0x1400bba7e
cdqe
mov ecx, dword [r11 + rax*4 + 0xbbb18]
add rcx, r11
jmp rcx
mov r9b, 0x41
jmp case.default.0x1400bba7e
mov r9b, 0x42
jmp case.default.0x1400bba7e
mov r9b, 0x43
jmp case.default.0x1400bba7e
mov r9b, 0x44
jmp case.default.0x1400bba7e
mov r9b, 0x45
jmp case.default.0x1400bba7e
mov r9b, 0x46
jmp case.default.0x1400bba7e
mov r9b, 0x47
jmp case.default.0x1400bba7e
mov r9b, 0x48
jmp case.default.0x1400bba7e
mov r9b, 0x49
jmp case.default.0x1400bba7e
mov r9b, 0x4a
jmp case.default.0x1400bba7e
mov r9b, 0x4b
jmp case.default.0x1400bba7e
mov r9b, 0x4c
jmp case.default.0x1400bba7e
mov r9b, 0x4d
jmp case.default.0x1400bba7e
mov r9b, 0x4e
jmp case.default.0x1400bba7e
mov r9b, 0x4f
jmp case.default.0x1400bba7e
mov r9b, 0x50
jmp case.default.0x1400bba7e
mov r9b, 0x51
jmp case.default.0x1400bba7e
mov r9b, 0x52
jmp case.default.0x1400bba7e
mov r9b, 0x53
jmp case.default.0x1400bba7e
mov r9b, 0x54
jmp case.default.0x1400bba7e
mov r9b, 0x55
jmp case.default.0x1400bba7e
mov r9b, 0x56
jmp case.default.0x1400bba7e
mov r9b, 0x57
jmp case.default.0x1400bba7e
mov r9b, 0x58
jmp case.default.0x1400bba7e
mov r9b, 0x59
jmp case.default.0x1400bba7e
mov r9b, 0x5a
mov byte [r10 + rdx], r9b
movzx eax, byte [rdx]
inc rdx
test al, al
je 0x1400bbb17
dec r8
jne 0x1400bba60
ret
Function at 0x1400c21a0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x138
call qword [sym.imp.msvcrt.dll_getenv]
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400c21e5
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400c21e5
lea rcx, [rsp + 0x20]
call qword [case.0x1400acb27.0]
add rsp, 0x138
ret
xor eax, eax
add rsp, 0x138
ret

Function at 0x1400c3e30
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.DLL_CryptAcquireContextA]
test eax, eax
je 0x1400c3e8c
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.DLL_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
test eax, eax
jne 0x1400c3e9c
call qword [sym.imp.ADVAPI32.DLL_CryptReleaseContext]
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.DLL_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1400c7880
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.WSOCK32.DLL_ioctlsocket]
add rsp, 0x28
ret
Function at 0x1400c7900
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
lea r9, [rsp + 0x68]
mov ebx, r13d
mov r15d, r13d
call qword [sym.imp.WS2_32.DLL_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x1400c7ac4
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1400c7aa4
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1400c795d
lea ebp, [rax + 0xe]
jmp 0x1400c7969
cmp eax, 0x17
jne 0x1400c7a11
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1400c7a11
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400c7a11
cmp rax, rbp
jb 0x1400c7a11
mov ecx, 0x30
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400c7a4c
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0x10], ebp
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [sub.msvcrt.dll_malloc]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1400c7a3b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400c79fe
call qword [case.0x1400acb27.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1400c7a20
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1400c7a0e
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1400c7950
jmp 0x1400c7a52
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [sub.msvcrt.dll_free]
mov rcx, rdi
call qword [sub.msvcrt.dll_free]
jmp 0x1400c7a52
mov rcx, rdi
mov r14d, 8
call qword [sub.msvcrt.dll_free]
jmp 0x1400c7a52
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1400c7a67
call qword [sym.imp.WS2_32.DLL_freeaddrinfo]
test r14d, r14d
je 0x1400c7a9f
test rbx, rbx
je 0x1400c7a9a
mov rcx, qword [rbx + 0x20]
call qword [sub.msvcrt.dll_free]
mov rcx, qword [rbx + 0x18]
call qword [sub.msvcrt.dll_free]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [sub.msvcrt.dll_free]
mov rbx, rdi
test rdi, rdi
jne 0x1400c7a71
mov rbx, r13
jmp 0x1400c7ab3
test rbx, rbx
jne 0x1400c7ab3
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WSOCK32.DLL_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
mov eax, r14d
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
Function at 0x1400c9a90
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], 2
mov rsi, rdx
jne 0x1400c9ada
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x1400c9aca
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 0x1400c9b24
cmp qword [rbx + 0x10], 0
jne 0x1400c9b0f
mov rcx, qword [rcx + 0x10]
lea rdx, [0x1400e67b4]
call qword [sym.imp.msvcrt.dll_fopen]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1400c9b0f
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 qword [sym.imp.msvcrt.dll_fread]
mov rdi, rax
test rax, rax
jne 0x1400c9b48
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400c9b3f
call qword [sym.imp.msvcrt.dll_fclose]
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 0x1400cbd50
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.WSOCK32.DLL_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x1400cbd8a
lea edx, [rax + 0x2e]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
je 0x1400cbd88
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ce0d0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
mov r14, rdx
add rax, 0x18
add rcx, rax
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400ce112
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
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 ebp, dword [rbx + 0x1c]
jbe 0x1400ce155
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + 8]
mov r14d, dword [rbx + 0x18]
mov rdx, qword [rdi + 8]
add r14, qword [rdi + 0x10]
mov rcx, r14
call qword [rbx + 0x10]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400ce1b1
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
mov r8d, 1
xor al, 0x36
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + 8]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 0x10]
call qword [rbx + 8]
dec rbp
jne 0x1400ce170
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400ce1f3
nop dword [rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400f3702]
mov r8d, 1
call qword [rbx + 8]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400f3703]
mov r8d, 1
call qword [rbx + 8]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400ce1c0
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14000279e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x88
mov word [rsp + 0x20], 0xe4
mov word [rsp + 0x22], 0x12
mov word [rsp + 0x24], 0xdf
mov word [rsp + 0x26], 0xee
mov word [rsp + 0x28], 0x22
mov word [rsp + 0x2a], 0xdf
mov word [rsp + 0x2c], 0x22
mov word [rsp + 0x2e], 0x27
mov word [rsp + 0x30], 0x2e
mov word [rsp + 0x32], 0x28
mov word [rsp + 0x34], 0x22
mov word [rsp + 0x36], 0x24
mov word [rsp + 0x38], 0xdf
mov word [rsp + 0x3a], 0xee
mov word [rsp + 0x3c], 2
mov word [rsp + 0x3e], 0xdf
mov word [rsp + 0x40], 0x18
mov word [rsp + 0x42], 0xdf
mov word [rsp + 0x44], 0xee
mov word [rsp + 0x46], 0xd
mov word [rsp + 0x48], 0xdf
mov word [rsp + 0x4a], 0xee
mov word [rsp + 0x4c], 3
mov word [rsp + 0x4e], 0xdf
mov word [rsp + 0x50], 0x18
mov word [rsp + 0x52], 0xdf
mov word [rsp + 0x54], 0xee
mov word [rsp + 0x56], 0x13
mov word [rsp + 0x58], 0xdf
mov word [rsp + 0x5a], 0xf2
mov word [rsp + 0x5c], 0xdf
mov word [rsp + 0x5e], 0xe5
mov word [rsp + 0x60], 0xdf
mov word [rsp + 0x62], 3
mov word [rsp + 0x64], 0x24
mov word [rsp + 0x66], 0x2b
mov word [rsp + 0x68], 0xdf
mov word [rsp + 0x6a], 0xe1
mov word [rsp + 0x6c], 0xe4
mov word [rsp + 0x6e], 0x12
mov word [rsp + 0x70], 0xe1
mov word [rsp + 0x72], 0xbf
cmp byte [0x14087e9a8], 0
jne 0x14000290d
mov byte [0x14087ea14], 1
mov eax, 0
lea rcx, [0x14087e9c0]
movzx edx, word [rsp + rax*2 + 0x20]
mov word [rcx + rax*2], dx
add rax, 1
cmp rax, 0x2a
jne 0x1400028e7
mov byte [0x14087e9a8], 1
lea rcx, [0x140001a8a]
call fcn.1400014f0
lea rax, [0x14087e9c0]
add rsp, 0x88
ret
Function at 0x140002980
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov r12, rcx
test edx, edx
je 0x140002af4
mov r13d, edx
mov edi, 0
lea r14, [0x140001530]
lea rbx, [0x14087fbc1]
jmp 0x1400029e6
mov byte [0x14087fbc1], 0
mov edx, esi
sar edx, 0x1f
shr edx, 0x1b
lea eax, [rsi + rdx]
and eax, 0x1f
sub eax, edx
cdqe
lea rdx, [0x14087fba0]
xor bpl, byte [rdx + rax]
mov byte [r12 + rdi], bpl
add rdi, 1
cmp r13, rdi
je 0x140002af4
mov esi, edi
movzx ebp, byte [r12 + rdi]
mov byte [rsp + 0x20], 0x78
mov byte [rsp + 0x21], 0x83
mov byte [rsp + 0x22], 0x8c
mov byte [rsp + 0x23], 0x7f
mov byte [rsp + 0x24], 0x84
mov byte [rsp + 0x25], 0x89
mov byte [rsp + 0x26], 0x8d
mov byte [rsp + 0x27], 0x8a
mov byte [rsp + 0x28], 0x75
mov byte [rsp + 0x29], 0x7e
mov byte [rsp + 0x2a], 0x8a
mov byte [rsp + 0x2b], 0x88
mov byte [rsp + 0x2c], 0x81
mov byte [rsp + 0x2d], 0x74
mov byte [rsp + 0x2e], 0x79
mov byte [rsp + 0x2f], 0x79
mov byte [rsp + 0x30], 0x8b
mov byte [rsp + 0x31], 0x7b
mov byte [rsp + 0x32], 0x86
mov byte [rsp + 0x33], 0x82
mov byte [rsp + 0x34], 0x8a
mov byte [rsp + 0x35], 0x7a
mov byte [rsp + 0x36], 0x8d
mov byte [rsp + 0x37], 0x89
mov byte [rsp + 0x38], 0x82
mov byte [rsp + 0x39], 0x87
mov byte [rsp + 0x3a], 0x84
mov byte [rsp + 0x3b], 0x7d
mov byte [rsp + 0x3c], 0x7a
mov byte [rsp + 0x3d], 0x76
mov byte [rsp + 0x3e], 0x78
mov byte [rsp + 0x3f], 0x81
mov byte [rsp + 0x40], 0x13
cmp byte [0x14087fb80], 0
jne 0x140002acf
mov byte [0x14087fbc1], 1
mov eax, 0
lea rcx, [0x14087fba0]
movzx edx, byte [rsp + rax + 0x20]
mov byte [rcx + rax], dl
add rax, 1
cmp rax, 0x21
jne 0x140002aae
mov byte [0x14087fb80], 1
mov rcx, r14
call fcn.1400014f0
cmp byte [0x14087fbc1], 0
je 0x1400029b8
lea rax, [0x14087fba0]
sub byte [rax], 0x13
add rax, 1
cmp rbx, rax
jne 0x140002ae3
jmp 0x1400029b1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140008620
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140008650
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x14000864f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140008655
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x14000864f
mov eax, 0
jmp 0x14000864f

Function at 0x140008cd0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140008c80
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret
Function at 0x140012340
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14087ff74]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x1400124d0
mov rax, qword [0x14087ff78]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14001238c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140012415
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140012370
mov rcx, rdi
call fcn.140012ea0
test rax, rax
mov r12, rax
je 0x140012522
mov rax, qword [0x14087ff78]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140012fe0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14087ff78]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140012505
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001240e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140012480
add dword [0x14087ff74], 1
cmp ebx, 8
jae 0x140012441
test bl, 4
jne 0x1400124e0
test ebx, ebx
je 0x140012436
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x1400124f4
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140012436
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14001245a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x14087ff78]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001240e
call qword [0x1408812c4]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400122d0
xor esi, esi
jmp 0x140012397
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140012436
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140012436
mov rax, qword [0x14087ff78]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.1400122d0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.1400122d0
nop
nop dword [rax]
nop word cs:[rax + rax]

Function at 0x1400129cd
Capabilities:
Packed with generic packer

Disassembly:
adc al, ch
int1
insb byte [rdi], dx
wait
add byte [rdx + 0x48], dl
xchg dword [rsp + 0x18], edi
cmp r15d, 0x55876582
jbe 0x1409a78cc
push rcx
call fcn.1408a1b09
add dword [rcx], ecx
add dword [rax], eax
or dword [rdx], esp
add byte [rsi], ah
jg 0x140012996
nop dword [rax + rax]
call fcn.140895d50
Function at 0x140012ea0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140872750]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140012f0f
mov rcx, r9
call fcn.140012d70
test eax, eax
je 0x140012f0f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x140012f0d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140012f04
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140012f0f
add rdx, 0x28
cmp rdx, r9
jne 0x140012ef0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x140013bd0
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, qword [rcx + 8]
mov rdi, qword [rcx]
cmp rsi, 8
mov rbx, rcx
ja 0x140013c20
lea rcx, [rdi + 8]
call fcn.14001b408
test rax, rax
je 0x140013c62
mov rdx, qword [rbx + 0x18]
mov qword [rax], rax
lea r9, [rax + 8]
mov r8, rdi
test rdx, rdx
je 0x140013c4a
mov rcx, r9
call fcn.14001b410
mov r9, rax
mov rax, r9
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
lea rcx, [rsi + rdi + 7]
call fcn.14001b408
test rax, rax
je 0x140013c62
lea r9, [rax + rsi + 7]
neg rsi
mov r8, rdi
and r9, rsi
mov qword [r9 - 8], rax
mov rdx, qword [rbx + 0x18]
test rdx, rdx
jne 0x140013c08
mov rcx, r9
xor edx, edx
call fcn.14001b418
mov r9, rax
mov rax, r9
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]