joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4051dd
Capabilities:
Terminate process

Disassembly:
push esi
push dword [ecx + 0x1c]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x405306
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 0
call sub.MSVCRT.dll_time
pop ecx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp - 4]
mov edi, eax
call sub.MSVCRT.dll_srand
call sub.MSVCRT.dll_rand
mov esi, 0xffff
cdq
mov ecx, esi
idiv ecx
mov ebx, edx
lea eax, [ebx + edi]
push eax
call sub.MSVCRT.dll_srand
call sub.MSVCRT.dll_rand
cdq
idiv esi
and byte [ebp - 0xc], 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], 0x25
mov byte [ebp - 0x1b], 0x30
mov byte [ebp - 0x1a], 0x34
mov byte [ebp - 0x19], 0x58
mov byte [ebp - 0x18], 0x25
mov byte [ebp - 0x17], 0x30
mov byte [ebp - 0x16], 0x38
mov byte [ebp - 0x15], 0x58
mov byte [ebp - 0x14], 0x25
mov byte [ebp - 0x13], 0x30
mov byte [ebp - 0x12], 0x38
mov byte [ebp - 0x11], 0x58
mov byte [ebp - 0x10], 0x25
mov byte [ebp - 0xf], 0x30
mov byte [ebp - 0xe], 0x34
mov byte [ebp - 0xd], 0x58
push edx
push edi
push dword [ebp - 4]
mov dword [ebp - 8], edx
push ebx
push eax
lea eax, [ebp - 0x38]
push eax
call sub.MSVCRT.dll_sprintf
lea eax, [ebp - 0x38]
add esp, 0x20
xor ecx, ecx
mov dword [ebp - 4], eax
mov eax, ecx
push 4
cdq
pop esi
idiv esi
cmp edx, 3
jne 0x4053f0
movsx eax, byte [ecx + 0x408205]
movsx edx, byte [ecx + 0x408206]
add eax, edx
push 0x10
movsx edx, byte [ecx + 0x408207]
add eax, edx
pop esi
cdq
idiv esi
cmp edx, 9
lea eax, [edx + 0x37]
jg 0x4053e8
lea eax, [edx + 0x30]
mov byte [ecx + str.271AE64F6C3C24B800004851D1494D5D.aspx], al
jmp 0x4053fe
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
mov al, byte [eax]
mov byte [ecx + str.271AE64F6C3C24B800004851D1494D5D.aspx], al
inc ecx
cmp ecx, 0x20
jl 0x4053b1
mov eax, edi
and eax, 3
dec eax
je 0x4054a9
dec eax
je 0x40545c
dec eax
mov byte [0x408228], 0x2e
je 0x40543e
mov byte [0x408229], 0x68
mov byte [0x40822a], 0x74
mov byte [0x40822b], 0x6d
mov byte [0x40822c], 0x6c
jmp 0x4054cc
mov byte [0x408229], 0x73
mov byte [0x40822a], 0x68
mov byte [0x40822b], 0x74
mov byte [0x40822c], 0x6d
jmp 0x4054cc
push 0xa
mov eax, ebx
xor edx, edx
pop ecx
div ecx
mov eax, dword [ebp - 8]
push 0x1a
mov byte [0x408228], 0x2e
add dl, 0x30
mov byte [0x408229], dl
xor edx, edx
div ecx
mov eax, edi
add dl, 0x30
mov byte [0x40822a], dl
xor edx, edx
div ecx
mov eax, dword [ebp - 8]
pop ecx
add dl, 0x30
mov byte [0x40822b], dl
xor edx, edx
div ecx
add dl, 0x41
mov byte [0x40822c], dl
jmp 0x4054cc
mov byte [0x408228], 0x2e
mov byte [0x408229], 0x61
mov byte [0x40822a], 0x73
mov byte [0x40822b], 0x70
mov byte [0x40822c], 0x78
and byte [0x40822d], 0
pop edi
pop esi
mov eax, str.271AE64F6C3C24B800004851D1494D5D.aspx
pop ebx
leave
ret
Function at 0x4059a6
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test edi, edi
pop ecx
mov esi, eax
jbe 0x4059d1
mov eax, dword [esp + 0xc]
push ebx
mov ecx, esi
sub eax, esi
mov edx, edi
mov bl, byte [eax + ecx]
xor bl, 0x42
mov byte [ecx], bl
inc ecx
dec edx
jne 0x4059c4
pop ebx
push 0x408230
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push edi
push esi
call fcn.00404b97
push esi
mov edi, eax
call fcn.00405a0a
add esp, 0x18
mov eax, edi
pop edi
pop esi
ret 0x10

Function at 0x43b652
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
sub esi, 0xab214b57
add ecx, esi
mov esi, esi
call fcn.0043b69f
or ecx, ecx
or ecx, esi
xor dword [edx], ebx
sub esi, esi
sub ecx, esi
add edx, 1
sub esp, 4
mov dword [esp], 0x909a06eb
mov ecx, dword [esp]
add esp, 4
or ecx, esi
add ecx, 0xda5ac614
cmp edx, edi
jne fcn.0043b652
add ecx, ecx
sub esi, 1
or esi, ecx
ret
Function at 0x4013a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40dd23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x40f738
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov dword [esp + 0x18], edi
mov ecx, ebx
call fcn.0040d380
mov dword [ebx], 0x40f724
lea ebx, [esi + 0x1c]
mov byte [esp + 0x18], 1
mov ecx, ebx
call fcn.0040d380
or eax, 0xffffffff
push 0x4146f8
mov dword [ebx], 0x40f6e8
push edi
mov dword [esi], 0x40f6fc
mov dword [esi + 0x54], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], 0x10
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x38], 0xc0c0c0
mov dword [esi + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x58], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x403550
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40df3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x40f7d0
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x4035e0
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x4035a7
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x4035d1
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x4035e6
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x4035e6
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x40f768
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x40f754
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x404800
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40e0a8
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push edi
mov edi, ecx
xor ebp, ebp
cmp dword [edi + 0x58], ebp
jne 0x404836
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push ebx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], ebp
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0x10]
or ebx, 0xffffffff
push ecx
mov byte [esp + 0x34], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp eax, ebp
mov dword [esp + 0x24], eax
jle 0x404940
push esi
cmp ebx, 0xffffffff
jne 0x404929
push 0x400
push 0x100
push 0x100
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [edi + 4]
push eax
push ebp
push edx
call dword [sym.imp.USER32.dll_GetMenuStringA]
push ebx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x40491c
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x40491c
mov edx, dword [edi + 0xc]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [edx + esi*4]
call fcn.00401250
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x404916
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x4048c7
jmp 0x40491c
mov ebx, ebp
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x28]
inc ebp
cmp ebp, eax
jl 0x40487b
test ebx, ebx
pop esi
jl 0x404940
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x404940
cmp ebx, eax
jl 0x404940
sub ebx, eax
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x4050b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x40e1d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x40f790
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
push ecx
push eax
push eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_1
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov ecx, esi
lea eax, [edi + 2]
push eax
lea eax, [esp + 0x1c]
push ebx
push eax
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 5]
mov ecx, esi
push eax
push ebx
call sub.MFC42.DLL_CDC::LineTo
lea ebp, [edi + 3]
lea eax, [ebx + 1]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 1]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [edi + 4]
lea ecx, [ebx + 2]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 7]
mov ecx, esi
push eax
lea eax, [ebx + 2]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [ebx + 3]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 3]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [edi + 2]
lea ecx, [ebx + 4]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 5]
mov ecx, esi
push eax
lea eax, [ebx + 4]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea ecx, [edi + 1]
lea eax, [ebx + 5]
push ecx
lea edx, [esp + 0x1c]
push eax
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 4]
mov ecx, esi
push eax
lea eax, [ebx + 5]
push eax
call sub.MFC42.DLL_CDC::LineTo
add ebx, 6
push edi
lea eax, [esp + 0x1c]
push ebx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
push ebp
push ebx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x10], 0x40f768
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x4062a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x40e380
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
mov eax, esi
mov ebp, ecx
push edi
xor edi, edi
mov ecx, dword [eax]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 0x40f7a4
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], edi
call fcn.00401510
test eax, eax
je 0x4062fe
push 0xf
jmp 0x406300
push 4
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
call ebx
cmp dword [esp + 0x40], edi
jne 0x406321
push 0x3fe33333
push 0x33333333
push eax
call fcn.00402430
add esp, 0xc
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
call fcn.00401500
test eax, eax
je 0x406379
mov eax, dword [edi + 4]
push 0xf
lea edx, [esp + 0x1c]
push 2
push edx
push eax
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [esp + 0x44]
push 7
test eax, eax
jne 0x40639d
call ebx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
add ecx, 4
push eax
add edx, 4
push ecx
push edx
push edi
mov ecx, ebp
call fcn.004050b0
jmp 0x4063b5
call ebx
mov ecx, dword [esi]
push eax
mov eax, dword [esi + 4]
add ecx, 5
add eax, 4
push eax
push ecx
push edi
mov ecx, ebp
call fcn.00404f10
mov dword [esp + 0x10], 0x40f768
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10

Function at 0x406910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
and esi, 0xffff
push 2
push esi
call sub.MFC42.DLL_AfxFindResourceHandle
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push 2
push esi
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x40694d
xor ebx, ebx
push 2
push esi
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x40694d
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40695e
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x40696e
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call fcn.004068d0
add esp, 4
cmp ax, 0x10
je 0x406984
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push edi
push ebx
call sub.MFC42.DLL_AfxLoadSysColorBitmap
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x406b20
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x414718]
sub esp, 0x134
test eax, eax
jne 0x406bf5
lea eax, [esp]
mov dword [0x414718], 1
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406bf5
push esi
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406be8
mov ecx, 5
mov esi, str.Windows_Classic.theme
lea edi, [esp + 0x14]
lea edx, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
call edi
cmp esi, eax
jl 0x406be8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
call edi
sub esi, eax
lea eax, [esp + esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x406be8
mov dword [0x414714], 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [0x414714]
add esp, 0x134
ret

Function at 0x4070b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0xf1
mov edi, ecx
push ebp
call sub.MFC42.DLL_AfxFindResourceHandle
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push 0xf1
push ebp
push esi
call ebx
test eax, eax
jne 0x4070f0
xor esi, esi
push 0xf1
push ebp
push esi
call ebx
test eax, eax
jne 0x4070f0
pop edi
pop esi
pop ebp
pop ebx
ret 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407103
pop edi
pop esi
pop ebp
pop ebx
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x407117
pop edi
pop esi
pop ebp
pop ebx
ret 4
xor eax, eax
mov ax, word [esi + 6]
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
xor edx, edx
add esp, 4
cmp word [esi + 6], dx
mov ebp, eax
jbe 0x407150
mov ecx, ebp
lea eax, [esi + 8]
xor ebx, ebx
inc edx
mov bx, word [eax]
add eax, 2
mov dword [ecx], ebx
xor ebx, ebx
mov bx, word [esi + 6]
add ecx, 4
cmp edx, ebx
jl 0x407138
xor ecx, ecx
mov cx, word [esi + 6]
push ecx
push ebp
mov ecx, edi
call sub.MFC42.DLL_CToolBar::SetButtons
push ebp
mov ebx, eax
call sub.MFC42.DLL_operatordelete
add esp, 4
test ebx, ebx
je 0x4071b1
xor ecx, ecx
xor eax, eax
mov cx, word [esi + 4]
mov ax, word [esi + 2]
push ecx
push eax
lea ebx, [ecx + 7]
lea edx, [eax + 7]
push ebx
push edx
mov ecx, edi
call sub.MFC42.DLL_CToolBar::SetSizes
mov ecx, dword [esp + 0x14]
xor edx, edx
mov dx, word [esi + 2]
xor eax, eax
mov dword [edi + 0xa0], edx
mov ax, word [esi + 4]
push ecx
mov ecx, edi
mov dword [edi + 0xa4], eax
call fcn.004071c0
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret 4
Function at 0x4085f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x4c
push esi
push edi
mov esi, ecx
call sub.MFC42.DLL_CWnd::SetFocus
mov eax, dword [esi + 0x4f0]
test eax, eax
je 0x40861b
mov ecx, dword [esi + 0x4f8]
mov edx, dword [esi + 0x4f4]
push ecx
push edx
push eax
call dword [sym.imp.WINMM.dll_PlaySoundA]
mov eax, dword [esi + 0x70]
test eax, eax
je 0x40864b
mov edi, dword [esi + 0x17c]
mov ecx, dword [esi + 0x20]
xor eax, eax
push 1
test edi, edi
sete al
push 0
push ecx
mov dword [esi + 0x17c], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
xor eax, eax
pop esi
add esp, 0x4c
ret
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x408709
mov eax, dword [esi + 0x20]
lea edx, [esp + 8]
push ebx
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push 0
push ecx
mov dword [esi + 0x9c], 1
call ebx
push 0
lea ecx, [esi + 0xa0]
call fcn.004069e0
mov edi, eax
mov eax, dword [esi + 0x2cc]
test eax, eax
je 0x4086b2
mov edx, dword [esi + 0x2d8]
mov ecx, dword [esi + 0x2d0]
push edx
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
push 0
push esi
push edx
push eax
push 0x182
mov ecx, edi
call sub.MFC42.DLL_CMenu::TrackPopupMenu
mov ecx, dword [esi + 0x20]
push 1
push 0
push ecx
mov edi, eax
mov dword [esi + 0x9c], 0
call ebx
test edi, edi
pop ebx
je 0x408757
mov edx, dword [esi + 0x98]
and edi, 0xffff
push 0
push edi
push 0x111
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
xor eax, eax
pop esi
add esp, 0x4c
ret
lea edx, [esi + 0x188]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x408757
mov ecx, 0xf
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x3c
push eax
mov dword [esp + 0x20], 0x400
mov dword [esp + 0x28], str.open
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], 3
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
xor eax, eax
pop esi
add esp, 0x4c
ret
Function at 0x408970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40e668
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov eax, dword [esi + 0x20]
push eax
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CClientDC::CClientDC
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 0x20]
push edx
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esi + 0x160]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x408aa6
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x15c]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edi
push eax
push ecx
push edx
lea edi, [esi + 0x16c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
test edi, edi
je 0x408a52
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x160]
push edi
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x174], eax
mov eax, dword [esp + 0xc]
sub ecx, edx
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
sub edx, eax
lea eax, [esp + 0x2c]
push 0xcc0020
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
push edi
push eax
push ecx
mov ecx, dword [esi + 0x160]
push edx
push 0
push 0
push ecx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0x15c]
sub ecx, edi
test edx, edx
je 0x408ac7
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push 0
mov eax, dword [edx + 4]
push 0
push eax
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.0040d7c4
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x40c800
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push 0xffffffffffffffff
push 0x40ea50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x1000
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
mov ecx, 0x400
xor eax, eax
mov edi, esi
push 0xfff
push esi
push str.path
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
lea ecx, [esp + 0x18]
call fcn.0040d686
push 0x4142ac
lea eax, [esp + 0x20]
push 0x414830
push eax
mov dword [esp + 0x34], 0
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_operator_2
push 0x4142ac
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x30], 2
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 4
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ecx
push str.path
call ebp
mov ebx, dword [esp + 0x30]
mov edi, 0x4147f4
push ebx
push ecx
mov edx, esp
mov dword [esp + 0x38], esp
push edi
push 0x414830
push edx
call sub.MFC42.DLL_operator_2
call fcn.0040c220
add esp, 8
test eax, eax
je 0x40c941
add edi, 4
cmp edi, 0x414804
jl 0x40c8ce
push esi
push str.path
call ebp
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push esi
push str.path
call ebp
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret