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

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4cbf62
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f0108]
test eax, eax
je 0x2fc4cbffa
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f0110]
mov qword [rbp - 8], rax
jmp 0x2fc4cbfde
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4cbfd2
cmp qword [rbp - 0x10], 0
je 0x2fc4cbfd2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4cbf98
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cbffb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cc100
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4cc128
mov eax, 0
jmp 0x2fc4cc176
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4cc151
mov eax, 0
jmp 0x2fc4cc176
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cc171
mov eax, 0
jmp 0x2fc4cc176
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cc17c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cc1fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cc1f1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cc1f1
mov rax, qword [rbp - 8]
jmp 0x2fc4cc20f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4cc1c4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x415550
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x160
mov qword [rsp + 0x40], 0xfffffffffffffffe
call sub.MFC42u.dll_Ordinal_1463
mov rcx, qword [rax + 8]
call fcn.00402eb0
test eax, eax
jne 0x41565e
lea rcx, [rsp + 0x20]
call fcn.00415450
nop
mov rcx, qword [rsp + 0x28]
test rcx, rcx
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
xor edx, edx
call qword [sym.imp.msvcrt.dll__access]
cmp eax, 0xffffffff
jne 0x4155b0
lea rcx, [rsp + 0x20]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
jmp 0x41565e
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.004094c0
nop
xor eax, eax
mov byte [rsp + 0x170], al
mov rdx, qword [rsp + 0x28]
test rdx, rdx
cmove rdx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea r8, [rsp + 0x170]
lea rcx, [rsp + 0x48]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.00409650
mov rcx, rax
xor edx, edx
call fcn.00409670
mov ebx, eax
lea rcx, [rsp + 0x48]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
test ebx, ebx
je 0x41562b
mov rcx, qword [rsp + 0x28]
test rcx, rcx
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
lea rcx, [rsp + 0x150]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x130]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_COleVariant::operator
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
add rsp, 0x160
pop rbx
ret
Function at 0x418800
Capabilities:
Find taskbar

Disassembly:
mov rax, rsp
sub rsp, 0xc8
cmp byte [rcx + 0x18], 0
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rbp, r9
mov rsi, rdx
mov rdi, rcx
je 0x41882d
mov rax, rcx
jmp 0x4189ca
mov rdx, r8
add rcx, 0x28
mov qword [rsp + 0xd0], rbx
mov qword [rsp + 0xc0], r12
call sub.MFC42u.dll_AfxDaoGetEngine
lea rcx, str.Shell_TrayWnd
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowW]
lea r8, str.TrayNotifyWnd
xor r9d, r9d
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowExW]
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
xor r12d, r12d
lea rdx, str.tooltips_class32
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], 0x80000000
mov dword [rsp + 0x30], 0x80000000
mov r9d, 0x940000c3
xor r8d, r8d
mov ecx, 0x88
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.USER32.dll_CreateWindowExW]
lea r9d, [r12 + 0x64]
xor r8d, r8d
mov edx, 0x418
mov rcx, rax
mov qword [rdi + 0x20], rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rbp]
mov rcx, qword [rdi + 0x20]
lea r9, [rsp + 0x70]
xor r8d, r8d
mov edx, 0x432
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x70], Ordinal_79
mov dword [rsp + 0x74], 0x1030
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x80], r12
mov dword [rsp + 0x88], r12d
mov dword [rsp + 0x8c], r12d
mov dword [rsp + 0x90], r12d
mov dword [rsp + 0x94], r12d
call qword [sym.imp.USER32.dll_SendMessageW]
mov r11d, dword [rsp + 0x68]
mov eax, dword [rsp + 0x60]
xor r8d, r8d
add eax, r11d
cdq
sub eax, edx
mov edx, 0x412
sar eax, 1
movzx ecx, ax
movzx eax, word [rsp + 0x64]
shl eax, 0x10
or ecx, eax
movsxd r9, ecx
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9, qword [rdi + 0x28]
mov rcx, qword [rdi + 0x20]
lea r8d, [r12 + 1]
mov edx, 0x421
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0x20]
lea r9, [rsp + 0x70]
lea r8d, [r12 + 1]
mov edx, 0x411
call qword [sym.imp.USER32.dll_SendMessageW]
mov r12, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xd0]
mov byte [rdi + 0x18], 1
mov rax, rdi
mov rdi, qword [rsp + 0xe8]
mov rsi, qword [rsp + 0xe0]
mov rbp, qword [rsp + 0xd8]
add rsp, 0xc8
ret
Function at 0x41c870
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x30], rdi
mov rdi, rdx
mov rsi, rcx
mov dword [rsp + 0x24], 0
xor eax, eax
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::allocator_unsigned_short_int__const____ptr64____ptr64]
mov dword [rsp + 0x24], 1
mov edx, 0x400
mov rcx, rsi
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::resize_unsigned_long_long_unsigned___int64_____ptr64]
mov rbx, qword [rsi + 0x10]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.msvcp60.dll_public:_unsigned_short_int____ptr64___cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rdx, rax
mov r8d, ebx
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x41c8f9
movsxd rdx, eax
mov rcx, rsi
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::resize_unsigned_long_long_unsigned___int64_____ptr64]
mov rax, rsi
jmp 0x41c90c
lea rdx, [0x0069a868]
mov rcx, rsi
call qword [sym.imp.msvcp60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______ptr64___cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_unsigned_short_int_const____ptr64____ptr64]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
ret
Function at 0x41f780
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x20], 0
mov edx, reloc.WLDAP32.dll_Ordinal_35
lea rcx, [rsp + 0x30]
call fcn.0050a380
nop
cmp qword [rsp + 0x40], 0
jne 0x41f83d
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_char____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rdx, rax
xor r8d, r8d
lea rcx, str.appdata
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x41f82f
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_char____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rdx, rax
mov r8d, dword [rsp + 0x40]
lea rcx, str.userprofile
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x41f82f
xor edx, edx
mov rcx, rbx
call fcn.00509660
nop
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rax, rbx
jmp 0x41f864
movsxd rdx, eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_long_long_unsigned___int64_____ptr64]
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.0050a290
nop
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rax, rbx
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x58
ret

Function at 0x427630
Capabilities:
Encode data using xor

Disassembly:
mov r9, rcx
movzx ecx, byte [rcx]
xor eax, eax
test cl, cl
je 0x427662
lea r10, [0x0069aea0]
movzx edx, cl
lea ecx, [rax*8]
inc r9
movzx r8d, byte [rdx + r10]
xor r8d, ecx
mov cl, byte [r9]
xor eax, r8d
test cl, cl
jne 0x427643
ret 0
Function at 0x427900
Capabilities:
Encode data using xor

Disassembly:
mov r11, qword [rcx + 0x10]
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
test r11, r11
mov rbx, rdx
mov r10, rcx
lea rdi, [0x0069aea0]
je 0x427966
movzx r8d, byte [rdx]
xor eax, eax
mov r9, rdx
test r8b, r8b
je 0x42794f
nop
movzx ecx, r8b
mov r8b, byte [r9 + 1]
inc r9
movzx edx, byte [rcx + rdi]
lea ecx, [rax*8]
xor edx, ecx
xor eax, edx
test r8b, r8b
jne 0x427930
xor edx, edx
div dword [r10]
mov ecx, edx
shl rcx, 4
add rcx, r11
mov r9, qword [rcx + 8]
mov r10d, dword [rcx]
jmp 0x42796e
mov r9, qword [rcx + 8]
mov r10d, dword [rcx + 4]
test r10d, r10d
je 0x4279d8
nop
nop
nop
nop
mov rdx, qword [r9 + 0x18]
dec r10d
mov r8, rbx
movzx ecx, byte [rdx]
test cl, cl
je 0x4279bd
nop
nop
nop
nop
movzx eax, byte [r8]
movzx ecx, cl
movzx eax, byte [rax + rdi]
cmp byte [rcx + rdi], al
jne 0x4279bd
mov cl, byte [rdx + 1]
inc rdx
inc r8
test cl, cl
jne 0x4279a0
movzx eax, byte [r8]
movzx ecx, byte [rax + rdi]
movzx eax, byte [rdx]
movzx eax, byte [rax + rdi]
cmp eax, ecx
je 0x4279e5
test r10d, r10d
mov r9, qword [r9]
jne 0x427980
xor eax, eax
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
ret
mov rax, qword [r9 + 0x10]
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
ret
Function at 0x432480
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov ebp, dword [rcx + 0x28]
mov qword [rsp + 0x20], rsi
xor r10d, r10d
xor r11d, r11d
test ebp, ebp
mov qword [rsp + 0x28], rdi
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
jle 0x432636
mov qword [rsp], r12
lea r12, [0x0069aea0]
nop
cmp r11d, 2
jge 0x4324cf
mov r9d, r11d
xor r9d, 1
jmp 0x4324d2
mov r9d, r11d
test rdi, rdi
je 0x432528
mov rax, qword [rsi + 0x20]
movsxd rcx, r9d
mov rdx, rdi
shl rcx, 5
mov r8, qword [rcx + rax]
movzx eax, byte [rdi]
test al, al
je 0x43250f
movzx ecx, al
movzx eax, byte [r8]
movzx eax, byte [rax + r12]
cmp byte [rcx + r12], al
jne 0x43250f
mov al, byte [rdx + 1]
inc rdx
inc r8
test al, al
jne 0x4324f0
movzx eax, byte [r8]
movzx ecx, byte [rax + r12]
movzx eax, byte [rdx]
movzx eax, byte [rax + r12]
cmp eax, ecx
jne 0x43260a
mov rax, qword [rsi + 0x20]
movsxd rcx, r9d
shl rcx, 5
mov r8, qword [rcx + rax + 0x18]
mov r10, qword [r8 + 0x18]
test r10, r10
je 0x432587
movzx eax, byte [rbx]
xor r9d, r9d
mov rdx, rbx
test al, al
je 0x43256e
nop
movzx eax, al
inc rdx
movzx ecx, byte [rax + r12]
lea eax, [r9*8]
xor ecx, eax
mov al, byte [rdx]
xor r9d, ecx
test al, al
jne 0x432550
xor edx, edx
mov eax, r9d
div dword [r8 + 8]
mov ecx, edx
add rcx, rcx
mov r9, qword [r10 + rcx*8 + 8]
mov r10d, dword [r10 + rcx*8]
jmp 0x43258f
mov r9, qword [r8 + 0x10]
mov r10d, dword [r8 + 0xc]
test r10d, r10d
je 0x4325fc
nop
nop
nop
mov rdx, qword [r9 + 0x18]
dec r10d
mov r8, rbx
movzx eax, byte [rdx]
test al, al
je 0x4325df
nop
nop
nop
nop
movzx ecx, al
movzx eax, byte [r8]
movzx eax, byte [rax + r12]
cmp byte [rcx + r12], al
jne 0x4325df
mov al, byte [rdx + 1]
inc rdx
inc r8
test al, al
jne 0x4325c0
movzx eax, byte [r8]
movzx ecx, byte [rax + r12]
movzx eax, byte [rdx]
movzx eax, byte [rax + r12]
sub eax, ecx
je 0x432601
test r10d, r10d
mov r9, qword [r9]
jne 0x4325a0
xor r10d, r10d
jmp 0x43260a
mov r10, qword [r9 + 0x10]
test r10, r10
jne 0x432616
inc r11d
cmp r11d, ebp
jl 0x4324c0
mov r12, qword [rsp]
mov rax, r10
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
add rsp, 8
ret
mov rax, r10
jmp 0x43261d
Function at 0x432640
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov ebp, dword [rcx + 0x28]
xor r9d, r9d
xor r11d, r11d
test ebp, ebp
mov qword [rsp + 0x28], rdi
mov rbx, rdx
mov rdi, r8
jle 0x4327e6
mov qword [rsp + 0x20], rsi
mov rsi, qword [rcx + 0x20]
mov qword [rsp], r12
lea r12, [0x0069aea0]
nop
cmp r11d, 2
jge 0x43268e
mov eax, r11d
xor eax, 1
jmp 0x432691
mov eax, r11d
movsxd r8, eax
shl r8, 5
test rdi, rdi
mov r10, qword [r8 + rsi + 0x18]
je 0x4326e8
movzx ecx, byte [rdi]
mov r8, qword [r8 + rsi]
mov rdx, rdi
test cl, cl
je 0x4326cf
movzx eax, byte [r8]
movzx ecx, cl
movzx eax, byte [rax + r12]
cmp byte [rcx + r12], al
jne 0x4326cf
mov cl, byte [rdx + 1]
inc rdx
inc r8
test cl, cl
jne 0x4326b0
movzx eax, byte [r8]
movzx ecx, byte [rax + r12]
movzx eax, byte [rdx]
movzx eax, byte [rax + r12]
sub eax, ecx
jne 0x4327ba
mov r9, qword [r10 + 0x30]
test r9, r9
je 0x432739
movzx eax, byte [rbx]
xor r8d, r8d
mov rdx, rbx
test al, al
je 0x43271e
nop
movzx eax, al
inc rdx
movzx ecx, byte [rax + r12]
lea eax, [r8*8]
xor ecx, eax
mov al, byte [rdx]
xor r8d, ecx
test al, al
jne 0x432700
xor edx, edx
mov eax, r8d
div dword [r10 + 0x20]
mov ecx, edx
shl rcx, 4
add rcx, r9
mov r9, qword [rcx + 8]
mov r10d, dword [rcx]
jmp 0x432741
mov r9, qword [r10 + 0x28]
mov r10d, dword [r10 + 0x24]
test r10d, r10d
je 0x4327ac
nop
nop
nop
mov rdx, qword [r9 + 0x18]
dec r10d
mov r8, rbx
movzx ecx, byte [rdx]
test cl, cl
je 0x43278f
nop
nop
nop
nop
movzx eax, byte [r8]
movzx ecx, cl
movzx eax, byte [rax + r12]
cmp byte [rcx + r12], al
jne 0x43278f
mov cl, byte [rdx + 1]
inc rdx
inc r8
test cl, cl
jne 0x432770
movzx eax, byte [r8]
movzx ecx, byte [rax + r12]
movzx eax, byte [rdx]
movzx eax, byte [rax + r12]
cmp eax, ecx
je 0x4327b1
test r10d, r10d
mov r9, qword [r9]
jne 0x432750
xor r9d, r9d
jmp 0x4327ba
mov r9, qword [r9 + 0x10]
test r9, r9
jne 0x4327c6
inc r11d
cmp r11d, ebp
jl 0x432680
mov rsi, qword [rsp + 0x20]
mov r12, qword [rsp]
mov rax, r9
mov rdi, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
add rsp, 8
ret
mov rdi, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
mov rax, r9
add rsp, 8
ret
Function at 0x43bfe0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x58], rdi
mov rbx, rcx
mov eax, edx
mov edi, edx
mov ecx, 0x40
shl rax, 4
cmp rax, 0x400
cmova edi, ecx
cmp edi, dword [rbx]
jne 0x43c01c
xor eax, eax
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
mov rax, qword [0x007729b8]
test rax, rax
je 0x43c02a
call rax
mov qword [rsp + 0x48], rbp
xor ebp, ebp
shl rdi, 4
mov qword [rsp + 0x50], rsi
je 0x43c091
cmp rdi, 0x7fffff00
jae 0x43c091
cmp dword [reloc.WS2_32.dll_accept], ebp
je 0x43c084
mov rcx, qword [0x00772b88]
test rcx, rcx
je 0x43c05f
call qword [0x0072d0f8]
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.0043a720
mov rcx, qword [0x00772b88]
test rcx, rcx
je 0x43c096
call qword [0x0072d108]
mov rsi, qword [rsp + 0x20]
jmp 0x43c09b
mov ecx, edi
call qword [0x0072d098]
mov rsi, rax
jmp 0x43c09b
mov rsi, rbp
jmp 0x43c09b
mov rsi, qword [rsp + 0x20]
mov rax, qword [0x007729c0]
test rax, rax
je 0x43c0a9
call rax
test rsi, rsi
jne 0x43c0b5
xor eax, eax
jmp 0x43c23f
mov rdi, qword [rbx + 0x10]
test rdi, rdi
je 0x43c14b
cmp dword [reloc.WS2_32.dll_accept], ebp
je 0x43c142
mov rcx, qword [0x00772b88]
test rcx, rcx
je 0x43c0dc
call qword [0x0072d0f8]
mov rcx, rdi
call qword [0x0072d0b0]
mov edx, dword [0x00772960]
mov rcx, rdi
neg eax
add edx, eax
mov eax, dword [0x00772988]
cmp edx, eax
mov dword [0x00772960], edx
cmovg eax, edx
mov edx, dword [0x00772984]
dec edx
mov dword [0x00772988], eax
mov eax, dword [0x007729ac]
cmp edx, eax
mov dword [0x00772984], edx
cmovg eax, edx
mov dword [0x007729ac], eax
call qword [0x0072d0a0]
mov rcx, qword [0x00772b88]
test rcx, rcx
je 0x43c14b
call qword [0x0072d108]
jmp 0x43c14b
mov rcx, rdi
call qword [0x0072d0a0]
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [0x0072d0b0]
xor edx, edx
mov rcx, rsi
movsxd rdi, eax
shr rdi, 4
mov r8d, edi
mov dword [rbx], edi
shl r8, 4
call sub.msvcrt.dll_memset
mov r8, qword [rbx + 8]
mov qword [rbx + 8], rbp
test r8, r8
je 0x43c23a
lea r10, [0x0069aea0]
nop
nop
mov r9, qword [r8 + 0x18]
mov eax, ebp
movzx ecx, byte [r9]
test cl, cl
je 0x43c1bd
nop
movzx ecx, cl
inc r9
movzx edx, byte [rcx + r10]
lea ecx, [rax*8]
xor edx, ecx
mov cl, byte [r9]
xor eax, edx
test cl, cl
jne 0x43c1a0
mov r9, qword [r8]
xor edx, edx
div edi
mov ecx, edx
shl rcx, 4
add rcx, rsi
je 0x43c212
mov eax, dword [rcx]
test eax, eax
je 0x43c1db
mov rdx, qword [rcx + 8]
jmp 0x43c1de
mov rdx, rbp
inc eax
test rdx, rdx
mov qword [rcx + 8], r8
mov dword [rcx], eax
je 0x43c212
mov qword [r8], rdx
mov rax, qword [rdx + 8]
mov qword [r8 + 8], rax
mov rax, qword [rdx + 8]
test rax, rax
je 0x43c208
mov qword [rax], r8
mov qword [rdx + 8], r8
jmp 0x43c22e
mov qword [rbx + 8], r8
mov qword [rdx + 8], r8
jmp 0x43c22e
mov rax, qword [rbx + 8]
mov qword [r8], rax
mov rax, qword [rbx + 8]
test rax, rax
je 0x43c226
mov qword [rax + 8], r8
mov qword [r8 + 8], rbp
mov qword [rbx + 8], r8
test r9, r9
mov r8, r9
jne 0x43c190
mov eax, 1
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret