joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400102ec
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14001d008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
mov rax, qword [rcx + 8]
test al, 1
jne 0x140010389
and rax, 0xfffffffffffffffc
mov rax, qword [rax + 0x10]
lea rcx, [rax + 0x28]
neg rax
sbb rsi, rsi
and rsi, rcx
mov ecx, dword [0x14001ec7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
jmp 0x140010351
cmp qword [rax], rsi
je 0x140010358
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140010348
jmp 0x14001038b
cmp qword [rax + 8], rbx
je 0x14001038b
lea rcx, [0x1400108b4]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], r14
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.1400108c0
nop
jmp 0x140010413
xor ebx, ebx
lea rax, [rdi + 1]
mov qword [rsp + 0x28], rax
mov ecx, dword [0x14001ec7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400103ab
mov rdx, qword [rax + 8]
jmp 0x1400103ae
mov rdx, rbx
mov r8d, 0x50
call fcn.14000a99c
mov qword [rax + 0x20], rbx
lea rcx, [0x140010690]
mov qword [rax + 0x28], rcx
mov qword [rax], rbx
mov qword [rax + 8], rbx
and qword [rax + 0x10], 0
mov qword [rax + 0x18], rbx
mov dword [rax + 0x30], ebx
lea rcx, [0x1400108b4]
mov qword [rax + 0x38], rcx
mov qword [rax + 0x40], r14
mov rcx, qword [rdi + 8]
and rcx, 0xfffffffffffffffc
mov rdx, rax
mov rcx, qword [rcx + 0x10]
call fcn.140003cfc
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x28]
call fcn.140010438
nop
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140011270
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret

Function at 0x140010438
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x140010451
and qword [rcx + 0x10], 0
mov rdi, qword [rcx + 8]
test rdi, rdi
je 0x140010497
mov ecx, dword [0x14001ec7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001048a
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14001048a
xor edx, edx
xor eax, eax
cmp qword [rcx + rax*8], 0
je 0x1400104a2
inc edx
inc rax
cmp rax, 2
jl 0x140010478
mov rcx, rdi
call fcn.14001151c
and qword [rbx + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov al, byte [rdi + 0x50]
mov byte [rdi], al
movsxd rax, edx
mov qword [rcx + rax*8], rdi
jmp 0x140010492
Function at 0x1400104b8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400104e4
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x1400104df
mov rax, qword [rcx]
xor edx, edx
call rax
nop
and qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14001052a
mov ecx, dword [0x14001ec7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001051d
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14001051d
xor edx, edx
xor eax, eax
cmp qword [rcx + rax*8], 0
je 0x140010535
inc edx
inc rax
cmp rax, 2
jl 0x14001050b
mov rcx, rbx
call fcn.14001151c
and qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov al, byte [rbx + 0x48]
mov byte [rbx], al
movsxd rax, edx
mov qword [rcx + rax*8], rbx
jmp 0x140010525

Function at 0x140011d54
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140011d9e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140011d9e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140011d9e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140011d9e
cmp dword [rcx + 0x84], 0xe
jbe 0x140011d9e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140011da0
xor al, al
add rsp, 0x28
ret
Function at 0x140005700
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x140005891
mov r15, qword [rsp + 0x60]
lea r8d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r9d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x140005891
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r8w, dx
jae 0x14000579b
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x1400058b8
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x1400057b2
mov eax, ecx
add cx, r11w
cmp cx, r9w
ja 0x1400057b2
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x1400057c5
movzx r9d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x140005812
mov r9d, eax
cmp eax, 0x800
jae 0x1400057df
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov r11d, r8d
jmp 0x140005812
cmp eax, 0x10000
jae 0x1400057f9
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov r11d, r10d
jmp 0x140005812
shr r9d, 0x12
mov r10d, 3
movzx r11d, sil
or r9b, 0xf0
xor r11d, 1
add r11d, r11d
lea r8d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r8d
cmp rdx, rcx
jl 0x140005891
add qword [r14], 2
test sil, sil
jne 0x140005833
cmp r10d, 3
jae 0x14000583f
mov rcx, qword [rbx]
mov r8d, r11d
mov byte [rcx], r9b
inc qword [rbx]
mov r9, qword [rbx]
test r8d, r8d
jle 0x14000586e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [rbx]
mov r9, qword [rbx]
test r8d, r8d
jg 0x140005850
shr eax, 0xa
mov r8d, 1
test sil, sil
mov ecx, r8d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x14000574f
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x14000589f
Function at 0x100004848
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rdx, qword [0x1000730f0]
mov rbx, rcx
test rdx, rdx
je 0x10002c860
mov rax, qword [0x1000730f8]
test rax, rax
je 0x10002c87d
test rdx, rdx
je 0x10002db32
test rax, rax
je 0x10002db32
mov rdx, qword [0x100073100]
test rdx, rdx
je 0x10002c8a1
xor ecx, ecx
test rdx, rdx
setne cl
jmp 0x10000489d
test ecx, ecx
je 0x1000048be
mov rcx, rax
mov qword [0x100073108], rbx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [0x1000730f0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
add rsp, 0x30
pop rbx
ret
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdx, rax
mov qword [0x1000730f0], rax
jmp 0x100004861
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdx, qword [0x1000730f0]
mov qword [0x1000730f8], rax
jmp 0x100004871
lea rax, [rsp + 0x48]
lea r8, [0x100002254]
xor r9d, r9d
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
mov qword [0x100073100], rax
mov rax, qword [0x1000730f8]
jmp 0x100004893
xor ecx, ecx
jmp 0x10000489d

Function at 0x100007a98
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rdx, r8
mov rsi, r8
mov rbp, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x100007ae4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rdi, rdi
je 0x100007ae4
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rdi], eax
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1000102a4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 0x18]
add edx, 0x2bc
movzx esi, r8w
mov rcx, qword [rax + 8]
mov rbx, qword [rcx + 8]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
lea rdx, [rsp + 0x50]
mov rdi, rax
xor eax, eax
lea r8d, [rax + 2]
mov rcx, rdi
mov word [rsp + 0x50], ax
mov word [rsp + 0x52], ax
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [rsp + 0x50], si
jne 0x100010dd5
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov word [rsp + 0x50], si
call qword [sym.imp.USER32.dll_GetClientRect]
lea r8, [rsp + 0x20]
mov r9d, 2
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_MapWindowPoints]
mov esi, 0x435
mov rcx, rbx
mov edx, esi
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r8, [rsp + 0x20]
mov r9d, 2
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, esi
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.USER32.dll_InvalidateRect]
mov edx, esi
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_UpdateWindow]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
nop
jmp 0x1000102fe

Function at 0x100014f40
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x110
mov rax, qword [0x1000730b0]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rdi, rdx
mov rbx, rcx
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x64
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov rdx, rdi
mov rcx, rbx
mov r8d, eax
call fcn.10000378c
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClientRect]
mov rdx, qword [0x1000735d0]
lea r8, [rsp + 0x20]
mov r9d, 2
mov rcx, rdi
call qword [sym.imp.USER32.dll_MapWindowPoints]
mov rcx, qword [0x1000735d0]
lea rdx, [rsp + 0x20]
xor r8d, r8d
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [0x1000735d0]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, rdi
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.100001c30
mov rbx, qword [rsp + 0x130]
add rsp, 0x110
pop rdi
ret
Function at 0x100028fec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x18]
mov r8d, 0x17
mov r14, r9
mov ebx, 0x80004005
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor esi, esi
mov rbp, rax
cmp rax, rsi
je 0x100031584
mov rcx, qword [rdi + 0x18]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r12d, eax
shr r12d, 1
je 0x1000290d5
mov rcx, qword [rdi + 0x18]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, rsi
je 0x100031584
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r13, rax
cmp rax, rsi
je 0x1000290d5
lea ecx, [r12 + 1]
lea eax, [rsi + 2]
lea r15, [rsi - 1]
mov ebx, esi
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.100001f90
lea rdi, [r12 + r12]
mov rdx, r13
mov r8, rdi
mov rcx, rax
mov rbp, rax
call sub.msvcrt.dll_memcpy
mov word [rdi + rbp], si
cmp rbp, rsi
je 0x1000290bd
xor eax, eax
mov rcx, r15
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea esi, [rcx - 1]
mov r8d, esi
mov rdx, rbp
mov rcx, r14
call fcn.100022360
mov rcx, rbp
call sub.msvcrt.dll_free
jmp 0x1000290d5
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, esi
cmovle ebx, eax
jmp 0x1000290d5

Function at 0x100029848
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r13, rcx
mov r12d, edx
lea rcx, [0x1000755a0]
xor edx, edx
xor ebx, ebx
call fcn.10002784c
lea r14d, [rbx + 1]
mov ebp, r14d
jmp 0x100029884
mov rsi, rax
test rax, rax
je 0x10002cf78
test rbx, rbx
jne 0x10002cf78
mov eax, r12d
lea edx, [rbx + 6]
xor r9d, r9d
shr eax, 4
mov rcx, rsi
add ax, r14w
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rbx, rax
test rax, rax
je 0x10002cf62
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x10002cf5b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x10002cf5b
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rdi
and ecx, 0xf
jbe 0x10002991c
cmp rdi, r11
jae 0x10002cf5b
add ecx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x100029906
cmp rdi, r11
jae 0x10002cf5b
movzx eax, word [rdi]
neg ax
sbb rbx, rbx
and rbx, rdi
test rbx, rbx
je 0x10002cf62
test rsi, rsi
je 0x10002cf7f
mov r8d, r12d
mov rdx, rsi
mov rcx, r13
call fcn.100029980
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
xor ebx, ebx
jmp 0x100029931
lea rcx, [0x1000755a0]
mov edx, ebp
call fcn.10002784c
add ebp, r14d
jmp 0x100029884
xor esi, esi
jmp 0x10002993a
xor eax, eax
jmp 0x100029951
Function at 0x100040230
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x1000730b0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rdi, rcx
mov rcx, qword [rcx + 0x420]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
xor esi, esi
cmp eax, esi
jbe 0x1000402fc
mov rcx, qword [rdi + 0x420]
lea ebx, [rsi + 0x40]
lea rdx, [rsp + 0x20]
mov r8d, ebx
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea r11d, [rsi + 0x2d]
cmp word [rsp + 0x20], r11w
jne 0x1000402c7
lea rcx, [rsp + 0x20]
lea rax, [rbx + 0x7fffffbe]
cmp rax, rsi
je 0x1000402b9
movzx edx, word [rcx + 2]
cmp dx, si
je 0x1000402b9
mov word [rcx], dx
add rcx, 2
sub rbx, 1
jne 0x100040297
cmp rbx, rsi
jne 0x1000402c2
sub rcx, 2
mov word [rcx], si
jmp 0x1000402ea
mov rcx, qword [rdi + 0x420]
lea rdx, [rsp + 0x22]
mov r8d, 0x3f
mov word [rsp + 0x20], r11w
mov word [rsp + 0x22], si
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi + 0x420]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov al, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.100001c30
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x10004032c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0xb0
mov rax, qword [0x1000730b0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbp, rcx
mov rcx, qword [rcx + 0x420]
movzx r12d, dx
mov esi, 0x40
lea rdx, [rsp + 0x20]
mov r8d, esi
call qword [sym.imp.USER32.dll_GetWindowTextW]
xor ebx, ebx
mov r11, rsi
mov edi, ebx
lea rax, [rsp + 0x20]
cmp word [rax], bx
je 0x10004038f
add rax, 2
sub r11, 1
jne 0x100040380
cmp r11, rbx
jne 0x10004039b
mov edi, 0x80070057
jmp 0x1000403bb
mov rcx, qword [rbp + 0x420]
sub rsi, r11
lea rdx, [rsp + 0x20]
mov word [rsp + rsi*2 + 0x20], r12w
mov word [rsp + rsi*2 + 0x22], bx
call qword [sym.imp.USER32.dll_SetWindowTextW]
cmp edi, ebx
sete al
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.100001c30
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x10005d118
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x10005d183
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x10005d1a3
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret

Function at 0x1000e3000
Capabilities:
Encode data using xor

Disassembly:
xor rcx, rcx
sub rcx, 0xffffffffffffffbc
lea rax, [entry0]
movabs rbx, 0x3ad40eeb2c1961f2
xor qword [rax + 0x27], rbx
sub rax, 0xfffffffffffffff8
loop 0x1000e301b
mov edx, 0x6a64d050
out 0x15, eax
invalid
Function at 0x14001105a
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x1400127e0
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x1838
call fcn.140011104
sub rsp, rax
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x486
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1858]
mov rax, qword [0x14001f008]
xor rax, rbp
mov qword [rbp + 0x1808], rax
lea rcx, [0x1400251ca]
call fcn.1400114d3
lea r8, [rbp + 0x1024]
mov edx, 0x1000
lea rcx, [rbp + 0x10]
call fcn.140011212
test eax, eax
jne 0x14001284f
xor eax, eax
jmp 0x14001293d
mov eax, dword [rbp + 0x1024]
xor edx, edx
mov ecx, 4
div rcx
mov dword [rbp + 0x1044], eax
mov dword [rbp + 0x1064], 0
jmp 0x14001287f
mov eax, dword [rbp + 0x1064]
inc eax
mov dword [rbp + 0x1064], eax
mov eax, dword [rbp + 0x1044]
cmp dword [rbp + 0x1064], eax
jae 0x14001293b
mov eax, dword [rbp + 0x1064]
cmp dword [rbp + rax*4 + 0x10], 0
je 0x140012936
mov eax, dword [rbp + 0x1064]
mov r8d, dword [rbp + rax*4 + 0x10]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x1088], rax
cmp qword [rbp + 0x1088], 0
je 0x140012936
lea r9, [rbp + 0x10c4]
mov r8d, 8
lea rdx, [rbp + 0x10a8]
mov rcx, qword [rbp + 0x1088]
call fcn.14001108c
test eax, eax
je 0x140012936
mov r9d, 0x104
lea r8, [rbp + 0x10f0]
mov rdx, qword [rbp + 0x10a8]
mov rcx, qword [rbp + 0x1088]
call fcn.140011032
test eax, eax
je 0x140012936
mov rdx, qword [rbp + 0x1830]
lea rcx, [rbp + 0x10f0]
call fcn.14001154b
test eax, eax
jne 0x140012936
mov eax, dword [rbp + 0x1064]
mov eax, dword [rbp + rax*4 + 0x10]
jmp 0x14001293d
jmp 0x140012871
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001bd48]
call fcn.14001143d
mov rax, rdi
mov rcx, qword [rbp + 0x1808]
xor rcx, rbp
call fcn.140011276
lea rsp, [rbp + 0x1818]
pop rdi
pop rbp
ret
Function at 0x1400112da
Capabilities:
Terminate process

Disassembly:
jmp 0x140014330
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 0x14001136b
Capabilities:
Read file on windows

Disassembly:
jmp 0x1400129d0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a8]
mov rax, qword [0x14001f008]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x1400252e4]
call fcn.1400114d3
lea r8, [0x14001bf74]
mov rdx, qword [rbp + 0x180]
lea rcx, [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fopen_s]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x140012a69
lea rdx, str.____Failed_to_open_file
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110a5
lea rdx, [0x140011041]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor eax, eax
jmp 0x140012b26
mov r8d, 2
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fseek]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_ftell]
mov dword [rbp + 0x44], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fseek]
mov eax, dword [rbp + 0x44]
inc eax
cdqe
mov rcx, rax
call fcn.14001122b
mov qword [rbp + 0x148], rax
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x140012ae6
lea rdx, str.____Failed_to_read_shellcode
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110a5
lea rdx, [0x140011041]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor eax, eax
jmp 0x140012b26
movsxd rax, dword [rbp + 0x44]
mov r9, qword [rbp + 8]
mov r8, rax
mov edx, 1
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ucrtbased.dll_fread]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fclose]
movsxd rax, dword [rbp + 0x44]
mov rcx, qword [rbp + 0x68]
mov byte [rcx + rax], 0
mov rax, qword [rbp + 0x188]
mov ecx, dword [rbp + 0x44]
mov dword [rax], ecx
mov rax, qword [rbp + 0x68]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001bf50]
call fcn.14001143d
mov rax, rdi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.140011276
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x140011393
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015af0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015b10
xor al, al
jmp 0x140015b91
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015b23
xor al, al
jmp 0x140015b91
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 0x140015b4d
xor al, al
jmp 0x140015b91
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015b61
xor al, al
jmp 0x140015b91
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015b73
xor al, al
jmp 0x140015b91
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140015b8f
xor al, al
jmp 0x140015b91
mov al, 1
add rsp, 0x38
ret