joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425c20
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x20]
cmp r12, qword [r14 + 0x10]
jbe 0x425ed9
push rbp
mov rbp, rsp
sub rsp, 0x98
mov qword [rsp + 0x48], 0
mov rax, qword [0x01349168]
lea rcx, [rsp + 0x48]
mov qword [rsp], rax
mov qword [rsp + 8], 0xffffffffffffffff
mov qword [rsp + 0x10], 0xfffffffffffffffe
mov qword [rsp + 0x18], 0xffffffffffffffff
mov qword [rsp + 0x20], rcx
movups xmmword [rsp + 0x28], xmm15
mov qword [rsp + 0x38], 2
call fcn.00426480
xorps xmm15, xmm15
mov r14, qword [0x013a2200]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x40], 0
nop
je 0x425eb0
mov rax, qword [r14 + 0x30]
mov qword [rsp + 0x80], rax
test byte [rax], al
lea rcx, [rax + 0x310]
mov qword [rsp + 0x88], rcx
nop
mov rax, rcx
call fcn.00406940
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x80]
mov qword [rdx + 0x318], rcx
mov rax, qword [0x01349148]
call fcn.00426140
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 0x48], rax
cmp qword [rcx + 0x330], 0
jne 0x425d69
cmp byte [0x013a2010], 0
je 0x425d69
mov rax, qword [0x01349170]
mov qword [rsp], rax
movups xmmword [rsp + 8], xmm15
mov qword [rsp + 0x18], 2
mov qword [rsp + 0x20], 0x100003
call fcn.00426300
xorps xmm15, xmm15
mov r14, qword [0x013a2200]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 0x330], rax
nop dword [rax]
test rax, rax
je 0x425e88
nop
nop
mov rax, qword [rsp + 0x88]
call fcn.00406b60
movups xmmword [rsp + 0x50], xmm15
movups xmmword [rsp + 0x60], xmm15
movups xmmword [rsp + 0x70], xmm15
mov rcx, qword [0x01349070]
lea rdx, [rsp + 0x50]
mov qword [rsp], rcx
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], 0x30
call fcn.00426280
xorps xmm15, xmm15
mov r14, qword [0x013a2200]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
je 0x425e60
mov rcx, qword [rsp + 0x58]
lea rdx, [rcx + 0x4000]
mov qword [rsp + 0x90], r14
mov rsi, qword [r14 + 8]
cmp rsi, rdx
jb 0x425e41
sub rsi, rcx
add rsi, 0xffffffffffffc000
nop word [rax + rax]
cmp rsi, 0x4000000
ja 0x425e41
mov qword [r14], rdx
lea rax, [rcx + 0x53a0]
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], rax
nop dword [rax + rax]
call fcn.004495a0
xorps xmm15, xmm15
mov r14, qword [0x013a2200]
mov r14, qword gs:[r14]
mov r14, qword [r14]
add rsp, 0x98
pop rbp
nop
ret
mov rcx, qword [rsp + 0x90]
test byte [rcx], al
lea rax, [0x004664b6]
mov ebx, 0xc
call fcn.00428840
nop dword [rax]
call fcn.0044af00
xorps xmm15, xmm15
mov r14, qword [0x013a2200]
mov r14, qword gs:[r14]
mov r14, qword [r14]
lea rax, [0x004691dc]
mov ebx, 0x22
call fcn.00428840
call fcn.0044af00
xorps xmm15, xmm15
mov r14, qword [0x013a2200]
mov r14, qword gs:[r14]
mov r14, qword [r14]
lea rax, [0x0046a3d8]
mov ebx, 0x30
call fcn.00428840
call fcn.0044af00
xorps xmm15, xmm15
mov r14, qword [0x013a2200]
mov r14, qword gs:[r14]
mov r14, qword [r14]
lea rax, [0x00469605]
mov ebx, 0x25
call fcn.00428840
nop
call fcn.00447860
nop
jmp fcn.00425c20
Function at 0x434a20
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x434b87
push rbp
mov rbp, rsp
sub rsp, 0x18
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x434a32
cmp edx, ecx
jne 0x434b75
nop word [rax + rax]
test rsi, rsi
jne 0x434b75
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x434a94
nop
call fcn.0044b320
xorps xmm15, xmm15
mov r14, qword [0x013a2200]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.00434940
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx]
mov ebx, edx
sar edx, 0x1f
shr edx, 0x1b
add edx, ebx
mov esi, edx
and edx, 0xffffffe0
sub ebx, edx
test ebx, ebx
jl 0x434b70
mov rdx, qword [0x0134f238]
sar esi, 5
mov rax, rcx
mov ecx, ebx
mov edi, 1
shl edi, cl
movsxd rsi, esi
cmp ecx, 0x20
sbb r8d, r8d
and edi, r8d
cmp rdx, rsi
jbe 0x434b65
mov rcx, qword [0x0134f230]
lea rcx, [rcx + rsi*4]
lock or dword [rcx], edi
mov rcx, qword [0x0134fc90]
mov qword [rax + 8], rcx
mov rcx, rax
nop
mov qword [0x0134fc90], rax
nop
mov edx, 1
lea rsi, [0x0134fc98]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1228]
shr rdx, 0x3d
test dl, dl
jne 0x434b53
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
nop
nop
xchg qword [rcx + 0x1228], rdx
add rsp, 0x18
pop rbp
ret
lea rax, [0x00469a40]
mov ebx, 0x28
nop
call fcn.00428840
mov rax, rsi
mov rcx, rdx
call fcn.00449ac0
call fcn.00427360
lea rax, [0x0046939e]
mov ebx, 0x23
call fcn.00428840
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00447860
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00434a20
Function at 0x43cec0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x43d037
movzx edx, byte [rax]
test edx, edx
jne 0x43cef4
nop dword [rax]
test r8b, r8b
jne 0x43cef4
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x43cf07
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x43cff7
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x43cfe5
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x43cfd7
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x43cf5d
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x43cfa0
mov eax, 1
cmp rax, rbx
ja 0x43cf8b
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.00449b80
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x43cfcf
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x43cf93
mov rcx, r11
mov eax, r12d
jmp 0x43cf62
mov rcx, rbx
call fcn.00449ac0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.00449ac0
mov eax, r8d
mov rcx, rbx
call fcn.00449b80
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x43d02d
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x43cff0
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x43cf0d
mov eax, edx
mov rcx, rbx
call fcn.00449ac0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.00449ac0
nop
int3

Function at 0x4425a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x44264f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x004426a0]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00447720
xorps xmm15, xmm15
mov r14, qword [0x013a2200]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00447860
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.004425a0
Function at 0x4496a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x013a2280]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x013a2008], 0
je 0x4496d6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x013a2540]
aesenc xmm0, xmmword [0x013a2550]
aesenc xmm0, xmmword [0x013a2560]
movq rax, xmm0
ret
jmp 0x405fc0
Function at 0x14000137f
Capabilities:
Parse pe header

Disassembly:
jmp 0x1402eea7c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1402ee7db
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1402ee7db
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1402ee7db
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1402ee7db
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1402ee7db
cmp dword [rcx + 0x84], 0xe
jbe 0x1402ee7db
cmp dword [rcx + 0xf8], 0
je 0x1402ee7db
mov ecx, ebx
call fcn.1402ee944
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1402ee4b0
nop
cmp dword [rbp + 0x20], 0
je 0x1402ee829
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1402ee864
int3
xor r8d, r8d
xor edx, edx
jmp 0x1402ee76c
Function at 0x1400020f9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140345660
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140366008]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x140369158]
xor r11d, r11d
lea rdi, [0x140351a1c]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x1403456d0
mov rax, 0xfffffffffffffffe
jmp 0x14034581d
cmp word [r10 + 6], r11w
jne 0x14034573f
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x1403456fa
test r14, r14
je 0x1403456eb
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x14034581d
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x140345708
mov r8b, 2
jmp 0x140345726
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x140345716
mov r8b, 3
jmp 0x140345726
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x140345812
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x140345768
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x140345812
cmp bl, bpl
jb 0x140345812
cmp bl, r8b
jae 0x140345812
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x140345795
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x140345812
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x140345777
cmp r9, rbp
jae 0x1403457c1
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x1403456c4
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x140345812
cmp edx, 0x110000
jae 0x140345812
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x140345812
test r14, r14
je 0x140345800
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.1400038e6
jmp 0x14034581d
mov rdx, rsi
mov rcx, r10
call fcn.140003f17
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000254a
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
jmp 0x1402daba4
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1402dac31
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1402dac31
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1402dac31
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1402dac18
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1402dac12
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1402dac1a
add rdx, 0x28
jmp 0x1402dabf7
xor edx, edx
test rdx, rdx
jne 0x1402dac23
xor al, al
jmp 0x1402dac37
cmp dword [rdx + 0x24], 0
jge 0x1402dac2d
xor al, al
jmp 0x1402dac37
mov al, 1
jmp 0x1402dac37
xor al, al
jmp 0x1402dac37
add rsp, 0x18
ret
Function at 0x14000267b
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1402e7f34
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1403529d8]
mov ecx, 2
lea r8, [0x1403529d0]
lea rdx, str.FlsGetValue
call fcn.1402e7a04
mov ecx, ebx
test rax, rax
je 0x1402e7f6e
add rsp, 0x20
pop rbx
jmp qword [0x140370020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1400027bb
Capabilities:
Query environment variable

Disassembly:
jmp 0x140330dc8
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140330df8
xor eax, eax
jmp 0x140330ebb
mov rbp, rbx
cmp word [rax], si
je 0x140330e1d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140330e04
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140330e00
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140003102
movsxd r14, eax
test eax, eax
jne 0x140330e5b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140330df1
mov rcx, r14
call fcn.140001032
mov rdi, rax
test rax, rax
jne 0x140330e74
xor ecx, ecx
call fcn.140001163
jmp 0x140330e50
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140003102
test eax, eax
jne 0x140330ea5
mov rcx, rdi
call fcn.140001163
jmp 0x140330eaf
xor ecx, ecx
call fcn.140001163
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400027ca
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1402e7e84
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x140352998]
xor ecx, ecx
lea r8, [0x140352990]
lea rdx, str.FlsAlloc
call fcn.1402e7a04
test rax, rax
je 0x1402e7ebd
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x140370020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x140002842
Capabilities:
Get geographical location

Disassembly:
jmp 0x140325d64
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x140353ff8]
mov rbp, rcx
lea r8, [0x140353ff0]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.140325284
test rax, rax
je 0x140325dc4
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x140370030]
jmp 0x140325dde
xor edx, edx
mov rcx, rbp
call fcn.14000218f
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140002856
Capabilities:
Terminate process

Disassembly:
jmp 0x1402da398
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140002982
Capabilities:
Parse pe header

Disassembly:
jmp 0x1402eea10
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1402ee76c

Function at 0x140002b12
Capabilities:
Parse pe header

Disassembly:
jmp 0x140349030
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14034905a
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x14034905a
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x14034905a
mov eax, 1
ret
xor eax, eax
ret

Function at 0x140002e14
Capabilities:
Parse pe header

Disassembly:
jmp 0x1402db158
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1402db1a3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1402db1a3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1402db1a3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1402db1a3
cmp dword [rcx + 0x84], 0xe
jbe 0x1402db1a3
cmp dword [rcx + 0xf8], 0
je 0x1402db1a3
mov al, 1
jmp 0x1402db1a5
xor al, al
add rsp, 0x28
ret

Function at 0x14000307b
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x140348f70
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x140348fb1
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x140348fa5
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x140348fb3
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x140348f93
xor eax, eax
ret

Function at 0x140003265
Capabilities:
Terminate process

Disassembly:
jmp 0x140324570
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14032458a
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.1400038f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x1400039d6
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1402e7f8c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1403529f8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1403529f0]
call fcn.1402e7a04
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x1402e7fcc
call qword [0x140370020]
jmp 0x1402e7fd2
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003a67
Capabilities:
Set environment variable

Disassembly:
jmp 0x140340a34
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400020d1
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140340abe
cmp byte [rbp - 0x21], r15b
je 0x140340ab9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140340af4
call fcn.140003e04
test eax, eax
jne 0x140340ae0
cmp byte [rbp - 0x21], r15b
je 0x140340ad8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140340af4
cmp byte [rbp - 0x21], r15b
je 0x140340af1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140003fd0
test eax, eax
jne 0x140340b94
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400020d1
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140340b33
cmp byte [rbp - 0x21], r15b
je 0x140340b68
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140340b68
call fcn.140003e04
test eax, eax
jne 0x140340b54
cmp byte [rbp - 0x21], r15b
je 0x140340b4d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140340b68
cmp byte [rbp - 0x21], r15b
je 0x140340b65
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140003fd0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140340b94
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140340b97
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140340ba5
mov rcx, rdi
call fcn.140001163
cmp byte [rbp + 0x3f], r15b
je 0x140340bb4
mov rcx, qword [rbp + 0x27]
call fcn.140001163
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140003b57
Capabilities:
Parse pe header

Disassembly:
jmp 0x1402eea00
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1402ee76c
Function at 0x140007390
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x140366008]
xor rax, rsp
mov qword [rbp + 0x47], rax
call fcn.140003fe4
mov edx, 0x48403
lea rcx, str.___Allocating__d_bytes_of_memory_n
mov rbx, rax
call fcn.1400024dc
lea rcx, [0x140350f74]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtAllocateVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
mov dword [rsp + 0x28], 0x40
lea r9, [rbp + 0x37]
mov qword [rbp + 0x37], 0x48403
xor r8d, r8d
mov qword [rbp - 0x19], rdi
lea rdx, [rbp - 0x19]
mov dword [rsp + 0x20], 0x3000
lea rcx, [rdi - 1]
call rax
test eax, eax
js 0x14000754b
mov rdx, qword [rbp - 0x19]
test rdx, rdx
je 0x140007528
lea rax, [rbp + 0x3f]
mov r9d, 0x48403
mov r8, rbx
mov qword [rsp + 0x20], rax
lea rcx, [rdi - 1]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140007460
lea rcx, str.____Oh_gosh__something_went_wrong__n
call fcn.1400024dc
jmp 0x140007528
lea rcx, str.___Executing_n
call fcn.1400024dc
call qword [rbp - 0x19]
lea rcx, [0x140350f74]
mov qword [rbp - 0x11], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtCreateThreadEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9, 0xffffffffffffffff
mov qword [rbp - 1], 8
mov r10, rax
mov qword [rbp + 0x17], 4
lea rax, [rbp + 0x2f]
mov qword [rbp + 0x27], rdi
mov qword [rbp + 7], rax
lea rcx, [rbp - 0x11]
lea rax, [rbp + 0x33]
mov dword [rbp + 0x33], edi
mov qword [rbp + 0x1f], rax
xor r8d, r8d
lea rax, [rbp - 9]
mov dword [rbp + 0x2f], edi
mov qword [rsp + 0x50], rax
mov edx, 0x1fffff
mov rax, qword [rbp - 0x19]
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
mov dword [rbp - 9], 0x38
mov dword [rbp - 5], 0x10003
mov dword [rbp + 0xf], edi
mov dword [rbp + 0x13], 0x10004
call r10
mov ebx, eax
cmp qword [rbp - 0x11], rdi
je 0x140007562
xor edx, edx
lea rcx, str.___The_shellcode_finished_with_a_return_value:__08X_n
call fcn.1400024dc
xor eax, eax
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14000254a
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
lea rcx, str.____Memory_allocation_failed_n
call fcn.1400024dc
mov ecx, 1
call fcn.14000137f
int3
lea rcx, str.____Couldnt_exesscute_thread_n
call fcn.1400024dc
mov edx, ebx
lea rcx, str.____Reason:_0x_08x_n
call fcn.1400024dc
mov ecx, 1
call fcn.14000137f
int3