joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180051b50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x180051b84
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x180051b70
ret

Function at 0x14080b24e
Capabilities:
Encode data using xor

Disassembly:
push qword [rsp + 0x10]
popfq
lea rsp, [rsp + 0x28]
call fcn.140863c17
mov byte [rbx + 0x12], ah
jge 0x140785197
invalid
movabs eax, dword [0x999ccbf2f194635e]
mov dl, 0x93
add byte [rcx + 0x56], cl
push rax
leave
push rsp
or byte [rbp - 0x237315c8], cl
xor eax, 0xc342e41
xchg esi, eax
invalid
jns 0x140785113
pop rsp
adc dword [rsi - 0x1c94b701], ebp
invalid
invalid
sub r8w, 0x998b
neg r8b
and r8b, 9
xor r8d, 0xb5bb670f
shl r8b, 0x6e
mov r8, qword [rsp + 0x20]
jne 0x14080b25b
js 0x140785118
je 0x14078cf2d
syscall
call fcn.14041e070
jno 0x14080b29d
mov bl, 0xe3
push rax
or eax, 0x50657ae6
add eax, 0x3eda05bd
jge 0x14080b315
or edx, dword [rax - 3]
mov di, 0x3475
sub eax, 0x651aa370
test byte [rsi + 0x3d], dl
mov dh, 0xd9
invalid
xor al, 0x2d
jo 0x14080b244
sbb ah, byte [rbp - 0x7c]
push rsi
cmp eax, 0xe760d9b6
out dx, al
sbb dword [rbp + 0x3e], esi
adc eax, 0xa5c67356
mov dh, 0x11
mov ebp, dword [rsi + 0x5a]
retf
mov dh, byte [rbx + rcx*8 - 0x3b]
mov dword [rbp + 0x17f26c45], ecx
sti
sub byte [rcx - 0x4161bca6], bh
loopne 0x14080b383
invalid
leave
invalid
Function at 0x14000c43c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140014c60], rbx
je 0x14000c4a3
cmp rax, rbx
jne 0x14000c496
mov ebx, 1
mov esi, ebx
jmp 0x14000c4a8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000c47b
mov ebx, 1
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c4c0
mov edi, 0x1f
mov ecx, edi
call fcn.140147000
jmp 0x14000c52c
mov eax, dword [0x140014c68]
test eax, eax
jne 0x14000c521
mov dword [0x140014c68], ebx
lea r15, [0x14000eba0]
lea rdi, [0x14000eb88]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000c513
test eax, eax
jne 0x14000c517
cmp qword [rdi], r14
je 0x14000c508
mov rax, qword [rdi]
mov rcx, qword [0x14000eb40]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000c4ea
test eax, eax
je 0x14000c527
mov eax, 0xff
jmp 0x14000c682
mov dword [0x1400143e4], ebx
mov edi, 0x1f
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c553
lea rdx, [0x14000eb80]
lea rcx, [0x14000eb48]
call sub.msvcrt.dll__initterm
mov dword [0x140014c68], 2
test esi, esi
jne 0x14000c561
mov rax, r14
xchg qword [0x140014c60], rax
cmp qword [0x140014c80], r14
je 0x14000c594
lea rcx, [0x140014c80]
call fcn.14000ca70
test eax, eax
je 0x14000c594
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140014c80]
mov r9, qword [0x14000eb40]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000c5ad
mov eax, 0xff
jmp 0x14000c682
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000c633
test ax, ax
je 0x14000c5c8
test edx, edx
jne 0x14000c633
sub ax, bx
cmp ax, di
ja 0x14000c5de
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000c5c8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001878
mov dword [0x1400143e0], eax
cmp dword [0x140014400], r14d
jne 0x14000c61c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400143e4], r14d
jne 0x14000c631
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400143e0]
jmp 0x14000c682
cmp ax, 0x22
jne 0x14000c647
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c5b6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14000caf0
add rsp, 0x28
jmp 0x14000c43c
Function at 0x141b320b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141b32237
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 0x141b320e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b320c7
add dl, dl
jne 0x141b320ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b3214e
xor eax, eax
add dl, dl
jne 0x141b320fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b32205
add dl, dl
jne 0x141b3210e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b3211b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b32128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b32135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141b32142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141b320d6
mov eax, 1
add dl, dl
jne 0x141b3215e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b3216b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b32153
sub eax, ebx
mov ebx, 1
jne 0x141b321a4
mov ecx, 1
add dl, dl
jne 0x141b32186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b32193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b3217b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b320d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141b321c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b321cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b321b5
cmp eax, 0x7d00
jae 0x141b321f3
cmp eax, 0x500
jb 0x141b321ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b320d6
cmp eax, 0x7f
ja 0x141b321f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b320d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141b3222a
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 0x141b320d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x14ee76c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14ee776
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x14ee79f
pop rbp
sub rbp, 0x33
sub rbp, 0x10ee76c
cmp edx, 1
je 0x14ee7e2
ldmxcsr dword [rsp]
add rsp, 8
popfq
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rdi
pop rsi
pop rbp
pop rbx
pop rdx
pop rcx
pop rax
xor rax, rax
ret
sub rsp, 0x20
jmp 0x14ee7f2
mov rax, 0x10ee76c
add rax, rbp
add rax, 0xb8
mov rcx, 0x60b
mov rdx, 0xffffffffc8f089c8
xor byte [rax], dl
inc rax
dec rcx
jne 0x14ee811
jmp 0x14ee828
add byte [rcx + 0x21], 0x43
hlt
Function at 0x2620c15a0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp + 0x10], ecx
mov dword [rbp + 0x18], edx
jmp 0x2620c1637
pxor xmm0, xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x20], xmm0
movq qword [rbp - 0x10], xmm0
mov dword [rbp - 0x30], 0
mov dword [rbp - 0x1c], 1
mov eax, dword [sym.safyre.dll_horizontal_speed_right]
test eax, eax
jle 0x2620c15e7
mov eax, dword [sym.safyre.dll_horizontal_speed_right]
mov dword [rbp - 0x28], eax
jmp 0x2620c1605
mov eax, dword [sym.safyre.dll_horizontal_speed_left]
test eax, eax
jle 0x2620c15fe
mov eax, dword [sym.safyre.dll_horizontal_speed_left]
neg eax
mov dword [rbp - 0x28], eax
jmp 0x2620c1605
mov dword [rbp - 0x28], 0
mov eax, dword [sym.safyre.dll_vertical_speed]
mov dword [rbp - 0x24], eax
lea rax, [rbp - 0x30]
mov r8d, 0x28
mov rdx, rax
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_SendInput]
call rax
mov eax, dword [rbp + 0x18]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov ecx, 2
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
test ax, ax
jns 0x2620c1664
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
test ax, ax
jns 0x2620c1664
mov eax, 1
jmp 0x2620c1669
mov eax, 0
test al, al
jne 0x2620c15b3
nop
nop
add rsp, 0x50
pop rbp
ret

