joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442246c4
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x14]
test edx, edx
jbe 0x44224737
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
sub ecx, edi
mov dword [ebp - 4], ecx
mov dword [ebp + 0x14], edx
inc byte [eax + 0x100]
movzx ecx, byte [eax + 0x100]
lea esi, [ecx + eax]
mov cl, byte [esi]
add byte [eax + 0x101], cl
movzx ecx, byte [eax + 0x101]
mov dl, byte [esi]
add ecx, eax
mov bl, byte [ecx]
mov byte [esi], bl
mov byte [ecx], dl
movzx ecx, byte [eax + 0x101]
movzx edx, byte [eax + 0x100]
mov cl, byte [ecx + eax]
add cl, byte [edx + eax]
mov edx, dword [ebp - 4]
movzx ecx, cl
mov cl, byte [ecx + eax]
xor cl, byte [edx + edi]
mov byte [edi], cl
inc edi
dec dword [ebp + 0x14]
jne 0x442246e3
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44224801
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x442bd0c0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x418], 0
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x414]
push str.duowanyy4.0_
push eax
call dword [sym.imp.MSVCR90.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const__]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.4427cc16
leave
ret

Function at 0x44226103
Capabilities:
Get file size
Read file via mapping

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.442260c5
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x44226133
xor al, al
jmp 0x4422616f
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xc], eax
cmp eax, edi
jne 0x44226146
mov al, 1
jmp 0x4422616f
push edi
push edi
push edi
push 2
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
cmp eax, edi
je 0x4422612f
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 8], eax
setne al
pop edi
pop esi
ret 4
Function at 0x4422623d
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
push esi
push 0x442886f8
call dword [sym.imp.MSVCP90.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
call dword [sym.imp.MSVCR90.dll__wfopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x44226289
mov ecx, dword [esp + 0xc]
push esi
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
mov ecx, dword [esp + 0x10]
push eax
push 1
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::data_void_const]
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
mov al, 1
pop esi
ret
xor al, al
pop esi
ret

Function at 0x4422628d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
call dword [sym.imp.MSVCP90.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x442262c1
xor al, al
jmp 0x442262e9
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x442262e0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
mov dword [eax + 4], ecx
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x442263d3
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x2228]
mov eax, 0x2228
call fcn.4427cde0
push 0xffffffffffffffff
push 0x442812af
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, dword [0x442bd0c0]
xor eax, ebp
mov dword [ebp + 0x2224], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x2230]
xor ebx, ebx
lea ecx, [ebp]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
xor eax, eax
push 0x206
mov word [ebp + 0x201c], ax
xor esi, esi
lea eax, [ebp + 0x201e]
push ebx
inc esi
push eax
mov dword [ebp - 4], esi
call sub.MSVCR90.dll_memset
xor eax, eax
push 0x1ffe
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0x18
lea eax, [ebp + 0x1c]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp + 0x201c]
push eax
push ebx
push 0x4428971c
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x44226497
lea eax, [ebp]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
jmp 0x442264b3
lea eax, [ebp + 0x201c]
push eax
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_unsigned_short_int_const__]
lea eax, [ebp]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea ecx, [ebp]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2224]
xor ecx, ebp
call fcn.4427cc16
add ebp, 0x2228
leave
ret
Function at 0x44227314
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x442bd0c0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x24
mov eax, 0x4428143d
call fcn.4427ccc2
mov esi, dword [ebp + 0x214]
xor ebx, ebx
push 0x208
lea eax, [ebp]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push 0x1a
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const__]
push str.duowanyy4.0_
xor edi, edi
push eax
inc edi
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__]
add esp, 0xc
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.4427cc16
add ebp, 0x20c
leave
ret

Function at 0x4422748e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x442274a4
test al, 0x10
je 0x442274a4
mov al, 1
ret
xor al, al
ret
Function at 0x44228932
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
xor esi, esi
inc esi
push esi
mov ebx, eax
call edi
mov edi, eax
lea eax, [edi - 1]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
and dword [ebp - 0xc], 0
and dword [ebp - 0x10], 0
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2c], eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x38]
lea ecx, [ebx - 1]
mov ebx, dword [sym.imp.USER32.dll_WindowFromPoint]
push esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], esi
call ebx
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call edi
mov dword [ebp - 4], esi
lea esi, [ebp - 0x34]
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
push dword [esi]
call ebx
push eax
call edi
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jne 0x44228a0d
inc dword [ebp - 4]
add esi, 8
cmp dword [ebp - 4], 5
jl 0x442289a8
xor eax, eax
lea ecx, [ebp - 0x14]
push ecx
push eax
push str.Shell_TrayWnd
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_FindWindowW]
push eax
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call ebx
push eax
call edi
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 8]
je 0x44228a0d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 8], eax
setne al
pop edi
pop esi
pop ebx
leave
ret
xor al, al
jmp 0x44228a08

Function at 0x44228b83
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x442bd0c0]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x118
lea eax, [ebp - 0x7c]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
mov ecx, dword [ebp + 0x9c]
sbb al, al
xor ecx, ebp
inc al
call fcn.4427cc16
add ebp, 0xa0
leave
ret
Function at 0x44228c7b
Capabilities:
Create thread
Resume thread

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x44228c8b
xor al, al
pop edi
ret
push esi
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov ecx, edi
mov esi, eax
call dword [sym.imp.MSVCP90.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
push esi
call dword [sym.imp.MSVCR90.dll_wcscpy]
push 0
push 4
push esi
push 0x44228533
push 0
push 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
mov edi, eax
add esp, 0x20
test edi, edi
jne 0x44228cdc
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
pop ecx
xor al, al
jmp 0x44228cec
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop edi
ret
Function at 0x442292d5
Capabilities:
Check http status code
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
sub esp, 0x100
lea ebp, [esp - 4]
mov eax, dword [0x442bd0c0]
xor eax, ebp
mov dword [ebp + 0x100], eax
push 0x20
mov eax, 0x442818bc
call fcn.4427ccc2
mov esi, dword [ebp + 0x10c]
mov eax, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [eax + 4]
mov ebx, 0xff
push ebx
mov dword [ebp - 0x24], eax
lea eax, [ebp + 1]
push 0
push eax
mov dword [ebp - 0x14], esi
mov byte [ebp], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 4
pop edi
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x20000013
push esi
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x4422936e
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.4427cc16
add ebp, 0x104
leave
ret 4
cmp dword [ebp - 0x20], 0xc8
je 0x44229380
cmp dword [ebp - 0x20], 0xce
jne 0x44229347
mov dword [ebp - 0x10], edi
xor edi, edi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x20000005
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x4422939f
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], edi
cmp byte [eax + 0x18], 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
jne 0x442293be
push 0x1d
jmp 0x442293c0
push 0x16
push dword [ebp - 0x14]
call esi
mov ecx, dword [ebp - 0x28]
lea eax, [ebp]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call sym.dwutility.dll_private:_bool___thiscall_DwUtility::http::CWinInetHttpBase::OnHttpReqReceiveHeader_int__int__unsigned_short_int_const__
test al, al
je 0x44229347
mov eax, 0x2000
mov dword [ebp - 0x1c], edi
cmp dword [ebp - 0x18], eax
ja 0x442293f3
mov esi, 0x400
jmp 0x44229401
mov ecx, 0x10000
cmp ecx, dword [ebp - 0x18]
sbb esi, esi
and esi, eax
add esi, eax
push esi
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
pop ecx
mov dword [ebp - 0x24], edi
and dword [ebp - 4], 0
test edi, edi
jne 0x44229421
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x44229347
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x4422943f
cmp dword [ebp - 0x1c], 0
je 0x44229452
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
push edi
call sym.dwutility.dll_private:_bool___thiscall_DwUtility::http::CWinInetHttpBase::OnHttpReqReceive_void_const___int_
test al, al
je 0x4422944e
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x44229429
xor bl, bl
jmp 0x44229454
mov bl, 1
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
pop ecx
mov al, bl
jmp 0x44229349
Function at 0x44229524
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 4]
test al, al
jne 0x44229549
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, dword [esi + 0x10]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp + 8], ebx
push ebx
jmp 0x442295c0
cmp dword [ebp - 8], 0
je 0x44229597
cmp ebx, 0xffffffff
je 0x442295b9
call edi
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, ebx
jb 0x442295af
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [esi + 0x10]
cmp ebx, eax
je 0x44229587
mov ebx, eax
mov dword [ebp + 8], eax
call edi
mov dword [ebp - 4], eax
jmp 0x442295b9
cmp byte [esi + 0xc], 0
jne 0x4422953a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
test al, al
jne 0x44229591
cmp ebx, dword [esi + 0x10]
je 0x44229567
mov ebx, dword [esi + 0x10]
mov dword [ebp + 8], ebx
jmp 0x4422958a
mov ecx, ebx
sub ecx, eax
add ecx, dword [ebp - 4]
mov dword [ebp + 8], ecx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov ecx, esi
call sym.dwutility.dll_public:_bool___thiscall_DwUtility::thread::CWinThread::WaitFor_unsigned_long_int__unsigned_long_int__
test al, al
jne 0x44229561
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x4422a119
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, dword [esp + 4]
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edi + edx*4]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edi + edx*4]
pop esi
mov dword [ecx + 8], eax
mov eax, dword [esp + 4]
ret
Function at 0x4422a194
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x442bd0c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ebx
jge 0x4422a1c7
xor eax, eax
jmp 0x4422a2cb
inc dword [0x442bd41c]
cmp dword [0x442bd41c], 1
jne 0x4422a1ec
push 0
call dword [sym.imp.MSVCR90.dll__time64]
xor eax, 0xbb40e64e
push eax
call dword [sym.imp.MSVCR90.dll_srand]
pop ecx
pop ecx
push edi
mov ecx, ebx
mov eax, esi
call fcn.4422a15c
add esp, 4
xor esi, esi
call dword [sym.imp.MSVCR90.dll_rand]
mov ebx, eax
mov eax, dword [ebp - 0x14]
sar ebx, 7
and ebx, 0xff
call fcn.4422a0fc
mov ecx, dword [ebp - 0x14]
push ebx
mov dword [ebp - 0x18], eax
call fcn.4422a119
xor bl, byte [ebp - 0x18]
add esp, 4
mov byte [ebp + esi - 0x10], bl
inc esi
cmp esi, 0xa
jl 0x4422a1fb
mov eax, dword [ebp - 0x20]
push edi
call fcn.4422a15c
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
add esp, 4
xor esi, esi
sub eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
call fcn.4422a0fc
mov bl, byte [ebp + esi - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
movzx eax, bl
push eax
call fcn.4422a119
xor bl, byte [ebp - 0x18]
mov eax, dword [ebp - 0x20]
add eax, esi
add esp, 4
inc esi
cmp esi, 0xa
mov byte [ebp + eax - 0x10], bl
jl 0x4422a249
mov eax, ecx
call fcn.4422a0fc
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
shr ebx, 0x10
mov eax, ebx
and eax, 0xff
push eax
call fcn.4422a119
xor bl, byte [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi], bl
mov eax, ecx
inc esi
call fcn.4422a0fc
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
shr ebx, 0x18
push ebx
mov dword [ebp - 0x18], eax
call fcn.4422a119
mov eax, dword [ebp - 0x1c]
add esp, 8
xor bl, byte [ebp - 0x18]
mov byte [eax + esi], bl
lea eax, [esi + 1]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4427cc16
leave
ret
Function at 0x4422b27d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor edi, edi
mov dword [ebp - 8], edi
cmp dword [esi + 0x100ac], edi
je 0x4422b2dd
cmp dword [esi + 0x7c], edi
jbe 0x4422b2dd
mov dword [ebp - 4], 0xffffff5c
sub dword [ebp - 4], esi
lea ebx, [esi + 0xa4]
lea edx, [esi + 0x100d0]
mov eax, edx
call fcn.4422a0fc
mov edi, dword [esi + 0x100dc]
mov dword [ebp - 0xc], eax
movzx eax, byte [ebx]
push eax
mov ecx, edx
call fcn.4422a119
mov al, byte [ebp - 0xc]
xor byte [ebx], al
mov eax, dword [ebp - 4]
add esp, 4
inc ebx
add eax, ebx
cmp eax, dword [esi + 0x7c]
jb 0x4422b2a7
xor edi, edi
mov ebx, dword [esi + 0x7c]
push ebx
lea eax, [esi + 0xa4]
push eax
push dword [esi + 0x2c]
push dword [esi + 0x1c]
call dword [esi + 8]
add esp, 0x10
cmp eax, ebx
je 0x4422b2fc
or dword [ebp - 8], 0xffffffff
mov ecx, dword [esi + 0x48]
lea eax, [esi + 0x100c0]
add dword [eax], ebx
mov dword [esi + 0x48], edi
mov dword [esi + 0x7c], edi
adc dword [eax + 4], edi
lea eax, [esi + 0x100c8]
add dword [eax], ecx
adc dword [eax + 4], edi
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret
Function at 0x4422bb9d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp esi, ebx
jne 0x4422bbbc
push 0xffffffffffffff9a
pop eax
jmp 0x4422bcf1
cmp dword [esi + 0x38], 1
jne 0x4422bbcc
push esi
call fcn.4422bb8c
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], ebx
jne 0x4422bbda
mov eax, dword [esi + 0x10100]
mov dword [ebp + 0xc], eax
push edi
push dword [esi + 0x2c]
push esi
call fcn.4421b23e
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 4], ebx
jne 0x4422bc2b
mov edi, dword [esi + 0x30]
test edi, edi
je 0x4422bc2b
cmp dword [ebp - 4], 0
jne 0x4422bc1f
mov eax, dword [edi + 8]
test eax, eax
jbe 0x4422bc1f
push eax
lea eax, [edi + 0x10]
push eax
push dword [esi + 0x2c]
push dword [esi + 0x1c]
call dword [esi + 8]
add esp, 0x10
cmp eax, dword [edi + 8]
je 0x4422bc1f
or dword [ebp - 4], 0xffffffff
add ebx, dword [edi + 8]
mov edi, dword [edi]
test edi, edi
jne 0x4422bbf8
mov dword [ebp - 8], ebx
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4422bc42
mov edi, dword [eax]
push eax
call dword [sym.imp.MSVCR90.dll_free]
pop ecx
mov eax, edi
test edi, edi
jne 0x4422bc32
and dword [esi + 0x34], 0
and dword [esi + 0x30], 0
mov eax, dword [ebp - 0x10]
sub eax, dword [esi + 0x100f0]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [esi + 0x100f4]
mov dword [ebp - 0x14], ecx
jne 0x4422bc66
cmp eax, 0xffffffff
jb 0x4422bc8d
push dword [esi + 0x2c]
push esi
call fcn.4421b23e
push dword [ebp - 0xc]
mov edi, eax
push dword [ebp - 0x10]
mov ebx, edx
push dword [ebp - 8]
push esi
call fcn.4422b90e
push ebx
push edi
push esi
call fcn.4422b897
add esp, 0x24
cmp dword [ebp - 4], 0
pop edi
jne 0x4422bcbb
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 8]
push esi
call fcn.4422ba07
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
jne 0x4422bcbb
push dword [ebp + 0xc]
push esi
call fcn.4422bb17
pop ecx
pop ecx
mov dword [ebp - 4], eax
push dword [esi + 0x2c]
push dword [esi + 0x1c]
call dword [esi + 0x14]
pop ecx
pop ecx
test eax, eax
je 0x4422bcd4
cmp dword [ebp - 4], 0
jne 0x4422bcd4
or dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 0x10100]
test eax, eax
je 0x4422bce6
push eax
call dword [sym.imp.MSVCR90.dll_free]
pop ecx
push esi
call dword [sym.imp.MSVCR90.dll_free]
mov eax, dword [ebp - 4]
pop ecx
pop esi
pop ebx
leave
ret