joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012ff0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x2c0
mov rax, qword [0x14003f4c0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbx, qword [0x1400422d0]
mov r14, rcx
movzx edx, dx
mov r8d, 0xf0
mov rcx, rbx
mov edi, 1
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14001321d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001321d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14001321d
mov qword [rsp + 0x2b8], rsi
mov qword [rsp + 0x2b0], r12
mov qword [rsp + 0x2a8], r13
mov qword [rsp + 0x2a0], r15
mov r13d, 0x403
mov r12d, 0x1234
xor r15d, r15d
mov qword [rsp + 0x2f0], rbp
nop dword [rax]
movzx esi, word [rbx]
cmp r15w, si
je 0x1400131d7
movzx eax, word [rbx + 2]
mov ebp, dword [rbx + 4]
add rbx, 8
cmp r13w, ax
jne 0x14001314b
lea rcx, [rsp + 0x180]
xor edx, edx
mov r8d, 0x108
call fcn.14001c810
lea rax, [rsp + 0x188]
lea rcx, [rsp + 0x180]
mov r8d, 3
mov rdx, rbx
mov qword [rsp + 0x180], rax
call fcn.140014270
mov rax, qword [rsp + 0x180]
mov rcx, qword [r14 + 8]
movzx edx, si
xor r9d, r9d
mov r8d, 0x143
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rcx, qword [rsp + 0x180]
cmp rax, 0xffffffffffffffff
lea rax, [rsp + 0x188]
cmove edi, r15d
cmp rcx, rax
je 0x1400131cc
call fcn.14001b750
jmp 0x1400131cc
cmp r12w, ax
jne 0x1400131cc
lea rax, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov r8d, 3
mov rdx, rbx
mov dword [rsp + 0x140], 1
mov qword [rsp + 0x148], 0xffffffffffffffff
mov qword [rsp + 0x30], rax
call fcn.140014270
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x150], rcx
cmp rcx, rax
je 0x1400131a1
call fcn.14001b750
mov rcx, qword [r14 + 8]
lea rax, [rsp + 0x140]
movzx edx, si
xor r9d, r9d
mov r8d, 0x40b
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp rax, 0xffffffffffffffff
cmove edi, r15d
add rbx, rbp
test edi, edi
jne 0x1400130a0
mov rbp, qword [rsp + 0x2f0]
mov r12, qword [rsp + 0x2b0]
mov rsi, qword [rsp + 0x2b8]
mov r13, qword [rsp + 0x2a8]
mov r15, qword [rsp + 0x2a0]
mov eax, edi
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14001c700
add rsp, 0x2c0
pop r14
pop rdi
pop rbx
ret
mov eax, edi
jmp 0x140013201
Function at 0x140013750
Capabilities:
Get keyboard layout
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x120
mov rax, qword [0x14003f4c0]
xor rax, rsp
mov qword [rsp + 0x110], rax
xor ebx, ebx
lea rdx, [rsp + 0x20]
lea ecx, [rbx + 0x1e]
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
cmp di, ax
jne 0x1400137f4
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, ebx
nop dword [rax + rax]
cmp ax, word [rsp + rcx*8 + 0x20]
jne 0x1400137ac
mov rbx, qword [rsp + rcx*8 + 0x20]
cmp ax, word [rsp + rcx*8 + 0x28]
jne 0x1400137b8
mov rbx, qword [rsp + rcx*8 + 0x28]
cmp ax, word [rsp + rcx*8 + 0x30]
jne 0x1400137c4
mov rbx, qword [rsp + rcx*8 + 0x30]
cmp ax, word [rsp + rcx*8 + 0x38]
jne 0x1400137d0
mov rbx, qword [rsp + rcx*8 + 0x38]
cmp ax, word [rsp + rcx*8 + 0x40]
jne 0x1400137dc
mov rbx, qword [rsp + rcx*8 + 0x40]
cmp ax, word [rsp + rcx*8 + 0x48]
jne 0x1400137e8
mov rbx, qword [rsp + rcx*8 + 0x48]
add rcx, 6
cmp rcx, 0x1e
jl 0x1400137a0
jmp 0x140013849
mov rax, rbx
cmp di, word [rsp + rax*8 + 0x20]
jne 0x140013803
mov rbx, qword [rsp + rax*8 + 0x20]
cmp di, word [rsp + rax*8 + 0x28]
jne 0x14001380f
mov rbx, qword [rsp + rax*8 + 0x28]
cmp di, word [rsp + rax*8 + 0x30]
jne 0x14001381b
mov rbx, qword [rsp + rax*8 + 0x30]
cmp di, word [rsp + rax*8 + 0x38]
jne 0x140013827
mov rbx, qword [rsp + rax*8 + 0x38]
cmp di, word [rsp + rax*8 + 0x40]
jne 0x140013833
mov rbx, qword [rsp + rax*8 + 0x40]
cmp di, word [rsp + rax*8 + 0x48]
jne 0x14001383f
mov rbx, qword [rsp + rax*8 + 0x48]
add rax, 6
cmp rax, 0x1e
jl 0x1400137f7
mov rax, rbx
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14001c700
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rdi
ret
Function at 0x140013bb0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov r11, rsp
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x14003f4c0]
xor rax, rsp
mov qword [rsp + 0x230], rax
or esi, 0xffffffff
mov r14, r8
mov rbp, rdx
test rdx, rdx
je 0x140013cc6
mov qword [r11 + 8], rbx
mov qword [r11 - 0x20], rdi
lea edx, [rsi + 2]
mov rcx, rbp
mov qword [r11 - 0x28], r15
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
xor ebx, ebx
lea rdi, [0x14003dba0]
lea r15, [0x14003dba4]
nop word [rax + rax]
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x208
call fcn.14001c810
movsxd rax, ebx
mov rcx, r14
imul rdx, rax, 0x2c
add rdx, r15
call fcn.14001d394
test eax, eax
je 0x140013cac
mov ecx, dword [rdi]
mov eax, ecx
dec eax
je 0x140013c55
dec eax
je 0x140013c4e
cmp eax, 2
jne 0x140013c5a
lea ecx, [rax + 0xe]
jmp 0x140013c5a
mov ecx, 0x11
jmp 0x140013c5a
mov ecx, 0x12
mov r8, rbp
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov ecx, eax
lea eax, [rbx - 0xf]
shl ecx, 0x10
or ecx, 1
cmp eax, 3
ja 0x140013c79
bts ecx, 0x18
lea rdx, [rsp + 0x20]
mov r8d, 0x104
call qword [sym.imp.USER32.dll_GetKeyNameTextW]
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.14001d394
test eax, eax
je 0x140013cac
inc ebx
add rdi, 0x2c
cmp ebx, 0x42
jl 0x140013c10
jmp 0x140013cae
mov esi, ebx
mov rdi, qword [rsp + 0x248]
mov rbx, qword [rsp + 0x270]
mov r15, qword [rsp + 0x240]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edx, 1
mov rcx, rax
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov eax, esi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14001c700
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret

Function at 0x140018b50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov r12, r9
mov r13, r8
mov rbx, rdx
mov r14, rcx
call fcn.140018950
xor edi, edi
lea r8d, [rdi + 5]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x140018c69
mov r8d, 0xf0
mov rdx, rbx
mov rcx, r14
mov qword [rsp + 0x68], r15
call qword [sym.imp.KERNEL32.dll_FindResourceW]

Function at 0x14001a700
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14003f4c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x14001a744
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001c700
add rsp, 0x40
pop rbx
ret
lea rax, [rsp + 0x30]
lea r8, [0x140019b30]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x14001a785
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x50], rdi
mov rax, rdi
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001c700
add rsp, 0x40
pop rbx
ret
Function at 0x14001a8f0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
cmp byte [0x140042029], 0
mov esi, edx
mov rbx, rcx
je 0x14001a916
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
xor ecx, ecx
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ole32.dll_CoInitialize]
mov edi, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x14001a95c
cmp eax, 0x80010106
jne 0x14001a9bc
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14001a960
mov eax, edi
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov byte [rbx + 0x62], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x40]
mov rcx, rbx
mov rdx, rax
call fcn.140019b80
cmp al, 1
jne 0x14001a9ac
mov edx, esi
mov rcx, rbx
call fcn.14001a0e0
mov edi, eax
test eax, eax
jne 0x14001a99e
mov rcx, rbx
call fcn.14001a2f0
mov rcx, rbx
call fcn.140019f50
mov edi, eax
jmp 0x14001a9b0
js 0x14001a9b0
mov rcx, rbx
call fcn.140019f50
mov edi, eax
jmp 0x14001a9b0
mov edi, dword [rsp + 0x40]
cmp byte [rbx + 0x62], 0
je 0x14001a9bc
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rsi
ret

Function at 0x14001ab00
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
lea r8, str.HKAB32DBA6DDE1
xor ecx, ecx
lea edx, [rbx + 1]
mov esi, r9d
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14001ab51
xor ecx, ecx
call fcn.1400199e0
test al, al
je 0x14001ab51
lea rcx, [0x140042250]
mov edx, esi
call fcn.14001a8f0
mov ebx, eax
test rdi, rdi
je 0x14001ab5f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001df94
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14001ddfc
Function at 0x1400110dc
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001a750
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, [0x140031066]
call fcn.140011816
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001a7a7
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 0x14001a8b3
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 0x14001a84c
cmp qword [rbp + 0x28], 0
jle 0x14001a84c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001a7ec
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.1400117a3
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 0x14001a8a2
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001a8a2
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 0x14001148d
Capabilities:
Terminate process

Disassembly:
jmp 0x14001d230
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400115b9
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001dd60
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001dd80
xor al, al
jmp 0x14001de01
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001dd93
xor al, al
jmp 0x14001de01
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001ddbd
xor al, al
jmp 0x14001de01
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001ddd1
xor al, al
jmp 0x14001de01
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001dde3
xor al, al
jmp 0x14001de01
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001ddff
xor al, al
jmp 0x14001de01
mov al, 1
add rsp, 0x38
ret
Function at 0x1400117fd
Capabilities:
Write file on windows

Disassembly:
jmp 0x140017040
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x14002a040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x140031066]
call fcn.140011816
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x1400170a6
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400170ad
mov al, 1
jmp 0x1400171fd
call fcn.140011249
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.140011249
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.140011681
movzx eax, al
test eax, eax
je 0x1400170fe
xor al, al
jmp 0x1400171fd
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
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 + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x140017163
cmp dword [rbp + 0x154], 1
je 0x14001716e
cmp dword [rbp + 0x154], 3
je 0x1400171ec
jmp 0x1400171fb
mov rax, qword [rbp + 0x190]
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 0x1400171be
mov rax, qword [rbp + 0x190]
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 0x1400171be
xor al, al
jmp 0x1400171fd
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400171d9
mov dword [rbp + 0x154], 1
jmp 0x1400171e3
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x1400171fd
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400171fd
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400255f0]
call fcn.1400116cc
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.1400113e3
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x140001800
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.140002620
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002620
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001870
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140008104]
mov rbx, rcx
test esi, esi
jle 0x1400019a0
mov rax, qword [0x140008108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400018bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001945
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400018a0
mov rcx, rbx
call fcn.1400022c0
mov rdi, rax
test rax, rax
je 0x1400019c2
mov rax, qword [0x140008108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002400
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140008108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400019a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000193e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001950
add dword [0x140008104], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140008108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000193e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001800
nop dword [rax]
xor esi, esi
jmp 0x1400018c8
mov rax, qword [0x140008108]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001800
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001800
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001f30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140008140]
test rbx, rbx
je 0x140001f8c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140001f83
test rsi, rsi
je 0x140001f83
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f68
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400022c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400022e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400022e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400022e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000233d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002334
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400022e0
add rax, 0x28
cmp rax, r9
jne 0x140002320
xor eax, eax
ret

Function at 0x140002340
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043f0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000235f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002368
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000235f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002400
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000241f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002428
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140007f90
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov rdi, rcx
mov r12, r9
mov ecx, 0x208
mov r15d, r8d
mov rbx, rdx
xor r14d, r14d
call fcn.140037e70
xor edx, edx
lea rcx, [rbp + 0x40]
mov r8d, 0x104
mov rsi, rax
call fcn.14003a5c0
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call fcn.14003a5c0
xor r8d, r8d
lea rdx, [0x14009d600]
mov rcx, r12
call fcn.140004d8c
lea rdx, [0x14009d600]
mov rcx, rbx
call fcn.140004f04
lea ecx, [r14 + 1]
test eax, eax
je 0x140008151
test r15d, r15d
je 0x140008034
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
lea ecx, [r14 + 1]
cmove r14d, ecx
lea rax, [rbp + 0x2c0]
mov r8d, ecx
lea rcx, [0x1400a8670]
mov qword [rsp + 0x20], rax
lea r9, [0x1400a68e0]
xor edx, edx
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140008146
mov rcx, qword [rbp + 0x2c0]
lea r8, [rbp + 0x2c8]
and qword [rbp + 0x2c8], 0
lea rdx, [0x1400a7740]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x140008139
xor edx, edx
mov r8d, 0x208
mov rcx, rsi
call fcn.14003a5c0
cmp qword [rbx + 0x18], 0x10
jb 0x1400080a7
mov rcx, qword [rbx]
jmp 0x1400080aa
mov rcx, rbx
mov rdx, rsi
call fcn.140006918
mov rcx, qword [rbp + 0x2c8]
xor r8d, r8d
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
js 0x14000812c
mov rcx, qword [rbp + 0x2c0]
lea r9, [rbp + 0x150]
mov r8d, 0x104
mov dword [rsp + 0x20], 2
lea rdx, [rbp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [rbp + 0x2c0]
lea rdx, [rsp + 0x30]
mov r8d, 0x104
mov rax, qword [rcx]
call qword [rax + 0x50]
cmp byte [rsp + 0x30], 0
jne 0x140008112
xor eax, eax
jmp 0x14000811c
lea rcx, [rsp + 0x30]
call fcn.140045e50
mov r8, rax
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.140004d8c
mov rcx, qword [rbp + 0x2c8]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, qword [rbp + 0x2c0]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
test r14d, r14d
je 0x140008151
call qword [sym.imp.ole32.dll_CoUninitialize]
test rsi, rsi
je 0x140008163
mov edx, 2
mov rcx, rsi
call fcn.140037e68
and qword [rdi + 0x10], 0
mov esi, reloc.WSOCK32.dll_ntohs
mov qword [rdi + 0x18], rsi
mov byte [rdi], 0
cmp byte [rbp + 0x40], 0
jne 0x14000817e
xor eax, eax
jmp 0x140008187
lea rcx, [rbp + 0x40]
call fcn.140045e50
mov r8, rax
lea rdx, [rbp + 0x40]
mov rcx, rdi
call fcn.140004d8c
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400081b1
mov rcx, qword [rbx]
inc rdx
mov r8d, 1
call fcn.140004554
mov qword [rbx + 0x18], rsi
and qword [rbx + 0x10], 0
cmp rsi, 0x10
jb 0x1400081c3
mov rbx, qword [rbx]
lea r11, [rsp + 0x390]
mov byte [rbx], 0
mov rbx, qword [r11 + 0x40]
mov rax, rdi
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret