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

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

Function at 0x403850
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 0x403891
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 0x403888
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x403893
add rax, 0x28
cmp rax, r9
jne 0x403874
xor eax, eax
ret

Function at 0x403930
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00411c20]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40399d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40399d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40399d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x403994
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40399f
add rax, 0x28
cmp rax, r9
jne 0x403980
xor eax, eax
add rsp, 0x28
ret

Function at 0x403aa0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00411c20]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x403ac0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403ab8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x403b1d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x403b14
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403b24
add rax, 0x28
cmp rax, r9
jne 0x403b00
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x403b40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00411c20]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x403bae
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403bae
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x403bae
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x403bae
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x403ba5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x403bb5
add rcx, 0x28
cmp rcx, rax
jne 0x403b90
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x403bc8
jmp 0x403bae
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x403bd6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x403bae
test r9d, r9d
jg 0x403bc0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x40f8c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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 sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140004ae0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140004b14
cmp word [rcx], 0x5a4d
jne 0x140004b14
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140004b14
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004b14
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140004a20
test eax, eax
jne 0x140004b30
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140004a90
test rax, rax
je 0x140004b25
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.1400052d9
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x1400051e0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140005180
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140005634
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1406cac98]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1406cac94]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140005682
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000567a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140005769
inc ebx
add rax, 0x28
jmp 0x14000565a
mov rcx, r12
call fcn.140005e61
mov rbp, rax
test rax, rax
jne 0x1400056a1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400055d0
movsxd rbx, ebx
mov rax, qword [0x1406cac98]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140005f0f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1406cac98]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140005703
mov rax, qword [0x1406cac98]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400055d0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140005763
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140005763
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 [0x1406cac98]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140005763
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400055d0
inc dword [0x1406cac94]
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 0x140005b90
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1406cad00]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1406cace0]
test rbx, rbx
je 0x140005bdc
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 0x140005bd6
test eax, eax
jne 0x140005bd6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140005bae
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140005d90
Capabilities:
Parse pe header

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

Function at 0x140005db4
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 0x140005dee
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140005de5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140005df0
inc r8d
add rax, 0x28
jmp 0x140005dcc
xor eax, eax
ret

Function at 0x140005e61
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1406bfb70]
mov r8, rcx
mov rcx, r9
call fcn.140005d90
test eax, eax
je 0x140005e8d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140005db4
xor eax, eax
add rsp, 0x28
ret
Function at 0x1406de7a9
Capabilities:
Packed with generic packer

Disassembly:
mov r8b, 0x99
jl fcn.1407f845c
cmp r8w, 0xa40b
jno 0x1406df372

Function at 0x1407595fd
Capabilities:
Packed with generic packer

Disassembly:
not si
xchg qword [rsp + rsi - 0xffc2], rcx
pushfq
add qword [rsp + rsi - 0xffca], 0xba30b
not rsi
or sil, sil
cmp esi, 0x401c1987
mov rsi, qword [rsp + rsi*2 + 0x1ffce]
mov qword [rsp + 0x18], rcx
jb 0x1406d62f1
call fcn.140772809

Function at 0x140759639
Capabilities:
Packed with generic packer

Disassembly:
shr dil, 0x9a
add rcx, rcx
js 0x1407f2dbd
xchg qword [rsp + 0x78], rax
mov rdi, qword [rsp + 0x50]
movzx cx, byte [rsp + 0xd]
jl fcn.1406f3936
or byte [rsp + 0x30], cl
lea rcx, [rcx*2 + 0x2736d195]
xor word [rsp + 0x30], 0xe081
mov rcx, qword [rsp + 0x18]
or word [rsp + 8], 0xd78f
js 0x1407cc330
call fcn.1406d68b5

Function at 0x14077db89
Capabilities:
Packed with generic packer

Disassembly:
mov rcx, r10
cmp ecx, 0xfb33a50e
seta r10b
or r10w, 0xe22f
neg cx
jle 0x1407a118f
call fcn.1407f6154
not r10
sub r10w, 0xe5b6
xor r10d, 0x43bcae37
nop
jle 0x14076926f
jne 0x1407accef
xlatb
jnp 0x14077dc09
int 0xb8
je 0x14077dbdb
lahf
mov r13d, 0x4c0a448f
out 0x14, al
sbb edi, edi
fisttp qword [rdi]
sub cl, byte [rsi + 0x5eb96c7e]
cmp eax, 0x6e2f4aed
pop rsp
movabs eax, dword [0x986dde86e23d8de4]
invalid
invalid
invalid
jo 0x140772e42
or word [rsp + 0x30], 0xf530
push qword [rsp + 0x60]
popfq
lea rsp, [rsp + 0x78]
ret

Function at 0x14077efe3
Capabilities:
Parse pe header

Disassembly:
xchg qword [rsp + 0x28], rbp
push qword [rsp + 0x18]
popfq
lea rsp, [rsp + 0x28]
ret
xchg qword [rsp + 0x58], rdi
mov rbp, qword [rsp + 0x10]
mov word [rsp + r13*8 - 0x51021fd8], r12w
call fcn.1407aacbf
jne 0x140784309
shl dword [rsp + 8], 0x45
not qword [rsp + 8]
not word [rsp + 0x30]
sub qword [rsp + 0x30], 0x8047ea0
push qword [rsp + 0x40]
popfq
lea rsp, [rsp + 0x50]
ret
shr r12w, 0x50
lea rdi, [rdi + r13 - 0x5af471f4]
or r12d, 0xb98a9494
jl 0x1407e310a
add dword [rsp + 8], 0x9f185318
push rdi
mov rdi, qword [rsp + 0x10]
xchg qword [rsp + 0x18], rax
mov rdi, qword [rsp]
jle 0x140770222
call fcn.140772d5f
add byte [rsp + 0x10], 0x81
js 0x14079a78c
shl byte [rsp + 0x10], 0xc
push qword [rsp + 8]
popfq
lea rsp, [rsp + 0x18]
ret
cmp r13w, r12w
jg 0x1406ed045
sub dword [rsp + 0x20], 0x9e897099
lea rbp, [rbp + 0x139663be]
setno byte [rsp + 0x20]
sub word [rsp + 0x20], 0xb981
not byte [rsp + 0x20]
and qword [rsp + 0x20], 0xffffffff8b001200
jae 0x1406eba31

Function at 0x14078c095
Capabilities:
Packed with generic packer

Disassembly:
setns r12b
and dword [rsp + 8], r12d
push rsi
jge 0x1407d69b1
add qword [rsp + 0x20], 0x7e91b
movabs r15, 0xd38c3117e3ba331
call fcn.1407d626e
mov r12, qword [rsp + 0x20]
mov qword [rsp + 0x20], rdi
and dword [rsp + 0x10], 0xef990dab
push r15
je 0x1408024d0
call fcn.1407f252a
push rdi
push rdx
jle 0x1407aac96
movzx esi, si
pushfq
add sil, 0x20
and sil, 0xac
xchg qword [rsp + rsi*8 - 0x51900], rax
shr si, 0x90
sub sil, 0x9d
call fcn.1407a2b0d
push rbx
call fcn.1407808ee
push rcx
push 0xffffffffd3963592
call fcn.1406dad51
Function at 0x14078c0a5
Capabilities:
Packed with generic packer

Disassembly:
not edx
test edx, 0x81816f80
call fcn.1406f0457

Function at 0x140792304
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + rcx - 0x27f9ffc9], rsi
xor cl, 0xe
or cx, word [rsp + rcx - 0x27f9ffec]
call fcn.1407b5a9f

Function at 0x14079232d
Capabilities:
Encode data using base64