Function at 0x2620c1679
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov ecx, 2
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
test ax, ax
jns 0x2620c16ae
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
test ax, ax
jns 0x2620c16ae
mov eax, 1
jmp 0x2620c16b3
mov eax, 0
test al, al
je 0x2620c16c6
mov edx, 0xa
mov ecx, 1
call sym.safyre.dll_SmoothMoveCursor
mov ecx, 0xa
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x2620c1681

Function at 0x2620c18d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop
Function at 0x2620c22d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2620c8128]
test eax, eax
je 0x2620c236a
lea rax, [0x2620c8100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2620c8130]
mov qword [rbp - 8], rax
jmp 0x2620c234e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2620c2342
cmp qword [rbp - 0x10], 0
je 0x2620c2342
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2620c2308
lea rax, [0x2620c8100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2620c236b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2620c2470
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2620c2498
mov eax, 0
jmp 0x2620c24e6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2620c24c1
mov eax, 0
jmp 0x2620c24e6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2620c24e1
mov eax, 0
jmp 0x2620c24e6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x2620c24ec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2620c256a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2620c2561
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2620c2561
mov rax, qword [rbp - 8]
jmp 0x2620c257f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2620c2534
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140012008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140012008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140012008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140012008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x1400929e0
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
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x140092a22
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 [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140092a69
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140092ac2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140092a80
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140092b03
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400a2a12]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400a2a13]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140092ad0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140001570
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rdi, rcx
mov rsi, rdx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x140001652
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8, rax
test rax, rax
je 0x140001649
movsxd rdx, dword [rbx + 0x3c]
lea rax, [rbx + 0x18]
add rax, rdx
movzx ecx, word [rdx + rbx + 0x14]
movzx r9d, word [rdx + rbx + 6]
add rax, rcx
xor ecx, ecx
test r9d, r9d
je 0x1400015fe
cmp dword [rax], 0x7865742e
jne 0x1400015f3
cmp byte [rax + 4], 0x74
je 0x1400015fe
add rax, 0x28
inc ecx
cmp ecx, r9d
jl 0x1400015e5
cmp dword [rax], 0x7865742e
jne 0x140001649
cmp byte [rax + 4], 0x74
jne 0x140001649
mov r10d, dword [rax + 0xc]
mov r9d, dword [rax + 8]
add r10, rbx
sub r8d, r10d
mov word [rsp + 0x20], 0x50f
add r9d, 0xfffffffd
cmp r8d, r9d
jae 0x140001649
movzx eax, word [rsp + 0x20]
nop
mov edx, r8d
add rdx, r10
cmp word [rdx], ax
jne 0x140001641
cmp byte [rdx + 2], 0xc3
je 0x140001671
inc r8d
cmp r8d, r9d
jb 0x140001630
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400016c0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, rbx
mov qword [rsi], rdx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x140001654

Function at 0x140001f80
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1400152b0
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]
nop
add rsp, 0x28
ret

Function at 0x140011276
Capabilities:
Create thread

Disassembly:
jmp 0x1400117c0
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x1400210a8]
call fcn.140011375
nop
xor r8d, r8d
xor edx, edx
lea rcx, [0x14001103c]
call qword [sym.imp.ucrtbased.dll__beginthread]
nop
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400112b2]
call qword [sym.imp.ucrtbased.dll__beginthread]
nop
call fcn.140011046
cmp eax, 0x71
je 0x140011836
cmp qword [0x14001c200], 0
je 0x140011826
mov rcx, qword [0x14001c200]
call qword [sym.imp.ucrtbased.dll_puts]
nop
jmp 0x140011834
lea rcx, str.Empty
call qword [sym.imp.ucrtbased.dll_puts]
nop
jmp 0x140011802
xor eax, eax
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x140011280
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012de0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012e00
xor al, al
jmp 0x140012e81
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012e13
xor al, al
jmp 0x140012e81
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 0x140012e3d
xor al, al
jmp 0x140012e81
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012e51
xor al, al
jmp 0x140012e81
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012e63
xor al, al
jmp 0x140012e81
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012e7f
xor al, al
jmp 0x140012e81
mov al, 1
add rsp, 0x38
ret
Function at 0x140011be0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14001139d
movzx eax, al
test eax, eax
jne 0x140011c00
mov ecx, 7
call fcn.14001131b
nop
mov byte [rsp + 0x20], 0
call fcn.14001132f
mov byte [rsp + 0x21], al
cmp dword [0x14001c228], 1
jne 0x140011c24
mov ecx, 7
call fcn.14001131b
nop
jmp 0x140011c7c
cmp dword [0x14001c228], 0
jne 0x140011c77
mov dword [0x14001c228], 1
lea rdx, [0x140019660]
lea rcx, [0x140019330]
call fcn.1400111a9
test eax, eax
je 0x140011c58
mov eax, 0xff
jmp 0x140011d81
lea rdx, [0x140019220]
lea rcx, [section..rdata]
call fcn.140011325
mov dword [0x14001c228], 2
jmp 0x140011c7c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001130c
call fcn.1400112a3
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140011cd9
mov rcx, qword [rsp + 0x30]
call fcn.140011163
movzx eax, al
test eax, eax
je 0x140011cd9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140022020]
nop
call fcn.1400112da
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140011d0d
mov rcx, qword [rsp + 0x38]
call fcn.140011163
movzx eax, al
test eax, eax
je 0x140011d0d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14001135c
nop
call fcn.140011e30
mov dword [rsp + 0x28], eax
call fcn.140011280
movzx eax, al
test eax, eax
jne 0x140011d2c
mov ecx, dword [rsp + 0x28]
call fcn.14001105f
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140011d3b
call fcn.140011366
nop
xor edx, edx
mov cl, 1
call fcn.140011154
mov eax, dword [rsp + 0x28]
jmp 0x140011d81
add rsp, 0x68
ret