joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443460
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4435cf
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [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 0x443478
cmp edx, ecx
jne 0x4435bd
nop dword [rax]
test rsi, rsi
jne 0x4435bd
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x4434d6
nop
call fcn.00460860
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
nop dword [rax + rax]
call fcn.00443360
mov rcx, qword [0x0055fa08]
mov rdx, qword [0x0055fa00]
mov rbx, qword [rsp + 0x28]
mov esi, dword [rbx]
mov edi, esi
sar esi, 0x1f
shr esi, 0x1b
add esi, edi
sar esi, 5
mov r8d, esi
shl esi, 5
sub edi, esi
test edi, edi
jl 0x4435b8
cmp edi, 0x20
sbb esi, esi
mov rax, rcx
mov ecx, edi
mov r9d, 1
shl r9d, cl
and r9d, esi
movsxd rsi, r8d
cmp rax, rsi
jbe 0x4435ad
lea rcx, [rdx + rsi*4]
lock or dword [rcx], r9d
mov rcx, qword [0x00560410]
mov qword [rbx + 8], rcx
nop
mov rcx, rbx
mov qword [0x00560410], rbx
mov edx, 1
lea rsi, [0x00560418]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1228]
shr rdx, 0x3d
test dl, dl
jne 0x44359c
nop
nop
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
xchg qword [rcx + 0x1228], rdx
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
lea rax, [0x004c17af]
mov ebx, 0x28
call fcn.00434e40
mov rcx, rax
mov rax, rsi
call fcn.0045ef40
call fcn.00433360
lea rax, [0x004c0c24]
mov ebx, 0x23
call fcn.00434e40
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045c860
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00443460
Function at 0x44e5e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x44e758
movzx edx, byte [rax]
nop
test edx, edx
jne 0x44e61c
test r8b, r8b
jne 0x44e61c
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
bt edx, 7
jae 0x44e62f
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x44e718
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
cmp rbx, r8
jb 0x44e706
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rcx
sar rcx, 0x3f
and r8, rcx
lea rsi, [rax + r8]
test rbx, rbx
jbe 0x44e6fc
movzx r8d, byte [rax + r8]
bt r8d, 7
jae 0x44e683
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x44e6c6
mov eax, 1
cmp rax, rbx
ja 0x44e6b5
add qword [rdi], r8
sub rdx, rax
sub rbx, rax
mov rcx, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, rsi
mov edi, 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rbx
call fcn.0045f000
lea r8d, [rcx + 7]
mov ecx, eax
mov eax, r10d
cmp rax, rbx
jae 0x44e6f4
movzx r9d, byte [rax + rsi]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov eax, ecx
mov ecx, r8d
shl r9d, cl
or eax, r9d
test r11b, 0x80
jne 0x44e6bd
mov r8d, eax
mov eax, r10d
jmp 0x44e688
mov rcx, rbx
call fcn.0045ef40
xor eax, eax
mov rcx, rax
call fcn.0045ef40
mov eax, r8d
mov rcx, rbx
call fcn.0045f000
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x44e74e
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x44e711
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x44e635
mov eax, edx
mov rcx, rbx
call fcn.0045ef40
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0045ef40
nop
int3
Function at 0x455fe0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45609b
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
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 rdx, [0x004560e0]
mov qword [rsp + 0x10], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x18], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0045c720
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0045c860
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00455fe0
Function at 0x45e980
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4027af
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
nop
call fcn.00408e40
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045c860
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x402780
cmp byte [0x005b3870], 0
je 0x45e995
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45b960
jmp 0x402780

Function at 0x45e9a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005b3b40]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005b3870], 0
je 0x45e9d5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005b3e60]
aesenc xmm0, xmmword [0x005b3e70]
aesenc xmm0, xmmword [0x005b3e80]
movq rax, xmm0
ret
jmp 0x409040

Function at 0x45e9e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005b3b40]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005b3870], 0
je 0x45ea16
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005b3e60]
aesenc xmm0, xmmword [0x005b3e70]
aesenc xmm0, xmmword [0x005b3e80]
movq rax, xmm0
ret
jmp 0x4090a0

Function at 0x460380
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x005b3de0]
mov qword [rsp + 8], rdx
lea r8d, [0x005b3888]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.0045e8c0
add rsp, 0x30
ret
Function at 0x14000e674
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x1400b3010]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov rcx, rdx
mov rbx, r8
call qword [sym.imp.Qt5Core.dll_public:_unsigned_short_int_const____ptr64___cdecl_QString::utf16_void_const___ptr64]
xor edx, edx
lea rcx, [rbp]
mov r8d, 0x410
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
mov r8, qword [rbx]
cmp dword [r8 + 4], 0
je 0x14000e6ef
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_unsigned_short_int_const____ptr64___cdecl_QString::utf16_void_const___ptr64]
mov r9, rdi
lea r8, str.__s___s
lea rcx, [rbp]
mov qword [rsp + 0x20], rax
mov edx, 0x410
call fcn.140003ffc
and qword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000e81f
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
and qword [rsp + 0x68], 0
mov r9d, 2
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, 0x20f01ff
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x70]
and qword [rsp + 0x70], 0
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
xor eax, eax
lea rcx, [rbp - 0x70]
xorps xmm0, xmm0
mov qword [rbp - 0x78], rax
xor edx, edx
movups xmmword [rsp + 0x78], xmm0
lea ebx, [rax + 0x70]
mov r8d, ebx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x68]
lea rax, str.winsta0default
mov qword [rbp - 0x60], rax
lea r8, [rbp]
lea rax, [rsp + 0x78]
mov dword [rbp - 0x70], ebx
mov qword [rsp + 0x50], rax
xor r9d, r9d
lea rax, [rbp - 0x70]
mov rdx, rdi
mov qword [rsp + 0x48], rax
and qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x628
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
setne bl
test eax, eax
je 0x14000e7f6
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test bl, bl
je 0x14000e81f
mov al, 1
jmp 0x14000e821
xor al, al
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.140016780
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140d89000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x140d8900a
jmp 0x140d8b00f
jmp fcn.140a2d058
Function at 0x140001af0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov r9, qword [rcx]
movabs rax, 0xffffffff00000000
mov r8d, dword [rcx + 0x68]
mov rsi, rcx
mov r12d, r8d
neg r12
movzx edi, word [r9 + 0x14]
mov r10, qword [r9 + 0x30]
add rdi, r9
and r10, rax
mov qword [rsp + 0x70], r10
mov ebp, dword [rdi + 0x20]
mov eax, dword [rdi + 0x28]
or rbp, r10
and r12, rbp
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x28], r12
test eax, eax
jne 0x140001b5a
mov ecx, dword [rdi + 0x3c]
test cl, 0x40
je 0x140001b52
mov eax, dword [r9 + 0x20]
jmp 0x140001b5a
test cl, cl
jns 0x140001b5a
mov eax, dword [r9 + 0x24]
mov ecx, dword [rdi + 0x3c]
mov edx, eax
mov eax, 1
mov r13d, eax
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x88], r15
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x3c], 0
cmp ax, word [r9 + 6]
jae 0x140001c62
add rdi, 0x64
nop dword [rax]
mov r15d, dword [rdi - 0x1c]
mov eax, r8d
or r15, r10
mov ebx, r8d
mov r10d, dword [rdi - 0x14]
neg rbx
and rbx, r15
test r10d, r10d
jne 0x140001bd7
mov r11d, dword [rdi]
test r11b, 0x40
je 0x140001bcb
mov r10d, dword [r9 + 0x20]
jmp 0x140001bd7
test r11b, r11b
jns 0x140001bd7
mov r10d, dword [r9 + 0x24]
mov eax, dword [rsi + 0x68]
mov r14d, r10d
cmp r12, rbx
je 0x140001c17
mov r8d, eax
lea rax, [rdx + rbp]
cmp rax, rbx
ja 0x140001c17
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140001a00
test eax, eax
je 0x140001c59
mov ecx, dword [rdi]
mov rbp, r15
mov r8d, dword [rsi + 0x68]
mov r12, rbx
mov qword [rsp + 0x20], r15
mov edx, r14d
mov qword [rsp + 0x28], rbx
jmp 0x140001c32
mov edx, dword [rdi]
mov eax, edx
and eax, ecx
or ecx, edx
bt eax, 0x19
jb 0x140001c29
btr ecx, 0x19
mov rdx, r14
sub rdx, rbp
add rdx, r15
mov r9, qword [rsi]
inc r13d
add rdi, 0x28
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rdx
movzx eax, word [r9 + 6]
cmp r13d, eax
jge 0x140001c5d
mov r10, qword [rsp + 0x70]
jmp 0x140001ba0
xor eax, eax
jmp 0x140001c7d
mov eax, 1
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x3c], eax
mov rcx, rsi
call fcn.140001a00
test eax, eax
mov eax, 0
setne al
mov r15, qword [rsp + 0x88]
mov r14, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003134
Capabilities:
Parse pe header

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

Function at 0x14000a614
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000a404
Function at 0x14000e3cc
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000e3fc
xor eax, eax
jmp 0x14000e4bf
mov rbp, rbx
cmp word [rax], si
je 0x14000e421
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000e408
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000e404
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.14000e31c
movsxd r14, eax
test eax, eax
jne 0x14000e45f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000e3f5
mov rcx, r14
call fcn.14000c830
mov rdi, rax
test rax, rax
jne 0x14000e478
xor ecx, ecx
call fcn.14000bb30
jmp 0x14000e454
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.14000e31c
test eax, eax
jne 0x14000e4a9
mov rcx, rdi
call fcn.14000bb30
jmp 0x14000e4b3
xor ecx, ecx
call fcn.14000bb30
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 0x1400116fc
Capabilities:
Set environment variable

Disassembly:
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.140008e2c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140011786
cmp byte [rbp - 0x21], r15b
je 0x140011781
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400117bc
call fcn.14000bd84
test eax, eax
jne 0x1400117a8
cmp byte [rbp - 0x21], r15b
je 0x1400117a0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400117bc
cmp byte [rbp - 0x21], r15b
je 0x1400117b9
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.14000ca98
test eax, eax
jne 0x14001185c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140008e2c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400117fb
cmp byte [rbp - 0x21], r15b
je 0x140011830
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140011830
call fcn.14000bd84
test eax, eax
jne 0x14001181c
cmp byte [rbp - 0x21], r15b
je 0x140011815
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140011830
cmp byte [rbp - 0x21], r15b
je 0x14001182d
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.14000ca98
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001185c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001185f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001186d
mov rcx, rdi
call fcn.14000bb30
cmp byte [rbp + 0x3f], r15b
je 0x14001187c
mov rcx, qword [rbp + 0x27]
call fcn.14000bb30
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 0x140012f60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140012f88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140012f88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x401632
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov eax, 0x31350
call fcn.00402d30
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x312e0], rcx
mov qword [rbp + 0x312e8], rdx
mov qword [rbp + 0x312f0], r8
mov dword [rbp + 0x312f8], r9d
mov dword [rbp + 0x31290], 0x22
mov dword [rbp + 0x31294], 0x10
mov dword [rbp + 0x31298], 0x34
mov dword [rbp + 0x3129c], 0x13
mov dword [rbp + 0x312a0], 0x10
mov dword [rbp + 0x312a4], 9
mov dword [rbp + 0x312a8], 0x35
mov dword [rbp + 0x312ac], 0x3c
mov dword [rbp + 0x312b0], 0xf
mov dword [rbp + 0x312b4], 0x19
mov dword [rbp + 0x312b8], 9
mov dword [rbp + 0x312bc], 9
mov qword [rbp + 0x31288], 0
lea rdx, [rbp + 0x31288]
lea rax, [rbp + 0x31290]
mov r8, rdx
mov edx, 0xc
mov rcx, rax
call fcn.00401540
lea rax, [rbp - 0x50]
lea rdx, [0x00406170]
mov ecx, 0x312d0
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
lea rdx, [rbp - 0x54]
lea rax, [rbp - 0x50]
mov r9, rdx
mov r8d, 0x40
mov edx, 0x312d0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp + 0x312cc], eax
cmp dword [rbp + 0x312cc], 0
jne 0x401758
mov eax, 0
jmp 0x40177b
lea rax, [rbp - 0x50]
mov qword [rbp + 0x312c0], rax
mov rdx, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rbp + 0x312c0]
mov rcx, rdx
call rax
mov eax, 0
add rsp, 0x31350
pop rbp
ret
sub rsp, 0x28
call fcn.00401900
mov rax, qword [0x004377a0]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x00437790]
mov r8, qword [rax]
mov rax, qword [0x00437780]
mov rcx, qword [rax]
add rsp, 0x28
jmp 0x401632
Function at 0x401dc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x0043a624]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x401ed7
mov rax, qword [0x0043a628]
xor edx, edx
add rax, 8
mov rcx, qword [rax]
cmp rbx, rcx
jb 0x401e0d
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rcx, r8
cmp rbx, rcx
jb 0x401ebd
add edx, 1
add rax, 0x18
cmp edx, ebp
jne 0x401df1
mov rcx, rbx
call fcn.00402a10
test rax, rax
mov r12, rax
je 0x401f0f
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x0043a628]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.00402b80
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x0043a628]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401ef2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x401eb6
sub eax, 4
and eax, 0xfffffffb
je 0x401eb6
mov r9, rbp
add r9, qword [0x0043a628]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401ede
add dword [0x0043a624], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebp, ebp
jmp 0x401e18
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00401d50
mov rax, qword [0x0043a628]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call fcn.00401d50
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00401d50
nop
nop

Function at 0x402670
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0043a900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0043a8e0]
test rbx, rbx
je 0x4026c4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4026bb
test rsi, rsi
je 0x4026bb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4026a0
lea rcx, [0x0043a900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402a10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00437720]
xor r9d, r9d
mov rdx, rcx
cmp word [r8], 0x5a4d
je 0x402a31
mov rax, r9
add rsp, 0x28
ret
mov rcx, r8
call fcn.004028e0
test eax, eax
je 0x402a29
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402a29
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402a84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402aa0
add rax, 0x28
cmp rax, r9
jne 0x402a70
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
mov r9, rax
mov rax, r9
add rsp, 0x28
ret

Function at 0x402f20
Capabilities:
Execute shellcode via indirect call

Disassembly:
push rbp
mov eax, 0x31350
call fcn.00402d30
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x312e0], rcx
mov qword [rbp + 0x312e8], rdx
mov qword [rbp + 0x312f0], r8
mov dword [rbp + 0x312f8], r9d
mov dword [rbp + 0x31290], 0x22
mov dword [rbp + 0x31294], 0x10
mov dword [rbp + 0x31298], 0x34
mov dword [rbp + 0x3129c], 0x13
mov dword [rbp + 0x312a0], 0x10
mov dword [rbp + 0x312a4], 9
mov dword [rbp + 0x312a8], 0x35
mov dword [rbp + 0x312ac], 0x3c
mov dword [rbp + 0x312b0], 0xf
mov dword [rbp + 0x312b4], 0x19
mov dword [rbp + 0x312b8], 9
mov dword [rbp + 0x312bc], 9
mov qword [rbp + 0x31288], 0
lea rdx, [rbp + 0x31288]
lea rax, [rbp + 0x31290]
mov r8, rdx
mov edx, 0xc
mov rcx, rax
call fcn.00401540
lea rax, [rbp - 0x50]
lea rdx, [0x00406170]
mov ecx, 0x312d0
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
lea rdx, [rbp - 0x54]
lea rax, [rbp - 0x50]
mov r9, rdx
mov r8d, 0x40
mov edx, 0x312d0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp + 0x312cc], eax
cmp dword [rbp + 0x312cc], 0
jne 0x401758
mov eax, 0
jmp 0x40177b
lea rax, [rbp - 0x50]
mov qword [rbp + 0x312c0], rax
mov rdx, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rbp + 0x312c0]
mov rcx, rdx
call rax
mov eax, 0
add rsp, 0x31350
pop rbp
ret
sub rsp, 0x28
call fcn.00401900
mov rax, qword [0x004377a0]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x00437790]
mov r8, qword [rax]
mov rax, qword [0x00437780]
mov rcx, qword [rax]
add rsp, 0x28
jmp 0x401632