Disassembly:
jo fcn.1407de984
mov qword [rsp + rdi - 0xa284830], rax
add qword [rsp + rdi - 0xa284868], 0xffffffffbf8773f7
sub rdi, 0xffffffffbf1874b1
movabs rdi, 0x5902198de29e773f
jl 0x1407ac8bc
setg dil
setae dil
add di, 0x4aa2
or edi, edi
setns dil
add qword [rsp], 0x16863
add qword [rsp + 0x28], 0xffffffffbf85a26d
call fcn.1408015e9
push 0x35332438
pushfq
or byte [rsp + 8], 0xf
sub dword [rsp + 8], 0xd383421
call fcn.1406ebc54
adc edx, esp
cmpsb byte [rsi], byte [rdi]
xchg edx, eax
or edi, 0xffffffa9
sub ebx, dword [rdx - 0x4735fcfc]
mov ebp, 0x12b710c0
movabs dword [0xb2c18361154a4c11], eax
pop rsi
jp 0x1407923e8
sbb ah, byte [rbp + 0x22]
leave
cdq
sahf
pop rdx
shl byte [rbx - 0x2467b533], cl
int 0xa2
fisttp dword [rcx]
or al, 0xeb
je 0x14079242f
invalid
mov dl, 0x8c
movabs eax, dword [0xfbac13a0ad98fee1]
adc ebx, dword [rdx + rsi + 0x44326767]
and cl, ah
xor al, byte [rdx + riz - 0x34]
movabs al, byte [0x47fc51f2410afbe1]
lodsd eax, dword [rsi]
pop rcx
xor eax, 0x380d4f9
jbe 0x1407923f8
invalid
hlt

Function at 0x1407a2ba3
Capabilities:
Encode data using base64

Disassembly:
sub r10w, 0x9c80
mov r10w, 0xcc0f
mov qword [rsp + 0x40], rbp
je 0x140765010
mov qword [rsp + 0x10], r12
bswap r10d
call fcn.1407de8e5
ficomp dword [rsi]
xor esp, dword [rdi - 0x75]
popfq
outsd dx, dword [rsi]
mov dh, byte [rdi - 0x4b399f1b]
invalid

Function at 0x1407b5b53
Capabilities:
Encode data using xor

Disassembly:
lea rsi, [rsi + 0x66858aad]
call 0x1406dcbf4

Function at 0x1407be7cb
Capabilities:
Packed with generic packer

Disassembly:
test r12, r12
bswap r12
mov r12, qword [rsp + 0x18]
mov qword [rsp + 0x18], rax
call fcn.14079f19d
call fcn.1407dc3ba
mov bh, 0x71
int3
lea r12, [r12*8 + 0x6b1ce114]
jno 0x1406fe160

Function at 0x1407cc300
Capabilities:
Packed with generic packer

Disassembly:
shl r14d, 0xda
lea r14, [r14 + r14*8 - 0x3ec5cfb]
mov r14, qword [rsp + r14*2 - 0x402745fa]
call fcn.1407a07a0
pop rax
call fcn.1406d7f66
shl dword [rsp + rdi*2 + 0x32235c22], 0xcf
mov r8, qword [rsp + 0x60]
shr di, 0x5d
call fcn.1406d82b6
and qword [rsp + r8 + 0x3657fab0], 0x3010559f
xor r11b, 0xab
lea rcx, [rcx - 0x50d42df4]
mov r11d, dword [rsp + r11 - 0x6b088f40]
call fcn.1407cffca
invalid
setns r14b
and r14, 0xffffffff878da6a4
mov rdx, qword [rsp + 0x20]
setno r14b
jge 0x14079b7d6
pushfq
push rdi
movabs rdi, 0xb180f69387ada80a
call fcn.1406e5792
jne 0x1407fb49c
jae 0x14077dba0
jle 0x1407bf8e0
movsd dword [rdi], dword [rsi]
push rdi
lodsb al, byte [rsi]
fisub word [rax]
invalid
movsb byte [rdi], byte [rsi]
invalid
Function at 0x1410abff5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
sbb r9b, 6
mov qword [rsp + 0x10], rdi
sub edi, edi
movzx ebx, r8b
mov r11, rcx
movsx r8, r15w
mov r8, rdi
nop
not r9b
movsx r10, r11w
jmp 0x1410ac020
movzx r9d, byte [r11]
jmp 0x1410ac030
movzx r10d, byte [rdx]
jmp 0x1410ac039
inc r11
jmp 0x1410ac041
inc rdx
clc
test bl, bl
jmp 0x1410ac04c
je 0x1410ac07f
mov ecx, r8d
rol ah, 0x27
rcr al, cl
rcl rax, 0x32
mov eax, 0xbbfe80e
jmp 0x1410ac068
rol eax, cl
test r14b, spl
clc
cmc
add al, r8b
stc
xor r9b, al
jmp 0x1410ac07b
inc r8
stc
test r9b, r9b
je 0x1410ac096
cmp r9b, r10b
jmp 0x1410ac090
je 0x1410ac020
cmp r9b, r10b
jmp 0x1410ac09e
jae 0x1410ac0bf
or eax, 0xffffffff
mov rbx, qword [rsp + 8]
not dil
movsx di, r14b
mov rdi, qword [rsp + 0x10]
jmp 0x1410ac0be
ret
mov rbx, qword [rsp + 8]
lahf
seta dil
movzx rax, cx
mov eax, edi
mov di, 0x8a20
not edi
mov edi, r8d
mov rdi, qword [rsp + 0x10]
jmp 0x1410ac0e2
ret

Function at 0x140811058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1408111df
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 0x140811089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14081106f
add dl, dl
jne 0x140811096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408110f6
xor eax, eax
add dl, dl
jne 0x1408110a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408111ad
add dl, dl
jne 0x1408110b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408110c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408110d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408110dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408110ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14081107e
mov eax, 1
add dl, dl
jne 0x140811106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140811113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408110fb
sub eax, ebx
mov ebx, 1
jne 0x14081114c
mov ecx, 1
add dl, dl
jne 0x14081112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14081113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140811123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14081107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140811168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140811175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14081115d
cmp eax, 0x7d00
jae 0x14081119b
cmp eax, 0x500
jb 0x140811196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14081107e
cmp eax, 0x7f
ja 0x14081119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14081107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408111d2
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 0x14081107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140017780
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x70
xor ebx, ebx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x1400177bd
lea rax, [rbx - 1]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x40]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x98], rsi
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0x60], r14
cmovo rax, r15
mov rcx, rax
call fcn.14001696c
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1400178bc
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa0], r12
mov r12, r14
mov qword [rsp + 0x68], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.14001696c
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x40]
inc r14d
cmp r14d, eax
jne 0x140017830
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.140003ef4
mov esi, eax
cmp dword [rsp + 0x40], ebx
je 0x1400178fb
mov rdi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400178fb
call fcn.1400167d8
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jne 0x1400178e2
mov rcx, r14
call fcn.1400167d8
mov r14, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x98]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
Function at 0x140004260
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x47], 0
je 0x140004283
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x14]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x46
jb 0x140004270
mov byte [rcx + 0x47], 0
mov rax, rcx
ret

Function at 0x140004290
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
cmp byte [r8 + 6], sil
je 0x1400042c4
mov ecx, esi
lea eax, [rcx - 0x14]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 5
jb 0x1400042b0
mov byte [r8 + 6], sil
lea rax, [r8 + 5]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], sil
cmp r9, rax
je 0x1400042f9
mov r8d, 5
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.1400095e0
nop
cmp byte [rbx + 0xa], 0
je 0x140004323
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x14]
xor byte [rcx + rbx], al
inc rcx
cmp rcx, 9
jb 0x140004310
mov byte [rbx + 0xa], 0
lea rax, [rbx + 9]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], 0
cmp rbx, rax
je 0x140004358
mov r8d, 9
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.1400095e0
nop
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.14000b330
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x1400043ac
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400043a6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400043a6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140072cdc
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1400043ec
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400043e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400043e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140072cdc
mov rax, rdi
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret