joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180122e90
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
lea rcx, [0x180238882]
call fcn.180141e90
nop
movzx eax, byte [0x1802269fc]
test eax, eax
jne 0x180122eef
mov rax, qword [rbp + 0x1a0]
movsxd rax, dword [rax]
lea rcx, [0x18021dd80]
mov rdx, qword [rbp + 0x1a8]
mov rcx, qword [rcx + rax*8]
call fcn.1800e5be0
movzx eax, al
test eax, eax
je 0x180122eef
mov byte [0x1802269fc], 1
movzx eax, byte [0x1802269fc]
test eax, eax
je 0x180122fa2
mov rdx, qword [rbp + 0x1a8]
lea rcx, str.Tus_Ata
call fcn.1800e5be0
nop
mov dword [rbp + 0x164], 1
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x148]
call fcn.1801188f0
mov rcx, rax
call fcn.18011b430
nop
lea rax, [0x18018f970]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 8]
add rax, 0x298
mov qword [rbp + 0x48], rax
jmp 0x180122f67
mov rax, qword [rbp + 0x28]
add rax, 4
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x48]
cmp qword [rbp + 0x28], rax
je 0x180122fa2
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov ecx, dword [rax]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x180122fa0
mov rax, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x68]
mov ecx, dword [rcx]
mov dword [rax], ecx
mov byte [0x1802269fc], 0
jmp 0x180122f5b
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret

Function at 0x180123900
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
lea rcx, [0x180238882]
call fcn.180141e90
nop
movzx eax, byte [0x1802269fe]
test eax, eax
jne 0x18012395f
mov rax, qword [rbp + 0x1a0]
movsxd rax, dword [rax]
lea rcx, [0x18021dd80]
mov rdx, qword [rbp + 0x1a8]
mov rcx, qword [rcx + rax*8]
call fcn.1800e5be0
movzx eax, al
test eax, eax
je 0x18012395f
mov byte [0x1802269fe], 1
movzx eax, byte [0x1802269fe]
test eax, eax
je 0x180123a12
mov rdx, qword [rbp + 0x1a8]
lea rcx, str.Tus_Ata
call fcn.1800e5be0
nop
mov dword [rbp + 0x164], 1
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x148]
call fcn.1801188f0
mov rcx, rax
call fcn.18011b430
nop
lea rax, [0x18018f970]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 8]
add rax, 0x298
mov qword [rbp + 0x48], rax
jmp 0x1801239d7
mov rax, qword [rbp + 0x28]
add rax, 4
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x48]
cmp qword [rbp + 0x28], rax
je 0x180123a12
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov ecx, dword [rax]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x180123a10
mov rax, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x68]
mov ecx, dword [rcx]
mov dword [rax], ecx
mov byte [0x1802269fe], 0
jmp 0x1801239cb
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x180127330
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, [0x180238882]
call fcn.180141e90
nop
movzx eax, byte [0x180226a2d]
test eax, eax
jne 0x18012738f
mov rax, qword [rbp + 0x160]
movsxd rax, dword [rax]
lea rcx, [0x18021dd80]
mov rdx, qword [rbp + 0x168]
mov rcx, qword [rcx + rax*8]
call fcn.1800e5be0
movzx eax, al
test eax, eax
je 0x18012738f
mov byte [0x180226a2d], 1
movzx eax, byte [0x180226a2d]
test eax, eax
je 0x180127429
mov rdx, qword [rbp + 0x168]
lea rcx, str.Tus_Ata
call fcn.1800e5be0
movzx eax, al
test eax, eax
je 0x1801273bf
mov byte [0x180226a2d], 0
lea rax, [0x18018f970]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 8]
add rax, 0x298
mov qword [rbp + 0x48], rax
jmp 0x1801273ee
mov rax, qword [rbp + 0x28]
add rax, 4
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x48]
cmp qword [rbp + 0x28], rax
je 0x180127429
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov ecx, dword [rax]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x180127427
mov rax, qword [rbp + 0x160]
mov rcx, qword [rbp + 0x68]
mov ecx, dword [rcx]
mov dword [rax], ecx
mov byte [0x180226a2d], 0
jmp 0x1801273e2
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x180127440
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
lea rcx, [0x180238882]
call fcn.180141e90
nop
movzx eax, byte [0x1802269fd]
test eax, eax
jne 0x18012749f
mov rax, qword [rbp + 0x1a0]
movsxd rax, dword [rax]
lea rcx, [0x18021dd80]
mov rdx, qword [rbp + 0x1a8]
mov rcx, qword [rcx + rax*8]
call fcn.1800e5be0
movzx eax, al
test eax, eax
je 0x18012749f
mov byte [0x1802269fd], 1
movzx eax, byte [0x1802269fd]
test eax, eax
je 0x180127552
mov rdx, qword [rbp + 0x1a8]
lea rcx, str.Tus_Ata
call fcn.1800e5be0
nop
mov dword [rbp + 0x164], 1
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x148]
call fcn.1801188f0
mov rcx, rax
call fcn.18011b430
nop
lea rax, [0x18018f970]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 8]
add rax, 0x298
mov qword [rbp + 0x48], rax
jmp 0x180127517
mov rax, qword [rbp + 0x28]
add rax, 4
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x48]
cmp qword [rbp + 0x28], rax
je 0x180127552
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov ecx, dword [rax]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x180127550
mov rax, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x68]
mov ecx, dword [rcx]
mov dword [rax], ecx
mov byte [0x1802269fd], 0
jmp 0x18012750b
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x180128410
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
lea rcx, [0x180238882]
call fcn.180141e90
nop
movzx eax, byte [0x180226a28]
test eax, eax
jne 0x18012846f
mov rax, qword [rbp + 0x1a0]
movsxd rax, dword [rax]
lea rcx, [0x18021dd80]
mov rdx, qword [rbp + 0x1a8]
mov rcx, qword [rcx + rax*8]
call fcn.1800e5be0
movzx eax, al
test eax, eax
je 0x18012846f
mov byte [0x180226a28], 1
movzx eax, byte [0x180226a28]
test eax, eax
je 0x180128522
mov rdx, qword [rbp + 0x1a8]
lea rcx, str.Tus_Ata
call fcn.1800e5be0
nop
mov dword [rbp + 0x164], 1
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x148]
call fcn.1801188f0
mov rcx, rax
call fcn.18011b430
nop
lea rax, [0x18018f970]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 8]
add rax, 0x298
mov qword [rbp + 0x48], rax
jmp 0x1801284e7
mov rax, qword [rbp + 0x28]
add rax, 4
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x48]
cmp qword [rbp + 0x28], rax
je 0x180128522
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov ecx, dword [rax]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x180128520
mov rax, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x68]
mov ecx, dword [rcx]
mov dword [rax], ecx
mov byte [0x180226a28], 0
jmp 0x1801284db
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret

Function at 0x180128e00
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
lea rcx, [0x180238882]
call fcn.180141e90
nop
movzx eax, byte [0x180226a29]
test eax, eax
jne 0x180128e5f
mov rax, qword [rbp + 0x1a0]
movsxd rax, dword [rax]
lea rcx, [0x18021dd80]
mov rdx, qword [rbp + 0x1a8]
mov rcx, qword [rcx + rax*8]
call fcn.1800e5be0
movzx eax, al
test eax, eax
je 0x180128e5f
mov byte [0x180226a29], 1
movzx eax, byte [0x180226a29]
test eax, eax
je 0x180128f12
mov rdx, qword [rbp + 0x1a8]
lea rcx, str.Tus_Ata
call fcn.1800e5be0
nop
mov dword [rbp + 0x164], 1
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x148]
call fcn.1801188f0
mov rcx, rax
call fcn.18011b430
nop
lea rax, [0x18018f970]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 8]
add rax, 0x298
mov qword [rbp + 0x48], rax
jmp 0x180128ed7
mov rax, qword [rbp + 0x28]
add rax, 4
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x48]
cmp qword [rbp + 0x28], rax
je 0x180128f12
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov ecx, dword [rax]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x180128f10
mov rax, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x68]
mov ecx, dword [rcx]
mov dword [rax], ecx
mov byte [0x180226a29], 0
jmp 0x180128ecb
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x180134d30
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x6b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x112
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x6d8]
mov rax, qword [0x18021f480]
xor rax, rbp
mov qword [rbp + 0x678], rax
lea rcx, [0x180239962]
call fcn.180141e90
nop
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
mov dword [rbp + 0x424], 0
mov dword [rsp + 0x20], 2
lea r9, [rbp + 0x424]
mov r8d, 0x400
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x6a0]
call sub.KERNEL32.dll_K32EnumProcessModulesEx
nop
mov eax, dword [rbp + 0x424]
xor edx, edx
mov ecx, 8
div rcx
mov dword [0x180228470], eax
lea rcx, [rbp - 0x30]
lea rdx, [0x180194960]
call fcn.180141c60
mov rcx, qword [rbp + 0x678]
xor rcx, rbp
call fcn.1801420e0
lea rsp, [rbp + 0x688]
pop rdi
pop rbp
ret
Function at 0x180135040
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x18021f480]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x180239960]
call fcn.180141e90
nop
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x1801350a7
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1801350ae
mov al, 1
jmp 0x18013521e
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.180010ec0
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.180010ec0
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.180010ef0
movzx eax, al
test eax, eax
je 0x180135111
xor al, al
jmp 0x18013521e
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
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 + 0x158]
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 + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x180135184
cmp dword [rbp + 0x160], 1
je 0x18013518f
cmp dword [rbp + 0x160], 3
je 0x18013520d
jmp 0x18013521c
mov rax, qword [rbp + 0x1a0]
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 0x1801351df
mov rax, qword [rbp + 0x1a0]
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 0x1801351df
xor al, al
jmp 0x18013521e
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1801351fa
mov dword [rbp + 0x154], 1
jmp 0x180135204
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x18013521e
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x18013521e
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x180195300]
call fcn.180141c60
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.1801420e0
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x18013c220
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
cmp dword [0x180229620], 0
je 0x18013c234
xor eax, eax
jmp 0x18013c49d
cmp qword [0x180229618], 0
je 0x18013c24a
mov rax, qword [0x180229618]
jmp 0x18013c49d
mov r8d, 0x48
xor edx, edx
lea rcx, [0x1802295d0]
call sub.VCRUNTIME140D.dll_memset
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x1802295d0], rax
xor r8d, r8d
xor edx, edx
lea rcx, [0x180195e28]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x1802295d8], rax
cmp qword [0x1802295d8], 0
jne 0x18013c303
mov dword [0x180229620], 1
cmp qword [0x1802295d8], 0
je 0x18013c2af
mov rcx, qword [0x1802295d8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1802295e0], 0
mov qword [0x1802295e8], 0
mov qword [0x1802295f0], 0
mov qword [0x1802295f8], 0
mov qword [0x180229600], 0
mov qword [0x180229608], 0
mov qword [0x180229610], 0
xor eax, eax
jmp 0x18013c49d
lea rdx, str.ImagehlpApiVersionEx
mov rcx, qword [0x1802295d8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802295e0], rax
lea rdx, str.SymInitialize
mov rcx, qword [0x1802295d8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802295e8], rax
lea rdx, str.SymSetOptions
mov rcx, qword [0x1802295d8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802295f0], rax
lea rdx, str.SymGetOptions
mov rcx, qword [0x1802295d8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802295f8], rax
lea rdx, str.SymLoadModule64
mov rcx, qword [0x1802295d8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180229600], rax
lea rdx, str.SymGetModuleInfo64
mov rcx, qword [0x1802295d8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180229608], rax
lea rdx, str.SymFromName
mov rcx, qword [0x1802295d8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180229610], rax
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140D.dll_memset
mov eax, recv
mov word [rsp + 0x28], ax
cmp qword [0x1802295e0], 0
je 0x18013c40e
cmp qword [0x1802295e8], 0
je 0x18013c40e
cmp qword [0x180229600], 0
je 0x18013c40e
cmp qword [0x180229608], 0
je 0x18013c40e
cmp qword [0x180229610], 0
jne 0x18013c413
jmp 0x18013c28e
lea rcx, [rsp + 0x28]
call qword [0x1802295e0]
movzx eax, word [rsp + 0x28]
cmp eax, 0xc
jge 0x18013c42d
jmp 0x18013c28e
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x1802295d0]
call qword [0x1802295e8]
test eax, eax
jne 0x18013c448
jmp 0x18013c28e
cmp qword [0x1802295f8], 0
je 0x18013c488
cmp qword [0x1802295f0], 0
je 0x18013c488
call qword [0x1802295f8]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 0xfffffff8
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
or eax, 0x2704
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
call qword [0x1802295f0]
lea rax, [0x1802295d0]
mov qword [0x180229618], rax
mov rax, qword [0x180229618]
add rsp, 0x38
ret
Function at 0x18013ef90
Capabilities:
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 0
mov rcx, qword [rsp + 0x40]
call fcn.18013ed80
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x18013f067
mov dword [rsp + 0x20], 0
jmp 0x18013f004
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x18013f067
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18013f065
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.18013eb60
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18013effa
add rsp, 0x30
pop rdi
ret

Function at 0x18013f080
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x18013f124
mov dword [rsp + 0x20], 0
jmp 0x18013f0bd
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x18013f10d
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18013f10b
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18013f0b3
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x180229630]
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x30
pop rdi
ret
Function at 0x18013f130
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x80]
mov eax, dword [rsp + 0x80]
imul rax, rax, 0x38
mov rcx, qword [0x180229c80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], 5
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18013f1b4
mov rax, qword [rsp + 0x50]
sub rax, 5
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18013f1dd
mov eax, 0xa
jmp 0x18013f317
cmp dword [rsp + 0x88], 0
je 0x18013f24b
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov byte [rax], 0xe9
mov rax, qword [rsp + 0x50]
add rax, 5
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 1], eax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18013f249
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov byte [rax], 0xeb
mov rax, qword [rsp + 0x60]
mov byte [rax + 1], 0xf9
jmp 0x18013f297
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18013f27b
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 7
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140D.dll_memcpy
jmp 0x18013f297
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 5
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140D.dll_memcpy
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 1
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfd
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 2
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfb
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180196110]
call fcn.180141c60
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x14001bc40
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.14001fcf0
sub rsp, rax
mov rax, qword [0x14005bb00]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov edi, 0x28
mov word [rsp + 0x30], ax
test dl, dl
je 0x14001bd02
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001bcad
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14001bca0
cmp rcx, 1
jb 0x14001bd5a
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14001bcd0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14002e44c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14001bc90
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14001bd33
lea rcx, [rsp + 0x80]
call fcn.140031160
jmp 0x14001bd35
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14001fa20
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14002e1f8
int3
Function at 0x14001f5b0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14005bb00]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
mov edi, 0x28
test dl, dl
je 0x14001f655
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001f60d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14001f600
cmp rcx, 1
jb 0x14001f686
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14001f623
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14002e44c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14001f5f0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001fa20
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14002e1f8
int3

Function at 0x14001f8b0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14005bb00]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x30], ax
mov edi, 0x28
test dl, dl
je 0x14001f955
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001f90d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14001f900
cmp rcx, 1
jb 0x14001f987
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14001f923
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14002e44c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14001f8f0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001fa20
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14002e1f8
int3

Function at 0x140020488
Capabilities:
Parse pe header

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