joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423e70
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x436821
push eax
mov eax, 0x281c
mov dword fs:[0], esp
call fcn.00432fa0
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [esp + 8]
mov dword [esp + 0x1c], edi
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0xc]
mov dword [esp + 0x282c], 1
call sub.MFC42.DLL_CString::CString_4
push 0x445e70
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2830], 2
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 8]
push edi
push eax
mov ecx, esi
mov byte [esp + 0x2834], 3
call fcn.0041c230
lea ecx, [esp + 0xc]
push edi
push ecx
mov ecx, esi
call fcn.0041c230
test eax, eax
je 0x423fd2
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_4
lea edx, [esp + 0x10]
push edi
push edx
mov ecx, esi
mov byte [esp + 0x2834], 4
call fcn.0041c230
test eax, eax
je 0x423f9c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x14]
push edi
push eax
mov ecx, esi
mov byte [esp + 0x2834], 5
call fcn.0041c230
test eax, eax
je 0x423f5e
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push 0x2800
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
jmp 0x423f7c
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push 0x2800
push ecx
push str._o_zd_e_faul_t_
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x14]
mov esi, eax
mov edi, 1
mov byte [esp + 0x282c], 4
call sub.MFC42.DLL_CString::CString
jmp 0x423fbf
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x24]
push 0x2800
push edx
push str._o_zd_e_faul_t_
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x282c], 3
call sub.MFC42.DLL_CString::CString
jmp 0x423ff0
mov ecx, dword [esp + 8]
lea edx, [esp + 0x20]
push ecx
push 0x2800
push edx
push str._o_zd_e_faul_t_
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
lea eax, [esp + 0x20]
push str._o_zd_e_faul_t_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x42402e
test edi, edi
jne 0x424020
xor eax, eax
test esi, esi
jbe 0x424020
mov cl, byte [esp + eax + 0x20]
test cl, cl
jne 0x42401b
mov byte [esp + eax + 0x20], 0x3b
inc eax
cmp eax, esi
jb 0x42400e
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_2
mov esi, dword [esp + 0x2834]
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x282c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x282c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x282c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2824]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2828
ret 4
Function at 0x4254e0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x436af8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push esi
mov esi, ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_4
push 0x445e70
lea ecx, [esp + 0xc]
mov dword [esp + 0x78], 0
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 4]
push 0
push eax
mov ecx, esi
mov byte [esp + 0x7c], 1
call fcn.0041c230
lea ecx, [esp + 8]
push 0
push ecx
mov ecx, esi
call fcn.0041c230
mov edx, dword [esp + 4]
pop esi
mov al, byte [edx]
cmp al, 0x22
je 0x4255bb
cmp al, 0x27
je 0x4255bb
push 0x444404
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp]
lea edx, [esp + 0xc]
push ecx
push eax
push edx
mov byte [esp + 0x7c], 2
call sub.MFC42.DLL_operator_2
push 0x444404
push eax
lea eax, [esp + 0x10]
mov byte [esp + 0x78], 3
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 4]
mov byte [esp + 0x74], 4
call fcn.00432ada
lea ecx, [esp + 8]
mov byte [esp + 0x70], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x70], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 4]
mov eax, dword [ecx - 8]
test eax, eax
jle 0x4255e2
push 0x4445ec
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::operator_1
lea edx, [esp + 4]
lea ecx, [esp]
push edx
call fcn.004328ca
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov edx, dword [esp + 4]
lea ecx, [esp + 0x28]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
mov dword [esp + 0x50], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x425661
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 4]
mov byte [esp + 0x70], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp]
mov dword [esp + 0x70], 0xffffffff
call sub.MFC42.DLL_CString::CString
fld qword [0x439ed0]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret
lea ecx, [esp + 4]
mov byte [esp + 0x70], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp]
mov dword [esp + 0x70], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x68]
fld qword [0x438b50]
mov dword fs:[0], ecx
add esp, 0x74
ret
Function at 0x4256a0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x436b2f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
xor ebx, ebx
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], ebx
call sub.MFC42.DLL_CString::CString_4
mov ebp, 1
push ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x4256f4
mov esi, dword [esp + 0x24]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x10], ebp
jmp 0x425713
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x425736
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
push edi
push ebp
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp esi, ebx
mov edi, eax
je 0x425757
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esi, dword [esp + 0x28]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x4257a0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x436b48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString_4
xor ebx, ebx
lea eax, [esp + 0x10]
push ebx
push eax
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.0041c230
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x425827
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
fld qword [0x438b50]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x4258b0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
jle 0x4258a0
inc eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4258b0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x4258b0
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
je 0x425895
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x3ff00000
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x4258b0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x3ff00000
call dword [sym.imp.USER32.dll_CloseClipboard]
test ebx, ebx
je 0x4258c1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
fld qword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425ce0
Capabilities:
Access peb ldr_data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x436c2f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 8]
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 4]
mov byte [esp + 0x38], 4
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x14]
push 0
push eax
mov ecx, esi
mov byte [esp + 0x40], 5
call fcn.0041c230
lea ecx, [esp + 0x10]
push 0
push ecx
mov ecx, esi
call fcn.0041c230
lea edx, [esp + 0xc]
push 0
push edx
mov ecx, esi
call fcn.0041c230
lea eax, [esp + 8]
push 0
push eax
mov ecx, esi
call fcn.0041c230
mov ecx, dword [esp + 0xc]
push 0x444648
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x425e33
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x2e]
push ecx
mov ecx, dword [esp + 0x30]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x32]
push eax
mov eax, dword [esp + 0x34]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x30]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x3a]
push eax
mov eax, dword [esp + 0x3a]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x2c]
push str._02d__02d__d__02d:_02d:_02d._03d_Function__s__line__s:__s_n
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x34]
push esi
push 1
mov ecx, dword [eax - 8]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x40
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov esi, dword [esp + 0x40]
lea edx, [esp + 4]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x18], 1
lea ecx, [esp + 4]
mov byte [esp + 0x38], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x42ab30
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4372b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
lea ecx, [esp]
mov dword [esp + 4], 0
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x10]
mov dword [esp + 0x24c], 1
push eax
push 0
mov dword [esp + 0x18], 0x30
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.MSVCRT.dll__getpid]
cmp dword [esp + 8], eax
jne 0x42abc1
mov edx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push 0x1f4
lea ecx, [esp + 0x48]
push 0
push ecx
push 0x200
push 0xd
push edx
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
je 0x42abe8
jmp 0x42abda
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x40]
push 0x200
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42abe8
lea eax, [esp + 0x40]
lea ecx, [esp]
push eax
call sub.MFC42.DLL_CString::operator_2
push esi
mov esi, dword [esp + 0x258]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x250], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x248]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x250
ret 4

Function at 0x42b9e0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push edi
mov edi, dword [esi]
xor edx, edx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x24], edi
mov edi, dword [esi + 4]
mov dword [esp + 0x1c], edi
mov edi, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov edi, 0x20
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov esi, ecx
sub edx, 0x61c88647
shr esi, 5
add esi, ebx
mov ebx, ecx
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x14]
xor esi, ebx
lea ebx, [edx + ecx]
xor esi, ebx
mov ebx, dword [esp + 0x10]
add eax, esi
mov esi, eax
shr esi, 5
add esi, ebx
mov ebx, eax
shl ebx, 4
add ebx, ebp
xor esi, ebx
lea ebx, [edx + eax]
xor esi, ebx
add ecx, esi
dec edi
jne 0x42ba16
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], eax
mov dword [edx + 4], ecx
pop ebx
add esp, 8
ret 0xc

Function at 0x42ba70
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
xor eax, eax
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov ebx, edx
mov ebp, edx
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, eax
and ebp, 3
add ebx, edx
mov ebp, dword [esi + ebp*4]
add ebp, eax
sub eax, 0x61c88647
xor ebx, ebp
add ecx, ebx
mov ebx, ecx
mov ebp, ecx
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, eax
shr ebp, 0xb
and ebp, 3
add ebx, ecx
mov ebp, dword [esi + ebp*4]
add ebp, eax
xor ebx, ebp
add edx, ebx
cmp eax, 0xc6ef3720
jne 0x42ba83
mov dword [edi], ecx
mov dword [edi + 4], edx
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x42cdd0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 5
jae 0x42cea9
mov eax, dword [esp + 0x10]
cmp eax, 1
mov eax, dword [esp + 8]
jne 0x42ce6e
test eax, eax
jne 0x42ce24
push 0x40040
push str.Info
push str.This_program_is_not_designed_for_Windows_95._n_nThe_minimum_platform_required_for_ozexe_is_Windows_XP_or_Windows_2000.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x94
ret
cmp eax, 0xa
jne 0x42ce49
push 0x40040
push str.Info
push str.This_program_is_not_designed_for_Windows_98._n_nThe_minimum_platform_required_for_ozexe_is_Windows_XP_or_Windows_2000.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x94
ret
cmp eax, 0x5a
jne 0x42cea0
push 0x40040
push str.Info
push str.This_program_is_not_designed_for_Windows_Me._n_nThe_minimum_platform_required_for_ozexe_is_Windows_XP_or_Windows_2000.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x94
ret
cmp eax, 0x33
push 0x40040
push str.Info
jne 0x42ce93
push str.This_program_is_not_designed_for_Windows_NT_3.51._n_nThe_minimum_platform_required_for_ozexe_is_Windows_XP_or_Windows_2000.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x94
ret
push str.This_program_is_not_designed_for_Windows_NT_4.0._n_nThe_minimum_platform_required_for_ozexe_is_Windows_XP_or_Windows_2000.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x94
ret
mov eax, 1
add esp, 0x94
ret
Function at 0x42d270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4375fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
push 0xa
push 0x81
push 0
mov dword [ebx + 0xf0], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x42d2bc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [ebx + 0xf0], eax
jne 0x42d2f8
push eax
mov eax, dword [ebx + 0x8c]
push eax
push str.Failed_to_read_instructions.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x42d32d
mov ecx, dword [ebx + 0x8c]
push eax
push ecx
push str.Failed_to_load_instructions.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x42d362
mov edx, dword [ebx + 0x8c]
push eax
push edx
push str.Failed_to_lock_instructions.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov eax, dword [ebx + 0xf0]
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebx + 0xec], edi
jne 0x42d3a6
mov ecx, dword [ebx + 0x8c]
push eax
push ecx
push str.Not_enough_memory_to_load.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [ebx + 0xf0]
xor eax, eax
inc ecx
push 0x28
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx + 0xf0]
mov edi, dword [ebx + 0xec]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0x18], 0
je 0x42d40a
mov ecx, dword [ebx + 0xf0]
mov edx, dword [ebx + 0xec]
push 0
push ecx
push edx
mov ecx, eax
call sub.MFC42.DLL_CMemFile::CMemFile
jmp 0x42d40c
xor eax, eax
xor ecx, ecx
mov dword [ebx + 0xf4], eax
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x42e440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0xa
xor ebp, ebp
push 0x84
mov ebx, ecx
push ebp
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebp
jne 0x42e474
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x14], edi
jne 0x42e4a4
mov eax, dword [ebx + 0x8c]
push ebp
push eax
push str.Failed_to_read_devices.
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x42e4ce
mov ecx, dword [ebx + 0x8c]
push ebp
push ecx
push str.Failed_to_load_devices.
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebp
mov dword [esp + 0x18], eax
jne 0x42e4fb
mov edx, dword [ebx + 0x8c]
push ebp
push edx
push str.Failed_to_lock_devices.
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
lea esi, [edi + 1]
push esi
call sub.MFC42.DLL_operatornew
mov edx, eax
add esp, 4
cmp edx, ebp
mov dword [esp + 0x10], edx
jne 0x42e52f
mov eax, dword [ebx + 0x8c]
push ebp
push eax
push str.Not_enough_memory_to_load.
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov ecx, esi
xor eax, eax
mov edi, edx
push edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [esp + 0x1c]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x18]
mov edi, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.0042e630
cmp eax, ebp
mov dword [ebx + 0x13c], eax
jbe 0x42e611
lea ecx, [eax + eax*2]
shl ecx, 4
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
cmp eax, ebp
mov dword [ebx + 0x10c], eax
jne 0x42e59f
mov edx, dword [esp + 0x10]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [ebx + 0x13c]
xor ecx, ecx
cmp eax, ebp
jbe 0x42e601
xor eax, eax
mov edx, dword [ebx + 0x10c]
inc ecx
mov dword [edx + eax + 0x24], ebp
mov edx, dword [ebx + 0x10c]
mov dword [edx + eax + 0x28], ebp
mov edx, dword [ebx + 0x10c]
mov dword [edx + eax + 0x2c], ebp
mov edx, dword [ebx + 0x10c]
mov dword [edx + eax + 0x1c], ebp
mov edx, dword [ebx + 0x10c]
mov dword [edx + eax + 0x20], ebp
mov edx, dword [ebx + 0x10c]
mov dword [edx + eax + 0x14], ebp
mov edx, dword [ebx + 0x10c]
mov dword [edx + eax + 0x18], ebp
mov edx, dword [ebx + 0x13c]
add eax, 0x30
cmp ecx, edx
jb 0x42e5ad
mov eax, dword [esp + 0x10]
mov ecx, ebx
push eax
call fcn.0042e670
mov esi, eax
jmp 0x42e615
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret