joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18011fc00
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, [0x180235877]
call fcn.18013e710
movzx eax, byte [0x18022396c]
test eax, eax
jne 0x18011fc5e
mov rax, qword [rbp + 0x1a0]
movsxd rax, dword [rax]
lea rcx, [0x18021ad40]
mov rdx, qword [rbp + 0x1a8]
mov rcx, qword [rcx + rax*8]
call fcn.1800e31f0
movzx eax, al
test eax, eax
je 0x18011fc5e
mov byte [0x18022396c], 1
movzx eax, byte [0x18022396c]
test eax, eax
je 0x18011fd0f
mov rdx, qword [rbp + 0x1a8]
lea rcx, str.Tus_Ata
call fcn.1800e31f0
mov dword [rbp + 0x164], 1
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x148]
call fcn.1801157b0
mov rcx, rax
call fcn.180118120
lea rax, [0x18018c990]
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 0x18011fcd4
mov rax, qword [rbp + 0x28]
add rax, 4
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x48]
cmp qword [rbp + 0x28], rax
je 0x18011fd0f
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 0x18011fd0d
mov rax, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x68]
mov ecx, dword [rcx]
mov dword [rax], ecx
mov byte [0x18022396c], 0
jmp 0x18011fcc8
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret

Function at 0x180120670
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, [0x180235877]
call fcn.18013e710
movzx eax, byte [0x18022396e]
test eax, eax
jne 0x1801206ce
mov rax, qword [rbp + 0x1a0]
movsxd rax, dword [rax]
lea rcx, [0x18021ad40]
mov rdx, qword [rbp + 0x1a8]
mov rcx, qword [rcx + rax*8]
call fcn.1800e31f0
movzx eax, al
test eax, eax
je 0x1801206ce
mov byte [0x18022396e], 1
movzx eax, byte [0x18022396e]
test eax, eax
je 0x18012077f
mov rdx, qword [rbp + 0x1a8]
lea rcx, str.Tus_Ata
call fcn.1800e31f0
mov dword [rbp + 0x164], 1
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x148]
call fcn.1801157b0
mov rcx, rax
call fcn.180118120
lea rax, [0x18018c990]
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 0x180120744
mov rax, qword [rbp + 0x28]
add rax, 4
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x48]
cmp qword [rbp + 0x28], rax
je 0x18012077f
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 0x18012077d
mov rax, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x68]
mov ecx, dword [rcx]
mov dword [rax], ecx
mov byte [0x18022396e], 0
jmp 0x180120738
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x180123ff0
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, [0x180235877]
call fcn.18013e710
movzx eax, byte [0x18022399d]
test eax, eax
jne 0x18012404e
mov rax, qword [rbp + 0x160]
movsxd rax, dword [rax]
lea rcx, [0x18021ad40]
mov rdx, qword [rbp + 0x168]
mov rcx, qword [rcx + rax*8]
call fcn.1800e31f0
movzx eax, al
test eax, eax
je 0x18012404e
mov byte [0x18022399d], 1
movzx eax, byte [0x18022399d]
test eax, eax
je 0x1801240e8
mov rdx, qword [rbp + 0x168]
lea rcx, str.Tus_Ata
call fcn.1800e31f0
movzx eax, al
test eax, eax
je 0x18012407e
mov byte [0x18022399d], 0
lea rax, [0x18018c990]
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 0x1801240ad
mov rax, qword [rbp + 0x28]
add rax, 4
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x48]
cmp qword [rbp + 0x28], rax
je 0x1801240e8
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 0x1801240e6
mov rax, qword [rbp + 0x160]
mov rcx, qword [rbp + 0x68]
mov ecx, dword [rcx]
mov dword [rax], ecx
mov byte [0x18022399d], 0
jmp 0x1801240a1
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x180124100
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, [0x180235877]
call fcn.18013e710
movzx eax, byte [0x18022396d]
test eax, eax
jne 0x18012415e
mov rax, qword [rbp + 0x1a0]
movsxd rax, dword [rax]
lea rcx, [0x18021ad40]
mov rdx, qword [rbp + 0x1a8]
mov rcx, qword [rcx + rax*8]
call fcn.1800e31f0
movzx eax, al
test eax, eax
je 0x18012415e
mov byte [0x18022396d], 1
movzx eax, byte [0x18022396d]
test eax, eax
je 0x18012420f
mov rdx, qword [rbp + 0x1a8]
lea rcx, str.Tus_Ata
call fcn.1800e31f0
mov dword [rbp + 0x164], 1
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x148]
call fcn.1801157b0
mov rcx, rax
call fcn.180118120
lea rax, [0x18018c990]
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 0x1801241d4
mov rax, qword [rbp + 0x28]
add rax, 4
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x48]
cmp qword [rbp + 0x28], rax
je 0x18012420f
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 0x18012420d
mov rax, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x68]
mov ecx, dword [rcx]
mov dword [rax], ecx
mov byte [0x18022396d], 0
jmp 0x1801241c8
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x1801250c0
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, [0x180235877]
call fcn.18013e710
movzx eax, byte [0x180223998]
test eax, eax
jne 0x18012511e
mov rax, qword [rbp + 0x1a0]
movsxd rax, dword [rax]
lea rcx, [0x18021ad40]
mov rdx, qword [rbp + 0x1a8]
mov rcx, qword [rcx + rax*8]
call fcn.1800e31f0
movzx eax, al
test eax, eax
je 0x18012511e
mov byte [0x180223998], 1
movzx eax, byte [0x180223998]
test eax, eax
je 0x1801251cf
mov rdx, qword [rbp + 0x1a8]
lea rcx, str.Tus_Ata
call fcn.1800e31f0
mov dword [rbp + 0x164], 1
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x148]
call fcn.1801157b0
mov rcx, rax
call fcn.180118120
lea rax, [0x18018c990]
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 0x180125194
mov rax, qword [rbp + 0x28]
add rax, 4
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x48]
cmp qword [rbp + 0x28], rax
je 0x1801251cf
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 0x1801251cd
mov rax, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x68]
mov ecx, dword [rcx]
mov dword [rax], ecx
mov byte [0x180223998], 0
jmp 0x180125188
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret

Function at 0x180125a00
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, [0x180235877]
call fcn.18013e710
movzx eax, byte [0x180223999]
test eax, eax
jne 0x180125a5e
mov rax, qword [rbp + 0x1a0]
movsxd rax, dword [rax]
lea rcx, [0x18021ad40]
mov rdx, qword [rbp + 0x1a8]
mov rcx, qword [rcx + rax*8]
call fcn.1800e31f0
movzx eax, al
test eax, eax
je 0x180125a5e
mov byte [0x180223999], 1
movzx eax, byte [0x180223999]
test eax, eax
je 0x180125b0f
mov rdx, qword [rbp + 0x1a8]
lea rcx, str.Tus_Ata
call fcn.1800e31f0
mov dword [rbp + 0x164], 1
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x148]
call fcn.1801157b0
mov rcx, rax
call fcn.180118120
lea rax, [0x18018c990]
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 0x180125ad4
mov rax, qword [rbp + 0x28]
add rax, 4
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x48]
cmp qword [rbp + 0x28], rax
je 0x180125b0f
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 0x180125b0d
mov rax, qword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x68]
mov ecx, dword [rcx]
mov dword [rax], ecx
mov byte [0x180223999], 0
jmp 0x180125ac8
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x1801316d0
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 [0x18021c400]
xor rax, rbp
mov qword [rbp + 0x678], rax
lea rcx, [0x180236924]
call fcn.18013e710
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
mov eax, dword [rbp + 0x424]
xor edx, edx
mov ecx, 8
div rcx
mov dword [0x180225480], eax
lea rcx, [rbp - 0x30]
lea rdx, [0x1801919a0]
call fcn.18013e4e0
mov rcx, qword [rbp + 0x678]
xor rcx, rbp
call fcn.18013e960
lea rsp, [rbp + 0x688]
pop rdi
pop rbp
ret
Function at 0x1801319e0
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 [0x18021c400]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x180236922]
call fcn.18013e710
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x180131a46
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x180131a4d
mov al, 1
jmp 0x180131bbd
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.180010820
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.180010820
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.180010850
movzx eax, al
test eax, eax
je 0x180131ab0
xor al, al
jmp 0x180131bbd
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 0x180131b23
cmp dword [rbp + 0x160], 1
je 0x180131b2e
cmp dword [rbp + 0x160], 3
je 0x180131bac
jmp 0x180131bbb
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 0x180131b7e
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 0x180131b7e
xor al, al
jmp 0x180131bbd
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x180131b99
mov dword [rbp + 0x154], 1
jmp 0x180131ba3
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x180131bbd
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x180131bbd
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x180192340]
call fcn.18013e4e0
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.18013e960
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x180134a00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x180236922]
call fcn.18013e710
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x180134a57
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x180134b63
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x180134afc
cmp qword [rbp + 0x28], 0
jle 0x180134afc
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x180134a9c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.18000ea40
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x180134b52
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x180134b52
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x180138ab0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
cmp dword [0x180226630], 0
je 0x180138ac4
xor eax, eax
jmp 0x180138d2d
cmp qword [0x180226628], 0
je 0x180138ada
mov rax, qword [0x180226628]
jmp 0x180138d2d
mov r8d, 0x48
xor edx, edx
lea rcx, [0x1802265e0]
call sub.VCRUNTIME140D.dll_memset
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x1802265e0], rax
xor r8d, r8d
xor edx, edx
lea rcx, [0x180192cf8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x1802265e8], rax
cmp qword [0x1802265e8], 0
jne 0x180138b93
mov dword [0x180226630], 1
cmp qword [0x1802265e8], 0
je 0x180138b3f
mov rcx, qword [0x1802265e8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1802265f0], 0
mov qword [0x1802265f8], 0
mov qword [0x180226600], 0
mov qword [0x180226608], 0
mov qword [0x180226610], 0
mov qword [0x180226618], 0
mov qword [0x180226620], 0
xor eax, eax
jmp 0x180138d2d
lea rdx, str.ImagehlpApiVersionEx
mov rcx, qword [0x1802265e8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802265f0], rax
lea rdx, str.SymInitialize
mov rcx, qword [0x1802265e8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802265f8], rax
lea rdx, str.SymSetOptions
mov rcx, qword [0x1802265e8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180226600], rax
lea rdx, str.SymGetOptions
mov rcx, qword [0x1802265e8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180226608], rax
lea rdx, str.SymLoadModule64
mov rcx, qword [0x1802265e8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180226610], rax
lea rdx, str.SymGetModuleInfo64
mov rcx, qword [0x1802265e8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180226618], rax
lea rdx, str.SymFromName
mov rcx, qword [0x1802265e8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180226620], 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 [0x1802265f0], 0
je 0x180138c9e
cmp qword [0x1802265f8], 0
je 0x180138c9e
cmp qword [0x180226610], 0
je 0x180138c9e
cmp qword [0x180226618], 0
je 0x180138c9e
cmp qword [0x180226620], 0
jne 0x180138ca3
jmp 0x180138b1e
lea rcx, [rsp + 0x28]
call qword [0x1802265f0]
movzx eax, word [rsp + 0x28]
cmp eax, 0xc
jge 0x180138cbd
jmp 0x180138b1e
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x1802265e0]
call qword [0x1802265f8]
test eax, eax
jne 0x180138cd8
jmp 0x180138b1e
cmp qword [0x180226608], 0
je 0x180138d18
cmp qword [0x180226600], 0
je 0x180138d18
call qword [0x180226608]
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 [0x180226600]
lea rax, [0x1802265e0]
mov qword [0x180226628], rax
mov rax, qword [0x180226628]
add rsp, 0x38
ret
Function at 0x1801398b0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140D.dll_memset
jmp 0x1801398f8
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x180139918
jmp 0x1801399b5
cmp dword [rsp + 0x68], 0x1000
jne 0x18013993d
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x18013993d
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x18013993f
jmp 0x1801398e3
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x180139975
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x180139975
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x18013997a
jmp 0x1801398e3
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x1801398e3
mov rax, qword [rsp + 0x20]
jmp 0x1801399b7
xor eax, eax
add rsp, 0x88
ret

Function at 0x180139f70
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140D.dll_memset
nop
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x180139fbc
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18013a08a
cmp dword [rsp + 0x60], 0x1000
jne 0x180139fe1
mov eax, dword [rsp + 0x64]
and eax, 0xff
cmp eax, 1
je 0x180139fe1
mov eax, dword [rsp + 0x64]
and eax, 0x100
test eax, eax
je 0x180139ff3
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18013a08a
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18013a01b
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18013a08a
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x18013a050
mov ecx, 0xbf
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18013a08a
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x18013a06c
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18013a08a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x28]
jmp 0x18013a08a
add rsp, 0x78
ret
Function at 0x18013b820
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.18013b610
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x18013b8f7
mov dword [rsp + 0x20], 0
jmp 0x18013b894
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 0x18013b8f7
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 0x18013b8f5
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.18013b3f0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18013b88a
add rsp, 0x30
pop rdi
ret

Function at 0x18013b910
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 0x18013b9b4
mov dword [rsp + 0x20], 0
jmp 0x18013b94d
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 0x18013b99d
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 0x18013b99b
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 0x18013b943
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x180226640]
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x30
pop rdi
ret