joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cda0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x18]
push eax
push 0
push edi
push 0x40d120
push 0
mov esi, ecx
push 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call ebx
lea ecx, [esp + 0x10]
mov dword [esi + 4], eax
push ecx
push 0
push edi
push 0x40d4b0
push 0
push 0
call ebx
mov dword [esi], eax
pop edi
pop esi
pop ebx
add esp, 8
ret 4

Function at 0x40ce00
Capabilities:
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x415678
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x40ce2f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
mov edi, eax
jmp 0x40ce31
xor edi, edi
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ce57
push 0
push 0
push str.socket_failed.
push 0
call ebx
push 0xffffffffffffffff
call dword [sym.imp.WS2_32.dll_htonl]
push 0x141e
mov dword [esp + 0x18], eax
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
lea eax, [esp + 0xc]
push 4
push eax
push 0x20
push 0xffff
push esi
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x40cebd
push 0
push 0
push str.BC_setsockopt_error.
push 0
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
mov ebx, dword [esp + 0x30]
push ebp
mov ecx, ebx
call fcn.004108c0
lea ecx, [esp + 0x14]
push 0x10
push ecx
push 0
mov ecx, ebx
mov ebp, eax
call fcn.004108b0
push eax
push ebp
push esi
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
pop ebp
jne 0x40cf69
mov eax, dword [edi + 0x48c]
test eax, eax
jne 0x40cf7a
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_2
push 0x42fa28
lea edx, [esp + 0x34]
push 0x4302b8
push edx
mov dword [esp + 0x34], 0
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov ecx, edi
mov dword [edi + 0x48c], 1
push 0x10
push 0x4302a8
push eax
call sub.MFC42.DLL_CWnd::MessageBoxA
mov ecx, edi
call fcn.004037c0
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0x48c], 0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x40ea20
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4159b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
mov esi, ecx
mov dword [esp + 8], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x124]
push eax
lea eax, [esp + 0x10]
push 0xff
push eax
push 0x430c08
push ecx
push edx
mov dword [esp + 0x12c], 2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esi + 0xc], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
mov esi, dword [esp + 0x11c]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
mov byte [esp + 0x118], 3
call fcn.00413e50
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x114], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x120]
mov byte [esp + 0x114], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x124]
mov byte [esp + 0x114], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret 0xc

Function at 0x40eb90
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4159e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 0x74], 0
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x7c]
push eax
lea eax, [esp + 0xc]
push 0x5a
push eax
push 0x430c08
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor edx, edx
mov dword [esi + 0xc], eax
test eax, eax
setg dl
lea ecx, [esp + 4]
mov esi, edx
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x6c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x74
ret 4

Function at 0x40ec20
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, ecx
push 0x11
push 2
push 2
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40ec52
push 0
push 0
push str.EMMSGSender_socket_creating_error.
call sub.MFC42.DLL_AfxMessageBox
mov eax, esi
pop esi
ret

Function at 0x40f040
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
test eax, eax
mov dword [esi + 0xc], eax
jne 0x40f06c
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.hWnd_could_not_be_NULL
call sub.MFC42.DLL_CString::CString_1
call fcn.00410b10
add esp, 8
pop esi
ret 4
lea ecx, [esi + 4]
push ecx
push 0
push eax
push 0x40ec90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 8], eax
jne 0x40f0a3
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.Thread_creating_failed.
call sub.MFC42.DLL_CString::CString_1
call fcn.00410b10
add esp, 8
pop esi
ret 4
Function at 0x40f0c0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x20]
mov ebx, ecx
test esi, esi
jne 0x40f0e3
push esi
push esi
push str.EMMSGSender::SendMsgTo_Message_is_empty
call sub.MFC42.DLL_AfxMessageBox
pop esi
pop ebx
add esp, 0x10
ret 8
mov eax, dword [esp + 0x1c]
push edi
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x2380
mov dword [esp + 0x14], eax
mov word [esp + 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, esi
mov word [esp + 0xe], ax
call fcn.004108c0
lea ecx, [esp + 0xc]
push 0x10
push ecx
push 0
mov ecx, esi
mov edi, eax
call fcn.004108b0
mov edx, dword [ebx]
push eax
push edi
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
pop edi
jne 0x40f142
push 0
push 0
push str.EMMSGSender::SendMsgTo_sendto_failed
call sub.MFC42.DLL_AfxMessageBox
pop esi
pop ebx
add esp, 0x10
ret 8

Function at 0x40f990
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x78]
test eax, eax
je 0x40f9d1
call fcn.004105b0
test eax, eax
je 0x40f9d8
lea eax, [esp + 8]
push eax
push 4
push esi
push 0x40fed0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x94], eax
test eax, eax
je 0x40f9d1
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x40f9d1
mov ecx, dword [eax]
lea edx, [esp + 8]
push edi
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0x9c]
lea edx, [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [esp + 8]
push 0
mov edi, ecx
mov eax, dword [esi + 0x9c]
neg edi
push edi
mov edi, dword [esp + 0x14]
push edi
push ecx
mov ecx, dword [esi + 0x54]
mov edx, dword [eax]
push 0
push ecx
mov ecx, dword [esi + 0x50]
push ecx
mov ecx, dword [esi + 0x7c]
push 0
push 0
push ecx
push eax
call dword [edx + 0x20]
test eax, eax
pop edi
jne 0x40f9d1
mov edx, dword [esi + 0x20]
push eax
push eax
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x40fa50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40fb0f
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x40fb0f
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
push ebp
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x40fb0f
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40fb08
test edi, edi
je 0x40fb08
mov ecx, ebp
mov esi, eax
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x10]
push ebp
push ebx
call fcn.0040f2e0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8

Function at 0x410ba0
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword [0x431018]
sub esp, 0x190
cmp eax, 1
je 0x410bca
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x431018], 1
add esp, 0x190
ret
Function at 0x412090
Capabilities:
Capture microphone audio

Disassembly:
push 0xffffffffffffffff
push 0x415be8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
push str.error
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 0x6c]
xor edi, edi
push 0x20000
lea eax, [esi + 0xc0]
push edi
push ecx
lea ebp, [esi + 0x7c]
push eax
push 0xffffffffffffffff
push ebp
mov dword [esp + 0x34], edi
mov word [eax], 1
mov word [esi + 0xc2], 2
mov dword [esi + 0xc4], 0xac44
mov word [esi + 0xce], 0x10
mov word [esi + 0xcc], 4
mov dword [esi + 0xc8], 0x2b110
mov word [esi + 0xd0], di
call dword [sym.imp.WINMM.dll_waveInOpen]
cmp eax, edi
mov dword [esi + 0x78], eax
je 0x412134
push str.::waveInOpen
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
push edi
push edi
jmp 0x4121ed
push 0x2000
call sub.MFC42.DLL_operatornew
push 0x2000
mov dword [esi + 0xd4], eax
call sub.MFC42.DLL_operatornew
lea ebx, [esi + 0x80]
mov dword [esi + 0xd8], eax
mov ecx, 8
xor eax, eax
mov edi, ebx
add esp, 8
rep stosd dword es:[edi], eax
lea edi, [esi + 0xa0]
mov ecx, 8
rep stosd dword es:[edi], eax
mov ecx, dword [ebp]
mov eax, dword [esi + 0xd4]
push 0x20
push ebx
push ecx
mov dword [ebx], eax
mov dword [esi + 0x84], 0x2000
mov dword [esi + 0x94], 1
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
test eax, eax
mov dword [esi + 0x78], eax
jne 0x4121db
mov ecx, dword [ebp]
mov eax, dword [esi + 0xd8]
lea edi, [esi + 0xa0]
push 0x20
push edi
push ecx
mov dword [edi], eax
mov dword [esi + 0xa4], 0x2000
mov dword [esi + 0xb4], 1
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
test eax, eax
mov dword [esi + 0x78], eax
je 0x41220f
push str.::waveInPrepareHeader
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
push 0
push 0
mov edx, dword [esp + 0x18]
push edx
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4122b7
mov eax, dword [ebp]
push 0x20
push ebx
mov ebx, dword [sym.imp.WINMM.dll_waveInAddBuffer]
push eax
call ebx
test eax, eax
mov dword [esi + 0x78], eax
je 0x412256
push str.waveInAddBuffer
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x10]
push 0
push 0
push ecx
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4122b7
mov edx, dword [ebp]
push 0x20
push edi
push edx
call ebx
test eax, eax
mov dword [esi + 0x78], eax
je 0x412297
push str.waveInAddBuffer
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4122b7
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.WINMM.dll_waveInStart]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x412510
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push 0x2000
call sub.MFC42.DLL_operatornew
add esp, 4
mov ebx, eax
mov eax, dword [esi + 0xb4]
push 0
push 0x2000
push ebx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x412550
mov dword [esi + 0xd4], 0
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
mov edi, dword [esp + 0x10]
push 0x20
push edi
mov dword [edi], ebx
mov dword [edi + 4], eax
mov ecx, dword [esi + 0x70]
push ecx
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
test eax, eax
je 0x412580
push 0
push 0
push str.waveOutPrepareHeader_failed.
call sub.MFC42.DLL_AfxMessageBox
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
mov edx, dword [esi + 0x70]
push 0x20
push edi
push edx
call dword [sym.imp.WINMM.dll_waveOutWrite]
test eax, eax
je 0x4125a7
push 0
push 0
push str.waveOutWrite_failed.
call sub.MFC42.DLL_AfxMessageBox
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
pop edi
pop esi
mov eax, 1
pop ebx
ret 4

Function at 0x4125c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ecx
test edi, edi
jne 0x4125e5
push edi
push edi
push str.CWaveSocket::Connect:ip__NULL.
call sub.MFC42.DLL_AfxMessageBox
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 4
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xb4], eax
jne 0x412614
push 0
push 0
push str.CWaveSocket::Connect__socket__failed.
call sub.MFC42.DLL_AfxMessageBox
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 4
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x1edb
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0xb4]
mov word [esp + 0xa], ax
lea eax, [esp + 8]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x412667
push 0
push 0
push str.CWaveSocket::Connect__connect__failed.
call sub.MFC42.DLL_AfxMessageBox
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 4
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret 4
Function at 0x401550
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [esp + 0x218]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0x408288
xor ebx, ebx
push eax
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x4016cf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x10], ebp
je 0x4016cf
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4016b9
mov eax, dword [esp + 0x234]
test eax, eax
je 0x4015c2
mov edi, dword [ebx]
add ebx, 4
jmp 0x4015d4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jbe 0x4016b9
mov eax, dword [esp + 0x230]
test eax, eax
je 0x40160e
lea ecx, [esp + 0x11c]
push ecx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x11c]
push edx
push 1
push str.ZSea
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
jmp 0x401628
mov ecx, dword [esp + 0x220]
lea edx, [esp + 0x1c]
push ecx
push 0x40827c
push edx
call fcn.004019a0
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 1
lea eax, [esp + 0x30]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x4016ae
lea ecx, [esp + 0x18]
push 0
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4016ae
test esi, esi
je 0x40166f
push esi
call ebp
xor esi, esi
mov eax, dword [esp + 0x230]
test eax, eax
je 0x4016a6
mov edx, dword [esp + 0x22c]
mov eax, dword [esp + 0x220]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00401740
add esp, 0xc
test eax, eax
jne 0x4016ae
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp + 0x14], 1
test esi, esi
je 0x4016b5
push esi
call ebp
mov ebp, dword [esp + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0x401960
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
push esi
push eax
xor esi, esi
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401995
cmp dword [esp + 0x14], 2
jne 0x401995
mov eax, dword [esp + 8]
cmp eax, 6
mov eax, 1
je 0x401997
mov eax, esi
pop esi
add esp, 0x94
ret
Function at 0x405200
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584d48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x5d4074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 7
push str.k_usrok
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00406a70
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
lea eax, [ebp - 0x28]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00406b70
call fcn.0044c390
mov eax, dword [ebp - 0x14]
add esp, 0x18
cmp eax, 0x10
jb 0x405290
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004070c0
push 0
push 0
push 0x4c9
push dword [esi + 0x248]
mov byte [esi + 0x3b1], 1
mov byte [esi + 0x3bc], 1
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4052e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584d48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x5d4074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xa
push str.k_usrclose
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00406a70
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
lea eax, [ebp - 0x28]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00406b70
call fcn.0044c390
mov eax, dword [ebp - 0x14]
add esp, 0x18
cmp eax, 0x10
jb 0x405370
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004070c0
mov al, byte [esi + 0x3b0]
push 0
push 0
push 0x4c9
push dword [esi + 0x248]
mov byte [esi + 0x3b1], al
mov byte [esi + 0x3bc], 1
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4057d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584de8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5d4074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push dword [ecx + 0x248]
mov byte [ecx + 0x3bc], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xd
push str.k_unknowclose
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00406a70
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
lea eax, [ebp - 0x28]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00406b70
call fcn.0044c390
mov eax, dword [ebp - 0x14]
add esp, 0x18
cmp eax, 0x10
jb 0x405872
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004070c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x409af0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x3a8]
cmp dword [eax + 0x174], 3
jne 0x409b25
push 0
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x469
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0xf060
push 0x112
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret
Function at 0x40a310
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x469
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
ret

Function at 0x40a340
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5852f0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5d4074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x40]
push 4
push str.EULA
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
call fcn.00406650
mov byte [ebp - 4], 1
call fcn.00451ac0
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.00451400
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x40a3c9
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407940
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push str.explorer
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40a400
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407940
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0c7f
mov esp, ebp
pop ebp
ret
Function at 0x40b990
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585542
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x5d4074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0
call fcn.0049df2c
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x40ba24
mov dword [ebp - 0x18], str.bad_locale_name
mov dword [ebp - 0x1c], vtable.std::runtime_error.0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00401f70
push eax
push esi
call fcn.0049e274
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4