joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412722
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41274e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4127eb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412815
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412790
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41281a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412815
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x401dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x401de6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401e7a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401e35
cmp eax, 0x40
je 0x401e35
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401dd9
cmp eax, 0x40
je 0x401dd9
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x401dd9
mov dword [esp + 8], 0x34
mov dword [esp + 4], 0x4040c0
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x4097c8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40987c
jmp 0x409871
cmp dword [esi + 0x10], 0x1000
jne 0x40985d
test byte [esi + 0x15], 1
jne 0x40985d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x40981c
cmp eax, 2
je 0x40981c
cmp eax, 0x10
je 0x40981c
cmp eax, 0x20
jne 0x409831
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409831
mov bl, 1
xor ebp, ebp
jmp 0x409842
mov eax, dword [esi]
add eax, ebp
call fcn.004097c0
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409835
test bl, bl
je 0x40985d
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40987c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4097f4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x3535352d
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x3cd36904
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4012d0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x4012fe
mov eax, dword [esp + 0x20]
push str.Load_DLL_Error
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.STMass_Enum_Reenumerate
push eax
call edi
mov ecx, dword [esi + 0x38]
push str.STMass_Enum_GetNbDevices
push ecx
mov dword [esi + 0x20], eax
call edi
mov edx, dword [esi + 0x38]
push str.STMass_Enum_GetDevice
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x38]
push str.STMass_GetDeviceInfo
push eax
call edi
mov ecx, dword [esi + 0x38]
push str.STMass_OpenDevice
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi + 0x38]
push str.STMass_CloseDevice
push edx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x38]
push str.STMass_SendCommand
push eax
call edi
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x2c], eax
test ecx, ecx
je 0x40143e
mov edx, dword [esi + 0x14]
test edx, edx
je 0x40143e
mov edx, dword [esi + 0x18]
test edx, edx
je 0x40143e
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x40143e
mov edx, dword [esi + 0x24]
test edx, edx
je 0x40143e
mov edx, dword [esi + 0x28]
test edx, edx
je 0x40143e
test eax, eax
je 0x40143e
call ecx
call dword [esi + 0x14]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4013d8
mov ecx, dword [esp + 0x20]
push str.No_Device
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
xor ebx, ebx
test eax, eax
jbe 0x40140e
lea ebp, [esi + 0x34]
lea edi, [esi + 0x30]
push edi
push ebx
call dword [esi + 0x18]
mov edx, dword [edi]
push ebp
push edx
call dword [esi + 0x24]
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00401460
cmp word [esp + 0x18], 0x3744
je 0x40142c
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jb 0x4013e4
mov ecx, dword [esp + 0x20]
push str.No_Device_Connected
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
mov eax, 1
pop edi
mov dword [esi + 0x3c], eax
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
mov edx, dword [esp + 0x20]
push str.Load_Func_Error
push edx
call sub.MFC42.DLL_CString::Format
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x4012d5
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x4012fe
mov eax, dword [esp + 0x20]
push str.Load_DLL_Error
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.STMass_Enum_Reenumerate
push eax
call edi
mov ecx, dword [esi + 0x38]
push str.STMass_Enum_GetNbDevices
push ecx
mov dword [esi + 0x20], eax
call edi
mov edx, dword [esi + 0x38]
push str.STMass_Enum_GetDevice
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x38]
push str.STMass_GetDeviceInfo
push eax
call edi
mov ecx, dword [esi + 0x38]
push str.STMass_OpenDevice
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi + 0x38]
push str.STMass_CloseDevice
push edx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x38]
push str.STMass_SendCommand
push eax
call edi
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x2c], eax
test ecx, ecx
je 0x40143e
mov edx, dword [esi + 0x14]
test edx, edx
je 0x40143e
mov edx, dword [esi + 0x18]
test edx, edx
je 0x40143e
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x40143e
mov edx, dword [esi + 0x24]
test edx, edx
je 0x40143e
mov edx, dword [esi + 0x28]
test edx, edx
je 0x40143e
test eax, eax
je 0x40143e
call ecx
call dword [esi + 0x14]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4013d8
mov ecx, dword [esp + 0x20]
push str.No_Device
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
xor ebx, ebx
test eax, eax
jbe 0x40140e
lea ebp, [esi + 0x34]
lea edi, [esi + 0x30]
push edi
push ebx
call dword [esi + 0x18]
mov edx, dword [edi]
push ebp
push edx
call dword [esi + 0x24]
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00401460
cmp word [esp + 0x18], 0x3744
je 0x40142c
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jb 0x4013e4
mov ecx, dword [esp + 0x20]
push str.No_Device_Connected
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
mov eax, 1
pop edi
mov dword [esi + 0x3c], eax
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
mov edx, dword [esp + 0x20]
push str.Load_Func_Error
push edx
call sub.MFC42.DLL_CString::Format
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4

Function at 0x401fb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
lea eax, [esp]
push ebp
push esi
push edi
push str.NewType903Program
mov ebp, ecx
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
add esp, 8
xor ecx, ecx
test edi, edi
jle 0x401ffe
push ebx
mov eax, ecx
mov ebx, 0x11
cdq
idiv ebx
mov bl, byte [ecx + esi]
lea eax, [esp + 0x21]
sub eax, edx
sub bl, byte [eax]
mov al, byte [esp + edx + 0x10]
xor bl, al
mov byte [ecx + esi], bl
inc ecx
cmp ecx, edi
jl 0x401fda
pop ebx
push edi
push esi
push 0xa
mov ecx, ebp
call fcn.00402020
pop edi
pop esi
pop ebp
add esp, 0x14
ret 8
Function at 0x402080
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 0x14
lea eax, [esp]
push edi
push str.NewType903Program
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, dword [esp + 0x2c]
add esp, 8
xor ecx, ecx
test edi, edi
jle 0x4020cc
push ebx
push esi
mov esi, dword [esp + 0x28]
mov eax, ecx
mov ebx, 0x11
cdq
idiv ebx
mov bl, byte [ecx + esi]
mov al, byte [esp + edx + 0xc]
xor al, bl
lea ebx, [esp + 0x1d]
sub ebx, edx
add al, byte [ebx]
mov byte [ecx + esi], al
inc ecx
cmp ecx, edi
jl 0x4020a7
pop esi
pop ebx
pop edi
add esp, 0x14
ret 0xc

Function at 0x402340
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x409595
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 0xc], 0
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x18]
push pe_nt_image_headers32
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x12c]
push pe_nt_image_headers32
push ecx
push 0x40d40c
mov dword [esp + 0x240], 1
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, esi
call fcn.00402420
mov edx, dword [esp + 8]
lea eax, [eax + edx*2]
mov dword [esp + 8], eax
push eax
lea eax, [esp + 8]
push 0x40d408
push eax
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x234]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00409010
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x220], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x220
ret 4
Function at 0x402840
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x409650
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, 4
push str.SoftwareLingXiangXCWriter
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], esi
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
push 0xf003f
push ebx
push ecx
push 0x80000002
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402925
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
push str.Install_Time
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::operator_1
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push ebx
mov dword [esp + 0x2c], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edx
push eax
call esi
test eax, eax
jne 0x402918
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
push str.Run_Time
mov dword [ecx], edx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push ebx
push eax
push ecx
call esi
test eax, eax
je 0x40294b
lea ecx, [esp + 8]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ecx
mov dword [edx], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x4029a0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x409670
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push str.SoftwareLingXiangXCWriter
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402a12
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
lea ecx, [esp]
call sub.MFC42.DLL_CString::CString_2
push str.Run_Time
lea ecx, [esp + 4]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0x20]
mov ecx, dword [esp]
lea eax, [esp + 0xc]
push 4
push eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x10]
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402a92
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x403860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4097af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
lea eax, [esp + 0x10]
mov edi, 1
push 0xc
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], edi
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x40d518
push eax
call esi
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4038da
mov esi, dword [esp + 0x24]
push 0x40dc60
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0xc], edi
jmp 0x40395a
lea ecx, [esp + 0x10]
push 9
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push str..........
push eax
call esi
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x403910
push 0x40d508
jmp 0x40394b
lea edx, [esp + 0x10]
push 6
push edx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push str.......
push eax
call esi
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x403946
push str.......
jmp 0x40394b
push str..........
mov esi, dword [esp + 0x28]
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x407070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebp
push esi
push edi
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
and ecx, 0xffff
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4070a0
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4070bf
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push ebx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
lea eax, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [esp + 0x10]
push 0
push ecx
call fcn.00408d60
mov edx, dword [esp + 0x28]
add esp, 8
push ebx
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 0xc
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
sub ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
pop edi
cmp edi, ebx
jne 0x40b525
xor eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
or eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
test eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
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 [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x4010c9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x41b2f8
mov ebx, eax
push 0x82
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x40113e
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 4]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [eax], esi
call fcn.00409135
push esi
mov edi, eax
push 0
push edi
call fcn.00410730
push esi
push dword [ebp - 4]
push edi
call fcn.0040cc00
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret