joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44be3a
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x4e0a8f
call fcn.00471450
sub esp, 0x84
push ebx
push esi
push edi
mov esi, ecx
push 0x18
call sub.MFC42.DLL_operatornew
mov edi, eax
mov eax, dword [esi + 0x168]
mov dword [ebp - 0x24], eax
lea eax, [esi + 0x16c]
push 0x18
push eax
push edi
call sub.MSVCRT.dll_memcpy
push 0x30
pop eax
push eax
mov dword [ebp - 0x10], eax
call sub.MFC42.DLL_operatornew
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0xa4]
push ebx
push eax
push 0x18
push edi
call fcn.0043b332
push edi
call sub.MFC42.DLL_operatordelete
push dword [ebp - 0x10]
call sub.MFC42.DLL_operatornew
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
push ebx
push eax
call sub.MSVCRT.dll_memcpy
push ebx
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 0xb4]
add eax, 0xc
add esp, 0x40
movzx edi, ax
inc edi
mov dword [ebp - 0x1c], eax
inc edi
mov dword [ebp - 0x20], ecx
push edi
call sub.MFC42.DLL_operatornew
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x14], eax
mov dword [esp], 0x400
call sub.MFC42.DLL_CMemFile::CMemFile
xor ebx, ebx
lea eax, [ebp - 0x4c]
push ebx
push 0x1000
push ebx
push eax
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CArchive::CArchive
push dword [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.WSOCK32.dll_htons
push eax
lea ecx, [ebp - 0x90]
call fcn.0044cf22
push 1
call sub.WSOCK32.dll_htons
push eax
lea ecx, [ebp - 0x90]
call fcn.0044cf22
push 3
call sub.WSOCK32.dll_htons
push eax
lea ecx, [ebp - 0x90]
call fcn.0044cf22
push dword [ebp - 0x24]
call sub.WSOCK32.dll_htonl
push eax
lea ecx, [ebp - 0x90]
call fcn.0044cf4c
push dword [ebp - 0x20]
call sub.WSOCK32.dll_htonl
push eax
lea ecx, [ebp - 0x90]
call fcn.0044cf4c
push dword [ebp - 0x10]
lea ecx, [ebp - 0x90]
push dword [ebp - 0x18]
call sub.MFC42.DLL_CArchive::Write
lea ecx, [ebp - 0x90]
call sub.MFC42.DLL_CArchive::Close
mov eax, dword [ebp - 0x4c]
push ebx
push ebx
lea ecx, [ebp - 0x4c]
call dword [eax + 0x30]
push edi
lea ecx, [ebp - 0x4c]
push dword [ebp - 0x14]
call sub.MFC42.DLL_CMemFile::Read
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CMemFile::Close
mov eax, dword [esi + 0xcc]
lea ecx, [esi + 0xcc]
push ebx
push edi
push dword [ebp - 0x14]
call dword [eax + 0x20]
push dword [ebp - 0x14]
call sub.MFC42.DLL_operatordelete
push dword [ebp - 0x18]
call sub.MFC42.DLL_operatordelete
pop ecx
mov byte [ebp - 4], bl
pop ecx
lea ecx, [ebp - 0x90]
call fcn.004713d6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004713d0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x44d81f
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
and byte [ebp - 0x406], 0
push ebx
push esi
mov esi, ecx
push edi
push 3
mov al, byte [esi + 0xe8]
mov byte [ebp - 0x408], 5
cmp al, 1
mov byte [ebp - 0x407], al
pop edi
jne 0x44d8d4
push dword [esi + 0x58]
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x44d88b
mov eax, dword [esi + 0x58]
mov byte [ebp - 0x405], 3
mov ebx, dword [eax - 8]
push ebx
push eax
lea eax, [ebp - 0x403]
mov byte [ebp - 0x404], bl
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea edi, [ebx + 5]
jmp 0x44d8aa
lea eax, [ebp - 8]
push 4
push eax
lea eax, [ebp - 0x404]
push eax
mov byte [ebp - 0x405], 1
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 8
pop edi
mov ax, word [esi + 0x5c]
push eax
call sub.WSOCK32.dll_htons
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 2
push eax
lea eax, [ebp + edi - 0x408]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
inc edi
inc edi
jmp 0x44d95d
cmp al, 2
jne 0x44d90b
mov eax, dword [esi + 0x68]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x404]
push eax
mov byte [ebp - 0x405], 1
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0
call sub.WSOCK32.dll_htons
mov dword [ebp - 8], eax
push 2
lea eax, [ebp - 8]
jmp 0x44d94a
cmp al, 3
jne 0x44d95d
push str.0.0.0.0
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 4
push eax
lea eax, [ebp - 0x404]
mov byte [ebp - 0x405], 1
push eax
call sub.MSVCRT.dll_memcpy
mov ax, word [esi + 0x5c]
add esp, 0xc
push eax
call sub.WSOCK32.dll_htons
mov dword [ebp - 8], eax
push 2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x400]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0xa
pop edi
lea ebx, [esi + 0x2c]
push 0x44d997
push esi
mov ecx, ebx
call fcn.00447aaa
push 0
lea eax, [ebp - 0x408]
push edi
push eax
mov ecx, esi
call sub.MFC42.DLL_CAsyncSocket::Send
cmp eax, edi
je 0x44d992
mov ecx, ebx
call fcn.00447abd
push 0
mov ecx, esi
call fcn.0044d5c3
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4523c9
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x452445
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x452445
push edi
push 0x64
pop edi
lea eax, [ebp - 0x28]
push 0x10
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0043c39a
add esp, 0xc
dec edi
jne 0x4523f2
lea eax, [ebp - 8]
push eax
call esi
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
sub eax, dword [ebp - 0x10]
pop edi
sbb ecx, dword [ebp - 0xc]
mov edx, eax
or edx, ecx
je 0x452445
push ecx
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00471880
imul eax, eax, 0x64
mov dword [ebp - 4], eax
fild dword [ebp - 4]
fmul qword [str.333333]
call sub.MSVCRT.dll__ftol
test eax, eax
jg 0x45244a
mov eax, 0x29a
pop esi
leave
ret
Function at 0x467f62
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [esi]
push dword [edi + 0x5c]
push 0x4fc38c
push esi
call dword [eax + 0x20]
push dword [edi + 0x64]
mov eax, dword [esi]
push 0x4fc394
push esi
call dword [eax + 0x1c]
mov eax, dword [esi]
and byte [ebp + 8], 0
lea ecx, [ebp + 8]
mov ebx, 0x4fc39c
push ecx
push ebx
push esi
call dword [eax + 0x2c]
test byte [edi + 0x34], 8
je 0x467faa
or byte [ebp + 8], 1
jmp 0x467fae
and byte [ebp + 8], 0
push dword [ebp + 8]
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x10]
push dword [edi + 0x1f0]
mov eax, dword [esi]
push 0x4fc3a4
push esi
call dword [eax + 0x18]
push dword [edi + 0x90]
mov eax, dword [esi]
push 0x4fc3b4
push esi
call dword [eax + 0x20]
push dword [edi + 0xbc]
mov eax, dword [esi]
push 0x4fc3bc
push esi
call dword [eax + 0x20]
push dword [edi + 0x78]
mov eax, dword [esi]
push 0x4fc3c8
push esi
call dword [eax + 0x20]
mov eax, dword [edi + 0x84]
mov ebx, dword [esi]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
push eax
push 0x4fc3d0
push esi
call dword [ebx + 0x1c]
push dword [edi + 0x88]
mov eax, dword [esi]
push 0x4fc3d4
push esi
call dword [eax + 0x20]
push dword [edi + 0x7c]
mov eax, dword [esi]
push 0x4fc3dc
push esi
call dword [eax + 0x20]
push dword [edi + 0x180]
mov eax, dword [esi]
push 0x4fc3e8
push esi
call dword [eax + 0x20]
push dword [edi + 0x70]
mov eax, dword [esi]
push 0x4fc3f0
push esi
call dword [eax + 0x20]
push dword [edi + 0x80]
mov eax, dword [esi]
push 0x4fc3f8
push esi
call dword [eax + 0x20]
push dword [edi + 0x74]
mov eax, dword [esi]
push 0x4fc404
push esi
call dword [eax + 0x20]
push dword [edi + 0x194]
mov eax, dword [esi]
push 0x4fc40c
push esi
call dword [eax + 0x20]
push dword [edi + 0xc4]
mov eax, dword [esi]
push 0x4fc414
push esi
call dword [eax + 0x20]
push dword [edi + 0xb8]
mov eax, dword [esi]
push 0x4fc420
push esi
call dword [eax + 0x20]
mov eax, dword [esi]
push dword [edi + 0x1ac]
push 0x4fc42c
push esi
call dword [eax + 0x1c]
push dword [edi + 0x1a8]
mov eax, dword [esi]
push 0x4fc438
push esi
call dword [eax + 0x1c]
push dword [edi + 0x1a4]
mov eax, dword [esi]
push 0x4fc444
push esi
call dword [eax + 0x1c]
push dword [edi + 0x1a0]
mov eax, dword [esi]
push 0x4fc454
push esi
call dword [eax + 0x20]
push dword [edi + 0x8c]
mov eax, dword [esi]
push 0x4fc45c
push esi
call dword [eax + 0x20]
push dword [edi + 0xc0]
mov eax, dword [esi]
push 0x4fc468
push esi
call dword [eax + 0x20]
mov eax, dword [esi]
push 2
push 0x4fc478
push esi
call dword [eax + 0x1c]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x46d338
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x4e4ff6
call fcn.00471450
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x28]
call sub.MFC42.DLL_CString::CString_4
and dword [ebp - 4], 0
lea ecx, [esi + 0x2c]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString_4
mov byte [ebp - 4], 0x11
mov ecx, esi
mov dword [esi], 0x4fc93c
call fcn.0046d55f
or dword [ebp - 4], 0xffffffff
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x46d460
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x4e50c6
call fcn.00471450
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x4fc93c
lea ecx, [esi + 0x6c]
mov dword [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [esi + 0x2c]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x28]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x46d883
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x4e52ae
call fcn.00471450
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::CString_4
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x74]
mov byte [ebp - 4], 0x13
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 0x14
call sub.MFC42.DLL_CString::CString_4
mov byte [ebp - 4], 0x15
mov ecx, esi
mov dword [esi], 0x4fc954
call fcn.0046db0a
mov ecx, dword [ebp - 0xc]
or dword [ebp - 4], 0xffffffff
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x46d9db
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x4e53aa
call fcn.00471450
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x4fc954
lea ecx, [esi + 0x78]
mov dword [ebp - 4], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x74]
mov byte [ebp - 4], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [esi + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [esi + 0xc]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x46ef80
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x4e55cf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x30]
mov eax, 0x55555556
imul ebp
mov eax, edx
push esi
shr eax, 0x1f
add edx, eax
xor ebx, ebx
push edi
mov dword [esp + 0x1c], ebx
lea ecx, [edx + ebp + 3]
mov eax, ecx
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
lea esi, [ecx + eax*2]
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_4
push esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2c], 1
call sub.MFC42.DLL_CString::GetBuffer
xor edi, edi
xor esi, esi
test ebp, ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
jle 0x46f07f
mov eax, dword [esp + 0x34]
xor edx, edx
mov dl, byte [esi + eax]
inc esi
shl edx, 8
cmp esi, ebp
jge 0x46f010
xor ecx, ecx
mov cl, byte [esi + eax]
or edx, ecx
inc esi
jmp 0x46f015
inc ebx
mov dword [esp + 0x10], ebx
shl edx, 8
cmp esi, ebp
jge 0x46f026
xor ecx, ecx
mov cl, byte [esi + eax]
or edx, ecx
inc esi
jmp 0x46f02b
inc ebx
mov dword [esp + 0x10], ebx
lea ecx, [edi + 4]
cmp ecx, edi
mov dword [esp + 0x18], ecx
je 0x46f075
dec ecx
test ebx, ebx
je 0x46f050
mov eax, edi
sub eax, ebx
add eax, 4
cmp ecx, eax
jl 0x46f050
mov eax, dword [esp + 0x14]
mov byte [ecx + eax], 0x3d
jmp 0x46f066
mov ebx, dword [esp + 0x14]
mov eax, edx
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + ebx], al
mov ebx, dword [esp + 0x10]
shr edx, 6
cmp ecx, edi
jne 0x46f036
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
cmp esi, ebp
mov edi, ecx
jl 0x46eff9
push edi
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x46f0d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4e55f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 4]
mov ecx, edi
call fcn.0046f900
lea ebx, [esi + 0x30]
mov dword [esp + 0x18], 0
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_4
mov ecx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x4fcd10
call fcn.0046fb80
push 0x4f423c
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x46f580
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4e5676
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 4]
mov ecx, edi
call fcn.0046f900
lea ebx, [esi + 0x30]
mov dword [esp + 0x18], 0
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_4
mov ecx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x4fcde4
call fcn.0046fb80
push 0x4f423c
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x475800
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
test edx, edx
je 0x475923
mov esi, dword [ebp + 0x10]
test esi, esi
jle 0x475923
mov eax, dword [ebp + 8]
push ebx
cmp esi, 8
push edi
not eax
mov ecx, 0xff
jl 0x475900
mov edi, esi
shr edi, 3
mov ebx, edi
neg ebx
lea esi, [esi + ebx*8]
mov dword [ebp + 0x10], esi
movzx ebx, byte [edx]
mov esi, eax
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x4fd194]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x4fd194]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x4fd194]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x4fd194]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x4fd194]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x4fd194]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x4fd194]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x4fd194]
xor eax, esi
inc edx
dec edi
jne 0x47583e
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x47591d
movzx ebx, byte [edx]
mov edi, eax
and edi, ecx
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x4fd194]
xor eax, edi
inc edx
dec esi
jne 0x475904
pop edi
pop ebx
not eax
jmp 0x475926
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret 0xc
Function at 0x487bf5
Capabilities:
Delete file
Read .ini file

Disassembly:
mov eax, 0x4e751c
call fcn.00471450
sub esp, 0xd8
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_4
xor esi, esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 2
mov byte [eax], 7
mov eax, dword [ebp + 0xc]
mov word [eax], 2
mov eax, dword [ebp + 0x18]
mov word [eax], si
mov eax, dword [ebp + 0x14]
mov word [eax], si
mov eax, dword [ebp + 0x10]
mov word [eax], si
lea eax, [ebp + 8]
push eax
call dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetExeFolder_void_]
pop ecx
push dword [eax]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push str._sqqupdatestatcount.ini
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
push str.qqupdate
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_2
mov edi, dword [sym.imp.MSVCRT.dll_atol]
mov dword [ebp - 0x18], esi
mov dword [ebp + 8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp + 0xc], 0xe
mov ebx, 0x54d1fc
mov eax, dword [ebp + 8]
add eax, 0x41
push eax
lea eax, [ebp - 0x1c]
push 0x5507a4
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0xe4]
push dword [ebp - 0x10]
push 0xc8
push eax
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0xe4]
push eax
call edi
pop ecx
mov ecx, dword [ebp + 0xc]
sub dword [ebp + 0xc], 2
shl eax, cl
or dword [ebp - 0x18], eax
inc dword [ebp + 8]
cmp dword [ebp + 8], 8
jb 0x487ca6
mov eax, dword [ebp - 0x18]
test ah, 0xf0
jne 0x487d04
xor bl, bl
jmp 0x487d97
mov ecx, dword [ebp + 0x18]
push dword [ebp - 0x10]
mov word [ecx], ax
lea eax, [ebp - 0xe4]
push 0xc8
push eax
push ebx
push str.ModuleId
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0xe4]
push eax
call edi
pop ecx
mov ecx, dword [ebp + 0x10]
push dword [ebp - 0x10]
mov word [ecx], ax
lea eax, [ebp - 0xe4]
push 0xc8
push eax
push ebx
push str.ModuleType
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0xe4]
push eax
call edi
pop ecx
mov dword [ebp + 0x18], eax
push dword [ebp - 0x10]
lea eax, [ebp - 0xe4]
push 0xc8
push eax
push ebx
push str.ModulePatchNum
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0xe4]
push eax
call edi
pop ecx
push dword [ebp - 0x10]
xor ecx, ecx
mov ch, byte [ebp + 0x18]
mov cl, al
mov eax, dword [ebp + 0x14]
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov bl, 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14