joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027280
Capabilities:
Compute adler32 checksum

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
mov r10, rdx
mov eax, 0x5e6ea9af
mul r8d
mov edi, r8d
xor r9d, r9d
shr edx, 0xb
mov esi, r8d
imul eax, edx, 0x15b0
mov ecx, 1
sub edi, eax
test r8d, r8d
je 0x1400273bc
mov qword [rsp + 0x10], rbx
xor edx, edx
cmp edi, 7
jbe 0x140027322
lea r8d, [rdx + 7]
movzx eax, byte [r10]
add edx, 8
add ecx, eax
add r8d, 8
movzx eax, byte [r10 + 1]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 2]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 3]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 4]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 5]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 6]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 7]
add r9d, ecx
add ecx, eax
add r10, 8
add r9d, ecx
cmp r8d, edi
jb 0x1400272c3
xor r8d, r8d
xor r11d, r11d
cmp edx, edi
jae 0x140027384
mov eax, edi
sub eax, edx
cmp eax, 2
jb 0x14002736d
mov eax, edi
sub eax, edx
sub eax, 2
shr eax, 1
inc eax
mov ebx, eax
lea edx, [rdx + rax*2]
nop word [rax + rax]
movzx eax, byte [r10]
add ecx, eax
movzx eax, byte [r10 + 1]
add r8d, ecx
add r10, 2
add ecx, eax
add r11d, ecx
sub rbx, 1
jne 0x140027350
cmp edx, edi
jae 0x14002737d
movzx eax, byte [r10]
add ecx, eax
add r9d, ecx
inc r10
lea eax, [r11 + r8]
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul edx, edx, 0xffff000f
add r9d, edx
sub esi, edi
mov edi, 0x15b0
jne 0x1400272b8
mov rbx, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
shl r9d, 0x10
lea eax, [rcx + r9]
pop rdi
ret
Function at 0x140028960
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
mov rdi, qword [0x140100cb0]
lea rcx, [rsp + 0x58]
mov rbx, qword [0x140100c70]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x140028994
xor al, al
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140028987
mov rax, qword [0x140100c70]
test rax, rax
je 0x1400289b5
inc dword [rax + 0x3b0]
mov ecx, Ordinal_50
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor ecx, ecx
mov qword [rsp + 0x50], rax
mov rdx, rax
test rax, rax
je 0x1400289ea
xor eax, eax
mov qword [rdx], rax
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rax
mov qword [rdx + 0x20], rax
mov qword [rdx + 0x28], rax
jmp 0x1400289ed
mov rdx, rcx
movdqa xmm0, xmmword [0x1400a8380]
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rbx + 0xe8], rdx
mov word [rsp + 0x30], 0x77
nop dword [rax]
movzx eax, byte [rsp + 0x20]
xor byte [rsp + rcx + 0x21], al
inc rcx
cmp rcx, 0x10
jb 0x140028a10
or dword [rbx + 0xc], 6
lea rax, [rsp + 0x21]
mov qword [rbx + 0xd8], rax
mov qword [rdx], rdi
mov byte [rdx + 0x2d], 1
mov rax, qword [rsp + 0x58]
mov qword [rdx + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdx + 0x18], rax
mov al, 1
mov dword [rdx + 0x28], 9
mov qword [rbx + 0x120], rdi
mov dword [rbx + 0x3c], 9
mov dword [rbx + 0x40], Ordinal_41
mov dword [rbx + 0x44], Ordinal_41
mov dword [rbx + 0x48], Ordinal_41
mov dword [rbx + 0x4c], Ordinal_41
mov dword [rbx + 0x50], reloc.WLDAP32.dll_Ordinal_33
mov dword [rbx + 0x54], Ordinal_35
mov dword [rbx + 0x58], Ordinal_41
mov dword [rbx + 0x5c], reloc.WLDAP32.dll_Ordinal_35
mov dword [rbx + 0x60], Ordinal_50
mov dword [rbx + 0x64], reloc.WLDAP32.dll_Ordinal_46
mov dword [rbx + 0x68], 8
mov dword [rbx + 0x6c], reloc.WLDAP32.dll_Ordinal_32
mov dword [rbx + 0x70], reloc.WS2_32.dll_listen
mov dword [rbx + 0x74], reloc.WLDAP32.dll_Ordinal_27
mov dword [rbx + 0x78], reloc.WS2_32.dll_listen
mov dword [rbx + 0x7c], 0x41
mov dword [rbx + 0x80], 0x43
mov dword [rbx + 0x84], 0x56
mov dword [rbx + 0x88], 0x58
mov dword [rbx + 0x8c], 0x59
mov dword [rbx + 0x90], 0x5a
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140029c70
Capabilities:
Hash data with crc32

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x70
xor eax, eax
lea r8, [0x1400a71d5]
mov qword [r11 - 0x50], rax
or r10d, 0xffffffff
mov qword [r11 - 0x48], rax
mov rbx, rcx
mov qword [r11 - 0x40], rax
mov r9b, 0x54
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
lea rax, str.Table
mov qword [r11 - 0x58], rax
mov eax, r10d
lea r11, [0x1400a2ee0]
cmp r9b, 0x23
jne 0x140029cd3
cmp byte [r8], r9b
jne 0x140029cd3
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
mov ecx, eax
inc r8
shr ecx, 8
mov eax, dword [r11 + rdx*4]
xor eax, ecx
test r9b, r9b
jne 0x140029cc0
not eax
add rbx, 0x30e0
mov dword [rsp + 0x28], eax
lea rax, [0x1400294c0]
mov qword [rsp + 0x30], rax
lea rax, [0x1400295b0]
mov qword [rsp + 0x40], rax
lea rax, [0x1400296a0]
mov r8d, dword [rbx + 4]
mov ecx, dword [rbx]
mov qword [rsp + 0x48], rax
lea rax, [0x140029560]
mov qword [rsp + 0x50], rax
lea rax, [0x140029950]
mov qword [rsp + 0x58], rax
cmp ecx, r8d
jne 0x140029d70
inc ecx
test r8d, r8d
je 0x140029d5c
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x140029d61
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.1400171d0
movsxd rax, dword [rbx]
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
lea rcx, [rax + rax*8]
mov rax, qword [rbx + 8]
movups xmmword [rax + rcx*8], xmm0
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + rcx*8 + 0x10], xmm1
movaps xmm1, xmmword [rsp + 0x50]
movups xmmword [rax + rcx*8 + 0x20], xmm0
movsd xmm0, qword [rsp + 0x60]
movups xmmword [rax + rcx*8 + 0x30], xmm1
movsd qword [rax + rcx*8 + 0x40], xmm0
inc dword [rbx]
add rsp, 0x70
pop rbx
ret
Function at 0x1400348e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
xor edx, edx
mov cl, 0x5c
call fcn.140034500
mov edx, 1
mov byte [rsp + 0x40], al
call fcn.140034500
mov edx, 2
mov byte [rsp + 0x41], al
mov cl, reloc.WLDAP32.dll_Ordinal_46
call fcn.140034500
mov edx, 3
mov byte [rsp + 0x42], al
mov cl, 0x5c
call fcn.140034500
mov edx, 4
mov byte [rsp + 0x43], al
mov cl, Ordinal_79
call fcn.140034500
mov edx, 5
mov byte [rsp + 0x44], al
mov cl, 0x45
call fcn.140034500
mov edx, 6
mov byte [rsp + 0x45], al
mov cl, 0x56
call fcn.140034500
mov edx, 7
mov byte [rsp + 0x46], al
mov cl, 0x55
call fcn.140034500
mov edx, 8
mov byte [rsp + 0x47], al
mov cl, 0x41
call fcn.140034500
mov edx, 9
mov byte [rsp + 0x48], al
mov cl, 0x50
call fcn.140034500
mov edx, 0xa
mov byte [rsp + 0x49], al
mov cl, 0x53
call fcn.140034500
mov byte [rsp + 0x4a], al
xor eax, eax
xor r9d, r9d
mov byte [rsp + 0x4b], al
mov edx, r9d
lea ecx, [rax + 0x13]
inc eax
xor byte [rsp + rdx + 0x40], cl
movsxd rdx, eax
cmp rdx, 0xb
jb 0x1400349a0
mov qword [rsp + 0x30], r9
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
mov edx, 0xc0000000
mov r8d, 3
mov dword [rsp + 0x20], 3
mov byte [rsp + 0x4b], r9b
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx + 8], rax
add rsp, 0x50
pop rbx
ret
Function at 0x140037040
Capabilities:
Create process on windows
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
cmp qword [rdx + 0x18], 8
mov rdi, rdx
mov rbx, rcx
jb 0x14003705c
mov r9, qword [rdx]
jmp 0x14003705f
mov r9, rdi
cmp qword [rcx + 0x18], 8
jb 0x14003706b
mov r8, qword [rcx]
jmp 0x14003706e
mov r8, rbx
mov ecx, WSAStartup
xor edx, edx
call fcn.140035aa0
lea ecx, [rdx + 0x75]
mov word [rsp + 0x30], ax
lea edx, [rcx - 0x74]
call fcn.140035aa0
lea ecx, [rdx + 0x6d]
mov word [rsp + 0x32], ax
lea edx, [rcx - 0x6c]
call fcn.140035aa0
lea ecx, [rdx + 0x5f]
mov word [rsp + 0x34], ax
lea edx, [rcx - 0x5e]
call fcn.140035aa0
lea ecx, [rdx + 0x70]
mov word [rsp + 0x36], ax
lea edx, [rcx - 0x6f]
call fcn.140035aa0
xor ecx, ecx
mov word [rsp + 0x38], ax
lea edx, [rcx + 5]
call fcn.140035aa0
lea edx, [rcx + 6]
mov word [rsp + 0x3a], ax
movzx ecx, word [0x1400a756c]
call fcn.140035aa0
movzx ecx, word [0x1400a756e]
mov edx, 7
mov word [rsp + 0x3c], ax
call fcn.140035aa0
movzx ecx, word [reloc.WLDAP32.dll_Ordinal_46]
mov edx, 8
mov word [rsp + 0x3e], ax
call fcn.140035aa0
movzx ecx, word [reloc.WS2_32.dll_WSAStartup]
mov edx, 9
mov word [rsp + 0x40], ax
call fcn.140035aa0
movzx ecx, word [0x1400a7574]
mov edx, 0xa
mov word [rsp + 0x42], ax
call fcn.140035aa0
mov word [rsp + 0x44], ax
mov r10d, 0x133
xor eax, eax
xor r11d, r11d
mov word [rsp + 0x46], ax
mov edx, r11d
nop dword [rax]
lea ecx, [r10 + rax]
inc eax
xor word [rsp + rdx*2 + 0x30], cx
movsxd rdx, eax
cmp rdx, 0xb
jb 0x140037150
mov dword [rsp + 0x28], r11d
lea rdx, [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x20], r11
mov word [rsp + 0x46], r11w
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, rbx
call fcn.1400349f0
mov rcx, rdi
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
jmp fcn.1400349f0
Function at 0x140039de0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, qword [0x140100c80]
mov rbx, qword [rdi]
mov rdi, qword [rdi + 8]
cmp rbx, rdi
je 0x140039f9e
xor r12d, r12d
nop dword [rax]
nop dword [rax + rax]
mov qword [rbp - 1], reloc.WS2_32.dll_ntohs
mov qword [rbp - 9], r12
mov byte [rbp - 0x19], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.140034e20
nop
movzx eax, byte [rbx + 0x20]
mov byte [rbp + 7], al
mov eax, dword [rbx + 0x24]
mov dword [rbp + 0xb], eax
mov rax, qword [rbx + 0x28]
mov qword [rbp + 0xf], rax
lea rdx, [rbx + 0x30]
lea rcx, [rbp + 0x17]
call fcn.140047cb0
nop
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x31]
call fcn.140039d60
nop
mov r15d, r12d
mov r14, r12
mov r9d, dword [rbp + 0xb]
mov rdx, qword [rbp + 0x17]
mov rcx, qword [rbp - 0x31]
test r9d, r9d
jle 0x140039f25
mov rax, qword [rbp - 0x29]
sub rax, rcx
sar rax, 2
cmp rax, r14
jbe 0x140039f90
mov r8d, dword [rcx + r14*4]
mov rax, qword [rbp + 0x1f]
sub rax, rdx
sar rax, 2
cmp rax, r14
jbe 0x140039f82
mov eax, dword [rdx + r14*4]
mov dword [rbp + 0x67], eax
cmp r8d, eax
je 0x140039f16
movsxd rsi, r15d
add rsi, qword [rbp + 0xf]
cmp byte [rbp + 7], 0
jne 0x140039f79
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov qword [rsp + 0x20], r12
mov r9d, 1
lea r8, [rbp + 0x67]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rdx, qword [rbp + 0x17]
mov r9d, dword [rbp + 0xb]
mov rcx, qword [rbp - 0x31]
inc r15d
inc r14
cmp r15d, r9d
jl 0x140039ea0
test rcx, rcx
je 0x140039f41
mov r8, qword [rbp - 0x21]
sub r8, rcx
sar r8, 2
mov rdx, rcx
call fcn.14004a5f0
mov rdx, qword [rbp + 0x17]
test rdx, rdx
je 0x140039f62
mov r8, qword [rbp + 0x27]
sub r8, rdx
sar r8, 2
call fcn.14004a5f0
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], r12
lea rcx, [rbp - 0x19]
call fcn.140034a90
add rbx, 0x48
cmp rbx, rdi
je 0x140039f9e
jmp 0x140039e30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, str.invalid_vector_T__subscript
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
lea rcx, str.invalid_vector_T__subscript
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
nop
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14003a000
Capabilities:
Get hostname
Get session user name

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rax - 0x40], 0xfffffffffffffffe
movzx esi, dl
mov rdi, rcx
xor ebx, ebx
mov dword [rax - 0x48], ebx
mov byte [rax + 0x18], bl
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rcx + 0x10], rbx
cmp qword [rcx + 0x18], 0x10
jb 0x14003a03c
mov rax, qword [rcx]
jmp 0x14003a03f
mov rax, rdi
mov byte [rax], bl
cmp byte [rsp + 0x80], bl
jne 0x14003a04f
mov r8, rbx
jmp 0x14003a069
lea rax, [rsp + 0x80]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], bl
jne 0x14003a060
lea rdx, [rsp + 0x80]
call fcn.140034cf0
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x88], reloc.WS2_32.dll_recv
mov dword [rsp + 0x24], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x14003a119
cmp byte [rsp + 0x30], 0
jne 0x14003a0b4
mov r8, rbx
jmp 0x14003a0ca
lea rax, [rsp + 0x30]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14003a0c0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140034cf0
test sil, sil
je 0x14003a119
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x14003a119
cmp byte [rsp + 0x40], 0
je 0x14003a109
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14003a100
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140034cf0
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400401b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rbx, rcx
mov dword [0x140100cc0], 0x50
lea rax, [0x140040030]
mov dword [0x140100cc4], 0x40
xor edi, edi
mov qword [0x140100cc8], rax
xor ecx, ecx
mov qword [0x140100cd0], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
mov qword [0x140100cf0], rdi
mov qword [0x140100cd8], rax
xor edx, edx
lea rax, [rsp + 0x70]
movdqa xmmword [0x140100ce0], xmm0
mov qword [0x140100cf8], rax
movzx ecx, byte [rbx]
call fcn.140034500
movzx ecx, byte [rbx + 1]
lea edx, [rdi + 1]
mov byte [rsp + 0x70], al
call fcn.140034500
movzx ecx, byte [rbx + 2]
lea edx, [rdi + 2]
mov byte [rsp + 0x71], al
call fcn.140034500
movzx ecx, byte [rbx + 3]
lea edx, [rdi + 3]
mov byte [rsp + 0x72], al
call fcn.140034500
movzx ecx, byte [rbx + 4]
lea edx, [rdi + 4]
mov byte [rsp + 0x73], al
call fcn.140034500
movzx ecx, byte [rbx + 5]
lea edx, [rdi + 5]
mov byte [rsp + 0x74], al
call fcn.140034500
movzx ecx, byte [rbx + 6]
lea edx, [rdi + 6]
mov byte [rsp + 0x75], al
call fcn.140034500
mov byte [rsp + 0x76], al
mov edx, edi
xor eax, eax
mov byte [rsp + 0x77], al
nop dword [rax + rax]
lea ecx, [rax + 0x13]
inc eax
xor byte [rsp + rdx + 0x70], cl
movsxd rdx, eax
cmp rdx, 7
jb 0x140040290
lea rax, [rsp + 0x70]
mov qword [0x140100d08], rdi
lea rcx, [0x140100cc0]
mov qword [0x140100d00], rax
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov rax, qword [0x140100cd8]
mov r9d, 0x80000000
mov r8, qword [0x140100cf8]
mov ecx, 8
mov rdx, qword [0x140100d00]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], 0xfa
mov dword [rsp + 0x30], 0x249
mov dword [rsp + 0x28], 0x64
mov dword [rsp + 0x20], 0x64
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov rcx, rax
mov qword [0x140100cb0], rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140100cb0]
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
jmp qword [sym.imp.USER32.dll_UpdateWindow]
Function at 0x14004b9c0
Capabilities:
Get hostname
Get session user name

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rax - 0x40], 0xfffffffffffffffe
movzx esi, dl
mov rdi, rcx
xor ebx, ebx
mov dword [rax - 0x48], ebx
mov word [rax + 0x18], bx
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rcx + 0x10], rbx
cmp qword [rcx + 0x18], 0x10
jb 0x14004b9fd
mov rax, qword [rcx]
jmp 0x14004ba00
mov rax, rdi
mov byte [rax], bl
cmp byte [rsp + 0x80], bl
jne 0x14004ba10
mov r8, rbx
jmp 0x14004ba29
lea rax, [rsp + 0x80]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], bl
jne 0x14004ba20
lea rdx, [rsp + 0x80]
call fcn.140034cf0
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x88], reloc.WS2_32.dll_recv
mov dword [rsp + 0x24], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x14004bad9
cmp byte [rsp + 0x30], 0
jne 0x14004ba74
mov r8, rbx
jmp 0x14004ba8a
lea rax, [rsp + 0x30]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14004ba80
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140034cf0
test sil, sil
je 0x14004bad9
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x14004bad9
cmp byte [rsp + 0x40], 0
je 0x14004bac9
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14004bac0
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140034cf0
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x14004e1b0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, 8
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rdx - 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov rdi, rax
xor eax, eax
mov ecx, 0x4d0
rep stosb byte [rdi], al
mov dword [rbx + 0x30], 0x100010
mov rcx, qword gs:[0x60]
mov rdx, qword [rcx + 0x18]
mov rcx, qword [rdx + 0x10]
mov r10, qword [rcx]
mov rsi, r10
nop dword [rax]
nop word [rax + rax]
mov r8, qword [r10 + 0x30]
movsxd rax, dword [r8 + 0x3c]
mov r9d, dword [rax + r8 + 0x88]
add r9, r8
cmp r9, r8
je 0x14004e283
mov edi, dword [r9 + 0x18]
test edi, edi
je 0x14004e283
mov r11d, dword [r9 + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec edi
mov edx, 0x811c9dc5
lea rcx, [r11 + rdi*4]
mov eax, dword [rcx + r8]
add rax, r8
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x14004e27f
nop dword [rax]
movsx ecx, cl
lea rax, [rax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax - 1]
test cl, cl
jne 0x14004e260
cmp edx, 0x85cca27e
je 0x14004e2bd
test edi, edi
jne 0x14004e240
mov r10, qword [r10]
cmp r10, rsi
je 0x14004e296
cmp qword [r10 + 0x30], 0
jne 0x14004e210
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov rdx, rbx
call rdi
test eax, eax
jne 0x14004e2d7
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, dword [r9 + 0x24]
mov ecx, dword [r9 + 0x1c]
add rax, r8
add rcx, r8
movzx edx, word [rax + rdi*2]
mov edi, dword [rcx + rdx*4]
add rdi, r8
jmp 0x14004e298
cmp qword [rbx + 0x48], 0
jne 0x14004e305
cmp qword [rbx + 0x50], 0
jne 0x14004e305
cmp qword [rbx + 0x58], 0
jne 0x14004e305
cmp qword [rbx + 0x60], 0
jne 0x14004e305
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov eax, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14004e320
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
xor eax, eax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x10], rax
mov dword [rsp + 0x60], eax
lea rcx, [r11 - 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x24]
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x14004e377
xor eax, eax
jmp 0x14004e3cf
movabs rax, 0xc3c3c3c3c3c3c3c3
mov byte [rbx], al
mov edx, dword [rsp + 0x24]
lea r9, [rsp + 0x60]
mov r8d, 0x140
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14004e373
call rbx
nop
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
jmp 0x14004e3cf
add rsp, 0x50
pop rbx
ret
Function at 0x140050380
Capabilities:
Access peb ldr_data
Encode data using xor
Get kernel32 base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x48
mov rcx, qword [0x140100f80]
test rcx, rcx
jne 0x14005058a
mov rax, qword gs:[0x60]
mov r11d, 0x694a8c81
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
xor ebp, ebp
mov qword [rsp + 0x60], rsi
mov ebx, ebp
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x40], r12
mov r12d, 0xfff8
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x68], rdi
mov rsi, qword [rax]
mov r15, rsi
nop
movups xmm1, xmmword [rsi + 0x58]
movd eax, xmm1
movups xmmword [rsp + 0x20], xmm1
add ax, r12w
test ebx, ebx
je 0x140050452
mov rdx, qword [rsp + 0x28]
mov r9d, 0x811c9dc5
movzx eax, ax
mov r8, rbp
shr rax, 1
lea r10, [rax*2 + 1]
shr r10, 1
lea rcx, [rdx + rax*2]
cmp rdx, rcx
cmova r10, rbp
test r10, r10
je 0x140050449
nop dword [rax]
nop dword [rax + rax]
movsx eax, byte [rdx]
lea rdx, [rdx + 2]
xor eax, r9d
inc r8
imul r9d, eax, 0x1000193
cmp r8, r10
jne 0x140050430
cmp r9d, ebx
jne 0x14005054b
mov r10, qword [rsi + 0x30]
movsxd rax, dword [r10 + 0x3c]
mov rax, qword [rax + r10 + 0x88]
mov edi, eax
add rdi, r10
shr rax, 0x20
cmp rdi, r10
je 0x14005054b
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x14005054b
mov r14d, dword [rdi + 0x20]
nop word [rax + rax]
dec r9d
mov ecx, r9d
lea rdx, [r14 + r9*4]
mov r8d, dword [rdx + r10]
mov edx, 0x811c9dc5
add r8, r10
movzx ecx, byte [r8]
inc r8
test cl, cl
je 0x1400504c9
movsx ecx, cl
lea r8, [r8 + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [r8 - 1]
test cl, cl
jne 0x1400504b1
cmp edx, r11d
je 0x1400504d5
test r9d, r9d
jne 0x140050490
jmp 0x14005054b
mov ecx, dword [rdi + 0x24]
mov edx, dword [rdi + 0x1c]
add rcx, r10
add rdx, r10
movzx r8d, word [rcx + r9*2]
mov ecx, dword [rdx + r8*4]
add rcx, r10
cmp rcx, rdi
jbe 0x140050560
lea rdx, [rdi + rax]
cmp rcx, rdx
jae 0x140050560
movzx eax, byte [rcx]
mov ebx, 0x811c9dc5
mov r11d, ebx
cmp al, 0x2e
je 0x140050525
nop word [rax + rax]
movsx eax, al
inc rcx
xor eax, ebx
imul ebx, eax, 0x1000193
movzx eax, byte [rcx]
cmp al, 0x2e
jne 0x140050510
movzx eax, byte [rcx + 1]
inc rcx
test al, al
je 0x140050548
movsx eax, al
lea rcx, [rcx + 1]
xor eax, r11d
imul r11d, eax, 0x1000193
movzx eax, byte [rcx]
test al, al
jne 0x140050530
mov rsi, qword [r15]
mov rsi, qword [rsi]
cmp rsi, r15
je 0x14005055d
cmp qword [rsi + 0x30], rbp
jne 0x1400503e0
mov rcx, rbp
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov qword [0x140100f80], rcx
add rsp, 0x48
jmp rcx