joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476b92
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
push 0x40
lea edi, [esi + 0x1c]
push ebx
push edi
call sub.MSVCRT.dll_memset
lea eax, [esi + 0x9c]
push 0x40
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [esi + 0x5c]
push 0x40
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
add esp, 0x24
cmp eax, ebx
mov word [esi + 0xdc], bx
mov dword [esi + 0xe0], ebx
je 0x476beb
cmp byte [eax], bl
je 0x476beb
push 0x3f
push eax
push edi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x476c09
cmp byte [eax], bl
je 0x476c09
push 0x3f
push eax
lea eax, [esi + 0x9c]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x476c24
cmp byte [eax], bl
je 0x476c24
push 0x3f
push eax
lea eax, [esi + 0x5c]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x476c95
cmp byte [edi], bl
je 0x476c95
push edi
call sub.MSVCRT.dll_strlen
pop ecx
xor ecx, ecx
cmp eax, ebx
jle 0x476c53
mov dl, byte [ecx + edi]
cmp dl, 0x39
jg 0x476c49
cmp dl, 0x30
jge 0x476c4e
cmp dl, 0x2e
jne 0x476c61
inc ecx
cmp ecx, eax
jl 0x476c3c
push edi
call sub.WS2_32.dll_inet_addr
mov dword [esi + 0xe0], eax
jmp 0x476c81
push edi
call sub.WS2_32.dll_gethostbyname
cmp eax, ebx
je 0x476c95
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [esi + 0xe0]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp + 0xc]
call sub.WSOCK32.dll_htons
push 1
mov word [esi + 0xdc], ax
pop eax
jmp 0x476c97
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x477da7
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x4bce4f
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x9c
push ebx
push esi
lea eax, [ebp - 0x24]
push edi
mov esi, ecx
push eax
call fcn.004781d3
lea eax, [ebp - 0x24]
push 0x10
push eax
lea eax, [esi + 0x94]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0x88]
mov edi, dword [esi + 0x168]
mov dword [ebp - 0x14], eax
lea eax, [esi + 0x16c]
push 0x18
push eax
lea eax, [ebp - 0xa8]
push eax
call sub.MSVCRT.dll_memcpy
push 0x36
call sub.MFC42.DLL_operatornew
add esp, 0x1c
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x10], eax
push 0x400
call fcn.004af17c
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 fcn.004af176
push 0x34
mov byte [ebp - 4], 1
call sub.WSOCK32.dll_htons
push eax
lea ecx, [ebp - 0x90]
call fcn.00478fab
push 1
call sub.WSOCK32.dll_htons
push eax
lea ecx, [ebp - 0x90]
call fcn.00478fab
push 1
call sub.WSOCK32.dll_htons
push eax
lea ecx, [ebp - 0x90]
call fcn.00478fab
push edi
call sub.WSOCK32.dll_htonl
push eax
lea ecx, [ebp - 0x90]
call fcn.00478fd2
lea eax, [ebp - 0xa8]
push 0x18
push eax
lea ecx, [ebp - 0x90]
call sub.MFC42.DLL_CArchive::Write
push dword [ebp - 0x14]
call sub.WSOCK32.dll_htonl
push eax
lea ecx, [ebp - 0x90]
call fcn.00478fd2
lea eax, [ebp - 0x24]
push 0x10
push eax
lea ecx, [ebp - 0x90]
call sub.MFC42.DLL_CArchive::Write
lea ecx, [ebp - 0x90]
call sub.MFC42.DLL_CArchive::Close
push ebx
push ebx
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp - 0x4c]
call dword [eax + 0x30]
push 0x36
lea ecx, [ebp - 0x4c]
push dword [ebp - 0x10]
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 0x36
push dword [ebp - 0x10]
call dword [eax + 0x20]
push dword [ebp - 0x10]
call sub.MFC42.DLL_operatordelete
pop ecx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x90]
call sub.MFC42.DLL_CArchive::CArchive
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CMemFile::CMemFile
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x477f97
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x4bce83
call sub.MSVCRT.dll__EH_prolog
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.00454dc5
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 fcn.004af17c
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 fcn.004af176
push dword [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.WSOCK32.dll_htons
push eax
lea ecx, [ebp - 0x90]
call fcn.00478fab
push 1
call sub.WSOCK32.dll_htons
push eax
lea ecx, [ebp - 0x90]
call fcn.00478fab
push 3
call sub.WSOCK32.dll_htons
push eax
lea ecx, [ebp - 0x90]
call fcn.00478fab
push dword [ebp - 0x24]
call sub.WSOCK32.dll_htonl
push eax
lea ecx, [ebp - 0x90]
call fcn.00478fd2
push dword [ebp - 0x20]
call sub.WSOCK32.dll_htonl
push eax
lea ecx, [ebp - 0x90]
call fcn.00478fd2
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 sub.MFC42.DLL_CArchive::CArchive
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CMemFile::CMemFile
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x496082
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 0x4d3574
push esi
call dword [eax + 0x20]
push dword [edi + 0x64]
mov eax, dword [esi]
push 0x4d357c
push esi
call dword [eax + 0x1c]
mov eax, dword [esi]
and byte [ebp + 8], 0
lea ecx, [ebp + 8]
mov ebx, str.FLAG
push ecx
push ebx
push esi
call dword [eax + 0x2c]
test byte [edi + 0x34], 8
je 0x4960ca
or byte [ebp + 8], 1
jmp 0x4960ce
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 0x4d358c
push esi
call dword [eax + 0x18]
push dword [edi + 0x90]
mov eax, dword [esi]
push str.EMAIL
push esi
call dword [eax + 0x20]
push dword [edi + 0xbc]
mov eax, dword [esi]
push str.HOMEPAGE
push esi
call dword [eax + 0x20]
push dword [edi + 0x78]
mov eax, dword [esi]
push str.COUNTRY
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 0x4d35b8
push esi
call dword [ebx + 0x1c]
push dword [edi + 0x88]
mov eax, dword [esi]
push str.GENDER
push esi
call dword [eax + 0x20]
push dword [edi + 0x7c]
mov eax, dword [esi]
push str.PROVINCE
push esi
call dword [eax + 0x20]
push dword [edi + 0x180]
mov eax, dword [esi]
push str.CITY
push esi
call dword [eax + 0x20]
push dword [edi + 0x70]
mov eax, dword [esi]
push str.ADDRESS
push esi
call dword [eax + 0x20]
push dword [edi + 0x80]
mov eax, dword [esi]
push str.POSTCODE
push esi
call dword [eax + 0x20]
push dword [edi + 0x74]
mov eax, dword [esi]
push str.PHONE
push esi
call dword [eax + 0x20]
push dword [edi + 0x194]
mov eax, dword [esi]
push str.GSMTYPE
push esi
call dword [eax + 0x20]
push dword [edi + 0xc4]
mov eax, dword [esi]
push str.MOBLIEPHONE
push esi
call dword [eax + 0x20]
push dword [edi + 0xb8]
mov eax, dword [esi]
push str.OCCUPATION
push esi
call dword [eax + 0x20]
mov eax, dword [esi]
push dword [edi + 0x1ac]
push str.BLOODTYPE
push esi
call dword [eax + 0x1c]
push dword [edi + 0x1a8]
mov eax, dword [esi]
push str.SHENGXIAO
push esi
call dword [eax + 0x1c]
push dword [edi + 0x1a4]
mov eax, dword [esi]
push str.CONSTELLATION
push esi
call dword [eax + 0x1c]
push dword [edi + 0x1a0]
mov eax, dword [esi]
push str.COLLEGE
push esi
call dword [eax + 0x20]
push dword [edi + 0x8c]
mov eax, dword [esi]
push str.REALNAME
push esi
call dword [eax + 0x20]
push dword [edi + 0xc0]
mov eax, dword [esi]
push str.PERSIONAL_DESC
push esi
call dword [eax + 0x20]
mov eax, dword [esi]
push 2
push str.INFOUPDATED_FLAG
push esi
call dword [eax + 0x1c]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x49b21c
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x4c0242
call sub.MSVCRT.dll__EH_prolog
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], 0x4d3b24
call fcn.0049b440
or dword [ebp - 4], 0xffffffff
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x49b341
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x4c0312
call sub.MSVCRT.dll__EH_prolog
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x4d3b24
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 0x49b760
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x4c04fa
call sub.MSVCRT.dll__EH_prolog
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], 0x4d3b3c
call fcn.0049b9e4
mov ecx, dword [ebp - 0xc]
or dword [ebp - 4], 0xffffffff
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x49b8b5
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x4c05f6
call sub.MSVCRT.dll__EH_prolog
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x4d3b3c
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 0x4a6896
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 0x4a6912
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x4a6912
push edi
push 0x64
pop edi
lea eax, [ebp - 0x28]
push 0x10
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00455e28
add esp, 0xc
dec edi
jne 0x4a68bf
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 0x4a6912
push ecx
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00454a00
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 0x4a6917
mov eax, 0x29a
pop esi
leave
ret
Function at 0x4013d0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x42a0c1
push eax
mov eax, 0x188c
mov dword fs:[0], esp
call fcn.0040d8b0
mov eax, dword [0x437828]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov ecx, 0x5db
xor eax, eax
lea edi, [esp + 0x12d]
mov byte [esp + 0x12c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18b8]
lea edx, [esp + 0x12c]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x18b4]
push ecx
push 0x1770
push edx
push eax
mov dword [esp + 0x18b4], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
xor eax, eax
cmp byte [esp + eax + 0x12c], bl
jne 0x40146e
cmp byte [esp + eax + 0x12d], bl
je 0x401476
inc eax
cmp eax, 0x1770
jl 0x40145c
mov esi, dword [esp + 0x18ac]
lea edi, [eax + 1]
push 0xffffffffffffffff
push ebx
mov ecx, esi
mov dword [esp + 0x28], edi
call fcn.0041ccc1
mov ebp, dword [esp + 0x18b0]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.0041ccc1
xor eax, eax
cmp edi, ebx
mov dword [esp + 0x18], eax
jle 0x40158f
mov ecx, dword [esp + 0x14]
mov al, byte [esp + eax + 0x12c]
mov byte [esp + ecx + 0x28], al
inc ecx
cmp al, bl
mov dword [esp + 0x14], ecx
jne 0x40157a
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041ec81
mov edx, dword [esp + 0x10]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [edx - 8]
mov dword [esp + 0x14], ebx
cmp eax, ebx
je 0x40157a
push 0x4370c0
lea ecx, [esp + 0x14]
call fcn.0041c4e5
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.0041c44b
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x18ac], 1
call fcn.0041ce0a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x18a4], bl
call fcn.0041eaf8
push 0x4370c0
lea ecx, [esp + 0x14]
call fcn.0041c4e5
inc eax
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0041c392
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x18ac], 2
call fcn.0041ce0a
lea ecx, [esp + 0x24]
mov byte [esp + 0x18a4], bl
call fcn.0041eaf8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4014ad
mov esi, dword [esi + 8]
lea ecx, [esp + 0x10]
mov dword [esp + 0x18a4], 0xffffffff
call fcn.0041eaf8
mov ecx, dword [esp + 0x189c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1898
ret
Function at 0x4015d0
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x42a0e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
push edi
mov dword [esp + 0x24], 0
call fcn.00426f48
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
and ecx, 0xffff
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40163d
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041eaf8
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40167a
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041eaf8
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea ecx, [esp + 0xc]
call fcn.0041efe0
mov edx, dword [esp + 0x34]
push 0
push 0x1001
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.0041f0f2
push ebp
push esi
lea ecx, [esp + 0x14]
call fcn.0041f249
lea ecx, [esp + 0xc]
call fcn.0041f30d
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.0041f035
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041eaf8
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x4016f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebp
push esi
push edi
call fcn.00426f48
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
and ecx, 0xffff
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40171e
pop edi
pop esi
pop ebp
pop ecx
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40173b
pop edi
pop esi
pop ebp
pop ecx
ret
push ebx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
lea eax, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [esp + 0x10]
push 0
push ecx
call fcn.00405140
mov edx, dword [esp + 0x28]
add esp, 8
push ebx
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret