joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c40f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [0x1016334c]
add edx, 0xfffff83c
mov dword [0x10163350], edx
mov dword [0x1016334c], 0x1acf
mov edx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
lea edx, section..data
imul esi, ecx, 0x24
mov edi, edx
add edi, esi
add edi, 8
imul esi, ecx, 0x24
add edx, esi
add edx, 4
add ecx, 1
mov esi, dword [edi]
movzx edx, word [edx]
xor edx, esi
add edx, eax
cmp ecx, 0x1de
mov eax, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
jne 0x100c4125
lea eax, [0x100c5243]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ecx
call fcn.100c4410
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call fcn.100c4910
mov ecx, eax
mov dword [0x10163368], eax
mov eax, esp
mov edx, dword [ebp - 0x3c]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
lea edx, section..data
mov esi, eax
add esi, 1
imul edi, eax, 0x24
mov ebx, edx
add ebx, edi
add ebx, 4
mov edi, dword [ebp - 0x48]
add edi, ecx
mov dword [ebp - 0x54], eax
imul eax, eax, 0x24
mov dword [ebp - 0x58], eax
mov eax, edx
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp - 0x58]
add eax, ecx
mov ecx, dword [ebp - 0x54]
imul ecx, ecx, 0x24
add edx, ecx
add edx, 8
mov ecx, dword [edx]
mov eax, dword [eax]
movzx edx, word [ebx]
xor edx, ecx
mov dword [esp], edi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x64], esi
call fcn.100c4810
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
add eax, ecx
mov edx, dword [ebp - 0x64]
cmp edx, 0x1de
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], eax
jne 0x100c41d9
mov eax, dword [ebp - 0x48]
add eax, 0x147ddd
mov dword [0x1016334c], 0x811
mov ecx, dword [ebp - 0x48]
add ecx, 0xdcfb5
mov edx, dword [ebp - 0x48]
mov dword [esp], edx
mov dword [esp + 4], edx
mov esi, dword [ebp - 0x3c]
mov dword [esp + 8], esi
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], ecx
call fcn.100c3a40
xor eax, eax
mov ecx, dword [0x1016334c]
add ecx, 0x1234
mov dword [0x10163350], ecx
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x68]
mov dword [ecx], edx
mov dword [ecx + 4], 0x155400
mov dword [0x1016334c], 0x4ed
mov edx, dword [ebp - 0x6c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0x2090
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100c4610
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10163350]
add eax, 0xfffff55c
mov dword [0x1016334c], eax
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x10163350], 0x1ffe
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x100c466c
mov eax, dword [ebp - 0x14]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
jge 0x100c4698
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
je 0x100c4698
jmp 0x100c4655
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x100c4711
jmp 0x100c4741
mov eax, dword [ebp - 0x18]
mov ecx, dword [0x10163350]
add ecx, 0x10f2
mov dword [0x10163350], ecx
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
jne 0x100c4741
mov dword [0x10163350], 0xe77
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x100c4741
mov dword [0x1016334c], 0xa83
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x100c4741
mov dword [0x1016334c], 0xca
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x100c4684
jmp 0x100c4741
mov dword [0x1016334c], 0xf8e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x100c4741
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
je 0x100c4748
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x100c4748
mov eax, dword [ebp - 0x20]
add esp, 0x20
pop ebp
ret
Function at 0x100c4940
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x10163354], 0
mov dword [0x10163358], 0
mov dword [0x10163364], 0
mov ebx, dword [0x1016334c]
add ebx, 0xfffff25f
mov dword [0x10163350], ebx
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
je 0x100c4a7b
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov edx, dword [0x10163354]
mov esi, eax
add esi, 1
add edx, 1
mov dword [ebp - 0x24], eax
mov eax, edx
cdq
idiv ecx
mov dword [0x10163354], edx
mov dword [0x1016334c], 0xffffe88b
mov edi, dword [0x10163358]
mov ebx, dword [ebp - 0x1c]
movzx edx, byte [ebx + edx]
add edx, edi
mov eax, edx
cdq
idiv ecx
mov dword [0x10163358], edx
mov ecx, dword [0x10163354]
mov bl, byte [ebx + ecx]
mov byte [0x1016335c], bl
mov edi, dword [ebp - 0x1c]
mov bl, byte [edi + edx]
mov byte [edi + ecx], bl
mov bl, byte [0x1016335c]
mov ecx, dword [0x10163358]
mov byte [edi + ecx], bl
mov ecx, dword [0x10163354]
movzx ecx, byte [edi + ecx]
mov edx, dword [0x10163358]
movzx edx, byte [edi + edx]
add edx, ecx
mov dword [0x1016334c], 0x1ae9
and edx, 0xff
mov dword [0x10163364], edx
mov bl, byte [edi + edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
movzx ecx, byte [ecx + edx]
mov dword [esp], ecx
movzx ecx, bl
mov dword [esp + 4], ecx
mov dword [ebp - 0x28], esi
call fcn.10001000
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov byte [ecx + edx], al
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x10]
cmp esi, edi
mov dword [ebp - 0x20], esi
jne 0x100c49a1
mov dword [0x1016334c], 0x18d5
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402798
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x41a9c5
call fcn.0041a290
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dword [esi + 0x12c], edi
je 0x4028c0
test edi, edi
jl 0x4028c0
cmp edi, 3
jge 0x4028c0
push ebx
push edi
call fcn.00401e69
lea eax, [edi + edi*2]
lea ebx, [esi + eax*4]
push 5
push dword [ebx + 0x130]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [ebx + 0x130]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 0x12c]
cmp eax, 0xffffffff
je 0x402825
push 0
lea eax, [eax + eax*2]
push dword [esi + eax*4 + 0x130]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x12c]
push 0
lea eax, [eax + eax*2]
push dword [esi + eax*4 + 0x130]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 0x12c]
mov dword [esi + 0x12c], edi
push dword [ebx + 0x134]
lea ecx, [esi + 0x84]
mov dword [ebp + 8], eax
call fcn.00401c1c
push dword [ebx + 0x130]
call dword [sym.imp.USER32.dll_SetFocus]
lea eax, [edi + edi*2 + 0x4e]
push dword [esi + eax*4]
lea ecx, [ebp - 0x10]
call fcn.0040221e
mov eax, dword [ebp - 0x10]
and dword [ebp - 4], 0
test eax, eax
mov ebx, dword [ebp + 8]
je 0x402876
mov ecx, dword [eax]
push ebx
push edi
push eax
call dword [ecx + 0xc]
cmp ebx, 0xffffffff
je 0x4028ae
lea eax, [ebx + ebx*2 + 0x4e]
push dword [esi + eax*4]
lea ecx, [ebp + 8]
call fcn.0040221e
mov eax, dword [ebp + 8]
test eax, eax
mov byte [ebp - 4], 1
je 0x4028a0
mov ecx, dword [eax]
push ebx
push edi
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp + 8]
test eax, eax
mov byte [ebp - 4], 0
je 0x4028ae
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
pop ebx
je 0x4028c0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x403b20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41ab9a
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
mov dword [esp + 0x10], esi
call fcn.00417e2a
xor edi, edi
mov dword [esi + 0x14], edi
mov dword [esp + 0x1c], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
lea ebx, [esi + 0x28]
mov ecx, ebx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
lea ebp, [esi + 0x2c]
mov ecx, ebp
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov eax, dword [esp + 0x24]
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 4], eax
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], edi
mov ecx, dword [esi + 0x14]
cmp ecx, edi
mov byte [esp + 0x1c], 7
je 0x403b98
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x28]
push eax
mov ecx, esi
mov dword [esi + 0x14], edi
call fcn.004038b0
push 0x41daa8
mov ecx, ebx
mov dword [esi + 0x24], edi
call dword [0x41d3f4]
push 0x41daa8
mov ecx, ebp
call dword [0x41d3f4]
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x405130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push 2
push eax
push esi
mov ebx, ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4051bb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_GetDC]
lea ecx, [esp + 0x14]
push ecx
push esi
mov ecx, ebx
mov edi, eax
call fcn.00405070
test eax, eax
mov edx, dword [esp + 0x18]
mov dword [edx], eax
je 0x40518f
push 0
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectPalette]
push edi
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [esp + 0x14]
mov ebx, dword [esi]
push 0
push esi
lea ecx, [esi + eax*4]
add ecx, ebx
push ecx
push 4
push esi
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push edi
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
mov eax, esi
pop esi
pop ebx
ret 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x406560
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41b237
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x858
mov eax, dword [0x4296b8]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x85c], eax
mov dword [esp + 0x18], ebx
xor eax, eax
mov word [esp + 0x30], bx
mov ecx, 0x208
lea edi, [esp + 0x32]
rep stosd dword es:[edi], eax
push 0x410
lea eax, [esp + 0x34]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x24], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
jne 0x4065fe
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
jne 0x4065fe
mov esi, dword [ebp + 8]
push 0x41daa8
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
mov eax, esi
jmp 0x4066c6
lea edx, [esp + 0xf]
push edx
push edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x17], bl
call fcn.00406500
mov esi, dword [esp + 0x24]
push esi
push edi
push ebx
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x87c], ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40664e
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x41f178
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x406660
mov edi, dword [ebp + 8]
push 0x41daa8
mov ecx, edi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
jmp 0x4066b7
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + 0x14]
movzx edx, word [eax + 0x16]
push ecx
movzx ecx, word [eax + 0x10]
push edx
movzx edx, word [eax + 0x12]
push ecx
push edx
lea eax, [esp + 0x20]
push 0x41f160
push eax
mov byte [esp + 0x884], 1
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
mov edi, dword [ebp + 8]
add esp, 0x18
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
cmp esi, ebx
je 0x4066c4
push esi
call sub.MFC71U.DLL_CNoTrackObject::operator_new
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x864]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x85c]
call fcn.0041a43b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a570
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x41b818
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x14]
mov dword [esi + 0x10], ecx
push edx
lea ecx, [esi + 0x14]
mov dword [esp + 0xc], esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea eax, [edi + 0x30]
push eax
lea ecx, [esi + 0x30]
mov dword [esp + 0x18], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
add edi, 0x4c
push edi
lea ecx, [esi + 0x4c]
mov byte [esp + 0x18], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40e360
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41bad9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x80]
test eax, eax
jne 0x40e417
push esi
lea ecx, [esp + 8]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
push 0x410
push 0x410
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call dword [sym.imp.MFC71U.DLL_CRecordset::GetBoundParamIndex]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_CDC::ReleaseAttribDC]
push 0x420654
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_1]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40e405
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorW]
test eax, eax
je 0x40e405
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x80], eax
mov dword [edi + 0xf4], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40e430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x838
mov eax, dword [0x4296b8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x83c], eax
lea eax, [esp + 8]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40e4af
mov edx, dword [esp + 8]
mov word [esp + 0x10], ax
mov ecx, 0x208
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
mov dword [esp + 0x1c], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x83c]
mov eax, esi
call fcn.0041a43b
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4105d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41bd45
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call sub.MFC71U.DLL_CWnd::CWnd
xor edi, edi
mov dword [esi], 0x420b18
mov dword [esp + 0x20], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x6c], 0x41ecdc
lea ebx, [esi + 0x78]
mov ecx, ebx
mov byte [esp + 0x20], 1
call sub.MFC71U.DLL_CPropsetPropExchange::CPropsetPropExchange
lea ebp, [esi + 0x8c]
mov ecx, ebp
mov byte [esp + 0x20], 2
call sub.MFC71U.DLL_CStdioFile::CStdioFile
push 0xf
mov byte [esp + 0x24], 3
call dword [sym.imp.USER32.dll_GetSysColor]
push 8
mov dword [esi + 0x54], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 0xffffffffffffffff
push edi
mov ecx, ebx
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0x74], edi
call sub.MFC71U.DLL_CObArray::SetSize
push 0xffffffffffffffff
push edi
mov ecx, ebp
call sub.MFC71U.DLL_CPtrArray::SetSize
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
push 0x410
push 0x411
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 4
call dword [sym.imp.MFC71U.DLL_CRecordset::GetBoundParamIndex]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_CDC::ReleaseAttribDC]
push 0x420654
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_1]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x4106f4
push 0x6a
push ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
cmp eax, edi
je 0x4106f4
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [esi + 0xa8], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x18]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x412d60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push ebp
lea eax, [esp + 8]
push eax
push 1
xor ebx, ebx
push ebx
push ecx
push edx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov ebp, dword [esp + 0x28]
mov word [ebp], bx
jne 0x412df6
push esi
mov esi, dword [esp + 0x30]
push edi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esi + 1]
lea eax, [esi + esi]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
call fcn.00412cf0
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ebx, eax
test ebx, ebx
jne 0x412de5
push esi
push edi
push ebp
call dword [sym.imp.MSVCR71.dll_wcsncpy]
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x412df2
push edi
call sub.MFC71U.DLL_CNoTrackObject::operator_new
add esp, 4
pop edi
mov eax, ebx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
Function at 0x413170
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41c2ec
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
mov dword [esp + 0x10], esi
call sub.MFC71U.DLL_CDialog::CDialog
xor ebx, ebx
mov dword [esi], 0x4210d8
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x74], ebx
lea edi, [esi + 0x84]
mov ecx, edi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esi + 0x88]
mov byte [esp + 0x1c], 2
call fcn.004105d0
lea ecx, [esi + 0x138]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esi + 0x13c]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
lea ebp, [esi + 0x144]
mov ecx, ebp
mov byte [esp + 0x1c], 5
call sub.MFC71U.DLL_CWnd::CWnd
mov dword [ebp], 0x41ee58
mov ebp, dword [esp + 0x24]
push ebp
mov ecx, edi
mov byte [esp + 0x20], 6
mov byte [esi + 0x19c], bl
mov dword [esi + 0x78], ebx
call dword [0x41d3f4]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x28]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push edx
push eax
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x413294
mov ecx, dword [esi + 0x74]
xor eax, eax
cmp ecx, ebx
je 0x41324c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x74], ebx
cmp eax, ebx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x74], ecx
jne 0x413294
lea edx, [esp + 0x28]
push edx
mov edx, dword [esi + 0x74]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebx
push ebp
mov edi, 4
push edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esp + 0x24], edi
jne 0x413294
cmp eax, ebx
jne 0x413294
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x78]
cmp eax, ebx
je 0x4132a5
cmp eax, 2
je 0x4132a5
mov ebx, 1
mov eax, dword [esp + 0x30]
mov ecx, eax
shr ecx, 1
and ecx, 1
and eax, 1
mov dword [esi + 0x80], eax
pop edi
mov byte [esi + 0x7c], bl
mov dword [esi + 0x140], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x198], 1
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10