joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fd60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x44fed7
movzx edx, byte [rax]
test edx, edx
jne 0x44fd94
nop dword [rax]
test r8b, r8b
jne 0x44fd94
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x44fda7
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x44fe97
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x44fe85
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x44fe77
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x44fdfd
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x44fe40
mov eax, 1
cmp rax, rbx
ja 0x44fe2b
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call sym.runtime.panicSliceB
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x44fe6f
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x44fe33
mov rcx, r11
mov eax, r12d
jmp 0x44fe02
mov rcx, rbx
call sym.runtime.panicIndex
xor eax, eax
mov rcx, rax
nop dword [rax]
call sym.runtime.panicIndex
mov eax, r8d
mov rcx, rbx
call sym.runtime.panicSliceB
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x44fecd
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x44fe90
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x44fdad
mov eax, edx
mov rcx, rbx
call sym.runtime.panicIndex
xor eax, eax
mov rcx, rax
nop dword [rax]
call sym.runtime.panicIndex
nop
int3

Function at 0x455aa0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x455b55
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdi
test byte [rax], al
lea rdx, [rax + 0x10]
mov rsi, qword [rsp + 0x68]
mov rcx, rdi
mov rax, rdx
mov rbx, rsi
call sym.runtime._traceMap_.put
nop
test bl, bl
je 0x455b4f
mov qword [rsp + 0x18], rax
movups xmmword [rsp + 0x20], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
lea rcx, [sym.runtime._traceStringTable_.put.func1]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp], rcx
call sym.runtime.systemstack.abi0
xorps xmm15, xmm15
mov r14, qword [0x005c65d0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
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]
jmp sym.runtime._traceStringTable_.put
Function at 0x458aa0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x458b4f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [sym.runtime.callers.func1]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call sym.runtime.systemstack.abi0
xorps xmm15, xmm15
mov r14, qword [0x005c65d0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
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]
nop dword [rax]
jmp sym.runtime.callers

Function at 0x462400
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x005c63cb], 0
je 0x46240e
jmp sym.aeshashbody
jmp sym.runtime.memhashFallback

Function at 0x462420
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x005c63cb], 0
je 0x462435
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp sym.aeshashbody
jmp sym.runtime.strhashFallback

Function at 0x462440
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x005c63cb], 0
je 0x462475
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005c69c0]
aesenc xmm0, xmmword [0x005c69d0]
aesenc xmm0, xmmword [0x005c69e0]
movq rax, xmm0
ret
jmp sym.runtime.memhash32Fallback

Function at 0x462480
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x005c63cb], 0
je 0x4624b6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005c69c0]
aesenc xmm0, xmmword [0x005c69d0]
aesenc xmm0, xmmword [0x005c69e0]
movq rax, xmm0
ret
jmp sym.runtime.memhash64Fallback
Function at 0x463b20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbp
mov rbp, rsp
pushfq
cld
sub rsp, 0xe0
mov qword [rsp], rdi
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r15
movups xmmword [rsp + 0x40], xmm6
movups xmmword [rsp + 0x50], xmm7
movups xmmword [rsp + 0x60], xmm8
movups xmmword [rsp + 0x70], xmm9
movups xmmword [rsp + 0x80], xmm10
movups xmmword [rsp + 0x90], xmm11
movups xmmword [rsp + 0xa0], xmm12
movups xmmword [rsp + 0xb0], xmm13
movups xmmword [rsp + 0xc0], xmm14
movups xmmword [rsp + 0xd0], xmm15
xorps xmm15, xmm15
xor r14, r14
mov rax, qword [0x005c65d0]
mov rax, qword gs:[rax]
cmp rax, 0
je 0x463bbb
mov r14, qword [rax]
sub rsp, 0x10
mov rax, rcx
mov rbx, rdx
call sym.runtime.sigtrampgo
add rsp, 0x10
mov rdi, qword [rsp]
mov rsi, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov r12, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
movups xmm6, xmmword [rsp + 0x40]
movups xmm7, xmmword [rsp + 0x50]
movups xmm8, xmmword [rsp + 0x60]
movups xmm9, xmmword [rsp + 0x70]
movups xmm10, xmmword [rsp + 0x80]
movups xmm11, xmmword [rsp + 0x90]
movups xmm12, xmmword [rsp + 0xa0]
movups xmm13, xmmword [rsp + 0xb0]
movups xmm14, xmmword [rsp + 0xc0]
movups xmm15, xmmword [rsp + 0xd0]
add rsp, 0xe0
popfq
pop rbp
ret

Function at 0x463de0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x28
pushfq
cld
sub rsp, 0xe0
mov qword [rsp], rdi
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r15
movups xmmword [rsp + 0x40], xmm6
movups xmmword [rsp + 0x50], xmm7
movups xmmword [rsp + 0x60], xmm8
movups xmmword [rsp + 0x70], xmm9
movups xmmword [rsp + 0x80], xmm10
movups xmmword [rsp + 0x90], xmm11
movups xmmword [rsp + 0xa0], xmm12
movups xmmword [rsp + 0xb0], xmm13
movups xmmword [rsp + 0xc0], xmm14
movups xmmword [rsp + 0xd0], xmm15
mov rax, qword [0x005c65d0]
mov rax, qword gs:[rax]
cmp rax, 0
jne 0x463e77
int 3
mov r14, qword [rax]
sub rsp, 0x28
mov qword [rsp], rcx
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], r8
mov qword [rsp + 0x18], r9
call sym.runtime.sehhandler.abi0
mov eax, dword [rsp + 0x20]
add rsp, 0x28
mov rdi, qword [rsp]
mov rsi, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov r12, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
movups xmm6, xmmword [rsp + 0x40]
movups xmm7, xmmword [rsp + 0x50]
movups xmm8, xmmword [rsp + 0x60]
movups xmm9, xmmword [rsp + 0x70]
movups xmm10, xmmword [rsp + 0x80]
movups xmm11, xmmword [rsp + 0x90]
movups xmm12, xmmword [rsp + 0xa0]
movups xmm13, xmmword [rsp + 0xb0]
movups xmm14, xmmword [rsp + 0xc0]
movups xmm15, xmmword [rsp + 0xd0]
add rsp, 0xe0
popfq
add rsp, 0x28
pop rbp
ret
Function at 0x464240
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x464274
mov rcx, 0x28
jmp 0x46427f
shl rcx, 3
add rcx, 0x1480
mov qword [0x005c65d0], rcx
pop rbp
ret
Function at 0x47b940
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47ba0a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
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 [0x005c65d0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x47b9ef
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x00492da0]
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 0x47b9de
mov edi, 1
lea rsi, [0x00492da0]
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, [0x004ca348]
lea rsi, [0x004c9c90]
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 0x1410bb058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1410bb1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1410bb089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410bb06f
add dl, dl
jne 0x1410bb096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410bb0f6
xor eax, eax
add dl, dl
jne 0x1410bb0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410bb1ad
add dl, dl
jne 0x1410bb0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410bb0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410bb0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410bb0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1410bb0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1410bb07e
mov eax, 1
add dl, dl
jne 0x1410bb106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410bb113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410bb0fb
sub eax, ebx
mov ebx, 1
jne 0x1410bb14c
mov ecx, 1
add dl, dl
jne 0x1410bb12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410bb13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410bb123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410bb07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1410bb168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410bb175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410bb15d
cmp eax, 0x7d00
jae 0x1410bb19b
cmp eax, 0x500
jb 0x1410bb196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410bb07e
cmp eax, 0x7f
ja 0x1410bb19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410bb07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1410bb1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1410bb07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x180027560
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180027588
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180027588
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x180028020
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, rax
call fcn.180001ba0
movzx eax, al
test eax, eax
jne 0x180028067
mov rax, qword [rsp + 0x30]
mov rcx, rax
call fcn.180001c50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [rsp + 0x30]
lea rdx, [0x180036b6c]
mov rcx, rax
call fcn.180001da0
add rsp, 0x28
ret
Function at 0x140011226
Capabilities:
Terminate process

Disassembly:
jmp 0x1400121c0
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 0x1400112b2
Capabilities:
Create thread
Initialize winsock library
Terminate thread

Disassembly:
jmp 0x140011940
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x3f8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x92
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x418]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x3b8], rax
lea rcx, [0x1400240a8]
call fcn.1400113ca
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x198
rep stosb byte [rdi], al
cmp dword [rbp + 0x3e0], 3
je 0x1400119bb
lea rcx, str.Please_enter_in_the_format:_chat__srcport___dstport__n
call fcn.1400111c7
mov eax, 1
jmp 0x140011ad5
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0x3e8]
mov rcx, qword [rcx + rax]
call qword [sym.imp.ucrtbased.dll_atoi]
mov word [rbp + 0x1e4], ax
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rbp + 0x3e8]
mov rcx, qword [rcx + rax]
call qword [sym.imp.ucrtbased.dll_atoi]
mov word [rbp + 0x204], ax
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
movzx ecx, word [rbp + 0x1e4]
call fcn.1400112f8
mov qword [rbp + 0x1c8], rax
cmp qword [rbp + 0x1c8], 0
je 0x140011ac9
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rbp + 0x1c8]
lea r8, [0x140011177]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x228], rax
xor eax, eax
cmp eax, 1
je 0x140011a7e
movzx edx, word [rbp + 0x204]
mov rcx, qword [rbp + 0x1c8]
call fcn.1400113b1
test eax, eax
jne 0x140011a7c
jmp 0x140011a7e
jmp 0x140011a5c
mov dword [0x14001e1b0], 1
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov edx, 0xbb8
mov rcx, qword [rbp + 0x228]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140011ac9
lea rcx, str.Error:_Thread_terminated
call fcn.1400111c7
xor edx, edx
mov rcx, qword [rbp + 0x228]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x140011ad3
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001af90]
call fcn.140011357
mov rax, rdi
mov rcx, qword [rbp + 0x3b8]
xor rcx, rbp
call fcn.1400111e0
lea rsp, [rbp + 0x3c8]
pop rdi
pop rbp
ret
Function at 0x1400112bc
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014900
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014920
xor al, al
jmp 0x1400149a1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014933
xor al, al
jmp 0x1400149a1
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 0x14001495d
xor al, al
jmp 0x1400149a1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014971
xor al, al
jmp 0x1400149a1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014983
xor al, al
jmp 0x1400149a1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001499f
xor al, al
jmp 0x1400149a1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400112f8
Capabilities:
Convert ip address from string
Create udp socket

Disassembly:
jmp 0x140011b80
mov word [rsp + 8], cx
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, socket
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
movzx ecx, word [rsp + 0x158]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x108], rax
lea rcx, [0x1400240a8]
call fcn.1400113ca
mov qword [rbp + 8], 0
lea rax, [rbp + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, recvfrom
rep stosb byte [rdi], al
mov r8d, reloc.WS2_32.dll_recvfrom
mov edx, 2
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x140011c06
xor eax, eax
jmp 0x140011c61
mov eax, 2
mov word [rbp + 0x28], ax
movzx ecx, word [rbp + 0x130]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x2a], ax
lea r8, [rbp + 0x2c]
lea rdx, str.127.0.0.1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, recvfrom
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140011c5d
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x140011c61
mov rax, qword [rbp + 8]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ac90]
call fcn.140011357
mov rax, rdi
mov rcx, qword [rbp + 0x108]
xor rcx, rbp
call fcn.1400111e0
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x1400113b1
Capabilities:
Convert ip address from string
Send data
Send data on socket

Disassembly:
jmp 0x140011fa0
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x6c8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x116
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x6e8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x688], rax
lea rcx, [0x1400240a8]
call fcn.1400113ca
lea rax, [rbp + 8]
mov rdi, rax
xor eax, eax
mov ecx, recvfrom
rep stosb byte [rdi], al
mov eax, 2
mov word [rbp + 8], ax
movzx ecx, word [rbp + 0x6b8]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0xa], ax
lea r8, [rbp + 0xc]
lea rdx, str.127.0.0.1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
lea rcx, str.Enter_Message_:
call fcn.1400111c7
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov r8, rax
mov edx, 0x400
lea rcx, [rbp + 0x40]
call qword [sym.imp.ucrtbased.dll_fgets]
mov eax, 1
imul rax, rax, 0
movsx eax, byte [rbp + rax + 0x40]
cmp eax, 0x71
jne 0x1400120a4
mov eax, 1
imul rax, rax, 1
movsx eax, byte [rbp + rax + 0x40]
cmp eax, 0x75
jne 0x1400120a4
mov eax, 1
imul rax, rax, 2
movsx eax, byte [rbp + rax + 0x40]
cmp eax, 0x69
jne 0x1400120a4
mov eax, 1
imul rax, rax, 3
movsx eax, byte [rbp + rax + 0x40]
cmp eax, 0x74
jne 0x1400120a4
xor eax, eax
jmp 0x1400120da
lea rcx, [rbp + 0x40]
call fcn.14001119a
mov dword [rsp + 0x28], socket
lea rcx, [rbp + 8]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, eax
lea rdx, [rbp + 0x40]
mov rcx, qword [rbp + 0x6b0]
call qword [sym.imp.WS2_32.dll_sendto]
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_bind
call fcn.140011357
mov rax, rdi
mov rcx, qword [rbp + 0x688]
xor rcx, rbp
call fcn.1400111e0
lea rsp, [rbp + 0x698]
pop rdi
pop rbp
ret
Function at 0x140003870
Capabilities:
Delete file
Query environment variable

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [0x140034030]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rcx, str.MOZ_CRASHREPORTER_NO_DELETE_DUMP
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14000389f
cmp byte [rax], 0
jne 0x140003a0c
cmp qword [0x140034290], 0
je 0x14000391a
lea rdx, [0x140034280]
lea rsi, [rsp + 0x28]
mov rcx, rsi
call fcn.140002cc0
cmp qword [rsi + 0x18], 8
jb 0x1400038c9
mov rsi, qword [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [rsp + 0x40]
cmp rax, 8
jb 0x14000391a
mov rcx, qword [rsp + 0x28]
lea rdx, [rax*2 + 2]
cmp rdx, 0x1000
jb 0x140003915
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140003a20
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.14001fa5c
cmp qword [0x1400342b0], 0
je 0x140003995
lea rdx, [0x1400342a0]
lea rsi, [rsp + 0x28]
mov rcx, rsi
call fcn.140002cc0
cmp qword [rsi + 0x18], 8
jb 0x140003944
mov rsi, qword [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [rsp + 0x40]
cmp rax, 8
jb 0x140003995
mov rcx, qword [rsp + 0x28]
lea rdx, [rax*2 + 2]
cmp rdx, 0x1000
jb 0x140003990
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140003a20
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.14001fa5c
cmp qword [0x1400342d0], 0
je 0x140003a0c
lea rdx, [0x1400342c0]
lea rsi, [rsp + 0x28]
mov rcx, rsi
call fcn.140002cc0
cmp qword [rsi + 0x18], 8
jb 0x1400039bf
mov rsi, qword [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [rsp + 0x40]
cmp rax, 8
jb 0x140003a0c
mov rcx, qword [rsp + 0x28]
lea rdx, [rax*2 + 2]
cmp rdx, 0x1000
jb 0x140003a07
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140003a20
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.14001fa5c
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400209b0
nop
add rsp, 0x50
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400059e0
Capabilities:
Create directory

Disassembly:
push rsi
sub rsp, 0x50
mov rdx, rcx
mov rax, qword [0x140034030]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rsi, [rsp + 0x28]
mov rcx, rsi
call fcn.140002cc0
cmp qword [rsi + 0x18], 8
jb 0x140005a10
mov rsi, qword [rsp + 0x28]
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov rax, qword [rsp + 0x40]
cmp rax, 8
jb 0x140005a61
mov rcx, qword [rsp + 0x28]
lea rdx, [rax*2 + 2]
cmp rdx, 0x1000
jb 0x140005a5c
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140005a8e
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.14001fa5c
test esi, esi
jne 0x140005a72
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140005a8a
mov sil, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400209b0
mov eax, esi
add rsp, 0x50
pop rsi
ret
xor esi, esi
jmp 0x140005a75
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3