joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4190d6
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x433099
call fcn.0041f7f2
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.00419098
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.004027a0
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 4], eax
jne 0x41913d
push eax
push dword [esi + 8]
call fcn.00418628
push dword [esi + 0xc]
mov ecx, 0x445e4c
push eax
call fcn.004182c8
mov eax, esi
call fcn.0041f891
ret 0x1c

Function at 0x419e09
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x419e37
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x419e55
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00419d73
jmp 0x419e55
mov eax, dword [esi + 0x14]
test eax, eax
je 0x419e55
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00419d73
test edi, edi
mov eax, edi
jne 0x419e3f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x445ee0]
test ecx, ecx
je 0x419f18
jmp 0x419e08
ret 8

Function at 0x41c951
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x41c95a
xor eax, eax
jmp 0x41c9c3
cmp dword [esp + 8], 0
jne 0x41c966
call fcn.0040c2cd
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0042300c
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x41c9a1
push dword [esi + 0x10]
call fcn.00422d51
test eax, eax
pop ecx
jne 0x41c9a1
mov esi, dword [esi + 0xc]
call fcn.0041fb7a
push esi
push dword [eax]
push 1
call fcn.0041b6da
push dword [esi + 0x10]
call fcn.00422d80
test eax, eax
pop ecx
je 0x41c9c0
push dword [esi + 0x10]
call fcn.00422ca5
push eax
call fcn.0040bf70
pop ecx
pop ecx
jmp 0x41c98f
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x41c9cc
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x41c9d6
call fcn.0040c2cd
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00423141
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x41ca03
mov esi, dword [esi + 0xc]
call fcn.0041fb7a
push esi
push dword [eax]
push 1
call fcn.0041b6da
pop esi
ret 8

Function at 0x41db69
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x442d14]
jne 0x41db73
repz ret
jmp fcn.00423983
Function at 0x42de1a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00425911
xor ebx, ebx
cmp dword [0x446ba0], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42deef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x42de5a
xor eax, eax
jmp 0x42dfb3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4388d4
push edi
call esi
cmp eax, ebx
je 0x42de53
push eax
call fcn.004258ae
mov dword [esp], 0x4388c4
push edi
mov dword [0x446ba0], eax
call esi
push eax
call fcn.004258ae
mov dword [esp], 0x4388b0
push edi
mov dword [0x446ba4], eax
call esi
push eax
call fcn.004258ae
mov dword [0x446ba8], eax
lea eax, [ebp - 8]
push eax
call fcn.0041fc54
test eax, eax
pop ecx
pop ecx
je 0x42debd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00423a91
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42deef
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004258ae
cmp eax, ebx
pop ecx
mov dword [0x446bb0], eax
je 0x42deef
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004258ae
pop ecx
mov dword [0x446bac], eax
mov eax, dword [0x446bac]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x42df68
cmp dword [0x446bb0], esi
je 0x42df68
push eax
call fcn.0042591a
pop ecx
call eax
cmp eax, ebx
je 0x42df35
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x446bb0]
call fcn.0042591a
pop ecx
call eax
test eax, eax
je 0x42df35
test byte [ebp - 0x18], 1
jne 0x42df68
lea eax, [ebp - 0xc]
push eax
call fcn.0041fc8b
test eax, eax
pop ecx
je 0x42df50
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00423a91
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x42df5f
or dword [ebp + 0x10], 0x200000
jmp 0x42df99
or dword [ebp + 0x10], 0x40000
jmp 0x42df99
mov eax, dword [0x446ba4]
cmp eax, esi
je 0x42df99
push eax
call fcn.0042591a
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42df99
mov eax, dword [0x446ba8]
cmp eax, esi
je 0x42df99
push dword [ebp - 4]
push eax
call fcn.0042591a
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x446ba0]
call fcn.0042591a
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x432510
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x442d14]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004324a5
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0041fef0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x43255f
cmp dword [ebp - 0x1c], 5
jb 0x432577
jmp 0x432573
cmp dword [ebp - 0x10], 1
jne 0x432577
cmp dword [ebp - 0x1c], 4
ja 0x432573
jne 0x432577
cmp dword [ebp - 0x18], 0
jbe 0x432577
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4399f0
call fcn.00432379
test eax, eax
jge 0x432598
mov byte [0x446c7d], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041db69
add ebp, 0x78
leave
ret
Function at 0x401580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x410f6c
call fcn.00402740
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x401634
test esi, esi
jne 0x401634
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x401618
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401612
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401612
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x401601
cmp esi, eax
jae 0x401605
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4015f3
cmp esi, eax
jb 0x401609
xor eax, eax
jmp 0x401612
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x40163d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x410f6c
call fcn.00402740
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x4015a5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401720
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401738
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40176a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401766
cmp esi, eax
jae 0x40176a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401758
cmp esi, eax
jb 0x401770
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x4017c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 2
mov dword [ebp - 0x234], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x401814
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x401827
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004027e8
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov edi, edi
lea ecx, [ebp - 0x20c]
push 0x40e1f4
push ecx
call fcn.00402b78
add esp, 8
test eax, eax
jne 0x401862
inc edi
cmp edi, 1
jg 0x401892
mov eax, dword [ebp - 0x228]
lea edx, [ebp - 0x234]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
lea ecx, [ebp - 0x230]
push ecx
push esi
call ebx
test eax, eax
jne 0x401830
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x401899
mov eax, dword [ebp - 0x234]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004027e8
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
or eax, 0xffffffff
pop esi
call fcn.004027e8
mov esp, ebp
pop ebp
ret
Function at 0x401b90
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x808]
push eax
lea ecx, [ebp - 0x804]
push ecx
mov dword [ebp - 0x808], 0x800
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x401bd3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004027e8
mov esp, ebp
pop ebp
ret
mov edx, str.SYSTEM
lea ecx, [ebp - 0x804]
mov edi, edi
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x401c06
test ax, ax
je 0x401c02
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x401c06
add ecx, 4
add edx, 4
test ax, ax
jne 0x401be0
xor eax, eax
jmp 0x401c0b
sbb eax, eax
sbb eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor edx, edx
test eax, eax
sete dl
xor ecx, ebp
mov eax, edx
call fcn.004027e8
mov esp, ebp
pop ebp
ret
Function at 0x402000
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.004032d0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jne 0x402056
mov eax, 1
cmp dword [ebp - 0x110], eax
jae 0x402058
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004027e8
mov esp, ebp
pop ebp
ret

Function at 0x402070
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.004032d0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jne 0x40211c
cmp dword [ebp - 0x110], 1
jb 0x40211c
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x11c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x411d74], eax
test eax, eax
je 0x402100
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x411d74]
cmp dword [ebp - 0x11c], 0
je 0x40211c
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004027e8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004027e8
mov esp, ebp
pop ebp
ret
Function at 0x4027e8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410040]
jne 0x4027f2
repz ret
jmp fcn.0040334a

Function at 0x409b0b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404a62
and dword [ebp - 0x14], 0
cmp dword [0x411d4c], 0
mov dword [ebp - 0x18], eax
jne 0x409bbe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409c66
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409c66
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x411d4c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x411d50], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x411d54], eax
call edi
push eax
call esi
mov dword [0x411d5c], eax
test eax, eax
je 0x409bbe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x411d58], eax
mov eax, dword [0x411d58]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409c17
cmp dword [0x411d5c], ecx
je 0x409c17
push eax
call esi
push dword [0x411d5c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409c17
test ebx, ebx
je 0x409c17
call edi
test eax, eax
je 0x409c0e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x409c0e
test byte [ebp - 8], 1
jne 0x409c17
or dword [ebp + 0x10], 0x200000
jmp 0x409c4a
mov eax, dword [0x411d50]
cmp eax, dword [ebp - 0x18]
je 0x409c4a
push eax
call esi
test eax, eax
je 0x409c4a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409c4a
mov eax, dword [0x411d54]
cmp eax, dword [ebp - 0x18]
je 0x409c4a
push eax
call esi
test eax, eax
je 0x409c4a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x411d4c]
call esi
test eax, eax
je 0x409c66
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409c68
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004027e8
leave
ret
Function at 0x4053b0
Capabilities:
Check os version

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
lea ebp, [esi + 0xa8]
push str.Unknown
mov ecx, ebp
mov dword [esi + 8], edi
call sub.MFC42.DLL_CString::operator_1
lea ebx, [esi + 0xc]
mov dword [esi + 4], edi
mov ecx, 0x27
xor eax, eax
mov edi, ebx
push ebx
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebx], 0x9c
call edi
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4053ff
push ebx
mov dword [ebx], 0x94
call edi
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
and eax, 0xffff
sub ecx, 0
mov dword [esi + 4], eax
je 0x40558e
dec ecx
je 0x40550d
dec ecx
je 0x405431
push str.Undetermined
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
jmp 0x4055a1
mov eax, dword [esi + 0x10]
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x405440
jmp dword [eax*4 + 0x4055c8]
push str.WinNT_3.51
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 8], 1
jmp 0x4055a1
push str.WinNT4
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 8], 2
jmp 0x4055a1
mov eax, dword [esi + 0x14]
sub eax, 0
je 0x4054dd
dec eax
je 0x405493
push str.Undetermined
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
jmp 0x4055a1
push str.WinXP
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x10]
mov dword [esi + 8], 4
test eax, eax
je 0x4055a1
test byte [esi + 0xa5], 2
je 0x4054cc
push str._Home_Edition
mov ecx, ebp
call fcn.0042f280
jmp 0x4055a1
push str._Professional
mov ecx, ebp
call fcn.0042f280
jmp 0x4055a1
push str.Win2000
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 8], 3
jmp 0x4055a1
push str.Windows__Vista
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 8], 0xa
jmp 0x4055a1
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x405579
cmp ecx, 0xa
je 0x405541
cmp ecx, 0x5a
je 0x40552c
push str.Undetermined
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
jmp 0x4055a1
push str.WinME
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 8], 8
jmp 0x4055a1
cmp eax, 0x7ce
jne 0x40555d
push str.Win98
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 8], 6
jmp 0x4055a1
cmp eax, 0x8ae
jb 0x4055a1
push str.Win98SE
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 8], 7
jmp 0x4055a1
push str.Win95
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 8], 5
jmp 0x4055a1
push str.Win31
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 8], 9
mov al, byte [esi + 0x20]
add esi, 0x20
test al, al
je 0x4055bf
push 0x43f114
mov ecx, ebp
call fcn.0042f280
push esi
mov ecx, ebp
call fcn.0042f280
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x405a10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x430508
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x436018
mov dword [esp + 0x18], 0
call fcn.00405b60
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
mov edi, dword [esi + 0x2c]
push eax
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CGdiObject::Attach
test eax, eax
jne 0x405a99
mov dword [esp + 8], 0x435b40
lea ecx, [esp + 8]
mov dword [esp + 0x18], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x3c]
push ecx
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_OffsetRgn]
test eax, eax
jne 0x405adc
mov dword [esp + 8], 0x435b40
lea ecx, [esp + 8]
mov dword [esp + 0x18], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
neg eax
sbb eax, eax
and eax, edx
test esi, esi
jne 0x405af2
xor ecx, ecx
jmp 0x405af5
mov ecx, dword [esi + 4]
push 3
push eax
push ecx
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.GDI32.dll_CombineRgn]
test eax, eax
mov dword [esp + 8], 0x435b40
jne 0x405b33
lea ecx, [esp + 8]
mov dword [esp + 0x18], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp + 8]
mov dword [esp + 0x18], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x10]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x405ba0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [ecx + 0x14]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
cmp esi, edx
jne 0x405bb8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov eax, dword [ecx + 0x10]
mov edi, eax
imul eax, edx
imul edi, esi
mov esi, dword [esp + 0x18]
lea ebx, [edi + esi]
cmp ebx, eax
jl 0x405bd7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov eax, dword [ecx + 0x24]
mov edx, esi
lea edi, [eax + ebx*4]
mov eax, dword [esp + 0x1c]
cmp esi, eax
jge 0x405c17
mov ebp, dword [ecx + 0x28]
cmp ebp, dword [edi]
jne 0x405bce
inc edx
add edi, 4
cmp edx, eax
jl 0x405bea
cmp esi, eax
jge 0x405c17
sub eax, esi
lea edx, [ebx*4]
mov esi, eax
mov eax, dword [ecx + 0x24]
add eax, edx
add edx, 4
mov ebx, dword [eax]
xor ebx, 1
dec esi
mov dword [eax], ebx
jne 0x405c05
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
Function at 0x406760
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x430740
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebx
push esi
push edi
push eax
push 1
push 0
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CPen::CPen
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], 0
push ecx
push 1
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CPen::CPen
mov edi, dword [esp + 0x34]
lea edx, [esp + 0x14]
push edx
mov ecx, edi
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CDC::SelectObject_1
mov esi, dword [esp + 0x38]
mov ebx, eax
lea edx, [esp + 0x1c]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
dec eax
push eax
push ecx
push edx
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
dec eax
push edx
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject_1
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
dec edx
dec eax
push edx
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esi + 0xc]
mov edx, dword [esi]
dec ecx
dec edx
push ecx
push edx
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
push ebx
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject_1
mov esi, 0x435b40
mov dword [esp + 0xc], esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0xc], 0x435b68
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], 3
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10
Function at 0x408a40
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x408b76
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CSliderCtrl::GetRange
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0xd8]
sub edx, ecx
test eax, eax
mov dword [esp + 8], edx
je 0x408b08
mov eax, dword [esi + 0x190]
mov edx, dword [esi + 0x5c]
mov edi, dword [esi + 0x188]
sub eax, edx
sub eax, edi
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fidiv dword [esp + 8]
fimul dword [esp + 0xc]
fadd dword [0x4362f0]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x28]
add eax, edi
pop edi
mov dword [ecx + 4], eax
mov edx, dword [esi + 0x5c]
add edx, eax
mov dword [ecx + 0xc], edx
mov eax, dword [esi + 0x58]
cdq
sub eax, edx
mov edx, dword [esi + 0x184]
sar eax, 1
sub edx, eax
lea eax, [edx + 2]
mov dword [ecx], eax
mov edx, dword [esi + 0x58]
add edx, eax
pop esi
mov dword [ecx + 8], edx
add esp, 0x1c
ret 4
mov eax, dword [esi + 0x18c]
mov edi, dword [esi + 0x184]
mov edx, dword [esi + 0x58]
sub eax, edi
sub eax, edx
mov ecx, dword [esi + 0x188]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x5c]
fild dword [esp + 0x10]
cdq
fidiv dword [esp + 8]
mov edi, dword [esp + 0x28]
sub eax, edx
sar eax, 1
sub ecx, eax
lea eax, [ecx + 2]
mov dword [edi + 4], eax
mov edx, dword [esi + 0x5c]
add edx, eax
mov dword [edi + 0xc], edx
fild dword [esp + 0xc]
fmul st(1)
fadd dword [0x4362f0]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi + 0x184]
add eax, ecx
mov dword [edi], eax
mov edx, dword [esi + 0x58]
add edx, eax
mov dword [edi + 8], edx
pop edi
fstp st(0)
pop esi
add esp, 0x1c
ret 4
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x20]
push eax
push 0
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
add esp, 0x1c
ret 4