joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ad60
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47ae2a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x005cb198]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x47ae0f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004ad800]
xor ebx, ebx
mov rcx, rdx
call sym.runtime.makeslice
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call sym.syscall.encodeWTF16
inc rbx
cmp rcx, rbx
jae 0x47adfe
mov edi, 1
lea rsi, [0x004ad800]
call sym.runtime.growslice
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x004ebe18]
lea rsi, [0x004eb5c8]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.syscall.UTF16FromString
Function at 0x49b800
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x49b817
inc rax
cmp rax, 4
jge 0x49b82f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x49b814
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x49b840
inc rax
cmp rax, 4
jge 0x49b84e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x49b877
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x49b85b
jmp 0x49b83d

Function at 0x49d5c0
Capabilities:
Encrypt data using blowfish

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x49d721
push rbp
mov rbp, rsp
sub rsp, 0x28
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
lea rax, [0x004bd6a0]
call sym.runtime.newobject
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x49d5fd
cmp rbx, 0x38
jle 0x49d617
mov rax, rbx
call sym.runtime.convT64
lea rbx, [0x004ebe98]
mov rcx, rax
xor eax, eax
add rsp, 0x28
pop rbp
ret
mov qword [rsp + 0x20], rax
nop
lea rdx, [0x0056a9a0]
cmp rax, rdx
je 0x49d640
mov rbx, rdx
mov ecx, 0x48
call sym.runtime.memmove
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
lea rdx, [rax + 0x48]
lea rsi, [0x0056bee0]
cmp rsi, rdx
je 0x49d66f
mov rax, rdx
mov rbx, rsi
mov ecx, 0x400
nop dword [rax + rax]
call sym.runtime.memmove
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
lea rdx, [rax + 0x448]
lea rsi, [0x0056c2e0]
nop dword [rax]
cmp rsi, rdx
je 0x49d69f
mov rax, rdx
mov rbx, rsi
mov ecx, 0x400
call sym.runtime.memmove
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
lea rdx, [rax + 0x848]
lea rsi, [0x0056c6e0]
cmp rsi, rdx
je 0x49d6cf
mov rax, rdx
mov rbx, rsi
mov ecx, 0x400
nop dword [rax]
call sym.runtime.memmove
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
lea rdx, [rax + 0xc48]
lea rsi, [0x0056cae0]
nop dword [rax]
cmp rsi, rdx
je 0x49d6ff
mov rax, rdx
mov rbx, rsi
mov ecx, 0x400
call sym.runtime.memmove
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rdi, rax
mov rax, qword [rsp + 0x38]
call sym.golang.org_x_crypto_blowfish.ExpandKey
mov rax, qword [rsp + 0x20]
xor ebx, ebx
xor ecx, ecx
add rsp, 0x28
pop rbp
nop
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp sym.golang.org_x_crypto_blowfish.NewCipher
Function at 0x49d760
Capabilities:
Encrypt data using blowfish

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x49d903
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x68], rdi
nop dword [rax]
test rsi, rsi
je 0x49d8f8
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x68], rdi
lea rax, [0x004bd6a0]
call sym.runtime.newobject
mov rbx, qword [rsp + 0x58]
nop dword [rax + rax]
test rbx, rbx
je 0x49d8df
mov qword [rsp + 0x38], rax
nop
lea rdx, [0x0056a9a0]
cmp rax, rdx
je 0x49d7f2
mov rbx, rdx
mov ecx, 0x48
call sym.runtime.memmove
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x58]
lea rdx, [rax + 0x48]
lea r10, [0x0056bee0]
nop dword [rax]
cmp r10, rdx
je 0x49d81f
mov rax, rdx
mov rbx, r10
mov ecx, 0x400
call sym.runtime.memmove
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x58]
lea rdx, [rax + 0x448]
lea r10, [0x0056c2e0]
cmp r10, rdx
je 0x49d84f
mov rax, rdx
mov rbx, r10
mov ecx, 0x400
nop dword [rax]
call sym.runtime.memmove
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x58]
lea rdx, [rax + 0x848]
lea r10, [0x0056c6e0]
nop dword [rax]
cmp r10, rdx
je 0x49d87f
mov rax, rdx
mov rbx, r10
mov ecx, 0x400
call sym.runtime.memmove
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x58]
lea rdx, [rax + 0xc48]
lea r10, [0x0056cae0]
cmp r10, rdx
je 0x49d8af
mov rax, rdx
mov rbx, r10
mov ecx, 0x400
nop dword [rax]
call sym.runtime.memmove
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
mov r9, rax
mov rax, qword [rsp + 0x50]
call sym.golang.org_x_crypto_blowfish.expandKeyWithSalt
mov rax, qword [rsp + 0x38]
xor ebx, ebx
xor ecx, ecx
add rsp, 0x40
pop rbp
ret
xor eax, eax
call sym.runtime.convT64
lea rbx, [0x004ebe98]
mov rcx, rax
xor eax, eax
add rsp, 0x40
pop rbp
ret
call sym.golang.org_x_crypto_blowfish.NewCipher
add rsp, 0x40
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], r8
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
jmp sym.golang.org_x_crypto_blowfish.NewSaltedCipher
Function at 0x49dd80
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x49deb6
push rbp
mov rbp, rsp
sub rsp, 0x78
mov qword [rsp + 0x88], rax
mov rdx, rbx
and ebx, 3
lea r8, [rbx - 4]
neg r8
mov qword [rsp + 0x48], r8
xor ebx, ebx
jmp 0x49ddb8
mov byte [rdx + rax - 1], 0x3d
inc rbx
cmp rbx, r8
jge 0x49dded
inc rdx
cmp rcx, rdx
jae 0x49ddb0
mov qword [rsp + 0x50], rbx
mov rbx, rdx
mov edi, 1
lea rsi, [0x004ad6c0]
call sym.runtime.growslice
mov r8, qword [rsp + 0x48]
mov rdx, rbx
mov rbx, qword [rsp + 0x50]
jmp 0x49ddb0
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x58], rcx
mov rsi, qword [0x00577b40]
cmp dword [rsi + 0x140], 0xffffffff
jne 0x49de28
lea rsi, [rdx + rdx*2]
mov rdi, rsi
shl rsi, 1
sar rsi, 0x3f
shr rsi, 0x3d
lea rsi, [rsi + rdi*2]
sar rsi, 3
jmp 0x49de30
shr rdx, 2
lea rsi, [rdx + rdx*2]
mov qword [rsp + 0x40], rsi
lea rax, [0x004ad6c0]
mov rbx, rsi
mov rcx, rbx
call sym.runtime.makeslice
mov qword [rsp + 0x68], rax
mov rdx, qword [0x00577b40]
mov rbx, rax
mov rcx, qword [rsp + 0x40]
mov rdi, rcx
mov rsi, qword [rsp + 0x70]
mov r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x58]
mov rax, rdx
call sym.encoding_base64._Encoding_.Decode
test rbx, rbx
jne 0x49de9a
mov rdx, qword [rsp + 0x40]
nop
cmp rax, rdx
ja 0x49dead
mov rbx, rax
mov rcx, rdx
xor edi, edi
xor esi, esi
mov rax, qword [rsp + 0x68]
add rsp, 0x78
pop rbp
ret
xor eax, eax
mov rdi, rbx
mov rsi, rcx
xor ebx, ebx
mov rcx, rbx
add rsp, 0x78
pop rbp
ret
mov rcx, rax
call sym.runtime.panicSliceAcap
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp sym.golang.org_x_crypto_bcrypt.base64Decode
Function at 0x1400021dc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140004650], rbx
je 0x140002228
cmp rax, rbx
jne 0x14000221b
mov ebx, 1
mov esi, ebx
jmp 0x14000222d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002200
mov ebx, 1
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x140002243
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400022a8
mov eax, dword [0x140004658]
test eax, eax
jne 0x1400022a2
mov dword [0x140004658], ebx
lea r15, [0x1400033b0]
lea rdi, [0x140003398]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140002294
test eax, eax
jne 0x140002298
cmp qword [rdi], 0
je 0x140002289
mov rax, qword [rdi]
mov rcx, qword [0x140003378]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000226a
test eax, eax
je 0x1400022a8
mov eax, 0xff
jmp 0x140002384
mov dword [0x140004064], ebx
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x1400022cf
lea rdx, [0x140003390]
lea rcx, [0x140003380]
call sub.msvcrt.dll__initterm
mov dword [0x140004658], 2
test esi, esi
jne 0x1400022dc
xor eax, eax
xchg qword [0x140004650], rax
cmp qword [0x140004660], 0
je 0x140002310
lea rcx, [0x140004660]
call fcn.140002540
test eax, eax
je 0x140002310
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140004660]
mov r9, qword [0x140003378]
call r9
mov r8, qword [0x140004078]
mov rdx, qword [0x140004070]
mov ecx, dword [0x140004068]
call fcn.140001800
mov dword [0x140004060], eax
cmp dword [0x140004080], 0
jne 0x140002340
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140004064], 0
jne 0x140002355
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140004060]
jmp 0x140002384
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140181000
add rsp, 0x28
jmp 0x1400021dc

Function at 0x140002450
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000249c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002494
cmp dword [rcx + 0x3c], edx
jl 0x140002494
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002494
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000249c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00406ca0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00406cb0]
mov dword [rax], 1
mov rax, qword [0x00406cc0]
mov dword [rax], 1
mov rax, qword [0x00406c90]
mov dword [rax], 1
mov rax, qword [0x00406b50]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x00406c80]
mov dword [0x0040a008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov rdx, qword [0x00406be0]
mov qword [rdx], rax
mov rdx, qword [0x00406bd0]
mov qword [rdx], rax
mov rax, qword [0x00406c40]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00406b00]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x401b63
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x18], 0
jne 0x401b90
lea rcx, str.ERROR:_no_output_buffer_specified
call sym.puts
mov eax, 0xffffffff
jmp 0x401d80
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 0
mov edx, 0x80000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0xffffffffffffffff
jne 0x401c08
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x10]
mov r8d, edx
mov rdx, rax
lea rcx, str.Couldnt_open_shellcode_containing_file__s:__08x_n
call sym.printf
mov eax, 0xffffffff
jmp 0x401d80
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSize]
call rax
mov edx, eax
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x18], edx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x401c48
lea rcx, str.Couldnt_get_file_size
call sym.puts
mov eax, 0xffffffff
jmp 0x401d80
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 4]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x18]
cmp edx, eax
jbe 0x401c70
lea rcx, str.Execution_offset_larger_than_file_size_
call sym.puts
mov eax, 0xffffffff
jmp 0x401d80
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 8]
test eax, eax
je 0x401c8f
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 8]
lea edx, [rax - 0x10000]
mov rax, qword [rbp + 0x10]
mov dword [rax + 8], edx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x18]
add eax, 0x10000
mov edx, eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 8]
mov eax, eax
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x401ce8
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x18]
mov edx, eax
lea rcx, str.Couldnt_allocate__d_bytes_n
call sym.printf
mov eax, 0xffffffff
jmp 0x401d80
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x18]
mov rax, qword [rbp - 0x10]
lea rdx, [rax + 0x10000]
lea r8, [rbp - 0x14]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
test eax, eax
sete al
test al, al
je 0x401d40
lea rcx, str.Couldnt_read_file_bytes
call sym.puts
mov eax, 0xffffffff
jmp 0x401d80
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x18]
mov eax, dword [rbp - 0x14]
cmp edx, eax
je 0x401d70
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x18]
mov eax, dword [rbp - 0x14]
mov r8d, edx
mov edx, eax
lea rcx, str.Only_read__d_of__d_bytes__n
call sym.printf
mov eax, 0xffffffff
jmp 0x401d80
mov rax, qword [rbp + 0x18]
mov rdx, qword [rbp - 0x10]
mov qword [rax], rdx
mov eax, 0
add rsp, 0x60
pop rbp
ret
Function at 0x402bd0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x0040a054]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x402cea
mov rax, qword [0x0040a058]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x402c1e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x402cd0
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x402c02
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x402d22
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x0040a058]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x0040a058]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402d05
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x402cc9
sub eax, 0x40
and eax, 0xffffffbf
je 0x402cc9
mov r9, rbp
add r9, qword [0x0040a058]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x402cf1
add dword [0x0040a054], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x402c2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x0040a058]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x403900
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x403910
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x403920
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x403961
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x403958
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x403963
add rax, 0x28
cmp rax, r9
jne 0x403944
xor eax, eax
repz ret

Function at 0x403a10
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x00406b50]
cmp word [rbx], 0x5a4d
je 0x403a30
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403a24
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x403c80
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040a9c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040a9a0]
test rbx, rbx
je 0x403cd4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x403ccb
test rsi, rsi
je 0x403ccb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x403cb0
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x0040a9c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140004460]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140004470]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140007008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400043d0]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140004450]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x140007028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x140007020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140007020], rbp
call dbg.__main
mov rax, qword [0x1400043e0]
mov r8, qword [0x140007018]
mov ecx, dword [0x140007028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140007020]
call dbg.main
mov ecx, dword [0x14000700c]
mov dword [0x140007010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140007008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140004470]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140004490]
mov rcx, qword [0x140004480]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sym._cexit
mov eax, dword [0x140007010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1400044b0]
mov rcx, qword [0x1400044a0]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop

Function at 0x140001740
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001384
Capabilities:
Parse pe header

Disassembly:
jmp 0x140020d48
xor r8d, r8d
xor edx, edx
jmp 0x140020a38

Function at 0x14000212b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140075da0
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140098040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x14009b2c0]
xor r11d, r11d
lea rdi, [0x140083994]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x140075e10
mov rax, 0xfffffffffffffffe
jmp 0x140075f5d
cmp word [r10 + 6], r11w
jne 0x140075e7f
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x140075e3a
test r14, r14
je 0x140075e2b
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x140075f5d
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x140075e48
mov r8b, 2
jmp 0x140075e66
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x140075e56
mov r8b, 3
jmp 0x140075e66
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x140075f52
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x140075ea8
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x140075f52
cmp bl, bpl
jb 0x140075f52
cmp bl, r8b
jae 0x140075f52
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x140075ed5
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x140075f52
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x140075eb7
cmp r9, rbp
jae 0x140075f01
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x140075e04
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x140075f52
cmp edx, 0x110000
jae 0x140075f52
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x140075f52
test r14, r14
je 0x140075f40
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.140003972
jmp 0x140075f5d
mov rdx, rsi
mov rcx, r10
call fcn.140003fa8
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000259a
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret