joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423beb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push r12
push rdi
push rsi
push rbx
mov r11, rcx
mov r14d, edx
lea rdi, [0x0045f5ae]
mov ecx, 4
mov rsi, r11
repe cmpsb byte [rsi], byte [rdi]
seta r12b
sbb r12b, 0
movsx r12d, r12b
test r12d, r12d
jne 0x423e3d
mov r10d, dword [r11 + 4]
lea eax, [r10 + 8]
cmp eax, 0x1f
jbe 0x423caa
sub r10d, 0x18
lea rcx, [r11 + 0x20]
xor esi, esi
cmp r10d, 1
ja 0x423c6f
jmp 0x423e1a
lea rbx, [rcx + 2]
cmp r8d, eax
jb 0x423caa
test r14d, r14d
je 0x423c5b
mov r10d, r9d
and r10d, 0x3f
cmp r10b, 0x2f
je 0x423cb5
sub r8d, eax
mov r10d, r8d
lea rcx, [rbx + rax]
cmp r8d, 1
jbe 0x423e1a
movzx r9d, byte [rcx]
movzx eax, byte [rcx + 1]
add eax, eax
lea r8d, [r10 - 2]
test r9b, r9b
jns 0x423c40
cmp r8d, 1
jbe 0x423caa
lea rbx, [rcx + 4]
movzx r8d, byte [rcx + 2]
shl r8d, 9
movzx edx, byte [rcx + 3]
shl edx, 0x11
add edx, r8d
add eax, edx
lea r8d, [r10 - 4]
cmp r8d, eax
jae 0x423c49
mov eax, r12d
pop rbx
pop rsi
pop rdi
pop r12
pop r14
ret
lea rdi, [rbx - 2]
sub rdi, r11
sar edi, 1
and r9d, 0x40
jne 0x423caa
lea ecx, [rax - 2]
cmp ecx, 2
ja 0x423caa
test edi, edi
je 0x423e90
lea edx, [rdi - 1]
mov r9, r11
mov ecx, 0xffffffff
lea rdi, [r11 + rdx*2 + 2]
add rdx, 1
and edx, 7
je 0x423d77
cmp rdx, 1
je 0x423d64
cmp rdx, 2
je 0x423d56
cmp rdx, 3
je 0x423d49
cmp rdx, 4
je 0x423d3b
cmp rdx, 5
je 0x423d2e
cmp rdx, 6
je 0x423d20
lea r9, [r11 + 2]
movzx ecx, word [r11]
sub ecx, 3
lea ecx, [rcx + rcx*2]
movzx r10d, word [r9]
add r9, 2
add ecx, r10d
lea ecx, [rcx + rcx*2]
movzx edx, word [r9]
add r9, 2
add ecx, edx
lea ecx, [rcx + rcx*2]
movzx r10d, word [r9]
add r9, 2
add ecx, r10d
lea ecx, [rcx + rcx*2]
movzx edx, word [r9]
add r9, 2
add ecx, edx
lea ecx, [rcx + rcx*2]
movzx r10d, word [r9]
add r9, 2
add ecx, r10d
lea ecx, [rcx + rcx*2]
add r9, 2
movzx edx, word [r9 - 2]
add ecx, edx
cmp r9, rdi
je 0x423dda
lea r10d, [rcx + rcx*2]
movzx ecx, word [r9]
add ecx, r10d
lea edx, [rcx + rcx*2]
movzx r10d, word [r9 + 2]
add r10d, edx
lea edx, [r10 + r10*2]
movzx ecx, word [r9 + 4]
add ecx, edx
lea r10d, [rcx + rcx*2]
movzx edx, word [r9 + 6]
add edx, r10d
lea r10d, [rdx + rdx*2]
movzx ecx, word [r9 + 8]
add ecx, r10d
lea edx, [rcx + rcx*2]
movzx r10d, word [r9 + 0xa]
add r10d, edx
lea edx, [r10 + r10*2]
movzx ecx, word [r9 + 0xc]
add ecx, edx
lea ecx, [rcx + rcx*2]
add r9, 0x10
movzx r10d, word [r9 - 2]
add ecx, r10d
cmp r9, rdi
jne 0x423d77
movzx edi, byte [rbx]
cmp eax, 4
je 0x423e4b
mov r9d, ecx
shr r9d, 0x10
xor ecx, r9d
movzx edx, cl
cmp edx, edi
jne 0x423caa
movzx edx, byte [rbx + 1]
cmp ch, dl
jne 0x423caa
add esi, 1
sub r8d, eax
mov r10d, r8d
lea rcx, [rbx + rax]
cmp r8d, 1
ja 0x423c6f
test r10d, r10d
jne 0x423caa
test r14d, r14d
je 0x423e85
test byte [r11 + 0x1b], 0x10
je 0x423e85
xor r12d, r12d
test esi, esi
setne r12b
jmp 0x423caa
xor r12d, r12d
mov eax, r12d
pop rbx
pop rsi
pop rdi
pop r12
pop r14
ret
movzx r10d, cl
cmp r10d, edi
jne 0x423caa
movzx edx, byte [rbx + 1]
cmp ch, dl
jne 0x423caa
mov edi, ecx
shr edi, 0x10
cmp byte [rbx + 2], dil
jne 0x423caa
movzx r9d, byte [rbx + 3]
shr ecx, 0x18
cmp r9d, ecx
je 0x423e03
jmp 0x423caa
mov r12d, 1
jmp 0x423caa
mov ecx, 0xffffffff
jmp 0x423dda
Function at 0x42dee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
cmp r8d, 2
je 0x42def5
cmp r8d, 4
je 0x42def5
xor r10d, r10d
mov eax, r10d
pop rbx
ret
mov r11d, dword [rcx + 4]
lea eax, [r11 + 8]
cmp eax, 0x1f
jbe 0x42deed
mov r10d, eax
and r10d, 1
jne 0x42deed
movsxd r9, eax
movsxd rbx, r8d
lea rbx, [r9 + rbx + 2]
add rbx, rcx
cmp rdx, rbx
jb 0x42def0
or dword [rcx + 0x18], 0x10000000
lea edx, [r11 + r8 + 2]
mov dword [rcx + 4], edx
sar eax, 1
je 0x42e07a
lea ebx, [rax - 1]
mov rdx, rcx
mov eax, 0xffffffff
lea r11, [rcx + rbx*2 + 2]
add rbx, 1
and ebx, 7
je 0x42dfd4
cmp rbx, 1
je 0x42dfc2
cmp rbx, 2
je 0x42dfb4
cmp rbx, 3
je 0x42dfa8
cmp rbx, 4
je 0x42df9a
cmp rbx, 5
je 0x42df8e
cmp rbx, 6
je 0x42df80
lea rdx, [rcx + 2]
movzx eax, word [rcx]
sub eax, 3
lea r10d, [rax + rax*2]
movzx eax, word [rdx]
add rdx, 2
add eax, r10d
lea ebx, [rax + rax*2]
movzx eax, word [rdx]
add rdx, 2
add eax, ebx
lea r10d, [rax + rax*2]
movzx eax, word [rdx]
add rdx, 2
add eax, r10d
lea ebx, [rax + rax*2]
movzx eax, word [rdx]
add rdx, 2
add eax, ebx
lea r10d, [rax + rax*2]
movzx eax, word [rdx]
add rdx, 2
add eax, r10d
lea ebx, [rax + rax*2]
add rdx, 2
movzx eax, word [rdx - 2]
add eax, ebx
cmp r11, rdx
je 0x42e032
lea r10d, [rax + rax*2]
movzx ebx, word [rdx]
add ebx, r10d
lea r10d, [rbx + rbx*2]
movzx eax, word [rdx + 2]
add eax, r10d
lea ebx, [rax + rax*2]
movzx r10d, word [rdx + 4]
add r10d, ebx
lea ebx, [r10 + r10*2]
movzx eax, word [rdx + 6]
add eax, ebx
lea r10d, [rax + rax*2]
movzx ebx, word [rdx + 8]
add ebx, r10d
lea r10d, [rbx + rbx*2]
movzx eax, word [rdx + 0xa]
add eax, r10d
lea ebx, [rax + rax*2]
movzx r10d, word [rdx + 0xc]
add r10d, ebx
lea ebx, [r10 + r10*2]
add rdx, 0x10
movzx eax, word [rdx - 2]
add eax, ebx
cmp r11, rdx
jne 0x42dfd4
mov r10d, eax
shr r10d, 0x10
add rcx, r9
mov byte [rcx], 0x2f
mov r9d, r8d
sar r9d, 1
mov byte [rcx + 1], r9b
cmp r8d, 4
je 0x42e061
xor eax, r10d
mov word [rcx + 2], ax
mov r10d, 1
mov eax, r10d
pop rbx
ret
mov word [rcx + 2], ax
mov byte [rcx + 4], r10b
shr eax, 0x18
mov byte [rcx + 5], al
mov r10d, 1
jmp 0x42def0
mov r10d, 0xffff
mov eax, 0xffffffff
jmp 0x42e039
Function at 0x451ab0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00457fe0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00457fe0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x451b20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x004697d4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x451cc8
mov rax, qword [0x004697d8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x451b6c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x451bf7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x451b50
mov rcx, r12
call fcn.00452880
mov rbp, rax
test rax, rax
je 0x451d02
mov rax, qword [0x004697d8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.004529b0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004697d8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x451d11
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x451bf0
sub eax, 4
and eax, 0xfffffffb
jne 0x451c80
add dword [0x004697d4], 1
cmp ebx, 8
jae 0x451c28
test bl, 4
jne 0x451cd0
test ebx, ebx
je 0x451c19
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x451cf0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x451c19
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x451c5a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x004697d8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x451bf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00451ab0
nop dword [rax]
xor edi, edi
jmp 0x451b77
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x451c19
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x451c19
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00451ab0
mov rax, qword [0x004697d8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.00451ab0
nop
nop dword [rax]
Function at 0x4524f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00469ac0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00469aa0]
test rbx, rbx
je 0x452544
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x45253b
test r12, r12
je 0x45253b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x452520
lea rcx, [0x00469ac0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x452880
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00465380]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x4528f9
mov rcx, r10
call fcn.00452750
test eax, eax
je 0x4528f9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x4528f6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x4528ed
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x4528f9
add r8, 0x28
cmp r8, r9
jne 0x4528d8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140f1d280
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f1d28a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f1d2b3
pop rbp
sub rbp, 0x33
sub rbp, 0xf1d280
sub rsp, 0x20
jmp 0x140f1d2d2
mov rax, 0xf1d280
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xfffffffff5c6424b
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f1d2f1
jmp 0x140f1d308
add eax, edx
movabs byte [0xca034b4b4b77c2c0], al
mov al, byte [rbx + 0x4a]
add rcx, qword [r10 - 0x5e]
add ecx, dword [rbx + rcx*4 + 0x4b4b4b4c]
add ecx, dword [rcx + rcx*4 + 0x4b4b4b63]
add edi, dword [rcx + rbp*4 - 0x3f75b5fd]
retf 0x4b47
Function at 0x669b90
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x669b9d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x669bad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x669b95
lea eax, [rcx + 1]
jmp 0x669bbb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x669bce
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x669bb4
sub eax, 3
jb 0x669bee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x669c3d
sar eax, 1
movsxd rbp, eax
jb 0x669c24
jmp 0x669bfc
add ebx, ebx
jne 0x669bfa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x669c24
inc ecx
add ebx, ebx
jne 0x669c0a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x669c24
call r11
adc ecx, ecx
add ebx, ebx
jne 0x669c1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x669c0c
add ecx, 2
jmp 0x669c29
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00669b52
jmp 0x669b9d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xf1600
mov dl, 0x1a
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x669c89
cmp rsi, rcx
jae 0x669c91
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x669c70
cmp al, 0x8f
ja 0x669c70
cmp byte [rsi - 2], 0xf
je 0x669c76
sub al, 0xe8
cmp al, 1
ja 0x669c5a
cmp rsi, rcx
jae 0x669c91
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x669c60
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x669c91
lodsb al, byte [rsi]
jmp 0x669c70
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x265000]
mov eax, dword [rdi]
or eax, eax
je 0x669cee
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x269000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x669c9e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x669ce8
mov qword [rbx], rax
add rbx, 8
jmp 0x669cbe
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x669d28
cmp al, 0xef
ja 0x669d1a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x669cfa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x669d09
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x669d7c
sub rsp, 0xffffffffffffff80
jmp 0x462f60
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0040a8c0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x0040a8d0]
mov dword [rax], 1
mov rax, qword [0x0040a8e0]
mov dword [rax], 1
mov rax, qword [0x0040a8b0]
mov dword [rax], 1
mov rax, qword [0x0040a7a0]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x0040a8a0]
mov dword [0x0040d008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x0040a860]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x0040a750]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401602
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
lea rcx, [0x0040a03d]
call main
call sym._getch
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0x20
jne 0x401616
lea rcx, [0x0040a04c]
call main
lea rcx, [0x0040a055]
call sym.system
lea rcx, [0x0040a059]
call main
lea rcx, [0x0040a062]
call main
lea rcx, [0x0040a055]
call sym.system
nop
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x401c10
Capabilities:
Execute command
Set console window title

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
call sym.__main
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp - 8], rax
lea rcx, [0x0040a3d5]
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call rax
mov rax, qword [rbp - 8]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x12c
mov dword [rsp + 0x20], 0x12c
mov r9d, 0x1c2
mov r8d, 1
mov rdx, 0xffffffffffffffff
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_SetWindowPos]
call rax
mov rax, qword [rbp - 8]
mov r9d, 2
mov r8d, 0xb4
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
call rax
lea rcx, [0x0040a3e0]
call main
lea rcx, [0x0040a400]
call main
lea rcx, [0x0040a438]
call main
call dbg.diyigejiemian
call dbg.diergejiemian
call dbg.disangejiemian
lea rcx, str.pause
call sym.system
mov eax, 0
add rsp, 0x50
pop rbp
ret
Function at 0x402200
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0040d624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x402388
mov rax, qword [0x0040d628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40224c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4022d5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x402230
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x4023bd
mov rax, qword [0x0040d628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0040d628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4023a0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4022ce
sub eax, 0x40
and eax, 0xffffffbf
jne 0x402330
add dword [0x0040d624], 1
cmp edi, 8
jae 0x402303
test dil, 4
jne 0x402374
test edi, edi
je 0x4022f8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40238f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4022f8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40231c
jmp 0x4022f8
add rsi, qword [0x0040d628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4022ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4022f8
xor esi, esi
jmp 0x402257
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4022f8
mov rax, qword [0x0040d628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x402b10
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040d900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040d8e0]
test rbx, rbx
je 0x402b64
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 0x402b5b
test rsi, rsi
je 0x402b5b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402b40
lea rcx, [0x0040d900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402da0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402db0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402dc0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402e01
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402df8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402e03
add rax, 0x28
cmp rax, r9
jne 0x402de4
xor eax, eax
ret

Function at 0x402ea0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0040a7a0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402f0d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402f0d
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 0x402f0d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402f04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402f0f
add rax, 0x28
cmp rax, r9
jne 0x402ef0
xor eax, eax
add rsp, 0x28
ret

Function at 0x403010
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0040a7a0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x403030
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403028
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 0x40308d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x403084
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403094
add rax, 0x28
cmp rax, r9
jne 0x403070
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x4030b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x0040a7a0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x40311e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40311e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x40311e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40311e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x403115
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x403125
add rcx, 0x28
cmp rcx, rax
jne 0x403100
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x403138
jmp 0x40311e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x403146
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x40311e
test r9d, r9d
jg 0x403130
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0x28
xor ecx, ecx
mov edx, 0xdd
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea rcx, [0x140003040]
mov r8, rax
movups xmm0, xmmword [rcx]
lea rcx, [rcx + 0x80]
lea rdx, [rax + 0x80]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx - 0x70]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax + 0x60], xmm0
movups xmm0, xmmword [rcx - 0x10]
movups xmmword [rdx - 0x10], xmm0
movups xmm1, xmmword [rcx]
movups xmmword [rdx], xmm1
movups xmm0, xmmword [rcx + 0x10]
movups xmmword [rdx + 0x10], xmm0
movups xmm1, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x20], xmm1
movups xmm0, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x30], xmm0
movups xmm1, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x40], xmm1
mov rax, qword [rcx + 0x50]
mov qword [rdx + 0x50], rax
mov eax, dword [rcx + 0x58]
mov dword [rdx + 0x58], eax
movzx eax, byte [rcx + 0x5c]
mov byte [rdx + 0x5c], al
call r8
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400019ac
Capabilities:
Parse pe header

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